/* ============================================================================
   SWIPEMAXX — COLD READ landing (v2)
   DA: web/DESIGN_DIRECTION_WEB.md · palette locked to the app tokens.
   Laws: transform/opacity only · one red hero per screen · glow, don't paint ·
   90% silence, 3 ceremonies · theater degrades, the funnel never does.
   ========================================================================== */

@font-face {
  font-family: 'SG';
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url('fonts/SpaceGrotesk-400.woff2') format('woff2');
}
@font-face {
  font-family: 'SG';
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url('fonts/SpaceGrotesk-500.woff2') format('woff2');
}
@font-face {
  font-family: 'SG';
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url('fonts/SpaceGrotesk-700.woff2') format('woff2');
}

:root {
  --bg: #0c0c0e;
  --surface: #161618;
  --surface2: #1c1c20;
  --surface3: #2a2a30;
  --hairline: rgba(255, 255, 255, 0.06);
  --hairline2: rgba(255, 255, 255, 0.08);
  --border-strong: #2e2e36;
  --red: #ff3b3b;
  --red-light: #ff8a8a;
  --on-red: #3a0000;
  --text: #ffffff;
  --muted: #8a8a93;
  --keep: #22e06a;
  --keep-faint: rgba(34, 224, 106, 0.16);
  --improve: #ffb020;
  --improve-faint: rgba(255, 176, 32, 0.16);
  --remove-faint: rgba(255, 59, 59, 0.18);
  --missing: #3b9cff;
  --move: #a78bfa;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-loop: cubic-bezier(0.65, 0, 0.35, 1);
  --sheet: cubic-bezier(0.32, 0.72, 0, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; overflow-x: clip; }
body {
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 'SG', system-ui, -apple-system, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: clip;
}
button { touch-action: manipulation; }
b { font-weight: 700; }

/* ---- film grain: the ground becomes material; dithers every glow ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  pointer-events: none;
  opacity: 0.04;
  mix-blend-mode: overlay;
  transform: translateZ(0);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0.5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 300px 300px;
}

/* ============================== TYPE ==================================== */

.display {
  font-weight: 700;
  font-size: clamp(38px, 9.9vw, 118px);
  line-height: 0.96;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.display-sec {
  font-size: clamp(30px, 6.4vw, 54px);
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.display-q {
  font-size: clamp(26px, 5.6vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.015em;
}
.body {
  color: var(--muted);
  max-width: 38ch;
}
.body strong { color: var(--text); font-weight: 500; }
.tel {
  font-weight: 500;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  font-feature-settings: 'tnum';
  font-variant-numeric: tabular-nums;
}
.kicker { display: flex; align-items: center; gap: 8px; margin-bottom: 26px; }
.kicker .ki { color: var(--red); opacity: 0.85; }
.kicker::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }

/* masked line reveal — type is issued, not faded (only when JS will reveal it) */
.line { display: block; overflow: hidden; }
.line-inner { display: inline-block; }
.js .line-inner { transform: translateY(112%); }
.is-in .line-inner { transform: translateY(0); transition: transform 0.7s var(--ease); }
.is-in .line:nth-child(2) .line-inner { transition-delay: 80ms; }
.is-in .line:nth-child(3) .line-inner { transition-delay: 160ms; }

/* section entrances: fast settle, strict stagger (no-JS sees everything) */
.js .rv { opacity: 0; transform: translate3d(0, 14px, 0); }
.is-in.rv, .is-in .rv {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

/* ============================== LAYOUT ================================== */

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.screen { display: none; }
.screen.active { display: block; }
.sec { padding: clamp(88px, 15vw, 170px) 0; position: relative; }

/* ============================== SCAN RAIL =============================== */

.rail { position: fixed; top: 0; right: 0; width: 3px; height: 100vh; height: 100svh; z-index: 60; }
.rail-track { position: absolute; inset: 0; background: rgba(255, 255, 255, 0.07); }
.rail-fill {
  position: absolute;
  inset: 0;
  background: rgba(255, 59, 59, 0.85);
  transform-origin: top;
  transform: scaleY(0);
}
.rail-tip {
  position: absolute;
  right: -4px;
  top: 0;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 59, 59, 0.9) 0%, rgba(255, 59, 59, 0.25) 55%, transparent 75%);
  transform: translateY(-50%);
}
.rail-label {
  position: absolute;
  top: 18px;
  right: 14px;
  writing-mode: vertical-rl;
  font: 500 10px 'SG', sans-serif;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.28);
  font-feature-settings: 'tnum';
  white-space: nowrap;
}

/* ============================== BUTTONS ================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font: 700 16px/1 'SG', sans-serif;
  border: none;
  border-radius: 999px;
  padding: 17px 30px;
  cursor: pointer;
  text-decoration: none;
  position: relative;
  transition: transform 80ms ease-out;
}
.btn:active { transform: scale(0.97); }
.btn:focus-visible { outline: 2px solid var(--red-light); outline-offset: 3px; }
.btn-primary { background: var(--red); color: var(--on-red); }
.btn-primary::after {
  content: '';
  position: absolute;
  inset: -18px -26px;
  border-radius: 999px;
  background: radial-gradient(closest-side, rgba(255, 59, 59, 0.4), transparent 72%);
  opacity: 0.55;
  z-index: -1;
  pointer-events: none;
  transition: opacity 0.2s ease-out;
}
.btn-primary:hover::after { opacity: 0.9; }

.appstore-btn {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  background: linear-gradient(180deg, var(--surface2) 0%, var(--surface) 100%);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 11px 20px 11px 16px;
  text-decoration: none;
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: border-color 0.16s var(--ease), transform 80ms ease-out;
}
.appstore-btn:hover { border-color: var(--muted); }
.appstore-btn:active { transform: scale(0.97); }
.appstore-btn:focus-visible { outline: 2px solid var(--red-light); outline-offset: 3px; }
.appstore-btn svg { width: 22px; height: 22px; fill: var(--text); flex: none; }
.as-small { display: block; font-size: 10px; color: var(--muted); line-height: 1.2; }
.as-big { display: block; font-size: 16px; font-weight: 700; line-height: 1.15; }

.cta-cluster { display: grid; gap: 12px; justify-items: start; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.cta-microline { color: rgba(255, 255, 255, 0.34); }

/* sticky CTA bar — solid surface (no backdrop blur on moving content) */
.stickybar {
  position: fixed;
  inset: auto 0 0;
  z-index: 55;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 18px calc(10px + env(safe-area-inset-bottom));
  background: var(--surface);
  border-top: 1px solid var(--hairline2);
  transform: translateY(110%);
  transition: transform 0.35s var(--sheet);
}
.stickybar.on { transform: translateY(0); }
.stickybar .btn { padding: 13px 22px; font-size: 15px; }
.stickybar-tel {
  font: 500 11px 'SG', sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============================== HERO ==================================== */

.hero {
  min-height: 100svh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 24px 0 64px;
}
/* monochrome aurora: light leaking from the machine — small pools, never one big radial */
.hero-atmo {
  position: absolute;
  inset: -5% 0;
  pointer-events: none;
  background:
    radial-gradient(60% 45% at 72% 6%, rgba(255, 59, 59, 0.16), transparent 68%),
    radial-gradient(45% 35% at 14% 28%, rgba(255, 138, 138, 0.08), transparent 70%),
    radial-gradient(70% 55% at 50% 114%, rgba(255, 59, 59, 0.11), transparent 65%);
}
/* the inspection lamp + corner falloff */
.hero-lamp {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(120% 60% at 50% -10%, rgba(255, 59, 59, 0.15), transparent 60%),
    radial-gradient(140% 100% at 50% 40%, transparent 55%, rgba(0, 0, 0, 0.5));
}
.hero .wrap { position: relative; width: 100%; }

.topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: clamp(40px, 8vh, 84px); }
.wordmark { font-weight: 700; font-size: 17px; letter-spacing: -0.01em; }
.wordmark b { color: var(--red); }
.badge-18 {
  font: 500 11px 'SG', sans-serif;
  letter-spacing: 0.14em;
  color: var(--muted);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 5px 10px;
}

.hero-tel { margin-bottom: 22px; min-height: 15px; }
.hero-h1 { margin-bottom: 26px; }
.hero-sub { margin-bottom: 34px; }

/* boot orchestration: pure CSS, runs before JS parses; content legible fast */
.boot { opacity: 0; transform: translate3d(0, 10px, 0); animation: bootIn 0.6s var(--ease) both; }
.boot-1 { animation-delay: 60ms; }
.boot-2 { animation-delay: 140ms; }
.boot-3 { animation-delay: 520ms; }
.boot-4 { animation-delay: 660ms; }
.boot-5 { animation-delay: 820ms; }
.boot-6 { animation-delay: 960ms; }
@keyframes bootIn { to { opacity: 1; transform: none; } }
.boot-l1, .boot-l2, .boot-l3 { animation: lineUp 0.7s var(--ease) both; }
.boot-l1 { animation-delay: 200ms; }
.boot-l2 { animation-delay: 280ms; }
.boot-l3 { animation-delay: 360ms; }
@keyframes lineUp { from { transform: translateY(112%); } to { transform: translateY(0); } }

/* subject card: ceremonial chrome — gradient hairline lit from above */
.subject-card {
  position: relative;
  margin-top: clamp(40px, 7vh, 64px);
  max-width: 520px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 24px 26px;
  border-radius: 18px;
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, var(--surface2) 0%, var(--surface) 100%) padding-box,
    linear-gradient(180deg, rgba(255, 59, 59, 0.28), rgba(255, 255, 255, 0.03) 55%) border-box;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 1px 2px rgba(0, 0, 0, 0.45),
    0 24px 48px -16px rgba(0, 0, 0, 0.55);
}
.tick { position: absolute; width: 13px; height: 13px; border: 0 solid var(--border-strong); pointer-events: none; }
.t-tl { top: 7px; left: 7px; border-top-width: 1px; border-left-width: 1px; }
.t-tr { top: 7px; right: 7px; border-top-width: 1px; border-right-width: 1px; }
.t-bl { bottom: 7px; left: 7px; border-bottom-width: 1px; border-left-width: 1px; }
.t-br { bottom: 7px; right: 7px; border-bottom-width: 1px; border-right-width: 1px; }
.brackets { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.brackets path { fill: none; stroke: rgba(255, 255, 255, 0.14); stroke-width: 1; }
.brackets .ctick { stroke: rgba(255, 255, 255, 0.08); }

.subject-fields { flex: 1; display: grid; gap: 8px; }
.sf-row { display: flex; justify-content: space-between; gap: 16px; }
.sf-row dt {
  font: 500 11px 'SG', sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.sf-row dd {
  font: 500 12px 'SG', sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-feature-settings: 'tnum';
}
.sf-row dd.hot { color: var(--red-light); }

/* score ring — always red, any score */
.ring { position: relative; display: inline-block; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); display: block; }
.ring-track, .ring-arc { fill: none; stroke-width: 8; }
.ring-track { stroke: #26262c; }
.ring-arc {
  stroke: var(--red);
  stroke-linecap: round;
  stroke-dasharray: calc(var(--p, 0) * 276.5) 276.5;
}
.ring-val {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-weight: 700;
  font-feature-settings: 'tnum';
  letter-spacing: -0.02em;
}
.ring.locked .ring-val { color: var(--red); animation: qpulse 2.4s var(--ease-loop) infinite alternate; }
@keyframes qpulse { from { opacity: 0.7; } to { opacity: 1; } }
.ring-hero { width: 96px; height: 96px; }
.ring-hero .ring-val { font-size: 34px; }
.ring-halo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 300%;
  height: 300%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 59, 59, 0.22), rgba(255, 59, 59, 0.05) 48%, transparent 72%);
  animation: breathe 4s var(--ease-loop) infinite alternate;
}
@keyframes breathe { from { opacity: 0.6; transform: translate(-50%, -50%) scale(0.98); } to { opacity: 1; transform: translate(-50%, -50%) scale(1.04); } }

