/* Faceless: a gallery at night. Deep ultramarine ground, porcelain type, one light-ultramarine accent that means "sealed". See DESIGN.md. */

:root {
  color-scheme: dark;
  --ground: #0b1030;
  --surface: #11173f;
  --surface-2: #161d4c;
  --ink: #f2efea;
  --ink-2: #c3c6d8;
  --muted: #8a91b6;
  --line-1: rgba(242, 239, 234, .07);
  --line-2: rgba(242, 239, 234, .11);
  --line-3: rgba(242, 239, 234, .2);
  --accent: #8292ff;
  --accent-ink: #0b1030;
  --accent-hover: #9ba8ff;
  --accent-soft: rgba(130, 146, 255, .12);
  --bar: #4f67ff;
  --night: #070a22;
  --night-2: #0e1336;
  --night-ink: #f2efea;
  --night-muted: #8f95b8;
  --night-line: rgba(242, 239, 234, .09);
  --good: #5fd68f;
  --bad: #ff6b5b;
  --warn: #f0b64a;

  --display: 'Instrument Serif', Georgia, 'Times New Roman', serif;
  --text: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --r: 12px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow: 0 0 0 1px rgba(242, 239, 234, .02), 0 24px 60px -24px rgba(0, 0, 0, .7);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 400 16px/1.6 var(--text); font-feature-settings: 'fc11', 'ss01';
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration-color: var(--line-3); text-underline-offset: 3px; }
a:hover { text-decoration-color: currentColor; }
img, svg { display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
::selection { background: rgba(130, 146, 255, .28); color: #fff; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.mono, code, kbd, .num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.sealed { color: var(--accent); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.label, .eyebrow { font: 500 11.5px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ''; width: 18px; height: 2px; background: var(--ink); }

h1, h2 { font-family: var(--display); font-weight: 400; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(40px, 5vw, 66px); line-height: 1.02; }
h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.06; }
h1 .soft, h2 .soft { color: var(--muted); }
h3 { font: 600 18px/1.35 var(--text); margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
.lede { font-size: 18px; line-height: 1.6; color: var(--ink-2); max-width: 38em; }
.lede strong { color: var(--ink); font-weight: 600; }

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--ground) 86%, transparent); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color .25s var(--ease);
}
.top.scrolled { border-bottom-color: var(--line-2); }
.top .wrap { display: flex; align-items: center; gap: 32px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; flex: none; color: var(--ink); }
.nav { display: flex; gap: 2px; }
.nav a { text-decoration: none; padding: 8px 12px; border-radius: 8px; font-size: 14.5px; font-weight: 500; color: var(--ink-2); }
.nav a:hover { color: var(--ink); background: var(--line-1); }
.nav a[aria-current="page"] { color: var(--ink); }
.top .right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.status {
  display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; border-radius: 8px;
  border: 1px solid var(--line-2); background: var(--surface); text-decoration: none;
  font: 500 12.5px/1 var(--mono); color: var(--ink-2); white-space: nowrap;
}
.status i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(130, 146, 255, .14); }
.status.off i { background: var(--bad); box-shadow: 0 0 0 3px rgba(255, 107, 91, .14); }
/* The $FACELESS address in the header, in place of the network badge: full when there is room, 6…6 otherwise. */
.ca-pill { gap: 10px; cursor: pointer; color: var(--ink); border-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.ca-pill b { font-weight: 600; color: var(--accent); }
.ca-pill em { font-style: normal; color: var(--muted); padding-left: 10px; border-left: 1px solid var(--line-2); transition: color .15s var(--ease); }
.ca-pill:hover { border-color: color-mix(in srgb, var(--accent) 70%, transparent); }
.ca-pill:hover em, .ca-pill.copied em { color: var(--accent); }
.ca-pill .mint-short { display: none; }
@media (max-width: 1380px) { .ca-pill .mint-full { display: none; } .ca-pill .mint-short { display: inline; } }
.menu-btn { display: none; width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; }
.menu-btn span { display: block; width: 16px; height: 1.5px; background: var(--ink); margin: 3.5px auto; transition: transform .2s var(--ease), opacity .2s; }
.drawer { display: none; }

/* ---------- buttons, chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid var(--line-3);
  background: var(--surface); color: var(--ink); font-weight: 500; font-size: 15px; letter-spacing: -.005em;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .1s var(--ease), background .2s var(--ease), border-color .2s var(--ease), color .2s;
}
.btn:hover { border-color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.accent:hover { background: var(--accent-hover); }
.btn.small { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 8px; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--line-1); }
.btn[disabled] { opacity: .5; cursor: progress; }
.btn .arrow { font-family: var(--mono); font-weight: 400; transition: transform .2s var(--ease); }
.btn:hover .arrow { transform: translateX(2px); }
.textlink { font-weight: 500; font-size: 15px; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.textlink:hover { text-decoration: underline; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 6px;
  font: 500 11.5px/1 var(--mono); border: 1px solid var(--line-2); color: var(--ink-2); background: var(--surface); white-space: nowrap;
  text-decoration: none;
}
.chip.sealed { color: var(--accent); border-color: rgba(130, 146, 255, .32); background: var(--accent-soft); }
.chip.good { color: var(--good); border-color: rgba(95, 214, 143, .3); background: rgba(95, 214, 143, .07); }
.chip.bad { color: var(--bad); border-color: rgba(255, 107, 91, .32); }
.chip.warn { color: var(--warn); border-color: rgba(240, 182, 74, .3); background: rgba(240, 182, 74, .06); }
.chip.dark { background: var(--ink); border-color: var(--ink); color: var(--ground); }

/* ---------- the redaction bar ---------- */
.redact {
  display: inline-block; height: 1em; min-width: 3em; border-radius: 2px; background: var(--bar); vertical-align: -0.12em;
  transform-origin: left center; transition: transform .45s var(--ease);
}
.arriving .redact { transform: scaleX(0); }
.motion-off .redact { transition: none; }

/* ---------- hero ---------- */
.hero { padding: clamp(48px, 7vw, 96px) 0 clamp(56px, 6vw, 80px); position: relative; isolation: isolate; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(var(--line-1) 1px, transparent 1px), linear-gradient(90deg, var(--line-1) 1px, transparent 1px);
  background-size: 56px 56px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 70% 30%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 70% 80% at 70% 30%, #000 20%, transparent 75%);
}
.hero h1 .accent { color: var(--accent); }
.hero .badge { width: 72px; height: 72px; border-radius: 18px; overflow: hidden; margin-bottom: 26px; box-shadow: 0 0 0 1px var(--line-2); }
.hero .grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(36px, 5vw, 72px); align-items: center; }
.hero h1 { margin: 22px 0 24px; }
.hero .actions { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; align-items: center; }
.hero .actions .textlink { margin-left: 8px; }
.proof { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.proof .chip { height: 28px; padding: 0 10px; background: transparent; }

/* the transaction record */
.record { background: var(--surface); border: 1px solid var(--line-2); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.record .head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line-2); background: var(--surface-2); flex-wrap: wrap; }
.record .head .title { font: 500 12px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.record .rows { padding: 6px 0; }
.record .row { display: grid; grid-template-columns: 132px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 18px; font-size: 14px; }
.record .row + .row { border-top: 1px solid var(--line-1); }
.record .row .k { font: 400 12.5px/1.4 var(--mono); color: var(--muted); }
.record .row .v { font: 400 13.5px/1.4 var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.record .row .v .redact { height: 15px; }
.record .row.private .k { color: var(--ink); }
.record .sep { padding: 8px 18px; font: 500 11px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); border-top: 1px solid var(--line-1); border-bottom: 1px solid var(--line-1); }
.record .foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-top: 1px solid var(--line-2); font-size: 13.5px; color: var(--ink-2); flex-wrap: wrap; }

