@font-face {
  font-family: "Geist Pixel Circle";
  src: url("fonts/GeistPixel-Circle.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

:root {
  --out: #d8d8d4;
  --frame: #050505;
  --bg: #111111;
  --panel: #161616;
  --line: #2b2b2b;
  --fg: #f2f2f2;
  --body: #cfcfcf;
  --muted: #9a9a9a;
  --dim: #8a8a8a;
  --ok: #9be29b;
  --warn: #e2b35a;
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-display: "Geist Pixel Circle", "Inter", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --pad-l: 54px;
  --pad-r: 44px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background-color: #0a0a0a;
  background-image: radial-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 14px 14px;
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.6;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:hover { color: #fff; }
code, pre, kbd { font-family: var(--font-mono); }
::selection { background: #fff; color: #000; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
button, input, select, textarea { font: inherit; letter-spacing: inherit; }

/* labels, tabs, buttons and list items are set in caps; body copy, code and addresses are not */
.caps, .nav-links a, .eyebrow, .btn, .or, .band-list, .box-links, .box-foot, .footer-links, .footer-logo, .footer-copy,
.lookup-btn, .copy-btn, .step-n, .calendar-table th, .fact dt, .skip, .cursor-tag, .faq summary, .contract dt, .more,
.field-label, .badge, .kv dt, .lp-tab {
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.skip { position: absolute; left: 40px; top: -60px; z-index: 10; padding: 8px 12px; background: var(--fg); color: #000; font-size: 11px; }
.skip:focus { top: 40px; }

/* the page is one die on the wafer: a dark plate with a hairline edge, on a dotted ground */
.frame {
  position: relative;
  margin: 18px;
  min-height: calc(100vh - 36px);
  background: var(--bg);
  border: 1px solid var(--line);
  box-shadow: 0 0 0 1px #050505, 0 30px 80px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
}
.frame::after { content: ""; position: absolute; left: -1px; top: -1px; width: 10px; height: 10px; border: 1px solid var(--fg); border-right: 0; border-bottom: 0; pointer-events: none; }
.frame > * { position: relative; }

/* nav: one hairline bar across the top of the die, wordmark left, links centre, chain right */
.nav {
  display: flex; align-items: stretch; gap: 0;
  height: 46px;
  border-bottom: 1px solid var(--line);
  padding: 0 var(--pad-r) 0 var(--pad-l);
  z-index: 3;
}
.nav-logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 17px; letter-spacing: 0.02em; color: var(--fg); padding-right: 28px; border-right: 1px solid var(--line); margin-right: 8px; }

.nav-links { display: flex; align-items: stretch; flex: 1; overflow-x: auto; scrollbar-width: none; }
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a { display: inline-flex; align-items: center; min-width: 44px; padding: 0 14px; color: var(--muted); font-size: 11px; border-bottom: 1px solid transparent; margin-bottom: -1px; white-space: nowrap; transition: color 150ms ease, border-color 150ms ease; }
.nav-links a:hover { color: var(--fg); }
.nav-links a[aria-current="page"] { color: var(--fg); border-bottom-color: var(--fg); }
.nav-status { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap; }
.nav-status .dot { width: 6px; height: 6px; background: var(--fg); box-shadow: 0 0 8px rgba(242,242,242,0.6); }

/* hero (index) and page head (everything else): text left, the brain right */
.hero, .head {
  padding: 72px var(--pad-r) 40px var(--pad-l);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 32px;
  align-items: start;
  min-height: min(62vh, 620px);
}
.head { min-height: 0; padding-bottom: 20px; align-items: end; }
.hero-h1, .head-h1 {
  margin: 0 0 30px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(40px, 5.6vw, 76px);
  line-height: 1.02;
  letter-spacing: 0;
}
.head-h1 { font-size: clamp(30px, 4vw, 54px); margin-bottom: 8px; }
.hero-cta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 17px 30px;
  background: transparent; color: var(--fg); border: 1px solid var(--fg);
  font-size: 12px; cursor: pointer;
  box-shadow: 4px 4px 0 var(--line);
}
.btn::before { content: "▶"; font-size: 9px; }
.btn { transition: background 200ms ease, color 200ms ease, box-shadow 200ms ease, transform 150ms ease; }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--fg); }
.btn:hover { background: var(--fg); color: #000; box-shadow: 4px 4px 0 var(--fg); }
.or { color: var(--dim); font-size: 11px; }
.hero-alt { color: var(--fg); border-bottom: 1px solid var(--line); padding-bottom: 2px; }
.hero-alt:hover { border-color: var(--fg); }
.hero-log { margin: 44px 0 0; color: var(--muted); white-space: pre-wrap; font-size: 11px; line-height: 1.7; min-height: 3.4em; }
.log-cursor { animation: blink 1s steps(2) infinite; }
@keyframes blink { to { opacity: 0; } }
.hero-tag { margin: 22px 0 0; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; }
.hero-ca { margin: 14px 0 0; font-size: 11px; line-height: 1.9; word-break: break-all; }
.hero-ca a[data-ca] { color: var(--fg); border-bottom: 1px solid var(--line); }
.hero-ca a[data-ca]:hover { border-color: var(--fg); }

.art { position: relative; min-height: 300px; max-height: 520px; align-self: stretch; }
.art canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; image-rendering: pixelated; }
.head .art { min-height: 220px; }

/* the strip under the hero: the line as five cells, the last one live */
.strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.3fr); }
.strip > div { padding: 18px var(--pad-r) 18px 20px; border-right: 1px solid var(--line); min-width: 0; }
.strip > div:first-child { padding-left: var(--pad-l); }
.strip > div:last-child { border-right: 0; background: var(--panel); }
.strip .n { display: block; font-family: var(--font-display); font-size: 22px; line-height: 1; margin-bottom: 8px; }
.strip .t { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 6px; }
.strip p { margin: 0; font-size: 11px; color: var(--muted); line-height: 1.6; }
.strip .live { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; margin-top: 4px; }
.strip .live b { display: block; font-weight: 500; font-size: 15px; color: var(--fg); font-family: var(--font-display); }
.strip .live span { font-size: 11px; color: var(--dim); text-transform: uppercase; letter-spacing: 0.06em; }
.band {
  border-top: 1px solid var(--line);
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 32px;
  padding: 30px var(--pad-r) 30px var(--pad-l);
}
.band-list { display: grid; grid-template-columns: 1fr 1.3fr; gap: 24px; }
.band-list ul { list-style: none; margin: 8px 0 0; padding: 0; }
.band-list li { line-height: 1.7; }
.band-list p { margin: 0; color: var(--body); line-height: 1.7; padding-top: 26px; }
.box { border: 1px solid var(--line); padding: 18px 16px 14px; display: flex; flex-direction: column; gap: 26px; }
.box-links { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.box-links a::before, .footer-links a::before { content: "› "; }
.box-foot { display: flex; justify-content: space-between; gap: 12px; color: var(--dim); font-size: 11px; margin-top: auto; }
.box-foot a:hover { color: var(--fg); }

/* content */
main { padding: 0 var(--pad-r) 30px var(--pad-l); flex: 1; }
.section { padding: 30px 0 14px; border-top: 1px solid var(--line); }
.head + main .section:first-child { border-top: 0; padding-top: 10px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.more { font-size: 11px; color: var(--muted); }
.more:hover { color: var(--fg); }
.more::after { content: " ↗"; }
.eyebrow { margin: 0 0 16px; font-size: 11px; font-weight: 400; color: var(--muted); }
.eyebrow::before { content: "// "; color: var(--dim); }
.muted { color: var(--muted); }
.ok { color: var(--ok); }
.warn { color: var(--warn); }
.caption, .note, .doc-p, .lead { max-width: 78ch; line-height: 1.7; }
.lead { font-size: 13px; color: var(--body); margin: 0 0 22px; }
.doc-p { color: var(--body); font-size: 13px; }
.caption { font-size: 11px; }
.note { font-size: 11px; color: var(--muted); border-left: 1px solid var(--line); padding-left: 14px; }

.mono-block {
  margin: 0 0 22px; padding: 16px 18px;
  background: var(--panel); border: 1px solid var(--line);
  color: #d6d6d6; font-size: 12px; line-height: 1.65;
  overflow-x: auto; white-space: pre;
}
.mono-block.wrap { white-space: pre-wrap; word-break: break-all; }

/* steps, link cards, quickstart */
.steps, .next-row, .quick { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 26px; }
.steps, .next-row { grid-template-columns: repeat(3, 1fr); }
.steps-4 { grid-template-columns: repeat(4, 1fr); }
.quick { grid-template-columns: repeat(3, 1fr); }
.step { background: var(--panel); padding: 18px 18px 20px; display: block; color: inherit; }
a.step:hover { background: #1c1c1c; }
.step-n { display: block; color: var(--muted); font-size: 11px; margin-bottom: 14px; }
.step p { margin: 0; line-height: 1.7; font-size: 13px; color: var(--body); }
.step p + p { margin-top: 10px; }
.step-h { margin: 0 0 8px; font-family: var(--font-sans); font-weight: 500; font-size: 16px; letter-spacing: -0.01em; }
.step .more { display: inline-block; margin-top: 14px; }
.quick-item { background: var(--panel); padding: 18px; min-width: 0; }
.quick-item .mono-block { margin: 12px 0 0; background: #0b0b0b; font-size: 11px; }

/* fee split as a bar plus a legend */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; margin-bottom: 22px; align-items: start; }
.split-bar { display: flex; height: 34px; border: 1px solid var(--line); margin: 4px 0 12px; }
.split-bar span { display: flex; align-items: center; justify-content: center; font-size: 11px; border-right: 1px solid var(--bg); }
.split-bar span:last-child { border-right: 0; }
.split-pons { flex: 30; background: #2a2a2a; }
.split-agent { flex: 70; background: var(--fg); color: #000; }
.split dl { margin: 0; }
.split .fact { grid-template-columns: 110px 1fr; }

/* faq */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { padding: 14px 0; min-height: 44px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; font-size: 11px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 0 0 16px; max-width: 78ch; color: var(--body); font-size: 13px; line-height: 1.7; }

/* contracts */
.contracts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 22px; }
.contract { background: var(--panel); padding: 16px 18px; margin: 0; min-width: 0; }
.contract dt { color: var(--muted); font-size: 11px; margin-bottom: 8px; }
.contract dd { margin: 0; word-break: break-all; font-size: 11px; }
.contract dd a { text-decoration: underline; text-decoration-color: var(--dim); }

/* tables */
.table-wrap { overflow-x: auto; margin-bottom: 18px; }
.calendar-table { width: 100%; border-collapse: collapse; }
.calendar-table th, .calendar-table td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); font-size: 12px; vertical-align: top; white-space: nowrap; }
.calendar-table th { color: var(--muted); font-weight: 400; font-size: 11px; border-top: 1px solid var(--line); }
.calendar-table td a { text-decoration: underline; text-decoration-color: var(--dim); }
.calendar-table tr:hover td { background: var(--panel); }
.table-status { color: var(--muted); }
.t-img { width: 22px; height: 22px; object-fit: cover; vertical-align: middle; margin-right: 8px; background: var(--bg); image-rendering: pixelated; }
.t-bar { display: inline-block; width: 80px; height: 4px; background: var(--line); vertical-align: middle; margin-right: 8px; }
.t-bar span { display: block; height: 100%; background: var(--fg); }

/* facts */
.token-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 22px; }
.token-facts { background: var(--panel); padding: 8px 18px; min-width: 0; }
.token-facts dl { margin: 0; }
.fact { display: grid; grid-template-columns: 150px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 12px; }
.fact:last-child { border-bottom: 0; }
.fact dt { color: var(--muted); margin: 0; font-size: 11px; padding-top: 2px; }
.fact dd { margin: 0; word-break: break-word; }
.fact a { text-decoration: underline; text-decoration-color: var(--dim); }

/* forms and console */
.lookup-form, .console-row { display: flex; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.lookup-input {
  flex: 1 1 260px; min-width: 0; min-height: 44px; padding: 12px 14px;
  background: #0b0b0b; border: 1px solid var(--line); color: var(--fg); font-size: 13px; outline: none;
  transition: border-color 150ms ease;
}
.lookup-input:focus { border-color: var(--fg); }
.lookup-input::placeholder { color: var(--dim); }
select.lookup-input { appearance: none; }
.lookup-btn { min-height: 44px; padding: 12px 22px; background: var(--fg); color: #000; border: 1px solid var(--fg); font-size: 12px; cursor: pointer; transition: background 150ms ease, color 150ms ease, border-color 150ms ease, transform 150ms ease; }
.lookup-btn:active:not(:disabled) { transform: scale(0.97); }
.lookup-btn:hover { background: #fff; }
.lookup-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.lookup-btn-secondary { background: transparent; color: var(--fg); border-color: var(--line); }
.lookup-btn-secondary:hover { background: var(--panel); border-color: var(--muted); }
.lookup-result { font-size: 12px; line-height: 1.7; margin: 8px 0 12px; word-break: break-word; }
.lookup-result:empty { display: none; }
.copy-btn { margin-left: 8px; padding: 6px 10px; min-height: 32px; background: transparent; border: 1px solid var(--line); color: var(--muted); font-size: 11px; cursor: pointer; transition: color 150ms ease, border-color 150ms ease; }
.copy-btn:hover { color: var(--fg); border-color: var(--fg); }
.copy-btn.is-done { color: var(--ok); border-color: var(--ok); }

.console { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 32px; padding-top: 10px; }
.rail { display: flex; flex-direction: column; gap: 2px; border-right: 1px solid var(--line); padding-right: 16px; align-self: start; position: sticky; top: 24px; }
.rail a { padding: 12px 10px; min-height: 44px; display: flex; align-items: center; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; }
.rail a:hover { color: var(--fg); background: var(--panel); }
.rail a[aria-current="page"] { color: #000; background: var(--fg); }
.rail-eyebrow { margin: 18px 0 4px 10px; font-size: 11px; }
.rail-note { padding: 8px 10px; font-size: 11px; color: var(--muted); line-height: 1.6; }
.pane { min-width: 0; }
.pane > * + * { margin-top: 18px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; flex-wrap: wrap; }
.page-h { margin: 0 0 4px; font-family: var(--font-display); font-weight: 400; font-size: 28px; letter-spacing: 0; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.cards-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.launch-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); align-items: start; }
.card { background: var(--panel); padding: 18px; min-width: 0; display: block; color: inherit; }
.cards > .card, .launch-grid > .card { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.card-wide { border: 1px solid var(--line); }
.card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.card-h { margin: 0 0 10px; font-family: var(--font-sans); font-weight: 500; font-size: 16px; letter-spacing: -0.01em; }
.card h3.card-h { margin-top: 18px; }
.card-big { font-family: var(--font-display); font-size: 30px; line-height: 1; margin: 6px 0 4px; }
.mono { font-family: var(--font-mono); }
.plain { list-style: none; padding: 0; margin: 0 0 16px; }
.plain li { padding: 6px 0; border-top: 1px solid var(--line); font-size: 12px; color: var(--body); line-height: 1.6; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.row .lookup-btn { display: inline-flex; align-items: center; }
a.lookup-btn { text-decoration: none; }
.kv { margin: 10px 0 0; display: grid; gap: 0; }
.kv > div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); font-size: 12px; }
.kv dt { color: var(--muted); font-size: 11px; padding-top: 2px; }
.kv dd { margin: 0; word-break: break-word; }
.kv a { text-decoration: underline; text-decoration-color: var(--dim); }
.badge { display: inline-block; padding: 3px 8px; border: 1px solid var(--line); font-size: 11px; color: var(--muted); }
.badge-ok { color: var(--ok); border-color: var(--ok); }
.badge-warn { color: var(--warn); border-color: var(--warn); }
.notice { padding: 12px 14px; border: 1px solid var(--line); font-size: 12px; line-height: 1.6; background: var(--panel); }
.notice-ok { border-color: var(--ok); }
.notice-warn { border-color: var(--warn); }
.notice a { text-decoration: underline; }
.notice:empty { display: none; }
.field { display: block; margin-top: 12px; }
.field-label { display: block; font-size: 11px; color: var(--muted); margin-bottom: 6px; }
.field .lookup-input { width: 100%; }
.field-hint { display: block; margin-top: 6px; font-size: 11px; color: var(--muted); line-height: 1.5; }
textarea.lookup-input { resize: vertical; font-family: var(--font-mono); }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 14px; }
.range-row { display: flex; gap: 12px; align-items: center; }
.range-row input[type=range] { flex: 1; accent-color: var(--fg); }
.range-row output { font-size: 12px; min-width: 120px; }
.stepper { list-style: none; margin: 16px 0 0; padding: 0; border-top: 1px solid var(--line); }
.stepper li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.stepper li::before { content: "○"; margin-right: 8px; }
.stepper .step-active { color: var(--fg); }
.stepper .step-active::before { content: "◐"; animation: blink 1s steps(2) infinite; }
.stepper .step-done { color: var(--ok); }
.stepper .step-done::before { content: "●"; }
.stepper .step-failed { color: var(--warn); }
.stepper .step-failed::before { content: "✕"; }
.stepper li span:first-of-type { flex: 1; }
.key-block { user-select: all; font-size: 13px; word-break: break-all; white-space: pre-wrap; }

/* picture drop, console */
.drop { border: 1px dashed var(--line); padding: 14px; display: flex; gap: 14px; align-items: center; cursor: pointer; margin-top: 12px; }
.drop:hover, .drop.is-over { border-color: var(--fg); }
.drop img { width: 44px; height: 44px; object-fit: cover; background: var(--bg); image-rendering: pixelated; display: none; }
.drop.has-img img { display: block; }
.drop-text { font-size: 11px; color: var(--muted); line-height: 1.6; }

/* fab: the truth table, the netlist and the bill */
.truth { border-collapse: collapse; font-size: 11px; }
.truth th, .truth td { padding: 3px 8px; border: 1px solid var(--line); text-align: center; }
.truth th { color: var(--muted); font-weight: 400; }
.truth td.hit { color: var(--ok); }
.truth td.miss { color: var(--warn); }
.net-view { max-height: 260px; overflow: auto; font-size: 11px; line-height: 1.5; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); margin: 12px 0 0; }
.tile { background: var(--panel); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tile strong { font-weight: 500; font-size: 18px; font-family: var(--font-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .muted { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; }
.gates { display: flex; flex-wrap: wrap; gap: 2px; margin-top: 10px; }
.gate { width: 6px; height: 6px; background: var(--fg); opacity: 0.85; }
.gate.latch { background: var(--ok); width: 12px; }
.gate.dead { background: var(--line); }

/* foundries grid */
.lp-toolbar { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; gap: 12px; align-items: end; margin-bottom: 10px; }
.lp-toolbar .lookup-input { width: 100%; }
.lp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); margin-bottom: 18px; }
.lp-card { display: flex; flex-direction: column; background: var(--panel); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; min-width: 0; }
.lp-card:hover { background: #1c1c1c; color: inherit; }
.lp-art { position: relative; aspect-ratio: 1; background: var(--bg); border-bottom: 1px solid var(--line); overflow: hidden; }
.lp-img { display: block; width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.lp-badges { position: absolute; left: 8px; top: 8px; display: flex; gap: 4px; flex-wrap: wrap; }
.lp-badges .badge { background: var(--frame); }
.lp-body { padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.lp-title { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; min-width: 0; }
.lp-name { font-weight: 500; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-sym { font-size: 11px; color: var(--muted); flex: 0 0 auto; }
.lp-bar { height: 4px; background: var(--line); margin-top: 4px; }
.lp-bar > span { display: block; height: 100%; background: var(--fg); transition: width 0.6s steps(12); }
.lp-stats { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; }
.lp-stats em, .lp-meta em { font-style: normal; }
.lp-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; flex-wrap: wrap; }
.lp-empty { grid-column: 1 / -1; padding: 24px 12px; margin: 0; background: var(--panel); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* docs */
.doc { max-width: 82ch; }
.doc h2 { font-family: var(--font-sans); font-weight: 500; font-size: 18px; letter-spacing: -0.01em; margin: 34px 0 10px; }
.doc h3 { font-family: var(--font-sans); font-weight: 500; font-size: 14px; margin: 22px 0 8px; }
.doc p, .doc li { color: var(--body); font-size: 13px; line-height: 1.7; }
.doc ul { padding-left: 18px; }
.doc .mono-block { max-width: none; }
.toc { display: flex; gap: 14px; flex-wrap: wrap; margin: 0 0 20px; font-size: 11px; }
.toc a { color: var(--muted); }
.toc a::before { content: "› "; }
.toc a:hover { color: var(--fg); }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 18px var(--pad-r) 18px var(--pad-l); }
.footer-row { display: flex; justify-content: space-between; gap: 18px; align-items: baseline; flex-wrap: wrap; }
.footer-brand { display: flex; gap: 14px; align-items: baseline; }
.footer-brand p { margin: 0; }
.footer-links { display: flex; gap: 6px 18px; flex-wrap: wrap; }
.footer-links a, .box-links a { display: inline-flex; align-items: center; min-height: 32px; }
.footer-copy { margin: 0; color: var(--dim); font-size: 11px; }

/* custom cursor: mounted by cursor.js for mouse users only */
html.has-cursor, html.has-cursor a, html.has-cursor button, html.has-cursor summary, html.has-cursor select, html.has-cursor label { cursor: none; }
html.has-cursor.cursor-text .cursor { opacity: 0; }
.cursor { position: fixed; left: 0; top: 0; z-index: 100; pointer-events: none; mix-blend-mode: difference; will-change: transform; }
.cursor span { position: absolute; background: #fff; }
.cursor-h { width: 18px; height: 1px; left: -9px; top: 0; }
.cursor-v { width: 1px; height: 18px; left: 0; top: -9px; }
.cursor-box { width: 6px; height: 6px; left: -3px; top: -3px; transition: width 0.18s, height 0.18s, left 0.18s, top 0.18s, background 0.18s; }
.cursor.is-link .cursor-box { width: 26px; height: 26px; left: -13px; top: -13px; background: transparent; border: 1px solid #fff; }
.cursor.is-link .cursor-h, .cursor.is-link .cursor-v { opacity: 0; }
.cursor.is-down .cursor-box { width: 10px; height: 10px; left: -5px; top: -5px; }
.cursor-tag { left: 18px; top: -6px; width: auto; height: auto; background: none; color: #fff; font-size: 11px; white-space: nowrap; }

/* reveal: sections and their staggered children come in once */
[data-reveal] [data-stagger] { opacity: 0; transform: translateY(6px); transition: opacity 0.5s ease var(--sd, 0s), transform 0.5s ease var(--sd, 0s); }
[data-reveal].in [data-stagger] { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] [data-stagger] { opacity: 1; transform: none; transition: none; }
  .log-cursor { animation: none; }
  .btn, .lookup-btn { transition: none; }
  .btn:active, .lookup-btn:active:not(:disabled) { transform: none; }
  .nav-status .dot { box-shadow: none; }
}

@media (max-width: 1100px) {
  .steps, .next-row, .quick, .contracts, .cards-3, .cards-4 { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; }
  .launch-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  :root { --pad-l: 26px; --pad-r: 26px; }
  .frame { margin: 12px; min-height: calc(100vh - 24px); border-width: 6px; }
  .frame::before { inset: 8px; }
  .nav { padding: 0 12px; height: auto; flex-wrap: wrap; }
  .nav-logo { border-right: 0; padding: 10px 12px 6px 0; }
  .nav-status { display: none; }
  .nav-links { flex-basis: 100%; border-top: 1px solid var(--line); }
  .nav-links a { padding: 0 12px; min-height: 44px; }
  .hero, .head, .band { grid-template-columns: 1fr; }
  .strip { grid-template-columns: 1fr 1fr; }
  .strip > div { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .strip > div:first-child { padding-left: 16px; }
  .strip > div:last-child { grid-column: 1 / -1; }
  .hero { padding-top: 28px; gap: 12px; min-height: 0; }
  .head { padding-top: 20px; }
  .art { min-height: 260px; }
  .band-list { grid-template-columns: 1fr; }
  .band-list p { padding-top: 0; }
  .steps, .steps-4, .next-row, .quick, .contracts, .token-grid, .cards, .cards-3, .cards-4, .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .fact { grid-template-columns: 1fr; gap: 4px; }
  .console { grid-template-columns: 1fr; gap: 16px; }
  .rail { position: static; flex-direction: row; flex-wrap: wrap; border-right: 0; border-bottom: 1px solid var(--line); padding: 0 0 8px; }
  .rail-eyebrow, .rail-note { display: none; }
  .kv > div { grid-template-columns: 1fr; gap: 2px; }
  .lp-toolbar { grid-template-columns: 1fr; }
}
@media (max-width: 560px) { .lp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
