/* Cosmo Cleaner — site. Vanilla CSS, no external requests. Tokens follow the app's design system. */
@font-face {
  font-family: "Bricolage";
  src: url("../fonts/BricolageGrotesque.woff2") format("woff2");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}

:root {
  --bg-0: #070B14; --bg-1: #0D1119; --bg-2: #131927; --bg-3: #1A2234;
  --line-1: rgba(255,255,255,.06); --line-2: rgba(255,255,255,.12);
  --text-1: #E8ECF4; --text-2: #9AA5BA; --text-3: #7D8799;
  --accent: #8F7BFF; --accent-hover: #A596FF; --glacier: #5EEAD4; --ember: #FF6B4A; --sol: #FFC857;
  --display: "Bricolage", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
  --body: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --gutter: clamp(16px, 4.5vw, 96px);
  --instW: min(50vw, 126svh);
  --ease: cubic-bezier(.2,.8,.2,1);
  --header: 60px;
  --stageH: min(50svh, 440px);
  --blkW: 560px;
  --p: 0;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header) + 16px); }
body {
  margin: 0; background: var(--bg-0); color: var(--text-1);
  font-family: var(--body); font-size: 1.0625rem; line-height: 1.5;
  overflow-x: hidden; font-variant-numeric: tabular-nums;
}
h1, h2, h3 { font-family: var(--display); margin: 0; font-weight: 540; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(2.6rem, 6.4vw, 6.2rem); line-height: .96; font-variation-settings: "opsz" 96, "wdth" 86; letter-spacing: -.035em; }
h2 { font-size: clamp(1.9rem, 3.8vw, 3.4rem); line-height: 1.02; font-variation-settings: "opsz" 72, "wdth" 90; }
h3 { font-size: clamp(1.3rem, 2vw, 1.7rem); line-height: 1.12; font-weight: 540; letter-spacing: -.015em; font-variation-settings: "opsz" 32, "wdth" 92; }
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.skip { position: fixed; left: 16px; top: -80px; z-index: 100; background: var(--accent); color: #0B0F1A; padding: 10px 14px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 16px; }
.kicker { font-family: var(--display); color: var(--glacier); font-weight: 500; font-size: 1rem; margin-bottom: 10px; font-variation-settings: "opsz" 14, "wdth" 96; }
.mark { display: inline-block; line-height: 0; }
.mark svg { display: block; }
.wordmark { white-space: nowrap; font-family: var(--display); font-weight: 600; letter-spacing: -.01em; font-size: 1.05rem; font-variation-settings: "opsz" 20, "wdth" 96; }
.path { font-family: inherit; background: var(--bg-3); padding: .1em .4em; border-radius: 4px; font-size: .95em; overflow-wrap: anywhere; }
.note { color: var(--text-3); font-size: .82rem; margin-top: 8px; }
.tag { font-size: .74rem; color: var(--text-3); border: 1px solid var(--line-2); border-radius: 999px; padding: 1px 8px; }
.nojs { position: relative; z-index: 3; margin: calc(var(--header) + 12px) var(--gutter) 0; padding: 12px 16px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg-2); color: var(--text-2); font-size: .95rem; }
.nojs a { color: var(--text-1); }

/* stars */
#stars { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
main, footer, .top, .bar, .strip { position: relative; z-index: 1; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 20px;
  border-radius: 8px; background: var(--accent); color: #0B0F1A; text-decoration: none;
  font-family: var(--display); font-weight: 600; font-size: 1rem; letter-spacing: -.01em; white-space: nowrap;
  font-variation-settings: "opsz" 16, "wdth" 96; transition: background .16s var(--ease), transform .16s var(--ease);
}
.btn:hover { background: var(--accent-hover); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline-color: #fff; }
.btn__meta { font-weight: 500; opacity: .72; font-size: .88em; }
.btn--lg { height: 58px; padding: 0 28px; font-size: 1.15rem; }
.btn--sm { height: 36px; padding: 0 14px; font-size: .95rem; }
.btn--ghost { background: transparent; color: var(--text-1); border: 1px solid var(--line-2); }
.btn--ghost:hover { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.22); }
.btn--ghost:focus-visible { outline-color: var(--accent); }

