/* =========================================================
   BLUEROOK — STYLES
   Imports tokens.css. All values are tokens — no hardcodes.
   ========================================================= */

@import url('tokens.css');

/* ---------- RESET / BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  background: var(--color-bg);
  color: var(--color-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: auto;
  transition: background var(--dur-slow) var(--ease-out);
}
body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-base);
  color: var(--color-text);
  background: var(--color-bg);
  overflow-x: hidden;
  min-height: 100vh;
  font-feature-settings: "ss01", "ss03", "cv11";
  transition: background var(--dur-slow) var(--ease-out),
              color var(--dur-slow) var(--ease-out);
}
img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}
::selection { background: var(--color-accent); color: var(--color-bg); }

/* ---------- LOADING SCREEN ---------- */
.loader {
  position: fixed; inset: 0;
  z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-bg);
  opacity: 1;
  pointer-events: auto;
  transition: opacity 420ms var(--ease-out);
}
.loader.is-hidden {
  opacity: 0;
  pointer-events: none;
}
.loader__mark {
  width: 64px; height: 70px;
  color: #FFFFFF;
  animation: loader-pulse 1.4s ease-in-out infinite;
  will-change: transform, opacity;
}
.loader__mark svg { width: 100%; height: 100%; display: block; }
@keyframes loader-pulse {
  0%, 100% { opacity: 0.55; transform: translateZ(0) scale(0.96); }
  50%      { opacity: 1;    transform: translateZ(0) scale(1.04); }
}

/* ---------- GPU ACCELERATION (applied to actual BEM selectors) ----------
   .hero-rook → .hero__rook   |  .service-card → .svc-card
   .stat-item → .stat         |  .step-card    → .step             */
.hero__rook,
.hero__rook-wrap,
.svc-card,
.stat,
.step,
.particle,
.castling__piece,
.problem__statement,
.why-cell {
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

/* Light-tier viewport (769–1024px): cancel the splittext starting state so
   the hero headline is visible even though GSAP doesn't animate it. */
body.js-light .split-word > span,
body.js-mobile .split-word > span { transform: none; }

/* Lenis */
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; }

/* ============================================================
   AMBIENT MODE — drifting color orbs (YouTube ambient style)
   Fixed-position layer behind everything. Mix-blend-mode: screen
   so colors bloom against the dark background.
   ============================================================ */
.ambient {
  position: fixed;
  inset: 0;
  z-index: var(--z-ambient);
  pointer-events: none;
  overflow: hidden;
}
.ambient__orb {
  position: absolute;
  width: 45vmax;
  height: 45vmax;
  border-radius: 50%;
  filter: blur(var(--amb-blur));
  opacity: var(--amb-opacity);
  mix-blend-mode: screen;
  will-change: transform;
  transform: translateZ(0);
  transition: opacity var(--dur-slow) var(--ease-out);
}
.ambient__orb--1 { background: radial-gradient(circle, var(--amb-1), transparent 60%); top: -20vmax; left: -10vmax; }
.ambient__orb--2 { background: radial-gradient(circle, var(--amb-2), transparent 60%); top: 30vh;   right: -25vmax; }
.ambient__orb--3 { background: radial-gradient(circle, var(--amb-3), transparent 60%); top: 90vh;   left: 20vw; }
.ambient__orb--4 { background: radial-gradient(circle, var(--amb-4), transparent 60%); top: 160vh;  right: 0; }

/* Cursor-following glow — moves with mouse via CSS variables set in JS.
   Kept lightweight: no filter blur, just a soft radial gradient. */
.ambient__cursor {
  position: fixed;
  left: var(--mx, 50%);
  top:  var(--my, 50%);
  width: 480px; height: 480px;
  margin-left: -240px; margin-top: -240px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--color-accent-glow), transparent 70%);
  opacity: 0.18;
  mix-blend-mode: screen;
  pointer-events: none;
  will-change: transform;
  transform: translateZ(0);
  transition: opacity var(--dur-base) var(--ease-out);
}

/* Grain texture intentionally removed — full-screen mix-blend-mode: overlay
   is too expensive on most GPUs and the difference is barely visible. */
.ambient__grain { display: none; }

/* ---------- TYPOGRAPHY UTILITIES ---------- */
.display-l {
  font-family: var(--font-display);
  font-weight: 600;
  font-variation-settings: "opsz" 120, "SOFT" 50;
  font-size: var(--fs-display-l);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  margin: 0;
}
.display-m {
  font-family: var(--font-display);
  font-weight: 600;
  font-variation-settings: "opsz" 96, "SOFT" 40;
  font-size: var(--fs-display-m);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-tight);
  margin: 0;
}
.accent { color: var(--color-text-muted); font-style: italic; font-variation-settings: "opsz" 120, "SOFT" 80; }
.eyebrow {
  /* Vol. II eyebrow · Geist Mono on Paper-50, preceded by a 24px brass rule */
  display: inline-flex;
  align-items: center;
  gap: var(--space-4);
  font-family: var(--font-mono);
  font-weight: var(--fw-medium);
  font-size: var(--fs-eyebrow);
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--color-text-dim);
}
/* Brass rule replaces the legacy dot — same selectors so HTML stays unchanged */
.eyebrow .dot,
.hero__eyebrow .dot {
  width: 24px; height: 1px;
  background: var(--color-accent);
  border-radius: 0;
  transform: none;
  box-shadow: none;
  display: inline-block;
  flex-shrink: 0;
}

/* ---------- BUTTONS ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  padding: 14px 22px;
  font-family: var(--font-sans);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-small);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  border-radius: var(--radius-2);
  border: var(--border-w) solid transparent;
  transition: transform var(--dur-base) var(--ease-out),
              background var(--dur-base) var(--ease-out),
              color var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
  will-change: transform;
  overflow: hidden;
  isolation: isolate;
}
.btn svg { width: 14px; height: 14px; }
.btn--primary {
  background: linear-gradient(135deg, var(--color-accent), #E5C46A);
  color: var(--color-bg);
  box-shadow: 0 8px 28px -8px var(--color-accent-glow);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 20px 50px -10px var(--color-accent-glow); }
.btn--ghost {
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  color: var(--color-text);
  border-color: var(--glass-border);
}
.btn--ghost:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
  transform: translateY(-2px);
}
.btn--outline {
  background: transparent;
  color: var(--color-text);
  border-color: rgba(255,255,255,0.45);
}
.btn--outline:hover {
  border-color: var(--color-text);
  background: rgba(255,255,255,0.04);
  transform: translateY(-2px);
}

/* ---------- NAV ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: var(--z-nav);
  padding: var(--space-5) var(--section-pad-x);
  transition: background var(--dur-base) var(--ease-out),
              backdrop-filter var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(10, 22, 40, 0.95);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid rgba(212, 164, 55, 0.2);
}
.nav__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-7);
}
.nav__logo {
  display: inline-flex; align-items: center; gap: var(--space-3);
  color: var(--color-text);
}
.nav__logo-mark { width: 28px; height: 32px; color: var(--color-text); }
.nav__logo-text {
  /* Wordmark · Vol. II: Cormorant Italic, Title-case. Never caps. */
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0;
  font-size: 1.25rem;
  text-transform: none;
}
.nav__links {
  justify-self: center;
  display: flex; gap: var(--space-7);
  font-size: var(--fs-small);
  color: var(--color-text-muted);
}
.nav__links a { transition: color var(--dur-fast); }
.nav__links a:hover { color: var(--color-text); }
.nav__actions { display: flex; align-items: center; gap: var(--space-4); }
.nav__cta { padding: 10px 16px; font-size: 0.72rem; }