/* delta echo */
.delta-echo { display: flex; align-items: baseline; gap: 16px; margin-top: clamp(36px, 6vh, 56px); flex-wrap: wrap; }
.de-from {
  font-weight: 700;
  font-size: 40px;
  color: rgba(255, 255, 255, 0.35);
  font-feature-settings: 'tnum';
}
.de-arrow { width: 30px; align-self: center; }
.de-arrow path { fill: none; stroke: var(--muted); stroke-width: 1.5; }
.de-to {
  font-weight: 700;
  font-size: 62px;
  color: var(--text);
  font-feature-settings: 'tnum';
  text-shadow: 0 0 28px rgba(255, 59, 59, 0.45);
}
.de-cap { font-size: 13px; color: var(--muted); line-height: 1.45; }

/* ============================== 01 · EVIDENCE =========================== */

.ticker {
  overflow: hidden;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  padding: 15px 0;
  margin-bottom: clamp(72px, 12vw, 130px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker-track {
  display: flex;
  gap: 44px;
  width: max-content;
  animation: marquee 46s linear infinite;
}
@keyframes marquee { to { transform: translateX(-50%); } }
.tk {
  font: 500 12px 'SG', sans-serif;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.tk.cut { color: var(--red); }
.tk.fix { color: var(--improve); }
.tk.keep { color: var(--keep); }
.tk.missing { color: var(--missing); }
.tk.move { color: var(--move); }

.steps { display: grid; gap: 0; margin-top: 40px; max-width: 560px; }
.step { display: flex; gap: 20px; padding: 20px 0; border-top: 1px solid var(--hairline); }
.step-n {
  font-weight: 700;
  font-size: 14px;
  color: var(--red);
  opacity: 0.85;
  font-feature-settings: 'tnum';
  padding-top: 2px;
}
.step-t { font-weight: 500; font-size: 16px; margin-bottom: 3px; }
.step-d { font-size: 14px; color: var(--muted); max-width: 42ch; }

/* ============================== 02 · THE REBUILD ======================== */

.pin-wrap { height: 400vh; height: 400svh; position: relative; }
.pin-scene {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.pin-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(150vw, 1100px);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 59, 59, 0.16), rgba(255, 59, 59, 0.04) 48%, transparent 70%);
  opacity: 0;
}
.pin-lay {
  display: grid;
  gap: 40px;
  align-items: center;
  grid-template-columns: 1fr;
  width: 100%;
}
.pin-copy { position: relative; z-index: 2; }
.pin-beats { position: relative; min-height: 2.3em; }
.beat { position: absolute; inset: 0 auto auto 0; }
.js .beat { opacity: 0; transform: translate3d(0, 12px, 0); }
.pin-deltas { margin-top: 26px; display: grid; gap: 9px; }
.pdelta {
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: 14px;
  color: var(--muted);
  transition: opacity 0.32s var(--ease), transform 0.32s var(--ease);
}
.js .pdelta { opacity: 0; transform: translate3d(0, 8px, 0); }
.pdelta.on { opacity: 1; transform: none; }
.pdelta b { color: var(--red-light); font-feature-settings: 'tnum'; flex: none; }

.pin-stage { position: relative; display: flex; align-items: center; justify-content: center; gap: clamp(18px, 4vw, 48px); }
.pin-score { display: grid; justify-items: center; gap: 6px; }
.ps-num {
  font-weight: 700;
  font-size: clamp(88px, 20vw, 190px);
  line-height: 1;
  letter-spacing: -0.04em;
  font-feature-settings: 'tnum';
  font-variant-numeric: tabular-nums;
  min-width: 2.1ch;
  text-align: center;
  contain: layout paint;
  color: var(--muted);
}
.pin-scene.landed .ps-num { color: var(--red); animation: pop 0.5s var(--ease); text-shadow: 0 0 42px rgba(255, 59, 59, 0.5); }
@keyframes pop { 0% { transform: scale(0.96); } 55% { transform: scale(1.03); } 100% { transform: scale(1); } }
.ps-cap { min-width: 12ch; text-align: center; }

/* ============================== THE PHONE =============================== */
/* concentric radii or it reads fake: screen radius = case radius − padding */

.phone {
  width: min(280px, 62vw);
  padding: 1px;
  border-radius: 47px;
  background: linear-gradient(135deg, #55555c 0%, #2a2a2e 45%, #000 100%);
  position: relative;
  z-index: 2;
}
.phone-case { padding: 5px; background: #181818; border-radius: 46px; }
.phone-screen {
  position: relative;
  border-radius: 40px;
  aspect-ratio: 390 / 800;
  overflow: hidden;
  background: var(--bg);
  box-shadow: inset 0 0 3px 1px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
}
.phone::before {
  /* dynamic island + lens, one light source above-left */
  content: '';
  position: absolute;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  width: 32%;
  height: 24px;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 35%, #1a1a1a 0%, #050505 100%);
  z-index: 5;
}
.phone::after {
  content: '';
  position: absolute;
  top: 23px;
  left: calc(50% + 26px);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #222 0%, #0a0a0a 60%, #050505 100%);
  z-index: 6;
}
.phone .side-l1, .phone .side-r1 { position: absolute; width: 3px; border-radius: 2px; background: #2a2a2e; }

.scr-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 22px 0;
  font: 500 11px 'SG', sans-serif;
  color: var(--text);
  font-feature-settings: 'tnum';
}
.scr-glyphs { display: inline-flex; gap: 5px; align-items: center; }
.scr-glyphs svg { height: 10px; fill: var(--text); }
.g-sig { width: 15px; }
.g-bat { width: 22px; }
.g-bat .shell { fill: none; stroke: rgba(255, 255, 255, 0.4); }
.scr-brand { font-weight: 700; font-size: 13px; text-align: center; padding: 14px 0 4px; }
.scr-brand b { color: var(--red); }
.scr-eyebrow { text-align: center; font-size: 10px; margin: 4px 0 8px; }

.scr-photo {
  position: relative;
  margin: 8px 14px;
  border-radius: 13px;
  overflow: hidden;
  background: radial-gradient(70% 55% at 50% 30%, var(--surface2), transparent 75%), var(--bg);
  border: 1px solid var(--hairline);
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.scr-photo .bust { width: 78%; transition: width 0.4s var(--ease), opacity 0.4s var(--ease); }
.scr-photo.rebuilt .bust { width: 56%; }
.thirds {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  background:
    linear-gradient(90deg, transparent calc(33.3% - 0.5px), rgba(255, 255, 255, 0.06) calc(33.3% - 0.5px), rgba(255, 255, 255, 0.06) calc(33.3% + 0.5px), transparent calc(33.3% + 0.5px)),
    linear-gradient(90deg, transparent calc(66.6% - 0.5px), rgba(255, 255, 255, 0.06) calc(66.6% - 0.5px), rgba(255, 255, 255, 0.06) calc(66.6% + 0.5px), transparent calc(66.6% + 0.5px)),
    linear-gradient(0deg, transparent calc(33.3% - 0.5px), rgba(255, 255, 255, 0.06) calc(33.3% - 0.5px), rgba(255, 255, 255, 0.06) calc(33.3% + 0.5px), transparent calc(33.3% + 0.5px)),
    linear-gradient(0deg, transparent calc(66.6% - 0.5px), rgba(255, 255, 255, 0.06) calc(66.6% - 0.5px), rgba(255, 255, 255, 0.06) calc(66.6% + 0.5px), transparent calc(66.6% + 0.5px));
}
.thirds.on { opacity: 1; }
.scr-photo-tel { position: absolute; top: 10px; left: 12px; font-size: 9px; letter-spacing: 0.12em; }

.scr-rows { padding: 10px 14px 6px; display: grid; gap: 0; }
.scr-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--hairline);
}
.scr-lbl { font-size: 12px; color: var(--text); }
.scr-home {
  margin: 6px auto 8px;
  width: 36%;
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
}

/* stamps — the customs-stamp snap */
.stamp {
  display: inline-block;
  font: 700 10px 'SG', sans-serif;
  letter-spacing: 0.1em;
  padding: 4px 9px;
  border-radius: 6px;
}
.js .stamp { opacity: 0; transform: scale(1.3) rotate(6deg); }
.stamp.on { animation: stampIn 0.32s var(--ease) forwards; }
@keyframes stampIn {
  0% { opacity: 0; transform: scale(1.3) rotate(6deg); }
  55% { opacity: 1; transform: scale(0.95) rotate(-3deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}
.s-keep { color: var(--keep); background: var(--keep-faint); }
.s-fix { color: var(--improve); background: var(--improve-faint); }
.s-cut { color: var(--red); background: var(--remove-faint); }

/* glass glint — only on the final phone */
.glint, .wash { position: absolute; pointer-events: none; z-index: 4; }
.glint {
  inset: -25%;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0) 42%, rgba(255, 255, 255, 0.035) 42%, rgba(255, 255, 255, 0.035) 51%, rgba(255, 255, 255, 0) 51%);
}
.wash { inset: 3px; background: linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0%, rgba(255, 255, 255, 0) 55%); }

/* ============================== 03 · CASE FILES ========================= */

.cases { display: grid; gap: 22px; grid-template-columns: 1fr; margin-top: 44px; max-width: 760px; }
.case { display: grid; gap: 14px; }
.case-img {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--hairline);
  background: radial-gradient(75% 55% at 50% 32%, #1d1d22, transparent 82%), #111113;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.case-img.lit {
  background: radial-gradient(70% 55% at 50% 30%, var(--surface2), transparent 75%), var(--bg);
  border-color: var(--hairline2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.case-before .bust-bad { width: 108%; opacity: 0.9; }
.case-after .bust { width: 62%; }
.case-stamp { position: absolute; top: 14px; right: 14px; font-size: 12px; padding: 5px 11px; }
.case figcaption { display: grid; gap: 6px; }
.case figcaption p { font-size: 14px; color: var(--muted); max-width: 40ch; }
.dplus { color: var(--red-light); font-feature-settings: 'tnum'; margin-right: 6px; }

/* ============================== 04 · THE VERDICT ======================== */

.sec-final { padding-bottom: 0; overflow: hidden; }
.final-lay { display: grid; gap: 64px; grid-template-columns: 1fr; align-items: center; }
.final-copy .cta-cluster { margin-top: 34px; }
.guides-quiet { display: grid; gap: 9px; margin-top: 46px; }
.guides-quiet a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.16s var(--ease);
}
.guides-quiet a:hover { color: var(--text); }

.final-stage { position: relative; display: flex; justify-content: center; padding: 40px 0 70px; }
/* the screen-light rig: three radii of red light, physics not stickers */
.glow-core, .glow-mid, .glow-air {
  position: absolute;
  left: 50%;
  top: 46%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
}
.glow-core {
  width: 420px;
  height: 420px;
  background: radial-gradient(closest-side, rgba(255, 59, 59, 0.28), rgba(255, 59, 59, 0) 70%);
  animation: coreBreathe 4s var(--ease-loop) infinite alternate;
}
@keyframes coreBreathe { from { opacity: 0.85; transform: translate(-50%, -50%) scale(0.98); } to { opacity: 1; transform: translate(-50%, -50%) scale(1.02); } }
.glow-mid { width: 900px; height: 900px; background: radial-gradient(closest-side, rgba(255, 59, 59, 0.1), transparent 65%); }
.glow-air { width: 1400px; height: 1400px; background: radial-gradient(closest-side, rgba(255, 59, 59, 0.04), transparent 60%); mix-blend-mode: screen; }
.floor-shadow {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%) scaleY(0.5);
  width: 62%;
  height: 36px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.55), transparent 70%);
}
.floor-bounce {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%) scaleY(0.25);
  width: 58%;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 59, 59, 0.1), transparent 70%);
}
.phone-final .ring { width: 118px; height: 118px; margin: 6px auto; display: block; }
.phone-final .ring-val { font-size: 40px; color: var(--red); }