/* header */
.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40; height: var(--header);
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 28px;
  padding: 0 var(--gutter); transition: background .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.top.scrolled { background: rgba(7,11,20,.9); border-bottom-color: var(--line-1); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.nav { display: flex; gap: 24px; justify-content: center; }
.nav a { color: var(--text-2); text-decoration: none; font-size: .95rem; padding: 6px 0; }
.nav a:hover { color: var(--text-1); }
.rail { display: flex; align-items: center; gap: 12px; width: clamp(180px, 16vw, 260px); color: var(--text-2); font-size: .82rem; --r: 0; }
.rail__track { position: relative; flex: 1; height: 2px; background: var(--line-2); border-radius: 2px; }
.rail__fill { position: absolute; inset: 0 auto 0 0; width: calc(var(--r) * 100%); background: var(--glacier); border-radius: 2px; }
.rail__mote { position: absolute; top: 50%; left: calc(var(--r) * 100%); width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px rgba(94,234,212,.35); }
.rail__label { white-space: nowrap; min-width: 7.5em; }

/* ========== pinned takes ========== */
.take { position: relative; }
.dive { height: 780svh; }
.vault { height: 250svh; }
.stage { position: sticky; top: 0; height: 100svh; overflow: hidden; z-index: 1; }
/* the stage's content area starts below the fixed header, so a pinned readout is never clipped under it */
.viz { position: absolute; inset: var(--header) 0 0; }
.copy { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
/* Blocks: CSS places each at its beat (svh maths) before the script runs; the script then sets top in px and clears the translate. */
.blk { position: absolute; left: var(--gutter); width: min(var(--blkW), calc(100vw - 2 * var(--gutter) - var(--instW) - 40px)); pointer-events: auto; top: calc(var(--bp, 0) * (100% - 100svh) + 50svh + var(--header) / 2); translate: 0 -50%; --fade: 1; }
.blk p:not(.kicker) { color: var(--text-2); max-width: 52ch; }
.step h2, .step h3 { margin-bottom: 14px; transition: color .35s var(--ease); }
.step h3 { font-size: clamp(1.9rem, 3.8vw, 3.4rem); line-height: 1.02; letter-spacing: -.02em; font-variation-settings: "opsz" 72, "wdth" 90; }
.step { opacity: calc(.32 * var(--fade)); transition: opacity .35s var(--ease); }
.step.on { opacity: var(--fade); }
.step .kicker { transition: color .35s var(--ease); }
.step:not(.on) .kicker { color: var(--text-3); }
.step--phone { display: none; }
.hero { opacity: var(--fade); }

/* hero */
.hero .lede { color: var(--text-2); font-size: clamp(1.05rem, 1.35vw, 1.25rem); margin: 22px 0 30px; max-width: 46ch; }
.cta__row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.cta__meta { color: var(--text-2); font-size: .95rem; margin-top: 14px; }
.cta__meta a, .cta__note a { color: var(--text-1); }
.cta__note { color: var(--text-3); font-size: .9rem; margin-top: 4px; }
.cue { position: absolute; top: calc(100% + 6vh); left: 0; color: var(--text-3); font-size: .9rem; display: flex; align-items: center; gap: 12px; opacity: calc(1 - clamp(0, var(--p) / .04, 1)); }
.cue__line { width: 1px; height: 44px; background: linear-gradient(var(--glacier), transparent); }

/* the planet: the first scroll pushes the camera through it */
.planet {
  position: absolute; right: calc(var(--gutter) + 2vw); top: 50%; width: min(80svh, 44vw); aspect-ratio: 1;
  translate: 0 -50%;
  --d: clamp(0, (var(--p) - .09) / .15, 1);
  transform: translate(calc(var(--d) * -10vw), calc(var(--d) * 8vh)) scale(calc(1 + var(--d) * 3.6));
  opacity: calc(1 - clamp(0, (var(--p) - .15) / .07, 1));
  will-change: transform, opacity;
}
/* a static glow instead of a filter, so the planet's mote animation does not re-filter every frame */
.planet::before { content: ""; position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(circle, rgba(143,123,255,.22), rgba(143,123,255,0) 70%); }
.planet svg { position: relative; width: 100%; height: 100%; overflow: visible; }
/* fallback planet while the script has not drawn the mark (or never will) */
.planet:empty::after { content: ""; position: absolute; inset: 23.5%; border-radius: 50%; background: radial-gradient(circle at 34% 32%, #B3A6FF, #8F7BFF 45%, #4D3FB8); }

/* the instrument: readout + field + overlays */
.instrument {
  position: absolute; right: var(--gutter); top: 50%; translate: 0 -50%; width: var(--instW);
  --asm: clamp(0, (var(--p) - .20) / .15, 1);
  --lit: clamp(0, (var(--p) - .37) / .12, 1);
  --h: clamp(0, (var(--p) - .52) / .10, 1);
  --s: clamp(0, (var(--p) - .80) / .11, 1);
  --done: clamp(0, (var(--p) - .915) / .02, 1);
  --dim: clamp(0, (var(--p) - .93) / .05, 1);
  --m: clamp(0, (var(--p) - .17) / .07, 1);
}
html:not(.js) .instrument { display: none; }
.dive .note { opacity: var(--m); }
.readout { display: grid; gap: 4px; margin-bottom: 14px; }
.readout__num { font-family: var(--display); font-weight: 620; font-size: clamp(3.2rem, 6.4vw, 6.2rem); letter-spacing: -.04em; line-height: .92; display: flex; align-items: baseline; gap: .06em; font-variation-settings: "opsz" 96, "wdth" 84; transition: color .4s var(--ease); }
.readout__num .unit { font-size: .42em; font-weight: 520; color: var(--text-2); letter-spacing: -.01em; }
.readout__label { color: var(--text-2); font-size: 1rem; }
.readout.glacier .readout__num, .readout.glacier .unit { color: var(--glacier); }
.readout--sm .readout__num { font-size: clamp(2.6rem, 5.2vw, 5.2rem); }
.dive .readout { opacity: clamp(0, (var(--p) - .19) / .05, 1); }

.field {
  position: relative; width: 100%; aspect-ratio: 1000 / 620;
  transform: scale(calc(.82 + .18 * var(--m)));
  opacity: calc(var(--m) * (1 - .45 * var(--dim)));
  transform-origin: center; will-change: transform, opacity;
}
.field svg { width: 100%; height: 100%; display: block; overflow: visible; }
.field .frame { fill: rgba(13,17,25,.55); stroke: var(--line-2); }
/* tile motion lives in Web Animations (site.js wireField); these rules are the static geometry and type only */
.tile { fill: var(--glacier); fill-opacity: .08; stroke: var(--glacier); stroke-opacity: 0; stroke-width: 1; opacity: 0; transform-box: fill-box; transform-origin: center; }
.tile.junk { stroke-width: 1.5; transform-origin: var(--o); }
.ghost { fill: none; stroke: var(--glacier); stroke-opacity: 0; stroke-width: 1; stroke-dasharray: 3 3; }
.free { fill: var(--glacier); fill-opacity: 0; }
.glabel { font-family: var(--display); font-weight: 500; font-size: 17px; fill: var(--text-1); fill-opacity: .92; pointer-events: none; opacity: 0; }
.glabel.small { font-size: 15px; fill: #fff; fill-opacity: .82; }
.jlabel { font-family: var(--body); font-size: 16px; fill: #fff; fill-opacity: .95; pointer-events: none; opacity: 0; }
.mote { fill: none; stroke-linecap: round; opacity: 0; }
.mote--glow { stroke: var(--glacier); stroke-width: 22; stroke-dasharray: 120 1000; filter: blur(8px); }
.mote--tail { stroke: var(--glacier); stroke-width: 4; stroke-dasharray: 120 1000; }
.mote--head { stroke: #fff; stroke-width: 9; stroke-dasharray: 7 1000; }

/* what-if console over the map: the one glass panel on the page */
.whatif {
  position: absolute; right: 2%; top: 50%; translate: 0 -50%; width: min(372px, 96%);
  background: rgba(19,25,39,.86); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--line-2); border-radius: 12px; padding: 14px 16px 16px; box-shadow: 0 16px 48px rgba(0,0,0,.45);
  --v: calc(clamp(0, (var(--p) - .645) / .03, 1) * clamp(0, (.80 - var(--p)) / .025, 1));
  opacity: var(--v); transform: translateY(calc((1 - var(--v)) * 14px)); z-index: 2;
  font-size: .86rem;
}
.whatif__head { display: flex; justify-content: space-between; align-items: center; font-family: var(--display); font-weight: 600; font-size: .95rem; margin-bottom: 8px; }
.whatif__rows { list-style: none; margin: 0; padding: 0; }
.whatif__rows li { display: grid; grid-template-columns: 16px 1fr auto auto; gap: 10px; align-items: center; padding: 6px 0; border-top: 1px solid var(--line-1); }
.whatif__rows li b { font-weight: 600; }
.whatif__rows li em { font-style: normal; color: var(--text-2); min-width: 5.2em; text-align: right; }
.whatif__rows li.off { color: var(--text-3); }
.whatif__rows li.whatif__more { display: none; color: var(--text-3); }
.chk { width: 15px; height: 15px; border-radius: 4px; border: 1px solid var(--line-2); display: inline-block; position: relative; }
.chk.on { background: var(--accent); border-color: var(--accent); }
.chk.on::after { content: ""; position: absolute; left: 4px; top: 1px; width: 5px; height: 8px; border: solid #0B0F1A; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.whatif__impact { color: var(--text-2); padding: 10px 0 12px; border-top: 1px solid var(--line-1); margin-top: 2px; }
.whatif__actions { display: flex; gap: 8px; justify-content: flex-end; }
.chip { display: inline-block; padding: 7px 12px; border-radius: 8px; border: 1px solid var(--line-2); font-size: .9rem; font-family: var(--display); font-weight: 500; }
.chip--go { background: var(--accent); color: #0B0F1A; border-color: transparent; font-weight: 600; }
.chip--sm { padding: 4px 10px; font-size: .8rem; }

/* job strip, drive bar, toast (after confirm) */
.job {
  position: absolute; left: 2.5%; right: 2.5%; bottom: 3%; display: grid; gap: 8px; z-index: 2; font-size: .86rem;
  --jv: clamp(0, (var(--p) - .795) / .02, 1); opacity: var(--jv); transform: translateY(calc((1 - var(--jv)) * 10px));
}
.job__strip, .job__toast { grid-area: 1 / 1; display: flex; align-items: center; gap: 12px; background: rgba(19,25,39,.96); border: 1px solid var(--line-2); border-radius: 10px; padding: 9px 14px; }
.job__strip { opacity: calc(1 - var(--done)); }
.job__toast { opacity: var(--done); }
.job__text { font-family: var(--display); font-weight: 600; min-width: 8.5em; }
.job__bar { position: relative; flex: 1; height: 6px; background: var(--line-2); border-radius: 3px; }
.job__fill { position: absolute; inset: 0 auto 0 0; width: calc(var(--s) * 100%); background: var(--accent); border-radius: 3px; }
.job__mote { position: absolute; top: 50%; left: calc(var(--s) * 100%); width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 2px rgba(94,234,212,.35); }
.job__drive { display: flex; align-items: center; gap: 12px; color: var(--text-2); background: rgba(13,17,25,.9); border: 1px solid var(--line-1); border-radius: 10px; padding: 8px 14px; }
.job__track { flex: 1; display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: var(--bg-3); }
.job__used { flex: 0 0 68.9%; background: #4A5568; }
.job__junk { flex: 0 0 calc(1.6% * (1 - var(--s))); min-width: 0; background: var(--ember); }
.job__free { flex: 1; background: var(--glacier); }
.ring { width: 28px; height: 28px; flex: 0 0 auto; }
.ring svg { display: block; width: 100%; height: 100%; }
.ring__arc { stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--done) * 100); }
.job__undo { margin-left: auto; color: var(--accent-hover); font-weight: 600; font-family: var(--display); }

/* download strips */
.strip { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding: 34px var(--gutter); border-top: 1px solid var(--line-1); border-bottom: 1px solid var(--line-1); background: rgba(13,17,25,.55); }
.strip p { color: var(--text-1); flex: 1 1 220px; font-family: var(--display); font-size: 1.25rem; font-weight: 500; letter-spacing: -.01em; font-variation-settings: "opsz" 24, "wdth" 92; }
.strip__meta { color: var(--text-2); font-size: .95rem; }
.strip__meta a { color: var(--text-1); }

/* window frames for real screenshots */
.win { position: relative; margin: 0; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; background: var(--bg-2); box-shadow: 0 30px 90px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.05); }
.win img { display: block; width: 100%; height: auto; }
.win figcaption { position: relative; z-index: 1; background: var(--bg-2); padding: 11px 16px; color: var(--text-2); font-size: .9rem; border-top: 1px solid var(--line-1); }
.cap__tag { display: inline-block; margin-left: 6px; font-size: .74rem; color: var(--text-3); border: 1px solid var(--line-2); border-radius: 999px; padding: 0 8px; vertical-align: 1px; }
.win::before { content: ""; position: absolute; top: 0; bottom: 0; left: 100%; width: 2px; background: var(--glacier); box-shadow: 0 0 14px 2px rgba(94,234,212,.8); opacity: 0; pointer-events: none; }
.win--crop { border-color: rgba(94,234,212,.22); }
.win--crop::after { content: "detail"; position: absolute; top: 10px; right: 10px; z-index: 1; font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; color: var(--text-2); background: rgba(7,11,20,.7); border: 1px solid var(--line-2); border-radius: 999px; padding: 2px 8px; }

/* ========== the real map ========== */
.real { padding: 14vh var(--gutter) 6vh; max-width: 1320px; margin: 0 auto; }
.real__head { max-width: 62ch; margin-bottom: 44px; }
.real__head p:not(.kicker) { color: var(--text-2); margin-top: 14px; }
.real__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: start; }
.win--b { margin-top: 14%; }

/* ========== vault ========== */
/* the vault (readout at rest, empty box) is on screen as its chapter scrolls in, so there is no empty star field before the pin */
.instrument--vault { width: min(50vw, calc(100svh - var(--header))); }
.vault__svg { width: 100%; height: auto; display: block; overflow: hidden; }
.vt {
  --q: clamp(0, (var(--p) - .06 - var(--k) * .45) / .28, 1);
  x: calc(var(--x) * 1px); width: calc(var(--w) * 1px);
  fill: color-mix(in srgb, var(--ember) calc((1 - var(--q)) * 100%), #6B7590);
  transform: translateY(calc(var(--q) * var(--dy) * 1px));
  opacity: .92;
}
.vt.r1 { --dy: 270; } .vt.r2 { --dy: 382; }
.vault__arc { --r: clamp(0, (var(--p) - .5) / .35, 1); stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--r) * 100); }
.vault__days { font-family: var(--display); font-size: 22px; font-weight: 600; fill: var(--text-1); }
.vault__daysl { font-size: 12px; fill: var(--text-2); }
.vault__label { font-family: var(--display); font-size: 18px; font-weight: 600; fill: var(--text-1); }
.vault__sub { font-size: 15px; fill: var(--text-2); }
.vault__restore { --r: clamp(0, (var(--p) - .6) / .2, 1); opacity: var(--r); }
.vault__restore text { font-family: var(--display); font-size: 15px; font-weight: 600; fill: var(--text-1); }
.vault__journal { --r: clamp(0, (var(--p) - .7) / .2, 1); opacity: var(--r); }
.vault__journal text { font-size: 13.5px; fill: var(--text-2); }
.jl--short { display: none; }

/* ========== instruments ========== */
.inst { padding: 14vh var(--gutter) 6vh; max-width: 1320px; margin: 0 auto; }
.inst__head { max-width: 62ch; margin-bottom: 44px; }
.inst__head p:not(.kicker) { color: var(--text-2); margin-top: 14px; }
.inst__head--split { max-width: none; display: grid; grid-template-columns: minmax(0, 62ch) auto; justify-content: space-between; align-items: end; gap: 24px 48px; }
.inst__head--split .readout { margin-bottom: 4px; }
.inst__lead { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 40px; align-items: start; }
.inst__side { display: grid; gap: 28px; align-content: start; }
.readout--still .num { display: inline-block; }
.gauges { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); font-size: .95rem; }
.gauges li { display: grid; grid-template-columns: 8.5em 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line-1); }
.gauges li span:first-child { font-family: var(--display); font-weight: 600; color: var(--text-1); font-variation-settings: "opsz" 16, "wdth" 96; }
.gauges li span + span { color: var(--text-2); }
.win--wide { margin-top: 8px; }
.inst__row { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 48px; align-items: center; margin-top: 72px; }
.inst__body p { color: var(--text-2); margin-top: 10px; }
.inst__body h3 + p + .tiers { margin: 18px 0 32px; }
.tiers { display: flex; gap: 6px; max-width: 420px; }
.tiers span { flex: 1; text-align: center; font-size: .82rem; padding: 8px 4px; border-radius: 8px; border: 1px solid var(--line-2); color: var(--text-3); }
.tiers .on { background: rgba(143,123,255,.16); border-color: var(--accent); color: var(--text-1); }

/* ========== control + Cosmo ========== */
.ctl { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; padding: 12vh var(--gutter) 8vh; max-width: 1320px; margin: 0 auto; }
.ctl__col > p:not(.kicker) { color: var(--text-2); margin: 14px 0 26px; max-width: 56ch; }

/* ========== privacy: zero ========== */
.zero { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 6vw; align-items: center; padding: 14vh var(--gutter); max-width: 1320px; margin: 0 auto; }
.zero__glyph { font-family: var(--display); font-weight: 760; font-size: clamp(200px, 28vw, 520px); line-height: .78; letter-spacing: -.06em; color: var(--text-1); font-variation-settings: "opsz" 96, "wdth" 80; }
.zero__list { list-style: none; padding: 0; margin: 18px 0 22px; display: flex; flex-wrap: wrap; gap: 6px 0; color: var(--text-1); font-family: var(--display); font-size: clamp(1.1rem, 1.6vw, 1.4rem); font-weight: 500; font-variation-settings: "opsz" 24, "wdth" 92; }
.zero__list li { white-space: nowrap; }
.zero__list li:not(:first-child)::before { content: "·"; color: var(--glacier); margin: 0 .55em; }
.zero__copy > p:not(.kicker) { color: var(--text-2); max-width: 56ch; }
.zero__copy > p + p:not(.cta__line) { margin-top: 12px; }
.cta__line { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 26px; }

/* ========== download pad: the calm end state ========== */
.pad {
  position: relative; padding: 20vh var(--gutter) 12vh; border-top: 1px solid var(--line-1);
  background: linear-gradient(var(--bg-0), rgba(7,11,20,.65) 30%, rgba(7,11,20,.65) 80%, var(--bg-0));
}
.pad__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 64px; max-width: 1320px; margin: 0 auto; }
.pad__planet { position: absolute; left: 50%; top: -84px; translate: -50% 0; width: 168px; aspect-ratio: 1; opacity: .95; pointer-events: none; }
/* a bg-0 disc behind the mark, so the section's horizon line stops at the planet instead of crossing it */
.pad__planet::before { content: ""; position: absolute; inset: 3%; border-radius: 50%; background: var(--bg-0); }
.pad__planet svg { position: relative; width: 100%; height: 100%; overflow: visible; }
.pad__main h2 { margin-bottom: 18px; }
.pad__lede { color: var(--text-2); max-width: 46ch; margin-bottom: 28px; }
.pad__meta { color: var(--text-2); margin-top: 12px; }
.facts { margin: 28px 0 0; display: grid; gap: 12px; }
.facts div { display: grid; grid-template-columns: 90px 1fr; gap: 12px; }
.facts dt { color: var(--text-3); }
.facts dd { margin: 0; color: var(--text-2); }
.facts a { color: var(--text-1); }
.facts__note { color: var(--text-3); font-size: .9em; }
/* the hash takes a full-width row in a slightly smaller tabular figure; it breaks only at its 16-character groups (wbr), balanced when it wraps */
.facts .facts__wide { grid-template-columns: 1fr; gap: 4px; }
.hash { display: block; font-variant-numeric: tabular-nums; font-size: .9em; letter-spacing: .04em; color: var(--text-1); overflow-wrap: normal; word-break: keep-all; text-wrap: balance; }
.hash__file { display: inline-block; margin-top: 4px; }
.pad h3 { margin-top: 32px; margin-bottom: 12px; font-size: 1.2rem; }
.pad__side h3:first-child { margin-top: 0; }
.plain { margin: 0; padding-left: 1.1em; color: var(--text-2); display: grid; gap: 8px; }
.howto { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 16px; color: var(--text-2); }
.howto li { display: grid; grid-template-columns: 32px 1fr; gap: 14px; align-items: start; }
.howto__n { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font-family: var(--display); font-weight: 600; color: var(--text-1); font-size: .95rem; }
.howto__n--warn { border-color: var(--sol); color: var(--sol); background: rgba(255,200,87,.1); }
.howto strong { color: var(--text-1); font-weight: 600; }
.exe { display: inline-block; vertical-align: middle; width: 28px; height: 28px; margin: 0 2px; }
.verify { color: var(--text-2); font-size: .95rem; }
.faq { border-top: 1px solid var(--line-1); }
.faq details { border-bottom: 1px solid var(--line-1); }
.faq summary { cursor: pointer; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--text-3); font-family: var(--display); font-size: 1.2rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq summary:focus-visible { outline-offset: -2px; }
.faq p { color: var(--text-2); padding: 0 0 16px; max-width: 60ch; }

/* footer, mobile bar */
.foot { padding: 40px var(--gutter) 60px; border-top: 1px solid var(--line-1); color: var(--text-2); display: grid; gap: 10px; font-size: .95rem; background: var(--bg-0); }
.foot__brand { display: flex; align-items: center; gap: 10px; color: var(--text-1); }
.foot__v { color: var(--text-3); }
.foot__small { color: var(--text-3); font-size: .85rem; }
.bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); display: none; background: rgba(7,11,20,.94); border-top: 1px solid var(--line-1); transform: translateY(100%); transition: transform .3s var(--ease); }
.bar .btn { width: 100%; justify-content: center; }
.bar.show { transform: none; }

