/* Selfward site: Forge theme, from src/theme/tokens.ts */
:root {
  --bg: #0B0B0C;
  --surface: #141416;
  --surface-2: #1B1B1E;
  --text: #F2F2F2;
  --muted: #8A8A90;
  --faint: #55555A;
  --hair: #222225;
  --hair-strong: #3A3A3E;
  --accent: #F5A524;
  --base: #2A2A2D;
  --on-base: #C9C9CE;
  --radius: 10px;
  --ease: cubic-bezier(.22, .8, .24, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h, 52px) + 12px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, p { margin: 0; }
a { color: inherit; }
em { font-style: normal; color: var(--accent); }
button { font: inherit; color: inherit; }
.muted { color: var(--muted); }
.container { width: min(1120px, 100% - 32px); margin-inline: auto; }
.sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; padding-top: var(--nav-h, 52px); }

.eyebrow { color: var(--accent); font-size: 15px; font-weight: 600; letter-spacing: .02em; margin-bottom: 14px; }
.h2 { font-size: clamp(36px, 6vw, 72px); line-height: 1.04; letter-spacing: -.035em; font-weight: 700; }
.lede { color: var(--muted); font-size: clamp(18px, 2vw, 22px); line-height: 1.45; max-width: 640px; margin-top: 22px; }
.cite { color: var(--faint); font-size: 13px; margin-top: 14px; }
.plus-inline { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--text); color: var(--bg); font-weight: 600; font-size: 16px; line-height: 1; vertical-align: 1px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--accent); color: #0B0B0C; text-decoration: none;
  font-weight: 600; font-size: 16px; padding: 12px 22px; border-radius: 999px;
  transition: transform .2s var(--ease), background .2s;
}
.btn:hover { background: #FFB840; transform: translateY(-1px); }
.btn-sm { font-size: 13px; padding: 7px 14px; }
.link-arrow { color: var(--accent); text-decoration: none; font-weight: 500; }
.link-arrow::after { content: " ›"; }
.link-arrow:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Nav */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: 52px;
  display: flex; align-items: center; gap: 24px; padding: 0 max(16px, calc((100% - 1120px) / 2));
  background: rgba(11, 11, 12, .72); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid transparent; transition: border-color .3s;
}
.nav.scrolled { border-bottom-color: var(--hair); }
.nav-brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600; letter-spacing: -.01em; }
.nav-brand svg { width: 26px; height: 26px; overflow: hidden; border-radius: 6px; background: var(--bg); }
.nav-links { display: flex; gap: 22px; margin-left: auto; font-size: 13px; }
.nav-links a { color: var(--muted); text-decoration: none; transition: color .2s; }
.nav-links a:hover { color: var(--text); }

/* Hero */
.hero { height: 190vh; }
.hero-sticky { display: flex; flex-direction: column; align-items: center; }
.hero-copy { position: relative; z-index: 3; text-align: center; padding: 9vh 16px 0; will-change: transform, opacity; }
.hero-title { font-size: clamp(56px, 11vw, 148px); line-height: .95; letter-spacing: -.05em; font-weight: 700; margin-top: 4px; }
.hero-title span { display: inline-block; }
.hero-iam { position: relative; }
/* The hand-drawn stroke under "I am", as on the splash screen */
.ink { position: absolute; left: -3%; bottom: -.1em; width: 106%; height: .16em; overflow: visible; }
.ink path { fill: none; stroke: var(--accent); stroke-width: 3.6; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; animation: draw .8s ease-in-out 2.9s forwards; }
/* "building." takes the accent as the stroke draws, like "I am ___" in the app */
.hero-want { animation: tint .8s ease-in-out 2.9s forwards; }
@keyframes tint { to { color: var(--accent); } }
.hero-sub { font-size: clamp(18px, 2.2vw, 24px); color: var(--muted); margin-top: 18px; }
.hero-ctas { display: flex; gap: 22px; align-items: center; justify-content: center; margin-top: 28px; flex-wrap: wrap; }
.hero-in { opacity: 0; transform: translateY(18px); animation: rise 1s var(--ease) var(--d, 0s) forwards; }
@keyframes rise { to { opacity: 1; transform: none; } }

