@font-face { font-family: "Geist"; src: url("/fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

/* ============================================================ tokens */
:root {
  --bg: #f4f2ec;
  --bg-alt: #ebe8df;
  --panel: #fbfaf6;
  --ink: #14130f;
  --ink-2: #3a382f;
  --muted: #6d695e;
  --faint: #a7a295;
  --line: #d8d4c8;
  --line-soft: #e4e0d5;
  --match: #157a49;
  --match-ink: #0f5d38;
  --match-bg: #d4eadb;
  --match-hi: #8fd3a8;
  --work: #a8670d;
  --work-bg: #f4e3c4;
  --miss: #b02a2f;
  --miss-bg: #f5d9d9;
  --open: #cfcabd;
  --sel: rgba(20, 19, 15, .11);
  --term: #15140f;
  --term-ink: #e9e7df;
  --term-muted: #8f8b80;
  --term-line: #2a2924;
  --btn-ink: #f4f2ec;
  --shadow: 0 1px 0 var(--line-soft), 0 34px 64px -44px rgba(20, 18, 10, .45);
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 14px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0d0b;
    --bg-alt: #121210;
    --panel: #151512;
    --ink: #ecebe5;
    --ink-2: #c6c4bb;
    --muted: #8e8a7f;
    --faint: #57544c;
    --line: #2a2924;
    --line-soft: #1f1e1a;
    --match: #4fcf8c;
    --match-ink: #86e3b0;
    --match-bg: #11301f;
    --match-hi: #23774a;
    --work: #e5b04b;
    --work-bg: #33260e;
    --miss: #f07b7e;
    --miss-bg: #361718;
    --open: #34332d;
    --sel: rgba(236, 235, 229, .13);
    --term: #181815;
    --term-line: #2c2b26;
    --btn-ink: #0d0d0b;
    --shadow: 0 1px 0 var(--line-soft), 0 34px 64px -44px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}

/* ============================================================ base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
::selection { background: var(--match-bg); color: var(--ink); }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
code, pre, .mono { font-family: var(--mono); }
code { font-size: .9em; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 760px) { .wrap { padding: 0 40px; } }
:focus-visible { outline: 2px solid var(--match); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 50; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }

/* ============================================================ header */

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font: 500 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase;
  padding: 5px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap;
}
.tag-warn { color: var(--work); border-color: color-mix(in srgb, var(--work) 40%, transparent); background: var(--work-bg); }

.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.top-inner { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 500 16px/1 var(--mono); text-decoration: none; letter-spacing: -.01em; }
.brand .word span { color: var(--match); }
.brand svg { width: 18px; height: 18px; fill: var(--match); flex: none; }
.brand svg .hollow { fill: none; stroke: var(--ink); stroke-width: 1.5; }
.nav { display: flex; align-items: center; gap: 2px; }
.nav a { text-decoration: none; font-size: 14px; color: var(--ink-2); padding: 8px 11px; border-radius: 8px; transition: background .15s, color .15s; }
.nav a:hover { color: var(--ink); background: var(--bg-alt); }
.nav .nav-cta { color: var(--btn-ink); background: var(--ink); margin-left: 8px; padding: 8px 14px; }
.nav .nav-cta:hover { color: var(--btn-ink); background: var(--ink-2); }
@media (max-width: 760px) { .nav a:not(.nav-cta) { display: none; } }
@media (max-width: 640px) { .nav-keep a:not(.nav-cta) { display: inline-block; padding: 8px 6px; font-size: 13px; } }

/* ============================================================ shared bits */
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--open); flex: none; }
.dot.on { background: var(--match); box-shadow: 0 0 0 4px var(--match-bg); animation: breathe 2.4s ease-in-out infinite; }
.dot.off { background: var(--muted); }
@keyframes breathe { 50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--match-bg) 40%, transparent); } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px;
  border-radius: 11px; border: 1px solid var(--line); text-decoration: none; font-weight: 500; font-size: 15px; white-space: nowrap;
  transition: background .15s, border-color .15s, transform .15s;
}
.btn:hover { border-color: var(--ink-2); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: var(--btn-ink); border-color: var(--ink); }
.btn-primary:hover { background: var(--ink-2); border-color: var(--ink-2); }
.btn-primary span { transition: transform .2s; }
.btn-primary:hover span { transform: translateX(3px); }