/* ========== responsive ========== */
@media (max-width: 1240px) { .rail { display: none; } .top { grid-template-columns: auto 1fr auto; } }
@media (max-width: 1200px) {
  .jlabel, .glabel.small { display: none; }
  /* the preview panel docks to the bottom of the map and drops its smallest rows, so the readout above stays readable */
  .whatif { top: auto; bottom: -2%; translate: none; width: min(340px, 96%); padding: 12px 14px 14px; }
  .whatif__rows li:nth-child(n+5):not(.whatif__more) { display: none; }
  .whatif__rows li.whatif__more { display: grid; }
}
@media (max-width: 960px) {
  .nav { display: none; }
  .top { grid-template-columns: 1fr auto; }
  .real__grid, .ctl, .pad__grid, .inst__lead, .inst__row, .inst__head--split { grid-template-columns: 1fr; }
  .inst__head--split { justify-content: start; }
  .inst__row { gap: 24px; margin-top: 56px; }
  .inst__row--rev { display: flex; flex-direction: column; }
  .win--b { margin-top: 0; }
  .zero { grid-template-columns: 1fr; gap: 12px; }
  .zero__glyph { font-size: clamp(160px, 44vw, 320px); }
}
@media (max-width: 900px) and (min-height: 501px) {
  /* phone pattern: the stage pins under the header, copy scrolls beneath it */
  .dive { height: 640svh; }
  .vault { height: 220svh; }
  h1 { font-size: clamp(2.4rem, 12vw, 3.6rem); }
  /* the stage is see-through during the descent (star streaks run behind the planet) and turns solid as the map assembles */
  .stage { height: var(--stageH); z-index: 3; background: rgb(7 11 20 / var(--sb, 1)); }
  .dive .stage { --sb: clamp(0, (var(--p) - .16) / .06, 1); }
  .viz { top: 0; }
  .copy { z-index: 2; }
  .blk { left: var(--gutter); right: var(--gutter); width: auto; top: calc(var(--bp, 0) * (100% - 100svh) + var(--stageH) + 50svh - var(--stageH) / 2); }
  .step--phone { display: block; }
  .planet { right: auto; left: 50%; top: calc(var(--header) + (var(--stageH) - var(--header)) / 2); width: min(64vw, calc(var(--stageH) - 120px)); translate: -50% -50%; }
  .planet { transform: translate(0, calc(var(--d) * -6vh)) scale(calc(1 + var(--d) * 3.6)); }
  .instrument, .instrument--vault { left: var(--gutter); right: var(--gutter); top: calc(var(--header) + 6px); translate: none; width: auto; }
  .readout { margin-bottom: 8px; }
  .readout__num, .readout--sm .readout__num { font-size: clamp(2.4rem, 12vw, 3.4rem); }
  .readout__label { font-size: .88rem; }
  /* 176px = header + readout + note above and below the picture, so the note is never clipped by the stage */
  .field { width: min(100%, calc((var(--stageH) - 176px) * 1.613)); margin: 0 auto; }
  .instrument--vault .vault__svg { width: min(100%, calc((var(--stageH) - 176px) * 1.474)); margin: 0 auto; }
  .vault__label { font-size: 24px; } .vault__sub { font-size: 19px; } .vault__restore text { font-size: 19px; } .vault__journal text { font-size: 18px; }
  .vault__days { font-size: 26px; } .vault__daysl { font-size: 14px; }
  .jl--long { display: none; } .jl--short { display: block; }
  .glabel { font-size: 30px; } .glabel.small, .jlabel { display: none; }
  /* preview: three largest rows under the readout, never over it */
  .whatif { left: 0; right: 0; top: 92px; bottom: auto; translate: none; width: auto; padding: 10px 12px 12px; font-size: .8rem; }
  .whatif__rows li { padding: 4px 0; }
  .whatif__rows li:nth-child(n+4):not(.whatif__more) { display: none; }
  .whatif__rows li.whatif__more { display: grid; }
  .job { left: 0; right: 0; bottom: 0; gap: 6px; font-size: .78rem; }
  .job__text { min-width: 7em; }
  .job__drive { display: none; }
  .note { font-size: .74rem; margin-top: 6px; }
  .hero .lede { margin: 14px 0 20px; font-size: 1rem; }
  .cta__row { gap: 10px; }
  .btn--lg { height: 52px; padding: 0 20px; font-size: 1.05rem; }
  .cue { display: none; }
  .strip { padding: 26px 16px; gap: 14px; }
}
@media (max-width: 900px) and (min-height: 501px) and (max-height: 760px) { :root { --stageH: min(56svh, 460px); } }
@media (max-width: 900px) and (max-height: 500px) {
  /* landscape phone: the desktop side-by-side take at a smaller scale */
  :root { --instW: min(46vw, 118svh); --blkW: 420px; }
  .instrument--vault { width: min(44vw, 100svh); }
  h1 { font-size: clamp(1.8rem, 6vw, 2.6rem); }
  .step h3, .step h2 { font-size: clamp(1.3rem, 4.4vw, 2rem); }
  .blk p:not(.kicker) { font-size: .9rem; }
  .hero .lede { margin: 10px 0 14px; font-size: .9rem; }
  .btn--lg { height: 44px; padding: 0 18px; font-size: .95rem; }
  .cue, .cta__note, .cta__row .btn--ghost { display: none; }
  .readout__num, .readout--sm .readout__num { font-size: clamp(1.8rem, 6vw, 2.6rem); }
  .readout__label { font-size: .8rem; }
  .readout { margin-bottom: 6px; }
  .note { display: none; }
  .whatif { top: auto; bottom: 0; translate: none; width: min(300px, 96%); padding: 8px 10px 10px; font-size: .74rem; }
  .whatif__rows li:nth-child(n+4):not(.whatif__more) { display: none; }
  .whatif__rows li.whatif__more { display: grid; }
  .job { font-size: .74rem; } .job__drive { display: none; }
  .vault__label { font-size: 22px; } .vault__sub { font-size: 17px; } .vault__restore text { font-size: 17px; } .vault__journal text { font-size: 16px; }
  .jl--long { display: none; } .jl--short { display: block; }
}
@media (max-width: 720px) {
  .bar { display: block; }
  body:has(.bar.show) { padding-bottom: 72px; }
  body:has(.bar.show) .top .btn--sm { display: none; }
  html { scroll-padding-bottom: 88px; }
  /* the bar carries the action on phones; the inline strips become plain links */
  .strip .btn, .zero .cta__line .btn { height: auto; padding: 0; background: none; color: var(--accent-hover); text-decoration: underline; text-underline-offset: 3px; }
  .strip .btn .btn__meta, .zero .cta__line .btn .btn__meta { color: var(--text-2); opacity: 1; }
  .facts div { grid-template-columns: 1fr; gap: 2px; }
  .real, .inst, .ctl, .zero { padding-top: 10vh; }
  .pad { padding-top: 16vh; }
  .zero__list { font-size: 1.05rem; display: grid; grid-template-columns: repeat(2, max-content); gap: 8px 28px; }
  .zero__list li:nth-child(n)::before { content: "·"; color: var(--glacier); margin: 0 .45em 0 0; }
}
@media (min-width: 1800px) { :root { font-size: 19px; --gutter: clamp(48px, 6vw, 140px); --blkW: 660px; } .real, .inst, .ctl, .zero, .pad__grid { max-width: 1680px; } }
@media (min-width: 2600px) { :root { font-size: 25px; --gutter: clamp(80px, 7vw, 220px); --blkW: 880px; } .real, .inst, .ctl, .zero, .pad__grid { max-width: 2300px; } .win { border-radius: 18px; } .whatif { width: min(560px, 96%); } }