/* ---------- network band ---------- */
.metrics { border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); background: var(--surface); }
.metrics .wrap { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.metrics .m { padding: 22px 20px 22px 0; }
.metrics .m + .m { padding-left: 20px; border-left: 1px solid var(--line-1); }
.metrics b { display: block; margin-top: 8px; font: 400 26px/1.1 var(--display); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.metrics small { color: var(--muted); font: 400 12px/1 var(--mono); margin-left: 4px; letter-spacing: 0; }

/* ---------- sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section + .section { border-top: 1px solid var(--line-2); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: 48px; }
.section-head h2 { margin-top: 16px; }
.section-head .lede { font-size: 17px; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }

/* harvest now, decrypt later */
.timeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); position: relative; margin-bottom: 56px; }
.timeline::before { content: ''; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--line-3); }
.timeline .t { position: relative; padding: 32px 28px 0 0; }
.timeline .t::before { content: ''; position: absolute; top: 0; left: 0; width: 15px; height: 15px; border-radius: 50%; background: var(--surface); border: 1.5px solid var(--ink); }
.timeline .t:last-child::before { background: var(--accent); border-color: var(--accent); }
.timeline .when { font: 500 12px/1 var(--mono); color: var(--muted); letter-spacing: .04em; }
.timeline h3 { font: 400 24px/1.2 var(--display); letter-spacing: -.01em; margin: 10px 0 8px; }
.timeline p { color: var(--ink-2); max-width: 28em; }

