/* ============================================================
   AEIVA v3 — "The Dark Dossier" section styling
   ============================================================ */

/* ---------- NAV ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: var(--z-nav);
  transition: transform var(--dur) var(--ease-out), background var(--dur), box-shadow var(--dur), backdrop-filter var(--dur);
}
.nav-inner { display: flex; align-items: center; gap: 1.5rem; padding-block: 1rem; }
.nav-logo { display: inline-flex; align-items: center; gap: 0.6rem; position: relative; }
.nav-mark {
  height: 32px; width: auto;
  filter: drop-shadow(0 0 10px rgba(207, 181, 59, 0.28));
  transition: transform var(--dur) var(--ease-out), filter var(--dur) var(--ease-out);
}
.nav-logo::before {
  content: ""; position: absolute; left: -6px; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(207, 181, 59, 0.22), transparent 68%);
  opacity: 0; transition: opacity var(--dur) var(--ease-out);
}
.nav-logo:hover::before { opacity: 1; }
.nav-logo:hover .nav-mark { transform: scale(1.05); filter: drop-shadow(0 0 14px rgba(207, 181, 59, 0.45)); }
.nav-word {
  font-family: var(--font-display); font-weight: 400; font-size: 1.28rem;
  color: var(--cream); letter-spacing: 0.02em; text-transform: lowercase;
  transition: color var(--dur) var(--ease-out);
}
.nav-logo:hover .nav-word { color: var(--gold-200); }
.nav-links { display: flex; gap: 1.7rem; margin-left: auto; }
.nav-links a {
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint);
  position: relative; transition: color var(--dur);
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -5px; width: 0; height: 1px;
  background: var(--gold); transition: width var(--dur) var(--ease-out);
}
.nav-links a:hover { color: var(--cream); }
.nav-links a:hover::after { width: 100%; }
.nav-actions { display: flex; }
.nav-burger { display: none; color: var(--cream); }

.nav[data-scrolled="true"] {
  background: rgba(8, 8, 10, 0.7);
  backdrop-filter: saturate(140%) blur(18px);
  -webkit-backdrop-filter: saturate(140%) blur(18px);
  box-shadow: 0 1px 0 var(--line);
}
.nav[data-hidden="true"] { transform: translateY(-100%); }

/* ---------- 01 · HERO ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center;
  padding-top: 7rem; padding-bottom: 3.5rem;
  overflow: hidden;
}
.hero-canvas { position: absolute; inset: 0; z-index: 1; opacity: 0.8; }
.hero-tree {
  position: absolute; top: -6%; right: 4%; width: min(52vw, 620px); aspect-ratio: 1;
  color: var(--teal-300); opacity: 0.12; z-index: 1; pointer-events: none;
}
.hero-tree svg { width: 100%; height: 100%; }
.hero-vignette {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(120% 90% at 50% 40%, transparent 55%, rgba(8, 8, 10, 0.8) 100%);
}

/* Orbfield — Emergent glow signature (pure CSS) */
.orbfield { position: absolute; inset: -8%; z-index: 0; overflow: hidden; pointer-events: none; }
.orbfield i { position: absolute; border-radius: 50%; will-change: transform; }
.orbfield i:nth-child(1) {
  width: 50vmin; height: 50vmin; left: 58%; top: 6%; filter: blur(60px); opacity: 0.5;
  background: radial-gradient(circle, rgba(207, 181, 59, 0.28), transparent 65%);
  animation: orbDriftA 22s var(--ease-inout) infinite alternate;
}
.orbfield i:nth-child(2) {
  width: 42vmin; height: 42vmin; left: -6%; top: 40%; filter: blur(50px); opacity: 0.55;
  background: radial-gradient(circle, rgba(0, 128, 128, 0.3), transparent 65%);
  animation: orbDriftB 28s var(--ease-inout) infinite alternate;
}
.orbfield i:nth-child(3) {
  width: 60vmin; height: 60vmin; left: 30%; top: -14%; filter: blur(80px); opacity: 0.5;
  background: radial-gradient(circle, rgba(0, 34, 68, 0.55), transparent 65%);
  animation: orbDriftC 40s var(--ease-inout) infinite alternate;
}
.orb-ring {
  position: absolute; left: 62%; top: 16%; width: 34vmin; height: 34vmin;
  border: 1px solid rgba(207, 181, 59, 0.18); border-radius: 50%;
  animation: ringSpin 60s linear infinite;
}
.orb-ring::after {
  content: ""; position: absolute; top: -3px; left: 50%; width: 6px; height: 6px;
  border-radius: 50%; background: var(--gold); box-shadow: var(--glow-gold-dot);
}
@keyframes orbDriftA { from { transform: translate(0, 0) scale(1); } to { transform: translate(-7vw, 6vh) scale(1.12); } }
@keyframes orbDriftB { from { transform: translate(0, 0) scale(1.08); } to { transform: translate(6vw, -5vh) scale(0.94); } }
@keyframes orbDriftC { from { transform: translate(0, 0) scale(0.96); } to { transform: translate(4vw, 7vh) scale(1.1); } }
@keyframes ringSpin { to { transform: rotate(360deg); } }

.hero-inner {
  position: relative; z-index: 3;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 5rem);
  align-items: center; width: 100%;
}
.hero-meta { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.hero-title { margin: 1.4rem 0 1.6rem; }
/* Variant B headline is wordier — clamp it down a size */
html[data-hero-variant="B"] .hero-title { font-size: clamp(2.4rem, 1rem + 5.2vw, 5.4rem); }
.hero-sub { max-width: 40ch; font-weight: 400; }
.hero-sub strong { color: var(--cream); font-weight: 600; }
.hero-form { display: flex; gap: 0.7rem; flex-wrap: wrap; margin: 2.1rem 0 0.6rem; max-width: 34rem; }
.hero-form input {
  flex: 1 1 220px; padding: 0.95em 1.2em; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-strong);
  color: var(--cream); font-size: 0.95rem; transition: border-color var(--dur);
}
.hero-form input::placeholder { color: var(--mute-2); }
.hero-form input:focus { outline: none; border-color: var(--gold); }
.hero-note { min-height: 1.2em; color: var(--gold-200); margin-bottom: 1.2rem; }
.hero-chips { display: flex; gap: 0.6rem; flex-wrap: wrap; }

.hero-scroll {
  position: absolute; bottom: 1.5rem; left: 50%; transform: translateX(-50%);
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--mute-2);
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem; z-index: 3;
  white-space: nowrap;
}
.hero-scroll span {
  width: 1px; height: 34px; background: linear-gradient(var(--gold), transparent);
  animation: scrollLine 2.2s var(--ease-inout) infinite;
}
@keyframes scrollLine { 0%{transform:scaleY(0);transform-origin:top} 45%{transform:scaleY(1);transform-origin:top} 55%{transform:scaleY(1);transform-origin:bottom} 100%{transform:scaleY(0);transform-origin:bottom} }

/* ---------- PHONE MOCKUP (shared) ----------
   Phone screens are mini app UIs — they re-scope the palette
   back to LIGHT values so the app looks real on the dark canvas. */
