/* =====================================================================
   SITE STYLES — shared components for every cinematic build.
   Tokens live in theme.css. Do not hardcode colours here.
   ===================================================================== */

[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; } /* clip: focus/fill can never scroll the page sideways */
body {
  background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; overflow-x: clip;
}
img, video, canvas, svg { display: block; max-width: 100%; }
/* Pitfall (IVORY #01): width/height attrs + aspect-ratio collide. Let CSS own the box. */
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
::selection { background: color-mix(in srgb, var(--brand) 35%, transparent); color: var(--text); }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--brand);
}
.h-display {
  font-family: var(--font-display); font-weight: 600; line-height: 1.02;
  letter-spacing: -0.02em; font-size: clamp(40px, 7vw, 96px);
}
.h-section {
  font-family: var(--font-display); font-weight: 600; line-height: 1.05;
  letter-spacing: -0.015em; font-size: clamp(32px, 4.6vw, 60px); margin: 12px 0 16px;
}
.lead { font-size: clamp(16px, 1.4vw, 19px); color: var(--text-2); max-width: 62ch; }
.muted { color: var(--text-2); }
.grad-text {
  background: linear-gradient(180deg, var(--text) 30%, var(--brand-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px;
  padding: 0 24px; border-radius: 999px; font-weight: 600; font-size: 15px;
  transition: transform .25s var(--ease), background .25s, box-shadow .25s, color .25s;
  white-space: nowrap;
}
.btn-primary { background: var(--brand); color: var(--brand-ink);
  box-shadow: 0 0 0 0 color-mix(in srgb, var(--brand) 60%, transparent); }
.btn-primary:hover { transform: translateY(-2px);
  box-shadow: 0 10px 40px -8px color-mix(in srgb, var(--brand) 70%, transparent); }
.btn-ghost { border: 1px solid var(--line); background: var(--surface); }
.btn-ghost:hover { background: var(--surface-2); }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Grain overlay ---------- */
.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 90; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Nav (hides over pinned heroes — BIRRIA pitfall #03) ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 80;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px var(--gutter);
  transition: background .35s, backdrop-filter .35s, transform .45s var(--ease), border-color .35s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border-color: var(--line);
}
.nav.hide { transform: translateY(-110%); }
.nav-brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display);
  font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.nav-brand .mark { width: 30px; height: 30px; border-radius: 9px;
  background: conic-gradient(from 210deg, var(--brand), var(--brand-2), var(--brand));
  box-shadow: 0 0 24px -4px var(--brand); }
.nav-links { display: flex; gap: 28px; font-size: 14px; color: var(--text-2); }
.nav-links a:hover { color: var(--text); }
.nav-cta { min-height: 40px; padding: 0 18px; font-size: 14px; }
.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); }
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--text); margin: 4px auto; transition: transform .3s, opacity .3s; }
.mobile-menu {
  position: fixed; inset: 0; z-index: 79; background: color-mix(in srgb, var(--bg) 94%, transparent);
  backdrop-filter: blur(16px); display: flex; flex-direction: column; justify-content: center;
  gap: 22px; padding: 0 28px; opacity: 0; pointer-events: none; transition: opacity .3s;
}
.mobile-menu a { font-family: var(--font-display); font-size: 34px; font-weight: 600; }
.menu-open .mobile-menu { opacity: 1; pointer-events: auto; }
.menu-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Sections ---------- */
section { position: relative; }
.section { padding: clamp(80px, 12vw, 160px) 0; }
.section.alt { background: var(--bg-2); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lead { margin: 0 auto; }

/* ---------- Reveal engine: content is VISIBLE by default.
   Only once JS has booted (html.js-reveal) do elements start hidden,
   and reveal.js force-shows everything after a timeout as a failsafe. ---------- */
.js-reveal .reveal { opacity: 0; transform: translateY(28px); }
.js-reveal .reveal.in { opacity: 1; transform: none;
  transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
@media (prefers-reduced-motion: reduce) {
  .js-reveal .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- HERO ---------- */
.hero { min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media canvas, .hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; }
/* Screen-blend hologram trick (APEX): dark video pixels vanish into the page bg */
.hero-media video.blend-screen { mix-blend-mode: screen; }
.hero-scrim { position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(120% 80% at 70% 40%, transparent 30%, color-mix(in srgb, var(--bg) 70%, transparent) 75%),
    linear-gradient(180deg, color-mix(in srgb, var(--bg) 40%, transparent) 0%, transparent 25%, transparent 60%, var(--bg) 100%); }
.hero-content { position: relative; z-index: 2; width: 100%; padding-bottom: clamp(56px, 10vh, 120px); padding-top: 120px; }
.hero-content .lead { margin: 22px 0 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 40px; font-family: var(--font-mono);
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.hero-meta b { color: var(--text); font-weight: 500; }
.scroll-cue { position: absolute; z-index: 2; right: var(--gutter); bottom: 32px; font-family: var(--font-mono);
  font-size: 11px; letter-spacing: .2em; color: var(--text-3); writing-mode: vertical-rl; }
.scroll-cue::after { content: ""; display: block; width: 1px; height: 60px; margin: 12px auto 0;
  background: linear-gradient(var(--brand), transparent); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { 0% { transform: scaleY(0); transform-origin: top; } 50% { transform: scaleY(1); transform-origin: top; }
  51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Marquee ---------- */
.marquee { border-block: 1px solid var(--line); overflow: hidden; padding: 18px 0; background: var(--bg-2); }
.marquee-track { display: flex; gap: 48px; width: max-content; animation: marquee 38s linear infinite;
  font-family: var(--font-mono); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: var(--text-2); }
.marquee-track span::before { content: "✦"; color: var(--brand); margin-right: 48px; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee.reverse .marquee-track { animation-direction: reverse; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  position: relative; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--surface); padding: 28px; overflow: hidden;
  transition: transform .5s var(--ease), border-color .3s, background .3s;
}
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); }
.card::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(400px 200px at var(--mx, 50%) 0%, color-mix(in srgb, var(--brand) 18%, transparent), transparent 70%); }
.card:hover::before { opacity: 1; }
.card .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand); margin-bottom: 22px; }
.card h3 { font-family: var(--font-display); font-size: 22px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 8px; }
.card p { color: var(--text-2); font-size: 15px; }
.card .more { display: inline-flex; gap: 8px; margin-top: 18px; font-size: 14px; color: var(--brand); font-weight: 600; }
/* corner brackets on hover (HazMat) */
.card.framed::after { content: ""; position: absolute; inset: 10px; pointer-events: none; opacity: 0; transition: opacity .3s;
  background:
    linear-gradient(var(--brand), var(--brand)) top left / 14px 1px no-repeat,
    linear-gradient(var(--brand), var(--brand)) top left / 1px 14px no-repeat,
    linear-gradient(var(--brand), var(--brand)) bottom right / 14px 1px no-repeat,
    linear-gradient(var(--brand), var(--brand)) bottom right / 1px 14px no-repeat; }
.card.framed:hover::after { opacity: 1; }

/* Horizontal-row pattern that must NOT collapse into 2x2 (APEX/ATLAS pitfall) */
.row-scroll { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 1fr); gap: 18px; }
@media (max-width: 900px) {
  .row-scroll { grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px;
    margin: 0 calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; }
  .row-scroll > * { scroll-snap-align: start; }
}

