/* Govia Systems · goviasystems.com
   Visual system follows the September 2026 overview: slate ground, cyan accent, Inter for
   reading, IBM Plex Mono for data. Product panels use the product's own tokens. */

:root {
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --faint: #94a3b8;
  --rule: #e2e8f0;
  --rule-soft: #eef2f6;
  --panel: #f8fafc;
  --paper: #ffffff;
  --accent: #22d3ee;
  --accent-deep: #0e7490;
  --accent-ink: #155e75;
  --accent-wash: #ecfeff;

  --p-bg: #0A0B0E;
  --p-panel: #121419;
  --p-lane: #0E1014;
  --p-rule: #262A33;
  --p-rule-2: #1B1F26;
  --p-t1: #EEF0F4;
  --p-t2: #AEB4C0;
  --p-t3: #8189A0;
  --pos: #4FC3F7;
  --det: #66D9A8;
  --img: #B39DFF;
  --dec: #FFB74D;
  --ctx: #5C6B80;
  --conflict: #FF5C5C;
  --cutoff: #FFFFFF;

  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --wrap: 1180px;
  --gutter: 24px;
  --section: 96px;
  --radius: 6px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font: 400 17px/1.6 var(--sans);
  font-feature-settings: "cv11", "ss01";
}
h1, h2, h3, h4, p, ul, ol, dl, figure { margin: 0; }
h1, h2, h3, h4 { color: var(--ink); text-wrap: balance; }
h1 { font-size: clamp(34px, 3.8vw, 50px); font-weight: 800; line-height: 1.04; letter-spacing: -0.03em; }
h2 { font-size: clamp(28px, 3.1vw, 40px); font-weight: 800; line-height: 1.1; letter-spacing: -0.025em; }
h3 { font-size: 19px; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; }
h4 { font-size: 16px; font-weight: 700; line-height: 1.3; }
a { color: var(--accent-deep); text-decoration: none; }
a:hover { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
b, strong { font-weight: 600; color: var(--ink); }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent-deep); outline-offset: 3px; }
::selection { background: #cffafe; color: var(--ink); }
.mono { font-family: var(--mono); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 4px; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.wrap-wide { max-width: 1320px; }
.eyebrow, h2.eyebrow, h3.eyebrow {
  font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent-deep); line-height: 1.5; margin-bottom: 14px; text-wrap: initial;
}
.lede { font-size: clamp(17px, 1.35vw, 19px); line-height: 1.5; font-weight: 500; color: var(--ink); }
.body { max-width: 68ch; }
.measure { max-width: 68ch; }
.caption { font-size: 12px; line-height: 1.55; color: var(--muted); }
.label-note { font-family: var(--mono); font-size: 12px; color: var(--accent-deep); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 20px; border-radius: 4px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; line-height: 1; white-space: nowrap; text-decoration: none;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-primary:hover { background: #1e293b; color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: #7c8ba0; }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); background: var(--panel); }
.btn-small { padding: 9px 14px; font-size: 14px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(160%) blur(8px); border-bottom: 1px solid var(--rule); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 64px; }
.wordmark { font-family: var(--sans); font-weight: 800; font-size: 28px; letter-spacing: -0.05em; color: var(--ink); line-height: 1; }
.wordmark span { color: var(--accent); }
.wordmark:hover { text-decoration: none; color: var(--ink); }
.wordmark.small { font-size: 24px; }
.site-nav { display: flex; align-items: center; gap: 26px; font-size: 14px; font-weight: 500; }
.site-nav > a { color: var(--ink-2); }
.site-nav > a:hover { color: var(--ink); text-decoration: none; }
.site-nav > .btn { margin-left: 6px; }
.menu-toggle { display: none; background: none; border: 1px solid #7c8ba0; border-radius: 4px; padding: 8px 12px; font-size: 14px; font-weight: 600; color: var(--ink); }

/* Hero */
.hero { padding-block: 40px 40px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 48px; align-items: end; }
.hero-copy .eyebrow { max-width: 60ch; }
.hero-copy .lede { margin-top: 20px; max-width: 60ch; }
.hero-side .body { font-size: 16px; color: var(--ink-2); }
.hero-side .actions { margin-top: 0; }
.hero-side { padding-bottom: 6px; }
.hero-note { margin-top: 14px; font-size: 13px; color: var(--muted); }
.panel-intro { margin-top: 6px; font-size: 15px; line-height: 1.55; color: var(--ink-2); max-width: 120ch; }
.eyebrow-inline { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-deep); margin-top: 32px; line-height: 1.5; text-wrap: initial; }
.ledger-mount { background: var(--p-bg); border: 1px solid var(--p-rule); border-radius: var(--radius); overflow: hidden; }
.ledger-mount canvas { display: block; }
.fig-tag { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.02em; color: var(--p-t3); border: 1px solid var(--p-rule); border-radius: 2px; padding: 2px 7px; white-space: nowrap; }
.fig-tag-light { color: var(--accent-deep); border-color: var(--rule); margin-right: 6px; }

/* Status strip */
.status-strip { background: var(--panel); border-bottom: 1px solid var(--rule); }
.status-row { display: grid; grid-template-columns: 150px 1fr; gap: 20px; align-items: baseline; padding-block: 16px; }
.status-row p:last-child { font-size: 15px; line-height: 1.55; color: var(--ink-2); max-width: 90ch; }
.status-label { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-deep); line-height: 1.5; }

/* Sections */
.section { padding-block: var(--section); }
.section-tight { padding-top: 72px; }
.section-panel { background: var(--panel); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.section + .section:not(.section-panel) { border-top: 1px solid var(--rule); }
.section-panel + .section { border-top: 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; }
.section-head h2 { margin-top: 0; }
.section h2 + .body, .section h2 + .measure { margin-top: 18px; }

.cards { display: grid; gap: 20px; margin-top: 28px; }
.record-lede { max-width: 70ch; margin-bottom: 8px; font-weight: 400; color: var(--ink-2); font-size: 18px; }
.cards.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card { border: 1px solid var(--rule); border-radius: var(--radius); padding: 24px 24px 26px; background: var(--paper); }
.card-kicker { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-deep); margin-bottom: 12px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-2); font-size: 16px; }
.card-note, .card p.card-note, .cards-plain p.card-note, .uses p.card-note { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--rule-soft); font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.cards-plain > div { border-top: 2px solid var(--accent); padding-top: 16px; }
.cards-plain h4 { margin-bottom: 8px; font-size: 19px; }
.cards-plain p { font-size: 16px; }
.cards-plain .card-note { border-top-color: var(--rule); }

/* How the record is kept (store figure) */
.store { margin-top: 56px; padding-top: 48px; border-top: 1px solid var(--rule); align-items: start; }
.store-title { font-size: 22px; font-weight: 700; line-height: 1.3; letter-spacing: -0.01em; color: var(--ink); margin-bottom: 14px; }
.store-note { max-width: 60ch; }
.store-controls { margin-top: 12px; }
.delivery-note { grid-column: 1 / -1; font-size: 13.5px; color: var(--muted); margin-top: -4px; }
.store-copy p:not(.eyebrow) { font-size: 16px; }
.principles { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; margin-top: 22px; }
.principles dt { font-family: var(--mono); font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); }
.principles dd { margin: 4px 0 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.store-figure { min-width: 0; }
.store-figure figcaption { margin-top: 10px; }

/* Product panel (asset chain) */
.chain {
  margin-top: 16px; background: var(--p-bg); color: var(--p-t2); border: 1px solid var(--p-rule); border-radius: var(--radius);
  font-family: var(--mono); font-size: 11.5px; line-height: 1.45; overflow: hidden;
}
.chain-top { display: flex; justify-content: space-between; align-items: center; gap: 12px 16px; padding: 10px 14px; border-bottom: 1px solid var(--p-rule); flex-wrap: wrap; }
.chain-top .chain-store { margin-left: auto; }
.chain-tabs { display: flex; gap: 14px; align-items: center; }
.chain-brand { color: var(--p-t1); font-weight: 600; font-size: 13px; letter-spacing: -0.02em; }
.chain-tab { color: var(--p-t3); white-space: nowrap; }
.chain-tab.is-on { color: var(--p-t1); border: 1px solid var(--p-rule); padding: 2px 7px; border-radius: 2px; }
.chain-store { color: var(--p-t3); }
.chain-store b, .chain-store span { white-space: nowrap; }
.chain-store b { color: var(--p-t1); font-weight: 500; }
.amber { color: var(--dec); }
.blue { color: var(--pos); }
.green { color: var(--det); }
.red { color: var(--conflict); }
.chain-contract { display: flex; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--p-rule); flex-wrap: wrap; align-items: center; }
.chip { border: 1px solid var(--p-rule); border-radius: 2px; padding: 3px 8px; color: var(--p-t2); background: var(--p-panel); white-space: nowrap; }
.chip-label { color: var(--p-t1); background: transparent; border-color: transparent; padding-left: 0; font-weight: 600; }
.chip-cut { border-color: #4b5563; color: var(--p-t1); }
.chip-right { margin-left: auto; }
.chain-asset { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 14px 14px 12px; flex-wrap: wrap; }
.chain-name { font-family: var(--mono); color: var(--p-t1); font-size: 18px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; text-wrap: initial; }
.chain-meta { font-size: 11.5px; font-weight: 400; color: var(--p-t3); }
.chain-sub { color: var(--p-t3); margin-top: 4px; }
.chain-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.chain-btn { font-family: var(--mono); font-size: 11.5px; background: var(--p-t1); color: var(--p-bg); border: 1px solid var(--p-t1); border-radius: 2px; padding: 6px 10px; font-weight: 600; }
.chain-btn:hover { background: #fff; }
.chain-btn[disabled] { opacity: .5; cursor: default; }
.chain-static { border: 1px solid var(--p-rule); border-radius: 2px; padding: 5px 10px; color: var(--p-t3); }

.chain-body { display: grid; grid-template-columns: minmax(0, 1fr) 272px; border-top: 1px solid var(--p-rule); }
.chain-gridwrap { position: relative; overflow-x: auto; overflow-y: hidden; align-self: start; }
.ledger-fallback { padding: 16px; color: var(--p-t2); }
.ledger-mount canvas + .ledger-fallback, .ledger-mount:has(canvas) .ledger-fallback { display: none; }
.chain-grid { border-collapse: collapse; width: 100%; min-width: 990px; table-layout: fixed; }
.chain-grid td { overflow: hidden; }
.chain-gridwrap:focus-visible { outline-offset: -2px; }
.chain-grid th, .chain-grid td { text-align: left; vertical-align: top; padding: 7px 8px; border-bottom: 1px solid var(--p-rule-2); border-right: 1px solid var(--p-rule-2); font-weight: 400; }
.chain-grid thead th { border-bottom: 1px solid var(--p-rule); background: var(--p-panel); }
.chain-grid thead tr.strip th { height: 22px; padding: 3px 8px; border-bottom: 1px solid var(--p-rule-2); background: var(--p-bg); }
.chain-grid thead tr.strip .lab-2 { margin-top: 0; }
.strip-cell span { color: var(--p-t3); font-size: 10.5px; }
.chain-grid th.lab { width: 140px; background: var(--p-panel); position: sticky; left: 0; z-index: 2; border-right: 1px solid var(--p-rule); }
.chain-grid tbody th.lab { background: var(--p-bg); }
.lab-1 { display: block; color: var(--p-t1); font-weight: 600; }
.lab-2 { display: block; color: var(--p-t3); font-size: 10.5px; line-height: 1.35; margin-top: 1px; }
.day { display: block; color: var(--p-t1); font-weight: 600; }
.day .narrow { display: none; }
.ver { display: block; color: var(--p-t3); font-size: 10.5px; }
.n { display: block; color: var(--p-t1); white-space: nowrap; }
.s { display: block; color: var(--p-t3); font-size: 10.5px; line-height: 1.4; }
.s.dim { color: #767e93; }
.n.hollow { color: var(--p-t3); }
.pos-t { color: var(--p-t1); }
.img-t { color: var(--img); }
.ctx-t { color: var(--p-t2); }
.sq { display: inline-block; width: 7px; height: 7px; margin: 0 5px 1px 0; vertical-align: middle; background: var(--p-t3); }
.sq.pos { background: var(--pos); }
.sq.img { background: var(--img); }
.sq.det { background: var(--det); }
.sq.late-mark { background: transparent; border: 1px solid var(--pos); width: 6px; height: 6px; }
.glyph { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin: 0 5px 1px 0; vertical-align: middle; border: 1px solid var(--p-t3); }
.glyph-resolved { background: var(--det); border-color: var(--det); }
.glyph-candidate { border-color: var(--dec); background: linear-gradient(90deg, var(--dec) 50%, transparent 50%); }
.glyph-unresolved { border-color: var(--p-t3); background: transparent; }
.dia { display: inline-block; width: 7px; height: 7px; background: var(--dec); transform: rotate(45deg); margin: 0 7px 1px 2px; vertical-align: middle; }
.dia-hollow { background: transparent; border: 1px solid var(--dec); width: 6px; height: 6px; }
.dia-conflict { box-shadow: 0 0 0 2px var(--p-bg), 0 0 0 3px var(--conflict); }
.late-note { color: var(--pos); }
.tail { display: none; position: absolute; left: 100%; top: 21px; width: 150%; border-top: 1px dashed var(--pos); opacity: .85; z-index: 1; pointer-events: none; }
.chain[data-replay="1"][data-late="1"] .cell-late .tail { display: block; }
.cell-late { position: relative; overflow: visible; }

.ver-flip .v2 { display: none; }
.chain[data-late="1"] .ver-flip .v1 { display: none; }
.chain[data-late="1"] .ver-flip .v2 { display: inline; }
.pre-late { display: none; }
.late-note { display: block; visibility: hidden; }
.chain[data-replay="1"][data-late="1"] .late-note { visibility: visible; }
.chain[data-replay="1"]:not([data-late="1"]) .cell-late .pre-late { display: block; }
.chain[data-replay="1"]:not([data-late="1"]) .cell-late .n { display: none; }
.late-mark { background: var(--pos); border: 0; width: 7px; height: 7px; }
.chain[data-replay="1"][data-late="1"] .late-mark { background: transparent; border: 1px solid var(--pos); width: 6px; height: 6px; }

.row-span .span-cell { position: relative; height: 54px; padding: 0; }
.row-span.row-last .span-cell { height: 54px; }
.bar {
  position: absolute; top: 8px; left: calc(var(--from) / 8 * 100%); width: calc((var(--to) - var(--from)) / 8 * 100%);
  height: 18px; line-height: 16px; padding: 0 7px; font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  border: 1px solid; border-radius: 2px; box-sizing: border-box;
}
.bar + .bar { top: 30px; }
.bar-dec { color: var(--dec); border-color: rgba(255,183,77,.55); background: rgba(255,183,77,.10); }
.bar-hollow { border-style: dashed; background: transparent; }
.bar-rel { color: var(--det); border-color: rgba(102,217,168,.55); background: rgba(102,217,168,.10); }
.bar-method { color: var(--p-t2); border-color: var(--p-rule); background: var(--p-panel); }
.bar-finding { color: var(--p-t1); border-color: var(--p-t2); }
.bar[data-from] { transition: opacity .2s; }
.chain-grid [data-day].future { opacity: .5; }
.chain-grid [data-day].future .s, .chain-grid [data-day].future .ver { color: var(--p-t1); }
.chain-grid thead th[data-day].future .day { color: var(--p-t3); }
.bar.future { opacity: .5; }

.chain-cutline { position: absolute; top: 0; bottom: 0; width: 0; border-left: 1px solid var(--cutoff); z-index: 1; pointer-events: none; display: none; }
.chain-cutline span { position: absolute; top: 3px; left: 5px; color: var(--cutoff); font-size: 10.5px; font-weight: 500; white-space: nowrap; background: rgba(10,11,14,.85); padding: 1px 4px; }
.chain-cutline.on { display: block; }
.chain-cutline.flip span { left: auto; right: 6px; }

.chain-result { border-left: 1px solid var(--p-rule); padding: 14px; background: var(--p-panel); }
.result-path { color: var(--p-t3); font-size: 10.5px; margin-bottom: 8px; }
.result-state h4 { font-family: var(--mono); color: var(--p-t1); font-size: 14px; font-weight: 600; letter-spacing: 0; margin-bottom: 6px; text-wrap: initial; }
.result-meta { color: var(--p-t3); font-size: 10.5px; line-height: 1.5; margin-bottom: 6px; }
.result-dl { display: grid; grid-template-columns: 62px 1fr; gap: 8px 10px; margin-top: 12px; font-size: 10.5px; line-height: 1.5; }
.result-dl dt { color: var(--p-t3); }
.result-dl dd { color: var(--p-t2); margin: 0; }
.result-actions { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.result-note { margin-top: 14px; color: var(--p-t3); font-size: 10.5px; border-top: 1px solid var(--p-rule); padding-top: 10px; }
.chain-legend { padding: 10px 14px; border-top: 1px solid var(--p-rule); color: var(--p-t3); font-size: 10.5px; line-height: 1.6; }

.captions { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-top: 18px; }
.captions li { font-size: 14px; line-height: 1.5; color: var(--muted); border-top: 1px solid var(--rule); padding-top: 12px; }
.captions li:first-child { color: var(--ink-2); }
.delivery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--rule); }
.delivery h3 { display: inline; font-size: 16px; }
.delivery p { display: inline; font-size: 16px; color: var(--ink-2); }

/* Uses */
.uses { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; margin-top: 32px; }
.uses article { background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 10px; }
.uses h3 { font-size: 17px; }
.uses p { font-size: 15px; line-height: 1.5; }
.out { font-size: 14px; line-height: 1.5; color: var(--ink-2); border-top: 1px solid var(--rule); padding-top: 10px; margin-top: auto; }
.out span { display: block; font-family: var(--mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-deep); margin-bottom: 4px; }

.footnote { margin-top: 24px; font-size: 13px; line-height: 1.5; color: var(--muted); max-width: 80ch; }
.platforms { margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--rule); }
.platforms ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 32px; }
.platforms li { font-size: 15.5px; line-height: 1.55; }
.platforms li b { color: var(--ink); font-weight: 700; }

