/* ============================================================================
   GH GLOBAL — APPLE-GRADE DESIGN LAYER (site-v3.css)
   Loaded LAST (after site.css + site-v2.css). Site-wide, additive:

   1. LIVING DAY/NIGHT  — the whole surface breathes with the visitor's local
      time. Day = bright, airy, warm-tinted glass, soft morning green.
      Night = deep blacks, luminous green highlights, smoky glass. Dawn/dusk
      is a slow ambient crossfade, never a flip. Manual override respected.

   2. KILL THE EDGES    — no drawn borders anywhere. Continuous-corner radii,
      pill buttons, capsule sheets. Separation comes from soft diffuse
      shadows, frosted translucency, background blur, and tonal layering.
      Cards float; they aren't drawn.

   3. TYPOGRAPHY        — one massive confident headline per screen, humanist
      system sans, generous eyebrow letter-spacing, comfortable body size with
      wide line-height. Whitespace does half the work.

   4. APPLE MOTION      — over-damped spring physics, natural deceleration,
      fade-and-rise reveals, blur-and-scale state transitions. Restraint:
      one hero per screen.

   All decorative motion disabled under prefers-reduced-motion.
   ========================================================================== */

/* ===========================================================================
   0. TOKENS — continuous-corner geometry + type + motion
   ========================================================================== */
:root {
  --lg-radius: 28px;         /* cards + sheets */
  --lg-radius-s: 20px;       /* small cards / inputs */
  --lg-radius-lg: 36px;      /* hero sheets */
  --lg-blur: 30px;
  --lg-saturate: 1.5;
  --font-display: -apple-system, "SF Pro Display", "SF Pro Text", BlinkMacSystemFont,
    "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", ui-monospace, "JetBrains Mono", "Roboto Mono", Menlo, Consolas, monospace;
  --lg-spring: cubic-bezier(0.22, 1, 0.36, 1);
  --lg-spring-pop: cubic-bezier(0.34, 1.56, 0.64, 1);
  --lg-spring-ms: 640ms;
  --eyebrow-ls: 0.24em;
}

/* ===========================================================================
   1. LIVING DAY/NIGHT — theme palettes
   ========================================================================== */

/* ---- NIGHT — deep blacks, luminous green, smoky glass ---- */
:root[data-theme="dark"] {
  --c-ink: #05070b;
  --c-ink-2: #060910;
  --c-text: #f2f5f8;
  --c-text-dim: rgba(240, 244, 248, 0.58);
  --lg-tint: 255, 255, 255;
  --lg-panel-bg: rgba(16, 22, 30, 0.46);
  --lg-panel-shine: linear-gradient(135deg, rgba(255,255,255,0.07) 0%, rgba(255,255,255,0.015) 46%, rgba(255,255,255,0) 60%);
  --lg-depth: 0 30px 70px rgba(0,0,0,0.58), 0 4px 16px rgba(0,0,0,0.36);
  --lg-inner: 0 1px 0 rgba(255,255,255,0.05) inset;
  --surface-bg: rgba(255, 255, 255, 0.05);
  --field-bg: rgba(255, 255, 255, 0.06);
  --glass-fog: rgba(4, 6, 10, 0.5);
}

/* ---- DAY — bright, airy, warm-tinted glass, soft green ---- */
:root[data-theme="light"] {
  --c-ink: #f6f7f9;
  --c-ink-2: #eef0f4;
  --c-text: #0c1411;
  --c-text-dim: rgba(12, 20, 17, 0.62);
  --lg-tint: 255, 255, 255;
  --lg-panel-bg: rgba(255, 255, 255, 0.62);
  --lg-panel-shine: linear-gradient(135deg, rgba(255,255,255,0.92) 0%, rgba(255,255,255,0.30) 46%, rgba(255,255,255,0) 64%);
  --lg-depth: 0 26px 60px rgba(25, 36, 45, 0.13), 0 2px 10px rgba(25, 36, 45, 0.06);
  --lg-inner: 0 1px 0 rgba(255, 255, 255, 0.85) inset;
  --surface-bg: rgba(255, 255, 255, 0.55);
  --field-bg: rgba(255, 255, 255, 0.7);
  --glass-fog: rgba(246, 247, 249, 0.55);
}