/* ---------- Scroll-scrub stage ---------- */
.scrub { position: relative; height: var(--scrub-h, 500vh); }
.scrub-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--bg); }
.scrub-sticky canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.scrub-sticky::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 55%; z-index: 1; pointer-events: none;
  background: linear-gradient(transparent, color-mix(in srgb, var(--bg) 80%, transparent)); } /* keeps chapter copy readable over bright footage */
.scrub-chapters { position: absolute; inset: 0; z-index: 2; pointer-events: none; display: flex; align-items: flex-end; }
.scrub-chapter { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 14vh; max-width: 560px;
  opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.scrub-chapter.right { left: auto; text-align: right; }
.scrub-chapter.on { opacity: 1; transform: none; }
.scrub-chapter h3 { font-family: var(--font-display); font-size: clamp(30px, 4.4vw, 58px); line-height: 1.04; letter-spacing: -0.015em; margin: 10px 0; }
.scrub-chapter p { color: var(--text-2); }
.scrub-rail { position: absolute; z-index: 3; right: var(--gutter); top: 50%; transform: translateY(-50%);
  width: 2px; height: 34vh; background: var(--line); border-radius: 2px; overflow: hidden; }
.scrub-rail i { position: absolute; left: 0; top: 0; width: 100%; height: 100%; background: var(--brand);
  transform-origin: top; transform: scaleY(0); }
.scrub-loader { position: absolute; z-index: 4; left: 50%; top: 50%; transform: translate(-50%,-50%);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .2em; color: var(--text-3); }

/* Camera HUD (BRACE / UMAMI) — toggle with data-hud on the .scrub */
.hud { position: absolute; inset: 18px; z-index: 3; pointer-events: none; font-family: var(--font-mono); font-size: 11px;
  letter-spacing: .16em; color: var(--text-2); display: none; }
[data-hud] .hud { display: block; }
.hud::before, .hud::after { content: ""; position: absolute; width: 26px; height: 26px; border: 1px solid var(--text-3); }
.hud::before { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.hud::after { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.hud .rec { position: absolute; top: 8px; left: 40px; } .hud .rec::before { content: "●"; color: #ff3b3b; margin-right: 8px; animation: blink 1s steps(1) infinite; }
.hud .frame { position: absolute; bottom: 8px; left: 40px; }
.hud .reticle { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; transform: translate(-50%,-50%);
  border: 1px solid var(--text-3); border-radius: 50%; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Character-select stage ---------- */
.stage { position: relative; display: grid; grid-template-columns: 1fr 380px; gap: 28px; align-items: end; }
.stage-floor { position: relative; height: clamp(420px, 62vh, 640px); overflow: hidden; border-radius: var(--radius-lg);
  background: radial-gradient(60% 50% at 50% 100%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 70%), var(--surface);
  border: 1px solid var(--line); }
.stage-floor::after { content: ""; position: absolute; left: 10%; right: 10%; bottom: 14%; height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--brand) 60%, transparent), transparent); }
.stage-person { position: absolute; bottom: 14%; left: 50%; width: 42%; aspect-ratio: 3 / 4;
  transform-origin: 50% 100%; transition: transform .8s var(--ease), opacity .8s var(--ease), filter .8s var(--ease);
  cursor: pointer; }
.stage-person .figure { position: absolute; inset: 0; border-radius: 22px 22px 0 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent); }
.stage-person img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.stage-person .monogram { width: 100%; height: 100%; display: grid; place-items: center; font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 96px); font-weight: 700; color: var(--brand-ink);
  background: linear-gradient(160deg, var(--brand-2), var(--brand) 60%, color-mix(in srgb, var(--brand) 40%, var(--bg))); }