.hero-far { position: absolute; inset: auto 0 0; height: 30vh; z-index: 0; opacity: 0; animation: fade 1.6s ease .1s forwards; }
.hero-far svg { width: 100%; height: 100%; display: block; }
.range-wrap { position: absolute; bottom: -1px; left: 50%; transform: translateX(-50%); height: 54vh; aspect-ratio: 160 / 84; z-index: 1; }
.hero-range { width: 100%; height: 100%; display: block; overflow: visible; transform-origin: 55% 18%; will-change: transform; }
.r-back { opacity: 0; transform: translateY(14px); animation: rise 1.4s var(--ease) .2s forwards; }
.r-front { opacity: 0; transform: translateY(22px); animation: rise 1.4s var(--ease) .45s forwards; }
.r-walked { stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw 1.1s ease-in-out 1.15s forwards; }
.r-ahead { opacity: 0; animation: ahead 1s ease 1.9s forwards; }
.r-pole { transform-box: fill-box; transform-origin: bottom; transform: scaleY(0); animation: grow .5s var(--ease) 1.9s forwards; }
.r-pennant { transform-box: fill-box; transform-origin: left center; transform: scaleX(0); animation: flag .7s cubic-bezier(.3, 1.6, .5, 1) 2.25s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes ahead { to { opacity: .55; } }
@keyframes grow { to { transform: scaleY(1); } }
@keyframes flag { to { transform: scaleX(1); } }
@keyframes fade { to { opacity: 1; } }
.hero-veil { position: absolute; inset: 0; background: var(--bg); opacity: 0; z-index: 4; pointer-events: none; }
/* Scroll cue: appears after the intro, pulses harder if nobody has scrolled */
.scroll-cue {
  position: absolute; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); left: 50%; z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 2px; margin-left: -80px; width: 160px;
  color: var(--text); text-decoration: none; font-size: 14px; font-weight: 600;
  padding: 10px 16px 6px; border-radius: 999px; background: rgba(11, 11, 12, .6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
}
.scroll-cue svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(5px); } }
.scroll-cue.urgent { color: var(--accent); }
.scroll-cue.urgent svg { animation-duration: .9s; }
.scroll-cue.urgent { box-shadow: 0 0 0 0 rgba(245, 165, 36, .5); animation: rise 1s var(--ease) forwards, ping 1.8s 1s infinite; }

/* Statement */
.statement-wrap { height: 150vh; }
.statement-sticky { display: grid; place-items: center; }
.statement { width: min(1000px, 100% - 32px); font-size: clamp(30px, 4.6vw, 60px); line-height: 1.14; letter-spacing: -.03em; font-weight: 700; }
.statement .w { opacity: .28; transition: opacity .35s ease, color .35s ease; transition-delay: calc(var(--i, 0) * 45ms); }
/* Plays on its own once in view: about 1.6s, no scrolling needed */
.statement.play .w { opacity: 1; }
.statement.play .w.hl { color: var(--accent); }

/* Sections */
.section { padding: clamp(96px, 14vh, 160px) 0; }
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* Card rail */
.rail-wrap { margin-top: 56px; }
.rail {
  list-style: none; margin: 0; padding: 0 max(16px, calc((100% - 1120px) / 2)) 8px;
  display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: max(16px, calc((100% - 1120px) / 2));
  scrollbar-width: none; cursor: grab;
}
.rail::-webkit-scrollbar { display: none; }
.rail.dragging { cursor: grabbing; scroll-snap-type: none; }
.rail.dragging * { user-select: none; pointer-events: none; }
.card {
  position: relative; flex: 0 0 min(372px, 82vw); scroll-snap-align: start;
  background: var(--surface); border-radius: 28px; padding: 28px 28px 76px; min-height: 540px;
  display: flex; flex-direction: column;
}
.card h3 { font-size: 28px; line-height: 1.12; letter-spacing: -.025em; font-weight: 700; margin: 6px 0 12px; }
.card > p { color: var(--muted); }
.card-eyebrow { color: var(--accent); font-size: 14px; font-weight: 600; }
.card-art { height: 210px; margin: 0 -8px 26px; border-radius: 18px; background: var(--bg); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; overflow: hidden; }
.card-more-btn {
  position: absolute; right: 22px; bottom: 22px; width: 38px; height: 38px; border-radius: 50%; border: 0;
  background: var(--text); color: var(--bg); font-size: 26px; line-height: 1; cursor: pointer; display: grid; place-items: center; padding-bottom: 3px;
  transition: transform .25s var(--ease);
}
.card-more-btn:hover { transform: scale(1.1) rotate(90deg); }
.rail-controls { display: flex; justify-content: flex-end; gap: 12px; margin-top: 24px; }
.rail-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--base); color: var(--text); font-size: 26px; line-height: 1; cursor: pointer; padding-bottom: 4px; transition: background .2s, opacity .2s; }
.rail-btn:hover { background: var(--hair-strong); }
.rail-btn:disabled { opacity: .35; cursor: default; }

