/* ── Reset ───────────────────────────────────────────────── */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
button{font-family:inherit;cursor:pointer;border:none;background:none}

/* ── Design tokens ───────────────────────────────────────── */
:root {
  --bg:           #060606;
  --panel-bg:     rgba(255,255,255,0.022);
  --glass:        rgba(255,255,255,0.026);
  --border:       rgba(255,255,255,0.07);
  --border-faint: rgba(255,255,255,0.038);
  --border-accent:rgba(0,229,153,0.32);
  --text-1:       #eef2ee;
  --text-2:       rgba(238,242,238,0.52);
  --text-3:       rgba(238,242,238,0.55);
  --accent:       #00e599;
  --accent-glow:  rgba(0,229,153,0.20);
  --accent-bg:    rgba(0,229,153,0.07);
  --upgrade-from: #00e599;
  --upgrade-to:   #00b377;
  --upgrade-text: #060606;
  --grad-a:       rgba(0,229,153,0.85);   /* emerald — brand signature */
  --grad-b:       rgba(13,214,188,0.45);  /* teal */
  --grad-c:       rgba(0,198,212,0.8);    /* aqua-cyan */
  --grad-tint-a:  rgba(0,229,153,0.06);
  --grad-tint-b:  rgba(13,214,188,0.022);
  --grad-tint-c:  rgba(0,198,212,0.06);
  --orb1:         rgba(0,229,153,0.055);
  --orb2:         rgba(90,40,220,0.045);
  --ease-out:     cubic-bezier(0.16,1,0.3,1);
  --ease-spring:  cubic-bezier(0.34,1.56,0.64,1);
}

/* ── Base ────────────────────────────────────────────────── */
html { scroll-behavior: smooth; }
body {
  font-family: 'Google Sans Flex', system-ui, sans-serif;
  font-size: 16px; line-height: 1.6;
  background: var(--bg); color: var(--text-1);
  overflow-x: hidden;
}
/* Noise texture */
body::before {
  content: ''; position: fixed; inset: 0; z-index: 0;
  pointer-events: none; opacity: .028;
  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.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
}
/* ── Accessibility ───────────────────────────────────────── */
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  background: var(--accent); color: var(--upgrade-text);
  padding: 10px 18px; border-radius: 10px;
  font-size: 14px; font-weight: 600;
  transform: translateY(-200%);
  transition: transform .2s var(--ease-out);
}
.skip-link:focus { transform: translateY(0); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
.btn-primary:focus-visible { outline-color: var(--text-1); }
main:focus, section:focus { outline: none; }

/* Scrollbar */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 3px; }

/* ── Orbs ────────────────────────────────────────────────── */
.orb {
  position: fixed; pointer-events: none; z-index: 0;
  border-radius: 50%; filter: blur(90px);
}
.orb-1 {
  width: 800px; height: 800px; top: -300px; left: -200px;
  background: radial-gradient(circle, var(--orb1), transparent 65%);
}
.orb-2 {
  width: 600px; height: 600px; bottom: -200px; right: -150px;
  background: radial-gradient(circle, var(--orb2), transparent 65%);
}

/* ── Container ───────────────────────────────────────────── */
.container {
  position: relative; z-index: 1;
  max-width: 1100px; margin: 0 auto;
  padding: 0 24px;
}