.stage-person .ring { position: absolute; left: 10%; right: 10%; bottom: -8px; height: 18px; border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--brand) 55%, transparent), transparent); opacity: 0; transition: opacity .6s; }
.stage-person.active .ring { opacity: 1; }
.stage-ui { position: absolute; left: 22px; right: 22px; bottom: 18px; z-index: 5; display: flex; align-items: center; justify-content: space-between; }
.stage-arrow { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 60%, transparent);
  backdrop-filter: blur(10px); display: grid; place-items: center; transition: background .25s, transform .25s; }
.stage-arrow:hover { background: var(--surface-2); transform: scale(1.06); }
.stage-count { font-family: var(--font-mono); font-size: 13px; letter-spacing: .2em; color: var(--text-2); }
.stage-panel { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); padding: 28px; }
.stage-panel .role { font-family: var(--font-mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--brand); }
.stage-panel h3 { font-family: var(--font-display); font-size: 32px; line-height: 1.05; margin: 10px 0 12px; }
.stage-panel blockquote { color: var(--text-2); font-size: 15px; border-left: 2px solid var(--brand); padding-left: 14px; margin: 14px 0 20px; }
.bars { display: grid; gap: 12px; margin-bottom: 22px; }
.bar { font-size: 12px; font-family: var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); }
.bar div { height: 4px; border-radius: 4px; background: var(--line); margin-top: 6px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), var(--brand-2));
  transition: width 1s var(--ease); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.tag { font-size: 12px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-2); }

/* ---------- Slide-in story / detail panel (one mechanic, many contexts) ---------- */
.panel-scrim { position: fixed; inset: 0; z-index: 95; background: rgba(0,0,0,.55); backdrop-filter: blur(4px);
  opacity: 0; pointer-events: none; transition: opacity .4s; }