/* ===========================================================================
   2. BACKGROUND — ambient day/night crossfade (two stacked gradient layers)
   ========================================================================== */
.site-bg {
  background: none;
}
.site-bg::before,
.site-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  transition: opacity 1.8s var(--lg-ease);
}
/* night wash — aurora spectrum: emerald lead + cyan / violet / magenta currents */
.site-bg::before {
  opacity: 1;
  background:
    radial-gradient(62% 48% at 72% 6%, rgba(var(--lg-state-rgb), 0.14), transparent 60%),
    radial-gradient(50% 44% at 14% 92%, rgba(56, 232, 255, 0.13), transparent 62%),
    radial-gradient(44% 40% at 86% 78%, rgba(139, 92, 246, 0.16), transparent 60%),
    radial-gradient(46% 42% at 8% 40%,  rgba(232, 121, 249, 0.10), transparent 58%),
    linear-gradient(180deg, var(--c-ink-2), var(--c-ink));
}
/* day wash (warm morning tint + soft green) */
.site-bg::after {
  opacity: 0;
  background:
    radial-gradient(60% 44% at 78% 4%, rgba(255, 214, 150, 0.28), transparent 58%),
    radial-gradient(52% 46% at 12% 94%, rgba(24, 209, 138, 0.16), transparent 60%),
    linear-gradient(180deg, #fbfaf6, var(--c-ink));
}
:root[data-theme="light"] .site-bg::before { opacity: 0; }
:root[data-theme="light"] .site-bg::after  { opacity: 1; }

/* ===========================================================================
   3. GLOBAL CROSSFADE — applied only while the theme is switching (JS toggles
      a transient .theme-transition class on <html>) so every surface color and
      shadow eases in unison. No permanent per-element transition tax.
   ========================================================================== */
html.theme-transition,
html.theme-transition *,
html.theme-transition *::before,
html.theme-transition *::after {
  transition:
    background-color 1.6s var(--lg-ease),
    color 1.6s var(--lg-ease),
    border-color 1.6s var(--lg-ease),
    box-shadow 1.6s var(--lg-ease),
    background 1.6s var(--lg-ease) !important;
}

/* ===========================================================================
   4. TYPOGRAPHY — humanist system sans, one hero per screen
   ========================================================================== */
body {
  font-family: var(--font-display);
  line-height: 1.7;
  letter-spacing: -0.01em;
  transition: background-color 1.6s var(--lg-ease), color 1.6s var(--lg-ease);
}

/* eyebrow — generous letter-spacing, quiet, confident */
.eyebrow,
.v2-kicker,
.hero-kicker {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: var(--eyebrow-ls);
  text-transform: uppercase;
  color: var(--lg-state);
}

/* display headings — tighter tracking, humanist weight */
.hero-title,
.sector-h1,
.legal h1 {
  font-family: var(--font-display);
  letter-spacing: -0.04em;
  line-height: 1.02;
  font-weight: 720;
}
.section-h2 { letter-spacing: -0.03em; font-weight: 720; line-height: 1.08; }

/* comfortable body + lead */
.section-lead, .sector-lead { font-size: 17px; line-height: 1.7; }

/* ===========================================================================
   5. KILL THE EDGES — no drawn borders, only light + shadow + blur
   ========================================================================== */
.lg-panel,
.lg-surface,
.feed-card,
.consult-form,
.consult-summary,
.confirm-card,
.sector-col,
.sector-price,
.audit-card {
  border: none;
}

/* cards float on diffuse shadow, not a drawn stroke */
.lg-panel {
  border-radius: var(--lg-radius);
  box-shadow: var(--lg-depth);
}
.lg-surface {
  border-radius: var(--lg-radius-s);
  background: var(--surface-bg);
  -webkit-backdrop-filter: blur(14px) saturate(var(--lg-saturate));
  backdrop-filter: blur(14px) saturate(var(--lg-saturate));
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.10);
}
:root[data-theme="light"] .lg-surface { box-shadow: 0 10px 30px rgba(25,36,45,0.10); }