.footer { border-top: 1px solid var(--hairline); margin-top: clamp(70px, 10vw, 120px); padding: 34px 0 46px; }
.footer p { font-size: 13px; color: var(--muted); }
.footer .fnote { margin-top: 8px; }
.footer a { color: var(--muted); }
.footer a:hover { color: var(--text); }

/* ============================== QUIZ ==================================== */

.quiz-wrap { max-width: 560px; min-height: 100svh; display: flex; flex-direction: column; padding-top: 26px; padding-bottom: 40px; }
.quiz-top { display: flex; align-items: center; gap: 16px; margin-bottom: clamp(40px, 9vh, 90px); }
.quiz-back {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: none;
  color: var(--muted);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: color 0.16s, border-color 0.16s, transform 80ms ease-out;
}
.quiz-back:active { transform: scale(0.94); }
.quiz-back:hover { color: var(--text); border-color: var(--muted); }
.quiz-bar { flex: 1; height: 3px; border-radius: 999px; background: var(--surface3); overflow: hidden; }
.quiz-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--red), var(--red-light));
  border-radius: 999px;
  transform-origin: left;
  transform: scaleX(0.2);
  transition: transform 0.42s var(--ease);
}
.quiz-view { transition: opacity 0.2s var(--ease), transform 0.2s var(--ease); }
.quiz-view.out { opacity: 0; transform: translate3d(-24px, 0, 0); }
.quiz-view.in { opacity: 0; transform: translate3d(24px, 0, 0); transition: none; }
#quizQuestion { margin-bottom: 30px; }
.quiz-opts { display: grid; gap: 11px; }
.quiz-opt {
  position: relative;
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  text-align: left;
  background: linear-gradient(180deg, var(--surface2) 0%, var(--surface) 100%);
  color: var(--text);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 17px 18px;
  font: 400 16px/1.35 'SG', sans-serif;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition: transform 80ms ease-out, border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.quiz-opt:active { transform: scale(0.985); }
.quiz-opt:hover { border-color: var(--border-strong); }
.quiz-opt:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.quiz-opt.sel {
  border-color: rgba(255, 59, 59, 0.45);
  background: linear-gradient(180deg, #221416 0%, var(--surface) 100%);
}
.quiz-opt .qo-emoji { font-size: 18px; }
.quiz-opt .qo-check {
  margin-left: auto;
  width: 18px;
  height: 18px;
  flex: none;
  opacity: 0;
}
.quiz-opt.sel .qo-check { opacity: 1; }
.qo-check path {
  fill: none;
  stroke: var(--red-light);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 20;
  stroke-dashoffset: 20;
}
.quiz-opt.sel .qo-check path { animation: drawCheck 0.2s ease-out 40ms forwards; }
@keyframes drawCheck { to { stroke-dashoffset: 0; } }
.coldread { margin-top: 26px; min-height: 18px; color: var(--red-light); }
.coldread span { opacity: 0; }
.coldread span.w { animation: wordIn 0.18s var(--ease) forwards; }
@keyframes wordIn { to { opacity: 1; } }

/* ============================== BUILDING ================================ */

.building-wrap {
  max-width: 560px;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 38px;
  text-align: center;
}
.build-core { position: relative; width: 120px; height: 120px; }
.bc-halo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 320px;
  height: 320px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 59, 59, 0.25), rgba(255, 59, 59, 0.06) 48%, transparent 72%);
  animation: breathe 1.8s var(--ease-loop) infinite alternate;
}
.bc-dot {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 26px;
  height: 26px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--red);
  animation: corePulse 1.8s var(--ease-loop) infinite alternate;
}
@keyframes corePulse { from { transform: translate(-50%, -50%) scale(0.9); } to { transform: translate(-50%, -50%) scale(1.15); } }
.build-pct {
  font-weight: 700;
  font-size: 76px;
  line-height: 1;
  letter-spacing: -0.03em;
  font-feature-settings: 'tnum';
  font-variant-numeric: tabular-nums;
}
.bp-sign { font-size: 30px; color: var(--muted); margin-left: 4px; }
.build-steps { display: grid; gap: 13px; justify-items: start; text-align: left; }
.bstep { display: flex; align-items: center; gap: 12px; opacity: 0.28; transition: opacity 0.3s var(--ease); }
.bstep.active, .bstep.done { opacity: 1; }
.bstep.done { color: var(--keep); }
.bdot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.building-wrap.still .bc-halo, .building-wrap.still .bc-dot { animation-play-state: paused; }

