/* =============================================================================
   Beekman Pretoria  |  Theme.css
   Apple-aura design system. Glassmorphism 2.0. Pure precision.
   Pairs with Tailwind Play CDN for utility classes.
   ========================================================================== */

/* -------- Reset (light) -------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

/* -------- Tokens -------- */
:root {
  /* Palette */
  --bg:       #FFFFFF;
  --surface:  #F5F5F7;
  --surface-2:#FAFAFC;
  --ink:      #111111;
  --ink-2:    #6E6E73;
  --ink-3:    #86868B;
  --line:     rgba(17,17,17,0.22);
  --line-2:   rgba(17,17,17,0.38);
  --accent:   #C8102E;
  --accent-2: #E11D34;
  --glow:     rgba(200,16,46,0.28);

  /* Glass */
  --glass-bg:    rgba(255,255,255,0.62);
  --glass-bg-2:  rgba(245,245,247,0.78);
  --glass-line:  rgba(255,255,255,0.55);
  --glass-shadow:0 1px 0 rgba(255,255,255,0.7) inset, 0 14px 40px -18px rgba(17,17,17,0.18), 0 2px 6px -2px rgba(17,17,17,0.06);

  /* Type */
  --font-sans:    'Inter Tight', 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
  --font-display: 'Inter Tight', -apple-system, 'SF Pro Display', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Motion */
  --ease-ios:    cubic-bezier(0.22, 1, 0.36, 1);
  --ease-pop:    cubic-bezier(0.34, 1.56, 0.64, 1);
  --t-fast:  220ms;
  --t-base:  420ms;
  --t-slow:  720ms;

  /* Radii */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 9999px;

  /* Shell */
  --header-h: 76px;
  --container: 1280px;
  --gutter: clamp(20px, 4vw, 48px);
}

@media (prefers-color-scheme: dark) {
  /* keep light theme intentionally — Apple-aura demands the white canvas */
}

/* -------- Base -------- */
html, body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body {
  min-height: 100svh;
  overflow-x: clip;
  background:
    radial-gradient(1200px 800px at 80% -10%, rgba(200,16,46,0.045), transparent 60%),
    radial-gradient(900px 600px at -10% 30%, rgba(17,17,17,0.04), transparent 60%),
    var(--bg);
}

/* Lenis smooth scroll cooperation */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* -------- Typography -------- */
.h-display, h1.display, .display-1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(44px, 7.2vw, 104px);
  line-height: 0.96;
  letter-spacing: -0.035em;
}
.h-section, h2.section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4.4vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.028em;
}
.h-3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.18;
  letter-spacing: -0.02em;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.lede {
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 60ch;
}
.muted { color: var(--ink-2); }
.italic-serif { font-style: italic; font-family: 'Inter Tight', serif; font-weight: 500; }

/* Unmask reveal (for h-section / h-display) */
.reveal-mask { overflow: hidden; display: inline-block; }
.reveal-mask > span { display: inline-block; transform: translateY(110%); will-change: transform; }
.reveal-mask.is-in > span { transform: translateY(0); transition: transform 900ms var(--ease-ios); }

[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 700ms var(--ease-ios), transform 700ms var(--ease-ios); }
[data-reveal].is-in { opacity: 1; transform: none; }
[data-reveal-delay="1"] { transition-delay: 80ms; }
[data-reveal-delay="2"] { transition-delay: 160ms; }
[data-reveal-delay="3"] { transition-delay: 240ms; }
[data-reveal-delay="4"] { transition-delay: 320ms; }

/* -------- Container -------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container-wide { width: 100%; max-width: 1480px; margin-inline: auto; padding-inline: var(--gutter); }

/* -------- Grain texture (tactile depth) -------- */
.grain { position: relative; isolation: isolate; }
.grain::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.06 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  background-size: 200px 200px;
  opacity: 0.55; mix-blend-mode: multiply;
  border-radius: inherit;
}
.grain > * { position: relative; z-index: 1; }

/* -------- Header (floating glass pill) -------- */
.site-header {
  position: fixed;
  top: 14px; left: 50%; transform: translateX(-50%);
  width: min(calc(100% - 24px), 1180px);
  height: var(--header-h);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 0 14px 0 22px;
  background: var(--glass-bg);
  -webkit-backdrop-filter: saturate(180%) blur(22px);
  backdrop-filter: saturate(180%) blur(22px);
  border: 1px solid var(--glass-line);
  border-radius: var(--r-pill);
  box-shadow: var(--glass-shadow);
  z-index: 1000;
  transition: transform 500ms var(--ease-ios), box-shadow 500ms var(--ease-ios), background 300ms var(--ease-ios);
}
.site-header.is-scrolled {
  background: rgba(255,255,255,0.78);
  box-shadow: 0 1px 0 rgba(255,255,255,0.85) inset, 0 18px 50px -22px rgba(17,17,17,0.22), 0 2px 6px -2px rgba(17,17,17,0.08);
}
.site-header.is-hidden { transform: translate(-50%, calc(-100% - 24px)); }

/* Brand wordmark with embedded BPLogo as the A in BEEKMAN — stacked: PRETORIA below BEEKMAN, left-aligned in header */
.wordmark {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  font-family: 'Archivo Black', var(--font-display);
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 0.06em;
  color: var(--ink);
  transition: transform 300ms var(--ease-ios);
  user-select: none;
  line-height: 1;
  text-decoration: none;
  justify-self: start;
}
.wordmark__lead {
  display: inline-flex; align-items: center;
  font-weight: 900;
  letter-spacing: 0.06em;
  line-height: 0.95;
}
.wordmark__logo {
  display: inline-block;
  height: 1.05em;
  width: auto;
  margin: 0 0.06em -0.06em;
  vertical-align: middle;
  filter: drop-shadow(0 1px 1px rgba(17,17,17,0.18));
  transform: translateY(-0.04em);
}
.wordmark__sep { display: none; }
.wordmark__sub {
  font-family: var(--font-display);
  font-weight: 600; color: var(--ink-2);
  letter-spacing: 0.36em;
  font-size: 10px;
  text-transform: uppercase;
  margin-top: 2px;
  align-self: stretch;
  text-align: center;
}
.wordmark:hover { transform: scale(1.02); }
.wordmark:active { transform: scale(0.98); }
@media (max-width: 560px) {
  .wordmark { font-size: 18px; }
  .wordmark__sub { font-size: 9px; letter-spacing: 0.3em; }
}
@media (max-width: 420px) {
  .wordmark { font-size: 17px; }
  .wordmark__sub { font-size: 8.5px; letter-spacing: 0.26em; }
}

/* nav-canopies styles retained for any legacy markup but not injected anywhere */
.nav-canopies { display: none; }