/* buttons — pill, borderless, tactile */
.btn {
  border: none;
  border-radius: 999px;
  padding: 13px 24px;
  font-weight: 620;
  background: rgba(var(--lg-state-rgb), 0.10);
  color: var(--c-text);
  box-shadow: inset 0 0 0 0 transparent;
}
.btn:hover { box-shadow: 0 10px 30px rgba(var(--lg-state-rgb), 0.20); }
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: linear-gradient(180deg, var(--lg-state), var(--lg-state-deep));
  color: #04150f;
  box-shadow: 0 12px 32px rgba(var(--lg-state-rgb), 0.32);
}
.btn-primary:hover { box-shadow: 0 16px 44px rgba(var(--lg-state-rgb), 0.42); transform: translateY(-1px); }
.btn-lg { font-size: 17px; padding: 17px 34px; }

/* status pill — borderless capsule */
.lg-status {
  border: none;
  background: rgba(var(--lg-state-rgb), 0.12);
  box-shadow: inset 0 0 0 1px rgba(var(--lg-state-rgb), 0.10);
}

/* feed */
.feed-card {
  background: var(--lg-panel-bg);
  -webkit-backdrop-filter: blur(var(--lg-blur)) saturate(var(--lg-saturate));
  backdrop-filter: blur(var(--lg-blur)) saturate(var(--lg-saturate));
  border-radius: var(--lg-radius-s);
  box-shadow: var(--lg-depth);
}
.feed-cat { border: none; background: rgba(var(--lg-state-rgb), 0.10); }

/* ticker — no top/bottom rules, edge-fade only */
.ticker { border-top: none; border-bottom: none; }

/* form fields — capsule with clear affordance. Inputs need a boundary that
   cards don't: a soft inner ring, tonal fill, emerald chevron on selects, and
   a hover/focus glow. Never look blank until clicked. */
.field input,
.field select,
.field textarea {
  border: none;
  border-radius: 16px;
  background: var(--field-bg);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: inset 0 0 0 1.5px rgba(var(--lg-tint), 0.14);
  padding: 14px 16px;
  transition: box-shadow 220ms var(--lg-ease), background 220ms var(--lg-ease);
}
:root[data-theme="light"] .field input,
:root[data-theme="light"] .field select,
:root[data-theme="light"] .field textarea {
  box-shadow: inset 0 0 0 1.5px rgba(12, 20, 17, 0.14);
}
.field input:hover,
.field select:hover,
.field textarea:hover {
  box-shadow: inset 0 0 0 1.5px rgba(var(--lg-state-rgb), 0.38);
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  box-shadow: 0 0 0 3px rgba(var(--lg-state-rgb), 0.22), inset 0 0 0 1.5px rgba(var(--lg-state-rgb), 0.55);
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--c-text-dim);
  opacity: 0.72;
}
/* selects — reset native chrome, draw a clear emerald chevron so a dropdown
   reads as a dropdown at a glance */
.field select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%237ef0c7' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
:root[data-theme="light"] .field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='9' viewBox='0 0 14 9'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%230b6e4f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}
/* a required select sitting on its placeholder shows the hint in dim text */
.field select:invalid { color: var(--c-text-dim); }

/* list separators — tonal spacing, not lines */
.win-list li,
.finding-row,
.consult-line,
.ladder-list li {
  border-bottom: none;
}
.win-list li { padding: 12px 0; }
.finding-row { padding: 11px 0; }
.consult-line { padding: 9px 0; }
.ladder-list li { padding: 9px 0; }

/* footer — no drawn top rule */
.footer { border-top: none; }
.footer-legal { border-top: none; }

/* reveal counter — borderless capsule */
.reveal-counter {
  border: none;
  background: var(--glass-fog);
  -webkit-backdrop-filter: blur(16px) saturate(var(--lg-saturate));
  backdrop-filter: blur(16px) saturate(var(--lg-saturate));
  box-shadow: var(--lg-depth);
}

/* shot frame / device frame — no border, float on shadow */
.shot-frame { border: none; background: transparent; }

/* ===========================================================================
   6. NAV — floating capsule, stronger glass, theme toggle
   ========================================================================== */