/* ── Buttons ─────────────────────────────────────────────── */
/* Buttons share the machined finish of the cards and keycaps: a solid accent
   face with a top specular and a hairline bottom shade, an offset glow that
   reads as light on the marble, a lift on hover, a press on :active. */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 22px; border-radius: 11px;
  font-size: 15px; font-weight: 600; letter-spacing: -.2px; line-height: 1.2;
  transition: transform .25s var(--ease-out), box-shadow .3s var(--ease-out),
              background-color .2s var(--ease-out), color .2s var(--ease-out), border-color .2s var(--ease-out);
  white-space: nowrap;
}
.btn i { font-size: 1.05em; }
.btn-primary {
  position: relative; isolation: isolate;
  background-color: var(--accent); color: var(--upgrade-text);
  background-image: linear-gradient(180deg, rgba(255,255,255,.22), rgba(255,255,255,.04) 48%, rgba(0,0,0,.05));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.4), inset 0 -1px 0 rgba(0,0,0,.22),
    0 1px 2px rgba(0,0,0,.35), 0 10px 26px -12px rgba(0,229,153,.75);
}
.btn-primary:hover {
  transform: translateY(-2px); background-color: #1cf0a8;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.5), inset 0 -1px 0 rgba(0,0,0,.2),
    0 2px 4px rgba(0,0,0,.35), 0 18px 36px -14px rgba(0,229,153,.9);
}
.btn-primary:active {
  transform: translateY(0); background-color: #00d38d;
  box-shadow: inset 0 2px 4px rgba(0,0,0,.28), 0 6px 18px -10px rgba(0,229,153,.6);
  transition-duration: .08s;
}
.btn-ghost {
  color: var(--text-1); border: 1px solid transparent;
  background:
    linear-gradient(180deg, #121514, #0b0d0c) padding-box,
    linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.05)) border-box;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 1px 2px rgba(0,0,0,.35);
}
.btn-ghost:hover {
  transform: translateY(-2px); color: var(--accent);
  background:
    linear-gradient(180deg, #131817, #0b0f0d) padding-box,
    linear-gradient(180deg, rgba(0,229,153,.55), rgba(0,229,153,.15)) border-box;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 10px 24px -14px rgba(0,229,153,.5);
}
.btn-ghost:active { transform: translateY(0); transition-duration: .08s; }
.btn-lg { padding: 15px 28px; font-size: 16px; border-radius: 13px; }
.btn-full { width: 100%; justify-content: center; }

/* ── Section labels & headlines ──────────────────────────── */
.section-label {
  font-family: 'DM Mono', monospace;
  font-size: 11px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 1.4px;
  color: var(--accent); margin-bottom: 14px;
}
.section-headline {
  font-size: clamp(28px, 4vw, 44px); font-weight: 800;
  letter-spacing: -.04em; line-height: 1.1;
  margin-bottom: 18px;
}
.section-body {
  font-size: 17px; color: var(--text-2); line-height: 1.7;
  max-width: 640px; margin-bottom: 24px; font-weight: 300;
}
.section-sub {
  font-size: 17px; color: var(--text-2); font-weight: 300;
  max-width: 560px; margin-bottom: 48px;
}
.section-cta { text-align: center; margin-top: 48px; }

code {
  font-family: 'DM Mono', monospace;
  font-size: .88em; background: var(--glass);
  border: 1px solid var(--border); border-radius: 5px;
  padding: 2px 7px; color: var(--accent);
}

/* ── NAV ─────────────────────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(6,6,6,.7); border-bottom: 1px solid var(--border-faint);
  backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  transition: background .3s;
}
.nav.scrolled { background: rgba(6,6,6,.9); }
.nav-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 24px;
  height: 60px; display: flex; align-items: center; gap: 32px;
}
.nav-logo {
  display: flex; align-items: center; gap: 9px;
  font-size: 15px; font-weight: 700; letter-spacing: -.3px;
  flex-shrink: 0;
}
.nav-logo-img { border-radius: 7px; }
.nav-links {
  display: flex; gap: 28px; align-items: center;
  margin-left: 8px;
}
.nav-links a {
  font-size: 14px; color: var(--text-2); font-weight: 500;
  transition: color .15s;
}
.nav-links a:hover { color: var(--text-1); }
.nav-cta { margin-left: auto; padding: 9px 16px; font-size: 14px; border-radius: 10px; }

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  padding: 160px 0 100px;
  text-align: center;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-size: cover; background-position: 22% center;
}
.hero-bg video {
  width: 100%; height: 100%; object-fit: cover;
  /* Shift the swarm leftward into the frame's open space; scale keeps edges covered */
  transform: translateX(-7%) scale(1.16);
  opacity: 0; transition: opacity 1.2s ease;
}
.hero-bg video.playing { opacity: 1; }
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(6,6,6,.5) 0%, rgba(6,6,6,.18) 40%,
    rgba(6,6,6,.55) 78%, #060606 100%);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'DM Mono', monospace; font-size: 12px; font-weight: 500;
  color: var(--accent); background: var(--accent-bg);
  border: 1px solid var(--border-accent);
  border-radius: 20px; padding: 5px 14px; margin-bottom: 28px;
}
.hero-headline {
  font-size: clamp(48px, 7vw, 88px); font-weight: 800;
  letter-spacing: -.04em; line-height: 1.0;
  margin-bottom: 24px;
  text-shadow: 0 2px 30px rgba(0,0,0,.65);
}
.hero-sub {
  font-size: clamp(16px, 2vw, 20px); color: rgba(255,255,255,.92); font-weight: 300;
  max-width: 560px; margin: 0 auto 36px; line-height: 1.6;
  text-shadow: 0 1px 3px rgba(0,0,0,.7), 0 2px 24px rgba(0,0,0,.6);
}
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 20px; }
.hero-footnote {
  font-family: 'DM Mono', monospace; font-size: 12px;
  color: var(--text-3);
}