/* Theme toggle */
.theme-toggle {
  width: 40px; height: 40px;
  display: grid; place-items: center;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-2);
  color: var(--color-text-muted);
  transition: color var(--dur-fast), border-color var(--dur-fast), transform var(--dur-fast);
  position: relative;
}
.theme-toggle:hover { color: var(--color-accent); border-color: var(--color-accent); transform: translateY(-1px); }
.theme-toggle__icon { width: 18px; height: 18px; position: absolute; transition: opacity var(--dur-base), transform var(--dur-base); }
.theme-toggle__icon--void { opacity: 0; transform: rotate(-90deg) scale(0.6); }
.theme-very-dark .theme-toggle__icon--moon { opacity: 0; transform: rotate(90deg) scale(0.6); }
.theme-very-dark .theme-toggle__icon--void { opacity: 1; transform: none; }

/* ============================================================
   SECTION 1 · HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: 0 var(--section-pad-x);
  display: flex; align-items: center;
  overflow: hidden;
  isolation: isolate;
}
.hero__bg {
  position: absolute; inset: 0;
  z-index: -1;
  perspective: 900px;
}
.hero__bg-image {
  position: absolute; inset: -10% 0 0 0;
  background:
    url('https://images.unsplash.com/photo-1486406146926-c627a92ad1ab?auto=format&fit=crop&w=1920&q=90')
    center/cover no-repeat,
    var(--color-bg);
  filter: saturate(0.75) contrast(1.05) brightness(0.65);
  will-change: transform;
}
.hero__bg-overlay {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 30% 30%, rgba(13, 31, 60, 0.25), transparent 60%),
    linear-gradient(180deg, rgba(8, 18, 35, 0.50) 0%, rgba(8, 18, 35, 0.55) 60%, rgba(10, 22, 40, 0.85) 100%);
}
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(212, 164, 55, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 164, 55, 0.08) 1px, transparent 1px);
  background-size: 80px 80px;
  transform: perspective(800px) rotateX(60deg) translateY(40%) scale(1.6);
  transform-origin: center bottom;
  mask-image: radial-gradient(ellipse at center bottom, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center bottom, #000 30%, transparent 75%);
  opacity: 0.85;
}
.hero__particles { position: absolute; inset: 0; pointer-events: none; }
.particle {
  position: absolute;
  width: 2px; height: 2px;
  background: var(--color-accent);
  border-radius: 50%;
  opacity: 0;
  box-shadow: 0 0 6px var(--color-accent-glow);
}

.hero__inner {
  position: relative;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 160px 0 120px;
  width: 100%;
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-3);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--color-text-muted);
  margin-bottom: var(--space-7);
}
.hero__parallax { will-change: transform; }

.hero__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-variation-settings: "opsz" 144, "SOFT" 30, "wdth" 100;
  font-size: clamp(48px, 7vw, 96px);
  line-height: 1.04;
  letter-spacing: var(--ls-tight);
  margin: 0 0 var(--space-7);
  will-change: transform;
  padding-bottom: 0.12em;
}
.hero__title-line { display: block; white-space: nowrap; }
.hero__title-line--accent {
  color: var(--color-accent);
  background: none;
  -webkit-text-fill-color: currentColor;
  font-style: italic;
  font-size: clamp(40px, 6vw, 80px);
  font-variation-settings: "opsz" 144, "SOFT" 80;
}

@media (max-width: 1100px) {
  .hero__title-line { white-space: normal; }
}

/* Split-text words */
.split-word { display: inline-block; overflow: hidden; vertical-align: top; padding-right: 0.18em; }
.split-word > span { display: inline-block; transform: translateY(110%); will-change: transform; }

.hero__lead {
  font-family: var(--font-sans);
  font-size: var(--fs-lead);
  line-height: var(--lh-loose);
  color: var(--color-text-muted);
  max-width: 56ch;
  margin: 0 0 var(--space-8);
}
.hero__ctas { display: flex; flex-wrap: wrap; gap: var(--space-4); position: relative; z-index: 2; }

/* Floating 3D rook — absolute wrapper for parallax, inner for float anim */
.hero__rook-wrap {
  position: absolute;
  right: 0; top: 50%;
  margin-top: -40px;
  width: clamp(180px, 24vw, 360px);
  aspect-ratio: 200 / 240;
  will-change: transform;
  pointer-events: none;
  filter: drop-shadow(0 20px 60px rgba(0,0,0,0.6))
          drop-shadow(0 0 50px rgba(255,255,255,0.08))
          drop-shadow(0 0 100px rgba(30,111,217,0.22));
}
.hero__rook {
  width: 100%; height: 100%;
  transform-style: preserve-3d;
  animation: rookFloat 4s var(--ease-in-out) infinite alternate;
}
.hero__rook svg { width: 100%; height: 100%; }
@keyframes rookFloat {
  0%   { transform: rotateY(0deg) rotateX(0deg) translateY(0); }
  100% { transform: rotateY(15deg) rotateX(-4deg) translateY(-14px); }
}

.hero__scroll-hint {
  position: absolute;
  bottom: var(--space-7);
  left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: var(--space-3);
  font-size: 0.65rem;
  letter-spacing: var(--ls-eyebrow);
  color: var(--color-text-dim);
  text-transform: uppercase;
}
.hero__scroll-hint .line {
  width: 1px; height: 48px;
  background: linear-gradient(180deg, var(--color-accent), transparent);
  animation: scrollPulse 2s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { transform: scaleY(0.5); transform-origin: top; opacity: 0.4; }
  50%      { transform: scaleY(1);   transform-origin: top; opacity: 1; }
}

/* ============================================================
   SECTION 1b · CASTLING (king ⇄ rook swap on scroll)
   ============================================================ */
.castling {
  position: relative;
  padding: clamp(80px, 12vw, 160px) var(--section-pad-x);
  background:
    radial-gradient(ellipse at 50% 0%, rgba(212,164,55,0.06), transparent 60%),
    var(--color-bg);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  overflow: hidden;
}
.castling__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(40px, 6vw, 80px);
}
.castling__eyebrow { color: var(--color-accent); }

/* Stage: pieces on opposite ends, board strip between them */
.castling__stage {
  position: relative;
  width: 100%;
  max-width: 880px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0;
}

.castling__piece {
  position: relative;
  width: clamp(72px, 9vw, 120px);
  aspect-ratio: 200 / 240;
  will-change: transform;
  z-index: 2;
  filter: drop-shadow(0 12px 30px rgba(0,0,0,0.55));
}
.castling__piece svg { width: 100%; height: 100%; display: block; }
.castling__label {
  position: absolute;
  left: 50%;
  bottom: -28px;
  transform: translateX(-50%);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--color-text-dim);
}

/* Chess board strip — 8 alternating squares between the pieces */
.castling__board {
  position: relative;
  height: clamp(54px, 7vw, 80px);
  margin: 0 clamp(8px, 1.5vw, 20px);
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-1);
  overflow: hidden;
  box-shadow: 0 8px 30px -10px rgba(0,0,0,0.6) inset;
}
.castling__square {
  display: block;
  background: rgba(255,255,255,0.02);
}
.castling__square:nth-child(odd) {
  background: rgba(212,164,55,0.06);
}

/* Gold trails — thin lines that grow across the board during the swap.
   --king-trail and --rook-trail are scaled by GSAP from 0 → 1. */
.castling__trail {
  position: absolute;
  top: 50%;
  height: 2px;
  width: 100%;
  background: linear-gradient(90deg,
    transparent 0%,
    var(--color-accent) 20%,
    var(--color-accent) 80%,
    transparent 100%);
  box-shadow: 0 0 12px var(--color-accent-glow);
  transform: translateY(-50%) scaleX(0);
  pointer-events: none;
}
.castling__trail--king { transform-origin: left center; }
.castling__trail--rook {
  transform-origin: right center;
  top: calc(50% + 6px);
}