.art-identity { gap: 6px; }
.art-identity .strike { color: var(--faint); font-size: 18px; text-decoration: line-through; text-decoration-color: var(--accent); }
.art-identity .big { font-size: 34px; font-weight: 700; letter-spacing: -.03em; }
.art-stack { gap: 0; }
.blk { padding: 11px 18px; border-radius: 12px; font-weight: 600; font-size: 15px; }
.blk-base { background: var(--base); color: var(--on-base); }
.blk-new { border: 2px solid var(--accent); color: var(--text); transform: translateY(-18px); opacity: 0; transition: all .9s var(--ease) .3s; }
.blk-join { width: 2px; height: 22px; background: var(--accent); transform: scaleY(0); transform-origin: top; transition: transform .5s ease .2s; }
.card.in .blk-new { transform: none; opacity: 1; }
.card.in .blk-join { transform: none; }
.art-timer { position: relative; }
.art-timer svg { width: 130px; }
.art-timer span { position: absolute; font-size: 26px; font-weight: 700; letter-spacing: -.02em; }
.timer-arc, .easy-ramp, .curve-line, .ring-arc { transition: stroke-dashoffset 1.8s var(--ease) .2s; }
.card.in .timer-arc, .card.in .easy-ramp, .card.in .curve-line { stroke-dashoffset: 0; }
.art-easy svg, .art-curve svg { width: 78%; }
.art-easy span, .art-miss span, .art-curve span { color: var(--muted); font-size: 14px; }
.art-curve b { color: var(--text); font-size: 28px; letter-spacing: -.02em; }
.easy-ball { transition: transform 1.8s var(--ease) .4s; }
.card.in .easy-ball { transform: translate(152px, -63px); }
.dots { display: flex; gap: 10px; }
.dots i { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); transform: scale(0); transition: transform .4s cubic-bezier(.3, 1.6, .5, 1); }
.dots i.miss { background: transparent; border: 2px dashed var(--faint); }
.card.in .dots i { transform: scale(1); }
.card.in .dots i:nth-child(2) { transition-delay: .1s; } .card.in .dots i:nth-child(3) { transition-delay: .2s; }
.card.in .dots i:nth-child(4) { transition-delay: .3s; } .card.in .dots i:nth-child(5) { transition-delay: .4s; }
.card.in .dots i:nth-child(6) { transition-delay: .5s; } .card.in .dots i:nth-child(7) { transition-delay: .6s; }