/* Header actions cluster */
.header-actions { display: flex; align-items: center; gap: 8px; }

/* Pill button with glassmorphic click aura */
.btn {
  position: relative;
  -webkit-tap-highlight-color: transparent;
  isolation: isolate;
  overflow: hidden;
  transition: transform 160ms var(--ease-pop), background 220ms var(--ease-ios), box-shadow 320ms var(--ease-ios), color 220ms var(--ease-ios), border-color 220ms var(--ease-ios);
}
.btn::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background: linear-gradient(180deg, rgba(255,255,255,0.22) 0%, rgba(255,255,255,0) 50%, rgba(255,255,255,0.06) 100%);
  opacity: 0.7;
  transition: opacity 320ms var(--ease-ios);
}
.btn::after {
  content: ""; position: absolute; inset: -2px; pointer-events: none; z-index: -2;
  border-radius: inherit;
  background: radial-gradient(60% 90% at 50% 50%, var(--btn-aura, rgba(255,255,255,0.45)) 0%, transparent 70%);
  opacity: 0; filter: blur(10px);
  transition: opacity 360ms var(--ease-ios), transform 480ms var(--ease-ios);
  transform: scale(0.7);
}
.btn:hover { transform: translateY(-1px); }
.btn:hover::before { opacity: 1; }
.btn:hover::after { opacity: 0.55; transform: scale(1.05); }
.btn:active {
  transform: translateY(0) scale(0.97);
  box-shadow: 0 0 0 6px rgba(255,255,255,0.18) inset, 0 0 0 4px var(--btn-aura, rgba(17,17,17,0.10)), 0 18px 36px -14px var(--btn-aura, rgba(17,17,17,0.32));
}
.btn:active::after { opacity: 0.9; transform: scale(1.15); transition-duration: 180ms; }

.btn-primary {
  --btn-aura: rgba(17,17,17,0.35);
  display: inline-flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 22px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: #fff;
  font-weight: 600; font-size: 14px; letter-spacing: -0.005em;
  box-shadow: 0 8px 24px -10px rgba(17,17,17,0.45);
}
.btn-primary:hover { background: #000; box-shadow: 0 12px 30px -10px rgba(17,17,17,0.55); }

.btn-accent {
  --btn-aura: rgba(200,16,46,0.55);
  display: inline-flex; align-items: center; gap: 10px;
  height: 44px; padding: 0 18px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: #fff;
  font-weight: 600; font-size: 13.5px; letter-spacing: 0.005em;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.4) inset, 0 6px 18px -6px var(--glow), 0 1px 2px rgba(17,17,17,0.08);
}
.btn-accent:hover { background: var(--accent-2); box-shadow: 0 0 0 1px rgba(255,255,255,0.55) inset, 0 12px 28px -8px var(--glow); }

.btn-ghost {
  display: inline-flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 22px;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--ink);
  font-weight: 600; font-size: 14px;
  border: 1px solid var(--line-2);
}
.btn-ghost:hover { background: var(--surface); border-color: var(--ink); }

.btn-glass {
  --btn-aura: rgba(255,255,255,0.55);
  display: inline-flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 22px;
  border-radius: var(--r-pill);
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--glass-line);
  color: var(--ink); font-weight: 600; font-size: 14px;
  box-shadow: var(--glass-shadow);
}
.btn-glass:hover { background: rgba(255,255,255,0.85); }

/* -------- Icon button (search, etc.) -------- */
.icon-btn {
  position: relative;
  width: 44px; height: 44px;
  border-radius: var(--r-pill);
  display: inline-grid; place-items: center;
  background: transparent;
  border: 1px solid transparent;
  color: var(--ink);
  isolation: isolate; overflow: hidden;
  transition: background 220ms var(--ease-ios), border-color 220ms var(--ease-ios), transform 160ms var(--ease-pop);
  -webkit-tap-highlight-color: transparent;
}
.icon-btn::after {
  content: ""; position: absolute; inset: -3px; z-index: -1;
  border-radius: inherit;
  background: radial-gradient(60% 90% at 50% 50%, rgba(17,17,17,0.16) 0%, transparent 70%);
  opacity: 0; filter: blur(10px);
  transition: opacity 320ms var(--ease-ios), transform 480ms var(--ease-ios);
  transform: scale(0.7);
}
.icon-btn:hover { background: var(--surface); border-color: var(--line-2); }
.icon-btn:hover::after { opacity: 0.6; transform: scale(1.1); }
.icon-btn:active { transform: scale(0.94); }
.icon-btn:active::after { opacity: 0.95; transform: scale(1.2); transition-duration: 160ms; }
.icon-btn svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.8; fill: none; }

.btn-icon {
  width: 18px; height: 18px;
  transition: transform 220ms var(--ease-ios);
}
.btn:hover .btn-icon { transform: translateX(3px); }

/* Burger */
.burger {
  position: relative;
  width: 46px; height: 46px;
  border-radius: var(--r-pill);
  background: transparent;
  border: 1px solid transparent;
  display: inline-grid; place-items: center;
  transition: background 220ms var(--ease-ios), border-color 220ms var(--ease-ios), transform 160ms var(--ease-pop);
}
.burger:hover { background: var(--surface); border-color: var(--line-2); }
.burger:active { transform: scale(0.94); }
.burger__lines { position: relative; width: 18px; height: 12px; }
.burger__lines span {
  position: absolute; left: 0; right: 0; height: 1.6px;
  background: var(--ink); border-radius: 2px;
  transition: transform 360ms var(--ease-ios), opacity 260ms var(--ease-ios), top 320ms var(--ease-ios);
}
.burger__lines span:nth-child(1) { top: 0; }
.burger__lines span:nth-child(2) { top: 5.2px; }
.burger__lines span:nth-child(3) { top: 10.4px; }
.burger.is-open .burger__lines span:nth-child(1) { top: 5.2px; transform: rotate(45deg); }
.burger.is-open .burger__lines span:nth-child(2) { opacity: 0; }
.burger.is-open .burger__lines span:nth-child(3) { top: 5.2px; transform: rotate(-45deg); }

/* -------- Drawer backdrop + side panel -------- */
.drawer-backdrop {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(10,10,12,0.42);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 360ms var(--ease-ios), visibility 0s linear 360ms;
}
.drawer-backdrop.is-open { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity 280ms var(--ease-ios), visibility 0s; }

.drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(420px, 92vw);
  background: rgba(255,255,255,0.96);
  -webkit-backdrop-filter: saturate(180%) blur(28px);
  backdrop-filter: saturate(180%) blur(28px);
  border-left: 1px solid var(--line);
  box-shadow: -30px 0 80px -20px rgba(17,17,17,0.18);
  z-index: 1001;
  display: flex; flex-direction: column;
  padding: 18px 28px 28px;
  visibility: hidden;
  transform: translate3d(102%, 0, 0);
  transition: transform 480ms var(--ease-ios), visibility 0s linear 480ms;
  overflow-y: auto;
}
.drawer.is-open {
  visibility: visible; transform: none;
  transition: transform 480ms var(--ease-ios), visibility 0s;
}
.drawer__top {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
  margin-bottom: 8px;
}
.drawer__close {
  width: 46px; height: 46px;
  border-radius: var(--r-pill);
  display: inline-grid; place-items: center;
  border: 1px solid var(--line-2);
  background: var(--surface);
  transition: transform 160ms var(--ease-pop), background 220ms var(--ease-ios), border-color 220ms var(--ease-ios);
}
.drawer__close:hover { background: #ECECEF; border-color: var(--ink); }
.drawer__close:active { transform: scale(0.92) rotate(90deg); }
.drawer__close svg { width: 18px; height: 18px; stroke: var(--ink); stroke-width: 1.8; }

.drawer__body {
  flex: 1;
  display: flex; flex-direction: column;
  padding-top: 12px;
}

.drawer__list { list-style: none; margin: 0; padding: 0; }
.drawer__item {
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}
.drawer__link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(26px, 5.2vw, 38px);
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--ink);
  transition: color 220ms var(--ease-ios), transform 320ms var(--ease-ios), padding-left 320ms var(--ease-ios);
}
.drawer__link__num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  color: var(--ink-3);
  text-transform: uppercase;
}
.drawer__link:hover { color: var(--accent); padding-left: 8px; }

/* Drawer Canopies sub-group */
.drawer__item--group { display: flex; flex-direction: column; gap: 10px; padding: 18px 0; border-top: 1px solid var(--line-1); border-bottom: 1px solid var(--line-1); }
.drawer__group-head { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--font-display); font-weight: 700; font-size: clamp(26px, 5.2vw, 38px); letter-spacing: -0.025em; color: var(--ink); }
.drawer__group-head .drawer__link__num { font-size: 11px; }
.drawer__sublist { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; }
.drawer__sublink { display: block; padding: 6px 0; font-family: var(--font-sans); font-weight: 500; font-size: 14px; color: var(--ink-2); text-decoration: none; transition: color 180ms var(--ease-ios), padding-left 180ms var(--ease-ios); }
.drawer__sublink:hover { color: var(--accent); padding-left: 4px; }
@media (max-width: 480px) { .drawer__sublist { grid-template-columns: 1fr; } }

/* Stagger reveal for drawer links */
.drawer .drawer__item {
  opacity: 0; transform: translateY(28px);
  transition: opacity 600ms var(--ease-ios), transform 600ms var(--ease-ios);
  transition-delay: 0ms;
}
.drawer.is-open .drawer__item {
  opacity: 1; transform: none;
}
.drawer.is-open .drawer__item:nth-child(1) { transition-delay: 120ms; }
.drawer.is-open .drawer__item:nth-child(2) { transition-delay: 180ms; }
.drawer.is-open .drawer__item:nth-child(3) { transition-delay: 240ms; }
.drawer.is-open .drawer__item:nth-child(4) { transition-delay: 300ms; }
.drawer.is-open .drawer__item:nth-child(5) { transition-delay: 360ms; }
.drawer.is-open .drawer__item:nth-child(6) { transition-delay: 420ms; }

/* Drawer footer (compact contact strip) */
.drawer__foot {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px;
  font-size: 13.5px; color: var(--ink-2);
}
.drawer__foot a { color: var(--ink); font-weight: 500; }
.drawer__foot a:hover { color: var(--accent); }
.drawer__foot-row { display: flex; align-items: center; gap: 8px; }
.drawer__foot-row svg { width: 14px; height: 14px; stroke: currentColor; stroke-width: 1.8; fill: none; flex-shrink: 0; }

/* Body scroll lock when drawer is open */
body.is-locked { overflow: hidden; }

/* -------- Scroll progress -------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px;
  z-index: 1100; pointer-events: none;
  background: transparent;
}
.scroll-progress__bar {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, var(--ink), var(--accent));
  transition: width 80ms linear;
}

/* -------- Hero (cinematic 3-layer) -------- */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.hero__halo { display: none; }

/* default (non-cinema heroes still get padding) */
.hero:not(.hero--cinema) {
  padding: calc(var(--header-h) + clamp(48px, 12vh, 120px)) 0 clamp(64px, 14vh, 160px);
}

/* cinema variant: stage holds layers 1+2+3, metrics live below stage */
.hero--cinema { padding: 0 0 clamp(48px, 8vh, 96px); }
.hero__stage {
  position: relative;
  isolation: isolate;
  min-height: clamp(640px, 92vh, 920px);
  padding: calc(var(--header-h) + clamp(56px, 12vh, 140px)) 0 clamp(72px, 14vh, 160px);
  display: flex; flex-direction: column; justify-content: center;
  overflow: hidden;
  border-radius: 0 0 var(--r-xl) var(--r-xl);
}

/* Layer 2: image slideshow background (sits ABOVE particles, BELOW copy) */
.hero__bg {
  position: absolute; inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  border-radius: inherit;
  /* Soft fade-out at the bottom edge so the falling particle layer
     beneath becomes visible streaming down out of the hero. */
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 78%, rgba(0,0,0,0.55) 92%, rgba(0,0,0,0) 100%);
          mask-image: linear-gradient(180deg, #000 0%, #000 78%, rgba(0,0,0,0.55) 92%, rgba(0,0,0,0) 100%);
}
.hero__slides { position: absolute; inset: 0; }
.hero__slide {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1400ms var(--ease-ios), transform 9000ms linear;
  will-change: opacity, transform;
}
.hero__slide.is-active { opacity: 1; transform: scale(1); }
.hero__slide.is-leaving { opacity: 0; }

/* Faded + darker tint so foreground text reads vividly */
.hero__bg-tint {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(8,9,12,0.62) 0%, rgba(8,9,12,0.48) 38%, rgba(8,9,12,0.72) 100%),
    radial-gradient(120% 80% at 20% 30%, rgba(200,16,46,0.18), transparent 55%),
    radial-gradient(90% 70% at 85% 80%, rgba(0,0,0,0.45), transparent 60%);
  mix-blend-mode: normal;
}
.hero__bg-grain {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 3px 3px;
  opacity: 0.18;
  mix-blend-mode: overlay;
}

/* Layer 1 (back): hero stage uses sitewide particles canvas behind it. */

