/* TRAVERSE · the lab. A monochrome instrument: void-black (default) or paper-white, one ink, 1px rules, square corners.
   Type: STIX Two (the face of scientific journals) for prose and formulas, Doto dot-matrix for readouts,
   Martian Mono for labels.
   Emphasis is by inversion (ink ground, paper type), never by colour. */

@font-face { font-family: "STIX Two Text"; src: url(/fonts/stix-two.woff2) format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }
@font-face { font-family: "STIX Two Text"; src: url(/fonts/stix-two-italic.woff2) format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; }
@font-face { font-family: "STIX Two Text"; src: url(/fonts/stix-two-greek-italic.woff2) format("woff2"); font-weight: 400 700; font-style: italic; font-display: swap; unicode-range: U+0370-03FF, U+1F00-1FFF; }
@font-face { font-family: "Doto"; src: url(/fonts/doto.woff2) format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Martian Mono"; src: url(/fonts/martian-mono.woff2) format("woff2"); font-weight: 100 800; font-stretch: 75% 112.5%; font-display: swap; }

:root, [data-theme="light"] {
  --paper: #f3f3f0;
  --paper-2: #ececE8;
  --sheet: #fbfbf9;
  --ink: #0e0e0e;
  --ink-2: #2e2e2e;
  --muted: #5f5f5c;
  --faint: #9a9a96;
  --line: rgba(14, 14, 14, .09);
  --line-2: rgba(14, 14, 14, .18);
  --line-3: rgba(14, 14, 14, .45);
  --veil: rgba(243, 243, 240, .9);
  color-scheme: light;
}
[data-theme="dark"] {
  --paper: #020202;
  --paper-2: #060606;
  --sheet: #0b0b0b;
  --ink: #ffffff;
  --ink-2: #cccccc;
  --muted: #888888;
  --faint: #555555;
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .15);
  --line-3: rgba(255, 255, 255, .4);
  --veil: rgba(2, 2, 2, .86);
  color-scheme: dark;
}
:root {
  --sans: "STIX Two Text", "STIX Two", Georgia, serif;
  --dot: "Doto", var(--mono);
  --mono: "Martian Mono", ui-monospace, Menlo, monospace;
  --top: 56px;
  --gut: clamp(16px, 3.4vw, 36px);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--top); background: var(--paper); scrollbar-color: var(--line-3) transparent; scrollbar-width: thin; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-thumb { background: var(--line-3); }