.panel { position: fixed; top: 0; right: 0; bottom: 0; z-index: 96; width: min(560px, 100%); background: var(--bg-2);
  border-left: 1px solid var(--line); transform: translateX(104%); transition: transform .6s var(--ease-lux);
  overflow-y: auto; padding: 28px clamp(20px, 4vw, 44px) 48px; }
.panel-open .panel-scrim { opacity: 1; pointer-events: auto; }
.panel-open .panel { transform: none; }
.panel-close { position: sticky; top: 0; margin-left: auto; display: grid; place-items: center; width: 44px; height: 44px;
  border-radius: 50%; border: 1px solid var(--line); background: var(--bg-2); z-index: 2; }
.panel h2 { font-family: var(--font-display); font-size: clamp(30px, 4vw, 44px); line-height: 1.05; margin: 14px 0 12px; }
.panel .panel-media { margin: 20px 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; background: var(--surface); }
.panel .panel-media img { width: 100%; height: 100%; object-fit: cover; }
.panel ul { list-style: none; display: grid; gap: 10px; margin: 16px 0 24px; }
.panel li { padding-left: 22px; position: relative; color: var(--text-2); }
.panel li::before { content: ""; position: absolute; left: 0; top: .7em; width: 10px; height: 1px; background: var(--brand); }
.panel-lock { overflow: hidden; }

/* ---------- Drift slider (NOIR BREW "Coffee Drift" system) ---------- */
.drift { position: relative; height: 100svh; min-height: 620px; overflow: hidden; background: var(--slide-bg, var(--bg-2));
  transition: background-color .9s var(--ease); }