.band { padding: 88px 0; border-top: 1px solid var(--line); }
@media (min-width: 960px) { .band { padding: 128px 0; } }
.band-alt { background: var(--bg-alt); }
.label { font: 500 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
h2 { font-size: clamp(2rem, 4.8vw, 3.5rem); font-weight: 600; letter-spacing: -.04em; line-height: 1.04; text-wrap: balance; }
h3 { font-size: 18px; font-weight: 600; letter-spacing: -.015em; line-height: 1.3; }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head-split { max-width: none; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 24px; }
.sub { margin-top: 16px; color: var(--ink-2); font-size: 18px; text-wrap: pretty; }

.sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 7px; vertical-align: -1px; }
.sw-matched { background: var(--match); } .sw-claimed { background: var(--work); } .sw-open { background: var(--open); }
.legend { display: inline-flex; flex-wrap: wrap; gap: 4px 16px; }

/* syntax (deliberately quiet: weight and grey levels, colour is reserved for match state) */
.tk { color: var(--ink); font-weight: 600; }
.tt { color: var(--muted); }
.tn { color: var(--ink); }
.tc { color: var(--faint); }

/* ============================================================ hero */
.hero { padding: 56px 0 0; }
@media (min-width: 960px) { .hero { padding: 88px 0 0; } }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 400 13px/1.4 var(--mono); color: var(--muted); margin-bottom: 26px; }
.hero-title {
  font-size: clamp(2.9rem, 8.2vw, 6.9rem); font-weight: 600; line-height: .95; letter-spacing: -.05em;
  text-wrap: balance; max-width: 12.5em;
}
.mark {
  background: linear-gradient(transparent 60%, var(--match-bg) 60%, var(--match-bg) 90%, transparent 90%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 .03em;
}
.hero-row { display: grid; gap: 28px; margin-top: 34px; align-items: end; }
@media (min-width: 960px) { .hero-row { grid-template-columns: minmax(0, 37em) auto; justify-content: space-between; margin-top: 40px; } }
.lede { font-size: clamp(17px, 1.55vw, 19.5px); color: var(--ink-2); text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 440px) { .actions .btn { flex: 1 1 auto; padding: 0 16px; font-size: 14.5px; } }

/* ---------- the byte field */
.field { margin: 56px 0 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
@media (min-width: 960px) { .field { margin-top: 72px; } }
.field-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; padding: 13px 18px; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.field-head b { font-weight: 500; }
.field-count b { font-variant-numeric: tabular-nums; color: var(--ink); }
.field-done { margin-left: 6px; color: var(--match); opacity: 0; transition: opacity .5s; }
.field.complete .field-done { opacity: 1; }

.field-body { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 16px; padding: 36px 18px 20px; }
.field-offsets { margin: 0; font: 10px/21px var(--mono); color: var(--faint); text-align: right; user-select: none; }
.field-grid { --cols: 64; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); font: 400 10.5px/21px var(--mono); }
.field-grid span { text-align: center; color: var(--muted); cursor: default; transition: background-color .4s, color .4s, box-shadow .2s; }
.field-grid span.pad { color: var(--faint); opacity: .5; }
.field-grid span.claimed { background: var(--work-bg); color: var(--work); }
.field-grid span.matched { background: var(--match-bg); color: var(--match-ink); }
.field-grid span.hl { box-shadow: inset 0 0 0 40px var(--sel); color: var(--ink); }
.field-grid.intro span { animation: reveal .5s ease-out calc(var(--g) * .55ms) backwards; }
.field-grid span.pulse { animation: pulse .65s ease-out calc(var(--k) * 4ms); }
.field-grid span.flash { animation: flash 1s ease-out calc(var(--k) * 2.5ms); }
.field.complete .field-grid span:not(.pad) { animation: wave 1.1s ease-out calc(var(--g) * 1.1ms); }
@keyframes reveal { from { opacity: 0; } }
@keyframes pulse { from { box-shadow: inset 0 0 0 40px color-mix(in srgb, var(--work) 38%, transparent); } }
@keyframes flash { from { background-color: var(--match-hi); color: var(--ink); } }
@keyframes wave { from { background-color: var(--match-hi); } }

.field-tags { position: absolute; inset: 0; pointer-events: none; }
.atag {
  position: absolute; top: 0; left: 0; display: inline-flex; align-items: center; gap: 7px; height: 21px; padding: 0 8px;
  border-radius: 6px; background: var(--ink); color: var(--bg); font: 500 11px/1 var(--mono); white-space: nowrap;
  transform: translate3d(var(--x, 0), var(--y, 0), 0); box-shadow: 0 6px 16px -8px rgba(0, 0, 0, .55);
  transition: transform .45s cubic-bezier(.2, .8, .2, 1), opacity .3s;
}
.atag::after { content: ""; position: absolute; left: 7px; bottom: -3px; width: 7px; height: 7px; background: inherit; transform: rotate(45deg); border-radius: 1px; }
.atag.flip::after { left: auto; right: 7px; }
.atag i { width: 7px; height: 7px; border-radius: 2px; background: var(--work); }
.atag.done i { background: var(--match); }
.atag b { font-weight: 400; opacity: .72; }
.atag.enter { opacity: 0; }

.inspector { display: grid; gap: 18px 36px; padding: 20px 18px; border-top: 1px solid var(--line-soft); }
@media (min-width: 960px) { .inspector { grid-template-columns: 250px minmax(0, 1fr); padding: 22px 24px 22px 18px; } }
.ins-name { font-size: 19px; font-weight: 500; letter-spacing: -.02em; overflow-wrap: anywhere; }
.ins-info { margin-top: 4px; color: var(--muted); font-size: 13.5px; }
.ins-off { color: var(--faint); font-size: 12px; }
.ins-status { margin-top: 14px; font-size: 13.5px; color: var(--ink-2); line-height: 1.8; }
.chip { display: inline-block; font: 500 11px/1 var(--mono); letter-spacing: .05em; text-transform: uppercase; padding: 4px 7px; border-radius: 5px; background: var(--bg-alt); color: var(--muted); margin-right: 6px; vertical-align: 1px; }
.chip-match { background: var(--match-bg); color: var(--match-ink); }
.chip-work { background: var(--work-bg); color: var(--work); }
.ins-code { display: grid; gap: 18px 28px; min-width: 0; }
@media (min-width: 720px) { .ins-code { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.ins-col { min-width: 0; }
.ins-label { font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.ins-asm, .ins-src {
  margin: 0; font: 12.5px/1.65 var(--mono); color: var(--ink-2); white-space: pre; overflow: hidden;
  height: calc(12.5px * 1.65 * 9); -webkit-mask-image: linear-gradient(#000 62%, transparent); mask-image: linear-gradient(#000 62%, transparent);
}
.ins-src { transition: filter .5s, opacity .5s; }
.ins-src.locked { filter: blur(4px); opacity: .5; user-select: none; }
.ao { color: var(--faint); }
.ab { color: var(--muted); }
@media (max-width: 719px) { .ins-asm-col { display: none; } }

.field-cap {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 28px; padding: 13px 18px;
  border-top: 1px solid var(--line-soft); font-size: 12.5px; color: var(--muted);
  background: color-mix(in srgb, var(--bg-alt) 45%, var(--panel));
}

@media (max-width: 1099px) { .field-grid { --cols: 48; font-size: 9.5px; line-height: 20px; } .field-offsets { line-height: 20px; } }
@media (max-width: 719px) {
  .field-body { grid-template-columns: minmax(0, 1fr); padding: 34px 12px 14px; }
  .field-offsets { display: none; }
  .field-grid { --cols: 40; gap: 2px; font-size: 0; line-height: 0; }
  .field-grid span { aspect-ratio: 1; border-radius: 2px; background: var(--line-soft); }
  .field-grid span.pad { background: transparent; }
  .field-grid span.claimed { background: var(--work); }
  .field-grid span.matched { background: var(--match); }
  @keyframes flash { from { background-color: var(--ink); } }
  @keyframes wave { from { background-color: var(--ink); } }
}

/* ============================================================ 01 idea */
.equation {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: .05em .42em; margin: 4px 0 64px;
  font-size: clamp(1.25rem, 4.25vw, 3.8rem); letter-spacing: -.045em; line-height: 1.15; color: var(--muted);
}
.eq-arg { color: var(--ink); }
.eq-op { display: inline-block; min-width: .75em; text-align: center; color: var(--match); transition: color .25s, transform .3s cubic-bezier(.2, .8, .2, 1.4); }
.eq-op.ne { color: var(--miss); }
.eq-op.pop { transform: scale(1.18); }
.idea-grid { display: grid; gap: 44px; }
@media (min-width: 960px) { .idea-grid { grid-template-columns: 5fr 6fr; gap: 88px; } }
.idea-lead p { margin-top: 20px; color: var(--ink-2); font-size: 18px; text-wrap: pretty; }
.idea-points { list-style: none; margin: 0; padding: 0; }
.idea-points li { display: grid; grid-template-columns: 52px 1fr; padding: 24px 0; border-top: 1px solid var(--line); }
.idea-points li:last-child { border-bottom: 1px solid var(--line); }
.ip-n { grid-row: span 2; color: var(--muted); font-size: 13px; line-height: 1.9; }
.idea-points p { margin-top: 6px; color: var(--ink-2); }

/* ============================================================ 02 walkthrough */
.walk { display: grid; gap: 28px; }
@media (min-width: 1000px) { .walk { grid-template-columns: 340px minmax(0, 1fr); gap: 56px; align-items: start; } }
.walk-steps { display: grid; }
.ws {
  position: relative; display: grid; grid-template-columns: 44px 1fr; text-align: left; background: none; border: 0;
  border-top: 1px solid var(--line); padding: 20px 0 18px; cursor: pointer; color: inherit; font: inherit;
}
.ws:last-child { border-bottom: 1px solid var(--line); }
.ws-n { grid-row: span 2; font-size: 12.5px; color: var(--muted); line-height: 1.9; }
.ws-t { font-weight: 600; font-size: 18px; letter-spacing: -.015em; color: var(--muted); transition: color .2s; }
.ws:hover .ws-t { color: var(--ink-2); }
.ws-d { grid-column: 2; margin-top: 6px; font-size: 15px; color: var(--ink-2); display: none; }
.ws[aria-selected="true"] .ws-t { color: var(--ink); }
.ws[aria-selected="true"] .ws-d { display: block; }
.ws-bar { position: absolute; left: 0; right: 0; top: -1px; height: 2px; overflow: hidden; }
.ws-bar i { display: block; height: 100%; background: var(--ink); transform: scaleX(0); transform-origin: left; }
.ws[aria-selected="true"] .ws-bar i { animation: fillbar var(--dur, 6.5s) linear forwards; }
.walk.paused .ws-bar i { animation-play-state: paused; }
.walk.manual .ws[aria-selected="true"] .ws-bar i { animation: none; transform: scaleX(1); }
@keyframes fillbar { to { transform: scaleX(1); } }
.walk-desc { display: none; }
@media (max-width: 999px) {
  .walk-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .ws { grid-template-columns: 1fr; border: 0; border-top: 2px solid var(--line); padding: 12px 0 0; }
  .ws:last-child { border-bottom: 0; }
  .ws-n { grid-row: auto; line-height: 1.4; }
  .ws-t { font-size: 14px; }
  .ws[aria-selected="true"] .ws-d { display: none; }
  .walk-desc { display: block; color: var(--ink-2); font-size: 15.5px; min-height: 3.2em; }
}

.wp { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; min-width: 0; }
.wp-head { display: flex; justify-content: space-between; gap: 12px; padding: 13px 18px; border-bottom: 1px solid var(--line-soft); font-size: 12.5px; }
.wp-head b { font-weight: 500; }
.wp-log {
  padding: 12px 18px; font-size: 12.5px; line-height: 1.75; border-bottom: 1px solid var(--line-soft); white-space: pre-wrap;
  background: color-mix(in srgb, var(--bg-alt) 45%, var(--panel)); min-height: calc(12.5px * 1.75 * 2 + 24px);
}
.wp-log .lo { color: var(--muted); }
.wp-log .li { color: var(--ink); }
.wp-log .lm { color: var(--match); }
.wp-body { min-height: 372px; }
.wp-src { margin: 0; padding: 16px 18px; font: 13px/1.6 var(--mono); color: var(--ink-2); border-bottom: 1px solid var(--line-soft); overflow-x: auto; }
.wp-asm { margin: 0; padding: 16px 18px; font: 13px/1.75 var(--mono); color: var(--ink-2); overflow-x: auto; }
.wp-label { padding: 16px 18px 0; font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.wp-note { padding: 4px 18px 18px; font-size: 14px; color: var(--muted); }
.wp-label-flush { padding: 0 0 10px; }
.dt { padding: 10px 0 12px; font: 12.5px/1.6 var(--mono); }
.dr { display: grid; grid-template-columns: 30px minmax(0, 1fr) minmax(0, 1fr); padding: 1px 18px 1px 8px; }
.dr span { white-space: pre; overflow: hidden; text-overflow: ellipsis; }
.dr span:first-child { text-align: center; color: var(--muted); }
.dr.head { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); padding-bottom: 6px; }
.dr.bad { background: var(--miss-bg); }
.dr.bad span:first-child, .dr.bad .c { color: var(--miss); }
.dr.soft { background: var(--work-bg); }
.dr.soft span:first-child, .dr.soft .c { color: var(--work); }
.dr.ok .c { color: var(--ink-2); }
.dr.match { background: var(--match-bg); }
.dr.match span:first-child { color: var(--match); }
.wp-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; padding: 16px 18px; border-top: 1px solid var(--line-soft); }
.spark { display: flex; align-items: flex-end; gap: 8px; }
.sp { display: grid; justify-items: center; gap: 6px; }
.sp i { display: block; width: 26px; height: 48px; border-radius: 3px; background: var(--bg-alt); position: relative; overflow: hidden; }
.sp i::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--h, 0) * 1%); background: var(--ink-2); border-radius: 3px 3px 0 0; transition: height .6s cubic-bezier(.2, .8, .2, 1), background .3s; }
.sp.zero i::after { height: 4px; background: var(--match); }
.sp.off i::after { height: 0; }
.sp span { font: 11px/1 var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.sp.zero span { color: var(--match); }
.wp-score { text-align: right; font-size: 12.5px; color: var(--muted); }
.wp-score b { display: block; font: 600 30px/1 var(--mono); color: var(--ink); letter-spacing: -.03em; font-variant-numeric: tabular-nums; margin-bottom: 4px; }
.wp-score.match b { color: var(--match); }
@media (max-width: 480px) {
  .dt, .wp-src, .wp-asm { font-size: 11.5px; }
  .dr { grid-template-columns: 22px minmax(0, 1fr) minmax(0, 1fr); padding-right: 10px; padding-left: 4px; }
  .sp i { width: 20px; }
}

/* ============================================================ 03 live */
.live-pill { display: inline-flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--ink-2); padding: 8px 13px; border: 1px solid var(--line); border-radius: 999px; }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--ink); }
.kpis > div { padding: 18px 0 24px; border-bottom: 1px solid var(--line); min-width: 0; }
.kpis > div:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
@media (min-width: 860px) {
  .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .kpis > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
}
.kpis dt { font-size: 13px; color: var(--muted); }
.kpis dd { margin: 10px 0 0; font: 500 clamp(34px, 4.6vw, 56px)/1 var(--mono); letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.kpis dd span { font-size: .45em; color: var(--muted); margin-left: 3px; letter-spacing: 0; }
.live-proj { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 20px; margin: 36px 0 12px; }
.memmap { display: flex; gap: 2px; height: 46px; border-radius: 6px; overflow: hidden; }
.memmap i { display: block; min-width: 3px; background: var(--open); transition: background .4s; }
.memmap i.matched { background: var(--match); }
.memmap i.claimed { background: var(--work); animation: blink 1.8s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .5; } }
.live-grid { display: grid; gap: 36px; margin-top: 40px; }
@media (min-width: 960px) { .live-grid { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 56px; } }
.ftable-wrap { min-width: 0; overflow-x: auto; }
.ftable { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.ftable th { text-align: left; font-weight: 500; font-size: 12px; color: var(--muted); padding: 0 10px 10px 0; border-bottom: 1px solid var(--line); }
.ftable td { padding: 9px 10px 9px 0; border-bottom: 1px solid var(--line-soft); white-space: nowrap; }
.ftable .n { text-align: right; font-family: var(--mono); font-size: 13px; font-variant-numeric: tabular-nums; }
.ftable td:first-child { font-family: var(--mono); font-size: 13px; }
.ftable tr.more td { color: var(--muted); font-family: var(--sans); }
.st { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-2); }
.st i { width: 8px; height: 8px; border-radius: 2px; background: var(--open); }
.st.matched i { background: var(--match); } .st.claimed i { background: var(--work); }
@media (max-width: 560px) { .ftable .hide-sm { display: none; } }
.live-side { display: grid; gap: 36px; align-content: start; }
.leaders, .feed { list-style: none; margin: 0; padding: 0; font-size: 14.5px; }
.leaders li, .feed li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line-soft); min-width: 0; }
.leaders li:first-child, .feed li:first-child { border-top: 0; }
.leaders .who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leaders .n { font-family: var(--mono); font-size: 13px; color: var(--muted); white-space: nowrap; }
.feed li { justify-content: flex-start; gap: 12px; }
.feed .t { font: 12.5px/1.75 var(--mono); color: var(--muted); min-width: 3.2ch; }
.feed .what { overflow-wrap: anywhere; color: var(--ink-2); }
.feed code { color: var(--ink); }
.feed .k-match { color: var(--match); }
.live.is-offline { display: none; }
.net-offline {
  display: grid; gap: 10px; justify-items: start; padding: 44px 28px; border: 1px dashed var(--line); border-radius: var(--radius);
  background: repeating-linear-gradient(-45deg, transparent 0 10px, var(--line-soft) 10px 11px);
}
.net-offline[hidden] { display: none; }
.off-tag { display: inline-flex; align-items: center; gap: 10px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.net-offline p { max-width: 36em; color: var(--ink-2); }

/* ============================================================ 04 spec sheet */
.spec { margin: 0; border-top: 1px solid var(--ink); }
.spec-row { display: grid; gap: 6px 36px; padding: 22px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 900px) { .spec-row { grid-template-columns: 240px minmax(0, 1fr) 290px; align-items: baseline; } }
.spec dt { font-weight: 600; font-size: 17px; letter-spacing: -.01em; }
.spec dd { margin: 0; color: var(--ink-2); }
.spec .spec-k { font-size: 12.5px; color: var(--muted); }
@media (min-width: 900px) { .spec .spec-k { text-align: right; white-space: nowrap; } }

/* ============================================================ 05 timeline */
.timeline { position: relative; list-style: none; margin: 0; padding: 0; display: grid; }
.tl { position: relative; padding: 0 0 36px 36px; }
.tl::before { content: ""; position: absolute; left: 7px; top: 18px; bottom: -2px; border-left: 2px dashed var(--line); }
.tl:last-child::before { display: none; }
.tl-now::before, .tl-done::before { border-left-style: solid; border-color: var(--ink); }
.tl-done .tl-dot { border-color: var(--ink); background: var(--ink); }
.tl-done .tl-when b { color: var(--ink); font-weight: 500; }
.tl-dot { position: absolute; left: 0; top: 2px; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line); background: var(--bg); }
.tl-now .tl-dot { border-color: var(--match); background: var(--match); box-shadow: 0 0 0 5px var(--match-bg); }
.tl-build .tl-dot { border-color: var(--work); }
.tl-build .tl-dot::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--work); animation: blink 1.8s ease-in-out infinite; }
.tl-when { font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.tl-now .tl-when b { color: var(--match); font-weight: 500; }
.tl-build .tl-when b { color: var(--work); font-weight: 500; }
.tl h3 { font-size: 21px; letter-spacing: -.02em; }
.tl ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.tl li li { position: relative; padding-left: 16px; color: var(--ink-2); font-size: 15.5px; }
.tl li li::before { content: ""; position: absolute; left: 0; top: .66em; width: 6px; height: 2px; background: var(--faint); }
@media (min-width: 960px) {
  .timeline { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
  .tl { padding: 40px 0 0; }
  .tl::before { left: 18px; right: -32px; top: 7px; bottom: auto; border-left: 0; border-top: 2px dashed var(--line); }
  .tl-now::before, .tl-done::before { border-top-style: solid; border-color: var(--ink); }
  .tl-dot { top: 0; }
}

/* ============================================================ 06 join */
.join { display: grid; gap: 44px; }
@media (min-width: 1000px) { .join { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 72px; align-items: center; } }
.join-steps { list-style: none; counter-reset: s; margin: 32px 0 0; padding: 0; display: grid; gap: 14px; }
.join-steps li { counter-increment: s; position: relative; padding-left: 40px; color: var(--ink-2); }
.join-steps li::before { content: counter(s, decimal-leading-zero); position: absolute; left: 0; top: 0; font: 500 12.5px/1.9 var(--mono); color: var(--muted); }
.join-steps b { color: var(--ink); font-weight: 600; }
.term { background: var(--term); color: var(--term-ink); border-radius: var(--radius); overflow: hidden; box-shadow: 0 40px 70px -40px rgba(0, 0, 0, .6); min-width: 0; }
@media (prefers-color-scheme: dark) { .term { border: 1px solid var(--line); } }
.term-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--term-line); }
.term-tabs { display: flex; gap: 2px; }
.term-tabs button { background: none; border: 0; color: var(--term-muted); font: 500 12.5px/1 var(--mono); padding: 8px 11px; border-radius: 7px; cursor: pointer; }
.term-tabs button:hover { color: var(--term-ink); }
.term-tabs button[aria-selected="true"] { color: var(--term-ink); background: rgba(255, 255, 255, .08); }
.term-body { margin: 0; padding: 22px 22px 26px; font: 13.5px/1.75 var(--mono); overflow-x: auto; }
.term .tc { color: var(--term-muted); }
.copy {
  font: 500 12px/1 var(--mono); color: var(--term-muted); background: transparent; border: 1px solid var(--term-line);
  border-radius: 7px; padding: 7px 10px; cursor: pointer; transition: color .15s, border-color .15s;
}
.copy:hover { color: var(--term-ink); border-color: var(--term-muted); }
.copy.done { color: #6ad59a; border-color: #2f6f4c; }

/* ============================================================ footer */
.foot { border-top: 1px solid var(--line); padding: 40px 0 calc(48px + env(safe-area-inset-bottom)); font-size: 14px; }
.foot-inner { display: grid; gap: 8px; }
.foot-inner p { max-width: 46em; }
.legal-links a { color: var(--ink-2); text-underline-offset: 3px; }
.foot-big { padding: 72px 0 0; overflow: hidden; }
.foot-cols { display: grid; gap: 36px 24px; grid-template-columns: 1fr 1fr; }
@media (min-width: 900px) { .foot-cols { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.foot-brand { grid-column: 1 / -1; display: grid; gap: 14px; align-content: start; }
@media (min-width: 900px) { .foot-brand { grid-column: auto; } }
.foot-cols nav, .foot-cols > div:not(.foot-brand) { display: grid; gap: 9px; align-content: start; font-size: 14.5px; }
.foot-cols .label { margin-bottom: 6px; }
.foot-cols a:not(.brand) { color: var(--ink-2); text-decoration: none; }
.foot-cols a:not(.brand):hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.foot-fine { margin-top: 56px; padding-top: 22px; border-top: 1px solid var(--line-soft); display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.foot-fine p { max-width: 62em; }
.foot-mark {
  display: inline-block; margin: 48px 0 0; font: 600 clamp(3rem, 12.4vw, 10.4rem)/.78 var(--sans); letter-spacing: -.065em;
  white-space: nowrap; color: var(--ink); user-select: none; transform: translateY(12%);
}
.foot-mark span { color: var(--line); }

/* ============================================================ legal pages + 404 */
.doc { border-top: 0; padding-top: 48px; }
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(2rem, 5vw, 3rem); letter-spacing: -.035em; margin-bottom: 28px; }
.prose h2 { font-size: 20px; letter-spacing: -.02em; margin: 40px 0 12px; scroll-margin-top: 80px; }
.prose h3 { font-size: 16.5px; letter-spacing: -.01em; margin: 26px 0 8px; }
.prose p, .prose li { color: var(--ink-2); font-size: 16px; }
.prose p + p { margin-top: 12px; }
.prose ul, .prose ol { margin: 12px 0; padding-left: 22px; display: grid; gap: 6px; }
.prose b { color: var(--ink); font-weight: 600; }
.prose a { text-underline-offset: 3px; }
.prose > p.small { margin-top: 48px; }
.nf { min-height: 100vh; display: grid; place-content: center; gap: 18px; max-width: 560px; }

/* ============================================================ motion preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ============================================================ small screens */
@media (max-width: 560px) {
  .hide-sm { display: none; }
  .hero { padding-top: 34px; }
  .eyebrow { margin-bottom: 18px; font-size: 12px; }
  .hero-row { margin-top: 24px; gap: 22px; }
  .actions .btn { height: 46px; }
  .field { margin-top: 36px; }
  .term-body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12.5px; padding: 18px; }
}

/* live: project switcher */
.proj-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.proj-tabs[hidden] { display: none; }
.proj-tabs button {
  font: 500 13px/1 var(--mono); color: var(--ink-2); background: transparent; border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 13px; cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.proj-tabs button:hover { border-color: var(--ink-2); }
.proj-tabs button[aria-selected="true"] { background: var(--ink); color: var(--btn-ink); border-color: var(--ink); }
.proj-tabs button span { color: var(--muted); margin-left: 6px; }
.proj-tabs button[aria-selected="true"] span { color: color-mix(in srgb, var(--btn-ink) 65%, transparent); }

/* ============================================================ function page */
.fnpage .label a { color: var(--muted); text-underline-offset: 3px; }
.fn-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 10px 24px; margin-bottom: 28px; }
.fn-head h1 { font-size: clamp(1.8rem, 5vw, 3rem); font-weight: 500; letter-spacing: -.04em; overflow-wrap: anywhere; }
.fn-status { color: var(--ink-2); font-size: 15px; }
.fn-kpis { margin-bottom: 44px; }
.fn-h2 { font-size: 20px; letter-spacing: -.02em; margin: 0 0 6px; }
.fn-chart { margin-bottom: 48px; }
.fn-chart-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 20px; }
.mk { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; vertical-align: -1px; background: var(--ink-2); }
.mk-donated { background: var(--panel); box-shadow: inset 0 0 0 2px var(--ink-2); }
.mk-match { background: var(--match); }
.chart { position: relative; margin-top: 14px; padding: 12px 14px 4px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart-empty { padding: 40px 0; text-align: center; color: var(--muted); }
.c-grid { stroke: var(--line-soft); stroke-width: 1; }
.c-axis { fill: var(--muted); font: 11px var(--mono); }
.c-line { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; }
.c-dot { fill: var(--ink-2); stroke: var(--panel); stroke-width: 2; cursor: pointer; }
.c-dot.c-donated { fill: var(--panel); stroke: var(--ink-2); }
.c-dot.c-match { fill: var(--match); }
.c-dot:focus { outline: none; stroke: var(--ink); stroke-width: 3; }
.c-hit { fill: transparent; cursor: pointer; }
.c-label { fill: var(--match-ink); font: 600 12px var(--mono); }
.c-tip { position: absolute; z-index: 2; min-width: 170px; padding: 8px 10px; border-radius: 8px; background: var(--ink); color: var(--bg);
  font: 12px/1.5 var(--mono); pointer-events: none; box-shadow: 0 8px 20px -10px rgba(0,0,0,.5); }
.fn-table { margin-top: 14px; font-size: 14px; }
.fn-table summary { cursor: pointer; color: var(--ink-2); }
.fn-table table { margin-top: 10px; }
.fn-code { display: grid; gap: 32px; margin-bottom: 48px; }
@media (min-width: 960px) { .fn-code { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.fn-code section { min-width: 0; }
.code-block { margin: 10px 0 0; padding: 16px 18px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  font: 12.5px/1.65 var(--mono); color: var(--ink-2); overflow: auto; max-height: 560px; }
.fn-notes { margin-bottom: 28px; }
.fn-license { max-width: 60em; }

/* ============================================================ join page */
.join-title { font-size: clamp(2.2rem, 6vw, 3.6rem); letter-spacing: -.045em; line-height: 1.02; }
.joinpage .sub { max-width: 40em; }
.join-grid { margin-top: 40px; max-width: 640px; }
.reg { display: grid; gap: 18px; }
.reg label { display: grid; gap: 6px; font-weight: 500; font-size: 15px; }
.reg input[type="text"], .reg input:not([type]), .reg input[name] { font: inherit; }
.reg input:not([type="checkbox"]) {
  height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); color: var(--ink);
  font: 400 15px var(--mono);
}
.reg input:not([type="checkbox"]):focus { outline: 2px solid var(--match); outline-offset: 1px; border-color: transparent; }
.reg .hint { font-weight: 400; font-size: 13px; color: var(--muted); }
.reg .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--ink-2); }
.reg .check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--ink); }
.reg .btn { justify-self: start; }
.reg-error { min-height: 1.4em; color: var(--miss); font-size: 14px; }
.reg-closed { padding: 18px 20px; border: 1px dashed var(--line); border-radius: var(--radius); }
.reg-closed[hidden] { display: none; }
.reg-closed p:first-child { text-transform: uppercase; letter-spacing: .08em; margin-bottom: 6px; }
.reg-done { display: grid; gap: 12px; }
.reg-done[hidden] { display: none; }
.warn { padding: 12px 14px; border-radius: 10px; background: var(--work-bg); color: var(--ink); font-size: 14.5px; }
.small-sub { margin-top: 6px; font-size: 15px; }
.joinpage .code, .reg-done .code { position: relative; }
.joinpage .code pre { margin: 0; padding: 14px 84px 14px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
  font: 13px/1.6 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); }
.joinpage .copy { position: absolute; top: 9px; right: 9px; color: var(--ink-2); border-color: var(--line); background: var(--bg); }
.joinpage .copy:hover { color: var(--ink); border-color: var(--ink-2); }
.tl li li.todo { color: var(--muted); }
.tl li li.todo::before { background: none; border-top: 2px dotted var(--faint); height: 0; }
.ftable td a { color: inherit; text-decoration: none; border-bottom: 1px solid var(--line); }
.ftable td a:hover { border-color: var(--ink); }
.reg .lbl .muted { font-weight: 400; }
.reg input:disabled, .reg button:disabled { opacity: .55; cursor: not-allowed; }
.tl li li.todo::after { content: " · next"; font: 500 11px var(--mono); letter-spacing: .04em; color: var(--work); }
.term-body { white-space: pre-wrap; overflow-wrap: anywhere; }