/* ============================== REVEAL ================================== */

.reveal-wrap {
  max-width: 460px;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  padding-top: 40px;
  padding-bottom: 48px;
  text-align: center;
}
.rv-eyebrow { color: var(--red-light); }
.verdict-card {
  position: relative;
  width: 100%;
  border-radius: 20px;
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, var(--surface2) 0%, var(--surface) 100%) padding-box,
    linear-gradient(180deg, rgba(255, 59, 59, 0.25), rgba(255, 255, 255, 0.03) 60%) border-box;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 24px 60px -20px rgba(0, 0, 0, 0.6);
  padding: 24px 22px 26px;
  text-align: left;
}
.vc-brand { font-weight: 700; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.vc-brand b { color: var(--red); }
.vc-rows { display: grid; }
.vrow {
  display: flex;
  gap: 12px;
  padding: 11px 0;
  border-top: 1px solid var(--hairline);
  align-items: baseline;
  opacity: 0;
  transform: translate3d(0, 10px, 0);
}
.vrow.on { opacity: 1; transform: none; transition: opacity 0.32s var(--ease), transform 0.32s var(--ease); }
.vtag { font: 700 11px 'SG', sans-serif; letter-spacing: 0.1em; text-transform: uppercase; width: 70px; flex: none; }
.vt-missing { color: var(--missing); }
.vt-improve { color: var(--improve); }
.vt-keep { color: var(--keep); }
.vrow p { font-size: 14px; color: var(--text); line-height: 1.4; }
.vc-lock { position: relative; text-align: center; border-top: 1px solid var(--hairline); margin-top: 4px; padding: 24px 0 6px; }
.vc-lock .ring-halo { width: 260px; height: 260px; left: 50%; top: 44%; }
.ring-lock { width: 96px; height: 96px; }
.ring-lock .ring-val { font-size: 34px; }
.lock-lab { color: var(--red-light); margin-top: 12px; }
.lock-expl { font-size: 13.5px; color: var(--muted); margin: 10px auto 0; max-width: 32ch; }
.reveal-cta { display: grid; gap: 14px; justify-items: center; }
.as-big-cta { padding: 14px 26px 14px 20px; }
.as-big-cta svg { width: 26px; height: 26px; }

/* ============================== RESPONSIVE ============================== */

@media (min-width: 760px) {
  .pin-lay { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
  .cases { grid-template-columns: 1fr 1fr; }
  .final-lay { grid-template-columns: 1.05fr 0.95fr; }
  .stickybar { justify-content: center; gap: 26px; }
}
@media (max-width: 759px) {
  .pin-lay { gap: 18px; align-content: center; }
  .pin-copy .kicker { margin-bottom: 14px; }
  .pin-deltas { margin-top: 14px; }
  .phone-pin { width: min(190px, 46vw); }
  .ps-num { font-size: clamp(72px, 24vw, 120px); }
  .rail-label { display: none; }
}

/* ============================== REDUCED MOTION ========================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .boot, .boot-l1, .boot-l2, .boot-l3 { animation: none; opacity: 1; transform: none; }
  .line-inner { transform: none !important; transition: none !important; }
  .rv, .js .rv, .is-in.rv, .is-in .rv { opacity: 1; transform: none; transition: none; }
  .ring.locked .ring-val, .ring-halo, .glow-core, .bc-halo, .bc-dot { animation: none; }
  .ticker-track { animation: none; }
  .pin-wrap { height: auto; }
  .pin-scene { position: static; height: auto; padding: clamp(88px, 15vw, 170px) 0; }
  .pin-glow { opacity: 0.5; }
  .beat, .js .beat { position: static; opacity: 1; transform: none; margin-bottom: 6px; }
  .ps-num { color: var(--red); }
  .pdelta, .js .pdelta, .vrow, .stamp, .js .stamp { opacity: 1; transform: none; animation: none; }
  .stickybar { transition: opacity 0.2s; }
  .quiz-view, .quiz-bar-fill { transition: none; }
  .coldread span { opacity: 1; animation: none; }
}

/* low-fps sentinel fallback: unpin the rebuild, show the end state */
body.no-pin .pin-wrap { height: auto; }
body.no-pin .pin-scene { position: static; height: auto; padding: clamp(88px, 15vw, 170px) 0; }
body.no-pin .beat { position: static; opacity: 1; transform: none; margin-bottom: 6px; }
body.no-pin .ps-num { color: var(--red); }
body.no-pin .pdelta { opacity: 1; transform: none; }
body.no-pin .pin-glow { opacity: 0.5; }

/* ============================================================================
   V2 RICHNESS — the layer that separates a page from a place.
   Dot grids · ghost type · floating chips · outline display · monumental footer
   ========================================================================== */

/* dotted grid: structure in the silence, faded by mask so it never shouts */
.dotgrid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(115% 85% at 50% 32%, #000, transparent 78%);
  mask-image: radial-gradient(115% 85% at 50% 32%, #000, transparent 78%);
}
.dotgrid-low {
  -webkit-mask-image: radial-gradient(90% 70% at 50% 10%, #000, transparent 80%);
  mask-image: radial-gradient(90% 70% at 50% 10%, #000, transparent 80%);
  opacity: 0.7;
}

/* outlined display type — the brand speaking in wireframe */
.outline-red {
  color: transparent;
  -webkit-text-stroke: 2px var(--red);
  paint-order: stroke;
}
@supports not (-webkit-text-stroke: 2px red) {
  .outline-red { color: var(--red); }
}

/* ghost numerals: the machine indexes its own page */
.ghost-num {
  position: absolute;
  top: -0.28em;
  right: -12px;
  font-weight: 700;
  font-size: clamp(150px, 34vw, 340px);
  line-height: 1;
  letter-spacing: -0.04em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.055);
  pointer-events: none;
  user-select: none;
  font-feature-settings: 'tnum';
  z-index: 0;
}
@supports not (-webkit-text-stroke: 1px red) {
  .ghost-num { color: rgba(255, 255, 255, 0.028); }
}
.sec .wrap, .final-lay { position: relative; }
.sec .wrap > *:not(.ghost-num), .final-lay > *:not(.ghost-num) { position: relative; z-index: 1; }

/* ============================== HERO V2 ================================= */

.hero-grid { display: grid; gap: clamp(44px, 7vw, 72px); align-items: center; }
@media (min-width: 880px) {
  .hero-grid { grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr); }
}
.hero { padding-bottom: clamp(56px, 9vw, 110px); }
.hero-h1 .line { padding-bottom: 0.06em; }

.hero-stage {
  position: relative;
  display: flex;
  justify-content: center;
  padding: clamp(28px, 5vw, 40px) 0 clamp(44px, 6vw, 60px);
}
.phone-hero { width: min(270px, 66vw); }
.ring-heroscreen {
  width: min(128px, 32vw);
  height: min(128px, 32vw);
  display: block;
  margin: 10px auto 6px;
}
.ring-heroscreen .ring-val { font-size: 44px; color: var(--red); }
.qpill {
  font: 700 11px/1 'SG', sans-serif;
  color: var(--muted);
  background: var(--surface3);
  border-radius: 6px;
  padding: 5px 10px;
  letter-spacing: 0.08em;
}

/* the giant ghost question mark — the tension, monumental */
.ghost-q {
  position: absolute;
  left: 50%;
  top: 44%;
  transform: translate(-50%, -50%);
  font-weight: 700;
  font-size: clamp(360px, 96vw, 560px);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 59, 59, 0.16);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
@supports not (-webkit-text-stroke: 1px red) {
  .ghost-q { color: rgba(255, 59, 59, 0.05); }
}
.hero-stage .glow-core { top: 44%; width: min(430px, 105vw); height: min(430px, 105vw); }
.hero-stage .glow-mid { top: 44%; }
.hero-stage .glow-air { top: 44%; }
.hero-stage .floor-shadow { bottom: 8px; }
.hero-stage .floor-bounce { bottom: -2px; }

/* floating verdict chips — the machine's outputs orbiting the device */
.chip {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px;
  border-radius: 12px;
  border: 1px solid var(--hairline2);
  background: linear-gradient(180deg, rgba(34, 34, 39, 0.92) 0%, rgba(22, 22, 24, 0.92) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 14px 34px -10px rgba(0, 0, 0, 0.65);
}
.chip .stamp { opacity: 1; transform: none; animation: none; font-size: 10px; padding: 4px 8px; }
.chip-sub { font: 400 11.5px 'SG', sans-serif; color: var(--muted); white-space: nowrap; }
.chip-delta b { font: 700 17px 'SG', sans-serif; color: var(--red-light); font-feature-settings: 'tnum'; }
.chip-status { top: 7%; left: max(-6px, 1%); }
.chip-keep { top: 22%; right: max(-10px, 0%); }
.chip-cut { bottom: 27%; left: max(-14px, -1%); }
.chip-delta { bottom: 12%; right: max(-4px, 2%); }
.float-a { animation: floaty 5.6s var(--ease-loop) infinite alternate; }
.float-b { animation: floaty 6.4s var(--ease-loop) 0.7s infinite alternate; }
.float-c { animation: floaty 5.9s var(--ease-loop) 1.3s infinite alternate; }
.float-d { animation: floaty 6.8s var(--ease-loop) 0.4s infinite alternate; }
@keyframes floaty {
  from { transform: translate3d(0, -5px, 0); }
  to { transform: translate3d(0, 6px, 0); }
}

/* CTA sheen: a bar of light crosses the primary button, then rests */
.btn-primary { overflow: hidden; }
.btn-primary .sheen {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, 0.32) 46%, rgba(255, 255, 255, 0.32) 52%, transparent 66%);
  transform: translateX(-130%);
  animation: sheen 4.2s var(--ease) 1.4s infinite;
}
@keyframes sheen {
  0% { transform: translateX(-130%); }
  22% { transform: translateX(130%); }
  100% { transform: translateX(130%); }
}

/* ============================== TICKER V2 =============================== */

.ticker-big {
  overflow: hidden;
  padding: clamp(10px, 2vw, 22px) 0 0;
  margin-bottom: clamp(64px, 11vw, 120px);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ticker-big-track {
  display: flex;
  align-items: center;
  gap: clamp(26px, 5vw, 56px);
  width: max-content;
  animation: marqueeR 60s linear infinite;
}
@keyframes marqueeR { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.ticker-big-track span {
  font-weight: 700;
  font-size: clamp(58px, 11vw, 118px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.13);
  white-space: nowrap;
}
.ticker-big-track .tb-red { -webkit-text-stroke: 1px rgba(255, 59, 59, 0.42); }
.ticker-big-track .tb-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 59, 59, 0.5);
  -webkit-text-stroke: 0;
  flex: none;
}
@supports not (-webkit-text-stroke: 1px red) {
  .ticker-big-track span { color: rgba(255, 255, 255, 0.06); }
  .ticker-big-track .tb-red { color: rgba(255, 59, 59, 0.2); }
}
.ticker { margin-bottom: 0; }

/* ============================== PIN V2 ================================== */

.pin-scene .dotgrid { inset: 6% 0; }
.pin-glow { width: min(170vw, 1300px); }

/* ============================== FOOTER V2 =============================== */

.footer { position: relative; overflow: hidden; padding-bottom: 0; }
.footer-word {
  margin-top: 26px;
  font-weight: 700;
  font-size: clamp(64px, 15.5vw, 224px);
  line-height: 0.78;
  letter-spacing: -0.03em;
  text-align: center;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, 0.07);
  user-select: none;
  transform: translateY(0.08em);
}
@supports not (-webkit-text-stroke: 1px red) {
  .footer-word { color: rgba(255, 255, 255, 0.035); }
}

/* ============================== RESPONSIVE V2 =========================== */

@media (max-width: 879px) {
  .hero { min-height: 0; padding-top: 18px; }
  .hero-grid { gap: 34px; }
  .delta-echo { margin-top: 26px; }
}

/* ============================== REDUCED MOTION V2 ======================= */

@media (prefers-reduced-motion: reduce) {
  .float-a, .float-b, .float-c, .float-d { animation: none; }
  .btn-primary .sheen { animation: none; opacity: 0; }
  .ticker-big-track { animation: none; }
}


/* ============================== ROUND 2 ================================= */

/* desktop: the H1 lives in a column — size to the column, not the viewport */
@media (min-width: 880px) {
  .hero-h1 { font-size: clamp(50px, 4.35vw, 63px); }
  .hero-h1 .line-inner.outline-red { -webkit-text-stroke-width: 1.6px; }
}

/* the status chip lives in the stage padding, clear of the dynamic island */
.chip-status { top: 1%; left: 2%; }

/* the locked arc searches — a radar that has not found its answer yet */
.ring-heroscreen svg, .ring-lock svg { animation: ringSearch 7s linear infinite; }
@keyframes ringSearch {
  from { transform: rotate(-90deg); }
  to { transform: rotate(270deg); }
}
@media (prefers-reduced-motion: reduce) {
  .ring-heroscreen svg, .ring-lock svg { animation: none; }
}

/* funnel screens carry the machine structure too */
#screen-quiz, #screen-building, #screen-reveal { position: relative; overflow: hidden; }
#screen-quiz .wrap, #screen-building .wrap, #screen-reveal .wrap { position: relative; z-index: 1; }
.qo-idx {
  font: 500 11px 'SG', sans-serif;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.28);
  font-feature-settings: 'tnum';
  flex: none;
}
.quiz-opt.sel .qo-idx { color: var(--red-light); }