/* ── PROBLEM ─────────────────────────────────────────────── */
.problem {
  padding: 100px 0;
  text-align: center;
}
.problem .section-body { margin: 0 auto 32px; }
/* Callouts (subpages) ride the card material too */
.pc.callout { flex-direction: row; align-items: flex-start; gap: 16px; padding: 26px 28px; max-width: 680px; margin: 0 auto; text-align: left; }
.callout-icon { color: var(--accent); font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.callout p { font-size: 16px; line-height: 1.7; color: var(--text-1); font-weight: 400; }

/* The problem, told as a log: three failed reloads, then the shortcut. */
.pc.pc--story {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 12px 40px; align-items: center;
  max-width: 880px; margin: 0 auto; text-align: left; padding: 30px 34px;
}
.story-log {
  display: flex; flex-direction: column; gap: 10px;
  font-family: 'DM Mono', monospace; font-size: 12.5px; color: var(--text-3);
}
.log-row {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding-bottom: 9px; border-bottom: 1px solid var(--border-faint);
  animation: log-in 10s var(--ease-out) infinite; animation-delay: calc(var(--i) * 1.1s);
  opacity: 0;
}
.log-row:last-child { border-bottom: 0; padding-bottom: 0; }
.log-cmd::before { content: '› '; color: var(--text-3); }
.log-cmd { color: var(--text-2); }
.log-out { text-align: right; white-space: nowrap; }
.log-row--hit .log-cmd, .log-row--hit .log-out { color: var(--accent); }
.log-row--hit .log-out { text-shadow: 0 0 14px rgba(0,229,153,.5); }
/* each row types in on its own delay; the whole log clears before the next take */
@keyframes log-in {
  0% { opacity: 0; transform: translateY(4px); }
  6%, 84% { opacity: 1; transform: none; }
  90%, 100% { opacity: 0; transform: none; }
}
.story-text { display: flex; flex-direction: column; gap: 12px; }
.story-text p { font-size: 16px; line-height: 1.7; color: var(--text-1); }

/* ── HOW IT WORKS ────────────────────────────────────────── */
/* One panel. A pulse travels the track from step 01 to 03 and lights each
   glyph as it passes: the single action running through the whole flow. */
.how { padding: 100px 0; text-align: center; }
.how-flow { margin-top: 56px; padding: 0; text-align: left; gap: 0; }
.how-track {
  position: relative; height: 1px; margin: 34px 34px 0;
  background: linear-gradient(90deg, transparent, var(--border) 12%, var(--border) 88%, transparent);
}
/* The pulse and glyphs are driven by motion.js (scroll-linked timeline) */
.how-pulse {
  position: absolute; top: -3px; left: 0; width: 7px; height: 7px; border-radius: 50%;
  margin-left: -3.5px; background: var(--accent); box-shadow: 0 0 12px 3px rgba(0,229,153,.55);
}
.how-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.how-step { padding: 26px 34px 30px; display: flex; flex-direction: column; gap: 10px; }
.how-step + .how-step { border-left: 1px solid var(--border-faint); }
.how-step .pc-glyph { opacity: .45; }
.how-step .pc-title { font-size: 17px; }

/* ── FREE FEATURES ───────────────────────────────────────── */
.features { padding: 100px 0; }
/* The free grid shares the premium bento system (.pc) below — the free set is
   the same machined product, just without the emerald flagship ring. */

/* ── PREMIUM — bento manifest ────────────────────────────── */
/* Machined dark panels over the marble world. Borders are painted with the
   two-layer background technique (padding-box fill + border-box gradient) —
   pixel-exact rounded corners, no mask compositing, no backdrop-filter (both
   are what made the old corners look stepped). Tags encode the feature's
   category from docs/features.md. */
.premium { padding: 100px 0; }
.premium-grid, .free-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: minmax(190px, auto); gap: 14px; margin-top: 48px;
}
.pc {
  --r: 20px; --mx: 50%; --my: 50%;
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: var(--r); padding: 26px 26px 24px;
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, #0d100f, #090b0a) padding-box,
    linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.035) 40%, rgba(255,255,255,.03)) border-box;
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .45s var(--ease-out), background .3s;
}
/* Cursor spotlight — one authored interaction, follows the pointer */
.pc::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(360px circle at var(--mx) var(--my), rgba(0,229,153,.14), transparent 55%);
  opacity: 0; transition: opacity .35s var(--ease-out);
}
.pc:hover { transform: translateY(-3px); }
.pc:hover::before { opacity: 1; }
.pc--flagship { grid-column: span 2; grid-row: span 2; padding: 30px 30px 26px; }
.pc--wide { grid-column: span 2; }
.pc--flagship {
  background:
    linear-gradient(160deg, #0b1611, #090b0a 55%, #0a1310) padding-box,
    linear-gradient(150deg, rgba(0,229,153,.75), rgba(0,229,153,.16) 42%, rgba(0,198,212,.55)) border-box;
}
.pc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.pc-glyph { font-size: 18px; color: var(--accent); }
.pc-tag {
  font-family: 'DM Mono', monospace; font-size: 10.5px; font-weight: 500;
  letter-spacing: 1.4px; text-transform: uppercase; color: var(--text-3);
}
.pc--flagship .pc-tag { color: var(--accent); }
.pc-title { font-size: 17px; font-weight: 700; letter-spacing: -.3px; line-height: 1.25; }
.pc--flagship .pc-title { font-size: clamp(24px, 2.4vw, 32px); letter-spacing: -.035em; }
.pc-body { font-size: 13.5px; color: var(--text-2); line-height: 1.65; font-weight: 300; }
.pc--flagship .pc-body { font-size: 15px; max-width: 46ch; }

/* Glyph motion. Plays once when a card is hovered (or tapped, on touch —
   script.js toggles .is-live). Nothing runs at rest. The how-it-works panel
   keeps its own pulse-synced glyphs. */
.pc:not(.how-flow):hover .pc-glyph, .pc.is-live:not(.how-flow) .pc-glyph {
  animation: glyph-flick .7s var(--ease-out) 1;
}
.pc:not(.how-flow):hover .fa-rotate-right.pc-glyph, .pc:not(.how-flow):hover .fa-rotate.pc-glyph, .pc:not(.how-flow):hover .fa-gears.pc-glyph,
.pc.is-live:not(.how-flow) .fa-rotate-right.pc-glyph, .pc.is-live:not(.how-flow) .fa-rotate.pc-glyph, .pc.is-live:not(.how-flow) .fa-gears.pc-glyph {
  animation-name: glyph-spin; animation-duration: .8s;
}
.pc:not(.how-flow):hover .fa-keyboard.pc-glyph, .pc:not(.how-flow):hover .fa-computer-mouse.pc-glyph,
.pc.is-live:not(.how-flow) .fa-keyboard.pc-glyph, .pc.is-live:not(.how-flow) .fa-computer-mouse.pc-glyph {
  animation-name: glyph-press; animation-duration: .5s;
}
@keyframes glyph-flick {
  0% { transform: none; }
  30% { transform: rotate(-14deg) scale(1.18); filter: drop-shadow(0 0 8px rgba(0,229,153,.85)); }
  100% { transform: none; filter: drop-shadow(0 0 0 rgba(0,229,153,0)); }
}
@keyframes glyph-spin {
  0% { transform: rotate(0); }
  50% { filter: drop-shadow(0 0 8px rgba(0,229,153,.85)); }
  100% { transform: rotate(360deg); filter: drop-shadow(0 0 0 rgba(0,229,153,0)); }
}
@keyframes glyph-press {
  0% { transform: none; }
  40% { transform: translateY(3px) scale(.92); filter: drop-shadow(0 0 8px rgba(0,229,153,.85)); }
  100% { transform: none; filter: drop-shadow(0 0 0 rgba(0,229,153,0)); }
}

/* Visuals: flagship key/value wipe, chips, stat tiles */
.pc-visual { margin-top: auto; padding-top: 18px; }
.pc-visual--wipe {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 9px;
  font-family: 'DM Mono', monospace; font-size: 11.5px; color: var(--text-3);
}
.wipe-row { display: flex; align-items: center; gap: 12px; }
.wipe-key { width: 108px; flex-shrink: 0; }
.wipe-val {
  height: 8px; flex: 1; border-radius: 4px; background: rgba(0,229,153,.32); max-width: 240px;
  transform-origin: right center; animation: wipe-val 5.5s var(--ease-out) infinite;
}
.wipe-val--mid { max-width: 170px; }
.wipe-val--short { max-width: 110px; }
.wipe-sweep {
  position: absolute; top: 0; bottom: 0; left: -40%; width: 40%;
  background: linear-gradient(90deg, transparent, rgba(0,229,153,.55) 60%, var(--accent));
  box-shadow: 8px 0 24px rgba(0,229,153,.35);
  animation: wipe-sweep 5.5s var(--ease-out) infinite;
}
/* The bars recede as the sweep passes — the values are gone, the keys stay */
@keyframes wipe-sweep { 0%, 12% { left: -40%; } 62%, 100% { left: 120%; } }
@keyframes wipe-val {
  0%, 14% { transform: scaleX(1); opacity: 1; }
  42%, 86% { transform: scaleX(0); opacity: 0; }
  100% { transform: scaleX(1); opacity: 1; }
}
.pc-visual--chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: 'DM Mono', monospace; font-size: 11.5px; padding: 6px 11px;
  border-radius: 999px; border: 1px solid var(--border-accent);
  background: var(--accent-bg); color: var(--accent);
}
.chip--ghost { border-style: dashed; background: transparent; color: var(--text-3); border-color: var(--border); }
.pc-visual--stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat {
  border-radius: 12px; padding: 12px 14px; border: 1px solid var(--border-faint);
  background: rgba(255,255,255,.025); display: flex; flex-direction: column; gap: 2px;
}
.stat-val { font-size: 20px; font-weight: 800; letter-spacing: -.03em; color: var(--accent); }
.stat-key { font-family: 'DM Mono', monospace; font-size: 10.5px; letter-spacing: 1px; text-transform: uppercase; color: var(--text-3); }
.pc-visual--stats-2 { grid-template-columns: repeat(2, 1fr); }

