/* ==========================================================================
   critical mass — black, white, and one cold accent that heats to white.
   Sibling of coalescence: Geist / Geist Mono / Instrument Serif, ASCII field.
   ========================================================================== */
:root, :root[data-theme="dark"] {
  --bg: #000;
  --bg-2: #060607;
  --ink: #f4f2ee;
  --ink-2: rgba(244, 242, 238, 0.64);
  --ink-3: rgba(244, 242, 238, 0.4);
  --ink-4: rgba(244, 242, 238, 0.16);
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.18);
  --panel: rgba(7, 7, 8, 0.86);
  --panel-solid: #070708;
  --accent: #4da3ff;
  --accent-2: #a9d1ff;
  --accent-soft: rgba(77, 163, 255, 0.12);
  --hot: #fbfcff;
  --cool: #8f99ab;
  --on-ink: #000;
  --shadow-text: 0 0 28px #000, 0 0 10px rgba(0, 0, 0, 0.9);
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f2f0ea;
  --bg-2: #eae7df;
  --ink: #111113;
  --ink-2: rgba(17, 17, 19, 0.68);
  --ink-3: rgba(17, 17, 19, 0.46);
  --ink-4: rgba(17, 17, 19, 0.16);
  --line: rgba(17, 17, 19, 0.1);
  --line-2: rgba(17, 17, 19, 0.2);
  --panel: rgba(242, 240, 234, 0.9);
  --panel-solid: #f2f0ea;
  --accent: #1256d6;
  --accent-2: #0b3a95;
  --accent-soft: rgba(18, 86, 214, 0.1);
  --hot: #111113;
  --cool: #6b7383;
  --on-ink: #f2f0ea;
  --shadow-text: 0 0 24px var(--bg), 0 0 8px var(--bg);
  color-scheme: light;
}
:root {
  --sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", monospace;
  --serif: "Instrument Serif", ui-serif, Georgia, serif;
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --rail: 232px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; min-width: 1180px;
  background: var(--bg); color: var(--ink);
  font: 400 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background .5s var(--ease), color .5s var(--ease);
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
sub { font-size: .7em; vertical-align: -0.25em; }
::selection { background: var(--accent); color: var(--on-ink); }
:focus-visible { outline: 1px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }

/* ---------- background field ---------- */
.field, .bloom, .vignette { position: fixed; inset: 0; pointer-events: none; }
.field { z-index: 0; width: 100vw; height: 100vh; }
.bloom { z-index: 1; width: 100vw; height: 100vh; filter: blur(16px) saturate(1.4) brightness(1.8); mix-blend-mode: screen; opacity: .8; }
.vignette { z-index: 2; background: radial-gradient(ellipse at 60% 50%, transparent 55%, rgba(0,0,0,.7) 100%); }
:root[data-theme="light"] .bloom, :root[data-theme="light"] .vignette { display: none; }
body[data-dim] .field { opacity: .38; }
body[data-dim] .bloom { opacity: .3; }

/* ---------- top bar ---------- */
.top {
  position: fixed; z-index: 30; top: 0; left: 0; right: 0; height: 84px;
  display: flex; align-items: center; justify-content: space-between; padding: 0 32px;
  pointer-events: none;
}
.top > * { pointer-events: auto; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand .mark {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line-2); font: 500 15px var(--mono); color: var(--accent);
  transition: transform .8s var(--ease), border-color .3s;
}
.brand:hover .mark { transform: rotate(180deg) scale(.86); border-color: var(--accent); }
.brand .word { font: 600 21px/1 var(--sans); letter-spacing: -0.045em; }
.top-r { display: flex; align-items: center; gap: 10px; }
.demo-chip {
  height: 26px; display: inline-flex; align-items: center; padding: 0 10px; border-radius: 999px;
  font: 500 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-3); border: 1px dashed var(--line-2);
}
.icon-btn {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line-2); background: var(--panel); color: var(--ink-2);
  transition: color .2s, border-color .2s;
}
.icon-btn:hover { color: var(--ink); border-color: var(--ink-3); }
.th-glyph { width: 14px; height: 14px; border-radius: 50%; border: 1px solid currentColor; background: linear-gradient(90deg, currentColor 50%, transparent 50%); transition: transform .6s var(--ease); }
:root[data-theme="light"] .th-glyph { transform: rotate(180deg); }
.ca-pill, .foot-ca {
  display: inline-flex; align-items: center; gap: 10px; height: 38px; padding: 0 14px 0 5px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--panel); font: 500 12px var(--mono); color: var(--ink-2);
}
.ca-pill:hover { color: var(--ink); }
.ca-pill .k, .foot-ca .k { display: inline-grid; place-items: center; height: 28px; padding: 0 10px; border-radius: 999px; background: var(--accent); color: var(--on-ink); font-size: 10px; letter-spacing: .1em; }
.connect {
  height: 38px; padding: 0 18px; border-radius: 999px; background: var(--ink); color: var(--on-ink);
  font: 500 13.5px var(--sans); display: inline-flex; align-items: center; gap: 9px;
  transition: transform .25s var(--ease), background .25s;
}
.connect:hover { transform: translateY(-1px); }
.connect.connected { background: transparent; color: var(--ink); border: 1px solid var(--line-2); font-family: var(--mono); font-size: 12.5px; }
.connect.connected::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }

/* ---------- the sequence rail ---------- */
.rail {
  position: fixed; z-index: 25; left: 32px; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 4px; padding-left: 22px;
  --m: 0px;
}
.rail-line { position: absolute; left: 0; top: 6px; bottom: 6px; width: 1px; background: var(--line-2); }
.rail-line i {
  position: absolute; left: -4px; top: calc(var(--m) - 10px); width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft), 0 0 18px var(--accent);
  transition: top .7s var(--ease);
}
.rail.none .rail-line i { display: none; }
.rail a {
  display: grid; grid-template-columns: 26px auto; grid-template-rows: auto 0fr; column-gap: 8px;
  padding: 7px 0; font: 500 11.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3);
  transition: color .25s, grid-template-rows .4s var(--ease);
}
.rail a b { font-weight: 500; color: var(--ink-4); transition: color .25s; }
.rail a .s { grid-column: 2; overflow: hidden; font-size: 10.5px; color: var(--accent); letter-spacing: .14em; opacity: 0; transition: opacity .3s; }
.rail a:hover, .rail a[aria-current] { color: var(--ink); grid-template-rows: auto 1fr; }
.rail a:hover .s, .rail a[aria-current] .s { opacity: 1; }
.rail a[aria-current] b { color: var(--accent); }

/* ---------- layout ---------- */
main { position: relative; z-index: 3; }
.page { padding: 150px 64px 120px calc(var(--rail) + 40px); max-width: 1640px; }
.section { padding: 120px 0 0; }

/* ---------- type ---------- */
.kicker, .label, .th, dt { font: 500 11.5px var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); }
.kicker { display: inline-flex; gap: 12px; align-items: center; margin: 0 0 28px; }
.kicker i { font-style: normal; color: var(--accent); }
.kicker::after { content: ""; width: 48px; height: 1px; background: var(--line-2); }
.display { margin: 0; font-weight: 450; letter-spacing: -0.06em; line-height: .88; font-size: clamp(84px, 9.2vw, 168px); }
.display em { letter-spacing: -0.03em; padding-right: .05em; }
.title { margin: 0; font-weight: 450; letter-spacing: -0.05em; line-height: .94; font-size: clamp(56px, 5.8vw, 104px); }
.title-s { margin: 0; font-weight: 450; letter-spacing: -0.04em; line-height: 1; font-size: 40px; }
.lede { max-width: 520px; font-size: 18.5px; line-height: 1.55; color: var(--ink-2); margin: 32px 0 0; }
.display, .title, .lede, .kicker { text-shadow: var(--shadow-text); }
.mono { font-family: var(--mono); }
.dim { color: var(--ink-3); }
.hot { color: var(--accent); font-weight: 500; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 52px; padding: 0 26px; border-radius: 999px;
  font-size: 15px; font-weight: 500; letter-spacing: -0.005em; white-space: nowrap;
  border: 1px solid transparent;
  transition: background .25s var(--ease), color .25s, border-color .25s, transform .25s var(--ease), box-shadow .3s;
}
.btn:active { transform: scale(.98); }
.btn-solid { background: var(--ink); color: var(--on-ink); }
.btn-solid:hover { box-shadow: 0 0 0 1px var(--line-2), 0 0 50px -8px var(--accent); }
.btn-solid .arr { transition: transform .3s var(--ease); }
.btn-solid:hover .arr { transform: translateX(3px); }
.btn-line { border-color: var(--line-2); color: var(--ink); }
.btn-line:hover { border-color: var(--ink); }
.btn-accent { background: var(--accent); color: var(--on-ink); }
.btn-accent:hover { box-shadow: 0 0 60px -6px var(--accent); }
.btn[disabled] { opacity: .35; cursor: not-allowed; transform: none; box-shadow: none; }
.btn-row { display: flex; gap: 12px; margin-top: 44px; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }

/* ==========================================================================
   HOME
   ========================================================================== */