.phone { position: relative; width: 300px; max-width: 78vw; margin-inline: auto; }
.phone-frame {
  position: relative; aspect-ratio: 300/620; border-radius: 46px;
  background: linear-gradient(160deg, #1b1b20, #060608);
  padding: 11px;
  box-shadow: var(--sh-lg), inset 0 0 0 2px rgba(255, 255, 255, 0.08), 0 0 60px -20px rgba(207, 181, 59, 0.18);
}
.phone-island {
  position: absolute; top: 20px; left: 50%; transform: translateX(-50%);
  width: 86px; height: 24px; background: #000; border-radius: 999px; z-index: 5;
}
.phone-screen {
  --line: #e2ddd0; --line-strong: #cfc7b4;
  --ink: #17202b; --ink-soft: #45525f; --ink-faint: #7a8794;
  --cream-100: #f3f1ea; --cream-200: #ece8dd; --surface: #ffffff;
  --teal-600: #0a6f6f; --mute-2: #7a8794;
  position: relative; height: 100%; border-radius: 36px; overflow: hidden;
  background: var(--cream); padding: 40px 14px 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.phone-screen.dark, .screen-coach.dark { background: #04101d; }
.phone-glow {
  position: absolute; inset: -18% -10% -22%; z-index: -1; border-radius: 60px;
  background: radial-gradient(50% 50% at 50% 40%, rgba(0, 128, 128, 0.3), transparent 70%);
  filter: blur(30px);
}

.app-topbar {
  display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 600;
  color: #f4f1e8; letter-spacing: 0.02em;
}
.app-topbar.light { color: var(--navy); }
.app-mode { margin-left: auto; font-size: 8.5px; font-weight: 500; color: var(--teal-300); letter-spacing: 0.06em; text-transform: uppercase; }
.app-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal-300); box-shadow: 0 0 8px var(--teal-300); }
.app-dot.gold { background: var(--gold); box-shadow: 0 0 8px var(--gold); }

/* Coach screen */
.screen-coach { background: #04101d; }
.coach-thread { display: flex; flex-direction: column; gap: 7px; flex: 1; }
.bubble { font-size: 11px; line-height: 1.5; padding: 8px 11px; border-radius: 14px; max-width: 86%; }
.bubble.user { align-self: flex-end; background: var(--teal); color: #fff; border-bottom-right-radius: 5px; }
.bubble.ai {
  align-self: flex-start; background: rgba(255, 255, 255, 0.07); color: #f4f1e8;
  border: 1px solid rgba(255, 255, 255, 0.09); border-bottom-left-radius: 5px;
}
.bubble.ai.calm { background: rgba(207, 181, 59, 0.10); border-color: rgba(207, 181, 59, 0.22); }
.ai-name { display: block; font-size: 8.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold-200); margin-bottom: 3px; }
.flag { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 8.5px; font-weight: 700; color: var(--gold-200); text-transform: uppercase; letter-spacing: 0.06em; }
.flag svg { color: var(--gold-200); }
.coach-onething {
  background: linear-gradient(135deg, rgba(0, 128, 128, 0.16), rgba(207, 181, 59, 0.10));
  border: 1px solid rgba(207, 181, 59, 0.24); border-radius: 14px; padding: 10px 11px;
}
.ot-label { font-size: 8.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold-200); }
.coach-onething p { font-size: 11px; line-height: 1.45; color: #f4f1e8; margin: 5px 0 8px; }
.ot-bar { height: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.ot-bar i { display: block; height: 100%; width: var(--w); background: linear-gradient(90deg, var(--teal-300), var(--gold)); border-radius: 999px; }

/* Vitals screen */
.screen-vitals { background: linear-gradient(180deg, #ffffff, #f3f1ea); }
.vitals-ring { position: relative; width: 130px; height: 130px; margin: 6px auto 2px; }
.vitals-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.vitals-ring .ring-bg { fill: none; stroke: #ece8dd; stroke-width: 9; }
.vitals-ring .ring-fg { fill: none; stroke: var(--teal); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 327; stroke-dashoffset: 327; }
.ring-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring-center b { font-family: var(--font-display); font-size: 30px; font-weight: 500; color: var(--navy); line-height: 1; }
.ring-center span { font-size: 8.5px; letter-spacing: 0.14em; text-transform: uppercase; color: #7a8794; margin-top: 3px; }
.bioage { display: flex; align-items: baseline; gap: 7px; justify-content: center; flex-wrap: wrap; margin-bottom: 4px; }
.ba-big { font-family: var(--font-display); font-size: 22px; font-weight: 500; color: #0a6f6f; }
.ba-vs { font-size: 9px; color: #7a8794; text-transform: uppercase; letter-spacing: 0.1em; }
.ba-tag { font-size: 9px; font-weight: 700; color: var(--gold-600); background: rgba(207, 181, 59, 0.16); padding: 2px 7px; border-radius: 999px; }
.vitals-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: auto; }
.vc { background: #fff; border: 1px solid #e2ddd0; border-radius: 12px; padding: 8px 9px; }
.vc span { font-size: 8.5px; text-transform: uppercase; letter-spacing: 0.08em; color: #7a8794; }
.vc b { display: block; font-family: var(--font-display); font-size: 16px; font-weight: 500; color: var(--navy); margin: 1px 0 3px; }
.vc .spark { width: 100%; height: 16px; }
.vc .spark polyline { fill: none; stroke: var(--teal); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Nutrition screen */
.screen-nutri { background: linear-gradient(180deg, #ffffff, #f3f1ea); }
.nutri-photo {
  position: relative; height: 120px; border-radius: 14px; overflow: hidden;
  background: radial-gradient(circle at 50% 45%, #d8a15a, #b06b2e 60%, #7c481c);
}
.nutri-plate {
  position: absolute; inset: 18px; border-radius: 50%;
  background:
    radial-gradient(circle at 40% 40%, #f4e3b8 0 22%, transparent 22%),
    radial-gradient(circle at 66% 58%, #cf7d3c 0 20%, transparent 20%),
    radial-gradient(circle at 40% 70%, #e8c07a 0 16%, transparent 16%),
    #f6efd8;
  box-shadow: inset 0 0 0 4px rgba(255, 255, 255, 0.5);
}
.nutri-scanline { position: absolute; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); box-shadow: 0 0 10px var(--gold); animation: scan 2.6s var(--ease-inout) infinite; }
@keyframes scan { 0%,100%{ top: 8%; opacity:0 } 20%{opacity:1} 50%{ top: 88% } 80%{opacity:1} }
.nutri-name { font-size: 11.5px; font-weight: 600; color: var(--navy); }
.nutri-name em { color: #0a6f6f; font-style: normal; font-weight: 500; }
.nutri-macros { display: grid; grid-template-columns: repeat(3,1fr); gap: 7px; }
.nm { background: #fff; border: 1px solid #e2ddd0; border-radius: 11px; padding: 7px 8px; text-align: center; }
.nm span { font-size: 8px; text-transform: uppercase; letter-spacing: 0.06em; color: #7a8794; }
.nm b { display: block; font-family: var(--font-display); font-size: 15px; font-weight: 500; color: var(--navy); }
.nutri-note {
  margin-top: auto; display: flex; gap: 6px; align-items: flex-start;
  font-size: 10px; line-height: 1.4; color: #0a6f6f;
  background: rgba(0, 128, 128, 0.07); border: 1px solid rgba(0, 128, 128, 0.14); border-radius: 11px; padding: 8px 9px;
}
.nutri-note svg { flex: none; margin-top: 1px; }

/* Phone idle float + glare */
.float-wrap { animation: phoneFloat 6.5s var(--ease-inout) infinite alternate; will-change: transform; }
@keyframes phoneFloat { from { transform: translateY(-6px); } to { transform: translateY(8px); } }
.phone-frame.glare::after {
  content: ""; position: absolute; inset: 0; border-radius: 46px; pointer-events: none; z-index: 6;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, 0.1) 42%, rgba(255, 255, 255, 0.02) 50%, transparent 60%);
  background-size: 300% 100%; background-position: 120% 0;
  animation: glareSweep 9s var(--ease-inout) 2.2s infinite;
}
@keyframes glareSweep { 0% { background-position: 120% 0; } 12% { background-position: -60% 0; } 100% { background-position: -60% 0; } }

/* ---------- MANTRA MARQUEE + CHAPTER MAP ---------- */
.mantra {
  overflow: hidden; border-block: 1px solid var(--line);
  padding-block: 1.5rem 1.2rem; display: flex; flex-direction: column; gap: 1rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track { display: inline-flex; align-items: center; gap: 1.8rem; white-space: nowrap; will-change: transform; width: max-content; }
.mantra-top span, .mantra-top em {
  font-family: var(--font-display); font-weight: 300; font-style: normal;
  font-size: clamp(1.6rem, 1rem + 2.6vw, 3.4rem); color: var(--cream);
  font-variation-settings: var(--frx);
}
.mantra-top em { font-style: italic; color: var(--gold); font-variation-settings: var(--frx-em); }
.mantra-top i { color: var(--mute-2); font-style: normal; }

/* ---------- 02 · PROBLEM (PAS ladder) ---------- */
.pas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 3vw, 2.5rem); margin-top: clamp(2rem, 4vh, 3rem); }
.pas { border-top: 1px solid var(--line-strong); padding-top: 1.1rem; }
.pas p { margin-top: 0.7rem; color: var(--ink-soft); max-width: 34ch; }

.pas-ladder {
  display: grid; grid-template-columns: 0.9fr auto 1.1fr;
  gap: clamp(1.5rem, 4vw, 4rem); align-items: stretch;
  margin-top: clamp(3rem, 7vh, 5rem); min-height: 460px;
}
.pl-col { display: flex; flex-direction: column; gap: 1rem; }
.signal-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0.55rem 1.4rem; margin-top: 0.4rem; }
.signal-list li {
  font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.08em;
  color: rgba(250, 249, 246, 0.55); text-transform: uppercase;
  border-bottom: 1px dashed var(--line); padding-bottom: 0.45rem;
}
.pl-spine { position: relative; width: 1px; background: var(--line-strong); margin-block: 0.5rem; }
.pl-orb {
  position: absolute; left: 50%; top: 0; width: 11px; height: 11px; margin-left: -5.5px;
  border-radius: 50%; background: var(--gold); box-shadow: var(--glow-gold-dot);
  animation: pulseGold 2.2s ease-in-out infinite;
}
.pl-rung {
  position: absolute; left: 50%; top: var(--y); transform: translate(-50%, -50%);
  background: var(--obsidian); border: 1px solid var(--line-strong); border-radius: var(--r-pill);
  padding: 0.4em 1.1em; white-space: nowrap;
  transition: border-color 0.5s var(--ease-out), color 0.5s;
}
.pl-rung b { font-family: var(--font-mono); font-size: 0.68rem; font-weight: 500; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-faint); }
.pl-rung.lit { border-color: var(--gold); box-shadow: 0 0 24px -6px rgba(207, 181, 59, 0.5); }
.pl-rung.lit b { color: var(--gold-200); }

.pl-actions { justify-content: center; gap: 1.1rem; }
.action-card { padding: 1.1rem 1.3rem; display: flex; flex-direction: column; gap: 0.45rem; max-width: 380px; }
.ac-time { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-200); }
.action-card p { color: var(--cream); font-size: 1rem; line-height: 1.5; }
.ac-why { color: var(--mute-2); }

.problem-stats {
  display: flex; flex-wrap: wrap; gap: clamp(1.5rem, 5vw, 4.5rem);
  margin-top: clamp(3rem, 6vh, 5rem); padding-top: 2.2rem; border-top: 1px solid var(--line);
}
.problem-stats b { display: block; font-family: var(--font-display); font-weight: 300; font-size: clamp(2rem, 1.4rem + 2vw, 3.4rem); color: var(--cream); line-height: 1; }
.problem-stats span { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); display: block; margin-top: 0.5rem; max-width: 22ch; }

/* ---------- 03 · POSITION ---------- */
.pos-slab { margin-block: clamp(2rem, 4vh, 3rem) clamp(3rem, 6vh, 4.5rem); }
.pos-slab .slab { max-width: 14em; }
.pos-table { border-top: 1px solid var(--line-strong); }
.pos-row {
  display: grid; grid-template-columns: 0.7fr 1.15fr 1.15fr;
  gap: clamp(1rem, 3vw, 3rem); align-items: baseline;
  padding-block: 1.2rem; border-bottom: 1px solid var(--line);
}
.pos-row.pos-head { padding-block: 0.9rem; border-bottom: 1px solid var(--line-strong); }
.pos-gold { color: var(--gold); }
.pos-axis { font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-faint); }
.pos-row b { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.1rem, 1rem + 0.7vw, 1.5rem); color: var(--cream); }
.pos-row s { font-size: 0.95rem; }

/* ---------- 04 · MECHANISM ---------- */
.how .slab { margin-bottom: clamp(2.5rem, 5vh, 4rem); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 3vw, 3rem); }
.step { display: flex; flex-direction: column; gap: 0.7rem; border-top: 1px solid var(--cell); padding-top: 1.6rem; }
.step p { color: var(--ink-soft); }
.step .h3 { margin-top: 0.2rem; }
/* engineering footnote under a step — quieter than body copy */
.step .step-note { margin-top: auto; padding-top: 0.9rem; border-top: 1px solid var(--cell); color: var(--gold-200); }
.step-visual { height: 170px; display: grid; place-items: center; margin-bottom: 0.6rem; }
.step-visual svg { width: 100%; max-width: 210px; height: auto; }
.sv-sync .sync-line { stroke-dasharray: 60; stroke-dashoffset: 60; }
.sv-sync.in-view .sync-line { animation: syncDraw 1.4s var(--ease-out) forwards; }
.sv-sync.in-view .sync-line:nth-of-type(2) { animation-delay: 0.12s; }
.sv-sync.in-view .sync-line:nth-of-type(3) { animation-delay: 0.24s; }
.sv-sync.in-view .sync-line:nth-of-type(4) { animation-delay: 0.36s; }
.sv-sync.in-view .sync-line:nth-of-type(5) { animation-delay: 0.48s; }
.sv-sync.in-view .sync-line:nth-of-type(6) { animation-delay: 0.6s; }
@keyframes syncDraw { to { stroke-dashoffset: 0; } }
.sync-dot { opacity: 0.9; }

/* CSS-3D reasoning cube */
.cube3d {
  position: relative; width: 90px; height: 90px;
  transform-style: preserve-3d; perspective: 1000px;
  animation: cubeSpin 26s linear infinite;
}
.cube3d i {
  position: absolute; inset: 0; border: 1px solid rgba(207, 181, 59, 0.5);
  background: rgba(207, 181, 59, 0.05);
}
.cube3d i:nth-child(1) { transform: translateZ(45px); }
.cube3d i:nth-child(2) { transform: rotateY(180deg) translateZ(45px); }
.cube3d i:nth-child(3) { transform: rotateY(90deg) translateZ(45px); }
.cube3d i:nth-child(4) { transform: rotateY(-90deg) translateZ(45px); }
.cube3d i:nth-child(5) { transform: rotateX(90deg) translateZ(45px); }
.cube3d i:nth-child(6) { transform: rotateX(-90deg) translateZ(45px); }
.cube3d b {
  position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px;
  border-radius: 50%; background: var(--gold); filter: blur(2px);
  box-shadow: 0 0 30px 8px rgba(207, 181, 59, 0.45);
}
@keyframes cubeSpin { from { transform: rotateX(0) rotateY(0); } to { transform: rotateX(360deg) rotateY(360deg); } }

.step-action { max-width: 250px; }
.step-action p { font-family: var(--font-display); font-weight: 300; font-size: 1.25rem; }
.step-action p b { color: var(--gold-200); font-weight: 400; }

.how-payoff { text-align: center; margin-top: clamp(3rem, 6vh, 4.5rem); font-family: var(--font-display); font-weight: 300; font-size: clamp(1.3rem, 1rem + 1.3vw, 2rem); line-height: 1.4; color: var(--cream); }
.how-payoff em { font-style: italic; color: var(--teal-300); }

/* ---------- 05 · OUTCOMES ---------- */
.out-lead { margin-top: 1.4rem; }
.out-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.2rem, 2.5vw, 2.2rem); margin-top: clamp(2.5rem, 5vh, 4rem); }
.out-card {
  border: 1px solid var(--cell); border-radius: var(--r-xs);
  padding: clamp(1.4rem, 1rem + 1.4vw, 2.2rem);
  display: flex; flex-direction: column; gap: 0.9rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 60%);
  transition: border-color var(--dur), transform var(--dur) var(--ease-out);
}
.out-card:hover { border-color: var(--line-strong); transform: translateY(-4px); }
.out-card .h3 { font-size: clamp(1.25rem, 1.05rem + 0.9vw, 1.7rem); }
.out-card p { color: var(--ink-soft); }
.out-foot { margin-top: auto; color: var(--gold-200); opacity: 0.75; }

/* ---------- 06 · COACH (product) ---------- */
.product { overflow: hidden; }
.product-showcase { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 3vw, 2rem); align-items: end; margin-top: 1rem; }
.phone-col { display: flex; flex-direction: column; align-items: center; gap: 1.1rem; }
.phone-col.raised { transform: translateY(-28px); }
.phone-col .phone { width: 268px; }
.phone-cap { text-align: center; font-size: 0.92rem; color: var(--ink-faint); max-width: 26ch; }
.lens-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.7rem; margin-top: clamp(2.5rem, 5vh, 4rem); }
.lens-row li { display: inline-flex; align-items: center; gap: 0.55em; font-size: 0.92rem; color: var(--cream); padding: 0.6em 1.1em; border: 1px solid var(--line-navy); border-radius: var(--r-pill); background: rgba(255, 255, 255, 0.03); }
.lens-row li svg { color: var(--gold-200); }
.lens-row .lens-next { border-style: dashed; color: var(--ink-soft); }

/* ---------- 07 · THE LOOP ---------- */
.loop { overflow: hidden; }
.loop-stage {
  position: relative; width: 100%; max-width: 1240px; margin: 1rem auto 0;
  aspect-ratio: 16/9; min-height: 420px;
}
.loop-legend { text-align: center; margin-top: clamp(1.5rem, 3vh, 2.5rem); }
.loop-legend .label { justify-content: center; color: var(--gold-200); }
.loop-legend ul {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 0.5rem 1.4rem; margin-top: 1rem;
}
.loop-legend li {
  position: relative; font-family: var(--font-display); font-weight: 300; font-size: clamp(0.95rem, 0.9rem + 0.35vw, 1.2rem); color: var(--ink-soft);
}
.loop-legend li + li::before {
  content: ""; position: absolute; left: -0.75rem; top: 50%; width: 3px; height: 3px;
  border-radius: 50%; background: var(--gold); transform: translateY(-50%); opacity: 0.7;
}
.loop-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(1.5rem, 5vw, 4rem); margin-top: 2.5rem; padding-top: 2.5rem; border-top: 1px solid var(--line); }
.loop-stats div { text-align: center; position: relative; padding-top: 0.9rem; }
.loop-stats div::before { content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 26px; height: 2px; background: var(--gold); border-radius: 2px; }
.loop-stats div > svg { color: var(--teal-300); margin: 0 auto 0.35rem; display: block; }
.loop-stats b { display: block; font-family: var(--font-display); font-weight: 300; font-size: clamp(2rem, 1.5rem + 1.6vw, 3rem); color: var(--cream); line-height: 1; }
.loop-stats span { font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); }

/* Loop internals — the full fan stays visible; the active route pops */
.loop-links { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; overflow: visible; pointer-events: none; }
.loop-links path {
  fill: none; stroke-width: 1.3; opacity: 1;
  transition: opacity 0.55s var(--ease-out), stroke-width 0.55s var(--ease-out);
}
.loop-links path.in { stroke: rgba(77, 182, 172, 0.32); }
.loop-links path.out { stroke: rgba(231, 215, 138, 0.30); }
.loop-links path.muted { opacity: 0.32; }
.loop-links path.active { stroke-width: 2.1; opacity: 1; }
.loop-links path.active.in { stroke: rgba(77, 182, 172, 0.95); filter: drop-shadow(0 0 4px rgba(77, 182, 172, 0.5)); }
.loop-links path.active.out { stroke: rgba(231, 215, 138, 0.95); filter: drop-shadow(0 0 4px rgba(231, 215, 138, 0.5)); }
.loop-particle { pointer-events: none; }

.loop-col { position: absolute; top: 0; height: 100%; display: flex; flex-direction: column; justify-content: space-between; gap: 6px; z-index: 3; padding-block: 4%; }
.loop-col.inputs { left: 0; width: 190px; align-items: flex-start; }
.loop-col.outputs { right: 0; width: 190px; align-items: flex-end; }
.loop-node {
  display: inline-flex; align-items: center; gap: 0.5em;
  padding: 0.5em 0.85em; border-radius: var(--r-pill);
  background: var(--cream-100); border: 1px solid var(--cell);
  font-size: 0.8rem; font-weight: 500; color: var(--cream);
  white-space: nowrap;
}
.loop-node svg { width: 15px; height: 15px; color: var(--teal-300); flex: none; }
.loop-col.outputs .loop-node svg { color: var(--gold-200); }
.loop-node.lit { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(207, 181, 59, 0.14), 0 0 24px -4px rgba(207, 181, 59, 0.4); }

.loop-brain {
  position: absolute; left: 50%; top: 41%; transform: translate(-50%, -50%);
  z-index: 4; width: clamp(230px, 32vw, 350px); aspect-ratio: 1;
  display: grid; place-items: center;
}
.brain-core {
  position: relative; width: 44%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 40% 35%, var(--navy-700), var(--navy-900));
  border: 1px solid rgba(207, 181, 59, 0.3);
  display: grid; place-items: center; text-align: center; color: var(--cream);
  box-shadow: var(--sh-navy), inset 0 0 20px rgba(0, 0, 0, 0.5), 0 0 60px -12px rgba(0, 128, 128, 0.4);
  z-index: 2;
  transition: transform 0.3s var(--ease-out);
}
.brain-core b { font-family: var(--font-display); font-weight: 400; font-size: clamp(1rem, 2vw, 1.4rem); color: #fff; line-height: 1; }
.brain-core span { display: block; font-family: var(--font-mono); font-size: 0.56rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold-200); margin-top: 3px; }
.brain-core.pulse { animation: brainPulseOnce 0.7s var(--ease-out); }
@keyframes brainPulseOnce { 0% { transform: scale(1); } 35% { transform: scale(1.07); } 100% { transform: scale(1); } }
.brain-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(0, 128, 128, 0.4); animation: brainpulse 3.4s var(--ease-inout) infinite; }
.brain-ring.r2 { animation-delay: 1.1s; border-color: rgba(207, 181, 59, 0.4); }
.brain-ring.r3 { animation-delay: 2.2s; }
@keyframes brainpulse { 0% { transform: scale(0.7); opacity: 0.9; } 100% { transform: scale(1.5); opacity: 0; } }