.matrix-wrap { border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; background: var(--surface); }
table.matrix { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.matrix th, table.matrix td { text-align: left; padding: 15px 18px; border-bottom: 1px solid var(--line-1); vertical-align: middle; }
table.matrix thead th { font: 500 11.5px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); border-bottom: 1px solid var(--line-2); }
table.matrix tbody tr:last-child td { border-bottom: 0; }
table.matrix td:first-child { font-weight: 600; width: 18%; }
table.matrix th.us, table.matrix td.us { background: rgba(130, 146, 255, .04); }
.v-ok, .v-no, .v-part { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; }
.v-ok::before, .v-no::before, .v-part::before { content: ''; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.v-ok { color: var(--ink); } .v-ok::before { background: var(--accent); }
.v-no { color: var(--ink-2); } .v-no::before { background: var(--bad); }
.v-part { color: var(--ink-2); } .v-part::before { background: var(--warn); }
.note { margin-top: 18px; color: var(--muted); font-size: 14px; max-width: 60em; line-height: 1.6; }

/* technology */
.tech { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; background: var(--surface); }
.tech .card { padding: 24px 22px 26px; border-right: 1px solid var(--line-1); border-bottom: 1px solid var(--line-1); display: flex; flex-direction: column; gap: 10px; min-height: 236px; }
.tech .card:nth-child(4n) { border-right: 0; }
.tech .card:nth-last-child(-n+4) { border-bottom: 0; }
.tech .card p { color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }
.tech .card .rep { margin-top: auto; padding-top: 12px; font: 400 12px/1.4 var(--mono); color: var(--muted); border-top: 1px dashed var(--line-2); }
.tech .card.next { background: var(--surface-2); }
.tech .card.next .label { color: var(--accent); }
.glyph { width: 28px; height: 28px; color: var(--ink); margin-bottom: 4px; }

/* how a transaction works */
.flow { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin-bottom: 48px; counter-reset: f; }
.flow .s { position: relative; padding: 0 22px 0 0; counter-increment: f; }
.flow .s::before { content: counter(f, decimal-leading-zero); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-3); background: var(--surface); font: 500 12px/1 var(--mono); margin-bottom: 18px; position: relative; z-index: 1; }
.flow .s::after { content: ''; position: absolute; top: 17px; left: 34px; right: 0; height: 1px; background: var(--line-3); }
.flow .s:last-child::after { display: none; }
.flow h3 { font-size: 16.5px; margin-bottom: 6px; }
.flow p { color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }
.ledger-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; background: var(--surface); }
.ledger-split > div + div { border-left: 1px solid var(--line-2); }
.ledger-split .hd { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 18px; background: var(--surface-2); border-bottom: 1px solid var(--line-2); flex-wrap: wrap; }