/* Caption — hidden until swap completes, then fades in */
.castling__caption {
  text-align: center;
  opacity: 0;
  transform: translateY(16px);
  will-change: transform, opacity;
}
.castling__line {
  font-family: var(--font-display);
  font-weight: 600;
  font-variation-settings: "opsz" 96, "SOFT" 40;
  font-size: clamp(1.5rem, 2.6vw + 0.4rem, 2.6rem);
  line-height: var(--lh-snug);
  letter-spacing: var(--ls-tight);
  margin: 0;
}
.castling__line--accent {
  font-style: italic;
  font-variation-settings: "opsz" 120, "SOFT" 80;
  background: linear-gradient(90deg, var(--color-accent), #E5C46A, var(--color-accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

@media (max-width: 720px) {
  .castling__stage { max-width: 100%; }
  .castling__board { height: 44px; }
  .castling__label { font-size: 10px; bottom: -22px; }
}

/* ============================================================
   SECTION 2 · TRUST BAR
   ============================================================ */
.trust {
  background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-bg) 50%, var(--color-surface) 100%);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  padding: var(--space-8) var(--section-pad-x);
  position: relative;
  z-index: var(--z-base);
}
.trust__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
}
.trust__item {
  display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2);
  opacity: 0;
  transform: translateY(20px);
}
.trust__item.is-in { opacity: 1; transform: none; transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out); }
.trust__num {
  font-family: var(--font-display);
  font-weight: 500;
  font-variation-settings: "opsz" 96, "SOFT" 30;
  font-size: clamp(2.25rem, 3vw, 3.25rem);
  line-height: 1;
  letter-spacing: var(--ls-tight);
  color: var(--color-text);
  background: linear-gradient(180deg, #F4EDE0 0%, rgba(244, 237, 224, 0.72) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}
.trust__label {
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  letter-spacing: var(--ls-wide);
  text-transform: uppercase;
  color: var(--color-text-muted);
}
.trust__sep {
  width: 10px; height: 10px;
  background: var(--color-accent);
  transform: rotate(45deg);
  flex-shrink: 0;
  box-shadow: 0 0 14px var(--color-accent-glow);
}

/* ============================================================
   SECTION 3 · PROBLEM (pinned-scrub)
   ============================================================ */
.problem {
  position: relative;
  background: transparent;
  z-index: var(--z-base);
}
.problem__sticky {
  position: relative;
  min-height: 100vh;
  padding: var(--section-pad-y) var(--section-pad-x);
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center;
  overflow: hidden;
}
.problem__eyebrow {
  position: absolute; top: var(--space-9); left: 50%;
  transform: translateX(-50%);
  font-size: var(--fs-eyebrow);
  letter-spacing: var(--ls-eyebrow);
  text-transform: uppercase;
  color: var(--color-text-dim);
}
.problem__stage {
  position: relative;
  width: 100%;
  max-width: 1100px;
  min-height: 50vh;
}
.problem__statement {
  position: absolute;
  left: 50%; top: 50%;
  width: 100%; max-width: 1100px;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 500;
  font-variation-settings: "opsz" 144, "SOFT" 40;
  font-size: clamp(2.25rem, 5.5vw, 4.75rem);
  line-height: 1.08;
  letter-spacing: var(--ls-tight);
  color: var(--color-text);
  opacity: 0;
  transform: translate3d(-50%, calc(-50% + 30px), 0);
  margin: 0;
  will-change: transform, opacity;
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out);
}
.problem__statement.is-active { opacity: 1; transform: translate3d(-50%, -50%, 0); }
.problem__statement em {
  font-style: italic;
  font-variation-settings: "opsz" 144, "SOFT" 80;
  background: linear-gradient(120deg, var(--color-accent) 0%, #E5C46A 50%, var(--color-accent) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 0 50px var(--color-accent-glow);
}
.problem__progress {
  position: absolute; bottom: var(--space-9); left: 50%;
  transform: translateX(-50%);
  display: flex; gap: var(--space-3);
}
.problem__progress .bar {
  width: 32px; height: 2px;
  background: var(--color-line);
  transition: background var(--dur-base) var(--ease-out), box-shadow var(--dur-base);
}
.problem__progress .bar.is-active {
  background: var(--color-accent);
  box-shadow: 0 0 10px var(--color-accent-glow);
}

/* ============================================================
   SECTION 4 · SERVICES (horizontal-on-vertical, GLASS cards)
   ============================================================ */
.services {
  position: relative;
  background: transparent;
  padding-top: var(--section-pad-y);
  z-index: var(--z-base);
}
.services__head {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--section-pad-x);
  display: flex; flex-direction: column; gap: var(--space-5);
  margin-bottom: var(--space-9);
}
.services__track-wrap { position: relative; height: 100vh; overflow: hidden; }
.services__track {
  position: absolute; top: 50%;
  left: 0;
  transform: translateY(-50%);
  display: flex;
  gap: var(--space-7);
  padding: 0 var(--section-pad-x);
  will-change: transform;
}
.svc-card {
  position: relative;
  flex: 0 0 clamp(340px, 34vw, 480px);
  height: clamp(460px, 66vh, 600px);
  padding: var(--space-7);
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-2);
  color: var(--color-text);
  display: flex; flex-direction: column;
  transform-style: preserve-3d;
  transition: border-color var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
  overflow: hidden;
  isolation: isolate;
  box-shadow: var(--shadow-card);
}
.svc-card::before {
  content: '';
  position: absolute; inset: 0;
  background-image: var(--svc-img);
  background-size: cover;
  background-position: center;
  filter: brightness(0.65);
  opacity: 0.45;
  z-index: -2;
  transition: opacity var(--dur-slow), transform var(--dur-slow);
}
.svc-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8,18,35,0.35) 0%, rgba(8,18,35,0.55) 60%, rgba(10, 22, 40, 0.82) 100%);
  z-index: -1;
}
.svc-card:hover { border-color: var(--color-accent); }
.svc-card:hover::before { opacity: 0.62; transform: scale(1.05); }
.svc-card[data-svc-bg="va"]     { border-top: 2px solid var(--color-accent); }
.svc-card[data-svc-bg="auto"]   { border-top: 2px solid #1E6FD9; }
.svc-card[data-svc-bg="social"] { border-top: 2px solid var(--color-accent); }
.svc-card__num {
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  color: var(--color-accent);
  letter-spacing: var(--ls-wide);
}
.svc-card__icon {
  width: 72px; height: 72px;
  color: var(--color-accent);
  margin: var(--space-6) 0 var(--space-7);
  filter: drop-shadow(0 0 24px var(--color-accent-glow));
}
.svc-card__icon svg { width: 100%; height: 100%; }
.svc-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-variation-settings: "opsz" 96, "SOFT" 30;
  font-size: clamp(1.75rem, 2.2vw, 2.25rem);
  letter-spacing: var(--ls-snug);
  margin: 0 0 var(--space-4);
  line-height: 1.05;
}
.svc-card__body {
  font-family: var(--font-sans);
  color: var(--color-text-muted);
  line-height: var(--lh-loose);
  margin: 0 0 var(--space-6);
}
.svc-card__list {
  list-style: none;
  margin: auto 0 0;
  padding: var(--space-5) 0 0;
  display: flex; flex-direction: column; gap: var(--space-3);
  border-top: 1px solid var(--glass-border);
}
.svc-card__list li {
  position: relative;
  padding-left: var(--space-5);
  font-family: var(--font-sans);
  font-size: var(--fs-small);
  color: var(--color-text-muted);
}
.svc-card__list li::before {
  content: '';
  position: absolute; left: 0; top: 8px;
  width: 8px; height: 8px;
  background: var(--color-accent);
  transform: rotate(45deg);
  box-shadow: 0 0 8px var(--color-accent-glow);
}
.svc-card__corner {
  position: absolute; top: 0; right: 0;
  width: 40px; height: 40px;
  background: linear-gradient(225deg, var(--color-accent) 0 50%, transparent 50%);
  opacity: 0.65;
}

/* ============================================================
   SECTION 5 · PROCESS  (TRUE sticky-stack — fix)
   Each step is position: sticky so it actually stacks on top
   of the previous one. GSAP scales the previous as next arrives.
   ============================================================ */