/* ========== scroll-driven CSS animations where supported ========== */
@supports (animation-timeline: view()) {
  .pad__planet { animation: rise linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
  @keyframes rise { from { transform: translateY(90px) scale(.55); opacity: 0; } to { transform: none; opacity: .95; } }
  .win img { animation: reveal linear both; animation-timeline: view(); animation-range: entry 8% entry 62%; }
  @keyframes reveal { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
  .win::before { animation: edge linear both; animation-timeline: view(); animation-range: entry 8% entry 64%; }
  @keyframes edge { from { left: 0; opacity: 1; } 92% { opacity: 1; } to { left: 100%; opacity: 0; } }
}
@supports not (animation-timeline: view()) {
  .win img { clip-path: inset(0 100% 0 0); transition: clip-path 1.1s var(--ease); }
  .win.is-in img { clip-path: inset(0 0 0 0); }
  html:not(.js) .win img { clip-path: none; }
}

/* ========== reduced motion: the takes become stills ========== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0s !important; animation: none !important; }
  .win img { clip-path: none !important; }
  .win::before { display: none; }
  .pad__planet { transform: none; opacity: .95; }
}
.rm .take { height: auto; }
.rm .stage { position: static; height: auto; overflow: visible; background: none; }
.rm .viz { position: static; }
.rm .planet { position: static; translate: none; transform: none; opacity: 1; width: min(60vw, 320px); margin: 8px auto 24px; }
.rm .instrument, .rm .instrument--vault { position: static; translate: none; width: min(100%, 880px); margin: 0 auto; padding: 0 var(--gutter); opacity: 1; }
.rm .dive { --p: .62; }
.rm .vault { --p: .95; }
.rm .field { transform: none; opacity: 1; width: 100%; }
.rm .whatif { position: static; translate: none; transform: none; opacity: 1; width: min(100%, 420px); margin: 16px auto 0; }
.rm .whatif__rows li:nth-child(n) { display: grid; } .rm .whatif__rows li.whatif__more { display: none; }
.rm .job { display: none; }
.rm .cue { display: none; }
.rm .copy { position: static; pointer-events: auto; display: grid; gap: 48px; padding: 48px var(--gutter) 40px; max-width: 880px; margin: 0 auto; }
.rm .blk { position: static !important; width: auto; opacity: 1; translate: none; }
.rm .step { opacity: 1; }
.rm .step--phone { display: none; }
.rm .step:not(.on) .kicker { color: var(--glacier); }
.rm .instrument--vault .vault__svg { width: 100%; }
/* the hero is moved above the stage by the script under reduced motion, so the headline and the download come first */
.rm .hero { position: static !important; padding: calc(var(--header) + 48px) var(--gutter) 24px; max-width: 880px; margin: 0 auto; width: auto; box-sizing: content-box; }
.rm .dive > .hero + .stage .planet { margin-top: 0; }