.loop-ticker {
  position: absolute; left: 50%; bottom: 2%; transform: translateX(-50%);
  z-index: 5; width: min(560px, 84%); text-align: center;
  background: rgba(13, 13, 16, 0.72); backdrop-filter: blur(12px);
  border: 1px solid var(--cell); border-radius: var(--r-pill);
  padding: 0.7em 1.3em; box-shadow: var(--sh-sm);
}
.loop-ticker .tk-who { font-weight: 600; color: var(--cream); font-size: 0.88rem; }
.loop-ticker .tk-flow { color: var(--ink-soft); font-size: 0.86rem; }
.loop-ticker .tk-flow em { color: var(--teal-300); font-style: italic; }

/* Compact (mobile) loop */
.loop-stage.compact { aspect-ratio: auto; min-height: 0; display: flex; flex-direction: column; align-items: center; gap: 1.1rem; }
.loop-stage.compact .loop-links { display: none; }
.loop-stage.compact .loop-col { position: static; height: auto; width: 100%; flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 8px; padding: 0; }
.loop-stage.compact .loop-brain { position: static; transform: none; width: 190px; margin-block: 0.4rem; }
.loop-stage.compact .loop-ticker { position: static; transform: none; width: 100%; margin-top: 0.4rem; }

/* ---------- 06 · THE SENSES (sensing ecosystem) ---------- */
.sense-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 2.5vw, 2.5rem);
}
.sense-cell {
  display: flex; flex-direction: column; gap: 0.85rem;
  border-top: 1px solid var(--cell); padding-top: 1.4rem;
  transition: transform var(--dur) var(--ease-out), border-color var(--dur);
}
.sense-cell:hover { transform: translateY(-6px); border-top-color: var(--line-strong); }
.sense-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.sense-cell > p { color: var(--ink-soft); }
.sense-cell .h3 { margin-top: -0.1rem; }
/* the honest footnote on every sense — pinned to the card foot so feet align */
.sense-proof {
  margin-top: auto; padding-top: 0.9rem;
  border-top: 1px solid var(--cell); color: var(--gold-200);
}
@media (max-width: 900px) { .sense-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .sense-grid { grid-template-columns: 1fr; } }