.drift-word { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1; white-space: nowrap;
  font-family: var(--font-display); font-weight: 800; font-size: clamp(90px, 22vw, 360px); letter-spacing: -0.03em;
  color: color-mix(in srgb, var(--slide-ink, #fff) 14%, transparent); line-height: 1; pointer-events: none; perspective: 800px; }
.drift-hero { position: absolute; left: 50%; top: 50%; z-index: 3; width: min(46vw, 520px); aspect-ratio: 1;
  margin-left: calc(min(46vw, 520px) / -2); margin-top: calc(min(46vw, 520px) / -2); /* no CSS transform: GSAP owns it (pitfall #01) */ }
.drift-hero img, .drift-hero .glyph { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 40px 60px rgba(0,0,0,.45)); }
.drift-float { position: absolute; z-index: 2; width: clamp(80px, 12vw, 170px); aspect-ratio: 1; }
.drift-float img, .drift-float .chip { width: 100%; height: 100%; object-fit: contain; }
.drift-float.f1 { left: 8%; top: 16%; } .drift-float.f2 { right: 9%; top: 20%; } .drift-float.f3 { right: 14%; bottom: 14%; }
.drift-info { position: absolute; z-index: 4; left: var(--gutter); bottom: 48px; max-width: 420px; color: var(--slide-ink, var(--text)); }
.drift-info .eyebrow { color: inherit; opacity: .7; }
.drift-info h3 { font-family: var(--font-display); font-size: clamp(30px, 3.6vw, 48px); line-height: 1.02; margin: 8px 0; }
.drift-info p { opacity: .75; }
.drift-nav { position: absolute; z-index: 5; left: 50%; transform: translateX(-50%); bottom: 40px; display: flex; gap: 10px; align-items: center; color: var(--slide-ink, var(--text)); }
.drift-nav button { width: 54px; height: 54px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--slide-ink, #fff) 30%, transparent);
  background: color-mix(in srgb, var(--slide-ink, #fff) 6%, transparent); display: grid; place-items: center; }
.drift-nav .count { font-family: var(--font-mono); font-size: 13px; letter-spacing: .2em; margin-right: 10px; }
.glyph { display: grid; place-items: center; }
.chip { display: grid; place-items: center; border-radius: 28%; font-family: var(--font-mono); font-size: clamp(11px, 1vw, 14px);
  letter-spacing: .1em; text-transform: uppercase; color: var(--slide-ink, #fff);
  background: color-mix(in srgb, var(--slide-ink, #fff) 10%, transparent); border: 1px solid color-mix(in srgb, var(--slide-ink, #fff) 25%, transparent);
  backdrop-filter: blur(8px); text-align: center; padding: 8px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); border-top: 1px solid var(--line); }
.stat { padding: 34px 24px 10px 0; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat .num { font-family: var(--font-display); font-size: clamp(44px, 6vw, 80px); font-weight: 600; line-height: 1; letter-spacing: -0.03em; }
.stat .num sup { font-size: .45em; color: var(--brand); margin-left: 4px; vertical-align: super; }
.stat .label { margin-top: 10px; color: var(--text-2); font-size: 14px; }
.stat .idx { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); letter-spacing: .2em; margin-bottom: 18px; }

/* ---------- Journey steps ---------- */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 18px; }
.step { position: relative; padding-top: 28px; border-top: 1px solid var(--line); }
.step::before { counter-increment: s; content: "0" counter(s); font-family: var(--font-mono); font-size: 12px; color: var(--brand); letter-spacing: .2em; }
.step h4 { font-family: var(--font-display); font-size: 22px; margin: 12px 0 8px; }
.step p { color: var(--text-2); font-size: 15px; }

/* ---------- Configurator (BRACE / UMAMI fly-to-price) ---------- */
.config { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; }
.config-preview { position: relative; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--surface);
  min-height: 420px; overflow: hidden; display: grid; place-items: center; }
.config-preview .badge { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); font-family: var(--font-display);
  font-size: clamp(48px, 8vw, 110px); font-weight: 700; color: var(--brand); opacity: 0; pointer-events: none; white-space: nowrap; }
.config-group { margin-bottom: 26px; }
.config-group h4 { font-family: var(--font-mono); font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-2); margin-bottom: 12px; }
.opt-row { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 10px; }
.opt { border: 1px solid var(--line); border-radius: 14px; padding: 14px; text-align: left; background: var(--surface); transition: border-color .25s, background .25s, transform .25s; }
.opt:hover { transform: translateY(-2px); }
.opt[aria-pressed="true"] { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, transparent); }
.opt .t { font-weight: 600; font-size: 15px; } .opt .s { font-size: 12px; color: var(--text-2); }
.opt .thumb { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 8px;
  background: color-mix(in srgb, var(--brand) 18%, transparent); color: var(--brand); font-size: 16px; overflow: hidden; }
.opt .thumb img { width: 100%; height: 100%; object-fit: cover; }
.total { display: flex; align-items: baseline; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 18px; margin-top: 8px; }
.total .val { font-family: var(--font-display); font-size: 44px; font-weight: 700; display: inline-block; }
.fly-clone { position: fixed; top: 0; left: 0; z-index: 99; pointer-events: none; border-radius: 50%; overflow: hidden; } /* explicit top/left: BRACE pitfall #03 */

/* ---------- Booking calendar ---------- */
.book { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.cal { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); padding: 22px; }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.cal-head b { font-family: var(--font-display); font-size: 20px; }
.cal-head button { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; text-align: center; }
.cal-grid .dow { font-family: var(--font-mono); font-size: 11px; color: var(--text-3); padding: 6px 0; }
.cal-grid button { height: 42px; border-radius: 10px; font-size: 14px; border: 1px solid transparent; }
.cal-grid button:hover:not(:disabled) { border-color: var(--line); background: var(--surface-2); }
.cal-grid button:disabled { color: var(--text-3); opacity: .45; cursor: not-allowed; }
.cal-grid button.sel { background: var(--brand); color: var(--brand-ink); font-weight: 700; }
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 16px; }
.slots button { padding: 10px 0; border-radius: 10px; border: 1px solid var(--line); font-size: 13px; font-family: var(--font-mono); }
.slots button.sel { border-color: var(--brand); color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, transparent); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 12px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field label { display: block; font-size: 12px; font-family: var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-2); margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font: inherit; font-size: 16px; /* 16px avoids iOS zoom */ }
.field textarea { min-height: 110px; resize: vertical; }
.field select option { background: var(--bg-2); color: var(--text); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: 13px; color: var(--text-3); }
.form-status { font-size: 14px; min-height: 1.4em; }
.form-status.ok { color: var(--brand); } .form-status.err { color: #ff6b6b; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--text-2); }
.consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--brand); flex: 0 0 auto; min-height: 0; }