/* Free-grid visuals: asset ledger (HTTP cache) and the shortcut keycaps */
.pc-visual--ledger {
  display: flex; flex-direction: column; gap: 9px;
  font-family: 'DM Mono', monospace; font-size: 11.5px; color: var(--text-3);
}
.ledger-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding-bottom: 8px; border-bottom: 1px solid var(--border-faint);
}
.ledger-row:last-child { border-bottom: 0; padding-bottom: 0; }
.ledger-status { position: relative; display: grid; text-align: right; }
.ledger-status > span { grid-area: 1 / 1; }
.ls-stale { animation: ls-stale 6s var(--ease-out) var(--d) infinite; }
.ls-fresh { color: var(--accent); animation: ls-fresh 6s var(--ease-out) var(--d) infinite; }
/* cached → fresh, hold, then the next reload starts the cycle again */
@keyframes ls-stale { 0%, 30% { opacity: 1; } 38%, 84% { opacity: 0; } 92%, 100% { opacity: 1; } }
@keyframes ls-fresh { 0%, 32% { opacity: 0; transform: translateY(4px); } 40%, 82% { opacity: 1; transform: none; } 90%, 100% { opacity: 0; transform: translateY(-3px); } }

.pc-visual--keys { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.key {
  font-family: 'DM Mono', monospace; font-size: 12px; font-weight: 500; line-height: 1;
  padding: 9px 12px 10px; border-radius: 8px; color: var(--text-1);
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, #1b1f1d, #101312) padding-box,
    linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.05)) border-box;
  box-shadow: 0 3px 0 #040504, 0 6px 12px rgba(0,0,0,.55);
}
.key-plus { color: var(--text-3); font-size: 12px; }
.key--press { animation: keypress 4.2s var(--ease-out) infinite; }
@keyframes keypress {
  0%, 58%, 100% { transform: none; color: var(--text-1); box-shadow: 0 3px 0 #040504, 0 6px 12px rgba(0,0,0,.55); }
  63%, 72% { transform: translateY(3px); color: var(--accent); box-shadow: 0 0 0 #040504, 0 0 0 rgba(0,0,0,0), 0 0 18px rgba(0,229,153,.35); }
}
.key-result {
  margin-left: 6px; font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: .8px;
  text-transform: uppercase; color: var(--accent); opacity: 0;
  animation: key-result 4.2s var(--ease-out) infinite;
}
@keyframes key-result { 0%, 66% { opacity: 0; transform: translateX(-4px); } 74%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }

@media (max-width: 900px) {
  .premium-grid, .free-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .premium-grid, .free-grid { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .pc--flagship, .pc--wide { grid-column: span 1; grid-row: span 1; }
  .pc-visual--stats, .pc-visual--stats-2 { grid-template-columns: 1fr; }
}

/* ── COMPARISON TABLE ────────────────────────────────────── */
.comparison { padding: 100px 0; text-align: center; }
/* The table lives on the same machined panel as the cards; .table-wrap is
   also the scroll container below 640px. */
.table-wrap {
  --mx: 50%; --my: 50%;
  position: relative; isolation: isolate; overflow-x: auto; margin-top: 48px;
  border-radius: 20px; border: 1px solid transparent;
  background:
    linear-gradient(180deg, #0d100f, #090b0a) padding-box,
    linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.035) 40%, rgba(255,255,255,.03)) border-box;
}
.table-wrap::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(0,229,153,.12), transparent 55%);
  opacity: 0; transition: opacity .35s var(--ease-out);
}
.table-wrap:hover::before { opacity: 1; }
.compare-table { width: 100%; border-collapse: collapse; min-width: 560px; }
.compare-table th, .compare-table td {
  padding: 13px 22px; text-align: center; font-size: 14.5px;
  border-bottom: 1px solid var(--border-faint);
}
.compare-table th:first-child, .compare-table td:first-child { text-align: left; width: 50%; }
.compare-table tbody th { font-weight: 400; color: var(--text-1); }
.compare-table tbody tr:last-child th, .compare-table tbody tr:last-child td { border-bottom: none; }
.compare-table tbody tr { transition: background .2s var(--ease-out); }
.compare-table tbody tr:hover { background: rgba(255,255,255,.025); }
.compare-table thead th {
  padding: 18px 22px 14px;
  font-family: 'DM Mono', monospace; font-size: 10.5px; font-weight: 500;
  letter-spacing: 1.4px; text-transform: uppercase; color: var(--text-3);
  border-bottom: 1px solid var(--border);
}
.col-premium { background: rgba(0,229,153,.045); color: var(--accent); }
.col-premium-pill {
  display: inline-block; padding: 4px 10px 3px; border-radius: 999px;
  background: var(--accent); color: var(--upgrade-text); font-weight: 700;
}
.tick {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%; vertical-align: middle;
  background: var(--accent-bg); border: 1px solid var(--border-accent); color: var(--accent); font-size: 10px;
}
.tick--no { background: transparent; border-color: var(--border); color: var(--text-3); }
.accent { color: var(--accent); font-weight: 600; }
.muted { color: var(--text-3); }