/* ---------- 08 · LAYERS (ecosystem) ---------- */
.eco-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; margin-bottom: clamp(2.5rem, 5vh, 4.5rem); }
.eco-head .lead { max-width: 30ch; }
.eco-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 2.5vw, 2.5rem); }
.eco-cell {
  display: flex; flex-direction: column; gap: 1rem;
  border-top: 1px solid var(--cell); padding-top: 1.5rem;
  transition: transform var(--dur) var(--ease-out), border-color var(--dur);
}
.eco-cell:hover { transform: translateY(-6px); border-top-color: var(--line-strong); }
.eco-top { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.eco-visual { height: 190px; display: grid; place-items: center; padding-block: 0.5rem; }
.eco-cell > p { color: var(--ink-soft); }
.eco-cell .h3 { margin-top: -0.2rem; }
.eco-foot { margin-top: auto; border-top: 1px solid var(--cell); padding-top: 0.9rem; }
.lbl-next { color: var(--gold-200); font-weight: 500; }

/* Layer I visual — floating membership stack */
.memb-stack { position: relative; width: 200px; height: 150px; perspective: 900px; }
.memb-stack i, .memb-stack b {
  position: absolute; left: 50%; top: 50%; width: 180px; height: 106px;
  border-radius: 6px; border: 1px solid rgba(250, 249, 246, 0.1);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0));
  backdrop-filter: blur(6px);
}
.memb-stack i:nth-child(1) { transform: translate(-50%, -50%) rotateX(10deg) rotateY(-12deg) translateZ(-22px) translateY(8px); }
.memb-stack i:nth-child(2) { transform: translate(-50%, -50%) rotateX(10deg) rotateY(-12deg); }
.memb-stack b {
  transform: translate(-50%, -50%) rotateX(10deg) rotateY(-12deg) translateZ(22px) translateY(-8px);
  background: linear-gradient(135deg, rgba(207, 181, 59, 0.16), rgba(0, 128, 128, 0.05));
  border-color: rgba(207, 181, 59, 0.35);
  box-shadow: 0 30px 80px -20px rgba(207, 181, 59, 0.35);
  padding: 10px 14px; display: flex; flex-direction: column; justify-content: space-between;
  animation: membFloat 8s var(--ease-inout) infinite alternate;
}
.memb-stack b .spec { color: var(--gold); letter-spacing: 0.24em; font-size: 0.6rem; }
.memb-price { display: flex; align-items: baseline; gap: 6px; }
.memb-price em { font-family: var(--font-display); font-style: italic; font-size: 1.7rem; color: var(--cream); font-variation-settings: var(--frx-em); }
.memb-price u { text-decoration: none; font-family: var(--font-display); font-weight: 300; font-size: 2rem; color: var(--cream); }
@keyframes membFloat { from { transform: translate(-50%, -50%) rotateX(8deg) rotateY(-14deg) translateZ(22px) translateY(-8px); } to { transform: translate(-50%, -50%) rotateX(12deg) rotateY(-10deg) translateZ(22px) translateY(-14px); } }

/* Layer II visual — practitioner archetypes */
.eco-avatars { position: relative; width: 220px; height: 170px; }
.eco-links { position: absolute; inset: 0; }
.eco-av {
  position: absolute; width: 88px; height: 88px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  border: 1px solid rgba(250, 249, 246, 0.14);
  background: radial-gradient(circle at 30% 30%, rgba(250, 249, 246, 0.12), rgba(250, 249, 246, 0.02) 70%);
  backdrop-filter: blur(8px);
  animation: avFloat 4.4s var(--ease-inout) infinite alternate;
}
.eco-av b { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 500; letter-spacing: 0.22em; color: var(--cream); }
.eco-av u { text-decoration: none; font-family: var(--font-mono); font-size: 0.44rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute-2); max-width: 70px; text-align: center; line-height: 1.4; }
.eco-av.av-a { left: 8px; top: 46px; animation-delay: 0.2s; }
.eco-av.av-b { left: 66px; top: 22px; animation-delay: 0s; }
.eco-av.av-c { left: 124px; top: 46px; animation-delay: 0.4s; }
.eco-av.gold { background: radial-gradient(circle at 30% 30%, rgba(207, 181, 59, 0.3), rgba(207, 181, 59, 0.05) 70%); border-color: rgba(207, 181, 59, 0.35); box-shadow: 0 18px 50px -20px rgba(207, 181, 59, 0.5); }
.eco-av.gold b { color: var(--gold-200); }
.eco-av.teal { background: radial-gradient(circle at 30% 30%, rgba(0, 128, 128, 0.35), rgba(0, 128, 128, 0.05) 70%); border-color: rgba(0, 128, 128, 0.35); }
.eco-av.teal b { color: #7ad9d9; }
@keyframes avFloat { from { transform: translateY(0); } to { transform: translateY(-7px); } }
.eco-cohort { position: absolute; left: 0; right: 0; bottom: -4px; text-align: center; color: var(--mute-2); letter-spacing: 0.24em; }

/* Layer III visual — venues radar */
.eco-map { width: 220px; height: 180px; }
.pin.blink { animation: pinBlink 2.4s ease-in-out infinite; }
.pin.blink:nth-of-type(odd) { animation-delay: 0.6s; }
@keyframes pinBlink { 0%, 100% { opacity: 0.4; } 50% { opacity: 1; } }
.eco-corridor { stroke-dasharray: 140; stroke-dashoffset: 140; }
.in-view .eco-corridor { animation: corridorDraw 2.4s var(--ease-out) 0.3s forwards; }
@keyframes corridorDraw { to { stroke-dashoffset: 0; } }

.eco-marker {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  margin-top: clamp(3rem, 6vh, 5rem); border-top: 1px solid var(--cell); padding-top: 1.8rem;
}
.eco-marker-line { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.3rem, 1rem + 1.2vw, 2rem); color: var(--cream); max-width: 26em; }

/* ---------- 09 · THE MOAT ---------- */
.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.6rem); }
.pillar { display: flex; flex-direction: column; gap: 0.6rem; position: relative; }
.pillar > svg { color: var(--teal-300); margin-bottom: 0.3rem; }
.pillar p { color: var(--ink-soft); }
.pillar em { color: var(--teal-300); font-style: italic; }
.pillar .numeral { position: absolute; top: 1.1rem; right: 1.4rem; font-size: 2.4rem; opacity: 0.3; transition: opacity var(--dur); }
.pillar.card.hover:hover { border-color: rgba(207, 181, 59, 0.4); box-shadow: 0 0 40px -12px rgba(207, 181, 59, 0.25); }
.pillar.card.hover:hover .numeral { opacity: 0.8; }
.moat-quote { display: grid; place-items: center; text-align: center; background: linear-gradient(135deg, var(--navy-900), #041020); border: 1px solid rgba(207, 181, 59, 0.25); }
.moat-quote p { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.2rem, 1rem + 0.8vw, 1.6rem); line-height: 1.35; color: var(--cream); font-style: italic; }

/* ---------- 10 · SOVEREIGNTY (trust) ---------- */
.trust-lead { margin-block: 1.4rem clamp(2.5rem, 5vh, 4rem); }
.trust-lead b { color: var(--cream); }
.wont-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--cell); border: 1px solid var(--cell); }
.wont {
  display: flex; flex-direction: column; gap: 0.9rem;
  padding: clamp(1.5rem, 1.2rem + 1.2vw, 2.4rem); background: var(--obsidian);
  transition: background var(--dur);
}
.wont:hover { background: var(--cream-100); }
.wont-n { color: var(--gold); font-size: 0.8rem; }
.wont p { color: var(--cream); font-weight: 500; font-size: 1.08rem; max-width: 30ch; }
.wont-spec { display: inline-flex; align-items: center; gap: 0.6em; margin-top: auto; }
.trust-badges { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 2.2rem; }

