/* Hinge design system
   Signature: graph paper, a hinge plate for every surface (two screw holes), a vermilion pin that marks each seam,
   and one door in the hero that swings open to show the same coin on two chains.
   Palette: paper, ink, one vermilion. Nothing else. */

:root {
  --paper: #f4ede1;
  --bone: #f4ede1;
  --paper-2: #ebe3d2;
  --ink: #121212;
  --ink-2: #1f1d1a;
  --hot: #ff4a1c;
  --hot-deep: #d63a12;
  --fg: var(--ink);
  --bg: var(--paper);
  --surface: #faf6ee;
  --muted: #5b564e;
  --line: rgba(18, 18, 18, 0.16);
  --rule: var(--ink);
  --font-display: 'Archivo', 'Arial Narrow', system-ui, sans-serif;
  --font-body: 'Archivo', system-ui, sans-serif;
  --font-mono: 'Martian Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --font-pixel: 'Silkscreen', 'Martian Mono', monospace;
  --wrap: 1240px;
}

.night {
  --fg: var(--paper);
  --bg: var(--ink);
  --surface: var(--ink-2);
  --muted: #a8a193;
  --line: rgba(244, 237, 225, 0.2);
  --rule: var(--paper);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--paper);
  background-image: linear-gradient(rgba(18, 18, 18, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(18, 18, 18, 0.045) 1px, transparent 1px);
  background-size: 24px 24px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg, canvas, video { max-width: 100%; display: block; }
a { color: inherit; }
::selection { background: var(--hot); color: var(--paper); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 28px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

.section { background: var(--bg); color: var(--fg); padding: 110px 0; position: relative; border-top: 2px solid var(--ink); }
.section.night { background-image: linear-gradient(rgba(244, 237, 225, 0.05) 1px, transparent 1px), linear-gradient(90deg, rgba(244, 237, 225, 0.05) 1px, transparent 1px); background-size: 24px 24px; }
.section:not(.night):not(.paper) { background: transparent; }
.section.tight { padding: 70px 0; }
.paper { background: var(--paper-2); }
/* the pin that marks each seam */
.section::before {
  content: ''; position: absolute; top: -2px; left: max(28px, calc((100vw - var(--wrap)) / 2 + 28px));
  width: 64px; height: 12px; background: var(--hot); border: 2px solid var(--ink); border-top: 0;
  background-image: linear-gradient(90deg, transparent 20px, var(--ink) 20px, var(--ink) 22px, transparent 22px, transparent 42px, var(--ink) 42px, var(--ink) 44px, transparent 44px);
}
@media (max-width: 640px) { .section::before { left: 16px; } }

/* ---------- type ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 800; letter-spacing: -0.03em; line-height: 1; margin: 0; font-stretch: 125%; }
h1 { font-size: clamp(42px, 6.4vw, 96px); letter-spacing: -0.045em; }
h2 { font-size: clamp(32px, 4.2vw, 58px); }
h3 { font-size: clamp(20px, 1.9vw, 26px); letter-spacing: -0.02em; line-height: 1.1; font-stretch: 112%; }
p { margin: 0 0 1em; }
.lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; color: var(--muted); max-width: 56ch; }
.kicker { font-family: var(--font-pixel); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 10px; margin-bottom: 22px; }
.kicker::before { content: ''; width: 10px; height: 10px; background: var(--hot); flex: none; }
.mono { font-family: var(--font-mono); }
.hl { background: var(--hot); color: var(--paper); padding: 0 0.1em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
em.it { font-style: normal; color: var(--hot-deep); }
.night em.it { color: var(--hot); }

/* ---------- plate buttons: a rectangle with two screw holes ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-mono); font-weight: 500; font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 15px 18px; border: 2px solid var(--ink); border-radius: 0; cursor: pointer; text-decoration: none;
  background: var(--ink); color: var(--paper);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.15s ease, color 0.15s ease;
}
.btn::before, .btn::after { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: 0.55; flex: none; }
.btn:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--hot); }
.btn:active { transform: translate(0, 0); box-shadow: 0 0 0 var(--hot); }
.btn.hot { background: var(--hot); color: var(--ink); border-color: var(--ink); }
.btn.hot:hover { box-shadow: 4px 4px 0 var(--ink); }
.btn.line { background: transparent; color: inherit; border-color: currentColor; }
.btn.line:hover { background: var(--ink); color: var(--paper); box-shadow: 4px 4px 0 var(--hot); }
.night .btn:not(.hot):not(.line) { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.night .btn.line:hover { background: var(--paper); color: var(--ink); }
.btn.sm { padding: 10px 13px; font-size: 11.5px; gap: 9px; }
.btn[disabled], .btn.off { opacity: 0.45; pointer-events: none; }
.link { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.06em; text-transform: uppercase; text-decoration: none; border-bottom: 2px solid var(--hot); padding-bottom: 2px; }
.link:hover { background: var(--hot); color: var(--ink); }

/* ---------- top bar: paths ---------- */
.top { position: sticky; z-index: 50; top: 0; background: var(--paper); border-bottom: 2px solid var(--ink); }
.top .in { max-width: 1400px; margin: 0 auto; height: 66px; padding: 0 28px; display: flex; align-items: center; gap: 28px; }
.mark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.mark .m { height: 34px; width: auto; image-rendering: pixelated; }
.mark .w { height: 24px; width: auto; image-rendering: pixelated; }
.path { display: flex; gap: 4px; align-items: center; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.02em; margin-left: 6px; }
.path .root { color: var(--muted); padding-right: 4px; }
.path a { text-decoration: none; padding: 7px 10px; border: 2px solid transparent; color: var(--ink); }
.path a::before { content: '/'; color: var(--hot-deep); margin-right: 1px; }
.path a:hover { border-color: var(--ink); }
.path a.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.path a.on::before { color: var(--hot); }
.top-right { display: flex; gap: 10px; align-items: center; margin-left: auto; }
.icon-btn { width: 42px; height: 42px; display: inline-grid; place-items: center; background: transparent; color: var(--ink); text-decoration: none; border: 2px solid var(--ink); transition: background 0.15s, color 0.15s; }
.icon-btn:hover { background: var(--ink); color: var(--paper); }
.icon-btn svg { width: 17px; height: 17px; }
@media (max-width: 900px) {
  .top .in { height: auto; padding: 10px 16px; flex-wrap: wrap; gap: 10px 14px; }
  .path { order: 3; width: 100%; margin: 0; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .path::-webkit-scrollbar { display: none; }
  .path .root { display: none; }
  .top-right .btn { display: none; }
}

/* ---------- hero: the door ---------- */
.hero { position: relative; padding: 64px 0 90px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(36px, 4.7vw, 72px); line-height: 0.98; margin-bottom: 26px; font-stretch: 108%; }
.hero .btns { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 64px; border: 2px solid var(--ink); background: var(--surface); }
.hero-stats div { padding: 16px 18px; border-left: 2px solid var(--ink); }
.hero-stats div:first-child { border-left: 0; }
.hero-stats b { display: block; font-family: var(--font-display); font-stretch: 125%; font-weight: 800; font-size: 28px; letter-spacing: -0.03em; line-height: 1.1; }
.hero-stats small { font-family: var(--font-pixel); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 980px) {
  .hero { padding: 40px 0 70px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-stats { grid-template-columns: 1fr 1fr; margin-top: 44px; }
  .hero-stats div:nth-child(3) { border-left: 0; }
  .hero-stats div:nth-child(n + 3) { border-top: 2px solid var(--ink); }
}

.stage { perspective: 1700px; --lw: min(300px, 38vw); padding: 10px 0 0; }
.door { position: relative; width: calc(var(--lw) * 2); max-width: 100%; height: 380px; margin: 0 auto; transform-style: preserve-3d; --a: 165deg; }
.leaf { position: absolute; top: 0; width: var(--lw); height: 100%; }
.leaf.left { left: 0; }
.leaf.right { left: var(--lw); transform-origin: 0 50%; transform: rotateY(calc(var(--a) * -1)); transform-style: preserve-3d; }
.face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border: 2px solid var(--ink); padding: 18px 18px 16px; display: flex; flex-direction: column; }
.leaf.left .face { background: var(--ink); color: var(--paper); border-right: 0; }
.leaf.right .face.front { background: var(--surface); color: var(--ink); border-left: 0; }
.leaf.right .face.back { transform: rotateY(180deg); background: var(--paper-2); align-items: center; justify-content: center; text-align: center; gap: 10px; }
.screw { position: absolute; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; opacity: 0.8; }
.screw.a { left: 14px; top: 14px; } .screw.b { left: 14px; bottom: 14px; } .screw.c { right: 14px; top: 14px; } .screw.d { right: 14px; bottom: 14px; }
.face .vn { font-family: var(--font-pixel); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.85; margin: 18px 0 0 18px; }
.face .coin { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.04em; margin: 10px 0 0 18px; opacity: 0.7; }
.face .num { font-family: var(--font-display); font-stretch: 125%; font-weight: 800; font-size: 44px; letter-spacing: -0.04em; line-height: 1; margin: 14px 0 2px 18px; }
.face .cap { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.04em; opacity: 0.7; margin-left: 18px; }
.face canvas { width: calc(100% - 36px); height: 120px; margin: auto 18px 4px; }
.face.back .one { font-family: var(--font-display); font-stretch: 125%; font-weight: 800; font-size: 30px; letter-spacing: -0.03em; }
.face.back small { font-family: var(--font-pixel); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.shade { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; }
.pin { position: absolute; left: calc(var(--lw) - 11px); top: -8px; bottom: -8px; width: 22px; z-index: 4; display: grid; grid-template-rows: repeat(3, 1fr); gap: 0; transform: translateZ(2px); }
.pin i { display: block; background: var(--hot); border: 2px solid var(--ink); }
.pin i:first-child { border-radius: 8px 8px 0 0; } .pin i:last-child { border-radius: 0 0 8px 8px; }
.door-ctl { display: flex; align-items: center; gap: 16px; max-width: calc(var(--lw) * 2); margin: 34px auto 0; font-family: var(--font-pixel); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.door-ctl input[type='range'] { flex: 1; accent-color: var(--hot); }
.door-ctl output { min-width: 3.4em; text-align: right; color: var(--ink); font-family: var(--font-mono); }
@media (max-width: 640px) { .door { height: 350px; } .face .num { font-size: 24px; } .face .vn { font-size: 9.5px; margin-left: 14px; } .face .coin, .face .cap, .face .num { margin-left: 14px; } .face canvas { margin-left: 14px; margin-right: 14px; width: calc(100% - 28px); height: 100px; } }

/* ---------- cards: plates ---------- */
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, 1fr); } .g3 { grid-template-columns: repeat(3, 1fr); } .g4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .g3, .g4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 2px solid var(--rule); padding: 30px 28px 28px; position: relative; }
.card::before, .card::after { content: ''; position: absolute; top: 11px; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--rule); opacity: 0.55; }
.card::before { left: 11px; } .card::after { right: 11px; }
.card .n { font-family: var(--font-pixel); font-size: 12px; letter-spacing: 0.08em; color: var(--hot-deep); display: block; margin: 8px 0 32px; }
.night .card .n { color: var(--hot); }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--muted); margin: 0; font-size: 15.5px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 36px; } }
.head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 60px; align-items: end; margin-bottom: 56px; }
@media (max-width: 900px) { .head { grid-template-columns: 1fr; gap: 20px; } }