/* ============================== ROUND 3 — critics' pass ================= */

/* ghost ? : commit to the motif — masked fade, no hard clip anywhere */
.ghost-q {
  -webkit-mask-image: radial-gradient(58% 58% at 50% 50%, #000 28%, transparent 74%);
  mask-image: radial-gradient(58% 58% at 50% 50%, #000 28%, transparent 74%);
}
@media (min-width: 880px) {
  .ghost-q { font-size: 700px; }
}

/* phone screens: no dead glass — cropped row, tab bar, home at the bottom */
.scr-row-cropped { opacity: 0.45; }
.scr-tabs {
  margin-top: auto;
  display: flex;
  justify-content: space-evenly;
  align-items: center;
  padding: 10px 34px 4px;
}
.scr-tab { width: 26px; height: 4px; border-radius: 999px; background: var(--surface3); }
.scr-tab.on { background: rgba(255, 59, 59, 0.75); }
.phone-screen .scr-rows { margin-top: 0; }

/* gains are white light, not red meaning — red stays for CUT and the score */
.pdelta b, .chip-delta b, .dplus, .delta b {
  color: #ffffff;
  text-shadow: 0 0 14px rgba(255, 59, 59, 0.65);
}

/* the pin's resting state is its brightest state */
.pin-scene.landed .pdelta, .pin-scene.landed .pdelta span { color: #c9c9cf; }

/* chips: clear of the ring */
.chip-keep { top: 15%; right: -2%; }

/* reveal: the terminal CTA carries the funnel's full weight */
.unlock-line { color: var(--red-light); letter-spacing: 0.2em; }
.cta-unlock {
  border-color: rgba(255, 59, 59, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 0 48px rgba(255, 59, 59, 0.35);
}
.cta-unlock:hover { border-color: rgba(255, 59, 59, 0.7); }

/* reveal semantics: PLAN speaks the app's violet, not KEEP's green */
.vt-plan { color: var(--move); }

/* quiz: the participation screen keeps the fiction */
.quiz-view { margin-top: auto; }
.quiz-calib {
  margin-top: auto;
  padding-top: 30px;
  text-align: center;
  color: rgba(255, 255, 255, 0.2);
}

/* footer links: styled, not default */
.footer a { text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color 0.16s var(--ease); }

/* ============================== CASE FILES V2 =========================== */
/* The "empty photo" fix: connected grounded busts, and the void becomes
   annotated evidence — the machine analyzing the shot. */

.cases { max-width: 720px; }
.case-img { overflow: hidden; }
.ci-tilt {
  position: absolute;
  inset: -3%;
  transform: rotate(-1.4deg);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.case-before .bust-bad { width: 118%; height: 96%; }
.case-after .bust { width: 74%; height: 82%; position: relative; }
.case-img.lit { display: flex; align-items: flex-end; justify-content: center; }

/* the careless shot: a flash detonating in a mirror */
.flashburst {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(34% 26% at 56% 30%, rgba(255, 255, 255, 0.12), transparent 70%),
    radial-gradient(80% 70% at 50% 40%, rgba(255, 255, 255, 0.03), transparent 75%);
}
/* the rebuilt shot: soft daylight from the upper left */
.daylight {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(128deg, rgba(255, 255, 255, 0.07) 0%, transparent 46%),
    radial-gradient(70% 50% at 30% 20%, rgba(255, 255, 255, 0.05), transparent 70%);
}

/* measurement annotations: telemetry labels with leader lines */
.ann {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 500 10.5px 'SG', sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(12, 12, 14, 0.72);
  border: 1px solid var(--hairline2);
}
.ann i { display: block; width: 18px; height: 1px; flex: none; }
.ann.bad { color: var(--red-light); }
.ann.bad i { background: rgba(255, 59, 59, 0.6); }
.ann.good { color: var(--keep); }
.ann.good i { background: rgba(34, 224, 106, 0.55); }
.ann-tl { top: 16px; left: 14px; }
.ann-ml { top: 46%; left: 14px; }

/* the machine's provisional read of the shot */
.readpill {
  position: absolute;
  bottom: 14px;
  right: 14px;
  font: 500 11px 'SG', sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(12, 12, 14, 0.72);
  border: 1px solid var(--hairline2);
  border-radius: 999px;
  padding: 7px 13px;
}
.readpill b { color: var(--text); font-feature-settings: 'tnum'; margin-left: 2px; }
.readpill.hot b { color: var(--text); text-shadow: 0 0 12px rgba(255, 59, 59, 0.7); }

/* ============================================================================
   GUIDES — THE CALM LAYER
   The 11 SEO pages inherit the machine's type and surfaces. Zero ceremonies,
   zero GSAP, zero pins — Core Web Vitals is the whole game here (rule #9).
   ========================================================================== */

body > .topbar {
  max-width: 760px;
  margin: 0 auto;
  padding: 24px 24px 0;
}
body > .topbar .wordmark { text-decoration: none; color: var(--text); }

.article {
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 24px 90px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}
.article .kicker { margin-bottom: 18px; }
.article h1 {
  font-weight: 700;
  font-size: clamp(30px, 6vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--text);
  margin: 0 0 18px;
  text-wrap: balance;
}
.article h2 {
  font-weight: 700;
  font-size: clamp(22px, 4vw, 28px);
  line-height: 1.15;
  color: var(--text);
  margin: 44px 0 14px;
}
.article h3 { font-weight: 700; font-size: 18px; color: var(--text); margin: 26px 0 8px; }
.article p { margin: 0 0 16px; }
.article strong, .article b { color: var(--text); font-weight: 500; }
.article a { color: var(--red-light); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.article a:hover { color: var(--red); }
.article ul, .article ol { margin: 0 0 16px; padding-left: 22px; }
.article li { margin-bottom: 8px; }
.article li::marker { color: var(--red); }

.dek { font-size: 19px; line-height: 1.55; color: #b9b9c0; margin: 0 0 28px; }

.toc {
  background: linear-gradient(180deg, var(--surface2) 0%, var(--surface) 100%);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  padding: 20px 22px;
  margin: 0 0 36px;
  display: grid;
  gap: 9px;
}
.toc-h {
  font: 500 12px 'SG', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
  margin-bottom: 4px;
}
.toc a { color: var(--text); text-decoration: none; font-size: 15px; }
.toc a:hover { color: var(--red-light); }

.callout {
  background: var(--surface);
  border-left: 2px solid var(--red);
  border-radius: 0 12px 12px 0;
  padding: 16px 20px;
  margin: 24px 0;
  color: var(--text);
}
.klist { padding-left: 0 !important; list-style: none; }
.klist li { padding-left: 26px; position: relative; }
.klist li::before { content: '—'; position: absolute; left: 0; color: var(--red); }

.cta-box {
  background: linear-gradient(180deg, var(--surface2) 0%, var(--surface) 100%);
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, var(--surface2) 0%, var(--surface) 100%) padding-box,
    linear-gradient(180deg, rgba(255, 59, 59, 0.25), rgba(255, 255, 255, 0.03) 60%) border-box;
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: 26px 24px;
  margin: 40px 0;
  text-align: center;
}
.cta-t { font-weight: 700; font-size: 21px; color: var(--text); margin-bottom: 6px; text-wrap: balance; }
.cta-s { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.cta-box .btn { text-decoration: none; }

.faq { margin-top: 8px; }
.faq h3 { margin-top: 22px; }

.guide-grid { display: grid; gap: 14px; margin: 26px 0; }
@media (min-width: 640px) { .guide-grid { grid-template-columns: 1fr 1fr; } }
.guide-card {
  display: block;
  background: linear-gradient(180deg, var(--surface2) 0%, var(--surface) 100%);
  border: 1px solid var(--hairline);
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  padding: 20px;
  text-decoration: none !important;
  transition: border-color 0.16s var(--ease), transform 0.16s var(--ease);
}
.guide-card:hover { border-color: var(--border-strong); transform: translate3d(0, -2px, 0); }
.gc-t { font-weight: 700; font-size: 17px; color: var(--text); line-height: 1.25; margin-bottom: 7px; }
.gc-d { font-size: 13.5px; color: var(--muted); line-height: 1.5; }

.guide-foot {
  border-top: 1px solid var(--hairline);
  margin-top: 44px;
  padding-top: 22px;
  font-size: 13px;
  color: var(--muted);
}
.inline { color: var(--red-light); }
.article .kicker {
  font: 500 12px 'SG', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}