/* ── PRICING ─────────────────────────────────────────────── */
.pricing { padding: 100px 0; text-align: center; }
.pricing .section-sub { margin-left: auto; margin-right: auto; }
.pricing-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 360px));
  gap: 20px; justify-content: center; align-items: stretch; margin: 48px 0 20px;
}
.pricing-card {
  --mx: 50%; --my: 50%;
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: 22px; padding: 34px 30px;
  display: flex; flex-direction: column; text-align: left;
  border: 1px solid transparent;
  background:
    linear-gradient(180deg, #0d100f, #090b0a) padding-box,
    linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.035) 45%) border-box;
  transition: transform .45s var(--ease-out);
}
/* Same cursor spotlight as the premium bento */
.pricing-card::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(380px circle at var(--mx) var(--my), rgba(0,229,153,.13), transparent 55%);
  opacity: 0; transition: opacity .35s var(--ease-out);
}
.pricing-card:hover { transform: translateY(-3px); }
.pricing-card:hover::before { opacity: 1; }
.pricing-featured::before {
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(0,229,153,.2), transparent 55%);
}
.pricing-note {
  font-family: 'DM Mono', monospace; font-size: 11.5px; letter-spacing: .3px;
  color: var(--accent); opacity: .85;
}
/* Card footers: Monthly's billing cadence, Lifetime's break-even. Both sit
   at the bottom so the name / price / CTA rows stay aligned across the pair. */
.pricing-visual { margin: auto 0 0; padding-top: 22px; border-top: 1px solid var(--border-faint); }
/* Lifetime: twelve months of Monthly fill cell by cell and cross $29 at month
   ten; Lifetime is one flat bar. The arithmetic, drawn. */
.be-legend {
  display: flex; justify-content: space-between; align-items: baseline;
  font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: .8px;
  text-transform: uppercase; color: var(--text-1); margin-bottom: 8px;
}
.be-total { text-transform: none; letter-spacing: .3px; color: var(--text-3); }
.be-strip { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; margin-bottom: 16px; }
.be-strip--once { grid-template-columns: 1fr; }
.be-strip--year .be-cell:nth-child(n+11) { border-style: solid; }
.be-bar { height: 22px; border-radius: 5px; background: var(--accent); box-shadow: 0 0 16px rgba(0,229,153,.25); transform-origin: left center; }
.pricing-visual--breakeven .pricing-note { margin-top: 2px; }
/* Cells fill as the pricing pair scrolls through (motion.js timeline).
   Reduced motion gets the finished state. */