.hero { position: relative; height: 100vh; min-height: 760px; }
.hero-copy { position: absolute; z-index: 4; left: calc(var(--rail) + 40px); bottom: 15vh; max-width: 760px; }
.hud {
  position: absolute; z-index: 4; right: 6vw; top: 22vh; width: 232px; padding: 12px 14px 13px;
  font: 500 11px/1.65 var(--mono); color: var(--ink-2);
  background: var(--panel); border: 1px solid var(--line-2); backdrop-filter: blur(4px);
}
.hud::before, .hud::after, .corner::before, .corner::after { content: ""; position: absolute; width: 7px; height: 7px; border-color: var(--ink); border-style: solid; }
.hud::before, .corner::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.hud::after, .corner::after { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }
.hud-h { display: flex; justify-content: space-between; padding-bottom: 6px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.hud-h b { color: var(--ink); font-weight: 600; }
.hud-r { display: flex; justify-content: space-between; }
.hud-r span:last-child { color: var(--ink); font-variant-numeric: tabular-nums; }
.hud-flag { margin-top: 8px; padding: 3px 0; text-align: center; letter-spacing: .14em; text-transform: uppercase; border: 1px solid var(--line-2); color: var(--ink-3); transition: all .3s; }
.hud.crit { border-color: var(--accent); }
.hud.crit .hud-flag { background: var(--accent); color: var(--on-ink); border-color: var(--accent); animation: blink .45s steps(1) 4; }
@keyframes blink { 50% { opacity: 0; } }
.scroll-cue { position: absolute; z-index: 4; right: 64px; bottom: 44px; font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); display: flex; align-items: center; gap: 12px; }
.scroll-cue::after { content: ""; width: 1px; height: 40px; background: linear-gradient(var(--ink-3), transparent); animation: drip 2.2s var(--ease) infinite; transform-origin: top; }
@keyframes drip { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

.home-body { position: relative; z-index: 3; background: linear-gradient(to bottom, transparent, var(--bg) 160px); }

/* the sequence: four stages, each with its own star */
.stages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 64px; }
.stage { position: relative; background: var(--bg); padding: 0 0 30px; cursor: default; }
.stage canvas { display: block; width: 100%; height: 250px; }
.stage-n { position: absolute; top: 18px; left: 22px; font: 500 11px var(--mono); color: var(--accent); letter-spacing: .08em; }
.stage-n.cool { color: var(--cool); }
.stage h3 { margin: 6px 24px 10px; font-weight: 450; font-size: 28px; letter-spacing: -0.035em; }
.stage p { margin: 0 24px; color: var(--ink-2); font-size: 15px; max-width: 300px; }
.stage .arrow { position: absolute; right: -9px; top: 116px; z-index: 2; width: 17px; height: 17px; display: grid; place-items: center; font: 12px var(--mono); color: var(--ink-3); background: var(--bg); border: 1px solid var(--line-2); border-radius: 50%; }
.stage.or .arrow { display: none; }
.stage.or { background: var(--bg-2); }
.stage.or h3 { color: var(--ink-2); }

.split-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.split-head .lede { margin-top: 0; max-width: 420px; }
.row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 56px; }