.process {
  position: relative;
  background: transparent;
  padding: var(--section-pad-y) var(--section-pad-x);
  z-index: var(--z-base);
}
.process__head {
  max-width: var(--max-width);
  margin: 0 auto var(--space-9);
  display: flex; flex-direction: column; gap: var(--space-5);
}
.process__stack {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  /* Each step ~80vh tall in scroll terms — extra height creates space for the
     sticky stack to play out */
}
.step {
  position: sticky;
  top: 120px;
  min-height: 460px;
  background: var(--glass-bg-strong);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-2);
  padding: var(--space-8) var(--space-8) var(--space-8) calc(var(--space-8) + 80px);
  margin-bottom: var(--space-8);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-8);
  align-items: start;
  transform-origin: top center;
  will-change: transform, opacity; /* no filter scrubs — kills GPU */
  box-shadow: var(--shadow-card);
  overflow: hidden;
  isolation: isolate;
}
.step::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 0% 0%, var(--color-accent-soft), transparent 60%);
  z-index: -1;
}
/* Make later steps appear above earlier ones so they "stack on top" */
.step[data-step="0"] { z-index: 1; }
.step[data-step="1"] { z-index: 2; }
.step[data-step="2"] { z-index: 3; }
.step[data-step="3"] { z-index: 4; }
.step__rail {
  position: absolute;
  left: 40px; top: 90px; bottom: 24px;
  width: 2px;
  background: linear-gradient(180deg, var(--color-accent) 0%, #1E6FD9 100%);
}
.step__num {
  position: absolute;
  left: 24px; top: var(--space-8);
  width: 34px; height: 34px;
  display: grid; place-items: center;
  background: var(--color-bg);
  border: 1px solid #1E6FD9;
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #1E6FD9;
  letter-spacing: 0;
  box-shadow: 0 0 16px rgba(30, 111, 217, 0.35);
}
.step__body { grid-column: 2; min-width: 0; }
.step__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-variation-settings: "opsz" 144, "SOFT" 40;
  font-size: clamp(1.75rem, 3vw, 2.75rem);
  letter-spacing: var(--ls-tight);
  margin: 0 0 var(--space-3);
  line-height: 1.05;
}
.step__lead {
  font-family: var(--font-display);
  font-style: italic;
  font-variation-settings: "opsz" 96, "SOFT" 80;
  font-size: var(--fs-lead);
  color: var(--color-accent);
  margin: 0 0 var(--space-4);
  font-weight: 500;
}
.step__copy {
  font-family: var(--font-sans);
  color: var(--color-text-muted);
  line-height: var(--lh-loose);
  margin: 0;
  max-width: 60ch;
}

/* ============================================================
   SECTION 6 · WHY (2x2 grid, GLASS cells)
   ============================================================ */
.why {
  background: transparent;
  border-top: 1px solid var(--glass-border);
  padding: var(--section-pad-y) var(--section-pad-x);
  position: relative;
  z-index: var(--z-base);
}
.why__head {
  max-width: var(--max-width);
  margin: 0 auto var(--space-9);
  display: flex; flex-direction: column; gap: var(--space-5);
}
.why__grid {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}
.why-cell {
  position: relative;
  background: var(--glass-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--glass-border);
  border-left: 2px solid var(--color-accent);
  border-radius: var(--radius-2);
  padding: var(--space-9) var(--space-7);
  opacity: 0;
  transform: translate3d(0, 40px, 0);
  will-change: transform, opacity;
  transition: opacity var(--dur-slow) var(--ease-out),
              transform var(--dur-slow) var(--ease-out),
              background var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
  overflow: hidden;
  isolation: isolate;
}
.why-cell:nth-child(odd)  { background: var(--color-surface); }
.why-cell:nth-child(even) { background: #060d18; }
.why-cell::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(circle at 100% 0%, var(--color-accent-soft), transparent 50%);
  z-index: -1;
  opacity: 0;
  transition: opacity var(--dur-base);
}
.why-cell.is-in { opacity: 1; transform: none; }
.why-cell:hover {
  border-color: var(--color-accent);
  background: var(--glass-bg-strong);
}
.why-cell:hover::before { opacity: 1; }
.why-cell__no {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-variation-settings: "opsz" 144, "SOFT" 80;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  letter-spacing: var(--ls-tight);
  background: linear-gradient(120deg, var(--color-accent) 0%, #E8CC72 50%, var(--color-accent) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
  margin-bottom: var(--space-3);
}
.why-cell__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-variation-settings: "opsz" 96, "SOFT" 30;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  letter-spacing: var(--ls-snug);
  line-height: 1.1;
  margin: 0 0 var(--space-5);
  color: var(--color-text);
}
.why-cell__copy {
  font-family: var(--font-sans);
  color: var(--color-text-muted);
  line-height: var(--lh-loose);
  max-width: 48ch;
  margin: 0;
}

/* ============================================================
   SECTION 7 · CONTACT
   ============================================================ */
.contact {
  background: linear-gradient(180deg, #060d18 0%, var(--color-bg) 100%);
  padding: var(--section-pad-y) var(--section-pad-x);
  position: relative;
  overflow: hidden;
  z-index: var(--z-base);
}
.contact::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, var(--color-accent-soft), transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(94, 230, 224, 0.06), transparent 50%);
  pointer-events: none;
}
.contact__inner {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: var(--space-6);
}
.contact__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-variation-settings: "opsz" 144, "SOFT" 40;
  font-size: var(--fs-display-l);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-tight);
  margin: 0;
  text-shadow: 0 0 60px rgba(212, 164, 55, 0.15);
}
.contact__title .accent {
  background: linear-gradient(120deg, #E0E8F5 0%, var(--color-text-muted) 50%, #B3C2D6 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  font-style: italic;
}
.contact__lead {
  font-family: var(--font-sans);
  font-size: var(--fs-lead);
  color: var(--color-text-muted);
  max-width: 56ch;
  line-height: var(--lh-loose);
  margin: 0;
}
.contact__calendly {
  width: 100%;
  min-width: 320px;
  height: 630px;
  margin-top: var(--space-6);
  background: var(--color-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-2);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

/* Booking buttons row — gold primary + outlined secondary */
.contact__cta-row {
  margin-top: var(--space-6);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}
.contact__meta {
  margin: var(--space-4) 0 0;
  font-family: var(--font-mono);
  font-size: var(--fs-small);
  letter-spacing: var(--ls-wide);
  color: var(--color-text-dim);
  text-transform: uppercase;
}
@media (max-width: 720px) {
  .contact__cta-row { flex-direction: column; align-items: stretch; }
  .contact__cta-row .btn { justify-content: center; }
}
.contact__email {
  margin-top: var(--space-5);
  font-family: var(--font-mono);
  font-size: var(--fs-lead);
  color: var(--color-accent);
  border-bottom: 1px solid var(--color-accent);
  padding-bottom: 4px;
  transition: opacity var(--dur-fast);
}
.contact__email:hover { opacity: 0.75; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: transparent;
  padding: var(--space-7) var(--section-pad-x) var(--space-6);
  position: relative;
  z-index: var(--z-base);
}
.footer__rule {
  max-width: var(--max-width);
  margin: 0 auto var(--space-7);
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
  box-shadow: 0 0 20px var(--color-accent-glow);
}
.footer__inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-7);
}
.footer__logo {
  display: inline-flex; align-items: center; gap: var(--space-3);
  color: var(--color-text);
}
.footer__logo svg { width: 26px; height: 30px; }
.footer__logo span {
  /* Wordmark · Vol. II: Cormorant Italic, Title-case. */
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0;
  font-size: 1.15rem;
  text-transform: none;
}
.footer__nav {
  justify-self: center;
  display: flex; gap: var(--space-7);
  font-size: var(--fs-small);
  color: var(--color-text-muted);
}
.footer__nav a:hover { color: var(--color-text); }
.footer__email { font-family: var(--font-mono); font-size: var(--fs-small); color: var(--color-accent); }