/* ---------- Testimonials ---------- */
.quotes { position: relative; overflow: hidden; }
.quotes-track { display: flex; transition: transform .8s var(--ease); }
.quote { flex: 0 0 100%; padding: 8px 2px; }
.quote p { font-family: var(--font-display); font-size: clamp(24px, 3.2vw, 40px); line-height: 1.2; letter-spacing: -0.01em; max-width: 30ch; }
.quote cite { display: block; margin-top: 20px; font-style: normal; color: var(--text-2); font-size: 14px; }
.dots { display: flex; gap: 8px; margin-top: 28px; }
.dots button { width: 28px; height: 3px; border-radius: 3px; background: var(--line); }
.dots button.on { background: var(--brand); }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: 22px 0; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px;
  font-family: var(--font-display); font-size: clamp(18px, 2vw, 22px); font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-size: 26px; line-height: 1; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--text-2); margin-top: 12px; max-width: 70ch; }

/* ---------- CTA band + footer ---------- */
.cta-band { text-align: center; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; left: 50%; top: 50%; width: 900px; height: 900px; transform: translate(-50%,-50%);
  background: radial-gradient(circle, color-mix(in srgb, var(--brand) 16%, transparent), transparent 62%); pointer-events: none; }
.cta-band .container { position: relative; }
.cta-band .hero-actions { justify-content: center; margin-top: 30px; }
.footer { border-top: 1px solid var(--line); padding: 64px 0 36px; font-size: 14px; color: var(--text-2); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 28px; }
.footer h5 { font-family: var(--font-mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--text-3); margin-bottom: 14px; font-weight: 500; }
.footer ul { list-style: none; display: grid; gap: 8px; }
.footer a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--text-3); }
.footer-word { font-family: var(--font-display); font-weight: 800; font-size: clamp(64px, 16vw, 240px); line-height: .85; letter-spacing: -0.04em;
  color: transparent; -webkit-text-stroke: 1px var(--line); margin-top: 40px; user-select: none; white-space: nowrap; overflow: hidden; }

/* ---------- Floating WhatsApp ---------- */
.wa-float { position: fixed; right: 18px; bottom: 18px; z-index: 85; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 10px 30px -6px rgba(37,211,102,.6); transition: transform .25s; }
.wa-float:hover { transform: scale(1.06); }

/* ---------- Legal pages ---------- */
.legal { max-width: 780px; margin: 0 auto; padding: 140px var(--gutter) 100px; }
.legal h1 { font-family: var(--font-display); font-size: clamp(36px, 5vw, 56px); line-height: 1.05; margin-bottom: 10px; }
.legal h2 { font-family: var(--font-display); font-size: 24px; margin: 36px 0 10px; }
.legal p, .legal li { color: var(--text-2); margin-bottom: 12px; }
.legal ul { padding-left: 20px; }
.legal .note { border: 1px dashed var(--line); padding: 14px 16px; border-radius: 12px; font-size: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .stage { grid-template-columns: 1fr; }
  .config, .book { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-links, .nav .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--line); padding-right: 0; }
  .steps { grid-template-columns: 1fr; }
  .form .two { grid-template-columns: 1fr; }
  .opt-row { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .slots { grid-template-columns: repeat(3, 1fr); }
  .stage-person { width: 62%; }
  .drift-hero { width: 72vw; margin-left: -36vw; margin-top: -46vw; top: 44%; }
  .drift-float { width: 22vw; } .drift-float.f1 { top: 12%; } .drift-float.f3 { bottom: 30%; }
  .drift-info { bottom: 110px; right: var(--gutter); }
  .drift-nav { bottom: 28px; }
  .scrub-rail { display: none; }
  .scrub-chapter.right { left: var(--gutter); text-align: left; }
  .footer-grid { grid-template-columns: 1fr; }
  .scroll-cue { display: none; }
  .hero-media { opacity: .55; }
}

/* Prospect demos: keep controls clear of the concept banner */
.has-demo .drift-nav { bottom: 64px; }
.has-demo .wa-float { bottom: 52px; }
@media (max-width: 760px) { .has-demo .drift-nav { bottom: 56px; } .has-demo .drift-info { bottom: 128px; } }
/* Grid children holding forms/text must be allowed to shrink (prevents forms overflowing on phones) */
.book > *, .config > *, .stage > *, .form, .form .two > *, .field { min-width: 0; }