/* ---------- 11 · SCREENING ROOM ---------- */
.cinema-chips { display: flex; justify-content: center; gap: 0.7rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.cine-chip {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px;
  padding: 0.8em 1.25em; border-radius: var(--r-xs);
  border: 1px solid var(--cell); background: var(--cream-100);
  text-align: left; transition: border-color var(--dur), background var(--dur), transform var(--dur);
  cursor: pointer;
}
.cine-chip b { font-family: var(--font-display); font-size: 1.05rem; font-weight: 400; color: var(--cream); }
.cine-chip span { font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); }
.cine-chip:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.cine-chip.active { border-color: var(--gold); background: linear-gradient(135deg, rgba(207, 181, 59, 0.12), rgba(207, 181, 59, 0.03)); box-shadow: 0 0 0 3px rgba(207, 181, 59, 0.1); }
.cine-chip.active b { color: var(--gold-200); }

.film-frame { position: relative; border-radius: var(--r-sm); overflow: hidden; box-shadow: var(--sh-lg); border: 1px solid var(--cell); background: #000; }
.film-frame video { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.film-play {
  position: absolute; inset: 0; margin: auto; width: 84px; height: 84px; border-radius: 50%;
  background: rgba(207, 181, 59, 0.95); color: var(--obsidian); display: grid; place-items: center;
  box-shadow: var(--sh-gold); transition: transform var(--dur) var(--ease-out), opacity var(--dur);
}
.film-play svg { margin-left: 4px; }
.film-play:hover { transform: scale(1.07); }
.film-frame.playing .film-play { opacity: 0; pointer-events: none; }
.film-frame figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 2.4rem 1.4rem 1.1rem;
  font-size: 0.9rem; color: rgba(255, 255, 255, 0.85); text-align: center;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.8)); transition: opacity var(--dur);
}
.film-frame.playing figcaption { opacity: 0; }
.film-badge {
  position: absolute; top: 1rem; left: 1rem; z-index: 3;
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--font-mono); font-size: 0.6rem; font-weight: 500; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold-200); background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(6px);
  padding: 0.5em 0.95em; border-radius: var(--r-pill); border: 1px solid rgba(207, 181, 59, 0.3);
  transition: opacity var(--dur);
}
.film-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px var(--gold); animation: pulseGold 2s ease-in-out infinite; }
.film-runtime {
  position: absolute; top: 1rem; right: 1rem; z-index: 3;
  font-family: var(--font-mono); font-size: 0.68rem; font-weight: 500; color: rgba(255, 255, 255, 0.9);
  background: rgba(0, 0, 0, 0.55); backdrop-filter: blur(6px);
  padding: 0.45em 0.85em; border-radius: var(--r-pill); border: 1px solid rgba(255, 255, 255, 0.14);
  transition: opacity var(--dur);
}
.film-frame.playing .film-badge, .film-frame.playing .film-runtime { opacity: 0; pointer-events: none; }
.film-frame::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2;
  box-shadow: inset 0 0 90px rgba(0, 0, 0, 0.55);
  transition: opacity var(--dur);
}
.film-frame.playing::after { opacity: 0; }

/* ---------- Enlistment ribbon ---------- */
.ribbon { padding-block: clamp(2rem, 4vh, 3.5rem); }
.ribbon-card {
  display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center; padding: clamp(1.6rem, 1.2rem + 1.5vw, 2.6rem);
  position: relative; overflow: hidden;
}
.ribbon-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: -1;
  background:
    radial-gradient(50% 80% at 8% 0%, rgba(0, 128, 128, 0.12), transparent 60%),
    radial-gradient(50% 80% at 95% 100%, rgba(207, 181, 59, 0.1), transparent 60%);
}
.ribbon-copy { display: flex; flex-direction: column; gap: 0.7rem; }
/* live count inside the ribbon headline */
.ribbon-copy .h3 b.mono-num { font-weight: 400; color: var(--gold-200); }
.ribbon-copy .h3 [data-wl-count][hidden] { display: none; }
.ribbon-form { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.ribbon-form input {
  flex: 1 1 200px; padding: 0.95em 1.2em; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-strong);
  color: var(--cream); font-size: 0.95rem; transition: border-color var(--dur);
}
.ribbon-form input::placeholder { color: var(--mute-2); }
.ribbon-form input:focus { outline: none; border-color: var(--gold); }
.ribbon-note { grid-column: 1 / -1; min-height: 1.1em; color: var(--gold-200); }

/* ---------- 12 · BLUEPRINT (roadmap) ---------- */
.nn-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 3vw, 2rem); }
.nn-col { border: 1px solid var(--cell); border-radius: var(--r-xs); padding: clamp(1.5rem, 1rem + 1.5vw, 2.4rem); background: var(--cream-100); }
.nn-col.next { background: linear-gradient(180deg, rgba(207, 181, 59, 0.06), transparent 70%), var(--cream-100); border-color: rgba(207, 181, 59, 0.3); }
.nn-head { margin-bottom: 1.3rem; }
.nn-list li { display: flex; gap: 0.8rem; align-items: flex-start; padding: 0.7rem 0; border-bottom: 1px solid var(--line); font-size: 0.96rem; color: var(--ink-soft); }
.nn-list li:last-child { border-bottom: none; }
.nn-list svg { flex: none; margin-top: 3px; color: var(--teal-300); }
.nn-col.next .nn-list svg { color: var(--gold-200); }

/* BioStrata */
.biostrata { margin-top: clamp(2.5rem, 5vh, 4rem); }
.bio-head { display: flex; align-items: baseline; gap: 1.2rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.bio-cards { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2vw, 1.6rem); }
.bio-card {
  margin: 0; border: 1px solid rgba(207, 181, 59, 0.25); border-radius: var(--r-sm); overflow: hidden;
  background: var(--cream-100);
  transition: transform var(--dur) var(--ease-out), border-color var(--dur);
}
.bio-card:hover { transform: translateY(-5px); border-color: rgba(207, 181, 59, 0.45); }
.bio-art { background: radial-gradient(120% 100% at 50% 0%, rgba(255, 255, 255, 0.04), transparent); padding: clamp(0.8rem, 2vw, 1.6rem); }
.bio-art svg { width: 100%; height: auto; max-height: 240px; }
.bio-card figcaption { position: relative; padding: 1.1rem 1.4rem 1.3rem; border-top: 1px solid var(--cell); }
.bio-card figcaption b { display: block; font-family: var(--font-display); font-size: 1.12rem; font-weight: 400; color: var(--cream); margin-bottom: 0.25rem; }
.bio-card figcaption span { display: block; font-size: 0.92rem; color: var(--ink-soft); max-width: 34ch; }
.bio-tag {
  position: absolute; top: 1.1rem; right: 1.2rem; font-style: normal;
  font-family: var(--font-mono); font-size: 0.6rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-200); background: rgba(207, 181, 59, 0.14); padding: 0.4em 0.85em; border-radius: var(--r-pill);
}

/* Sensing continuum */
.continuum { margin-top: clamp(2rem, 4vh, 3rem); }
.cont-line { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 1.4rem; counter-reset: none; position: relative; }
.cont-line::before { content: ""; position: absolute; top: 5px; left: 2%; right: 2%; height: 1px; background: linear-gradient(90deg, var(--teal), var(--gold)); opacity: 0.5; }
.cont-line li { position: relative; padding-top: 1.3rem; }
.cont-line li::before { content: ""; position: absolute; top: 0; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--obsidian); border: 2px solid var(--gold); }
.cont-line li:first-child::before { background: var(--gold); }
.cont-line b { display: block; font-family: var(--font-mono); font-size: 0.66rem; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-200); margin-bottom: 0.3rem; }
.cont-line span { font-size: 0.9rem; color: var(--ink-soft); }

/* ---------- 13 · PROVENANCE (founder) ---------- */
.founder-wrap { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.fig-frame {
  position: relative; display: grid; place-items: center; padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid var(--cell); margin: 0;
}
.fig-frame::before, .fig-frame::after {
  content: ""; position: absolute; width: 18px; height: 18px; border-color: var(--gold); border-style: solid;
}
.fig-frame::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.fig-frame::after { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }
.fig-frame img { width: min(280px, 65%); opacity: 0.95; filter: drop-shadow(0 0 30px rgba(207, 181, 59, 0.2)); }
.fig-frame figcaption { position: absolute; bottom: 0.9rem; left: 1.1rem; }
.founder-quote { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.35rem, 1rem + 1.6vw, 2.15rem); line-height: 1.4; color: var(--cream); font-style: italic; margin: 1.2rem 0 1.4rem; }
.founder-quote em { color: var(--teal-300); }
.founder-by { display: flex; flex-direction: column; }
.founder-by b { font-size: 1.05rem; color: var(--cream); }
.founder-by span { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-faint); margin-top: 0.3rem; }

/* ---------- 14 · CREED (values) ---------- */
.values-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(2.2rem, 5vw, 5.5rem); align-items: start; }
.values-head { position: sticky; top: 110px; }
.values-head p { margin-top: 1.1rem; color: var(--ink-soft); max-width: 32ch; }
.values-triad { margin-top: 1.7rem; font-family: var(--font-display); font-weight: 400; font-size: 1.08rem; color: var(--cream); letter-spacing: 0.05em; }
.values-triad i { color: var(--gold); font-style: normal; margin-inline: 0.45em; }