.site-nav {
  border-radius: 999px;
  -webkit-backdrop-filter: blur(28px) saturate(var(--lg-saturate));
  backdrop-filter: blur(28px) saturate(var(--lg-saturate));
  box-shadow: var(--lg-depth);
  border: none;
}
.nav-links a { font-size: 14px; font-weight: 520; color: var(--c-text); opacity: 0.74; transition: opacity 240ms var(--lg-ease); }
.nav-links a:hover { opacity: 1; }
.nav-links a.nav-login { opacity: 1; font-weight: 600; color: var(--c-accent, #34d399); }
/* on mobile, collapse the nav CTA to a single "Start" word (the hero holds
   the full CTA — still one door), so brand + toggle + CTA never clip */
@media (max-width: 720px) {
  .nav-cta-rest { display: none; }
  .nav-cta { padding: 11px 18px; font-size: 14px; }
  .site-nav { gap: 10px; padding: 0 10px 0 16px; }
}

/* theme toggle (injected by site-v3.js) */
.theme-toggle {
  width: 40px; height: 40px; flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  border: none; border-radius: 999px; cursor: pointer;
  background: var(--surface-bg);
  color: var(--c-text);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: transform 340ms var(--lg-spring), background 300ms ease;
  font-size: 17px; line-height: 1;
}
.theme-toggle:hover { transform: scale(1.06); }
.theme-toggle:active { transform: scale(0.92); }

/* ===========================================================================
   7. LANDING — the seven screens
   Each screen is ONE idea, stretched out slowly.
   ========================================================================== */
.scr { position: relative; }

/* ---- SCREEN 1 · THE YES ---- */
.s1 {
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-h) + 48px) 0 96px;
  overflow: hidden;
}
.s1-bg {
  position: absolute; inset: 0; z-index: -1;
  background-image: url('/assets/img/hero-keys.png');
  background-size: cover;
  background-position: 68% 40%;
  transition: filter 1.6s var(--lg-ease);
}
.s1-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg,
      rgba(5,7,10,0.95) 0%, rgba(5,7,10,0.82) 32%,
      rgba(5,7,10,0.40) 62%, rgba(5,7,10,0.06) 100%),
    linear-gradient(0deg,
      rgba(5,7,10,0.96) 0%, rgba(5,7,10,0.42) 24%,
      rgba(5,7,10,0.10) 56%, rgba(5,7,10,0.28) 100%);
  transition: opacity 1.6s var(--lg-ease);
}
:root[data-theme="light"] .s1-bg::after {
  background:
    linear-gradient(90deg,
      rgba(250,248,242,0.90) 0%, rgba(250,248,242,0.72) 32%,
      rgba(250,248,242,0.32) 62%, rgba(250,248,242,0.02) 100%),
    linear-gradient(0deg,
      rgba(250,248,242,0.94) 0%, rgba(250,248,242,0.40) 24%,
      rgba(250,248,242,0.08) 56%, rgba(250,248,242,0.24) 100%);
}
:root[data-theme="light"] .s1 .s1-title,
:root[data-theme="light"] .s1 .s1-sub {
  text-shadow: 0 2px 30px rgba(255,255,255,0.5);
  color: #0c1411;
}
.s1 .wrap { position: relative; z-index: 2; }
.s1-title {
  font-size: clamp(46px, 8vw, 104px);
  font-weight: 760; line-height: 1.0; letter-spacing: -0.045em;
  margin: 0; max-width: 14ch;
  color: #f2f5f8;
  text-shadow: 0 3px 46px rgba(0,0,0,0.6);
}
.s1-sub {
  margin: 26px 0 0; max-width: 40ch;
  font-size: clamp(18px, 2.3vw, 23px); line-height: 1.5;
  font-weight: 440;
  color: rgba(242,245,248,0.86);
  text-shadow: 0 2px 26px rgba(0,0,0,0.6);
}
.s1-cta { margin-top: 40px; display: flex; }
@media (max-width: 720px) {
  .s1 { align-items: flex-end; padding-bottom: 60px; }
  .s1-bg { background-position: 70% 46%; }
}