/* Modal */
.modal {
  width: min(680px, 100% - 24px); max-height: 86vh; border: 0; border-radius: 28px; padding: 48px clamp(24px, 5vw, 56px);
  background: var(--surface); color: var(--text); overflow: auto;
}
.modal::backdrop { background: rgba(0, 0, 0, .7); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.modal[open] { animation: pop .4s var(--ease); }
@keyframes pop { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.modal-x, .pop-x { position: absolute; top: 16px; right: 16px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--base); font-size: 22px; line-height: 1; cursor: pointer; padding-bottom: 3px; }
.modal-body h3 { font-size: clamp(28px, 4vw, 40px); line-height: 1.08; letter-spacing: -.03em; margin: 8px 0 20px; }
.modal-body p { color: var(--on-base); margin-bottom: 14px; font-size: 17px; }
.modal-body .in-app { background: var(--bg); border-radius: 14px; padding: 16px 18px; color: var(--text); }
.modal-body .in-app strong { color: var(--accent); }
.modal-body .cite { color: var(--muted); font-size: 14px; }
.modal-body .card-eyebrow { color: var(--accent); }

/* Story */
.story { height: 600vh; position: relative; }
/* Snap points, one per step: a quick flick stops on the next step instead of skipping past it */
html { scroll-snap-type: y proximity; }
.snap {
  position: absolute; left: 0; width: 1px; height: 1px; pointer-events: none;
  top: calc(var(--f) / 6 * (100% - 100vh));
  scroll-snap-align: start; scroll-snap-stop: always;
  scroll-margin-top: calc(-1 * (var(--nav-h, 52px) + 12px));
}
.story-sticky { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(32px, 6vw, 96px); width: min(1120px, 100% - 32px); margin-inline: auto; overflow: visible; }
.captions { position: relative; height: 300px; }
.cap { position: absolute; inset: 0; opacity: 0; transform: translateY(30px); transition: opacity .6s var(--ease), transform .6s var(--ease); pointer-events: none; }
.cap-n { color: var(--faint); font-weight: 600; font-size: 14px; letter-spacing: .08em; }
.cap h2 { font-size: clamp(34px, 5vw, 60px); line-height: 1.04; letter-spacing: -.035em; font-weight: 700; margin: 10px 0 18px; }
.cap p { color: var(--muted); font-size: clamp(18px, 1.8vw, 21px); max-width: 460px; }
.story-progress { display: flex; gap: 8px; margin-top: 12px; }
.story-progress i { width: 26px; height: 4px; border-radius: 2px; background: var(--hair-strong); transition: background .4s, width .4s var(--ease); }

.phone {
  position: relative; width: 300px; height: 620px; border-radius: 48px; background: var(--bg);
  border: 10px solid #1D1D20; box-shadow: 0 0 0 2px #2E2E32, 0 40px 120px rgba(245, 165, 36, .08);
  overflow: hidden; font-size: 13px; flex: none;
  transform: scale(var(--phone-scale, 1)); margin: calc((var(--phone-scale, 1) - 1) * 310px) 0;
}
.phone-notch { position: absolute; top: 10px; left: 50%; width: 90px; height: 26px; margin-left: -45px; background: #000; border-radius: 16px; z-index: 5; }
.screen { position: absolute; inset: 0; padding: 58px 20px 20px; opacity: 0; transform: scale(.96); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.s-title { font-size: 21px; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.s-sub { color: var(--muted); margin-top: 8px; line-height: 1.4; }
.center { text-align: center; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.chips span, .rows span { padding: 7px 12px; border: 1px solid var(--hair-strong); border-radius: 999px; color: var(--on-base); transition: all .4s ease .3s; }
.chips span.on, .rows span.on { border-color: var(--hair-strong); }
.s-iam { font-size: 36px; font-weight: 700; letter-spacing: -.035em; line-height: 1.05; margin-top: 44px; opacity: 0; transform: translateY(12px); transition: all .7s var(--ease) .6s; }
.s-group { color: var(--faint); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin: 18px 0 8px; }
.rows { display: flex; flex-direction: column; gap: 6px; }
.rows span { border-radius: 10px; padding: 10px 12px; background: var(--surface); border-color: var(--surface); }
.stack-demo { margin-top: 22px; display: flex; flex-direction: column; align-items: stretch; }
.sd-cue, .sd-new { border-radius: 12px; padding: 12px 14px; font-weight: 600; font-size: 15px; }
.sd-cue small, .sd-new small, .check small, .next small { display: block; color: var(--muted); font-size: 11px; font-weight: 500; margin-bottom: 2px; }
.sd-cue { background: var(--base); color: var(--on-base); }
.sd-join { width: 2px; height: 20px; background: var(--accent); margin-left: 24px; transform: scaleY(0); transform-origin: top; transition: transform .4s ease .45s; }
.sd-new { border: 2px solid var(--accent); opacity: 0; transform: translateY(-14px); transition: all .7s var(--ease) .7s; }
.s-note { color: var(--muted); font-size: 12px; margin-top: 14px; line-height: 1.4; }
.days { display: flex; gap: 6px; margin-top: 18px; }
.days span { flex: 1; aspect-ratio: 1; display: grid; place-items: center; border-radius: 50%; background: var(--surface); color: var(--faint); font-weight: 600; font-size: 12px; }
.days span.on { background: var(--base); color: var(--text); }
.s-meta { color: var(--muted); font-size: 12px; margin-top: 14px; }
.s-meta b { color: var(--text); }
.ideas { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.ideas label { display: flex; gap: 10px; align-items: flex-start; background: var(--surface); border-radius: 12px; padding: 12px; line-height: 1.35; }
.ideas i { flex: none; width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--hair-strong); position: relative; transition: all .3s ease; }
.ideas i::after { content: ""; position: absolute; left: 5px; top: 1px; width: 5px; height: 10px; border: solid #0B0B0C; border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.s-btn { margin-top: 18px; background: var(--accent); color: #0B0B0C; font-weight: 600; text-align: center; border-radius: 12px; padding: 12px; }
.s-btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--hair-strong); margin-top: 8px; }
.s-day { color: var(--muted); font-weight: 600; font-size: 12px; }
.s-iam-sm { font-size: 26px; font-weight: 700; letter-spacing: -.03em; margin-top: 2px; }
.banner { margin-top: 12px; border: 1px dashed var(--hair-strong); border-radius: 10px; padding: 9px 11px; color: var(--muted); font-size: 12px; }
.banner b { color: var(--text); }
.week { display: flex; gap: 6px; margin-top: 12px; }
.week i { width: 14px; height: 14px; border-radius: 50%; background: var(--accent); }
.week i.m { background: transparent; border: 1.5px dashed var(--faint); }
.week i.t { background: transparent; border: 1.5px solid var(--accent); }
.check { display: flex; gap: 12px; align-items: center; background: var(--surface); border-radius: 12px; padding: 11px 12px; margin-bottom: 7px; font-weight: 600; font-size: 14px; }
.check i { flex: none; width: 24px; height: 24px; border-radius: 7px; border: 1.5px solid var(--hair-strong); position: relative; transition: all .35s ease; }
.check i::after { content: ""; position: absolute; left: 7px; top: 2px; width: 6px; height: 12px; border: solid #0B0B0C; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) scale(0); transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.tabbar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-around; padding: 12px 8px 18px; border-top: 1px solid var(--hair); font-size: 11px; color: var(--faint); background: var(--bg); }
.tabbar .on { color: var(--text); }
.s6 { display: flex; flex-direction: column; align-items: center; }
.ring { position: relative; width: 150px; margin-top: 30px; }
.ring span { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; color: var(--muted); font-size: 12px; }
.ring b { display: block; color: var(--text); font-size: 40px; letter-spacing: -.03em; line-height: 1; }
.c-ask, .c-done { width: 100%; margin-top: 26px; transition: opacity .5s ease, transform .5s var(--ease); }
.c-done { position: absolute; left: 20px; right: 20px; width: auto; top: 250px; opacity: 0; transform: translateY(20px); }
.next { margin-top: 26px; border: 2px dashed var(--hair-strong); border-radius: 12px; padding: 12px 14px; font-weight: 600; font-size: 15px; }

/* Story state, driven by data-step */
.story[data-step="0"] .cap:nth-child(1), .story[data-step="1"] .cap:nth-child(2), .story[data-step="2"] .cap:nth-child(3),
.story[data-step="3"] .cap:nth-child(4), .story[data-step="4"] .cap:nth-child(5), .story[data-step="5"] .cap:nth-child(6) { opacity: 1; transform: none; }
.story[data-step="0"] .s1, .story[data-step="1"] .s2, .story[data-step="2"] .s3,
.story[data-step="3"] .s4, .story[data-step="4"] .s5, .story[data-step="5"] .s6 { opacity: 1; transform: none; }
.story[data-step="0"] .story-progress i:nth-child(1), .story[data-step="1"] .story-progress i:nth-child(2), .story[data-step="2"] .story-progress i:nth-child(3),
.story[data-step="3"] .story-progress i:nth-child(4), .story[data-step="4"] .story-progress i:nth-child(5), .story[data-step="5"] .story-progress i:nth-child(6) { background: var(--accent); width: 44px; }
.story[data-step="0"] .chips .on { background: var(--accent); border-color: var(--accent); color: #0B0B0C; }
.story[data-step="0"] .s-iam { opacity: 1; transform: none; }
.story[data-step="1"] .rows .on { background: var(--accent); border-color: var(--accent); color: #0B0B0C; font-weight: 600; }
.story[data-step="2"] .sd-join { transform: none; }
.story[data-step="2"] .sd-new { opacity: 1; transform: none; }
.story[data-step="3"] .ideas label:nth-child(-n+2) i { background: var(--accent); border-color: var(--accent); }
.story[data-step="3"] .ideas label:nth-child(-n+2) i::after { transform: rotate(45deg) scale(1); }
.story[data-step="3"] .ideas label:nth-child(2) i, .story[data-step="3"] .ideas label:nth-child(2) i::after { transition-delay: .5s; }
.story[data-step="4"] .check i { background: var(--accent); border-color: var(--accent); }
.story[data-step="4"] .check i::after { transform: rotate(45deg) scale(1); }
.story[data-step="4"] .check.c2 i, .story[data-step="4"] .check.c2 i::after { transition-delay: .45s; }
.story[data-step="4"] .check.c3 i { background: transparent; border-color: var(--hair-strong); }
.story[data-step="4"] .check.c3 i::after { transform: rotate(45deg) scale(0); }
.story[data-step="5"] .ring-arc { stroke-dashoffset: 0; }
.story[data-step="5"].late .c-ask { opacity: 0; transform: translateY(-10px); }
.story[data-step="5"].late .c-done { opacity: 1; transform: none; }

/* Formula */
.formula-wrap { height: 220vh; padding: 0; }
.formula-sticky { display: grid; place-items: center; }
.formula { font-size: clamp(32px, 5.2vw, 68px); line-height: 1.12; letter-spacing: -.035em; font-weight: 700; margin-top: 10px; }
.seg { position: relative; color: var(--hair-strong); transition: color .5s ease; }
.seg.on { color: var(--text); }
.seg.cur { color: var(--accent); }
.formula-keys { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 56px; }
.fk { border-top: 2px solid var(--hair-strong); padding-top: 14px; transition: border-color .5s; }
.fk b { font-size: 17px; }
.fk p { color: var(--muted); font-size: 15px; margin-top: 4px; }
.fk.on { border-color: var(--accent); }

/* Tower */
.tower-wrap { height: 300vh; }
.tower-sticky { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: clamp(32px, 6vw, 80px); overflow: visible; }
.tower-status { display: flex; align-items: center; gap: 10px; margin-top: 30px; font-weight: 600; }
.ts-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 rgba(245, 165, 36, .6); animation: ping 1.8s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(245, 165, 36, 0); } 100% { box-shadow: 0 0 0 0 rgba(245, 165, 36, 0); } }
.tower { display: flex; flex-direction: column; gap: 10px; }
.tb {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px; border-radius: 16px;
  font-weight: 600; font-size: clamp(15px, 1.6vw, 18px); border: 2px dashed var(--hair-strong); color: var(--faint);
  opacity: 0; transform: translateY(-40px); transition: all .7s var(--ease);
}
.tb em { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.tb.base { background: var(--base); border: 2px solid var(--base); color: var(--on-base); opacity: 1; transform: none; }
.tb.show { opacity: 1; transform: none; }
.tb.building { border: 2px solid var(--accent); color: var(--text); background: rgba(245, 165, 36, .06); }
.tb.building em::before { content: "Building now"; color: var(--accent); }
.tb.locked { border: 2px solid var(--accent); background: var(--accent); color: #0B0B0C; }
.tb.locked em::before { content: "Locked in ✓"; color: #0B0B0C; }

/* Guardrails */
.guards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 56px; }
.guard { background: var(--surface); border-radius: 24px; padding: 30px; }
.guard:nth-child(2) { transition-delay: .08s; } .guard:nth-child(3) { transition-delay: .16s; }
.guard:nth-child(5) { transition-delay: .08s; } .guard:nth-child(6) { transition-delay: .16s; }
.g-num { font-size: 64px; font-weight: 700; letter-spacing: -.05em; line-height: 1; color: var(--accent); margin-bottom: 22px; }
.g-num small { font-size: 26px; letter-spacing: -.02em; color: var(--muted); }
.g-word { font-size: 52px; }
.guard h3 { font-size: 21px; letter-spacing: -.02em; margin-bottom: 8px; }
.guard p:not(.g-num) { color: var(--muted); font-size: 16px; }

/* Map */
.map-scroll { margin-top: 48px; overflow-x: auto; scrollbar-width: none; }
.map-scroll::-webkit-scrollbar { display: none; }
.map-stage { position: relative; width: min(1200px, 100% - 32px); margin-inline: auto; aspect-ratio: 15 / 8; border-radius: 28px; background: linear-gradient(#101012, var(--bg)); overflow: hidden; }
.map-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pulse { animation: pulse 1.8s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes pulse { 50% { transform: scale(1.35); } }
.map-card { position: absolute; left: 3%; top: 5%; width: clamp(200px, 25%, 290px); background: rgba(20, 20, 22, .88); border: 1px solid var(--hair); border-radius: 16px; padding: 16px 18px; font-size: 13px; backdrop-filter: blur(8px); }
.mc-k { color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.mc-iam { font-size: 22px; font-weight: 700; letter-spacing: -.02em; margin: 4px 0 10px; }
.mc-bar { height: 5px; border-radius: 3px; background: var(--hair-strong); overflow: hidden; }
.mc-bar i { display: block; height: 100%; background: var(--accent); }
.mc-meta { color: var(--muted); margin-top: 8px; line-height: 1.35; }
.mc-meta b { color: var(--text); }
.map-filters { position: absolute; right: 3%; top: 5%; display: flex; gap: 6px; }
.map-filters span { padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--hair); font-size: 12px; color: var(--muted); }
.map-filters .on { background: var(--text); color: var(--bg); border-color: var(--text); }
.hotspot {
  position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 0; cursor: pointer; z-index: 3;
  background: var(--text); color: var(--bg); font-size: 22px; font-weight: 500; line-height: 1; padding-bottom: 2px;
  box-shadow: 0 0 0 0 rgba(242, 242, 242, .5); animation: hs 2.4s infinite; transition: transform .3s var(--ease), background .3s;
}
.hotspot:hover { transform: scale(1.12); }
.hotspot[aria-expanded="true"] { transform: rotate(45deg); background: var(--accent); animation: none; }
.hs-card { left: calc(3% + clamp(200px, 25%, 290px)); top: 5%; }
@keyframes hs { 70% { box-shadow: 0 0 0 14px rgba(242, 242, 242, 0); } 100% { box-shadow: 0 0 0 0 rgba(242, 242, 242, 0); } }
.pop {
  position: absolute; z-index: 4; width: min(320px, 80%); background: rgba(27, 27, 30, .96); border: 1px solid var(--hair-strong);
  border-radius: 18px; padding: 20px 22px; backdrop-filter: blur(12px); box-shadow: 0 20px 60px rgba(0, 0, 0, .5);
  animation: pop .35s var(--ease);
}
.pop[hidden] { display: none; }
.pop h3 { font-size: 20px; letter-spacing: -.02em; margin: 0 30px 8px 0; }
.pop p { color: var(--on-base); font-size: 15px; }
.pop-x { top: 12px; right: 12px; width: 28px; height: 28px; font-size: 18px; }
.map-pills { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 28px; }
.map-pills button { background: var(--surface); border: 1px solid var(--hair); color: var(--on-base); padding: 9px 16px; border-radius: 999px; cursor: pointer; font-size: 14px; transition: all .2s; }
.map-pills button:hover { border-color: var(--hair-strong); color: var(--text); }
.map-pills button.on { background: var(--text); color: var(--bg); border-color: var(--text); }

/* Compare */
.compare { margin-top: 56px; border-top: 1px solid var(--hair); }
.cmp-head, .cmp-row { display: grid; grid-template-columns: 1fr 1.2fr 1.4fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--hair); align-items: baseline; }
.cmp-head { color: var(--faint); font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.cmp-head .acc { color: var(--accent); }
.cmp-row span:nth-child(1) { color: var(--muted); font-size: 15px; }
.cmp-row span:nth-child(2) { color: var(--faint); text-decoration: line-through; text-decoration-color: rgba(138, 138, 144, .5); }
.cmp-row span:nth-child(3) { font-weight: 600; font-size: 19px; letter-spacing: -.01em; }
.cmp-row span:nth-child(3)::before { content: "✓"; color: var(--accent); margin-right: 10px; }

/* Ways */
.ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 56px; }
.way { background: var(--surface); border-radius: 28px; padding: 36px; }
.way-deep { border: 1px solid rgba(245, 165, 36, .35); }
.w-tag { color: var(--muted); font-size: 14px; font-weight: 600; }
.w-tag.acc { color: var(--accent); }
.way h3 { font-size: 30px; line-height: 1.1; letter-spacing: -.03em; margin: 10px 0 12px; }
.way p:not(.w-tag) { color: var(--muted); }
.pw-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.pw-chips span { padding: 7px 13px; border-radius: 999px; border: 1px dashed var(--hair-strong); color: var(--on-base); font-size: 14px; }

/* Science */
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 56px; }
.stat { border-top: 2px solid var(--accent); padding-top: 20px; }
.stat:nth-child(2) { transition-delay: .1s; } .stat:nth-child(3) { transition-delay: .2s; }
.st-n { font-size: clamp(56px, 7vw, 88px); font-weight: 700; letter-spacing: -.05em; line-height: 1; margin-bottom: 14px; }
.stat p:not(.st-n):not(.cite) { color: var(--on-base); }
.refs { margin-top: 56px; border-top: 1px solid var(--hair); padding-top: 20px; }
.refs summary { cursor: pointer; font-weight: 600; color: var(--muted); list-style: none; }
.refs summary::after { content: " +"; color: var(--accent); }
.refs[open] summary::after { content: " –"; }
.refs ol { color: var(--muted); font-size: 14px; line-height: 1.5; padding-left: 20px; margin-top: 18px; display: grid; gap: 10px; }

/* Final */
.final { text-align: center; padding: clamp(100px, 18vh, 200px) 16px; display: flex; flex-direction: column; align-items: center; }
.final-mark { width: 120px; height: 120px; border-radius: 28px; overflow: hidden; background: var(--bg); box-shadow: 0 0 0 1px var(--hair), 0 30px 80px rgba(245, 165, 36, .12); margin-bottom: 36px; }
.final .lede { margin-inline: auto; margin-bottom: 32px; }
.footer { border-top: 1px solid var(--hair); padding: 28px 16px 40px; text-align: center; font-size: 13px; display: grid; gap: 6px; }

/* Tablet and phone */
@media (max-width: 900px) {
  .guards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .formula-keys { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .nav .btn-sm { margin-left: auto; }
  .range-wrap { height: 46vh; }
  .hero-copy { padding-top: 7vh; }
  .story { height: 560vh; }
  .story-sticky { grid-template-columns: 1fr; grid-template-rows: auto 1fr; gap: 16px; align-content: start; padding-top: calc(var(--nav-h, 52px) + 12px); justify-items: center; }
  .story-captions { width: 100%; }
  .story-captions .eyebrow { display: none; }
  .captions { height: var(--cap-h, 170px); }
  .cap h2 { font-size: 28px; margin: 4px 0 8px; }
  .cap p { font-size: 15px; }
  .story-progress { display: none; }
  .phone { transform-origin: top center; margin: 0; }
  .formula-keys { margin-top: 44px; gap: 12px; }
  .fk p { font-size: 14px; }
  .tower-sticky { grid-template-columns: 1fr; align-content: start; gap: 20px; padding-top: calc(var(--nav-h, 52px) + 16px); }
  .tower-copy .eyebrow { margin-bottom: 8px; }
  .tower-copy .lede { font-size: 15px; margin-top: 10px; }
  .tower-copy .h2 { font-size: 28px; }
  .tower-status { margin-top: 12px; font-size: 15px; }
  .tower { gap: 8px; }
  .tb { padding: 11px 14px; font-size: 15px; }
  .guards, .ways, .stats { grid-template-columns: 1fr; }
  .card { min-height: 500px; }
  .map-stage { width: 760px; margin-inline: 16px; }
  .pop { position: fixed; left: 12px !important; right: 12px; top: auto !important; bottom: 12px; width: auto; }
  .cmp-head { display: none; }
  .cmp-row { grid-template-columns: 1fr; gap: 4px; padding: 18px 0; }
  .cmp-row span:nth-child(1) { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
  .way { padding: 28px; }
}

/* Reduced motion: no animation, show end states */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0s !important; animation-delay: 0s !important; transition-duration: 0s !important; transition-delay: 0s !important; }
  .reveal { opacity: 1; transform: none; }
}