::-webkit-scrollbar-track { background: transparent; }
body {
  margin: 0; background: var(--paper); color: var(--ink-2);
  font: 400 16px/1.6 var(--sans);
  font-variation-settings: "wdth" 87.5;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; overflow-x: clip;
  transition: background-color .4s, color .4s;
}
::selection { background: var(--ink); color: var(--paper); }
h1, h2, h3, p, dl, dd, ol, ul, figure, pre { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
code, .mono { font-family: var(--mono); font-size: .92em; }
.num { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 1.5px solid var(--ink); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 14px; }
.skip:focus { top: 12px; }
[hidden] { display: none !important; }

/* ---------------- controls: hover inverts ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 44px; padding: 0 20px;
  font: 600 12.5px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; border: 1px solid var(--ink);
  transition: background-color .18s, color .18s, transform .35s var(--spring);
}
.btn:hover:not(:disabled) { transform: translateY(-1px); }
.btn:active:not(:disabled) { transform: scale(.97); }
.btn:disabled { opacity: .4; cursor: default; }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover:not(:disabled) { background: var(--paper); color: var(--ink); }
.btn-line { color: var(--ink); background: transparent; }
.btn-line:hover:not(:disabled) { background: var(--ink); color: var(--paper); }
.btn-sm { height: 34px; padding: 0 13px; font-size: 11px; }
.icon-btn { display: inline-grid; place-items: center; min-width: 32px; height: 32px; padding: 0 8px; border: 1px solid var(--line-2); color: var(--ink); font: 600 10.5px/1 var(--mono); letter-spacing: .08em; transition: background-color .18s, color .18s, border-color .18s; }
.icon-btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.copy { flex: none; padding: 6px 9px; border: 1px solid var(--line-2); background: var(--sheet); color: var(--ink-2); font: 600 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; transition: background-color .18s, color .18s, border-color .18s; }
.copy:hover:not(:disabled) { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.copy:disabled { color: var(--faint); border-color: transparent; background: transparent; cursor: default; }
.link { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-3); font-size: 14px; }
.link:hover { text-decoration-color: var(--ink); }
.link-arrow { display: inline-flex; align-items: center; gap: 10px; justify-self: start; font: 600 11.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); padding: 8px 10px; border: 1px solid var(--ink); transition: gap .35s var(--ease), background-color .18s, color .18s; }
.link-arrow::after { content: "→"; }
.link-arrow:hover { gap: 16px; background: var(--ink); color: var(--paper); }
.note { font-size: 14px; color: var(--muted); }
.note:empty { display: none; }
.field { flex: 1 1 140px; min-width: 0; height: 34px; padding: 0 11px; border: 1px solid var(--line-2); background: var(--paper); color: var(--ink); font: 400 14px/1 var(--mono); transition: border-color .2s; }
.field::placeholder { color: var(--faint); }
.field:focus { outline: none; border-color: var(--ink); }

.tip { position: fixed; z-index: 90; left: 0; top: 0; pointer-events: none; max-width: 280px; padding: 6px 9px; background: var(--ink); color: var(--paper); font: 500 11px/1.4 var(--mono); opacity: 0; transform: translate(var(--tx, 0), var(--ty, 0)) scale(.96); transition: opacity .15s, transform .3s var(--spring); }
.tip.on { opacity: 1; transform: translate(var(--tx, 0), var(--ty, 0)) scale(1); }

.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); flex: none; }
/* the live mark in the header is a small dial: its hand turns once a round, with the clock */
.live .dot { position: relative; width: 13px; height: 13px; background: none; border: 1px solid var(--faint); }
.live .dot::after { content: ""; position: absolute; left: 50%; top: 50%; width: 1px; height: 5px; margin-left: -.5px; background: var(--faint); transform-origin: 50% 0; transform: rotate(calc(180deg + var(--p, 0) * 360deg)); }
.plaque.is-active .live .dot { border-color: var(--ink); }
.plaque.is-active .live .dot::after { background: var(--ink); }
.live .dot.off { border-style: dashed; }
.live .dot.off::after { display: none; }
@keyframes beat { 50% { opacity: .25; } }

/* ---------------- header ---------------- */
.top { position: fixed; z-index: 50; inset: 0 0 auto; height: var(--top); display: flex; align-items: center; gap: 28px; padding: 0 var(--gut); background: var(--veil); border-bottom: 1px solid var(--line-2); backdrop-filter: saturate(1.2); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.brand-mark { width: 22px; height: 22px; }
.brand-word { font: 800 13px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; }
.brand-tick, .tick { font: 700 10.5px/1 var(--mono); letter-spacing: .08em; background: var(--ink); color: var(--paper); padding: 4px 6px 3px; }
.brand-tick { margin-left: 2px; }
.eyebrow .tick { margin-right: 10px; }
.nav { display: flex; gap: 4px; margin: 0 auto; }
.nav a { font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 8px 10px; transition: background-color .18s, color .18s; }
.nav a:hover { color: var(--ink); }
.nav a.on { background: var(--ink); color: var(--paper); }
.top-r { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.minute { display: none; } /* the minute already runs in the "Fixed in" bar */

/* ---------------- 01 · the lab ---------------- */
.ascent { padding: var(--top) 0 0; border-bottom: 1px solid var(--line-2); }
.lab-head { display: grid; grid-template-columns: minmax(240px, 1fr) 3fr; align-items: end; gap: 24px; padding: 14px var(--gut) 0; }
.lab-name { font: 800 clamp(15px, 1.5vw, 19px)/1.1 var(--mono); letter-spacing: .02em; color: var(--ink); }
.lab-sub { margin-top: 4px; font: 500 9.5px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.plaque { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0 14px; transition: box-shadow .4s; }
.plaque.struck .bar { animation: barflash 1s steps(4); }
@keyframes barflash { 50% { opacity: .2; } }
.st { position: relative; display: grid; align-content: end; gap: 2px; min-width: 0; }
.spark { position: absolute; right: 0; bottom: 14px; width: 42%; height: 18px; overflow: visible; }
.spark polyline { fill: none; stroke: var(--ink); stroke-width: 1; vector-effect: non-scaling-stroke; stroke-linejoin: round; opacity: .75; }
.st > span, .st .live { font: 500 9.5px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.st .live { display: flex; align-items: center; gap: 7px; color: var(--ink); min-height: 32px; }
.st b { font: 900 clamp(20px, 1.8vw, 26px)/1.1 var(--dot); color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar { display: block; height: 4px; margin-top: 6px; background: linear-gradient(var(--ink), var(--ink)) 0 0 / calc(var(--p, 0) * 100%) 100% no-repeat, var(--line-2); transition: background-size .6s var(--ease); }
.bar.on { --p: 1; }

.stage { position: relative; height: clamp(520px, 66vh, 760px); margin-top: 12px; border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); overflow: hidden; }
.lab { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.formula { position: absolute; z-index: 1; pointer-events: none; display: grid; gap: 4px; padding: 8px 10px; background: var(--veil); opacity: 0; transform: translateY(6px); transition: opacity .5s, transform .6s var(--ease); }
.formula.on { opacity: 1; transform: none; }
.formula span { font: 600 9px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.formula b { font: italic 400 20px/1.2 var(--sans); color: var(--ink); white-space: nowrap; }

.hero-copy { position: absolute; z-index: 2; right: var(--gut); bottom: 28px; width: min(500px, 40%); padding: 26px 28px; background: var(--sheet); border: 1px solid var(--ink); }
.hero-copy::before, .hero-copy::after, .pn::before, .pn::after, .panel::before, .panel::after { content: "+"; position: absolute; font: 400 13px/1 var(--mono); color: var(--ink); pointer-events: none; }
.hero-copy::before, .pn::before, .panel::before { left: -5px; top: -8px; }
.hero-copy::after, .pn::after, .panel::after { right: -5px; bottom: -8px; }
.eyebrow { font: 500 10px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.display { font: 500 clamp(40px, 4.3vw, 66px)/1.02 var(--sans); letter-spacing: -.02em; color: var(--ink); margin-bottom: 16px; }
.display .ln { display: block; overflow: hidden; padding-bottom: .05em; }
.display .ln > * { display: block; }
.lede { font-size: 17.5px; line-height: 1.55; margin-bottom: 22px; }
.acts { display: flex; flex-wrap: wrap; gap: 8px; }

/* the dashboard */
.dash { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 16px var(--gut) 22px; }
.dash { grid-auto-flow: dense; }
.pn { position: relative; min-width: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); grid-auto-rows: auto; gap: 9px; padding: 10px 12px 10px; background: var(--sheet); border: 1px solid var(--line-2); height: 240px; overflow: hidden; transition: border-color .2s; }
.pn:hover { border-color: var(--line-3); }
.pn.big { grid-column: span 2; grid-row: span 2; height: calc(480px + 12px); border-color: var(--ink); }
.pn h3 { display: flex; align-items: center; gap: 8px; font: 800 9.5px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); padding-bottom: 7px; border-bottom: 1px solid var(--line-2); }
.pn h3::before { content: attr(data-xy); font-weight: 600; letter-spacing: .04em; color: var(--paper); background: var(--ink); padding: 2px 4px; }
.pn h3 > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pn h3 em { font-style: normal; font-weight: 500; color: var(--muted); }
.pn-x { display: grid; place-items: center; width: 18px; height: 18px; margin: -3px -3px -3px 0; border: 1px solid var(--line-2); color: var(--ink); transition: background-color .15s, color .15s, border-color .15s, transform .45s var(--spring); }
.pn-x svg { width: 8px; height: 8px; stroke: currentColor; stroke-width: 1.4; transition: transform .45s var(--spring); }
.pn-x:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); transform: scale(1.12); }
.pn-x:active { transform: scale(.92); }
.pn-x[aria-expanded="true"] svg { transform: rotate(45deg); }
.eq { display: flex; justify-content: space-between; gap: 10px; padding-top: 6px; border-top: 1px dashed var(--line-2); font: 500 9.5px/1.2 var(--mono); color: var(--muted); white-space: nowrap; overflow: hidden; }
.eq b { font: italic 400 13px/1.1 var(--sans); color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; }
#p-feed { view-transition-name: pn-feed; } #p-solver { view-transition-name: pn-solver; } #p-work { view-transition-name: pn-work; } #p-field { view-transition-name: pn-field; }
#p-proto { view-transition-name: pn-proto; } #p-buffer { view-transition-name: pn-buffer; } #p-dispatch { view-transition-name: pn-dispatch; } #p-index { view-transition-name: pn-index; }
::view-transition-group(*) { animation-duration: .5s; animation-timing-function: cubic-bezier(.16, 1, .3, 1); }
::view-transition-old(root), ::view-transition-new(root) { animation: none; }
::view-transition-old(*), ::view-transition-new(*) { height: 100%; object-fit: fill; }
.pn .cap { font: 500 8.5px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.feed { display: grid; align-content: end; gap: 2px; overflow: hidden; font: 400 10px/1.45 var(--mono); }
.feed li { display: grid; grid-template-columns: 52px 38px 1fr; gap: 6px; color: var(--ink-2); white-space: nowrap; overflow: hidden; }
.feed li i { font-style: normal; color: var(--muted); }
.feed li b { font-weight: 600; color: var(--ink); }
.feed li span { overflow: hidden; text-overflow: ellipsis; }
.feed li.dim { display: block; color: var(--muted); }
.feed li.typing span { animation: type 1.2s steps(28) both; }
@keyframes type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
#p-solver canvas, .buf canvas { width: 100%; height: 100%; display: block; min-height: 0; }
#p-solver canvas { border: 1px dashed var(--line-2); }
.tabs { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line-2); }
.tabs::before { content: ""; position: absolute; inset: 0 auto 0 0; width: calc(100% / 3); background: var(--ink); transform: translateX(calc(var(--i, 0) * 100%)); transition: transform .5s var(--spring); }
.tabs button { position: relative; font: 600 8.5px/1 var(--mono); letter-spacing: .1em; text-align: center; padding: 6px 0; color: var(--muted); transition: color .2s; }
.tabs button:hover { color: var(--ink); }
.tabs button.on { color: var(--paper); }
#p-work pre { font: 400 10px/1.5 var(--mono); color: var(--ink); white-space: pre; overflow: hidden; }
#p-work .ln { color: var(--faint); margin-right: 10px; }
.caret { display: inline-block; width: 6px; height: 11px; vertical-align: -2px; background: var(--ink); animation: beat 1s steps(2) infinite; }
.hms { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.hms span { display: block; font: 600 8.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
.hm { display: grid; grid-template-columns: repeat(10, 1fr); gap: 1.5px; }
.hm i { aspect-ratio: 1; background: rgb(from var(--ink) r g b / calc(.06 + var(--v, 0) * .94)); }
.hist { display: flex; align-items: flex-end; gap: 1px; height: 26px; border-bottom: 1px solid var(--ink); }
.hist i { flex: 1; height: calc(var(--v, .03) * 100%); background: var(--ink); }
#p-proto table { width: 100%; border-collapse: collapse; font: 400 9.5px/1 var(--mono); align-self: start; }
#p-proto th { text-align: left; font-weight: 600; letter-spacing: .1em; color: var(--muted); padding: 0 6px 5px 0; border-bottom: 1px solid var(--line-2); }
#p-proto td { padding: 3.5px 6px 3.5px 0; color: var(--ink-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
#p-proto td:first-child { color: var(--ink); font-weight: 600; }
#p-proto td.v { padding-left: 4px; transition: background-color .2s, color .2s; }
#p-proto td.v.on { background: var(--ink); color: var(--paper); }
.buf { display: grid; grid-template-columns: 64px 1fr; min-height: 0; height: 100%; }
.buf p { display: grid; grid-template-rows: repeat(3, 1fr); align-items: center; font: 600 8.5px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink); }
.buf canvas { grid-column: 1 / -1; grid-row: 1; }
.buf p { grid-row: 1; grid-column: 1; z-index: 1; }
.disp { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 10px; align-content: start; font: 400 9.5px/1.2 var(--mono); }
.disp li { display: grid; grid-template-columns: 16px 1fr 22px auto; gap: 5px; align-items: center; color: var(--ink-2); white-space: nowrap; min-width: 0; }
.disp li i { font-style: normal; color: var(--muted); }
.disp li span { overflow: hidden; text-overflow: ellipsis; }
.disp li em { height: 8px; background: linear-gradient(var(--ink), var(--ink)) 0 0 / calc(var(--v, 0) * 100%) 100% no-repeat, var(--line); }
.disp li b { font-weight: 600; color: var(--ink); }
.disp li.dim em { background: repeating-linear-gradient(90deg, var(--line-2) 0 2px, transparent 2px 4px); }
.idx { display: grid; grid-template-columns: 1fr 104px; gap: 10px; min-height: 0; }
.idx .grid { display: grid; grid-template-columns: repeat(10, 1fr); gap: 2px; align-content: start; }
.idx .grid i { aspect-ratio: 1; border: 1px solid var(--line-2); background: rgb(from var(--ink) r g b / calc(var(--v, 0) * .9)); }
.idx .grid i.empty { background: transparent; }
.idx .grid i.now { background: var(--ink); outline: 1px solid var(--ink); outline-offset: 1px; animation: beat 1.6s steps(2) infinite; }
.idx ul { display: grid; gap: 3px; align-content: start; font: 400 9px/1.2 var(--mono); }
.idx li { display: flex; justify-content: space-between; gap: 6px; white-space: nowrap; }
.idx li i { font-style: normal; color: var(--muted); }
.idx li b { font-weight: 600; color: var(--ink); }
.idx .s-open { background: var(--ink); color: var(--paper) !important; padding: 0 3px; }
.idx .s-empty { color: var(--faint) !important; font-weight: 400 !important; }

/* ---------------- shared section parts ---------------- */
.band { position: relative; padding: clamp(80px, 10vw, 136px) 0; border-top: 1px solid var(--line-2); }
.band:first-of-type { border-top: 0; }
.supply-band, .register { background: var(--paper-2); }
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 var(--gut); }
.kicker { display: flex; align-items: center; gap: 10px; font: 600 10.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.kicker span:first-child { padding: 4px 6px; background: var(--ink); color: var(--paper); }
.kicker::after { content: ""; flex: 1; max-width: 120px; height: 1px; background: var(--line-3); }
.h2 { font: 500 clamp(34px, 4.2vw, 60px)/1.04 var(--sans); letter-spacing: -.02em; color: var(--ink); }
.split-line { padding-bottom: .06em; }
.prose { font-size: 18.5px; line-height: 1.58; max-width: 52ch; }
.head-row { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px 64px; align-items: end; margin-bottom: 48px; }
.panel { position: relative; background: var(--sheet); border: 1px solid var(--line-2); padding: 24px; }
.p-h { display: flex; align-items: center; gap: 10px; font: 800 10.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin-bottom: 18px; padding-bottom: 10px; border-bottom: 1px solid var(--line-2); }
.p-no { padding: 3px 5px; background: var(--ink); color: var(--paper); }

/* ---------------- 02 · the minute ---------------- */
.round-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px 72px; align-items: start; }
.round .h2 { font: 500 clamp(24px, 2.4vw, 32px)/1.2 var(--sans); margin-bottom: 14px; }
.clock { font: 800 clamp(96px, 14.5vw, 210px)/.9 var(--dot); letter-spacing: -.02em; color: var(--ink); }
.round-body { display: grid; gap: 30px; padding-top: 8px; }
.figures { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--ink); border-left: 1px solid var(--line-2); }
.figures div { padding: 16px 18px; border-right: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); background: var(--sheet); }
.figures dt { font: 600 9.5px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.figures dd { font: 900 28px/1.1 var(--dot); letter-spacing: 0; color: var(--ink); }
.figures small { font: 500 11px var(--mono); color: var(--muted); }
.figures-3 { grid-template-columns: repeat(3, 1fr); }

/* ---------------- 03 · supply ---------------- */
.supply-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 14px; }
.supply svg { display: block; width: 100%; height: auto; }
.supply figcaption { margin-top: 12px; font: 400 11.5px/1.4 var(--mono); color: var(--muted); }
.sv-s0 { stop-color: var(--ink); stop-opacity: .14; }
.sv-s1 { stop-color: var(--ink); stop-opacity: .01; }
.sv-grid { stroke: var(--line-2); stroke-width: 1; }
.sv-axis { font: 400 11px var(--mono); fill: var(--muted); }
.sv-area { fill: url(#sv-rock); }
.sv-line { fill: none; stroke: var(--ink); stroke-width: 1.6; }
.sv-cap { stroke: var(--ink); stroke-width: 1; stroke-dasharray: 3 4; }
.sv-dot { fill: var(--sheet); stroke: var(--ink); stroke-width: 1.6; }
.sv-tag { font: 500 11px var(--mono); fill: var(--ink-2); }
.spec { padding: 6px 22px; }
.spec div { display: flex; justify-content: space-between; gap: 18px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.spec div:last-child { border-bottom: 0; }
.spec dt { color: var(--muted); }
.spec dd { color: var(--ink); text-align: right; font-family: var(--mono); font-size: 13px; }

/* ---------------- 04 · mine ---------------- */
.mine-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 72px; align-items: start; }
.mine-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; position: sticky; top: calc(var(--top) + 40px); }
.steps { counter-reset: st; border-bottom: 1px solid var(--line-2); }
.steps li { counter-increment: st; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; justify-items: start; padding: 26px 0 26px 60px; border-top: 1px solid var(--line-2); position: relative; }
.steps li::before { content: counter(st, decimal-leading-zero); position: absolute; left: 0; top: 28px; font: 700 11px/1 var(--mono); color: var(--paper); background: var(--ink); padding: 4px 6px; }
.steps h3 { font: 500 23px/1.2 var(--sans); letter-spacing: -.01em; color: var(--ink); }
.steps p { font-size: 15px; }
.steps code { color: var(--ink); }
.cmd { display: flex; align-items: center; gap: 8px; width: 100%; padding: 5px 5px 5px 13px; background: var(--sheet); border: 1px solid var(--line-2); }
.cmd code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; color: var(--ink); font-size: 12.5px; scrollbar-width: none; }
.cmd-quiet { background: transparent; }
.term { background: #0b0b0b; color: #cfcfcc; padding: 16px 20px 20px; border: 1px solid var(--ink); }
.term figcaption { font: 600 9.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: #7d7d7a; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.term pre { font: 400 12.5px/1.85 var(--mono); white-space: pre-wrap; min-height: 15em; }
.term .c { color: #fff; font-weight: 700; }
.term .t { color: #7d7d7a; }
.term .g { color: #fff; }
.cursor { display: inline-block; width: .6em; height: 1.1em; vertical-align: -.2em; background: #fff; animation: beat 1s steps(2) infinite; }

/* ---------------- 05 · field book ---------------- */
.acc { display: flex; align-items: center; gap: 10px; justify-self: end; font: 600 10.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.acc:has(.ok) { color: var(--ink); }
.acc:has(.ok) .dot { background: var(--ink); }
.console { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.console .panel { display: grid; gap: 14px; align-content: start; }
.console .panel > .p-h { margin-bottom: 0; }
#connect-box, #keybox { display: grid; gap: 14px; justify-items: start; }
.p-lead { font: 500 20px/1.25 var(--sans); letter-spacing: 0; color: var(--ink); }
.panel p { font-size: 14.5px; }
.wallets { display: grid; gap: 6px; width: 100%; }
.wallets button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 13px; background: var(--paper); border: 1px solid var(--line-2); text-align: left; color: var(--ink); transition: background-color .18s, color .18s, transform .35s var(--spring); }
.wallets button:hover { background: var(--ink); color: var(--paper); transform: translateX(3px); }
.wallets img { width: 22px; height: 22px; }
.kv { display: grid; gap: 12px; width: 100%; }
.kv dt { font: 600 9.5px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.kv dd { color: var(--ink); font-family: var(--mono); font-size: 13.5px; }
.kv-row { grid-template-columns: repeat(3, 1fr); padding-top: 14px; border-top: 1px solid var(--line); }
.keyrow { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.keyrow code { flex: 1 1 200px; overflow-wrap: anywhere; font-size: 12.5px; }
.bal { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font: 600 12px var(--mono); color: var(--muted); }
.bal b { font: 900 clamp(38px, 4.2vw, 56px)/1 var(--dot); letter-spacing: 0; color: var(--ink); }
.wingmark { font: 700 9.5px/1 var(--mono); letter-spacing: .12em; color: var(--paper); background: var(--ink); padding: 4px 6px; }
.check { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 11px 13px; border: 1px dashed var(--line-3); background: var(--paper); font-size: 13.5px; color: var(--muted); }
.check.due { border: 1px solid var(--ink); color: var(--ink); }
.wd-row { display: flex; gap: 8px; flex-wrap: wrap; }
.wd-list { display: grid; gap: 6px; font: 400 12px/1.5 var(--mono); color: var(--muted); }
.wd-list a { color: var(--ink); text-decoration: underline; }

/* ---------------- 06 · the record ---------------- */
.netstats { display: flex; gap: 36px; justify-self: end; }
.netstats dt { font: 600 9.5px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.netstats dd { font: 900 26px/1.1 var(--dot); color: var(--ink); }
.hour { margin-bottom: 14px; }
.hour figcaption { display: flex; justify-content: space-between; gap: 16px; font: 600 10px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 150px; border-bottom: 1px solid var(--ink); }
.bars i { flex: 1; height: calc(var(--v, .04) * 100%); background: var(--ink-2); transition: height .8s var(--ease), background-color .15s; }
.bars i.empty { background: var(--line-2); }
.bars i.now { background: repeating-linear-gradient(0deg, var(--ink) 0 2px, transparent 2px 4px); }
.bars i:hover { background: var(--ink); }
.tables { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tbl-wrap { min-width: 0; overflow-x: auto; }
.tbl-wrap h3 { font: 800 11px/1.2 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink); margin-bottom: 14px; }
.tbl { width: 100%; border-collapse: collapse; font: 400 12.5px var(--mono); font-variant-numeric: tabular-nums; }
.tbl th { text-align: left; font: 600 9.5px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding: 0 10px 10px 0; border-bottom: 1px solid var(--ink); }
.tbl td { padding: 10px 10px 10px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; }
.tbl td.empty { color: var(--muted); white-space: normal; font-family: var(--sans); }
.tbl tr.click { cursor: pointer; transition: background-color .15s, color .15s; }
.tbl tr.click:hover td, .tbl tr.click[aria-expanded="true"] td { background: var(--ink); color: var(--paper); }
.tbl tr.me td { color: var(--ink); font-weight: 700; }
.tbl em { font: 700 8.5px/1 var(--mono); font-style: normal; letter-spacing: .1em; color: var(--paper); background: var(--ink); padding: 3px 4px; margin-left: 4px; }
.tbl .detail td { background: var(--paper); white-space: normal; }
.payouts { display: grid; grid-template-columns: 1fr auto auto; gap: 6px 18px; padding: 4px 0 8px; }
.payouts b { grid-column: 1 / -1; font: 700 12px/1.4 var(--mono); color: var(--ink); }
.payouts span { font-size: 12px; }

/* ---------------- 07 · the dial ---------------- */
.open-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 72px; align-items: center; }
.dial-wrap { position: relative; border: 1px solid var(--line-2); background: var(--sheet); }
.dial { display: block; width: 100%; aspect-ratio: 1; }
.dial-wrap figcaption { display: flex; justify-content: space-between; gap: 16px; padding: 10px 13px; border-top: 1px solid var(--line-2); font: 600 9.5px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.dial-wrap figcaption span:first-child { color: var(--ink); }
.open-body { display: grid; gap: 24px; justify-items: start; }
.open-body .kicker { margin-bottom: -6px; }
.next { font: 600 11px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.next b { color: var(--paper); background: var(--ink); padding: 2px 5px; }
.display-sm { font-size: clamp(40px, 5vw, 70px); margin: 0; }
.open-body .figures { width: 100%; }
.token { display: grid; gap: 10px; width: 100%; }
.token div { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 10px; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.token dt { color: var(--muted); }
.token dd { display: flex; align-items: center; gap: 8px; color: var(--ink); min-width: 0; font-family: var(--mono); font-size: 13px; }
.token code { overflow-wrap: anywhere; }
.burns { display: grid; gap: 8px; font-size: 14px; }
.burns b { font: 900 26px var(--dot); color: var(--ink); }
.burns ul { display: grid; gap: 4px; font: 400 12px var(--mono); }
.burns a { color: var(--ink); text-decoration: underline; }

/* ---------------- 08 · faq ---------------- */
.faq-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 40px 72px; align-items: start; }
.qa details { border-top: 1px solid var(--line-2); }
.qa details:last-child { border-bottom: 1px solid var(--line-2); }
.qa summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 20px 10px 20px 0; font: 500 18px/1.35 var(--sans); letter-spacing: -.01em; color: var(--ink); transition: background-color .15s, color .15s, padding .35s var(--ease); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; flex: none; font: 400 18px/1 var(--mono); transition: transform .5s var(--spring); }
.qa summary:hover { background: var(--ink); color: var(--paper); padding-left: 12px; }
.qa details[open] summary::after { transform: rotate(45deg); }
.qa .ans { overflow: hidden; }
.qa .ans p { padding: 4px 40px 22px 0; max-width: 66ch; font-size: 15px; }

/* ---------------- footer ---------------- */
.foot { border-top: 1px solid var(--ink); padding: 52px 0 36px; }
.foot-grid { display: grid; grid-template-columns: 1fr auto; gap: 26px 40px; align-items: end; }
.foot-word { grid-column: 1 / -1; font: 900 clamp(52px, 13vw, 190px)/.85 var(--dot); letter-spacing: -.01em; text-transform: uppercase; color: var(--ink); overflow: hidden; }
.title-block { display: grid; grid-auto-flow: column; grid-auto-columns: auto; border: 1px solid var(--ink); justify-self: start; }
.title-block p, .title-block .tb-x { display: grid; gap: 4px; padding: 9px 15px; border-right: 1px solid var(--line-2); }
.title-block > :last-child { border-right: 0; }
.title-block .tb-x { color: var(--ink); transition: background-color .15s, color .15s; }
.title-block .tb-x i { font-style: normal; display: inline-block; transition: transform .2s; }
.title-block .tb-x:hover { background: var(--ink); }
.title-block .tb-x:hover span, .title-block .tb-x:hover b { color: var(--paper); }
.title-block .tb-x:hover i { transform: translate(2px, -2px); }
.title-block .tb-x[hidden] { display: none; }
.title-block span { font: 600 9px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.title-block b { font: 700 12.5px/1.2 var(--mono); color: var(--ink); }
.foot-links { display: flex; gap: 6px; font: 600 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; justify-self: end; }
.foot-links a { color: var(--ink); border: 1px solid var(--line-2); padding: 8px 10px; transition: background-color .15s, color .15s; }
.foot-links a:hover { background: var(--ink); color: var(--paper); }
.fine { grid-column: 1 / -1; font-size: 12.5px; color: var(--muted); padding-top: 18px; border-top: 1px solid var(--line-2); }

.js-motion .steps li { will-change: transform, opacity; }
.head-row > *, .round-grid > *, .supply-grid > *, .mine-grid > *, .open-grid > *, .faq-grid > *, .tables > *, .console > * { min-width: 0; }

/* ---------------- smaller screens ---------------- */
@media (max-width: 1180px) {
  .nav { display: none; }
  .dash { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-copy { width: min(480px, 46%); }
}
@media (max-width: 900px) {
  .lab-head { grid-template-columns: 1fr; gap: 12px; }
  .plaque { grid-template-columns: repeat(3, 1fr); gap: 10px 12px; }
  .st-live { grid-column: 1 / -1; }
  .st-live .live { min-height: 0; }
  .stage { height: auto; overflow: visible; border-bottom: 0; }
  .lab { position: relative; height: clamp(360px, 96vw, 560px); }
  .formula { display: none; }
  .hero-copy { position: relative; right: auto; bottom: auto; width: auto; margin: 0 var(--gut); }
  .head-row, .round-grid, .supply-grid, .mine-grid, .open-grid, .faq-grid, .tables, .console { grid-template-columns: 1fr; }
  .mine-head { position: static; }
  .acc, .netstats { justify-self: start; }
  .dial-wrap { max-width: 520px; }
}
@media (max-width: 560px) {
  .top { gap: 10px; }
  .btn-top { display: none; }
  .plaque { grid-template-columns: 1fr 1fr; }
  .dash { grid-template-columns: minmax(0, 1fr); }
  .pn.big { grid-column: auto; grid-row: span 1; height: 420px; }
  .spark { display: none; }
  .display { font-size: clamp(34px, 10.4vw, 46px); }
  .acts .btn { flex: 1 1 auto; }
  .figures-3 { grid-template-columns: 1fr 1fr; }
  .kv-row { grid-template-columns: 1fr 1fr; }
  .steps li { padding-left: 48px; }
  .panel { padding: 18px; }
  .spec { padding: 4px 16px; }
  .spec div { flex-direction: column; gap: 2px; }
  .spec dd { text-align: left; }
  .title-block { grid-auto-flow: row; grid-template-columns: 1fr; width: 100%; }
  .title-block p, .title-block .tb-x { border-right: 0; border-bottom: 1px solid var(--line-2); grid-template-columns: 1fr auto; align-items: center; }
  .title-block > :last-child { border-bottom: 0; }
  .foot-grid { grid-template-columns: 1fr; }
  .foot-links { justify-self: start; }
}

/* ---------------- plates: transitions between sections ---------------- */
.band > .wrap { position: relative; z-index: 1; }
.plate-grid { position: absolute; inset: -60px 0; z-index: 0; pointer-events: none; will-change: transform;
  background-image: radial-gradient(circle at 1px 1px, var(--line-3) 0.8px, transparent 1.2px); background-size: 24px 24px; opacity: .32;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent); mask-image: linear-gradient(180deg, transparent, #000 22%, #000 78%, transparent); }
.reg { position: absolute; width: 13px; height: 13px; pointer-events: none; will-change: transform, opacity; }
.reg::before, .reg::after { content: ""; position: absolute; background: var(--ink); }
.reg::before { left: 6px; top: 0; width: 1px; height: 13px; }
.reg::after { top: 6px; left: 0; height: 1px; width: 13px; }
.reg-tl { left: calc(var(--gut) - 30px); top: -34px; }
.reg-tr { right: calc(var(--gut) - 30px); top: -34px; }
.reg-bl { left: calc(var(--gut) - 30px); bottom: -34px; }
.reg-br { right: calc(var(--gut) - 30px); bottom: -34px; }


.gauge { position: fixed; z-index: 30; right: 14px; top: calc(var(--top) + 18vh); height: 52vh; width: 30px; pointer-events: none; opacity: 0; transform: translateX(8px); transition: opacity .5s, transform .6s var(--ease); }
.gauge.on { opacity: 1; transform: none; }
.g-scale { position: absolute; right: 0; top: 0; bottom: 0; width: 7px; border-right: 1px solid var(--line-3);
  background: repeating-linear-gradient(180deg, var(--line-3) 0 1px, transparent 1px 8px) right / 4px 100% no-repeat, repeating-linear-gradient(180deg, var(--ink) 0 1px, transparent 1px 40px) right / 7px 100% no-repeat; }
.g-stops li { position: absolute; right: 10px; top: calc(var(--f, 0) * 100%); transform: translateY(-50%); font: 500 8px/1 var(--mono); color: var(--muted); }
.g-mark { position: absolute; right: -2px; top: 0; will-change: transform; }
.g-mark::after { content: ""; position: absolute; right: 0; top: -1px; width: 16px; height: 2px; background: var(--ink); }
.g-no { position: absolute; right: 36px; top: -9px; height: 18px; overflow: hidden; padding: 0 4px; background: var(--ink); color: var(--paper); font: 900 13px/18px var(--dot); }
.g-no span { display: block; }
@media (max-width: 1180px) { .gauge { display: none; } }
@media (max-width: 560px) { .reg { display: none; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
    .reg { opacity: 1; }
}
.spark.flat { display: none; } /* intro tweens set visibility inline, so hide with display */
.figures dd { white-space: nowrap; }
.figures-3 dd { font-size: clamp(22px, 2vw, 28px); }