/* key/value rows, shared by record panels and app pages */
.kv { display: grid; grid-template-columns: 170px minmax(0, 1fr); padding: 11px 18px; border-bottom: 1px solid var(--line-1); gap: 12px; font-size: 14px; align-items: center; }
.kv:last-child { border-bottom: 0; }
.kv .k { color: var(--muted); font: 400 12.5px/1.5 var(--mono); }
.kv .v { font: 400 13.5px/1.5 var(--mono); overflow-wrap: anywhere; }
.kv.never .k { color: var(--ink); }
.kv .v .redact { height: 14px; }

/* specification (dark band) */
.spec { background: var(--night); color: var(--night-ink); }
.spec .eyebrow, .spec .label { color: var(--night-muted); }
.spec .eyebrow::before { background: var(--night-ink); }
.spec .lede { color: var(--night-muted); }
.spec + .section { border-top: 0; }
.spec { border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.spec-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
table.datasheet { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.datasheet th, table.datasheet td { text-align: left; padding: 14px 0; border-bottom: 1px solid var(--night-line); vertical-align: top; }
table.datasheet th { width: 34%; font: 400 12.5px/1.6 var(--mono); color: var(--night-muted); padding-right: 20px; font-weight: 400; }
table.datasheet td { color: var(--night-ink); }
table.datasheet td .mono { color: #fff; }
.measured { border: 1px solid var(--night-line); border-radius: var(--r); background: var(--night-2); }
.measured .m { padding: 22px 22px; }
.measured .m + .m { border-top: 1px solid var(--night-line); }
.measured b { display: block; font: 400 40px/1 var(--display); letter-spacing: -.01em; margin: 10px 0 8px; color: #fff; font-variant-numeric: tabular-nums; }
.measured p { color: var(--night-muted); font-size: 14px; }

/* roadmap */
.road { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line-3); }
.road .p { padding: 22px 22px 0 0; position: relative; }
.road .p::before { content: ''; position: absolute; top: -5px; left: 0; width: 9px; height: 9px; border-radius: 50%; background: var(--surface); border: 1.5px solid var(--ink); }
.road .p.done::before { background: var(--ink); }
.road .p.now::before { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.road .phase { font: 500 11.5px/1 var(--mono); color: var(--muted); letter-spacing: .06em; text-transform: uppercase; }
.road h3 { margin: 10px 0 6px; font-size: 17px; }
.road p { color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }
.road .chip { margin-top: 12px; }

/* run a node */
.cta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center; padding: clamp(32px, 4vw, 48px); border: 1px solid var(--line-2); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow); }
.cta h2 { font-size: clamp(28px, 3vw, 40px); margin: 14px 0 14px; }
.cta .actions { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
pre.code { background: var(--night); color: var(--night-ink); border: 1px solid var(--line-2); border-radius: 12px; padding: 18px 20px; overflow-x: auto; font: 400 13.5px/1.75 var(--mono); margin: 0; }
pre.code .c { color: var(--night-muted); }
pre.code .p { color: var(--accent); user-select: none; }

.ca {
  margin-top: 28px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 20px; align-items: center;
  padding: 16px 20px; border: 1px solid var(--line-2); border-radius: var(--r); background: var(--surface);
}
.ca .addr { font: 400 14px/1.4 var(--mono); overflow-wrap: anywhere; user-select: all; }
.ca.live { border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.ca.live .addr { font-size: 15px; color: var(--ink); }
.ca .ca-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; font-size: 14px; padding-top: 12px; border-top: 1px solid var(--line-1); }
.ca .ca-links { display: flex; gap: 18px; font: 500 12.5px/1.4 var(--mono); }
.ca .ca-links a { color: var(--ink-2); text-decoration: none; }
.ca .ca-links a:hover { color: var(--accent); }

/* ---------- footer ---------- */
.foot-site { border-top: 1px solid var(--line-2); padding: 56px 0 40px; margin-top: 24px; background: var(--night); }
.foot-site .cols5 { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-site p { color: var(--muted); font-size: 14px; max-width: 34em; }
.foot-site h4 { margin: 0 0 14px; font: 500 11.5px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.foot-site ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 14.5px; }
.foot-site ul a { text-decoration: none; color: var(--ink-2); }
.foot-site ul a:hover { color: var(--ink); }
.foot-site .base { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line-1); color: var(--muted); font-size: 13px; flex-wrap: wrap; }
.switch { background: none; border: 1px solid var(--line-2); border-radius: 8px; padding: 7px 12px; font: 500 12px/1 var(--mono); color: var(--ink-2); cursor: pointer; }
.switch:hover { border-color: var(--ink); }

/* ---------- app pages ---------- */
.page-head { padding: 52px 0 32px; display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.page-head h1 { font-size: clamp(36px, 4.4vw, 56px); margin-top: 14px; }
.page-head .sub { color: var(--ink-2); margin-top: 12px; max-width: 46em; }
.panel { background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r); }
.panel > .bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--line-2); background: var(--surface-2); border-radius: var(--r) var(--r) 0 0; flex-wrap: wrap; }
.panel > .pad { padding: 20px 18px; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.stack { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
.cols > *, .stack > * { min-width: 0; }

.tiles4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r); margin-bottom: 20px; }
.tiles4 > div { padding: 18px 20px; min-width: 0; }
.tiles4 > div + div { border-left: 1px solid var(--line-1); }
.tiles4 b { display: block; margin-top: 8px; font: 400 24px/1.15 var(--display); letter-spacing: -.01em; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

table.rows { width: 100%; border-collapse: collapse; font-size: 14px; }
table.rows th, table.rows td { text-align: left; padding: 11px 18px; border-bottom: 1px solid var(--line-1); white-space: nowrap; }
table.rows th { font: 500 11px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
table.rows td { font-family: var(--mono); font-variant-numeric: tabular-nums; font-size: 13.5px; }
table.rows tr:last-child td { border-bottom: 0; }
table.rows tr.link { cursor: pointer; }
table.rows tr.link:hover td { background: var(--surface-2); }
table.rows a { text-decoration: none; }
table.rows td.r, table.rows th.r { text-align: right; }

.search { display: flex; gap: 10px; width: min(100%, 560px); }
.input, .search input, textarea.input {
  flex: 1; min-width: 0; height: 46px; padding: 0 14px; border: 1px solid var(--line-3); border-radius: 10px;
  background: var(--surface); font: 400 15px/1 var(--mono);
}
textarea.input { height: auto; padding: 12px 14px; line-height: 1.5; resize: vertical; width: 100%; }
.input:focus, .search input:focus, textarea.input:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: transparent; }
.field { display: grid; gap: 8px; margin-bottom: 18px; }
.field > label { font-weight: 500; font-size: 14.5px; }
.field .hint { color: var(--muted); font-size: 13.5px; }
.field .err { color: var(--bad); font-size: 14px; }

.empty { padding: 40px 18px; text-align: center; color: var(--muted); display: grid; gap: 10px; justify-items: center; }
.empty strong { color: var(--ink); font-weight: 600; }
.empty .redact { width: 120px; height: 12px; opacity: .85; }

.hashline { font: 400 13px/1.5 var(--mono); overflow-wrap: anywhere; }
.inputs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.in-card { border: 1px solid var(--line-2); border-radius: var(--r); padding: 18px; background: var(--surface); }
.in-card .kv { grid-template-columns: minmax(0, 1fr); gap: 2px; padding: 9px 0; }
.in-card .kv:last-child { padding-bottom: 0; }
.in-card .ring { margin: 8px auto 16px; }

/* ring of sixteen (explorer) */
.ring { display: grid; grid-template-columns: repeat(4, 1fr); aspect-ratio: 1; width: 100%; max-width: 300px; margin: 0 auto; }
.ring .dot { position: relative; display: grid; place-items: center; text-decoration: none; }
.ring .dot i { width: 38%; aspect-ratio: 1; border-radius: 50%; background: var(--ink); display: block; }
.ring .dot span { position: absolute; bottom: 2%; font: 400 10px/1 var(--mono); color: var(--muted); }
.ring.small { max-width: 176px; }
.ring.is-empty .dot i { background: var(--line-3); }

.checks { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 10px; }
.checks li { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; align-items: center; font-size: 14.5px; }
.checks li .s { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line-3); display: grid; place-items: center; font: 600 11px/1 var(--mono); }
.checks li.ok .s { border-color: var(--accent); color: var(--accent-ink); background: var(--accent); }
.checks li.no .s { border-color: var(--bad); color: var(--ground); background: var(--bad); }
.checks li.run .s { border-color: var(--accent); border-top-color: transparent; animation: spin .8s linear infinite; }
.checks li .d { color: var(--muted); font: 400 12.5px/1.3 var(--mono); }
@keyframes spin { to { transform: rotate(360deg); } }
.motion-off .checks li.run .s { animation: none; border-top-color: var(--accent); }

.addrbox { font: 400 13px/1.55 var(--mono); overflow-wrap: anywhere; background: var(--surface-2); border: 1px solid var(--line-1); border-radius: 10px; padding: 12px 14px; max-height: 92px; overflow-y: auto; user-select: all; }
.addrbox.long { max-height: 74px; }
.balance { font: 400 clamp(44px, 5.4vw, 64px)/1 var(--display); letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.balance small { font: 500 15px/1 var(--mono); color: var(--muted); letter-spacing: 0; margin-left: 10px; }
.row-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.notice { padding: 12px 14px; border-radius: 10px; background: var(--surface-2); font-size: 14.5px; color: var(--ink-2); border: 1px solid var(--line-1); }
.notice.good { background: rgba(95, 214, 143, .07); color: var(--good); border-color: rgba(95, 214, 143, .2); }
.notice.bad { background: rgba(255, 107, 91, .07); color: var(--bad); border-color: rgba(255, 107, 91, .2); }
.notice.sealed { background: var(--accent-soft); color: var(--accent); border-color: rgba(130, 146, 255, .22); }
.log { font: 400 13px/1.75 var(--mono); max-height: 260px; overflow-y: auto; color: var(--ink-2); }
.log div { border-bottom: 1px solid var(--line-1); padding: 3px 0; }
input[type="range"] { accent-color: var(--accent); }
.scroll-x { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.toasts { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); display: grid; gap: 8px; z-index: 60; pointer-events: none; }
.toast { background: var(--ink); color: var(--ground); padding: 10px 16px; border-radius: 10px; font-size: 14px; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .4); }

/* docs */
.doc-layout { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 56px; align-items: start; }
.toc { position: sticky; top: 92px; display: grid; gap: 4px; font-size: 14px; }
.toc a { text-decoration: none; color: var(--ink-2); padding: 5px 10px; border-left: 2px solid var(--line-2); }
.toc a:hover { color: var(--ink); border-left-color: var(--ink); }
.doc { max-width: 760px; padding-bottom: 40px; }
.doc h2 { font-size: clamp(26px, 2.6vw, 34px); margin: 64px 0 14px; scroll-margin-top: 90px; }
.doc h2:first-of-type { margin-top: 24px; }
.doc h3 { margin: 28px 0 8px; }
.doc p, .doc li { color: var(--ink-2); }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 20px; }
.doc li + li { margin-top: 6px; }
.doc table.rows { border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; background: var(--surface); display: table; }
.doc table.rows td { white-space: normal; }
.doc table.rows td:first-child { white-space: nowrap; color: var(--ink); }
.doc pre.code { margin: 16px 0; }
.doc .eq { font: 400 14.5px/1.7 var(--mono); background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 16px; margin: 14px 0; overflow-x: auto; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .tech { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tech .card:nth-child(4n) { border-right: 1px solid var(--line-1); }
  .tech .card:nth-child(2n) { border-right: 0; }
  .tech .card:nth-last-child(-n+4) { border-bottom: 1px solid var(--line-1); }
  .tech .card:nth-last-child(-n+2) { border-bottom: 0; }
  .flow { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 36px; }
  .flow .s:nth-child(3)::after { display: none; }
  .road { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .metrics .wrap { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .metrics .m:nth-child(4) { border-left: 0; padding-left: 0; }
  .metrics .m:nth-child(n+4) { border-top: 1px solid var(--line-1); }
}
@media (max-width: 920px) {
  .nav, .top .right .status { display: none; }
  .menu-btn { display: block; }
  .drawer { display: none; position: fixed; top: 68px; left: 0; right: 0; bottom: 0; background: var(--ground); z-index: 39; padding: 20px var(--gutter); overflow-y: auto; }
  .drawer.open { display: block; }
  .drawer a { display: block; padding: 16px 0; border-bottom: 1px solid var(--line-2); text-decoration: none; font: 400 22px/1.2 var(--display); letter-spacing: -.01em; }
  .drawer .status { display: inline-flex; margin-top: 20px; }
  .menu-open .menu-btn span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
  .menu-open .menu-btn span:nth-child(2) { opacity: 0; }
  .menu-open .menu-btn span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
  .hero .grid, .grid-2, .spec-grid, .cta, .cols, .section-head { grid-template-columns: minmax(0, 1fr); }
  .section-head { margin-bottom: 36px; }
  .timeline { grid-template-columns: minmax(0, 1fr); row-gap: 28px; }
  .timeline::before { left: 7px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .timeline .t { padding: 0 0 0 36px; }
  .ledger-split { grid-template-columns: minmax(0, 1fr); }
  .ledger-split > div + div { border-left: 0; border-top: 1px solid var(--line-2); }
  .tiles4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles4 > div:nth-child(3) { border-left: 0; }
  .tiles4 > div:nth-child(n+3) { border-top: 1px solid var(--line-1); }
  .foot-site .cols5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot-site .cols5 > div:first-child { grid-column: 1 / -1; }
  .doc-layout { grid-template-columns: minmax(0, 1fr); }
  .toc { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 15.5px; }
  .top .wrap { height: 60px; gap: 12px; }
  .drawer { top: 60px; }
  .top .right .btn { display: none; }
  .hero .actions .btn { flex: 1; }
  .hero .actions .textlink { margin: 4px 0 0; width: 100%; justify-content: center; }
  .record .row { grid-template-columns: 96px minmax(0, 1fr); }
  .record .row > :nth-child(3) { display: none; }
  .metrics .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metrics .m:nth-child(n) { border-left: 0; padding-left: 0; border-top: 1px solid var(--line-1); }
  .metrics .m:nth-child(-n+2) { border-top: 0; }
  .metrics .m:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line-1); }
  .metrics b { font-size: 22px; }
  .tech { grid-template-columns: minmax(0, 1fr); }
  .tech .card { border-right: 0 !important; border-bottom: 1px solid var(--line-1) !important; min-height: 0; }
  .tech .card:last-child { border-bottom: 0 !important; }
  .flow { grid-template-columns: minmax(0, 1fr); }
  .flow .s { display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 16px; padding: 0; }
  .flow .s::before { grid-row: span 2; margin: 0; }
  .flow .s::after { display: none; }
  .road { grid-template-columns: minmax(0, 1fr); }
  .kv { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .ca { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  table.datasheet th { width: 40%; }
  .foot-site .cols5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles4 b { font-size: 20px; }
  .page-head { padding-top: 32px; }
}
@media (max-width: 920px) {
  .top .right .ca-pill { display: inline-flex; }
}
@media (max-width: 400px) {
  .ca-pill { gap: 8px; padding: 0 10px; }
  .ca-pill em { display: none; }
  .ca-pill.copied em { display: inline; padding-left: 0; border-left: 0; }
  .ca-pill.copied .mint-short { display: none; }
}
@media (max-width: 920px) {
  .drawer a.status { display: inline-flex; padding: 0 12px; height: 34px; margin-top: 24px; border: 1px solid var(--line-2); font: 500 12.5px/1 var(--mono); letter-spacing: 0; }
}

/* the wordmark: Instrument Serif, set like the X kit's lockup */
.wordmark { font: 400 1em/1 var(--display); letter-spacing: -.01em; color: var(--ink); white-space: nowrap; }
.brand .wordmark { font-size: 27px; transform: translateY(-1px); }
.hero .badge img { border-radius: 22px; box-shadow: 0 18px 40px -18px rgba(5, 8, 40, .8); }