/* two-venue card: ink plate over paper plate, joined by the pin */
.mirror { display: grid; grid-template-rows: 1fr auto 1fr; border: 2px solid var(--ink); background: var(--surface); }
.mirror .half { padding: 26px 28px; background: var(--ink); color: var(--paper); }
.mirror .half .vname, .mirror .half .row span:first-child { color: #b8b1a2; }
.mirror .half .row { border-color: rgba(244, 237, 225, 0.2); }
.mirror .half.b { background: var(--surface); color: var(--ink); }
.mirror .half.b .vname, .mirror .half.b .row span:first-child { color: var(--muted); }
.mirror .half.b .row { border-color: var(--line); }
.mirror .axis { height: 16px; background: var(--paper); border-block: 2px solid var(--ink); position: relative; }
.mirror .axis::before { content: ''; position: absolute; left: 50%; top: -2px; width: 90px; height: 16px; transform: translateX(-50%); background: var(--hot); border: 2px solid var(--ink); background-image: linear-gradient(90deg, transparent 28px, var(--ink) 28px, var(--ink) 30px, transparent 30px, transparent 56px, var(--ink) 56px, var(--ink) 58px, transparent 58px); }
.mirror .axis::after { content: attr(data-l); position: absolute; right: 12px; top: -1px; font-family: var(--font-pixel); font-size: 9.5px; line-height: 14px; letter-spacing: 0.1em; color: var(--muted); text-transform: uppercase; }
.vname { font-family: var(--font-pixel); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.big { font-family: var(--font-display); font-stretch: 125%; font-size: clamp(30px, 3.6vw, 48px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.row { display: flex; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.row:last-child { border-bottom: 0; }
.row span:first-child { color: var(--muted); }
.row b { font-family: var(--font-mono); font-weight: 500; font-size: 12.5px; text-align: right; }

/* step rail */
.rail { display: grid; gap: 0; counter-reset: s; border-top: 2px solid var(--rule); }
.rail > div { display: grid; grid-template-columns: 92px 1fr 1.1fr; gap: 28px; padding: 30px 0; border-bottom: 2px solid var(--rule); align-items: start; counter-increment: s; }
.rail > div::before { content: '0' counter(s); font-family: var(--font-pixel); font-size: 20px; color: var(--hot-deep); padding-top: 2px; }
.night .rail > div::before { color: var(--hot); }
.rail h3 { font-size: clamp(22px, 2.4vw, 32px); }
.rail p { color: var(--muted); margin: 0; }
@media (max-width: 800px) { .rail > div { grid-template-columns: 52px 1fr; } .rail > div > div { grid-column: 2; } }

.pill { display: inline-block; font-family: var(--font-pixel); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 9px; border: 2px solid currentColor; }
.pill.hot { background: var(--hot); color: var(--ink); border-color: var(--ink); }
.dot { display: inline-block; width: 9px; height: 9px; background: var(--hot); margin-right: 8px; animation: blink 1.4s steps(2, jump-none) infinite; }
@keyframes blink { 50% { opacity: 0.2; } }

/* ticker */
.ticker { overflow: hidden; background: var(--ink); color: var(--paper); border-block: 2px solid var(--ink); }
.ticker .tr { display: flex; gap: 56px; white-space: nowrap; padding: 14px 0; width: max-content; animation: tick 44s linear infinite; font-family: var(--font-pixel); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; }
.ticker .tr span b { color: var(--hot); font-weight: 400; }
@keyframes tick { to { transform: translateX(-50%); } }

/* forms */
.panel { background: var(--surface); border: 2px solid var(--ink); padding: 30px 26px 26px; position: relative; }
.panel::before, .panel::after { content: ''; position: absolute; top: 11px; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--ink); opacity: 0.55; }
.panel::before { left: 11px; } .panel::after { right: 11px; }
label.f { display: block; font-family: var(--font-pixel); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.field { margin-bottom: 20px; }
input[type='text'], input[type='number'], textarea, select {
  width: 100%; font: inherit; font-size: 16px; padding: 13px 14px; background: var(--paper); color: var(--ink); border: 2px solid var(--ink); border-radius: 0; outline: none;
}
input:focus, textarea:focus, select:focus { box-shadow: 4px 4px 0 var(--hot); }
.night input, .night textarea, .night select { background: var(--ink); color: var(--paper); border-color: var(--paper); }
input[type='range'] { width: 100%; accent-color: var(--hot); }
.val { font-family: var(--font-mono); font-size: 12.5px; float: right; color: var(--fg); letter-spacing: 0; text-transform: none; }
.chartbox { background: var(--surface); border: 2px solid var(--ink); padding: 14px; position: relative; }
.chartbox canvas { width: 100%; height: 340px; }
.legend { display: flex; gap: 22px; flex-wrap: wrap; font-family: var(--font-pixel); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.legend i { display: inline-block; width: 18px; height: 8px; vertical-align: middle; margin-right: 8px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); border: 2px solid var(--ink); margin-top: 16px; background: var(--surface); }
.kpis div { padding: 16px 18px; border-left: 2px solid var(--ink); }
.kpis div:first-child { border-left: 0; }
.kpis b { display: block; font-family: var(--font-display); font-stretch: 125%; font-weight: 800; font-size: 26px; letter-spacing: -0.03em; }
.kpis small { font-family: var(--font-pixel); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 700px) { .kpis { grid-template-columns: 1fr 1fr; } .kpis div:nth-child(3) { border-left: 0; } .kpis div:nth-child(n + 3) { border-top: 2px solid var(--ink); } }

/* launch timeline */
.tl { list-style: none; margin: 0; padding: 0; }
.tl li { display: grid; grid-template-columns: 34px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: start; opacity: 0.4; transition: opacity 0.3s; }
.tl li .ix { width: 26px; height: 26px; display: grid; place-items: center; border: 2px solid currentColor; font-family: var(--font-pixel); font-size: 11px; }
.tl li.on { opacity: 1; }
.tl li.on .ix { background: var(--ink); color: var(--paper); }
.tl li.done { opacity: 1; }
.tl li.done .ix { background: var(--hot); color: var(--ink); border-color: var(--ink); }
.tl li b { font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-size: 17px; letter-spacing: -0.02em; }
.tl li small { display: block; color: var(--muted); font-size: 14px; }
.tl li code { font-family: var(--font-mono); font-size: 11.5px; color: var(--muted); }

/* tables */
table.t { width: 100%; border-collapse: collapse; font-size: 15px; }
table.t th { text-align: left; font-family: var(--font-pixel); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 400; padding: 12px 14px; border-bottom: 2px solid var(--rule); }
table.t td { padding: 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t td code, code { font-family: var(--font-mono); font-size: 0.82em; }
.scroll-x { overflow-x: auto; }

/* faq */
details.faq { border-bottom: 2px solid var(--rule); padding: 22px 0; }
details.faq summary { cursor: pointer; list-style: none; font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-size: clamp(19px, 1.9vw, 24px); letter-spacing: -0.02em; display: flex; justify-content: space-between; gap: 20px; }
details.faq summary::after { content: '+'; font-family: var(--font-pixel); font-weight: 400; color: var(--hot-deep); }
details.faq[open] summary::after { content: '-'; }
details.faq p { color: var(--muted); margin: 14px 0 0; max-width: 70ch; }

/* footer */
.foot { background: var(--ink); color: var(--paper); padding: 70px 0 54px; border-top: 2px solid var(--ink); position: relative; }
.foot::before { content: ''; position: absolute; top: -2px; left: max(28px, calc((100vw - var(--wrap)) / 2 + 28px)); width: 64px; height: 12px; background: var(--hot); border: 2px solid var(--ink); border-top: 0; }
.foot .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 800px) { .foot .cols { grid-template-columns: 1fr 1fr; } }
.foot h4 { font-family: var(--font-pixel); font-weight: 400; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: #8f897c; margin-bottom: 16px; font-stretch: 100%; }
.foot a { display: block; text-decoration: none; padding: 5px 0; color: var(--paper); }
.foot a:hover { color: var(--hot); }
.foot .fine { margin-top: 56px; padding-top: 22px; border-top: 2px solid rgba(244, 237, 225, 0.16); font-size: 13px; color: #8f897c; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.foot .mark { margin-bottom: 14px; }
.foot .mark .w { filter: invert(1); }
.foot .mark .m { background: var(--paper); padding: 3px; }

/* page header for inner pages */
.phead { padding: 80px 0 64px; position: relative; }
.phead h1 { font-size: clamp(38px, 5.6vw, 80px); max-width: 16ch; }
.phead .lead { margin-top: 22px; }

/* reveal */
.rv { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.rv.in { opacity: 1; transform: none; }

/* docs */
.docs { display: grid; grid-template-columns: 250px minmax(0, 1fr) 210px; gap: 48px; max-width: 1400px; margin: 0 auto; padding: 56px 28px 60px; }
.docs nav.side { position: sticky; top: 92px; align-self: start; max-height: calc(100vh - 120px); overflow: auto; font-size: 14.5px; }
.docs nav.side h5 { font-family: var(--font-pixel); font-weight: 400; font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 22px 0 8px; }
.docs nav.side h5:first-child { margin-top: 0; }
.docs nav.side a { display: block; text-decoration: none; padding: 6px 10px; color: var(--muted); border-left: 2px solid var(--line); }
.docs nav.side a:hover { color: var(--ink); border-left-color: var(--ink); }
.docs nav.side a.on { color: var(--paper); border-left-color: var(--hot); background: var(--ink); font-weight: 600; }
.docs article { min-width: 0; }
.docs article h1 { font-size: clamp(36px, 4.4vw, 60px); margin-bottom: 24px; }
.docs article h2 { font-size: clamp(24px, 2.8vw, 34px); margin: 56px 0 16px; letter-spacing: -0.03em; }
.docs article h3 { font-size: 20px; margin: 34px 0 10px; }
.docs article p, .docs article li { max-width: 72ch; }
.docs article ul, .docs article ol { padding-left: 22px; }
.docs article li { margin: 6px 0; }
.docs article a { text-decoration-color: var(--hot); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.docs article pre { background: var(--ink); color: var(--paper); padding: 20px 22px; overflow-x: auto; font-family: var(--font-mono); font-size: 12.5px; line-height: 1.65; border: 2px solid var(--ink); border-left: 8px solid var(--hot); }
.docs article :not(pre) > code { background: rgba(18, 18, 18, 0.08); padding: 2px 6px; }
.docs .callout { border: 2px solid var(--ink); border-left: 8px solid var(--ink); background: var(--surface); padding: 16px 20px; margin: 22px 0; max-width: 72ch; }
.docs .callout b { font-family: var(--font-pixel); font-weight: 400; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; display: block; margin-bottom: 6px; }
.docs .callout.warn { border-left-color: var(--hot); }
.docs nav.toc { position: sticky; top: 92px; align-self: start; font-size: 13.5px; }
.docs nav.toc h5 { font-family: var(--font-pixel); font-weight: 400; font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.docs nav.toc a { display: block; text-decoration: none; color: var(--muted); padding: 4px 0; }
.docs nav.toc a:hover { color: var(--ink); }
.docs .pn { display: flex; justify-content: space-between; gap: 16px; margin-top: 64px; padding-top: 24px; border-top: 2px solid var(--ink); }
.docs .pn a { text-decoration: none; font-family: var(--font-display); font-stretch: 112%; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.docs .pn a:hover { color: var(--hot-deep); }
.docs .pn small { display: block; font-family: var(--font-pixel); font-weight: 400; font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 1100px) { .docs { grid-template-columns: 220px minmax(0, 1fr); } .docs nav.toc { display: none; } }
@media (max-width: 760px) { .docs { grid-template-columns: 1fr; padding-top: 28px; } .docs nav.side { position: static; max-height: none; border-bottom: 2px solid var(--ink); padding-bottom: 14px; } }

/* motion preferences */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* wallet picker */
.picker-back { position: fixed; inset: 0; z-index: 100; background: rgba(18, 18, 18, 0.55); display: grid; place-items: center; padding: 16px; }
.picker { width: min(420px, 100%); background: var(--paper); border: 2px solid var(--ink); box-shadow: 8px 8px 0 var(--hot); }
.picker .ph { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 2px solid var(--ink); font-family: var(--font-display); font-stretch: 112%; font-size: 18px; letter-spacing: -0.02em; }
.picker .px { border: 2px solid var(--ink); background: transparent; width: 30px; height: 30px; font-size: 18px; line-height: 1; cursor: pointer; }
.picker .px:hover { background: var(--ink); color: var(--paper); }
.picker .pb { padding: 18px; }
.picker .pb p { font-size: 15px; color: var(--muted); margin: 0 0 14px; }
.picker .opt { display: flex; align-items: center; gap: 14px; width: 100%; padding: 12px 14px; margin-bottom: 10px; background: var(--surface); border: 2px solid var(--ink); cursor: pointer; font: inherit; font-weight: 600; text-align: left; }
.picker .opt:hover { background: var(--ink); color: var(--paper); }
.picker .opt img { border-radius: 6px; }
.picker .wi { width: 28px; height: 28px; background: var(--hot); border: 2px solid var(--ink); }
.wst a { color: var(--hot-deep); }

.btn svg { width: 14px; height: 14px; flex: none; }