.be-cell {
  height: 22px; border-radius: 5px; border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
}
.be-cell:nth-child(n+11) { border-style: dashed; }
@media (prefers-reduced-motion: reduce) {
  .be-cell:not(:nth-child(n+11)), .be-strip--year .be-cell { background: rgba(0,229,153,.28); border-color: rgba(0,229,153,.35); }
  .be-cell:nth-child(10), .be-strip--year .be-cell:nth-child(n+11) { background: var(--accent); border-color: var(--accent); }
}
.be-caption { display: flex; flex-direction: column; gap: 4px; }
.be-months { font-family: 'DM Mono', monospace; font-size: 11.5px; letter-spacing: .3px; color: var(--text-3); }
/* Featured: gradient ring painted on the border box — concentric, no masks */
.pricing-featured {
  background:
    linear-gradient(160deg, #0b1611, #090b0a 55%, #0a1310) padding-box,
    linear-gradient(var(--grad-angle), var(--grad-a), var(--grad-b) 50%, var(--grad-c)) border-box;
  box-shadow: 0 24px 60px -30px rgba(0,229,153,.35), 0 0 0 1px rgba(0,229,153,.06);
}
.pricing-badge {
  position: absolute; top: 22px; right: 22px;
  font-family: 'DM Mono', monospace; font-size: 10.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  background: var(--accent); color: var(--upgrade-text);
  padding: 5px 10px 4px; border-radius: 999px;
}
.pricing-name {
  font-family: 'DM Mono', monospace; font-size: 10.5px; font-weight: 500;
  letter-spacing: 1.4px; text-transform: uppercase; color: var(--text-3); margin-bottom: 14px;
}
.pricing-featured .pricing-name { color: var(--accent); }
.pricing-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 12px; }
.price-amount { font-size: 58px; font-weight: 800; letter-spacing: -.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.price-period { font-size: 14px; color: var(--text-2); }
.pricing-desc { font-size: 14px; color: var(--text-2); margin-bottom: 20px; font-weight: 300; }
.pricing-features {
  list-style: none; margin-top: 22px; padding-top: 20px; margin-bottom: 0;
  border-top: 1px solid var(--border-faint);
  display: flex; flex-direction: column; gap: 10px;
}
.pricing-features li { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.pricing-features .fa-check { color: var(--accent); font-size: 13px; }
.pricing-footnote { font-size: 13px; color: var(--text-2); font-family: 'DM Mono', monospace; }

/* ── FAQ ─────────────────────────────────────────────────── */
.faq { padding: 100px 0; text-align: center; }
.faq-list { margin: 48px auto 0; max-width: 720px; text-align: left; }
.faq-item {
  border-bottom: 1px solid var(--border-faint);
}
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 20px 0; font-size: 16px; font-weight: 600;
  color: var(--text-1); text-align: left;
  transition: color .15s;
}
.faq-q:hover { color: var(--accent); }
.faq-q[aria-expanded="true"] { color: var(--accent); }
.faq-chevron { font-size: 13px; color: var(--text-3); flex-shrink: 0; transition: transform .25s var(--ease-out); }
.faq-q[aria-expanded="true"] .faq-chevron { transform: rotate(180deg); color: var(--accent); }
.faq-a {
  overflow: hidden; max-height: 0;
  transition: max-height .35s var(--ease-out), padding .35s var(--ease-out);
}
.faq-a.open { max-height: 600px; padding-bottom: 20px; }
.faq-a p { font-size: 15px; color: var(--text-2); line-height: 1.7; font-weight: 300; }

/* ── FINAL CTA ───────────────────────────────────────────── */
.final-cta { padding: 100px 0; }
/* Same machined panel as the flagship premium card: two-layer background
   (fill on padding-box, breathing gradient ring on border-box), cursor
   spotlight on ::before, soft outer glow on ::after. No backdrop-filter. */
.final-cta-inner {
  --mx: 50%; --my: 50%;
  position: relative; isolation: isolate;
  border-radius: 24px; padding: 72px 40px 60px; text-align: center;
  border: 1px solid transparent;
  background:
    linear-gradient(160deg, #0b1611, #090b0a 55%, #0a1310) padding-box,
    linear-gradient(var(--grad-angle), var(--grad-a), var(--grad-b) 50%, var(--grad-c)) border-box;
}
.final-cta-inner::before {
  content: ''; position: absolute; inset: 1px; z-index: -1; pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(520px circle at var(--mx) var(--my), rgba(0,229,153,.16), transparent 55%);
  opacity: 0; transition: opacity .35s var(--ease-out);
}
.final-cta-inner:hover::before { opacity: 1; }
.final-cta-inner h2 {
  font-size: clamp(30px, 4.4vw, 50px); font-weight: 800; letter-spacing: -.04em;
  line-height: 1.05; margin-bottom: 14px; text-wrap: balance;
}
.final-cta-inner p { font-size: 17px; color: var(--text-2); margin-bottom: 30px; font-weight: 300; }
.final-cta-mark { display: block; margin: 0 auto 18px; color: rgba(238,242,238,.82); }
.final-cta-keys { justify-content: center; margin-top: 34px; }
.key-lead {
  width: 100%; font-family: 'DM Mono', monospace; font-size: 11px; letter-spacing: .8px;
  text-transform: uppercase; color: var(--text-3); margin-bottom: 4px;
}

/* ── FOOTER ──────────────────────────────────────────────── */
.footer {
  position: relative; z-index: 2; background: var(--bg);
  border-top: 1px solid var(--border-faint);
  padding: 40px 0;
}
.footer-inner {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: 16px; justify-content: space-between;
}
.footer-brand { display: flex; flex-direction: column; gap: 6px; }
.footer-tagline { font-size: 13px; color: var(--text-3); }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 13px; color: var(--text-2); transition: color .15s; }
.footer-links a:hover { color: var(--accent); }
.footer-copy { font-family: 'DM Mono', monospace; font-size: 12px; color: var(--text-3); }

/* ── Subpages (Privacy / Terms / Support) ────────────────── */
.page-hero { padding: 150px 0 36px; }
.page-hero h1 {
  font-size: clamp(34px, 5vw, 56px); font-weight: 800;
  letter-spacing: -.04em; line-height: 1.05;
  margin-bottom: 14px;
}
.page-updated {
  font-family: 'DM Mono', monospace; font-size: 12px;
  color: var(--text-3);
}
.page-hero .container { max-width: 768px; }
.page-content { max-width: 720px; margin: 0 auto; padding-bottom: 100px; }
.page-content h2 {
  font-size: 22px; font-weight: 700; letter-spacing: -.02em;
  margin: 44px 0 12px;
}
.page-content p {
  font-size: 15.5px; color: var(--text-2); line-height: 1.75;
  font-weight: 300; margin-bottom: 14px;
}
.page-content ul {
  margin: 0 0 14px; padding-left: 22px;
  font-size: 15.5px; color: var(--text-2); line-height: 1.75;
  font-weight: 300; display: flex; flex-direction: column; gap: 6px;
}
.page-content a:not(.btn) {
  color: var(--accent); text-decoration: underline;
  text-underline-offset: 3px; text-decoration-color: var(--border-accent);
  transition: text-decoration-color .15s;
}
.page-content a:not(.btn):hover { text-decoration-color: var(--accent); }
.page-content .callout { margin: 28px 0; max-width: none; }
.page-content strong { color: var(--text-1); font-weight: 600; }

.pc.support-email {
  flex-direction: row; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; padding: 32px; margin: 40px 0 56px;
  background:
    linear-gradient(160deg, #0b1611, #090b0a 55%, #0a1310) padding-box,
    linear-gradient(150deg, rgba(0,229,153,.75), rgba(0,229,153,.16) 42%, rgba(0,198,212,.55)) border-box;
}
.support-email h2 { margin: 0 0 6px; font-size: 20px; }
.support-email p { margin: 0; }
.support-grid, .perm-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 14px; margin: 20px 0 48px;
}
.page-content .pc-body { margin: 0; font-size: 14px; }
/* a lone last card spans the row instead of orphaning */
.support-grid .pc:last-child:nth-child(odd), .perm-grid .pc:last-child:nth-child(odd) { grid-column: 1 / -1; }
.perm-grid .pc-title { font-family: 'DM Mono', monospace; font-size: 15px; font-weight: 500; letter-spacing: 0; }

/* ── Breathing gradient border ───────────────────────────── */
/* Registered so the gradient angles can be animated smoothly. */
@property --grad-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 135deg;
}
@property --beam-angle {
  syntax: '<angle>';
  inherits: false;
  initial-value: 0deg;
}

/* The animated gradient lives on its own 1px ring layer (mask trick)
   with NO backdrop-filter — so the blurred card never repaints. Only
   --grad-angle animates. script.js toggles .breathing via an
   IntersectionObserver, so it runs only while on screen. */
/* Soft outer glow — breathes in sync with the border. The glow layer sits at
   inset:0 (a box-shadow needs no negative inset) so its corners stay
   concentric with the card's. */
.pricing-featured::after, .final-cta-inner::after {
  content: ''; position: absolute; inset: 0; z-index: -1;
  border-radius: inherit; pointer-events: none;
  box-shadow: 0 0 34px rgba(0,229,153,0.24), 0 0 76px rgba(0,198,212,0.15);
  opacity: .28;
}
.pricing-featured.breathing { animation: grad-breathe 8s ease-in-out infinite; }
.final-cta-inner.breathing { animation: grad-breathe 8s ease-in-out infinite; }
.breathing::after  { animation: glow-breathe 8s ease-in-out infinite; }
@keyframes grad-breathe {
  0%, 100% { --grad-angle: 95deg; }
  50%      { --grad-angle: 245deg; }
}
@keyframes glow-breathe {
  0%, 100% { opacity: .28; }
  50%      { opacity: 1; }
}

/* Hover: a bright beam races around the border ring. A conic-gradient
   comet (layered over the base gradient) spins via --beam-angle; the
   glow brightens to match. Mask is inherited from the base ::before. */