/* Layer 3 (front): copy + buttons */
.hero__copy {
  position: relative;
  z-index: 3;
  color: #fff;
  max-width: 1040px;
}
.hero__title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(48px, 9vw, 132px);
  line-height: 0.94;
  letter-spacing: -0.045em;
  margin: 0 0 28px;
  color: #fff;
  text-shadow: 0 2px 22px rgba(0,0,0,0.4), 0 1px 2px rgba(0,0,0,0.5);
}
.hero__title em {
  display: inline-block;
  font-style: italic;
  font-weight: 600;
  font-size: 0.78em;
  line-height: 1;
  letter-spacing: -0.025em;
  color: rgba(255,255,255,0.92);
  margin-top: 14px;
  padding-left: 0.04em;
  position: relative;
}
.hero__title em::before {
  content: '';
  display: inline-block;
  width: 0.5em; height: 0.08em;
  background: var(--accent);
  border-radius: 999px;
  margin: 0 0.32em 0.22em 0;
  vertical-align: middle;
  box-shadow: 0 0 14px rgba(200,16,46,0.55);
}
.hero__lede {
  margin: 0 0 32px; font-size: clamp(17px, 1.4vw, 21px); max-width: 56ch;
  color: rgba(255,255,255,0.86);
  text-shadow: 0 1px 8px rgba(0,0,0,0.45);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }

.eyebrow--inverse { color: rgba(255,255,255,0.78); }
.eyebrow--inverse::before { background: rgba(255,255,255,0.6); }

/* Inner-page heroes (non-cinema) sit on a light surface, so invert the
   palette: dark text, no drop shadow, and the eyebrow--inverse falls back
   to the standard dark eyebrow tone. Without this scope, every inner page
   shows white-on-white text. */
.hero:not(.hero--cinema) .hero__copy { color: var(--ink); }
.hero:not(.hero--cinema) .hero__title { color: var(--ink); text-shadow: none; }
.hero:not(.hero--cinema) .hero__title em { color: var(--accent); }
.hero:not(.hero--cinema) .hero__lede { color: #4A4A52; text-shadow: none; }
.hero:not(.hero--cinema) .eyebrow--inverse { color: #6E6E73; }
.hero:not(.hero--cinema) .eyebrow--inverse::before { background: #C8102E; }

.btn-ghost--inverse {
  color: #fff;
  border-color: rgba(255,255,255,0.45);
  background: rgba(255,255,255,0.08);
  backdrop-filter: saturate(160%) blur(8px);
  -webkit-backdrop-filter: saturate(160%) blur(8px);
}
.btn-ghost--inverse:hover { background: rgba(255,255,255,0.16); border-color: rgba(255,255,255,0.7); }

/* Metrics sit below the stage on the white surface */
.hero__metrics {
  margin-top: clamp(40px, 6vh, 72px);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
@media (max-width: 720px) {
  .hero__metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .hero__stage { min-height: 88vh; padding-bottom: clamp(56px, 10vh, 96px); border-radius: 0 0 28px 28px; }
}
.hero__metric-value {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(28px, 3vw, 40px); letter-spacing: -0.02em;
}
.hero__metric-label {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2); margin-top: 6px;
}

/* -------- Section shell -------- */
.section { padding: clamp(72px, 12vh, 144px) 0; position: relative; }
.section--surface { background: var(--surface); }
.section--ink { background: #0A0A0C; color: #FFF; }
.section--ink .eyebrow, .section--ink .lede, .section--ink .muted { color: rgba(255,255,255,0.62); }
.section--ink .hero__metric-label { color: rgba(255,255,255,0.55); }
.section-head { max-width: 80ch; margin-bottom: clamp(40px, 6vh, 72px); }
.section-head h2 { margin: 16px 0 18px; }
.section-head .lede { color: var(--ink-2); }

/* -------- Glass panel + tile -------- */
.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--glass-line);
  border-radius: var(--r-lg);
  box-shadow: var(--glass-shadow);
}
.tile {
  background: var(--surface);
  border: 1.5px solid var(--line-2);
  border-radius: var(--r-lg);
  padding: clamp(20px, 3vw, 32px);
  transition: transform 380ms var(--ease-ios), box-shadow 380ms var(--ease-ios), border-color 220ms var(--ease-ios);
}
.tile:hover {
  transform: translateY(-4px);
  border-color: var(--ink);
  box-shadow: 0 28px 64px -28px rgba(17,17,17,0.22), 0 4px 12px -4px rgba(17,17,17,0.08);
}

/* -------- Marquee -------- */
.marquee {
  position: relative;
  overflow: hidden;
  padding: 22px 0;
  border-block: 1px solid var(--line);
  background: var(--surface-2);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 8%, #000 92%, transparent 100%);
}
.marquee__track {
  display: inline-flex; gap: 64px;
  white-space: nowrap;
  animation: marquee 38s linear infinite;
  font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2);
}
.marquee__track > span { display: inline-flex; align-items: center; gap: 64px; }
.marquee__track > span::after { content: "•"; color: var(--ink-3); }
@keyframes marquee {
  0%   { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-50%, 0, 0); }
}

/* -------- Range showcase (replaces 3D) -------- */
.range-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}
.range-card {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl);
  background: var(--surface);
  border: 1.5px solid var(--line-2);
  min-height: 460px;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: clamp(24px, 3vw, 36px);
  isolation: isolate;
  transition: transform 480ms var(--ease-ios), box-shadow 480ms var(--ease-ios);
}
.range-card:hover { transform: translateY(-6px); box-shadow: 0 30px 80px -32px rgba(17,17,17,0.28); }
.range-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(110% 80% at 80% 0%, rgba(255,255,255,0.6), transparent 60%),
    linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(245,245,247,0.6) 60%, var(--surface) 100%),
    var(--card-tint, var(--surface));
}
.range-card__art {
  position: absolute; inset: 0 0 35% 0;
  display: grid; place-items: center;
  z-index: -1;
}
.range-card__art svg { width: 70%; max-width: 360px; opacity: 0.92; transform: translateY(8%); transition: transform 700ms var(--ease-ios); }
.range-card:hover .range-card__art svg { transform: translateY(4%) scale(1.04); }
.range-card__art img { width: 90%; max-width: 460px; height: 82%; object-fit: contain; object-position: center 40%; mix-blend-mode: multiply; transition: transform 700ms var(--ease-ios); }
.range-card:hover .range-card__art img { transform: scale(1.04); }
/* Dark platform card: frame the (white-bg) product shot in a light tile in the TOP half so the white body copy below stays clear */
.range-card--photo-dark { min-height: 540px; }
.range-card--photo-dark .range-card__art { inset: 7% 7% 52% 7%; background: linear-gradient(180deg,#FFFFFF 0%,#EDEEF0 100%); border-radius: 16px; box-shadow: 0 20px 44px -30px rgba(0,0,0,0.6); }
.range-card--photo-dark .range-card__art img { width: 100%; height: 100%; object-position: center; padding: 12px; mix-blend-mode: normal; }
@media (max-width: 980px) { .range-card--photo-dark { min-height: 420px; } .range-card--photo-dark .range-card__art { inset: 6% 6% 46% 6%; } }
.range-card__index { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; color: var(--ink-3); text-transform: uppercase; }
.range-card__title { font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 2vw, 30px); letter-spacing: -0.02em; margin: 8px 0 8px; }
.range-card__lede { color: var(--ink-2); margin: 0 0 20px; max-width: 42ch; }
.range-card__cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 600; font-size: 14px; color: var(--ink);
  transition: gap 220ms var(--ease-ios);
}
.range-card__cta::after { content: "→"; transition: transform 220ms var(--ease-ios); }
.range-card:hover .range-card__cta { gap: 12px; }
.range-card:hover .range-card__cta::after { transform: translateX(2px); }