/* Footer delegate CTA — "Ready to delegate? → Book a free call" */
.footer__delegate {
  max-width: var(--max-width);
  margin: var(--space-7) auto 0;
  padding-top: var(--space-6);
  border-top: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  font-family: var(--font-display);
  font-weight: 600;
  font-variation-settings: "opsz" 96, "SOFT" 40;
  font-size: clamp(1.25rem, 1.5vw + 0.4rem, 1.75rem);
  color: var(--color-text);
}
.footer__delegate-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  color: var(--color-accent);
  font-style: italic;
  font-variation-settings: "opsz" 120, "SOFT" 80;
  transition: gap var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
}
.footer__delegate-link:hover { color: #E5C46A; }
.footer__delegate-link:hover .footer__delegate-arrow { transform: translateX(6px); }
.footer__delegate-arrow {
  display: inline-block;
  transition: transform var(--dur-base) var(--ease-out);
  font-style: normal;
}

.footer__legal {
  max-width: var(--max-width);
  margin: var(--space-7) auto 0;
  padding-top: var(--space-5);
  border-top: 1px solid var(--glass-border);
  display: flex; justify-content: space-between; gap: var(--space-5);
  font-size: var(--fs-small);
  color: var(--color-text-dim);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 960px) {
  .nav__inner { grid-template-columns: auto auto; }
  .nav__links { display: none; }
  .hero__inner { padding: 140px 0 100px; }
  .hero__rook-wrap {
    width: clamp(140px, 30vw, 220px);
    opacity: 0.5;
    right: 0; top: 120px; margin-top: 0;
  }
  .why__grid { grid-template-columns: 1fr; }
  .step {
    padding: var(--space-7) var(--space-6) var(--space-7) calc(var(--space-6) + 64px);
    grid-template-columns: 1fr;
    top: 90px;
  }
  .step__num { left: 18px; }
  .step__rail { left: 32px; }
  .footer__inner { grid-template-columns: 1fr; text-align: left; }
  .footer__nav { justify-self: start; flex-wrap: wrap; gap: var(--space-5); }
  .footer__legal { flex-direction: column; gap: var(--space-2); }
  .trust__sep { display: none; }
  .trust__inner { gap: var(--space-7); }
}
@media (max-width: 600px) {
  .hero__rook-wrap { display: none; }
  .services__track-wrap { height: auto; }
  .services__track { position: static; transform: none; flex-direction: column; padding: 0 var(--section-pad-x); }
  .svc-card { flex: 0 0 auto; width: 100%; }
  .step { position: relative; top: 0; }
}

/* Reduced motion only — animations off, content visible (mobile uses IO observer instead) */
@media (prefers-reduced-motion: reduce) {
  .hero__rook { animation: none; }
  .split-word > span { transform: none !important; }
  [data-fade], [data-reveal], .trust__item, .why-cell {
    opacity: 1 !important; transform: none !important;
  }
  .problem__statement { position: relative; opacity: 1; transform: none; margin-bottom: var(--space-7); left: auto; top: auto; }
  .problem__stage { flex-direction: column; gap: var(--space-7); }
  .hero__grid { display: none; }
  .ambient__orb { animation: none; }
}

/* ============================================================
   HAMBURGER + MOBILE MENU OVERLAY
   (markup present at all sizes; visibility controlled by media)
   ============================================================ */
.nav__hamburger {
  display: none; /* visible only at mobile breakpoint */
  width: 44px; height: 44px;
  padding: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 6px;
}
.nav__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--color-accent);
  transition: transform 280ms var(--ease-out), opacity 200ms var(--ease-out);
}
.nav__hamburger[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__hamburger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__hamburger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0;
  z-index: 9000;
  background: rgba(5, 5, 8, 0.75);
  backdrop-filter: blur(16px) saturate(160%);
  -webkit-backdrop-filter: blur(16px) saturate(160%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 80px 40px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-16px);
  transition: opacity 360ms cubic-bezier(0.4,0,0.2,1), transform 360ms cubic-bezier(0.4,0,0.2,1);
}
@keyframes menuFadeIn {
  from { opacity: 0; transform: translateY(-16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.mobile-menu.is-open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  animation: menuFadeIn 360ms cubic-bezier(0.4,0,0.2,1) both;
}
.mobile-menu__close {
  position: absolute;
  top: 20px; right: 20px;
  width: 48px; height: 48px;
  color: rgba(255,255,255,0.6);
  background: transparent; border: none;
  transition: color 200ms;
}
.mobile-menu__close:hover { color: var(--color-text); }
.mobile-menu__close svg { width: 22px; height: 22px; }
.mobile-menu__nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}
.mobile-menu__nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(36px, 10vw, 52px);
  letter-spacing: -0.02em;
  text-align: center;
  color: rgba(255,255,255,0.9);
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  width: 100%;
  transition: color 200ms, letter-spacing 200ms;
}
.mobile-menu__nav a:first-child { border-top: 1px solid rgba(255,255,255,0.06); }
.mobile-menu__nav a:hover, .mobile-menu__nav a:active { color: var(--color-accent); letter-spacing: -0.015em; }
.mobile-menu__cta {
  position: absolute;
  left: 32px; right: 32px;
  bottom: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 56px;
  background: var(--color-accent);
  color: #050508;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.mobile-menu__cta svg { width: 14px; height: 14px; }

/* fadeInUp + reveal-on-view (used at mobile tier) */
@keyframes fadeInUp {
  from { opacity: 0; transform: translate3d(0, 24px, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
.reveal-on-view { opacity: 0; }
.reveal-on-view.is-visible {
  animation: fadeInUp 0.6s ease-out both;
}

/* Mobile-only floating action button — hidden by default; flex inside mobile media query */
.m-cta-bar, .m-fab { display: none; }

/* ============================================================
   MOBILE — From-scratch mobile-first landing  (<=768px)
   Native smooth scroll. Sticky section headers. CSS-driven.
   IntersectionObserver fade-up reveals. No WebGL. No Lenis.
   No GSAP ScrollTrigger. No JS scroll-jacking.
   ============================================================ */
@media (max-width: 768px) {

  /* ── TOKENS · Brand Standards Vol. II ─────────────── */
  :root {
    --m-bg: #08111E;                       /* Midnight */
    --m-surface: #0D1828;                  /* Midnight raised */
    --m-surface-2: #11203A;                /* Midnight raised x2 */
    --m-text: #F4EDE0;                     /* Paper */
    --m-text-dim: rgba(244, 237, 224, 0.70);   /* paper-70 */
    --m-text-fade: rgba(244, 237, 224, 0.32);  /* paper-32 */
    --m-gold: #D4A437;                     /* Brass */
    --m-gold-soft: #E8C56A;                /* Brass, lifted */
    --m-slate: #1C3F8A;                    /* Bluerook Blue (mark voice) */
    --m-border: rgba(244, 237, 224, 0.08); /* paper-08 */
    --m-nav-h: 56px;
    --m-cta-h: 72px;
    --m-tap: 48px; /* min interaction radius — luxury editorial spec */
    --m-pad: clamp(1.25rem, 5vw, 2.5rem); /* fluid horizontal padding */
    --m-rhythm: clamp(3rem, 8vw, 5rem); /* fluid vertical rhythm */
  }

  /* ── FOUNDATION ───────────────────────────────────── */
  * { -webkit-tap-highlight-color: transparent; }
  html {
    scroll-behavior: smooth;
    scroll-snap-type: none;
    background: var(--m-bg);
    -webkit-text-size-adjust: 100%;
  }
  body {
    background: var(--m-bg); color: var(--m-text);
    font-family: var(--font-sans);
    font-size: 15px; line-height: 1.65;
    overflow-x: hidden; max-width: 100dvw;
    /* leave room at bottom so floating FAB never overlaps last-section content */
    padding-bottom: calc(var(--m-tap) + var(--m-nav-h) + env(safe-area-inset-bottom, 0px));
  }

  /* ── HIDE DESKTOP-ONLY HEAVY BITS ────────────────── */
  .ambient__cursor, .ambient__grain,
  .hero__grid, .hero__scroll-hint,
  .hero__bg-image, .hero__bg-overlay, .hero__particles,
  .castling__board, .castling__trail,
  .nav__links, .theme-toggle,
  .svc-card__corner, .step__rail,
  .problem__progress { display: none !important; }

  /* Decorative orbs disabled on mobile — focus on typography */
  .ambient, .ambient__orb { display: none !important; }

  /* ── TOP NAV (glassmorphism) ──────────────────────── */
  .nav {
    position: fixed; top: 0; left: 0; right: 0;
    height: var(--m-nav-h); padding: 0 var(--m-pad);
    background: rgba(5,5,8,0.55);
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    border-bottom: 1px solid rgba(255,255,255,0.06);
    z-index: 100;
    display: flex; align-items: center;
  }
  .nav.is-scrolled {
    background: rgba(5,5,8,0.78);
    border-bottom-color: rgba(212,164,55,0.18);
  }
  .nav__inner {
    grid-template-columns: 1fr auto; gap: 0;
    align-items: center; width: 100%;
  }
  .nav__logo {
    display: inline-flex; align-items: center; gap: 8px;
    min-height: var(--m-tap);
  }
  .nav__logo-text {
    /* Wordmark · Vol. II: Cormorant Italic, Title-case. */
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 500;
    font-size: 17px;
    letter-spacing: 0;
    text-transform: none;
  }
  .nav__logo-mark { width: 20px; height: 23px; }
  .nav__actions .nav__cta { display: none; }
  .nav__hamburger {
    display: inline-flex; align-items: center; justify-content: center;
    width: var(--m-tap); height: var(--m-tap);
    background: transparent;
    border: 1px solid rgba(255,255,255,0.14);
    border-radius: 2px;
  }

  /* Legacy bottom bar — hidden in favor of FAB */
  .m-cta-bar { display: none !important; }

  /* ── FLOATING FAB · "Book a Call" (heavy glassmorphism) ────── */
  .m-fab {
    display: inline-flex; align-items: center; gap: 8px;
    position: fixed;
    right: 24px;
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    height: 52px; min-height: var(--m-tap);
    padding: 0 20px;
    border-radius: 999px;
    background: rgba(212, 164, 55, 0.18);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(212, 164, 55, 0.45);
    box-shadow:
      0 8px 24px rgba(0, 0, 0, 0.45),
      0 0 0 1px rgba(255, 255, 255, 0.04) inset,
      0 0 28px rgba(212, 164, 55, 0.22);
    color: var(--m-text);
    font-family: var(--font-sans); font-weight: 600;
    font-size: 13px; letter-spacing: 0.08em;
    text-transform: uppercase; text-decoration: none;
    z-index: 99;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
  }
  .m-fab:active {
    transform: scale(0.96);
    background: rgba(212, 164, 55, 0.28);
  }
  .m-fab__label { white-space: nowrap; }
  .m-fab__icon {
    width: 14px; height: 14px; color: var(--m-gold);
    flex-shrink: 0;
  }

  /* ── SECTION BASELINE ─────────────────────────────── */
  section, .footer {
    position: relative; background: var(--m-bg); padding: 0;
    scroll-margin-top: var(--m-nav-h);
  }

  /* ── STICKY SECTION HEADERS ──────────────────────── */
  .services__head, .process__head, .why__head {
    position: sticky;
    top: var(--m-nav-h);
    z-index: 5;
    margin: 0;
    padding: 16px var(--m-pad) 14px;
    background: rgba(5,5,8,0.85);
    backdrop-filter: blur(14px) saturate(140%);
    -webkit-backdrop-filter: blur(14px) saturate(140%);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    max-width: 100%; text-align: left;
  }
  .services__head h2,
  .process__head h2,
  .why__head h2 {
    font-family: var(--font-display); font-weight: 700;
    font-size: clamp(22px, 6vw, 28px);
    line-height: 1.1; letter-spacing: -0.02em;
    margin: 4px 0 0; color: var(--m-text);
  }
  /* Keep <br> in sticky headers for natural line breaks */
  .services__head .eyebrow,
  .process__head .eyebrow,
  .why__head .eyebrow {
    font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--m-gold); font-weight: 500;
  }

  /* ── FADE-UP REVEALS (IntersectionObserver) ──────── */
  [data-fade],
  [data-reveal],
  [data-stack],
  .svc-card,
  .step,
  .why-cell,
  .trust__item,
  .castling__caption,
  .problem__statement {
    opacity: 0;
    transform: translate3d(0, 20px, 0);
    transition:
      opacity 700ms ease-out,
      transform 700ms cubic-bezier(0.22, 0.61, 0.36, 1);
    will-change: opacity, transform;
  }
  .is-visible,
  [data-fade].is-visible,
  [data-reveal].is-visible,
  [data-stack].is-visible {
    opacity: 1 !important;
    transform: translate3d(0, 0, 0) !important;
  }

  /* ── HERO ────────────────────────────────────────── */
  .hero {
    /* svh = small viewport height (excludes mobile UI bars when expanded) → no jumping */
    min-height: 100svh;
    /* Standardized rhythm: fluid block padding (top accounts for fixed nav) */
    padding-block: calc(var(--m-nav-h) + var(--m-rhythm)) var(--m-rhythm);
    padding-inline: var(--m-pad);
    margin-bottom: 0; /* explicitly: no margin gap to next section */
    display: flex; flex-direction: column; justify-content: flex-start;
    text-align: center; overflow: hidden;
  }
  /* Decorative radial glows stripped on mobile — focus on typography */
  .hero::before, .hero::after { content: none; }
  .hero__inner {
    position: relative; z-index: 2;
    width: 100%; max-width: 100%; padding: 0;
    display: flex; flex-direction: column; align-items: center; gap: 18px;
    margin-top: 12px;
  }
  .hero__rook-wrap {
    display: block !important; opacity: 1 !important;
    position: relative !important;
    top: auto !important; right: auto !important; left: auto !important; bottom: auto !important;
    transform: none !important;
    width: 72px !important; height: 86px !important;
    margin: 0 !important; order: 1;
    aspect-ratio: auto !important;
    filter: drop-shadow(0 0 16px rgba(255,255,255,0.18))
            drop-shadow(0 0 36px rgba(30,111,217,0.25));
  }
  .hero__rook { width: 100%; height: 100%; }
  .hero__eyebrow {
    order: 2;
    font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--m-gold); margin: 4px 0 0;
  }
  .hero__parallax { order: 3; transform: none !important; max-width: 100%; }
  .hero__title {
    font-family: var(--font-display); font-weight: 700;
    /* Fluid display scale — editorial luxury */
    font-size: clamp(2rem, 4vw + 1.4rem, 3rem);
    line-height: 1.1;
    letter-spacing: -0.025em;
    color: var(--m-text); margin: 0;
    font-variation-settings: "opsz" 144, "SOFT" 20;
    text-wrap: balance;
  }
  .hero__title-line { display: block; white-space: normal; }
  .hero__title-line--accent {
    color: var(--m-gold); font-style: italic;
    -webkit-text-fill-color: currentColor; background: none;
    display: block; margin-top: 4px;
    font-size: inherit; line-height: 1.1;
  }
  .hero__lead {
    order: 4;
    font-size: clamp(0.875rem, 1vw + 0.6rem, 1.05rem);
    line-height: 1.65;
    max-width: 32ch; margin: 8px auto 0;
    color: var(--m-text-dim);
    text-wrap: pretty;
  }
  /* In-content hero CTAs hidden — bottom CTA bar handles it */
  .hero__ctas { display: none !important; }

  /* ── TRUST BAR — 2x2 grid ────────────────────────── */
  .trust {
    background: #060d1a;
    padding-block: var(--m-rhythm);
    padding-inline: var(--m-pad);
    position: relative;
  }
  .trust__inner {
    display: grid; grid-template-columns: repeat(2, 1fr);
    gap: 22px 16px;
  }
  .trust__sep { display: none; }
  .trust__item, .stat {
    text-align: center; padding: 4px;
    background: transparent !important; border: none !important;
    box-shadow: none !important;
    display: flex; flex-direction: column; align-items: center; gap: 4px;
  }
  .stat__num, .trust__num {
    font-family: var(--font-display); font-weight: 700;
    /* Fluid display metric */
    font-size: clamp(1.75rem, 2vw + 1rem, 2.5rem);
    line-height: 1; letter-spacing: -0.04em;
    background: linear-gradient(180deg, #F4EDE0 0%, rgba(244,237,224,0.72) 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
  }
  .stat__label, .trust__label {
    font-size: 9px; letter-spacing: 0.22em;
    text-transform: uppercase; color: var(--m-text-dim);
  }

  /* ── CASTLING ────────────────────────────────────── */
  .castling {
    min-height: auto;                  /* kill any inherited 100vh dead-space */
    padding-block: var(--m-rhythm);
    padding-inline: var(--m-pad);
    margin-block: 0;
    text-align: center;
    background: linear-gradient(180deg, var(--m-bg) 0%, #080d18 50%, var(--m-bg) 100%);
    border: none; position: relative; overflow: hidden;
  }
  .castling__inner { min-height: auto; padding: 0; }
  .castling::before { content: none; }
  .castling > * { position: relative; z-index: 1; }
  .castling__eyebrow {
    font-size: 9px; letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--m-gold); margin-bottom: 24px;
  }
  .castling__stage {
    display: flex; align-items: center; justify-content: center;
    gap: 32px; margin: 0 auto 24px;
  }
  .castling__piece {
    width: 64px; height: auto;
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    filter: drop-shadow(0 0 14px rgba(255,255,255,0.12))
            drop-shadow(0 0 28px rgba(30,111,217,0.22));
  }
  .castling__piece svg { width: 100%; height: auto; }
  .castling__label {
    font-size: 9px; letter-spacing: 0.2em;
    text-transform: uppercase; color: var(--m-text-dim);
  }
  .castling__caption { transform: translate3d(0, 16px, 0); }
  .castling__caption.is-visible { transform: translate3d(0, 0, 0); }
  .castling__line {
    font-family: var(--font-display); font-weight: 500;
    /* Fluid subheading */
    font-size: clamp(1.1rem, 2vw + 1rem, 1.75rem);
    line-height: 1.3;
    color: var(--m-text-dim); margin: 0;
    text-wrap: balance;
  }
  .castling__line--accent {
    color: var(--m-gold); font-style: italic; margin-top: 4px;
  }

  /* ── PROBLEM (diagnosis) — CSS-native sticky pin ─── */
  /* When .problem reaches top of viewport it pins; the next section
     (.services) then slides up over it with a higher z-index. No JS. */
  .problem {
    position: sticky;
    top: 0;
    z-index: 1;
    min-height: 100svh;                /* gives the pin a felt duration */
    padding-block: var(--m-rhythm);
    padding-inline: var(--m-pad);
    text-align: center;
    background: var(--m-bg);           /* solid bg so following section covers cleanly */
    overflow: hidden;
    display: flex; flex-direction: column; justify-content: center;
  }
  .problem::before { content: none; }
  .problem__sticky {
    position: relative !important;
    height: auto !important; width: 100%;
    z-index: 1;
  }
  .problem__eyebrow {
    font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase;
    color: var(--m-gold); margin-bottom: 28px; position: static;
    transform: none;
  }
  .problem__stage {
    position: static; height: auto; min-height: auto;
    display: flex; flex-direction: column; gap: 0;  /* per-statement margin handles spacing */
  }
  .problem__statement {
    position: static !important;
    font-family: var(--font-display); font-weight: 500;
    font-size: clamp(2rem, 7vw, 2.4rem); /* min 2rem / 32px per spec */
    line-height: 1.2;
    color: var(--m-text);
    margin: 0 0 1.5rem;                /* clear separation between text blocks */
    width: 100%; padding: 0;
  }
  .problem__statement:last-child { margin-bottom: 0; }
  .problem__statement em {
    font-style: normal;
    background: linear-gradient(120deg, var(--m-gold) 0%, var(--m-gold-soft) 50%, var(--m-gold) 100%);
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
  }

  /* Sections AFTER .problem need higher z-index + solid bg so they
     slide up and visually cover the pinned diagnosis. */
  .services,
  .process,
  .why,
  .contact,
  .footer {
    position: relative;
    z-index: 2;
  }

  /* ── SERVICES — fluid vertical stack (luxury editorial) ─── */
  .services {
    background: var(--m-bg);
    padding-block: 0 var(--m-rhythm);
    position: relative; overflow: clip;
  }
  .services::before { content: none; }
  .services__track-wrap {
    height: auto; overflow: visible;
    padding: 24px 0 0; position: relative; z-index: 1;
  }
  .services__track {
    position: static; transform: none !important;
    display: flex; flex-direction: column;
    gap: 2.5rem; /* high breathing space between cards */
    padding: 0 var(--m-pad);
    width: 100%;
    overflow: visible;
    scroll-snap-type: none;
  }
  .svc-card {
    flex: 0 0 auto; width: 100%;
    height: auto; min-height: 0;
    position: relative; isolation: isolate;
    border-radius: 4px;
    padding: clamp(1.25rem, 4vw, 2rem);
    background: var(--m-surface);
    border: 1px solid rgba(255,255,255,0.06);
    box-shadow: 0 10px 28px rgba(0,0,0,0.5);
    display: flex; flex-direction: column;
    overflow: hidden;
    /* IO will reveal */
  }
  .svc-card.is-visible { transform: translate3d(0, 0, 0); }
  .svc-card::before {
    opacity: 0.18 !important;
    filter: brightness(0.5) saturate(0.7) !important;
    border-radius: 4px;
  }
  .svc-card::after {
    background: linear-gradient(180deg,
      rgba(5,5,8,0.55) 0%,
      rgba(5,5,8,0.88) 60%,
      var(--m-surface) 100%) !important;
    border-radius: 4px;
  }
  .svc-card__num {
    position: relative; z-index: 2;
    font-family: var(--font-mono); font-size: 10px; letter-spacing: 4px;
    color: var(--m-gold); opacity: 0.9; margin-bottom: 16px;
  }
  .svc-card__icon {
    position: relative; z-index: 2;
    width: 40px; height: 40px; color: var(--m-gold);
    background: transparent !important; border: none !important;
    padding: 0; margin: 0 0 14px;
    display: flex; align-items: center; justify-content: center;
  }
  .svc-card__icon svg { width: 100%; height: 100%; }
  .svc-card__title {
    position: relative; z-index: 2;
    font-family: var(--font-display); font-weight: 700;
    /* Fluid subheading */
    font-size: clamp(1.25rem, 2vw + 1rem, 1.75rem);
    line-height: 1.1; letter-spacing: -0.02em;
    color: var(--m-text); margin: 0 0 10px;
    text-wrap: balance;
  }
  .svc-card__body {
    position: relative; z-index: 2;
    font-size: 13px; line-height: 1.6;
    color: var(--m-text-dim); margin: 0;
  }
  .svc-card__list {
    position: relative; z-index: 2;
    margin: 14px 0 0; padding: 0;
    list-style: none; display: flex; flex-direction: column; gap: 8px;
    font-size: 12px; color: var(--m-text-dim);
  }
  .svc-card__list li {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding: 8px 0 0 14px; position: relative;
  }
  .svc-card__list li::before {
    content: "—"; position: absolute; left: 0; top: 8px;
    color: var(--m-gold);
  }
  .svc-card__list li::after { content: none; }
  .svc-card[data-svc-bg="va"]     { border-top: 2px solid var(--m-gold); }
  .svc-card[data-svc-bg="auto"]   { border-top: 2px solid var(--m-slate); }
  .svc-card[data-svc-bg="social"] { border-top: 2px solid var(--m-gold); }

  /* Swipe hint removed — vertical stack on mobile */
  .services__track-wrap::after { content: none; }

  /* ── PROCESS — vertical stepped cards ───────────── */
  .process {
    background: var(--m-bg);
    padding-block: 0 var(--m-rhythm);
    position: relative;
  }
  .process__steps, .process__stack {
    padding: 24px var(--m-pad) 0;
    display: flex; flex-direction: column; gap: 14px;
    position: static;
  }
  .process__steps::before, .process__stack::before { display: none; }
  .step {
    position: relative;
    background: var(--m-surface) !important;
    border: 1px solid rgba(255,255,255,0.06) !important;
    border-left: 3px solid var(--m-gold) !important;
    border-radius: 3px;
    padding: 20px 18px !important;
    min-height: auto !important;
    grid-template-columns: 1fr !important;
    box-shadow: 0 6px 20px rgba(0,0,0,0.4) !important;
    top: auto !important;
  }
  .step::before { display: none; }
  .step__num {
    position: relative !important; left: auto !important; top: auto !important;
    font-family: var(--font-mono); font-size: 10px; letter-spacing: 3px;
    color: var(--m-gold) !important; opacity: 1;
    background: none !important; border: none !important; box-shadow: none !important;
    -webkit-text-fill-color: var(--m-gold) !important;
    -webkit-background-clip: initial !important; background-clip: initial !important;
    line-height: 1; margin-bottom: 10px;
  }
  .step__title {
    font-family: var(--font-display); font-weight: 600;
    /* Fluid subheading */
    font-size: clamp(1.1rem, 2vw + 1rem, 1.75rem);
    line-height: 1.1;
    color: var(--m-text); margin: 0 0 6px;
    text-wrap: balance;
  }
  .step__lead {
    font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
    color: var(--m-gold); margin: 0 0 8px; opacity: 0.85;
  }
  .step__copy, .step__body {
    font-size: 13px; line-height: 1.65;
    color: var(--m-text-dim); margin: 0;
  }

  /* ── WHY ─────────────────────────────────────────── */
  .why {
    background: var(--m-bg);
    padding-block: 0 var(--m-rhythm);
    position: relative; overflow: clip;
  }
  .why::before { content: none; }
  .why__grid {
    grid-template-columns: 1fr !important;
    gap: 12px;
    padding: 24px var(--m-pad) 0;
    margin: 0; position: relative; z-index: 1;
  }
  .why-cell {
    background: rgba(13,19,34,0.6);
    border: 1px solid rgba(255,255,255,0.06);
    border-left: 3px solid var(--m-gold);
    border-radius: 3px;
    padding: 18px 18px 18px 20px;
    text-align: left;
    box-shadow: none;
    backdrop-filter: none; -webkit-backdrop-filter: none;
  }
  .why-cell__no { display: none; }
  .why-cell__title {
    font-family: var(--font-display); font-style: italic; font-weight: 500;
    /* Fluid subheading */
    font-size: clamp(1.1rem, 2vw + 1rem, 1.75rem);
    line-height: 1.2;
    color: var(--m-text); margin: 0 0 6px;
    text-wrap: balance;
  }
  .why-cell__title::before { display: none; }
  .why-cell__copy {
    font-size: 13px; line-height: 1.6;
    color: var(--m-text-dim); margin: 0;
  }

  /* ── CONTACT ─────────────────────────────────────── */
  .contact {
    background: linear-gradient(180deg, #050B14 0%, var(--m-bg) 100%);
    padding-block: var(--m-rhythm);
    padding-inline: var(--m-pad);
    text-align: center;
    position: relative; overflow: hidden;
  }
  .contact::before { content: none; }
  .contact > * { position: relative; z-index: 1; }
  .contact__title {
    font-family: var(--font-display); font-weight: 700;
    font-size: clamp(26px, 7vw, 32px); line-height: 1.1;
    color: var(--m-text); margin: 0 0 14px;
  }
  .contact__title .accent { color: var(--m-gold); font-style: normal; }
  .contact__lead {
    font-size: 14px; color: var(--m-text-dim);
    max-width: 300px; margin: 0 auto 24px;
  }
  .contact__calendly {
    height: 540px; width: 100%;
    border: none !important; background: transparent !important;
    box-shadow: none !important; border-radius: 0;
    margin: 12px 0;
  }
  .contact__cta-row {
    display: flex; flex-direction: column; gap: 10px;
    margin: 18px 0 0; width: 100%;
  }
  .contact__cta-row .btn {
    width: 100%; height: 48px; min-height: var(--m-tap);
    border-radius: 2px;
    font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
    display: inline-flex; align-items: center; justify-content: center;
  }
  .contact__cta-row .btn--primary {
    background: var(--m-gold); color: var(--m-bg); box-shadow: none;
  }
  .contact__cta-row .btn--outline {
    background: rgba(255,255,255,0.04);
    border-color: rgba(255,255,255,0.2); color: var(--m-text);
  }
  .contact__meta {
    font-size: 9px; letter-spacing: 0.2em;
    color: var(--m-text-fade); margin-top: 18px;
  }
  .contact__email {
    margin-top: 18px; font-size: 13px;
    border-bottom: 1px solid rgba(212,164,55,0.5);
    min-height: var(--m-tap);
    display: inline-flex; align-items: center; justify-content: center;
  }

  /* ── FOOTER ──────────────────────────────────────── */
  .footer { background: var(--m-bg); padding-top: 40px; padding-bottom: 8px; }
  .footer__rule { display: none; }
  .footer__inner {
    grid-template-columns: 1fr !important;
    text-align: center; gap: 20px; justify-items: center;
    padding: 0 var(--m-pad);
  }
  .footer__logo { justify-self: center; }
  .footer__logo-text, .footer__logo span {
    /* Wordmark · Vol. II: Cormorant Italic, Title-case. */
    font-family: var(--font-display);
    font-style: italic;
    font-weight: 500;
    font-size: 16px;
    letter-spacing: 0;
    text-transform: none;
  }
  .footer__nav {
    justify-self: center !important;
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 12px 28px; font-size: 12px;
  }
  .footer__nav a {
    min-height: var(--m-tap);
    display: inline-flex; align-items: center; justify-content: center;
  }
  .footer__email {
    color: var(--m-gold) !important; font-size: 13px;
    min-height: var(--m-tap);
    display: inline-flex; align-items: center; justify-content: center;
  }
  .footer__legal {
    flex-direction: column !important; text-align: center; gap: 4px;
    border-top: 1px solid rgba(255,255,255,0.06);
    margin-top: 28px; padding: 18px var(--m-pad);
    font-size: 10px; color: var(--m-text-fade);
  }
  .footer__legal-meta {
    font-family: var(--font-mono); font-weight: 500; letter-spacing: 0.20em;
    text-transform: uppercase;
    color: var(--m-text-dim); font-size: 10px;
  }
  .footer__delegate {
    font-size: 16px; padding: 24px var(--m-pad); margin-top: 0;
    flex-direction: column; gap: 8px;
    border-top: 1px solid rgba(255,255,255,0.06);
  }

  /* ── TYPO / TAP TARGETS ─────────────────────────── */
  body, p { font-size: 14px; line-height: 1.65; }
  .eyebrow { font-size: 9px; letter-spacing: 0.22em; }
  h1, h2, h3 { font-family: var(--font-display); }
  a, button { min-height: var(--m-tap); }
  .nav__logo, .footer__nav a, .footer__email { -webkit-user-select: none; }
}

/* ≤480 fine-tuning */
@media (max-width: 480px) {
  /* Hero H1 stays at 2.5rem / line-height 1.1 per spec — no override needed */
  .svc-card__title { font-size: 26px; }
  .contact__title { font-size: 28px; }
  .hero__rook-wrap { width: 84px !important; height: 100px !important; }
}

/* ≤360 fine-tuning — scale H1 down slightly for very narrow phones */
@media (max-width: 360px) {
  .hero__title,
  .hero__title-line--accent { font-size: 2.1rem; }
}