.final-cta-inner:hover {
  background:
    linear-gradient(160deg, #0b1611, #090b0a 55%, #0a1310) padding-box,
    conic-gradient(from var(--beam-angle),
      rgba(255,255,255,0) 0deg,
      rgba(255,255,255,0) 295deg,
      rgba(150,255,225,0.85) 342deg,
      rgba(255,255,255,1) 357deg,
      rgba(255,255,255,0) 360deg) border-box,
    linear-gradient(var(--grad-angle), var(--grad-a), var(--grad-b) 50%, var(--grad-c)) border-box;
  animation: beam-rotate 2.4s linear infinite, grad-breathe 8s ease-in-out infinite;
}
.pricing-featured:hover::after,
.final-cta-inner:hover::after {
  opacity: .9; animation: none;
  transition: opacity .3s var(--ease-out);
}
@keyframes beam-rotate {
  to { --beam-angle: 360deg; }
}

/* ── Reveal animation ────────────────────────────────────── */
/* Declared last so the entrance transition wins over per-element
   hover transitions while .reveal is present; script.js removes the
   class after the entrance, handing transitions back to the element. */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .how-track { display: none; }
  .how-steps { grid-template-columns: 1fr; }
  .how-step + .how-step { border-left: 0; border-top: 1px solid var(--border-faint); }
  .pc.pc--story { grid-template-columns: 1fr; row-gap: 26px; }
  .pricing-grid { grid-template-columns: minmax(0, 360px); }
  .hero { padding: 120px 0 80px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}

@media (max-width: 640px) {
  /* three columns fit a phone: no sideways scroll to find the ticks */
  .compare-table { min-width: 0; }
  .compare-table th, .compare-table td { padding: 11px 10px; font-size: 13px; }
  .compare-table thead th { padding: 14px 10px 10px; font-size: 9.5px; letter-spacing: 1px; }
  .compare-table th:first-child, .compare-table td:first-child { width: auto; padding-left: 16px; }
  .compare-table td:nth-child(n+2), .compare-table th:nth-child(n+2) { width: 64px; }
  .col-premium-pill { padding: 3px 7px 2px; }
  .btn { white-space: normal; }
  .nav-inner { gap: 16px; }
  .nav-cta { padding: 7px 12px; font-size: 12.5px; gap: 6px; }
  .nav-cta-extra { display: none; }
  .btn-lg { padding: 13px 20px; font-size: 15px; }
  .support-email { padding: 24px 20px; }
  .support-email .btn-lg { font-size: 13px; padding: 12px 14px; }
  .final-cta-inner { padding: 48px 24px; }
}

/* ── THE SWEEP — scroll-scrubbed journey ─────────────────── */
/* body.scrub = frame-scrub active (desktop, fine pointer, motion OK).
   Without it the .journey is hidden and the classic .hero video shows. */
body:not(.scrub) .journey { display: none; }
body.scrub .hero { display: none; }

.journey { position: relative; z-index: 2; height: 560vh; background: var(--bg); }
.journey-viewport {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  background: var(--bg);
}
.journey-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.journey-grain {
  position: absolute; inset: 0; pointer-events: none; opacity: .06;
  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.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)'/%3E%3C/svg%3E");
}
.journey-scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(76deg, rgba(6,6,6,.82) 0%, rgba(6,6,6,.32) 34%, transparent 58%),
              linear-gradient(180deg, rgba(6,6,6,.45) 0%, transparent 18%);
}