.values-list { list-style: none; margin: 0; padding: 0; }
.value-row {
  display: flex; gap: clamp(1.2rem, 2.5vw, 2.4rem);
  padding: clamp(1.5rem, 3.2vh, 2.3rem) 0;
  border-bottom: 1px solid var(--line);
}
.value-row:first-child { padding-top: 0.3rem; }
.value-row:last-child { border-bottom: none; }
.value-row .numeral { flex: none; width: 2.1em; line-height: 1.1; font-size: clamp(1.9rem, 1.4rem + 1.5vw, 2.7rem); opacity: 0.35; transition: opacity var(--dur), transform var(--dur); }
.value-row:hover .numeral { opacity: 0.9; transform: translateY(-2px); }
.value-row h3 { margin-bottom: 0.45rem; position: relative; display: inline-block; }
.value-row h3::after {
  content: ""; position: absolute; left: 0; bottom: -5px; height: 1px; width: 0;
  background: linear-gradient(90deg, var(--gold), transparent);
  transition: width 0.55s var(--ease-out);
}
.value-row:hover h3::after { width: 100%; }
.value-row > div p { color: var(--ink-soft); max-width: 52ch; }
.value-row em { font-style: italic; color: var(--teal-300); }

.values-close { margin: clamp(3rem, 8vh, 5.5rem) auto 0; text-align: center; max-width: 60rem; }
.values-close::before {
  content: ""; display: block; width: 64px; height: 1.5px; margin: 0 auto 2.2rem;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.values-close p { font-family: var(--font-display); font-weight: 300; font-style: italic; font-size: clamp(1.5rem, 1rem + 2.3vw, 2.7rem); line-height: 1.28; color: var(--cream); }
.values-close .gilt { color: var(--gold); }
.values-close cite { display: block; margin-top: 1.2rem; font-style: normal; }

/* ---------- 15 · THE LADDER ---------- */
.ladder-rungs { display: flex; align-items: flex-start; justify-content: center; gap: 0.8rem; flex-wrap: wrap; position: relative; }
.ladder-path { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.ladder-path path { stroke: var(--gold); stroke-width: 0.8; stroke-dasharray: 0.2 2.4; stroke-linecap: round; opacity: 0.7; }
.rung { flex: 1 1 240px; max-width: 320px; border: 1px solid var(--cell); border-radius: var(--r-xs); padding: 1.6rem; background: var(--cream-100); position: relative; z-index: 1; }
.rung-k { display: block; font-family: var(--font-display); font-weight: 300; font-size: 1.5rem; color: var(--ink-faint); }
.rung-v { display: block; margin: 0.3rem 0 0.8rem; }
.rung p { font-size: 0.96rem; color: var(--ink-soft); }
.rung.act { background: linear-gradient(160deg, #10141c, var(--navy-900)); border-color: rgba(207, 181, 59, 0.4); box-shadow: 0 0 60px -18px rgba(207, 181, 59, 0.35); }
.rung.act .rung-k { color: var(--gold); }
.rung.act .rung-v { color: var(--gold-200); }
.rung.act p { color: var(--cream); }
.rung-arrow { align-self: center; color: var(--gold); flex: none; }
@media (min-width: 821px) {
  .ladder-rungs .rung:nth-of-type(1) { transform: translateY(56px); }
  .ladder-rungs .rung:nth-of-type(2) { transform: translateY(28px); }
  .ladder-rungs .rung:nth-of-type(3) { transform: translateY(0); }
  .ladder-rungs .rung-arrow:nth-of-type(1) { transform: translateY(64px) rotate(-18deg); }
  .ladder-rungs .rung-arrow:nth-of-type(2) { transform: translateY(30px) rotate(-18deg); }
  .ladder .ladder-rungs { padding-bottom: 3.5rem; }
}

/* ---------- 16 · QUESTIONS (FAQ) ---------- */
.faq-title { margin-bottom: clamp(2rem, 4vh, 3rem); }
.faq-list { border-top: 1px solid var(--line-strong); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex; align-items: baseline; gap: 1.3rem; cursor: pointer;
  padding: 1.35rem 0; list-style: none;
  transition: color var(--dur);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .faq-q { font-family: var(--font-display); font-weight: 300; font-size: clamp(1.15rem, 1rem + 0.8vw, 1.6rem); color: var(--cream); flex: 1; }
.faq-item summary .spec { color: var(--gold); }
.faq-plus { position: relative; width: 14px; height: 14px; flex: none; align-self: center; }
.faq-plus::before, .faq-plus::after {
  content: ""; position: absolute; left: 0; top: 50%; width: 100%; height: 1.5px;
  background: var(--ink-faint); transition: transform 0.4s var(--ease-out), background var(--dur);
}
.faq-plus::after { transform: rotate(90deg); }
.faq-item[open] .faq-plus::after { transform: rotate(0deg); }
.faq-item[open] .faq-plus::before, .faq-item[open] .faq-plus::after { background: var(--gold); }
.faq-item summary:hover .faq-q { color: var(--gold-200); }
.faq-item > p { padding: 0 0 1.5rem 2.6rem; color: var(--ink-soft); max-width: 60ch; }

/* Compact "straight answers" grid — replaces the accordion */
.faq-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1px; background: var(--line); border: 1px solid var(--line);
  border-radius: var(--r-xs); overflow: hidden;
}
.faq-cell { background: var(--bg); padding: clamp(1.2rem, 1rem + 1vw, 1.8rem); }
.faq-cell .faq-q {
  font-family: var(--font-display); font-weight: 300;
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.3rem);
  color: var(--gold-200); margin-bottom: 0.5rem;
}
.faq-cell p { color: var(--ink-soft); font-size: 0.95rem; max-width: 44ch; }
/* One-line definition — spans both columns as the section's lead, keeping the
   six Q&A cells in a clean 2×3 grid below it. */
.faq-cell.faq-lead { grid-column: 1 / -1; }
.faq-cell.faq-lead .faq-q { color: var(--cream); }
.faq-cell.faq-lead p { font-size: 1.08rem; color: var(--cream); max-width: 64ch; }
@media (max-width: 700px) { .faq-grid { grid-template-columns: 1fr; } }

/* ---------- 17 · ENLIST (waitlist) ---------- */
.waitlist { overflow: hidden; }
.wl-mirror {
  text-align: center; font-family: var(--font-display); font-weight: 300; font-style: italic;
  font-size: clamp(1.3rem, 1rem + 1.4vw, 2.1rem); color: var(--ink-soft);
  margin-bottom: clamp(2rem, 4vh, 3rem);
}
.wl-mirror em { color: var(--gold); font-variation-settings: var(--frx-em); }
.wl-card { text-align: center; position: relative; }
.wl-card::before {
  content: ""; position: absolute; left: 50%; top: -30%; transform: translateX(-50%);
  width: 720px; height: 480px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(207, 181, 59, 0.13), transparent 65%);
  filter: blur(30px); z-index: 0;
}
.wl-card > * { position: relative; z-index: 1; }
.wl-sub { color: var(--ink-soft); max-width: 48ch; margin: 1rem auto 2rem; font-size: 1.08rem; }
.wl-sub strong { color: var(--gold-200); }
.wl-form { max-width: 560px; margin: 0 auto; }
.wl-fields { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.wl-field { flex: 1 1 180px; }
.wl-field input {
  width: 100%; padding: 1em 1.2em; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-strong);
  color: var(--cream); font-size: 1rem; transition: border-color var(--dur), background var(--dur);
}
.wl-field input::placeholder { color: var(--mute-2); }
.wl-field input:focus { outline: none; border-color: var(--gold); background: rgba(255, 255, 255, 0.08); }
.wl-fields .btn { flex: 0 0 auto; }
.wl-region { display: flex; align-items: center; gap: 1rem; margin-top: 0.9rem; flex-wrap: wrap; justify-content: center; }
.wl-region select {
  padding: 0.5em 1em; border-radius: var(--r-pill); background: var(--cream-100);
  border: 1px solid var(--line-strong); color: var(--ink-soft); font-size: 0.9rem;
}
.wl-region select:focus { outline: none; border-color: var(--gold); }
.wl-note { font-size: 0.85rem; color: var(--mute-2); }
.wl-error { color: #ffb4a2; font-size: 0.9rem; margin-top: 0.8rem; min-height: 1.2em; font-weight: 500; }
.wl-success { max-width: 460px; margin: 0 auto; animation: pop var(--dur-slow) var(--ease-out) both; }
.wl-tick { width: 66px; height: 66px; border-radius: 50%; background: var(--gold); color: var(--obsidian); display: grid; place-items: center; margin: 0 auto 1.2rem; box-shadow: var(--sh-gold); }
.wl-success h3 { color: var(--cream); }
.wl-success p { color: var(--ink-soft); margin-top: 0.6rem; }
.wl-success [data-wl-position] { display: block; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--gold-200); margin-bottom: 0.5rem; }
@keyframes pop { from { opacity: 0; transform: scale(0.94) } to { opacity: 1; transform: scale(1) } }
.wl-markets { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.6rem; margin-top: 2.5rem; }
.wl-markets span { display: inline-flex; align-items: center; gap: 0.5em; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); }
.wl-markets svg { color: var(--gold-200); }

/* ---------- FOOTER ---------- */
.footer { background: var(--cream-100); border-top: 1px solid var(--line); padding-top: clamp(3rem, 6vh, 5rem); position: relative; overflow: hidden; }
.footer::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.footer-watermark { position: absolute; right: -60px; bottom: -70px; width: 360px; opacity: 0.05; pointer-events: none; user-select: none; }
.footer-inner { display: grid; grid-template-columns: 1fr 1.3fr; gap: 2rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--line); position: relative; z-index: 1; }
.footer-lockup { display: inline-flex; align-items: center; gap: 0.65rem; transition: opacity var(--dur); }
.footer-mark { height: 40px; width: auto; filter: drop-shadow(0 0 12px rgba(207, 181, 59, 0.3)); transition: transform var(--dur) var(--ease-out); }
.footer-lockup:hover .footer-mark { transform: scale(1.05); }
.footer-word { font-family: var(--font-display); font-weight: 400; font-size: 1.6rem; color: var(--cream); text-transform: lowercase; letter-spacing: 0.02em; transition: color var(--dur); }
.footer-lockup:hover .footer-word { color: var(--gold-200); }
.footer-tag { font-size: 1.05rem; color: var(--ink-soft); margin-top: 0.9rem; font-style: italic; }
.footer-badge { margin-top: 1.2rem; color: var(--gold-200); }
.footer-nav { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.footer-nav h4 { font-family: var(--font-mono); font-size: 0.66rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--ink-faint); margin-bottom: 0.9rem; font-weight: 500; }
.footer-nav a, .footer-nav span { display: block; font-size: 0.94rem; color: var(--ink-soft); margin-bottom: 0.5rem; transition: color var(--dur); }
.footer-nav a:hover { color: var(--gold-200); }
.footer-base { padding-block: 1.6rem 2.2rem; position: relative; z-index: 1; }
.footer-disclaimer { font-size: 0.82rem; color: var(--ink-faint); line-height: 1.6; max-width: 70ch; margin-bottom: 1rem; }
.footer-legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem; font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.08em; color: var(--ink-faint); }