/* Timeline example */
.timeline { list-style: none; padding: 0; margin-top: 36px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 5px; height: 2px; background: var(--rule); }
.timeline li { position: relative; padding-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--paper); border: 2px solid var(--ink); box-sizing: border-box; }
.timeline li.tl-correction::before { background: var(--accent); border-color: var(--accent-deep); }
.tl-when { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: 0.02em; }
.tl-when b { color: var(--ink); font-weight: 600; }
.timeline p { font-size: 15.5px; line-height: 1.55; }
.timeline .out { margin-top: auto; }

/* Different + boundary */
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.store.two-col { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.diff { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 32px; margin-top: 4px; }
.diff > div { border-top: 2px solid var(--accent); padding-top: 14px; }
.diff h4 { margin-bottom: 8px; font-size: 18px; }
.diff p { font-size: 15.5px; }
.diff.boundary > div { border-top-color: #cbd5e1; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 24px; margin-top: 8px; padding: 28px 28px 24px; background: var(--panel); border: 1px solid var(--rule); border-radius: var(--radius); }
.stat b { display: block; font-size: 30px; font-weight: 800; letter-spacing: -0.03em; color: var(--ink); line-height: 1.05; font-variant-numeric: tabular-nums; }
.stat span { display: block; font-size: 13.5px; line-height: 1.4; color: var(--muted); margin-top: 8px; }
.stat small { display: block; font-size: 12px; line-height: 1.4; color: var(--accent-deep); margin-top: 4px; }
.stats-note { grid-column: 1 / -1; border-top: 1px solid var(--rule); padding-top: 14px; font-size: 14px; color: var(--muted); }

/* Licensed feeds */
.feeds { margin-top: 40px; }
.feeds-intro { font-size: 15.5px; color: var(--ink-2); max-width: 70ch; margin-bottom: 18px; }
.feed-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.feed-list li { border: 1px solid var(--rule); border-radius: 4px; padding: 10px 12px; background: var(--paper); min-width: 0; }
.feed-list b { display: block; font-size: 14px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.feed-list span { display: block; font-family: var(--mono); font-size: 11px; color: var(--muted); line-height: 1.4; margin-top: 4px; }

/* Pipeline, status, partners */
.pipeline { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 0; align-items: center; margin-top: 8px; }
.pipeline li { display: inline-flex; align-items: center; }
.pipeline li span { border: 1px solid #cbd5e1; border-radius: 4px; padding: 10px 14px; background: var(--paper); font-weight: 600; color: var(--ink); font-size: 15px; }
.pipeline li + li::before { content: "→" / ""; display: inline-block; margin: 0 12px; color: var(--accent-deep); }
.pipeline-note { margin-top: 18px; font-size: 14px; color: var(--muted); max-width: 90ch; }
.partners-eyebrow { margin-top: 44px; }
.partners-lede { margin-bottom: 4px; }
.guardrails { margin-top: 28px; font-size: 12.5px; color: var(--muted); }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 40px; border: 2px solid var(--accent); border-radius: var(--radius); padding: 40px; }
.contact-main h2 { margin-top: 0; }
.contact-main .body { margin-top: 16px; }
.question { margin-top: 22px; font-size: 18px; line-height: 1.5; font-weight: 500; font-style: italic; color: var(--ink); max-width: 56ch; }
.copy-status { min-height: 20px; margin-top: 10px; font-size: 12px; color: var(--accent-deep); }
.contact-card { border-left: 1px solid var(--rule); padding-left: 32px; font-size: 16px; line-height: 1.6; display: flex; flex-direction: column; gap: 4px; align-self: center; }
.contact-card a { display: inline-block; padding: 4px 0; text-decoration: underline; text-underline-offset: 3px; }
.contact-name { font-weight: 700; color: var(--ink); font-size: 18px; }
.contact-event { margin-top: 12px; color: var(--muted); font-size: 15px; }

/* Footer */
.site-footer { border-top: 1px solid var(--rule); padding-block: 28px; font-size: 13.5px; color: var(--muted); }
.footer-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

/* Responsive */
@media (max-width: 1360px) {
  .chain-body { grid-template-columns: 1fr; }
  .chain-result { border-left: 0; border-bottom: 1px solid var(--p-rule); order: -1; }
}
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .store.two-col { grid-template-columns: 1fr; }
  .uses { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .uses article:nth-child(4), .uses article:nth-child(5) { grid-column: span 1; }
  .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .feed-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .captions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two-col { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 860px) {
  :root { --section: 64px; }
  .menu-toggle { display: inline-block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 64px; background: var(--paper); border-bottom: 1px solid var(--rule); padding: 12px var(--gutter) 20px; flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav.open { display: flex; }
  .site-nav > a { padding: 12px 0; border-top: 1px solid var(--rule-soft); font-size: 16px; }
  .site-nav > a:first-child { border-top: 0; }
  .site-nav > .btn { margin: 12px 0 0; }
  .cards.three { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline::before { display: none; }
  .diff { grid-template-columns: 1fr; }
  .delivery { grid-template-columns: 1fr; gap: 16px; }
  .uses { grid-template-columns: 1fr 1fr; }
  .contact { grid-template-columns: 1fr; padding: 28px 24px; gap: 28px; }
  .contact-card { border-left: 0; border-top: 1px solid var(--rule); padding: 24px 0 0; }
  .status-row { grid-template-columns: 1fr; gap: 6px; }
  .platforms ul { grid-template-columns: 1fr; }
  .hero-caption { grid-template-columns: 1fr; }
  .section-head { align-items: flex-start; }
}
@media (max-width: 560px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }
  .hero { padding-block: 40px 40px; }
  .uses, .timeline, .stats, .captions { grid-template-columns: 1fr; }
  .feed-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { padding: 22px 20px 20px; gap: 18px; }
  .stat b { font-size: 26px; }
  .chain-name { font-size: 16px; }
  .chain-top, .chain-contract, .chain-asset { padding-inline: 12px; }
  .chain-grid th.lab { width: 104px; }
  .chain-grid th, .chain-grid td { padding: 6px 6px; }
  .chain-grid { min-width: 660px; }
  .n { white-space: normal; overflow-wrap: anywhere; }
  .gapcol { display: none; }
  .day .wide { display: none; }
  .day .narrow { display: inline; }
  .bar { left: calc(var(--mf) / 5 * 100%); width: calc((var(--mt) - var(--mf)) / 5 * 100%); }
  .chip-more { display: none; }
  .principles { grid-template-columns: 1fr; }
  .fig-tag { white-space: normal; }
  .footer-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .btn { width: 100%; }
  .actions { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