.manifesto { display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px; align-items: start; }
.manifesto .big { font-size: 44px; line-height: 1.08; letter-spacing: -0.04em; font-weight: 400; margin: 0; }
.manifesto .big .dim { color: var(--ink-4); }
.checks { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.checks div { background: var(--bg); padding: 18px 20px; display: grid; grid-template-columns: 26px 1fr; gap: 10px; font-size: 15.5px; color: var(--ink-2); }
.checks div b { font: 500 13px var(--mono); color: var(--accent); }
.checks div strong { color: var(--ink); font-weight: 500; }

/* ==========================================================================
   CARDS
   ========================================================================== */
.card {
  position: relative; display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px;
  background: var(--panel-solid); overflow: hidden;
  transition: border-color .3s, transform .5s var(--ease), box-shadow .5s;
}
.card:hover { border-color: var(--line-2); transform: translateY(-3px); box-shadow: 0 30px 60px -40px var(--accent); }
.card[data-status="critical"] { border-color: var(--accent); }
.card[data-status="cooled"] { opacity: .6; }
.card-viz { position: relative; height: 196px; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 50% 52%, var(--accent-soft), transparent 60%); }
.card-viz canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.card-state, .card-id-n { position: absolute; top: 12px; font: 500 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.card-state { right: 14px; color: var(--accent); }
.card-id-n { left: 14px; color: var(--ink-4); }
.card[data-status="cooled"] .card-state { color: var(--cool); }
.card-body { padding: 16px 18px 16px; display: grid; gap: 12px; }
.card-name { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.card-name b { font: 500 18px var(--mono); letter-spacing: -0.01em; }
.card-name span { color: var(--ink-3); font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meter-row { display: flex; justify-content: space-between; font: 500 11px var(--mono); letter-spacing: .06em; color: var(--ink-3); text-transform: uppercase; margin-bottom: 5px; }
.meter-row .v { color: var(--ink); text-transform: none; letter-spacing: 0; font-variant-numeric: tabular-nums; }
.bar { position: relative; height: 6px; background: repeating-linear-gradient(90deg, var(--ink-4) 0 3px, transparent 3px 5px); }
.bar i { position: absolute; inset: 0 auto 0 0; width: calc(var(--p, 0) * 100%); background: repeating-linear-gradient(90deg, var(--accent) 0 3px, transparent 3px 5px); transition: width .9s var(--ease); }
.card-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 4px; font: 500 12.5px var(--mono); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.card-go { height: 30px; padding: 0 13px; display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--ink); font: 500 12.5px var(--sans); transition: all .2s; }
.card:hover .card-go { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.card[data-status="cooled"] .card-go, .card[data-status="critical"] .card-go { visibility: hidden; }

/* ==========================================================================
   BOARD
   ========================================================================== */
.board-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 48px; }
.totals { display: flex; gap: 44px; }
.totals div { display: grid; gap: 4px; }
.totals b { font: 450 40px/1 var(--sans); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.seg { display: inline-flex; padding: 3px; border: 1px solid var(--line-2); border-radius: 999px; }
.seg button { height: 32px; padding: 0 14px; border-radius: 999px; font: 500 12px var(--mono); color: var(--ink-3); letter-spacing: .04em; transition: all .2s; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--ink); color: var(--on-ink); }
.toolbar { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (min-width: 1560px) { .grid { grid-template-columns: repeat(4, 1fr); } }
.empty { padding: 80px 0; text-align: center; color: var(--ink-3); }
.loading { display: inline-flex; gap: 10px; align-items: center; font: 500 12px var(--mono); color: var(--ink-3); text-transform: uppercase; letter-spacing: .08em; }
.loading::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 1px solid var(--ink-4); border-top-color: var(--accent); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   LAUNCHED
   ========================================================================== */
.table { margin-top: 40px; font-size: 14.5px; }
.tr {
  display: grid; align-items: center; gap: 18px;
  grid-template-columns: minmax(220px, 2fr) 1.2fr .8fr .9fr 1fr 1fr .8fr 132px;
  padding: 14px 14px; border-bottom: 1px solid var(--line);
  transition: background .2s;
}
a.tr:hover { background: var(--accent-soft); }
.th { padding-top: 0; padding-bottom: 12px; }
.tr .r { text-align: right; font-variant-numeric: tabular-nums; }
.coin { display: flex; align-items: center; gap: 14px; min-width: 0; }
.coin canvas, .coin img { width: 44px; height: 44px; border-radius: 50%; flex: none; border: 1px solid var(--line); background: var(--panel-solid); }
.coin b { display: block; font: 500 15px var(--mono); }
.coin span { display: block; color: var(--ink-3); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.up { color: var(--accent); }
.down { color: var(--cool); }
.spark { display: block; width: 132px; height: 36px; }
.spark path.l { fill: none; stroke: var(--accent); stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.spark path.a { fill: var(--accent-soft); }
.spark.neg path.l { stroke: var(--cool); }
.spark.neg path.a { fill: rgba(143, 153, 171, .1); }

.cooled-wrap { display: grid; grid-template-columns: 1fr 2fr; gap: 80px; margin-top: 140px; }
.cooled-list { border-top: 1px solid var(--line); }
.cool-row { display: grid; grid-template-columns: 1.6fr 1.6fr 1fr 1fr; gap: 18px; align-items: center; padding: 18px 4px; border-bottom: 1px solid var(--line); font-size: 14.5px; color: var(--ink-2); }
.cool-row:hover { color: var(--ink); }
.cool-row b { font: 500 15px var(--mono); color: var(--ink); }
.cool-bar { position: relative; display: block; height: 4px; margin-bottom: 8px; background: var(--ink-4); }
.cool-bar i { position: absolute; inset: 0 auto 0 0; width: calc(var(--p) * 100%); background: var(--cool); }
.cool-bar::after { content: ""; position: absolute; right: 0; top: -4px; bottom: -4px; width: 1px; background: var(--ink-3); }

/* ==========================================================================
   SINGLE LAUNCH
   ========================================================================== */
.launch { display: grid; grid-template-columns: 1.25fr 1fr; min-height: 100vh; }
.launch-stage { position: sticky; top: 0; height: 100vh; }
.launch-stage canvas.main { position: absolute; inset: 0; width: 100%; height: 100%; }
.launch-stage canvas.bl { position: absolute; inset: 0; width: 100%; height: 100%; filter: blur(16px) saturate(1.4) brightness(1.8); mix-blend-mode: screen; opacity: .8; pointer-events: none; }
:root[data-theme="light"] .launch-stage canvas.bl { display: none; }
.launch-read { position: absolute; left: calc(var(--rail) + 40px); bottom: 48px; right: 40px; display: flex; gap: 48px; font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.launch-read b { display: block; margin-top: 6px; font: 450 34px/1 var(--sans); letter-spacing: -0.04em; text-transform: none; color: var(--ink); font-variant-numeric: tabular-nums; }
.launch-read b small { font-size: 16px; color: var(--ink-3); letter-spacing: -0.01em; }
.launch-tag { position: absolute; left: calc(var(--rail) + 40px); top: 120px; font: 500 11px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.launch-tag.cool { color: var(--cool); }
.launch-side { position: relative; z-index: 3; padding: 130px 56px 100px 24px; display: grid; gap: 22px; align-content: start; }
.l-head h1 { margin: 0; font: 450 72px/0.92 var(--sans); letter-spacing: -0.055em; }
.l-head .tick { font: 500 15px var(--mono); color: var(--accent); }
.l-head p { margin: 16px 0 0; color: var(--ink-2); max-width: 440px; }
.l-meta { display: flex; gap: 20px; margin-top: 18px; font: 500 12px var(--mono); color: var(--ink-3); }
.l-meta a:hover { color: var(--ink); }

.panel { position: relative; background: var(--panel); border: 1px solid var(--line-2); border-radius: 18px; padding: 24px; backdrop-filter: blur(6px); }
.panel h2 { margin: 0 0 18px; font: 500 11.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); display: flex; justify-content: space-between; }
.cd-big { font: 450 64px/1 var(--mono); letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.cd-sub { margin-top: 8px; font-size: 14px; color: var(--ink-3); }
.meters { display: grid; gap: 16px; margin-top: 22px; }
.meters .bar { height: 10px; }

.stake-amt { display: flex; align-items: center; height: 72px; padding: 0 20px; border: 1px solid var(--line-2); border-radius: 14px; background: var(--accent-soft); transition: border-color .2s; }
.stake-amt:focus-within { border-color: var(--accent); }
.stake-amt input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--ink); font: 500 34px var(--mono); letter-spacing: -0.03em; }
.stake-amt input::placeholder { color: var(--ink-4); }
.stake-amt span { font: 500 14px var(--mono); color: var(--ink-3); }
.quick { display: flex; gap: 8px; margin-top: 12px; }
.quick button { flex: 1; height: 34px; border-radius: 999px; border: 1px solid var(--line-2); font: 500 12.5px var(--mono); color: var(--ink-2); transition: all .2s; }
.quick button:hover { color: var(--ink); border-color: var(--ink-3); }
.kv { display: grid; gap: 0; margin: 18px 0; border-top: 1px solid var(--line); }
.kv div { display: flex; justify-content: space-between; gap: 20px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.kv div span:last-child { color: var(--ink); font-family: var(--mono); font-size: 13px; text-align: right; }
.err { min-height: 20px; margin: 8px 0 0; font: 500 12.5px var(--mono); color: #ff7a6b; }
:root[data-theme="light"] .err { color: #c0341f; }
.note { margin: 14px 0 0; font-size: 13.5px; color: var(--ink-3); line-height: 1.5; }
.panel .btn { width: 100%; }
.done-glyph { font: 500 44px var(--mono); color: var(--accent); line-height: 1; margin-bottom: 14px; }
.done h3 { margin: 0 0 8px; font-weight: 450; font-size: 30px; letter-spacing: -0.035em; }
.done p { margin: 0; color: var(--ink-2); }

.rules { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.rules div { background: var(--panel-solid); padding: 14px 16px; display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 14px; color: var(--ink-2); }
.rules b { font: 500 12px var(--mono); color: var(--accent); }
.rules strong { color: var(--ink); font-weight: 500; }

.feed { font: 500 12.5px var(--mono); }
.feed div { display: grid; grid-template-columns: 1fr auto 80px; gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.feed div span:nth-child(2) { color: var(--ink); }
.feed div span:last-child { text-align: right; color: var(--ink-3); }
.feed .new { animation: fresh 1.6s var(--ease); }
@keyframes fresh { from { background: var(--accent-soft); color: var(--accent); } }

/* ==========================================================================
   PROPOSE
   ========================================================================== */
.propose { display: grid; grid-template-columns: 1.15fr 1fr; gap: 64px; margin-top: 64px; align-items: start; }
.form { display: grid; gap: 26px; }
.fs { border: 0; margin: 0; padding: 0 0 26px; border-bottom: 1px solid var(--line); display: grid; gap: 18px; }
.fs legend { padding: 0; margin-bottom: 18px; font: 500 11.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.f-row.three { grid-template-columns: 1fr 1fr 1fr; }
.f { display: grid; gap: 7px; }
.f label { font: 500 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.f input[type="text"], .f input[type="number"], .f input[type="url"] {
  height: 52px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line-2); background: transparent;
  color: var(--ink); font: 500 16px var(--sans); outline: 0; transition: border-color .2s, background .2s;
}
.f input.mono { font-family: var(--mono); }
.f input:focus { border-color: var(--accent); background: var(--accent-soft); }
.f input::placeholder { color: var(--ink-4); }
.f.bad input, .f.bad .drop { border-color: #ff7a6b; }
.f .hint { font-size: 12.5px; color: var(--ink-3); }
.f .msg { font: 500 12px var(--mono); color: #ff7a6b; min-height: 0; }
:root[data-theme="light"] .f .msg { color: #c0341f; }
.unit { position: relative; }
.unit input { width: 100%; padding-right: 60px !important; }
.unit span { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font: 500 12px var(--mono); color: var(--ink-3); }
.drop {
  display: flex; align-items: center; gap: 16px; padding: 14px; border-radius: 12px; border: 1px dashed var(--line-2);
  cursor: pointer; transition: border-color .2s, background .2s;
}
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop .thumb { width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--panel-solid) center/cover no-repeat; flex: none; display: grid; place-items: center; font: 500 18px var(--mono); color: var(--ink-4); }
.drop b { display: block; font-weight: 500; }
.drop span { font-size: 13px; color: var(--ink-3); }
.pills { display: flex; gap: 8px; }
.pills label { flex: 1; }
.pills input { position: absolute; opacity: 0; pointer-events: none; }
.pills span { display: grid; place-items: center; height: 46px; border-radius: 12px; border: 1px solid var(--line-2); font: 500 14px var(--mono); color: var(--ink-2); cursor: pointer; transition: all .2s; }
.pills span:hover { color: var(--ink); border-color: var(--ink-3); }
.pills input:checked + span { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.pills input:focus-visible + span { outline: 1px solid var(--accent); outline-offset: 3px; }

.preview { position: sticky; top: 110px; }
.preview .pv-viz { position: relative; height: 380px; border-bottom: 1px solid var(--line); margin: -24px -24px 20px; border-radius: 18px 18px 0 0; overflow: hidden; background: radial-gradient(circle at 50% 50%, var(--accent-soft), transparent 62%); }
.preview .pv-viz canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.pv-name { display: flex; align-items: baseline; gap: 12px; }
.pv-name b { font: 500 26px var(--mono); }
.pv-name span { color: var(--ink-3); }
.pv-tag { position: absolute; left: 18px; top: 16px; font: 500 10.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }

/* ==========================================================================
   HOW IT WORKS
   ========================================================================== */
.how { display: grid; grid-template-columns: 260px 1fr; gap: 80px; margin-top: 80px; align-items: start; }
.toc { position: sticky; top: 130px; display: grid; gap: 2px; font: 500 12px var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.toc a { padding: 8px 0; color: var(--ink-3); display: grid; grid-template-columns: 30px 1fr; transition: color .2s; }
.toc a:hover, .toc a.on { color: var(--ink); }
.toc a b { font-weight: 500; color: var(--accent); }
.doc { max-width: 760px; }
.doc section { padding: 0 0 80px; scroll-margin-top: 120px; }
.doc h2 { margin: 0 0 22px; font: 450 48px/1 var(--sans); letter-spacing: -0.045em; display: flex; gap: 18px; align-items: baseline; }
.doc h2 b { font: 500 13px var(--mono); color: var(--accent); letter-spacing: 0; }
.doc p { margin: 0 0 16px; font-size: 18px; line-height: 1.6; color: var(--ink-2); }
.doc p strong { color: var(--ink); font-weight: 500; }
.diagram { margin: 28px 0 8px; padding: 22px 24px; border: 1px solid var(--line-2); background: var(--panel); font: 500 13px/1.75 var(--mono); color: var(--ink-2); white-space: pre; overflow-x: auto; position: relative; }
.diagram .a { color: var(--accent); }
.diagram .c { color: var(--cool); }
.cando { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-top: 26px; }
.cando > div { background: var(--panel-solid); padding: 22px 24px; }
.cando h3 { margin: 0 0 14px; font: 500 11.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.cando > div:last-child h3 { color: var(--cool); }
.cando ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.cando li { font-size: 15px; color: var(--ink-2); padding-left: 20px; position: relative; }
.cando li::before { content: "+"; position: absolute; left: 0; font-family: var(--mono); color: var(--accent); }
.cando > div:last-child li::before { content: "−"; color: var(--cool); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.foot { position: relative; z-index: 3; margin-left: calc(var(--rail) + 40px); margin-right: 64px; padding: 120px 0 36px; border-top: 1px solid var(--line); }
.foot-big { font: 450 clamp(110px, 13vw, 240px)/0.8 var(--sans); letter-spacing: -0.07em; color: var(--ink); margin-bottom: 80px; }
.foot-big em { color: var(--accent); }
.foot-cols { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 40px; }
.foot-cols > div { display: grid; gap: 10px; align-content: start; font-size: 14.5px; color: var(--ink-2); }
.foot-cols p { margin: 0; line-height: 1.6; }
.foot-cols a:hover { color: var(--ink); }
.foot-ca { justify-self: start; height: 32px; }
.foot-base { display: flex; justify-content: space-between; margin-top: 80px; font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }

.status { position: fixed; z-index: 20; left: 32px; bottom: 26px; display: inline-flex; align-items: center; gap: 10px; font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }

/* ---------- 404 ---------- */
.lost { position: relative; z-index: 3; height: 100vh; display: grid; place-items: center; text-align: center; }
.lost .title { margin-bottom: 20px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   INTRO (/) — full-screen star, one button
   ========================================================================== */
body[data-page="intro"] { height: 100vh; overflow: hidden; }
body[data-page="intro"] .rail, body[data-page="intro"] .top .brand { visibility: hidden; }
body[data-page="intro"] .top { align-items: flex-start; padding-top: 26px; }
.intro-brand { position: fixed; z-index: 31; top: 26px; left: 32px; display: flex; flex-direction: column; gap: 12px; }
.intro-word { font: 600 clamp(44px, 4.6vw, 72px)/0.95 var(--sans); letter-spacing: -0.045em; white-space: nowrap; text-shadow: var(--shadow-text); }
.intro-tag { font: 500 clamp(16px, 1.5vw, 22px) var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--ink-2); }
.intro { position: fixed; inset: 0; z-index: 9; display: grid; place-items: center; pointer-events: none; }
.intro-c { display: grid; justify-items: center; }
.ignite-btn {
  position: relative; pointer-events: auto; display: inline-grid; place-items: center;
  height: 64px; padding: 0 40px; border-radius: 999px;
  background: var(--ink); color: var(--on-ink); font: 600 17px var(--sans); letter-spacing: -0.01em;
  box-shadow: 0 0 0 1px var(--line-2), 0 0 60px -6px var(--accent);
  transition: transform .4s var(--ease), box-shadow .4s, background .3s, color .3s;
}
.ignite-btn:hover { transform: scale(1.03); box-shadow: 0 0 0 1px var(--line-2), 0 0 90px 0 var(--accent); }
.ignite-btn .ring { position: absolute; inset: -10px; border-radius: 999px; border: 1px solid var(--accent); animation: ring 2.6s var(--ease) infinite; }
@keyframes ring { 0% { opacity: .9; transform: scale(.96); } 100% { opacity: 0; transform: scale(1.35, 1.6); } }
.ignite-btn .lbl { position: relative; }
.ignite-btn.crit { background: var(--accent); color: var(--on-ink); box-shadow: 0 0 0 1px var(--accent), 0 0 120px 12px var(--accent); }
.ignite-btn.crit .ring { animation-duration: .7s; }
.intro-read { margin: 24px 0 0; min-height: 1em; font: 500 11px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); font-variant-numeric: tabular-nums; text-shadow: var(--shadow-text); }
.intro-chain { position: fixed; z-index: 20; right: 32px; bottom: 26px; font: 500 11px var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); }
body[data-page="intro"] .field, body[data-page="intro"] .bloom { transition: opacity 2.4s ease; }
body[data-page="intro"] .intro, body[data-page="intro"] .top, body[data-page="intro"] .intro-brand, body[data-page="intro"] .intro-chain, body[data-page="intro"] .status { transition: opacity 1.4s var(--ease), transform 1.4s var(--ease); }
body.booting .field, body.booting .bloom, body.booting .top, body.booting .intro-brand, body.booting .intro-chain, body.booting .status { opacity: 0; }
body.booting .intro { opacity: 0; transform: scale(.94); }

/* ==========================================================================
   v3 — wordmark, clearer landing, full-width sections
   ========================================================================== */
:root { --display: "Unbounded", "Geist", sans-serif; }

/* glitch wordmark: Unbounded, letters flicker into ASCII, RGB split */
.brand .word { font: 500 18px/1 var(--display); letter-spacing: -0.035em; }
.intro-word { font: 600 clamp(40px, 4.2vw, 66px)/1 var(--display); letter-spacing: -0.05em; }
.glitch { position: relative; display: inline-flex; white-space: nowrap; }
.glitch .gl { display: inline-block; text-align: center; white-space: pre; }
.glitch .gl.g { font-family: var(--mono); font-weight: 500; color: var(--accent); transform: scale(.9); }
.glitch::before, .glitch::after { content: attr(data-text); position: absolute; inset: 0; pointer-events: none; clip-path: inset(100% 0 0 0); white-space: nowrap; }
.glitch::before { color: #b06cff; animation: gA 3.7s infinite steps(1); }
.glitch::after { color: #ffa840; opacity: .8; animation: gB 3.7s infinite steps(1); }
:root[data-theme="light"] .glitch::before { color: #7034cc; }
:root[data-theme="light"] .glitch::after { color: #c46a08; }
@keyframes gA {
  0% { clip-path: inset(12% 0 62% 0); transform: translate(-3px, 0); }
  3% { clip-path: inset(58% 0 18% 0); transform: translate(3px, 0); }
  6% { clip-path: inset(30% 0 44% 0); transform: translate(-2px, 0); }
  9%, 54%, 100% { clip-path: inset(100% 0 0 0); transform: none; }
  52% { clip-path: inset(70% 0 6% 0); transform: translate(4px, 0); }
}
@keyframes gB {
  0% { clip-path: inset(66% 0 10% 0); transform: translate(3px, 0); }
  3% { clip-path: inset(8% 0 70% 0); transform: translate(-3px, 0); }
  6% { clip-path: inset(44% 0 30% 0); transform: translate(2px, 0); }
  9%, 54%, 100% { clip-path: inset(100% 0 0 0); transform: none; }
  52% { clip-path: inset(20% 0 55% 0); transform: translate(-4px, 0); }
}
.glitch.jolt { animation: jolt .18s steps(2) 1; }
@keyframes jolt { 50% { transform: translate(2px, -1px) skewX(-6deg); } }

/* hero: what it is, readable over the galaxy */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(90deg, var(--bg) 14%, color-mix(in srgb, var(--bg) 82%, transparent) 38%, transparent 62%);
}
.hero-copy { top: 50%; bottom: auto; transform: translateY(-46%); max-width: 820px; }
.hero-copy.reveal, .hero-copy .reveal { will-change: opacity, transform; }
.hero-title { margin: 0; font: 450 clamp(52px, 4.9vw, 88px)/0.98 var(--sans); letter-spacing: -0.052em; text-shadow: var(--shadow-text); }
.hero-title em { color: var(--accent); }
.hero-points { list-style: none; margin: 38px 0 0; padding: 0; display: grid; gap: 14px; max-width: 700px; }
.hero-points li { display: grid; grid-template-columns: 38px 1fr; gap: 6px; font-size: 20px; line-height: 1.45; color: var(--ink); text-shadow: var(--shadow-text); }
.hero-points b { font: 500 13px/2.2 var(--mono); color: var(--accent); }
.hero-points strong { font-weight: 600; }
.hero .hud { right: 4vw; top: 16vh; }

/* full-width home sections */
.page.full { max-width: none; padding-right: 64px; }
.big-title { margin: 0; font: 450 clamp(56px, 5.6vw, 104px)/0.96 var(--sans); letter-spacing: -0.05em; text-shadow: var(--shadow-text); }
.big-title em { color: var(--accent); }

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin-top: 56px; background: var(--line-2); border: 1px solid var(--line-2); }
.cmp { background: var(--bg); padding: 36px 40px 40px; }
.cmp.new { background: linear-gradient(160deg, var(--accent-soft), var(--bg) 70%); }
.cmp h3 { margin: 0 0 24px; font: 500 13px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.cmp.new h3 { color: var(--accent); }
.cmp ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.cmp li { position: relative; padding-left: 36px; font-size: 22px; line-height: 1.35; letter-spacing: -0.01em; color: var(--ink); }
.cmp li::before { position: absolute; left: 0; top: .05em; font: 500 18px var(--mono); }
.cmp.old li { color: var(--ink-2); }
.cmp.old li::before { content: "×"; color: var(--cool); }
.cmp.new li::before { content: "✓"; color: var(--accent); }

.stages { margin-top: 56px; border-color: var(--line-2); background: var(--line-2); }
.stage { padding-bottom: 38px; }
.stage canvas { height: 300px; }
.stage-n { font-size: 13px; top: 22px; left: 28px; }
.stage .arrow { top: 141px; width: 26px; height: 26px; right: -13px; font-size: 14px; color: var(--ink); }
.stage h3 { margin: 4px 28px 16px; font-size: 36px; letter-spacing: -0.04em; color: var(--ink); }
.stage.or h3 { color: var(--ink); }
.stage ul { list-style: none; margin: 0 28px; padding: 0; display: grid; gap: 10px; }
.stage li { position: relative; padding-left: 20px; font-size: 18px; line-height: 1.4; color: var(--ink); }
.stage li::before { content: ""; position: absolute; left: 0; top: .62em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.stage.or li::before { background: var(--cool); }

.side-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; max-width: 560px; }
.side-points li { position: relative; padding-left: 22px; font-size: 20px; line-height: 1.4; color: var(--ink); }
.side-points li::before { content: ""; position: absolute; left: 0; top: .6em; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

.row { gap: 18px; }
.row .card-viz { height: 250px; }
.row .card-body { padding: 20px 22px; gap: 14px; }
.row .card-name b { font-size: 22px; }
.row .card-name span { font-size: 16px; }
.row .meter-row { font-size: 12.5px; }
.row .meter-row .v { font-size: 14px; }
.row .bar { height: 8px; }
.row .card-foot { font-size: 14px; }

/* ==========================================================================
   v4 — big steps, bigger wordmark, obvious nav, cursor star
   ========================================================================== */
.top { height: 104px; }
.brand { gap: 16px; }
.brand .mark { width: 46px; height: 46px; font-size: 20px; }
.brand .word { font-size: clamp(30px, 2.6vw, 42px); letter-spacing: -0.045em; }
.page { padding-top: 170px; }
.launch-side { padding-top: 150px; }
.launch-tag { top: 140px; }

/* hero: just the line and one button */
.hero-copy { transform: translateY(-50%); }
.hero-title { font-size: clamp(60px, 5.8vw, 108px); }

/* the four steps, under the hero */
.big-points { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); }
.big-points li { background: var(--bg); padding: 40px 36px 48px; display: grid; align-content: start; gap: 26px; }
.big-points b { font: 600 clamp(64px, 6vw, 108px)/0.9 var(--display); letter-spacing: -0.06em; color: var(--accent); }
.big-points p { margin: 0; font-size: clamp(21px, 1.6vw, 27px); line-height: 1.38; letter-spacing: -0.015em; color: var(--ink); }
.big-points strong { font-weight: 600; }

/* the rail: always readable, with a panel behind it */
.rail { left: 24px; padding: 14px 18px 14px 34px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 14px; backdrop-filter: blur(8px); gap: 2px; }
.rail-line { left: 16px; top: 22px; bottom: 22px; }
.rail-line i { left: -4px; }
.rail a { font-size: 13px; color: var(--ink-2); padding: 8px 0; }
.rail a b { color: var(--ink-3); }
.rail a:hover { color: var(--ink); }
.rail a .s { font-size: 11px; }

/* keep exploring: big tiles to the rest of the site */
.next { position: relative; z-index: 3; margin: 140px 64px 0 calc(var(--rail) + 40px); }
.next-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.next a {
  position: relative; display: grid; gap: 12px; padding: 28px 28px 30px; min-height: 210px; align-content: end;
  border: 1px solid var(--line-2); border-radius: 18px; background: var(--panel);
  transition: border-color .3s, transform .5s var(--ease), box-shadow .5s;
}
.next a:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: 0 30px 70px -40px var(--accent); }
.next b { position: absolute; top: 24px; left: 28px; font: 500 13px var(--mono); color: var(--accent); }
.next .nl { font: 500 clamp(28px, 2.4vw, 40px)/1 var(--display); letter-spacing: -0.045em; text-transform: lowercase; }
.next .nd { font-size: 16px; color: var(--ink-2); }
.next .na { position: absolute; top: 20px; right: 24px; font-size: 24px; color: var(--ink-3); transition: transform .3s var(--ease), color .3s; }
.next a:hover .na { transform: translateX(4px); color: var(--accent); }
.foot { margin-top: 120px; }

/* cursor star */
.cursor-star { position: fixed; inset: 0; z-index: 100; width: 100vw; height: 100vh; pointer-events: none; }
:root[data-theme="dark"] .cursor-star, :root:not([data-theme]) .cursor-star { mix-blend-mode: screen; }