/* ---- SCREEN 2 · THE PAIN — their words, each on a warm human moment ---- */
.s2 { padding: 120px 0 24px; }
.s2-lines { display: flex; flex-direction: column; gap: 28px; }
.s2-strip {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--lg-radius-lg);
  min-height: clamp(340px, 46vw, 540px);
  display: flex;
  align-items: flex-end;
  background: var(--c-ink-2);
  box-shadow: var(--lg-depth);
}
.s2-photo {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  transform: scale(1.02);
  transition: transform 1.2s var(--lg-ease), filter 1.6s var(--lg-ease);
}
.s2-scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg,
      rgba(5,7,10,0.94) 0%, rgba(5,7,10,0.72) 34%,
      rgba(5,7,10,0.32) 64%, rgba(5,7,10,0.10) 100%),
    linear-gradient(0deg,
      rgba(5,7,10,0.88) 0%, rgba(5,7,10,0.38) 32%,
      rgba(5,7,10,0.05) 62%, rgba(5,7,10,0.12) 100%);
  transition: background 1.6s var(--lg-ease);
}
:root[data-theme="light"] .s2-scrim {
  background:
    linear-gradient(90deg,
      rgba(250,248,242,0.94) 0%, rgba(250,248,242,0.72) 34%,
      rgba(250,248,242,0.30) 64%, rgba(250,248,242,0.05) 100%),
    linear-gradient(0deg,
      rgba(250,248,242,0.88) 0%, rgba(250,248,242,0.38) 32%,
      rgba(250,248,242,0.05) 62%, rgba(250,248,242,0.12) 100%);
}
.s2-body {
  position: relative; z-index: 2;
  padding: clamp(24px, 4vw, 52px) clamp(22px, 4.5vw, 60px);
  max-width: 16ch;
}
.s2-idx {
  display: block; margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 13px; font-weight: 600; letter-spacing: 0.22em;
  color: var(--lg-state); opacity: 0.9;
}
.s2-line {
  margin: 0;
  font-size: clamp(34px, 5.6vw, 68px);
  font-weight: 760; letter-spacing: -0.038em; line-height: 1.02;
  color: #f2f5f8;
  text-shadow: 0 3px 40px rgba(0,0,0,0.55);
}
:root[data-theme="light"] .s2-line {
  color: #0c1411;
  text-shadow: 0 2px 30px rgba(255,255,255,0.5);
}
@media (hover: hover) {
  .s2-strip:hover .s2-photo { transform: scale(1.05); }
}
@media (max-width: 720px) {
  .s2 { padding: 72px 0 8px; }
  .s2-lines { gap: 20px; }
  .s2-strip { min-height: 300px; border-radius: var(--lg-radius); }
  .s2-body { max-width: none; }
}