/* Chapter copy — lower-left, never over the subject */
.journey-chapter {
  position: absolute; z-index: 3;
  left: clamp(24px, 7vw, 110px); bottom: clamp(88px, 15vh, 150px);
  max-width: 620px; opacity: 0; transform: translateY(14px);
  will-change: opacity, transform;
}
.journey-headline {
  font-size: clamp(44px, 6.2vw, 94px); font-weight: 800;
  letter-spacing: -.035em; line-height: .98;
  margin-bottom: 18px; text-wrap: balance;
}
.journey-sub {
  font-size: clamp(15px, 1.5vw, 19px); font-weight: 300;
  color: rgba(255,255,255,.88); line-height: 1.6; max-width: 480px;
  margin-bottom: 26px;
}
.journey-sub code {
  font-family: 'DM Mono', monospace; font-size: .88em;
  background: rgba(255,255,255,.06); border: 1px solid var(--border);
  border-radius: 5px; padding: 2px 7px; color: var(--accent);
}
.journey-ctas { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.journey-note {
  font-family: 'DM Mono', monospace; font-size: 12px;
  color: rgba(255,255,255,.55); margin-top: 16px;
}

/* Scroll ruler — bottom centre, site-wide wayfinding (scrub mode). Built by
   script.js. A film ruler: 61 ticks, the passed ones lit emerald, an emerald
   playhead whose label (chapter + sweep %) rides with it, and seven chapter
   stops you can click. --p is the overall sweep progress, 0..1. */
body:not(.scrub) .journey-hud { display: none; }
.journey-ruler {
  --p: 0;
  position: fixed; z-index: 90; left: 50%; bottom: 22px; transform: translateX(-50%);
  width: min(420px, calc(100vw - 40px)); padding: 30px 16px 14px;
  border-radius: 14px; border: 1px solid transparent;
  background:
    linear-gradient(180deg, rgba(13,16,15,.88), rgba(9,11,10,.88)) padding-box,
    linear-gradient(180deg, rgba(255,255,255,.12), rgba(255,255,255,.04)) border-box;
  box-shadow: 0 18px 40px -18px rgba(0,0,0,.85);
  font-family: 'DM Mono', monospace;
}
.journey-ruler { transition: opacity .35s var(--ease-out), transform .35s var(--ease-out); }
.journey-ruler.parked { opacity: 0; transform: translate(-50%, 24px); pointer-events: none; }
.ruler-track { position: relative; height: 24px; }
.ruler-ticks { position: absolute; inset: 0; display: flex; justify-content: space-between; align-items: flex-end; pointer-events: none; }
.ruler-ticks span { width: 1px; height: 7px; background: rgba(255,255,255,.2); }
.ruler-ticks span:nth-child(5n+1) { height: 12px; }
.ruler-ticks span:nth-child(10n+1) { height: 18px; background: rgba(255,255,255,.38); }
.ruler-ticks--lit { clip-path: inset(0 calc((1 - var(--p)) * 100%) 0 0); }
.ruler-ticks--lit span { background: rgba(0,229,153,.55); }
.ruler-ticks--lit span:nth-child(10n+1) { background: var(--accent); }
.ruler-head {
  position: absolute; top: -5px; bottom: -5px; left: calc(var(--p) * 100%);
  width: 2px; margin-left: -1px; border-radius: 1px; background: var(--accent);
  box-shadow: 0 0 10px 2px rgba(0,229,153,.5); pointer-events: none;
}
.ruler-label {
  position: absolute; left: calc(var(--p) * 100%); bottom: calc(100% + 9px);
  transform: translateX(calc(var(--p) * -100%));
  display: flex; gap: 10px; white-space: nowrap;
  font-size: 10.5px; font-weight: 500; letter-spacing: 1.4px; text-transform: uppercase;
  color: var(--accent); pointer-events: none;
}
.ruler-label .ruler-pct { color: rgba(255,255,255,.5); }
/* The button is a 24×24 hit area (WCAG 2.5.8 target size); the visible 9px dot is ::before,
   centred where the old dot sat (1.5px above the track bottom). */
.ruler-stop {
  position: absolute; bottom: -10.5px; width: 24px; height: 24px; margin-left: -12px;
  padding: 0; border: 0; background: none; cursor: pointer;
}
.ruler-stop::before {
  content: ''; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px;
  border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: #0a0c0b;
  transition: transform .2s var(--ease-out), background .3s, border-color .3s;
}
.ruler-stop::after {
  content: attr(data-label); position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  white-space: nowrap; font-size: 9.5px; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--text-1); opacity: 0; transition: opacity .2s; pointer-events: none;
}
.ruler-stop:hover::before, .ruler-stop:focus-visible::before { transform: scale(1.35); }
.ruler-stop:hover::after, .ruler-stop:focus-visible::after { opacity: 1; }
.ruler-stop.passed::before { border-color: var(--accent); background: var(--accent); }
.ruler-stop:focus-visible { outline: none; }
.ruler-stop:focus-visible::before { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Sweep progress HUD — top-right, site-wide (scrub mode) */
.journey-hud {
  position: fixed; z-index: 90; top: 76px; right: clamp(20px, 3vw, 44px);
  font-family: 'DM Mono', monospace; font-size: 11px; font-weight: 500;
  letter-spacing: 1.2px; color: rgba(255,255,255,.5);
  text-align: right;
}
.journey-hud .hud-pct { color: var(--accent); }

/* Loader — the preload counter is part of the show */
.loader {
  position: fixed; inset: 0; z-index: 400; background: var(--bg);
  display: flex; align-items: flex-end; justify-content: flex-start;
  padding: clamp(24px, 6vw, 90px);
  transition: transform .9s var(--ease-out), visibility 0s .9s;
}
.loader.done { transform: translateY(-101%); visibility: hidden; }
.loader-inner { position: relative; z-index: 1; }
.loader-label {
  font-family: 'DM Mono', monospace; font-size: 11px; font-weight: 500;
  letter-spacing: 2.2px; text-transform: uppercase;
  color: rgba(255,255,255,.45); margin-bottom: 6px;
}
.loader-pct {
  font-family: 'DM Mono', monospace; font-weight: 300;
  font-size: clamp(80px, 14vw, 190px); line-height: 1;
  color: var(--text-1); font-variant-numeric: tabular-nums;
}
.loader-bar {
  position: absolute; left: 0; right: 0; bottom: 0; height: 2px;
  background: rgba(255,255,255,.08);
}
.loader-bar-fill {
  height: 100%; width: 0%; background: var(--accent);
  box-shadow: 0 0 18px var(--accent-glow);
}

/* ── Section segments — every section lives in the world ── */
/* Scrub mode: a sticky canvas world per segment; the section's real content
   scrolls up over the held frame. Without .scrub the world is hidden and the
   sections render exactly as the classic page. */
body:not(.scrub) .jseg-bg, body:not(.scrub) .jseg-scrub { display: none; }

body.scrub .jseg { position: relative; }
body.scrub .jseg-bg {
  position: sticky; top: 0; height: 100vh; margin-bottom: -100vh;
  z-index: 0; overflow: hidden; background: var(--bg);
}
body.scrub .jseg-bg canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
body.scrub .jseg-bg .journey-chapter { z-index: 3; }
body.scrub .jseg-scrub { height: 190vh; position: relative; }
body.scrub .jseg-content { position: relative; z-index: 2; }

/* Content floats over the held frame as translucent bands */
body.scrub .jseg-content section {
  background: rgba(6,6,6,.84);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-faint);
  border-bottom: 1px solid var(--border-faint);
}
body.scrub .jseg-content section + section { border-top: none; }

/* Phones: same film, tuned. svh avoids the iOS toolbar jump on sticky
   viewports; the rail is dropped (7 vertical labels don't fit), copy scales
   to the narrow viewport. */
@supports (height: 100svh) {
  .journey-viewport, body.scrub .jseg-bg { height: 100svh; }
  body.scrub .jseg-bg { margin-bottom: -100svh; }
}
@media (max-width: 700px) {
  .journey-ruler { bottom: 14px; padding: 26px 12px 12px; }
  /* Phones: the hero sub-stops sit ~22px apart, too close for 24px targets — keep the five chapter stops. */
  .ruler-stop[data-label="The Sweep"], .ruler-stop[data-label="The Clean"] { display: none; }
  .journey-hud { top: 70px; font-size: 10px; }
  .journey-chapter {
    left: 20px; right: 20px; max-width: none;
    bottom: clamp(64px, 11vh, 120px);
  }
  .journey-headline { font-size: clamp(34px, 9.6vw, 94px); }
  .journey-sub { font-size: 15px; }
  .journey-ctas .btn { width: 100%; justify-content: center; }
  .journey { height: 480vh; }
  body.scrub .jseg-scrub { height: 160vh; }
}

/* ── Reduced motion (last: must override .reveal above) ──── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .breathing::before, .breathing::after { animation: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