/* ============================================================
   07 — INSIDE AEIVA (product tour)
   ============================================================ */
.tour-head { max-width: 40ch; margin-top: 1.4rem; }
.tour-head p { margin-top: 1.1rem; color: var(--ink-soft); }

.tour-screens {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.4rem, 3vw, 3rem); align-items: start;
  margin-top: clamp(2.5rem, 6vh, 4.5rem);
}
.tour-screen { margin: 0; }
.tour-screen .phone { width: 260px; max-width: 82vw; }
.tour-screen figcaption { margin-top: 1.4rem; text-align: center; }
.tour-screen figcaption b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.2rem; color: var(--cream); margin-bottom: 0.35rem; }
.tour-screen figcaption span { display: block; font-size: 0.92rem; line-height: 1.55; color: var(--ink-soft); max-width: 34ch; margin-inline: auto; }

/* Shared dark app-screen surface */
.screen-scan, .screen-workout, .screen-vitals { background: #04101d; color: #f4f1e8; }

/* --- Scanner screen --- */
.scan-window {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  height: 92px; border: 1px dashed rgba(255,255,255,0.16); border-radius: 12px; color: var(--teal-300);
  overflow: hidden;
}
.scan-window b { font-size: 10px; letter-spacing: 0.04em; color: rgba(255,255,255,0.7); }
.scan-line { position: absolute; left: 8%; right: 8%; height: 2px; background: linear-gradient(90deg, transparent, var(--teal-300), transparent); top: 12%; animation: scanmove 2.4s var(--ease-inout) infinite; }
@keyframes scanmove { 0%,100% { top: 14%; } 50% { top: 84%; } }
.scan-result { display: flex; flex-direction: column; gap: 9px; }
.scan-name { font-family: var(--font-display); font-size: 15px; color: #fff; }
.scan-badges { display: flex; align-items: center; gap: 8px; }
.nutriscore { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; font-weight: 800; font-size: 14px; color: #10151c; }
.nutriscore.ns-d { background: #e8863b; }
.nova { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; }
.nova-4 { color: #f0a3a3; background: rgba(200,60,60,0.16); border: 1px solid rgba(200,60,60,0.3); }
.scan-flags { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.scan-flags li { display: flex; align-items: center; gap: 7px; font-size: 10.5px; line-height: 1.35; color: rgba(255,255,255,0.72); }
.scan-flags li svg { flex: none; }
.scan-flags .warn svg { color: #f0a3a3; }
.scan-flags .ok svg { color: var(--teal-300); }

/* --- Workout screen --- */
.wk-pr { display: flex; flex-direction: column; gap: 3px; padding-bottom: 4px; }
.wk-label { font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.5); }
.wk-1rm { display: flex; align-items: baseline; gap: 6px; }
.wk-1rm b { font-family: var(--font-display); font-size: 34px; font-weight: 300; color: #fff; }
.wk-1rm span { font-size: 12px; color: rgba(255,255,255,0.55); }
.wk-up { font-style: normal; font-size: 11px; font-weight: 600; color: var(--teal-300); margin-left: auto; }
.wk-trend { position: relative; display: flex; align-items: flex-end; gap: 5px; height: 78px; padding: 8px 0 18px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.wk-trend i { flex: 1; height: var(--h); background: linear-gradient(180deg, var(--gold), rgba(207,181,59,0.25)); border-radius: 3px 3px 0 0; }
.wk-trend-label { position: absolute; bottom: 2px; left: 0; font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.4); }
.wk-form { display: flex; align-items: center; gap: 7px; margin-top: auto; font-size: 10.5px; color: rgba(255,255,255,0.72); }
.wk-form svg { color: var(--teal-300); }
.wk-form b { color: #fff; font-weight: 600; }

/* --- Vitals screen --- */
.vi-hero { position: relative; display: grid; place-items: center; padding: 6px 0 2px; }
.vi-ring { width: 118px; height: 118px; transform: rotate(-90deg); }
.vi-ring-track { fill: none; stroke: rgba(255,255,255,0.09); stroke-width: 7; }
.vi-ring-fg { fill: none; stroke: var(--gold); stroke-width: 7; stroke-linecap: round; stroke-dasharray: 326.7; stroke-dashoffset: 58.8; filter: drop-shadow(0 0 5px rgba(207,181,59,0.5)); }
.vi-score { position: absolute; text-align: center; }
.vi-score b { display: block; font-family: var(--font-display); font-size: 30px; font-weight: 300; color: #fff; line-height: 1; }
.vi-score span { font-family: var(--font-mono); font-size: 7.5px; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.5); }
.vi-bioage { text-align: center; font-size: 11.5px; color: rgba(255,255,255,0.72); margin-top: 2px; }
.vi-bioage b { color: #fff; }
.vi-bioage i { font-style: normal; color: var(--teal-300); }
.vi-metrics { list-style: none; margin: auto 0 0; padding: 10px 0 0; border-top: 1px solid rgba(255,255,255,0.08); display: flex; justify-content: space-between; }
.vi-metrics li { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.vi-metrics span { font-family: var(--font-mono); font-size: 8px; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.45); }
.vi-metrics b { font-size: 15px; color: #fff; font-weight: 500; }

/* --- Capability bento --- */
.tour-bento {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  margin-top: clamp(3rem, 7vh, 5rem); background: var(--line); border: 1px solid var(--line);
  border-radius: var(--r-lg); overflow: hidden;
}
.tour-cell {
  background: var(--obsidian); padding: clamp(1.3rem, 2vw, 1.8rem);
  transition: background var(--dur) var(--ease-out);
}
.tour-cell:hover { background: #0e0e12; }
.tour-cell svg { color: var(--gold); margin-bottom: 0.9rem; }
.tour-cell h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.12rem; color: var(--cream); margin-bottom: 0.5rem; }
.tour-cell p { font-size: 0.88rem; line-height: 1.55; color: var(--ink-soft); }
/* --- Coming-next tier (visually distinct from the live bento) --- */
.tour-next { margin-top: clamp(3rem, 7vh, 5rem); padding-top: clamp(2rem, 4vh, 3rem); border-top: 1px solid var(--line); }
.tour-next-head { display: flex; flex-direction: column; gap: 0.9rem; margin-bottom: 1.8rem; }
.tour-next-head .label { color: var(--gold-200); }
.tour-next-head p { color: var(--ink-soft); max-width: 46ch; font-size: 0.95rem; }
.tour-next-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(0.9rem, 2vw, 1.4rem); }
.tour-next-grid li {
  border: 1px dashed var(--line-strong); border-radius: var(--r-md);
  background: rgba(207, 181, 59, 0.02); padding: clamp(1.1rem, 1.8vw, 1.5rem);
  transition: border-color var(--dur) var(--ease-out), background var(--dur) var(--ease-out);
}
.tour-next-grid li:hover { border-color: var(--gold-200); background: rgba(207, 181, 59, 0.05); }
.tn-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.8rem; }
.tn-top svg { color: var(--gold); opacity: 0.85; }
.tour-next-grid h4 { font-family: var(--font-display); font-weight: 400; font-size: 1.08rem; color: var(--cream); margin-bottom: 0.4rem; }
.tour-next-grid li p { font-size: 0.86rem; line-height: 1.5; color: var(--ink-soft); }

.tour-foot { margin-top: 2.2rem; font-family: var(--font-mono); font-size: 0.8rem; letter-spacing: 0.04em; color: var(--ink-faint); text-transform: uppercase; line-height: 1.7; }
.tour-foot a { color: var(--gold-200); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-device { order: 2; }
  .hero-copy { order: 1; }
  .hero-sub { max-width: 46ch; }
  .product-showcase { grid-template-columns: 1fr; justify-items: center; gap: 2.5rem; }
  .phone-col.raised { transform: none; order: -1; }
  .founder-wrap { grid-template-columns: 1fr; }
  .founder-mark { max-width: 380px; margin-inline: auto; }
  .pillar-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .footer-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .values-grid { grid-template-columns: 1fr; }
  .values-head { position: static; }
  .values-head p { max-width: 56ch; }
  .eco-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .out-grid { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .pas-ladder { grid-template-columns: 1fr; min-height: 0; gap: 2.5rem; }
  .pl-spine { display: none; }
  .pas-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .ribbon-card { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
  .nav-links {
    position: fixed; inset: 0 0 0 auto; width: min(78vw, 320px);
    flex-direction: column; gap: 0.4rem; justify-content: center; align-items: flex-start;
    padding: 5rem 2rem; background: var(--cream-100); box-shadow: var(--sh-lg);
    border-left: 1px solid var(--line);
    transform: translateX(100%); transition: transform var(--dur) var(--ease-out);
    margin-left: 0; z-index: var(--z-overlay);
  
    /* transform alone leaves the closed panel focusable — a keyboard user
       tabs into an invisible off-screen menu. visibility takes it out of the
       tree while keeping the slide animation. */
    visibility: hidden;
    transition: transform 0.4s var(--ease-out), visibility 0.4s;
  }
  .nav.menu-open .nav-links { visibility: visible; transform: translateX(0); }
  .nav-links a { font-size: 0.95rem; padding: 0.6rem 0; }
  .nav-burger { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin-right: -10px; order: 3; margin-left: auto; z-index: calc(var(--z-overlay) + 1); position: relative; }
  .nav.menu-open .nav-burger { position: fixed; right: var(--gutter); }
  .nav-actions { display: none; }
  .nn-grid { grid-template-columns: 1fr; }
  .wont-grid { grid-template-columns: 1fr; }
  .loop-stats { gap: 1.5rem 2.5rem; }
  .bio-cards { grid-template-columns: 1fr; }
  .footer-watermark { width: 240px; right: -50px; bottom: -50px; }
  .cine-chip { flex: 1 1 100%; align-items: center; text-align: center; }
  .pos-row { grid-template-columns: 1fr; gap: 0.4rem; padding-block: 1rem; }
  .pos-row.pos-head { display: none; }
  .pos-row s { font-size: 0.85rem; }
  .cont-line { grid-template-columns: 1fr 1fr; gap: 1.5rem 1rem; }
  .cont-line::before { display: none; }
  .faq-item > p { padding-left: 0; }
  .tour-screens { grid-template-columns: 1fr; gap: 3rem; max-width: 340px; margin-inline: auto; }
  .tour-bento { grid-template-columns: 1fr 1fr; }
  .tour-next-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .tour-bento { grid-template-columns: 1fr; }
  .tour-next-grid { grid-template-columns: 1fr; }
}

@media (min-width: 821px) and (max-width: 1080px) {
  .tour-bento { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .pillar-grid { grid-template-columns: 1fr; }
  .wl-fields { flex-direction: column; }
  .wl-fields .btn { justify-content: center; }
  .vitals-cards { grid-template-columns: 1fr 1fr; }
  .mantra-top span, .mantra-top em { font-size: 1.5rem; }
  .ladder-rungs { flex-direction: column; align-items: center; }
  .rung-arrow { transform: rotate(90deg); }
  .footer-nav { grid-template-columns: 1fr 1fr; }
  .footer-legal { flex-direction: column; }
  .signal-list { grid-template-columns: 1fr 1fr; }
  .ribbon-form { flex-direction: column; }
  .ribbon-form .btn { justify-content: center; }
}

@media (min-width: 821px) {
  .nav-burger { display: none; }
}

/* Scope note under the trust badges — the badges describe the app, not this page */
.trust-scope { max-width: 62ch; margin-top: 1.2rem; color: var(--ink-soft); }
.trust-scope a { color: var(--gold-200); }
.chip-scope { opacity: 0.72; margin-left: 0.35rem; }
.wl-note a { color: var(--gold-200); text-underline-offset: 2px; }

/* ---------- Explore strip (home, after the CTA) ----------
   The only navigation the home page offers, deliberately placed AFTER the
   waitlist form: nav links above the fold cost conversions. */
.explore-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2vw, 1.6rem); margin-top: clamp(1.6rem, 3vh, 2.4rem);
}
.explore-card {
  display: flex; flex-direction: column; gap: 0.5rem;
  padding: clamp(1.2rem, 1rem + 1vw, 1.7rem);
  border: 1px solid var(--cell); border-radius: var(--r-xs);
  text-decoration: none; color: inherit;
  transition: transform var(--dur) var(--ease-out), border-color var(--dur), background var(--dur);
}
.explore-card:hover {
  transform: translateY(-5px); border-color: var(--gold);
  background: rgba(207, 181, 59, 0.05);
}
.explore-card .spec { color: var(--gold); }
.explore-card p { color: var(--ink-soft); font-size: 0.92rem; }
.explore-go { margin-top: auto; padding-top: 0.9rem; color: var(--gold-200); display: flex; align-items: center; gap: 0.4rem; }
.explore-go svg { fill: none; stroke: currentColor; stroke-width: 1.6; }
@media (max-width: 900px) { .explore-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .explore-grid { grid-template-columns: 1fr; } }

/* current page in the explore nav */
.nav-links a.is-current { color: var(--gold-200); }
/* the current page must outrank hover, which already animates ::after to 100% */
.nav-links a.is-current::after { width: 100%; background: var(--gold); }

/* ---------- Marketplace / partner network ---------- */
.mkt-bar { display: flex; align-items: center; gap: 1rem; margin: clamp(1.5rem, 3vh, 2.2rem) 0; flex-wrap: wrap; }
.mkt-bar input {
  flex: 1 1 22rem; padding: 0.9em 1.2em; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line-strong);
  color: var(--cream); font-size: 0.95rem; transition: border-color var(--dur);
}
.mkt-bar input::placeholder { color: var(--mute-2); }
.mkt-bar input:focus { outline: none; border-color: var(--gold); }
.mkt-count { color: var(--mute-2); }

.mkt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1rem, 2vw, 1.8rem); }
.mkt-cat {
  display: flex; flex-direction: column; gap: 0.6rem;
  border-top: 1px solid var(--cell); padding-top: 1.4rem;
}
.mkt-cat[hidden] { display: none; }
.mkt-cat-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.mkt-cat > p { color: var(--ink-soft); }
.mkt-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.mkt-list:empty { display: none; }
.mkt-list li {
  padding: 0.7rem 0.9rem; border: 1px solid var(--cell); border-radius: var(--r-xs);
  background: rgba(255, 255, 255, 0.02);
}
.mkt-list li b { display: block; color: var(--cream); }
.mkt-list li span { color: var(--mute-2); font-size: 0.86rem; }
/* Honest empty state — shown until a real partner is added to PARTNERS */
.mkt-empty { margin-top: auto; padding-top: 0.9rem; border-top: 1px solid var(--cell); color: var(--gold-200); }
.mkt-note { margin-top: clamp(1.4rem, 3vh, 2rem); color: var(--mute-2); max-width: 70ch; }
@media (max-width: 700px) { .mkt-grid { grid-template-columns: 1fr; } }

/* Live count + expectation beside the hero form (waitlist-CRO: proof at the
   decision point). The count element stays hidden unless the backend answers. */
.hero-proof { margin: 0.2rem 0 1.4rem; color: var(--ink-soft); max-width: 44ch; }
.hero-proof b { color: var(--gold-200); font-family: var(--font-display); font-weight: 400; font-size: 1.15rem; }
.hero-proof [data-wl-count][hidden] { display: none; }

/* "Powered by Baxter Labs" — parent-company attribution in the footer brand block */
.footer-powered {
  display: inline-flex; align-items: center; gap: 0.4rem;
  margin-top: 0.7rem; font-family: var(--font-mono);
  font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--mute-2); text-decoration: none;
  transition: color var(--dur);
}
.footer-powered b { color: var(--gold-200); font-weight: 400; }
.footer-powered svg { fill: none; stroke: currentColor; stroke-width: 1.6; opacity: 0.7; }
.footer-powered:hover { color: var(--cream); }
.footer-powered:hover svg { opacity: 1; }
.footer-legal a { color: var(--ink-soft); text-decoration: none; }
.footer-legal a:hover { color: var(--gold-200); text-decoration: underline; }

/* ---------- Focus rings restored on form controls ----------
   base.css sets a global :focus-visible ring, but the `input:focus{outline:none}`
   rules above out-specify it (0,2,1 vs 0,1,0), so keyboard users were losing the
   ring on the email field — the single most important control on the site.
   These sit later in the file at equal specificity, so they win. */
.hero-form input:focus-visible,
.ribbon-form input:focus-visible,
.wl-field input:focus-visible,
.wl-region select:focus-visible,
.mkt-bar input:focus-visible {
  outline: 2px solid var(--teal-300);
  outline-offset: 3px;
  border-color: var(--gold);
}

/* ---------- Sticky CTA (home only) ----------
   The waitlist pattern calls for a persistent form affordance on scroll: once
   the hero form leaves the viewport there is otherwise no way to sign up until
   the very bottom. Carries the REAL count — no countdown, no invented scarcity.
   Hidden until the hero scrolls away, and hidden again over the final form. */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; align-items: center; justify-content: center; gap: clamp(0.8rem, 2vw, 1.6rem);
  padding: 0.85rem clamp(1rem, 4vw, 2rem) calc(0.85rem + env(safe-area-inset-bottom));
  background: rgba(8, 8, 10, 0.92);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line-strong);
  transform: translateY(110%);
  transition: transform 0.34s var(--ease-out);
}
.sticky-cta.is-visible { transform: translateY(0); }
.sticky-cta p { color: var(--ink-soft); font-size: 0.92rem; margin: 0; }
.sticky-cta b { color: var(--gold-200); font-family: var(--font-display); font-weight: 400; }
.sticky-cta .btn { flex: none; min-height: 44px; }   /* 44px tap target */
@media (prefers-reduced-motion: reduce) { .sticky-cta { transition: none; } }
@media (max-width: 560px) {
  .sticky-cta { gap: 0.7rem; padding-inline: 0.9rem; }
  .sticky-cta p { font-size: 0.82rem; }
}


/* ---------- Skip link ----------
   Every page repeats the logo, four nav links, the CTA and the burger with no
   bypass (WCAG 2.4.1). Visible only when focused. */
.skip-link {
  position: absolute; left: 0.75rem; top: -3.5rem; z-index: 100;
  padding: 0.6rem 1rem; border-radius: var(--r-xs);
  background: var(--gold); color: #08080a;
  font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.06em;
  text-transform: uppercase; text-decoration: none;
  transition: top 0.18s var(--ease-out);
}
.skip-link:focus { top: 0.75rem; }
main:focus { outline: none; }   /* programmatic target, not a user-facing focus */

/* ---------- Trademark notation ----------
   ™ asserts an UNREGISTERED claim. Nothing is registered yet, so ® must never
   appear — misuse is an offence in both India and the EU. Small, superscript,
   and aria-hidden so screen readers do not read "trade mark" mid-headline. */
.tm {
  font-family: var(--font-mono);
  font-size: 0.3em;
  font-weight: 400;
  vertical-align: super;
  letter-spacing: 0.02em;
  opacity: 0.55;
  margin-left: 0.15em;
}
.footer-tag .tm { font-size: 0.45em; }
.footer-tm {
  display: block; margin-top: 0.35rem;
  font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.05em; color: var(--mute-2);
}