/* ---- SCREEN 3 · THE TURN — one line, alone, on an intentional backdrop ---- */
.s3 {
  position: relative;
  padding: 120px 0;
  min-height: 70svh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  overflow: hidden;
}
.s3-bg {
  position: absolute; inset: 0; z-index: -2;
  background-image: url('/assets/img/turn-bg.png');
  background-size: cover; background-position: center;
  opacity: 0.5;
  transition: opacity 1.6s var(--lg-ease);
}
.s3-bg::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(70% 70% at 50% 50%, transparent 28%, var(--c-ink) 100%);
}
:root[data-theme="light"] .s3-bg { opacity: 0.55; }
:root[data-theme="light"] .s3-bg::after {
  background: radial-gradient(70% 70% at 50% 50%, transparent 28%, #fbfaf6 100%);
}
.s3 .wrap { position: relative; z-index: 2; }
.s3-line {
  font-size: clamp(30px, 5.6vw, 62px);
  font-weight: 740; letter-spacing: -0.03em; line-height: 1.14;
  max-width: 18ch; margin: 0 auto;
  color: var(--c-text);
  text-wrap: balance;
}
:root[data-theme="dark"] .s3-line {
  text-shadow: 0 2px 34px rgba(0, 0, 0, 0.55);
}
:root[data-theme="light"] .s3-line {
  text-shadow: 0 2px 30px rgba(255, 255, 255, 0.5);
}
.s3-line .accent {
  background: linear-gradient(120deg, var(--lg-state) 0%, #7ef0c7 55%, var(--lg-state-deep) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
@media (max-width: 720px) {
  .s3 { min-height: 60svh; padding: 72px 0; }
}

/* ---- SCREEN 4 · THE REVEAL (the machine enters, integrated, no voids) ---- */
.s4 { padding: 48px 0 32px; }
.s4-head { text-align: center; max-width: 720px; margin: 0 auto; }
.s4-title {
  font-size: clamp(30px, 4.6vw, 56px);
  font-weight:740; letter-spacing: -0.03em; line-height: 1.06;
  margin: 18px 0 0;
}
.s4-title .accent {
  background: linear-gradient(120deg, var(--lg-state) 0%, #7ef0c7 55%, var(--lg-state-deep) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.s4-line {
  margin: 20px auto 0; font-size: clamp(17px, 2vw, 21px); line-height: 1.55;
  color: var(--c-text-dim); max-width: 52ch;
}
.s4-stage {
  position: relative;
  margin-top: 46px;
  display: flex; align-items: center; justify-content: center;
  min-height: 440px;
  border-radius: var(--lg-radius-lg);
  overflow: hidden;
  background-image: url('/assets/img/turn-bg.png');
  background-size: cover; background-position: center;
  box-shadow: var(--lg-depth);
}
.s4-stage::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(60% 60% at 50% 50%, rgba(var(--lg-state-rgb), 0.16), transparent 72%);
}
.s4-stage canvas.lg-globe {
  position: relative; z-index: 2;
  width: 100%; max-width: 420px; height: auto; aspect-ratio: 1 / 1;
  margin: 0; filter: drop-shadow(0 0 44px rgba(var(--lg-state-rgb), 0.30));
}
.s4-feed { margin-top: 30px; }
.s4-feed .deck-head { margin-bottom: 16px; }
.s4 #live-feed { grid-template-columns: repeat(4, 1fr); gap: 12px; }
.s4 .feed-card { padding: 16px 18px; }
.s4 .feed-card .feed-title { font-size: 16px; }
.s4 .feed-card .feed-body { font-size: 13.5px; line-height: 1.5; }
.reveal-counter {
  position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%);
  padding: 8px 18px; border-radius: 999px; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.03em; color: var(--c-text-dim);
  z-index: 3;
}
.reveal-counter b { color: var(--lg-state); font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
@media (max-width: 900px) {
  .s4 #live-feed { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .s4-stage { min-height: 320px; }
  .s4 #live-feed { grid-template-columns: 1fr; }
}

/* ---- SCREEN 5 · WATCH IT WORK ---- */
.s5 { padding: 96px 0; }
.s5-grid {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; align-items: center;
  margin-top: 44px;
}
.s5-title {
  font-size: clamp(30px, 4.6vw, 56px);
  font-weight: 740; letter-spacing: -0.03em; line-height: 1.08; margin: 18px 0 0;
}
.s5-line { margin: 20px 0 0; font-size: clamp(17px, 2vw, 21px); line-height: 1.55; color: var(--c-text-dim); max-width: 40ch; }
.s5-stage {
  position: relative;
  display: flex; align-items: center; justify-content: center;
}
/* warm halo behind the phone — the device never floats in emptiness */
.s5-stage::before {
  content: ""; position: absolute; inset: -10% -6%; z-index: -1;
  background: radial-gradient(50% 50% at 50% 50%, rgba(var(--lg-state-rgb), 0.16), transparent 70%);
}
.s5-frame {
  position: relative; max-width: 400px; width: 100%; margin: 0 auto;
  padding: 14px;
  border-radius: 48px;
  background: linear-gradient(180deg, #ecebe4 0%, #fcfcf9 20%, #e3e2da 100%);
  box-shadow: var(--lg-depth), 0 40px 90px rgba(var(--lg-state-rgb), 0.14);
  transition: background 1.6s var(--lg-ease), box-shadow 1.6s var(--lg-ease);
}
:root[data-theme="dark"] .s5-frame {
  background: linear-gradient(180deg, #242a33 0%, #171d26 20%, #0d1117 100%);
  box-shadow: var(--lg-depth), 0 40px 90px rgba(var(--lg-state-rgb), 0.10);
}
.s5-screen {
  aspect-ratio: 390 / 780;
  border-radius: 36px;
  overflow: hidden;
  background-size: cover; background-position: center;
  background-image: url('/assets/img/portal-approve.png');
}
:root[data-theme="light"] .s5-screen {
  background-image: url('/assets/img/portal-approve-light.png');
}
@media (max-width: 860px) { .s5-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ---- SCREEN 6 · WHO IT'S FOR (five quiet cards) ---- */
.s6 { padding: 96px 0; }
.s6-title {
  font-size: clamp(30px, 4.6vw, 56px);
  font-weight: 740; letter-spacing: -0.03em; line-height: 1.06; margin: 18px 0 0;
}
.s6-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px;
  margin-top: 48px;
}
.who-card {
  display: flex; flex-direction: column; gap: 6px;
  padding: 28px 22px;
  border-radius: var(--lg-radius-s);
  background: rgba(17, 23, 31, 0.82);
  -webkit-backdrop-filter: blur(var(--lg-blur)) saturate(var(--lg-saturate));
  backdrop-filter: blur(var(--lg-blur)) saturate(var(--lg-saturate));
  box-shadow: var(--lg-depth);
  transition: transform 420ms var(--lg-spring), box-shadow 420ms var(--lg-ease);
}
.who-card:hover { transform: translateY(-5px); box-shadow: var(--lg-depth), 0 18px 40px rgba(var(--lg-state-rgb), 0.12); }
.who-card:active { transform: translateY(-2px) scale(0.985); }
.who-name { margin: 0; font-size: 19px; font-weight: 720; letter-spacing: -0.015em; }
.who-line { margin: 0; font-size: 13.5px; color: var(--c-text-dim); line-height: 1.45; }
.who-arrow { margin-top: auto; font-size: 16px; color: var(--lg-state); opacity: 0.7; }
.who-icon { width: 28px; height: 28px; color: var(--lg-state); }
.who-icon svg { width: 100%; height: 100%; display: block; }
:root[data-theme="light"] .who-card { background: rgba(255, 255, 255, 0.86); }
.sector-hero-img { display:block; width:100%; height:auto; max-height:460px; object-fit:cover; border-radius:var(--lg-radius-lg); box-shadow:var(--lg-depth); border:1px solid rgba(var(--lg-state-rgb),0.16); margin:28px 0 0; }
@media (max-width: 1020px) { .s6-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .s6-grid { grid-template-columns: 1fr; } }

/* ---- SCREEN 7 · THE FIRST STEP ---- */
.s7 { padding: 120px 0 40px; text-align: center; }
.s7-card {
  max-width: 620px; margin: 0 auto;
  padding: 56px 40px;
  border-radius: var(--lg-radius-lg);
  background: var(--lg-panel-bg);
  -webkit-backdrop-filter: blur(var(--lg-blur)) saturate(var(--lg-saturate));
  backdrop-filter: blur(var(--lg-blur)) saturate(var(--lg-saturate));
  box-shadow: var(--lg-depth);
}
.s7-price {
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 760; letter-spacing: -0.035em; line-height: 1.05; margin: 14px 0 0;
}
.s7-price .unit { font-size: 0.5em; font-weight: 620; color: var(--c-text-dim); }
.s7-line { margin: 16px 0 0; font-size: 17px; color: var(--c-text-dim); line-height: 1.6; }
.s7-cta { margin-top: 32px; display: inline-flex; }

/* footer mantra */
.footer-mantra {
  margin-top: 12px;
  font-size: 13px; letter-spacing: 0.02em; color: var(--c-text-dim);
}

/* ---- PROOF · one real finding, document-style evidence ---- */
.s-proof { padding: 96px 0; }
.s-proof-head { text-align: center; max-width: 640px; margin: 0 auto; }
.s-proof-title {
  font-size: clamp(30px, 4.6vw, 56px);
  font-weight: 740; letter-spacing: -0.03em; line-height: 1.06; margin: 18px 0 0;
}
.s-proof-line {
  margin: 18px auto 0; font-size: 17px; line-height: 1.6;
  color: var(--c-text-dim); max-width: 52ch;
}
.proof-doc {
  max-width: 620px; margin: 48px auto 0;
  border-radius: var(--lg-radius);
  background: var(--lg-panel-bg);
  -webkit-backdrop-filter: blur(var(--lg-blur)) saturate(var(--lg-saturate));
  backdrop-filter: blur(var(--lg-blur)) saturate(var(--lg-saturate));
  box-shadow: var(--lg-depth);
  overflow: hidden;
}
.proof-doc-head {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 18px 28px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--c-text-dim);
  background: rgba(var(--lg-state-rgb), 0.06);
}
.proof-doc-label { font-weight: 700; color: var(--c-text); }
.proof-doc-ref { opacity: 0.7; white-space: nowrap; }
.proof-rows { padding: 6px 28px 0; }
.proof-row {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 13px 0;
}
.proof-k {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em;
  color: var(--c-text-dim); text-transform: uppercase; white-space: nowrap;
}
.proof-v {
  font-family: var(--font-mono); font-size: 14px; font-weight: 600; text-align: right;
}
.proof-v.redact {
  display: inline-block; min-width: 148px; height: 13px;
  border-radius: 3px; background: var(--c-text-dim); opacity: 0.5;
}
.proof-finding { padding: 14px 28px 0; }
.proof-step { margin: 0 0 18px; font-size: 16px; line-height: 1.6; }
.proof-tag {
  display: inline-block; margin-right: 10px;
  font-family: var(--font-mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 3px 10px; border-radius: 999px;
  background: rgba(var(--lg-state-rgb), 0.12); color: var(--lg-state);
  vertical-align: 1px;
}
.proof-note {
  margin: 8px 28px 28px; padding: 18px 20px;
  border-radius: var(--lg-radius-s);
  background: rgba(var(--lg-state-rgb), 0.08);
  font-size: 15px; line-height: 1.55; font-weight: 560;
}
@media (max-width: 560px) {
  .s-proof { padding: 64px 0; }
  .proof-doc { margin-top: 36px; }
  .proof-doc-head, .proof-rows, .proof-finding { padding-left: 20px; padding-right: 20px; }
  .proof-note { margin-left: 20px; margin-right: 20px; }
}

/* ===========================================================================
   8. MOTION — fade-and-rise reveals, blur-and-scale states
   ========================================================================== */
/* ---- fade-and-rise reveals (gated on html.reveal-on so content is never
       stuck hidden if the script fails; inline bootstrap adds the class) ---- */
html.reveal-on [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 760ms var(--lg-ease), transform 760ms var(--lg-spring);
  will-change: opacity, transform;
}
html.reveal-on [data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}
html.reveal-on [data-reveal][data-delay="1"] { transition-delay: 90ms; }
html.reveal-on [data-reveal][data-delay="2"] { transition-delay: 180ms; }
html.reveal-on [data-reveal][data-delay="3"] { transition-delay: 270ms; }
html.reveal-on [data-reveal][data-delay="4"] { transition-delay: 360ms; }
/* safety net: if the reveal script never runs, show everything after a beat */
html.reveal-on [data-reveal] {
  animation: v3-reveal-safety 0.5s ease 2.6s forwards;
}
@keyframes v3-reveal-safety { to { opacity: 1; transform: translateY(0); } }

/* blur-and-scale for state transitions (modals / panels) */
.blur-scale {
  transition: transform 520ms var(--lg-spring), filter 520ms var(--lg-ease), opacity 520ms var(--lg-ease);
}
.blur-scale.entering { transform: scale(0.97); filter: blur(8px); opacity: 0; }

/* ===========================================================================
   9. REDUCED MOTION — everything decorative off, information stays
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  [data-reveal],
  html.reveal-on [data-reveal] { opacity: 1 !important; transform: none !important; transition: none !important; animation: none !important; }
  .site-bg::before, .site-bg::after { transition: none; }
  .who-card, .theme-toggle, .btn { transition: none; }
  html.theme-transition,
  html.theme-transition *,
  html.theme-transition *::before,
  html.theme-transition *::after { transition: none !important; }
}