.range-card--featured { grid-column: span 12; min-height: 540px; }
.range-card--half    { grid-column: span 6; }
.range-card--third   { grid-column: span 4; }
@media (max-width: 980px) { .range-card--half, .range-card--third { grid-column: span 12; min-height: 380px; } }

/* -------- Filter chip grid (Apple-style segmented) -------- */
.chips {
  display: inline-flex; flex-wrap: wrap; gap: 8px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
}
.chip {
  height: 38px; padding: 0 18px;
  border-radius: var(--r-pill);
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  transition: background 220ms var(--ease-ios), color 220ms var(--ease-ios), transform 160ms var(--ease-pop);
}
.chip:hover { color: var(--ink); }
.chip:active { transform: scale(0.96); }
.chip.is-active { background: var(--ink); color: #FFF; }

/* -------- Product grid (with shuffle) -------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.product-card {
  display: flex; flex-direction: column;
  background: var(--bg);
  border: 1.5px solid var(--line-2);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 380ms var(--ease-ios), box-shadow 380ms var(--ease-ios), border-color 220ms var(--ease-ios), opacity 380ms var(--ease-ios);
}
.product-card:hover { transform: translateY(-4px); border-color: var(--ink); box-shadow: 0 24px 60px -32px rgba(17,17,17,0.22); }
.product-card.is-out { opacity: 0; transform: scale(0.96); pointer-events: none; }
.product-card__media {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, var(--surface) 0%, #ECECEF 100%);
  display: grid; place-items: center;
  position: relative;
}
.product-card__media svg { width: 64%; max-width: 220px; opacity: 0.85; }
.product-card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.product-card__tag {
  position: absolute; top: 12px; left: 12px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase;
  background: rgba(17,17,17,0.78); color: #FFF;
  padding: 6px 10px; border-radius: var(--r-pill);
}
.product-card__body { padding: 20px; }
.product-card__title { font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -0.015em; margin: 0 0 4px; }
.product-card__sub { font-size: 13.5px; color: var(--ink-2); margin: 0; }

/* -------- Process timeline -------- */
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
@media (max-width: 980px) { .process { grid-template-columns: 1fr; } }
.process__item {
  position: relative;
  padding: 28px 22px;
  border-radius: var(--r-lg);
  background: var(--bg);
  border: 1.5px solid var(--line-2);
}
.process__num { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; color: var(--ink-3); text-transform: uppercase; }
.process__title { font-family: var(--font-display); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; margin: 12px 0 8px; }
.process__body { font-size: 14.5px; color: var(--ink-2); line-height: 1.55; margin: 0; }

/* -------- Footer -------- */
.site-footer {
  background: #0A0A0C;
  color: rgba(255,255,255,0.78);
  padding: clamp(64px, 10vh, 112px) 0 32px;
  position: relative;
}
.site-footer .wordmark { color: #FFF; }
.site-footer .wordmark__sub { color: rgba(255,255,255,0.6); }
.site-footer .wordmark__sep { background: rgba(255,255,255,0.18); }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 48px;
}
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-h { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin: 0 0 16px; font-weight: 500; }
.footer-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-list a:hover { color: #FFF; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.08); display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; font-size: 12.5px; color: rgba(255,255,255,0.5); }
.footer-bottom > :nth-child(1) { text-align: left; }
.footer-bottom > :nth-child(2) { text-align: center; }
.footer-bottom > :nth-child(3) { text-align: right; }
.footer-credit { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(255,255,255,0.55); }
.footer-credit a { color: #FFF; font-weight: 500; transition: color 220ms var(--ease-ios); }
.footer-credit a:hover { color: var(--accent-2); }
@media (max-width: 720px) {
  .footer-bottom { grid-template-columns: 1fr; text-align: center; }
  .footer-bottom > :nth-child(1), .footer-bottom > :nth-child(3) { text-align: center; }
}

/* -------- Forms (contact) -------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.label { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-2); font-weight: 500; }
.input, .textarea {
  width: 100%; font: inherit; color: var(--ink);
  padding: 14px 16px;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  transition: border-color 220ms var(--ease-ios), box-shadow 220ms var(--ease-ios), background 220ms var(--ease-ios);
}
.textarea { min-height: 140px; resize: vertical; }
.input:hover, .textarea:hover { border-color: var(--ink); }
.input:focus, .textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(17,17,17,0.08); }
.field-error { font-size: 12.5px; color: var(--accent); min-height: 1em; }

/* -------- Brand page (canopies/{make}) -------- */
.brand-shell, .brand-layout {
  display: grid; grid-template-columns: 240px 1fr; gap: 48px;
}
@media (max-width: 980px) { .brand-shell, .brand-layout { grid-template-columns: 1fr; gap: 24px; } }
.brand-rail__head { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 8px; padding: 0 16px; }
.brand-rail__nav { display: flex; flex-direction: column; gap: 4px; }
@media (max-width: 980px) { .brand-rail__nav { flex-direction: row; flex-wrap: wrap; } }
.brand-rail { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; display: flex; flex-direction: column; gap: 4px; }
@media (max-width: 980px) { .brand-rail { position: static; flex-direction: row; flex-wrap: wrap; } }
.brand-rail__link {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  border-radius: var(--r-md);
  font-weight: 500; font-size: 14.5px;
  color: var(--ink-2);
  transition: background 220ms var(--ease-ios), color 220ms var(--ease-ios);
}
.brand-rail__link:hover { background: var(--surface); color: var(--ink); }
.brand-rail__link.is-active { background: var(--ink); color: #FFF; }

/* Existing brand-card markup support (keeps server-rendered grids working) */
.brand-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; align-content: start; align-items: start; }
.brand-card {
  display: flex; flex-direction: column;
  background: var(--card-tint, var(--bg));
  border: 1.5px solid var(--line-2);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 380ms var(--ease-ios), box-shadow 380ms var(--ease-ios), border-color 220ms var(--ease-ios);
}
.brand-card:hover { transform: translateY(-4px); border-color: var(--ink); box-shadow: 0 24px 60px -32px rgba(17,17,17,0.22); }
.brand-card__media { position: relative; aspect-ratio: 16/10; background: var(--surface); overflow: hidden; }
.brand-card__media img { width: 100%; height: 100%; object-fit: cover; }
.brand-card__tag {
  position: absolute; top: 12px; left: 12px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase;
  background: rgba(255,255,255,0.92); color: var(--ink);
  padding: 6px 10px; border-radius: var(--r-pill); border: 1px solid var(--line);
}
.brand-card__body { padding: 20px 22px 24px; }
.brand-card__title { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: -0.015em; margin: 0 0 6px; }
.brand-card__fit, .brand-card__sub { font-size: 13.5px; color: var(--ink-2); margin: 0 0 14px; }
.brand-card__cta { font-weight: 600; font-size: 13.5px; color: var(--ink); display: inline-flex; align-items: center; gap: 6px; }
.brand-card__cta::after { content: "\2192"; transition: transform 220ms var(--ease-ios); }
.brand-card__cta:hover::after { transform: translateX(3px); }

/* Generation + year label + spec badge (liability protocol) */
.brand-card__genyear { display: inline-block; font-family: var(--font-mono); font-weight: 500; font-size: 11.5px; letter-spacing: 0.01em; color: var(--ink-3); white-space: nowrap; }
.brand-card__badge {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  font-family: var(--font-mono); font-size: 9.5px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  color: #0a7d34; background: rgba(16,163,74,0.12); border: 1px solid rgba(16,163,74,0.42);
  padding: 4px 8px; border-radius: var(--r-pill); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.brand-card__badge.is-warn { color: #b42318; background: rgba(217,45,32,0.10); border-color: rgba(217,45,32,0.42); }
.showroom-disclaimer {
  font-family: var(--font-mono); font-style: italic; font-size: 10px; line-height: 1.6;
  opacity: 0.7; color: var(--ink-2); max-width: 92ch; margin: 30px auto 0;
}

/* -------- Map iframe -------- */
.map-frame { aspect-ratio: 16/10; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); }

/* -------- 404 -------- */
.notfound { min-height: 80svh; display: grid; place-items: center; padding-top: var(--header-h); }
.notfound__num { font-family: var(--font-display); font-weight: 800; font-size: clamp(120px, 30vw, 360px); line-height: 0.85; letter-spacing: -0.06em; background: linear-gradient(180deg, var(--ink) 0%, #6E6E73 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* -------- Visually hidden -------- */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* -------- Search overlay -------- */
.search-overlay {
  position: fixed; inset: 0; z-index: 1100;
  background: rgba(10,10,12,0.55);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: clamp(80px, 14vh, 160px) clamp(16px, 4vw, 32px) 32px;
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 320ms var(--ease-ios), visibility 0s linear 320ms;
}
.search-overlay.is-open { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity 280ms var(--ease-ios), visibility 0s; }
.search-panel {
  width: 100%; max-width: 720px;
  background: rgba(255,255,255,0.96);
  -webkit-backdrop-filter: saturate(180%) blur(28px);
  backdrop-filter: saturate(180%) blur(28px);
  border: 1px solid var(--glass-line);
  border-radius: var(--r-xl);
  box-shadow: 0 30px 80px -20px rgba(17,17,17,0.45), 0 1px 0 rgba(255,255,255,0.6) inset;
  overflow: hidden;
  transform: translateY(-12px) scale(0.98);
  transition: transform 360ms var(--ease-ios);
}
.search-overlay.is-open .search-panel { transform: none; }
.search-bar {
  display: flex; align-items: center; gap: 14px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
}
.search-bar svg { width: 20px; height: 20px; stroke: var(--ink-2); stroke-width: 1.8; fill: none; flex-shrink: 0; }
.search-input {
  flex: 1;
  font: inherit; font-size: 18px; color: var(--ink);
  background: transparent; border: 0; outline: 0;
  letter-spacing: -0.01em;
}
.search-input::placeholder { color: var(--ink-3); }
.search-kbd {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em;
  color: var(--ink-2);
  padding: 4px 8px; border: 1px solid var(--line-2); border-radius: 6px;
  background: var(--surface);
}
.search-results {
  max-height: 56vh; overflow-y: auto;
  padding: 8px;
}
.search-result {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px; border-radius: var(--r-md);
  color: var(--ink); cursor: pointer;
  transition: background 180ms var(--ease-ios), transform 180ms var(--ease-ios);
}
.search-result:hover, .search-result.is-active {
  background: var(--surface); transform: translateX(2px);
}
.search-result__icon {
  width: 36px; height: 36px;
  border-radius: var(--r-md);
  background: var(--bg);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  font-family: var(--font-mono); font-size: 11px; color: var(--ink-2);
  flex-shrink: 0;
}
.search-result__body { min-width: 0; flex: 1; }
.search-result__title { font-weight: 600; font-size: 15px; letter-spacing: -0.005em; margin: 0 0 2px; }
.search-result__sub { font-size: 12.5px; color: var(--ink-2); margin: 0; }
.search-result__arrow { color: var(--ink-3); font-size: 16px; }
.search-empty {
  padding: 32px 22px; text-align: center;
  color: var(--ink-2); font-size: 14px;
}
.search-empty strong { color: var(--ink); font-weight: 600; }

/* -------- Particles canvas (sitewide overlay, restrained red dust) --------
   Sits at the very top of the stacking order as a fine ambient layer.
   Pointer events disabled. Alpha tuned in JS so dots stay subtle on light
   backgrounds and read clearly on dark sections. */
.particles {
  position: fixed; inset: 0;
  width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: 60;
}

/* -------- 3D canopy stage (sits BEHIND text and cards) --------
   The 3D canvas is a fixed, full-viewport background layer. It sits at
   z:1 — above the body's white background, but BELOW every section,
   header, card, and text node (which all live at z >= 2). To let the
   model bleed through the canopy sections without hiding it, the four
   .section--canopy sections drop their solid backgrounds (see below).
   The canvas is permanently visible at opacity 1 — no fade gate. */
.canopy3d {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 1;
  opacity: 1;
}

/* Stacking baselines: header above everything, content above the canvas.
   IMPORTANT: main and .section must NOT establish stacking contexts —
   otherwise they would clip the fixed canopy canvas (z:1) underneath
   them. We only give explicit z-index to layers that must sit above the
   canvas (header, footer, section content). The section ::before bg
   paints at z:0 in root stacking, the canvas at z:1, and section text
   at z:2 — sandwiching the model between bg and content. */
.site-header { z-index: 1000; }
main { position: relative; }
footer.site-footer { position: relative; z-index: 5; }
.hero { position: relative; z-index: 2; }
.section { position: relative; }
.section > .container,
.section > .section-head,
.section > * { position: relative; z-index: 2; }
/* Critical: every direct child of a top-level section (including .hero, which
   is NOT .section but still receives the main > section::before overlay) must
   sit above z:0 or it gets buried by the alternating-bg pseudo. */
main > section > * { position: relative; z-index: 2; }
.marquee { position: relative; z-index: 2; }

/* ---- Alternating section backgrounds (painted BEHIND the 3D canvas) ----
   Each main > section gets a ::before pseudo carrying the bg color. The
   pseudo paints at z:0 in root stacking (no parent stacking context),
   which is below the fixed canvas at z:1 and below the section content
   at z:2. Odd/even sections alternate between pure white and a softer
   off-white. Footer keeps its own black background. */
main > section { background: transparent !important; }
main > section::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #FFFFFF;
  pointer-events: none;
}
main > section:nth-of-type(even)::before { background: #F2F2F4; }
main > section:nth-of-type(odd)::before  { background: #FAFAFC; }
/* Dark sections must keep their ink wash; override alternating pseudo. */
main > section.section--ink::before { background: #0A0A0C; }
main > section.section--ink { color: #FFF; }

/* ---- 3D canopy section overrides --------------------------------------
   The canopy sections must NOT block the 3D canvas. They keep the
   alternating bg via ::before (which is below the canvas) and let text /
   cards float at z:2. The legacy .section--ink dark wash on anchor 4 is
   replaced by a glassmorphism card around the CTA copy. */
.section--canopy { background: transparent !important; }
.section--canopy.section--ink { background: transparent !important; color: var(--ink) !important; }
.section--canopy.section--ink .eyebrow,
.section--canopy.section--ink .lede,
.section--canopy.section--ink .h-section { color: var(--ink) !important; }
.section--canopy .range-card,
.section--canopy .step-card,
.section--canopy .picker-card { position: relative; z-index: 3; }

/* ---- Anchor 4: glassmorphism CTA card --------------------------------- */
.cta-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.cta-glass {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  padding: 56px clamp(28px, 5vw, 64px);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  box-shadow:
    0 30px 80px rgba(20, 20, 30, 0.18),
    0 2px 6px rgba(20, 20, 30, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  max-width: 760px;
  width: 100%;
}
.cta-eyebrow {
  color: var(--brand-red, #C8102E);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 700;
  font-size: 13px;
  margin: 0;
}
.cta-headline {
  color: var(--ink);
  max-width: 22ch;
  margin: 0;
  text-shadow: 0 1px 0 rgba(255,255,255,0.85), 0 8px 24px rgba(255,255,255,0.6);
  -webkit-text-stroke: 0.4px rgba(0,0,0,0.08);
}
.cta-headline .italic-serif { color: var(--brand-red, #C8102E); }
.cta-lede {
  color: #2A2A2E;
  max-width: 56ch;
  margin: 0;
  text-shadow: 0 1px 0 rgba(255,255,255,0.7);
}
.cta-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 6px;
}
.cta-btn-ghost {
  background: rgba(255,255,255,0.92) !important;
  border-color: rgba(0,0,0,0.12) !important;
  color: var(--ink) !important;
  backdrop-filter: blur(8px);
}

/* ---- Canopy anchor sections ---------------------------------------------
   The 3D canvas floats ABOVE the section, so the section can keep a
   solid full-bleed background and full-width content. The only thing we
   need to do here is steer the heading into the half OPPOSITE the model
   so headlines and the canopy never collide visually. The cards/grids
   below the heading remain full width — the model passes over them as
   the user scrolls; because the canvas is mostly transparent, the cards
   stay readable wherever the model isn't drawn. */
.section--canopy { position: relative; }

/* RIGHT-side canopy: heading sits on the LEFT half */
.section--canopy-right .section-head {
  max-width: 52%;
  margin-left: 0;
  margin-right: auto;
  padding-right: 24px;
}

/* LEFT-side canopy: heading sits on the RIGHT half */
.section--canopy-left .section-head {
  max-width: 52%;
  margin-left: auto;
  margin-right: 0;
  padding-left: 24px;
  text-align: right;
}
.section--canopy-left .section-head .lede { margin-left: auto; }

/* CENTER (CTA) canopy: heading centred, narrow column */
.section--canopy-center .section-head {
  max-width: 720px;
  margin-inline: auto;
  text-align: center;
}

/* Mobile: 3D is disabled in JS — drop the half-column constraints so
   headings reflow to full width as expected. */
@media (max-width: 900px) {
  .section--canopy .section-head,
  .section--canopy-right .section-head,
  .section--canopy-left .section-head {
    max-width: none;
    text-align: left;
    margin: 0;
    padding: 0;
  }
}

/* Right-aligned section heading variant for "Pick your bakkie" */
.section-head--right {
  margin-left: auto;
  text-align: right;
}
.section-head--right .lede { margin-left: auto; }
@media (max-width: 900px) {
  .section-head--right { text-align: left; margin-left: 0; }
}

/* -------- Mobile polish -------- */
@media (max-width: 720px) {
  .site-header {
    top: 10px;
    width: calc(100% - 16px);
    padding: 0 8px 0 14px;
    height: 60px;
  }
  :root { --header-h: 60px; }
  .btn-primary, .btn-ghost, .btn-glass { height: 42px; padding: 0 16px; font-size: 13px; gap: 8px; }
  .btn-accent { height: 40px; padding: 0 14px; font-size: 12.5px; }
  .header-actions { gap: 4px; }
  .header-actions .btn-primary .btn-label,
  .header-actions .btn-ghost .btn-label,
  .header-actions .btn-accent .btn-label { display: none; }
  .header-actions .btn-primary, .header-actions .btn-ghost {
    width: 42px; padding: 0; justify-content: center;
  }
  .header-actions .btn-accent { width: 40px; padding: 0; justify-content: center; }
  .burger { width: 42px; height: 42px; }
  .icon-btn { width: 40px; height: 40px; }
  .hero { padding: calc(var(--header-h) + 56px) 0 72px; }
  .footer-grid { gap: 32px; }
  .drawer { width: 100vw; padding: 14px 22px 22px; }
  .drawer__link { font-size: 26px; padding: 14px 0; }
  .search-overlay { padding-top: 80px; }
  .search-input { font-size: 16px; }
  .search-bar { padding: 14px 16px; }
  .search-kbd { display: none; }
  .container { padding-inline: 18px; }
  .range-card { min-height: 380px; padding: 22px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .product-card__body { padding: 14px; }
  .product-card__title { font-size: 15px; }
  .chips { padding: 4px; }
  .chip { height: 34px; padding: 0 14px; font-size: 12.5px; }
  .section { padding: 64px 0; }
  .map-frame { aspect-ratio: 1/1; }
}
@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }
  .hero__title { font-size: clamp(40px, 11vw, 56px); }
}

/* -------- Reduced motion -------- */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: 0.001ms !important; }
  .marquee__track { animation: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .reveal-mask > span { transform: none; }
  .particles { display: none; }
}


/* ============================================================
   WHY US section � bakkie hero background, faded for legibility
   ============================================================ */
.section--why {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding-block: clamp(72px, 9vw, 128px);
}
.section--why__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url('../img/BGBakkie.jpg') center/cover no-repeat;
  opacity: 0.55;
  filter: saturate(0.95) contrast(1.0);
  pointer-events: none;
}
.section--why::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.30) 0%, rgba(255,255,255,0.55) 100%);
  pointer-events: none;
}
.section--why > .container { position: relative; z-index: 2; }
.section--why .section-head { max-width: 760px; margin-inline: auto; text-align: center; margin-bottom: clamp(40px, 6vw, 72px); }
.section--why .section-head .lede { margin-inline: auto; }

.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 2.4vw, 32px);
}
.why-card {
  position: relative;
  padding: clamp(28px, 3vw, 40px);
  background: rgba(255,255,255,0.86);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  border: 1.5px solid rgba(20,20,30,0.32);
  border-radius: 24px;
  box-shadow: 0 24px 60px rgba(20,20,30,0.10);
  transition: transform 280ms cubic-bezier(.2,.7,.2,1), box-shadow 280ms cubic-bezier(.2,.7,.2,1);
}
.why-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 32px 80px rgba(20,20,30,0.16);
}
.why-card__eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #C8102E;
  margin: 0 0 14px;
}
.why-card__title {
  font-size: clamp(20px, 1.7vw, 24px);
  line-height: 1.25;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 14px;
}
.why-card__body {
  font-size: 15px;
  line-height: 1.65;
  color: #2A2A2E;
  margin: 0;
}

@media (max-width: 900px) {
  .why-grid { grid-template-columns: 1fr; }
  .section--why__bg { opacity: 0.45; }
}

/* ============================================================
   Mobile overhaul (<= 640px) - production polish
   ============================================================ */
@media (max-width: 640px) {
  /* Hero copy: tighter sizing, comfortable reading */
  .hero__title { font-size: clamp(36px, 10.5vw, 56px); line-height: 0.98; letter-spacing: -0.035em; margin-bottom: 22px; }
  .hero__title em { font-size: 0.74em; margin-top: 10px; }
  .hero__lede { font-size: 16px; line-height: 1.55; margin-bottom: 26px; }
  .hero__copy { max-width: 100%; }
  .hero:not(.hero--cinema) { padding: calc(var(--header-h) + 56px) 0 64px; }

  /* Cinema hero stage uses small-viewport-height to avoid mobile URL bar
     causing overflow + black band on first paint. */
  .hero__stage { min-height: 78svh; min-height: 78vh; padding-bottom: 56px; border-radius: 0 0 22px 22px; }

  /* Hero CTA: stack buttons full-width and centre-justify content */
  .hero__cta { flex-direction: column; align-items: stretch; gap: 10px; width: 100%; }
  .hero__cta > a, .hero__cta > .btn, .hero__cta > .btn-primary, .hero__cta > .btn-glass, .hero__cta > .btn-ghost, .hero__cta > .btn-accent {
    width: 100%; justify-content: center; height: 50px; font-size: 14.5px;
  }

  /* Hero metrics divider trims to fit */
  .hero__metrics { padding-top: 22px; gap: 18px 16px; }
  .hero__metric-value { font-size: clamp(24px, 7vw, 30px); }
  .hero__metric-label { font-size: 10.5px; letter-spacing: 0.14em; }

  /* Section paddings tighter for thumb-reach */
  .section { padding: 56px 0; }

  /* Range cards: shorter, lighter padding */
  .range-card { min-height: 320px; padding: 20px; }
  .range-card__art svg { width: 78%; transform: translateY(6%); }
  .range-card__title { font-size: 22px; margin-bottom: 6px; }
  .range-card__lede { margin-bottom: 14px; }

  /* Why cards: comfortable padding, single column already from 900 */
  .why-card { padding: 24px; border-radius: 18px; }
  .why-card__title { font-size: 19px; }

  /* Brand-card image: no broken aspect on small screens */
  .brand-card__media { aspect-ratio: 16/11; }
  .brand-card__title { font-size: 17px; }

  /* Process timeline: comfortable padding */
  .process__item { padding: 22px 18px; }

  /* Forms: 16px input prevents iOS auto-zoom */
  .input, .textarea { font-size: 16px; padding: 13px 14px; }

  /* Marquee: smaller gap so phrases breathe */
  .marquee__track { gap: 40px; font-size: 12px; }
  .marquee__track > span { gap: 40px; }

  /* Chips row: scrollable horizontally so they never wrap awkwardly */
  .chips { display: flex; overflow-x: auto; padding: 4px; scrollbar-width: none; -ms-overflow-style: none; }
  .chips::-webkit-scrollbar { display: none; }
  .chip { flex: 0 0 auto; }

  /* Brand layout side rail wraps as a horizontal scroll-strip */
  .brand-rail__nav { gap: 6px; }
  .brand-rail__link { padding: 10px 14px; font-size: 13.5px; flex: 0 0 auto; }

  /* Footer: single column polish */
  .footer-bottom { gap: 16px; }
  .site-footer { padding-top: 56px; }

  /* All container images and figure media: cap for performance + crispness */
  main img, .brand-card img { max-width: 100%; height: auto; }

  /* CTA buttons in dark .section--ink: ensure full-width feel */
  .section--ink .btn-accent + .btn-glass,
  .section--ink .btn-glass + .btn-accent { margin-top: 0; }
}

/* Very narrow phones (<=380px): one extra squeeze pass */
@media (max-width: 380px) {
  .hero__title { font-size: clamp(32px, 11vw, 44px); }
  .container { padding-inline: 14px; }
  .range-card { min-height: 280px; padding: 18px; }
  .why-card { padding: 20px; }
}

/* Mobile canopy3D: give .section--canopy a touch more vertical breathing
   room so the floating canopy and the heading feel intentional. */
@media (max-width: 900px) {
  .section--canopy { padding-top: 56px; padding-bottom: 56px; }
}
