/* OPENHOUSE — shell stylesheet (JOB shell, 30/11/2026)
   Source of truth: mockup/v1/DESIGN.md (§0–§5, §10) + mockup/v1/chrome/nav.html · footer.html (N3 / F4).
   Scale (LUAT 50): one root unit --u = 100vw / 1920 from 1280 up → at 1920 = mockup 1:1, 1280–2560 proportional.
   Below 1280: one phone layout (LUAT 71) — content column capped at 720 px, centred; ground stays full-bleed.
   BORDERS (LUAT 56): every border/outline of the site lives in THIS file, as one .rule-* class per framed component of
   DESIGN.md §4b. Route files contain ZERO border/outline declarations — they put the class on the element. */

/* ---------- 1. TOKENS ---------- */
:root {
  --u: calc(100vw / 1920);
  /* colours — DESIGN.md §3 */
  --paper: #0E0B14;
  --surface: #14101B;
  --surface-raised: #1B1625;
  --text: #F2EEF8;
  --secondary: #A69DB5;
  --nav-link: #D9D2E2;
  --hairline: #2C2538;
  --hairline-strong: #3C3747;
  --ghost-line: #A8A7A6;
  --action: #9A4CF6;
  --action-soft: #BFA1F6;
  --action-link: #B98AFA;
  --aperture: #EB29C5;
  --positive: #37E787;
  --warning: #FFB33A;
  --closed: #8C849B;
  --track: #3A3443;
  --buy-off-bg: #2B2437;
  --buy-off-ink: #8E859C;
  --grad-aperture: linear-gradient(180deg, var(--action) 0%, var(--aperture) 100%);

  /* fonts — DESIGN.md §2 (measured; Bricolage superseded) */
  --f-sans: 'Geist', 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  --f-caps: 'Inter', 'Geist', system-ui, Arial, sans-serif;
  --f-num: 'Familjen Grotesk', 'Geist', system-ui, Arial, sans-serif;
  --f-mono: 'Geist Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  /* type scale @1920 (mockup px × 1.148) — never below 12 px */
  --fs-xs: max(12px, calc(13 * var(--u)));
  --fs-sm: max(12px, calc(14 * var(--u)));
  --fs-body: max(12px, calc(16 * var(--u)));
  --fs-ctl: max(12px, calc(17 * var(--u)));
  --fs-lead: max(14px, calc(23 * var(--u)));
  --fs-cell: max(12px, calc(18 * var(--u)));
  --fs-h3: max(17px, calc(30 * var(--u)));
  --fs-h2: max(22px, calc(46 * var(--u)));
  --fs-eyebrow: max(13px, calc(26 * var(--u)));
  --fs-alias: max(20px, calc(42 * var(--u)));
  --fs-kpi: max(22px, calc(52 * var(--u)));
  --fs-hero: max(30px, calc(87 * var(--u)));

  /* radii — DESIGN.md §4 */
  --r-panel: calc(12 * var(--u));
  --r-ctl: calc(8 * var(--u));
  --r-pill: calc(29 * var(--u));

  /* page frame — DESIGN.md §0 + USER_FIXES FRAME: 52 px left / 54 px right @1920, container 1814 */
  --gutter-l: calc(52 * var(--u));
  --gutter-r: calc(54 * var(--u));
  --section-gap: calc(80 * var(--u));

  /* BORDER TOKENS (LUAT 56) — widths from BORDER_TABLE.md: every measured frame/rule = 1 CSS px @1920 */
  --rule-w: max(1px, calc(1 * var(--u)));
  --rule-panel: var(--rule-w) solid var(--hairline);
  --rule-strong: var(--rule-w) solid var(--hairline-strong);
  --rule-ghost: var(--rule-w) solid var(--ghost-line);
  --rule-chip: var(--rule-w) solid #7D7983;
  --rule-action: var(--rule-w) solid var(--action);
  --rule-action-dim: var(--rule-w) solid rgb(154 76 246 / .45);

  /* MOTION — DESIGN.md §10 "the shutter": one easing family, three durations */
  --ease-shutter: cubic-bezier(.6, 0, .2, 1);
  --ease-settle: cubic-bezier(.2, .7, .2, 1);
  --t-fast: 140ms;
  --t-med: 240ms;
  --t-slow: 600ms;
  --rt-nudge: 12px;
  --rt-dur: 260ms;
}
html[data-rt-dir=back] { --rt-nudge: -12px; }

/* ---------- 2. BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }
:where(button, input, select, textarea) { border: 0; font: inherit; color: inherit; background: none; }
:where(button) { cursor: pointer; padding: 0; }
:where(button:disabled, [aria-disabled="true"]) { cursor: not-allowed; }
html { background: var(--paper); color-scheme: dark; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scrollbar-color: var(--hairline-strong) var(--paper); accent-color: var(--action); }
html, body { overflow-x: clip; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--paper); color: var(--text);
  font-family: var(--f-sans); font-size: var(--fs-body); line-height: 1.4; font-weight: 400;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
::selection { background: rgb(154 76 246 / .45); color: #fff; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
main p, main li { text-wrap: pretty; }
.mono, code, pre, kbd { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.num { font-family: var(--f-num); font-variant-numeric: tabular-nums; }
.caps { font-family: var(--f-caps); text-transform: uppercase; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 14px; background: var(--action); color: #fff; border-radius: 8px; }
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--action-soft); outline-offset: 2px; }

/* ---------- 3. PAGE FRAME + ATMOSPHERE (DESIGN.md §0 · §3b: look 3, flat paper ground, no layers) ---------- */
.page {
  flex: 1 0 auto; width: 100%;
  padding: 0 var(--gutter-r) 0 var(--gutter-l);
  background: transparent;
  outline: none;
}
.page > * + * { margin-top: var(--section-gap); }
.page > :last-child { margin-bottom: var(--section-gap); }

/* ---------- 4. RULE CLASSES — one per framed component of DESIGN.md §4b ---------- */
/* nav pill (N3) + footer bar (F4) */
.rule-nav { border: var(--rule-panel); border-radius: var(--r-pill); }
.rule-footer { border: var(--rule-panel); border-radius: var(--r-panel); }
/* panels: viewer-frame · control-band · permissions+mechanism · probe/actions/after-close · window-state legend ·
   revoke-result · empty-state · event-detail · client-configurations · response-states (hairline, r12) */
.rule-panel, .rule-frame { border: var(--rule-panel); border-radius: var(--r-panel); }
/* strong panels: real-check table · field-access · pass-timeline · feed-responses · source strip · never-receives ·
   source-boundary (hairline-strong, r12) */
.rule-panel-strong { border: var(--rule-strong); border-radius: var(--r-panel); }
/* framed tables: history table · showings rows block · perm table (outer frame, r12; rows draw only their bottom) */
.rule-table { border: var(--rule-panel); border-radius: var(--r-panel); overflow: hidden; border-collapse: separate; border-spacing: 0; }
.rule-table-strong { border: var(--rule-strong); border-radius: var(--r-panel); overflow: hidden; border-collapse: separate; border-spacing: 0; }
/* row rules: a row draws only its BOTTOM edge; the last row inside a framed table draws none (the frame does) */
.rule-row, tr.rule-row > th, tr.rule-row > td { border-bottom: var(--rule-panel); }
tr.rule-row { border-bottom: 0; }
.rule-row-strong, tr.rule-row-strong > th, tr.rule-row-strong > td { border-bottom: var(--rule-strong); }
tr.rule-row-strong { border-bottom: 0; }
:is(.rule-table, .rule-table-strong, .rule-panel, .rule-panel-strong) > :is(.rule-row, .rule-row-strong):last-child,
:is(.rule-table, .rule-table-strong) > tbody > tr:last-child > :is(th, td),
:is(.rule-table, .rule-table-strong) > :is(.rule-row, .rule-row-strong):last-child { border-bottom: 0; }
/* section rule / summary rule above a block */
.rule-top { border-top: var(--rule-panel); }
.rule-top-strong { border-top: var(--rule-strong); }
.rule-section { border-top: var(--rule-panel); }
/* column dividers (left edge of a cell/column; the first column draws none) */
.rule-col { border-left: var(--rule-panel); }
.rule-col-strong { border-left: var(--rule-strong); }
:is(.rule-col, .rule-col-strong):first-child { border-left: 0; }
/* ghost button (Try a demo alias · Extend · Revoke · Refresh feed · Copy · Explorer) — ghost-line, r8 */
.rule-ghost { border: var(--rule-ghost); border-radius: var(--r-ctl); }
/* state chip (OPEN → REVOKE → DARK) — dim ghost line, r8 */
.rule-chip { border: var(--rule-chip); border-radius: var(--r-ctl); }
/* segmented control frame (1h/24h/7d, filters) + input frame: the frame wraps the WHOLE control */
.rule-seg { border: var(--rule-panel); border-radius: var(--r-ctl); }
.rule-input { border: var(--rule-strong); border-radius: var(--r-ctl); }
.rule-input:focus-within { border-color: var(--action); }
/* code blocks — closed response / client config (strong, r8); live response (action-dim, r8) */
.rule-code { border: var(--rule-strong); border-radius: var(--r-ctl); }
.rule-code-live { border: var(--rule-action-dim); border-radius: var(--r-ctl); }
/* spec op rows (agents) — stacked rows share edges: each draws top/left/right, the last also its bottom */
.rule-op { border: var(--rule-strong); border-bottom-width: 0; }
.rule-op:last-child { border-bottom-width: var(--rule-w); }
/* selected row / op (showings selected row, read_feed op): a 1 px action frame drawn INSIDE the box, never a second border */
.rule-selected { box-shadow: inset 0 0 0 var(--rule-w) var(--action); }
.rule-none { border: 0; }

/* ---------- 5. NAV (N3 — chrome/nav.html, scaled with --u) ---------- */
.site-nav { position: relative; z-index: 20; padding-top: calc(24 * var(--u)); height: calc(108 * var(--u)); display: flex; justify-content: center; }
.nav-pill {
  height: calc(58 * var(--u)); width: calc(1824 * var(--u)); padding: 0 calc(24 * var(--u));
  display: flex; align-items: center; gap: calc(28 * var(--u));
  background: #14101C; box-shadow: 0 calc(12 * var(--u)) calc(32 * var(--u)) rgba(0, 0, 0, .28);
}
.nav-brand { display: flex; align-items: center; gap: calc(12 * var(--u)); margin-right: calc(10 * var(--u)); flex: none; }
.nav-mark { height: calc(42 * var(--u)); width: auto; aspect-ratio: 1942 / 2048; }
.nav-word { font: 600 max(13px, calc(20 * var(--u)))/1 var(--f-sans); letter-spacing: .01em; color: var(--text); }
.nav-sep { height: calc(28 * var(--u)); width: max(1px, calc(1 * var(--u))); background: #3A3247; margin: 0 calc(2 * var(--u)); flex: none; }
.nav-routes { display: flex; align-items: center; gap: calc(28 * var(--u)); }
.route { color: var(--nav-link); font-size: max(12px, calc(15 * var(--u))); font-weight: 500; white-space: nowrap; padding: calc(9 * var(--u)) calc(3 * var(--u)); transition: color var(--t-fast) var(--ease-settle); }
.route:hover { color: var(--text); }
.route.is-active { color: var(--action-link); }
.nav-spacer { flex: 1; }
.nav-social, .foot-social { color: var(--text); font-size: max(12px, calc(15 * var(--u))); font-weight: 500; white-space: nowrap; }
.nav-social.is-soon:not([data-launch-done]), .foot-social.is-soon:not([data-launch-done]) { opacity: .55; cursor: default; }
.nav-social[data-launch-done], .foot-social[data-launch-done] { opacity: 1; cursor: pointer; }
a.nav-social:hover, a.foot-social:hover { color: var(--action-link); }
.btn-nav {
  height: calc(38 * var(--u)); padding: 0 calc(18 * var(--u)); border-radius: calc(9 * var(--u));
  display: inline-flex; align-items: center; justify-content: center; gap: calc(8 * var(--u));
  font-size: max(12px, calc(14 * var(--u))); font-weight: 600; white-space: nowrap; flex: none;
  transition: background-color var(--t-fast) var(--ease-settle), transform var(--t-fast) var(--ease-settle);
}
.btn-wallet { background: var(--action); color: #fff; }
.btn-wallet:hover { background: #A862F8; }
.btn-wallet[data-connected="true"] { background: var(--surface-raised); color: var(--text); font-family: var(--f-mono); font-weight: 500; }
.btn-buy { background: var(--buy-off-bg); color: var(--buy-off-ink); }
.btn-buy .buy-tba { font-size: max(11px, calc(12 * var(--u))); font-weight: 500; opacity: .85; }
.btn-buy[data-launch-done] { background: var(--positive); color: #08140D; cursor: pointer; }
.btn-buy[data-launch-done] .buy-tba { display: none; }
.btn-buy[data-launch-done]:hover { transform: translateY(-1px); }
.nav-menu { display: none; }
.nav-drawer { display: none; }

/* ---------- 6. FOOTER (F4 — chrome/footer.html) ---------- */
.site-foot {
  flex: none; width: 100%; min-height: calc(64 * var(--u)); margin: 0; padding: calc(8 * var(--u)) calc(56 * var(--u));
  background: #121019; display: grid; grid-template-columns: 1fr 1.5fr 1fr; align-items: center;
  font-size: max(12px, calc(14 * var(--u)));
}
.foot-brand { display: flex; align-items: center; gap: calc(10 * var(--u)); justify-self: start; }
.foot-mark { height: calc(40 * var(--u)); width: auto; aspect-ratio: 1942 / 2048; }
.foot-word { font: 600 max(13px, calc(17 * var(--u)))/1 var(--f-sans); color: var(--text); }
.foot-line { text-align: center; display: flex; flex-direction: column; align-items: center; gap: calc(2 * var(--u)); color: var(--text); }
.foot-src { font-size: max(11px, calc(12 * var(--u))); color: var(--secondary); }
.foot-links { display: flex; justify-content: flex-end; align-items: center; gap: calc(30 * var(--u)); }
.foot-social { color: var(--action-link); font-size: max(12px, calc(14 * var(--u))); }

/* ---------- 7. SHARED COMPONENTS (DESIGN.md §5) — routes reuse these, add no borders of their own ---------- */
.panel { background: var(--surface); }
.eyebrow { font: 600 var(--fs-eyebrow)/1.2 var(--f-caps); letter-spacing: -.007em; text-transform: uppercase; color: var(--action-soft); }
.h-page { font: 600 var(--fs-h2)/1.05 var(--f-sans); letter-spacing: -.01em; }
.h-section { font: 600 var(--fs-h3)/1.15 var(--f-sans); }
.label { color: var(--secondary); font-size: var(--fs-sm); }
.th { font: 600 max(12px, calc(14 * var(--u)))/1.3 var(--f-caps); letter-spacing: .02em; text-transform: uppercase; color: var(--secondary); }
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: calc(8 * var(--u));
  min-height: calc(46 * var(--u)); padding: 0 calc(24 * var(--u)); border-radius: var(--r-ctl);
  background: var(--action); color: #fff; font-weight: 600; font-size: var(--fs-ctl); white-space: nowrap;
  transition: background-color var(--t-fast) var(--ease-settle), transform var(--t-fast) var(--ease-settle);
}
.btn-primary:hover { background: #A862F8; transform: translateY(-1px); }
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: calc(8 * var(--u));
  min-height: calc(46 * var(--u)); padding: 0 calc(20 * var(--u)); border-radius: var(--r-ctl);
  background: transparent; color: var(--text); font-weight: 500; font-size: var(--fs-ctl); white-space: nowrap;
  transition: background-color var(--t-fast) var(--ease-settle);
}
.btn-ghost:hover { background: var(--surface-raised); }
.seg { display: inline-flex; padding: calc(3 * var(--u)); gap: calc(3 * var(--u)); border-radius: var(--r-ctl); }
.seg > button { min-height: calc(36 * var(--u)); padding: 0 calc(18 * var(--u)); border-radius: calc(6 * var(--u)); color: var(--text); font-size: var(--fs-body); transition: background-color var(--t-fast) var(--ease-settle); }
.seg > button[aria-pressed="true"], .seg > button.is-on { background: var(--action); color: #fff; }
.input { width: 100%; min-height: calc(42 * var(--u)); padding: 0 calc(16 * var(--u)); border-radius: var(--r-ctl); background: var(--surface); display: flex; align-items: center; }
.input > input { flex: 1; min-width: 0; height: 100%; padding: 0; outline: none; font-size: var(--fs-body); color: var(--text); }
.input > input::placeholder { color: var(--secondary); }
.dot { display: inline-block; width: calc(9 * var(--u)); height: calc(9 * var(--u)); min-width: 7px; min-height: 7px; border-radius: 50%; background: currentColor; vertical-align: middle; }
.is-live { color: var(--positive); }
.is-closing { color: var(--warning); }
.is-closed { color: var(--closed); }
.pos { color: var(--positive); }
.neg { color: #E58C9A; }
.code { background: var(--surface); padding: calc(16 * var(--u)) calc(18 * var(--u)); font: 400 max(12px, calc(15 * var(--u)))/1.45 var(--f-mono); white-space: pre-wrap; word-break: break-word; overflow-wrap: anywhere; }
/* window bar: track + action fill; width follows --fill (0–1) through transform only */
.wbar { position: relative; height: calc(14 * var(--u)); min-height: 6px; border-radius: 999px; background: var(--track); overflow: hidden; }
.wbar-fill { position: absolute; inset: 0; border-radius: inherit; background: var(--action); transform-origin: left center; transform: scaleX(var(--fill, 1)); transition: transform 400ms var(--ease-settle); }
/* aperture slit: vertical strip, gradient, left edge of a panel; opens/closes on the X axis */
.slit { width: calc(12 * var(--u)); min-width: 6px; align-self: stretch; background: var(--grad-aperture); border-radius: calc(6 * var(--u)) 0 0 calc(6 * var(--u)); transform-origin: left center; transform: scaleX(1); transition: transform var(--t-slow) var(--ease-shutter); }
[data-slit][data-open="false"], .slit.is-shut { transform: scaleX(0); }
/* the room goes dark: a closed/revoked frame dims its contents to 15 % */
[data-state="dark"] .dims, [data-state="closed"] .dims { opacity: .15; transition: opacity var(--t-slow) var(--ease-shutter) 120ms; }
.dims { transition: opacity var(--t-slow) var(--ease-shutter); }

/* ---------- 8. MOTION (DESIGN.md §10 — "the shutter") ---------- */
/* lights come up: a panel reveals by brightness (opacity) only — never a slide/fade-up stagger. Only with JS; 2 s safety. */
html.js-motion [data-reveal] { opacity: .14; transition: opacity var(--t-slow) var(--ease-shutter); }
html.js-motion [data-reveal].is-lit { opacity: 1; }
html.js-motion [data-reveal] .slit { transform: scaleX(0); }
html.js-motion [data-reveal].is-lit .slit:not(.is-shut) { transform: scaleX(1); transition-delay: 120ms; }
/* bars rise from their baseline (log charts) — per-element index var is --oh-i, never --u */
html.js-motion [data-reveal] .rise { transform: scaleY(0); transform-origin: center bottom; }
html.js-motion [data-reveal].is-lit .rise { transform: scaleY(1); transition: transform 500ms var(--ease-settle) calc(var(--oh-i, 0) * 35ms); }
/* live dot: a slow breath while live */
.dot.is-pulse, .is-live > .dot { animation: oh-breathe 1.8s ease-in-out infinite; }
@keyframes oh-breathe { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
/* tick flash: a changed number catches the slit's light for 300 ms */
.oh-flash { animation: oh-flash 300ms var(--ease-settle); }
@keyframes oh-flash { 0% { color: var(--action-soft); } 100% { color: inherit; } }
/* row flash when a mark changes: a 1 px line of light under the row */
.oh-rowflash { animation: oh-rowflash 300ms var(--ease-settle); }
@keyframes oh-rowflash { 0% { box-shadow: inset 0 calc(-1 * var(--rule-w)) 0 var(--action); } 100% { box-shadow: inset 0 0 0 transparent; } }
/* expandable rows: chevron turns, body opens */
.chev { display: inline-block; transition: transform 220ms var(--ease-settle); }
[data-open="true"] > * .chev, [aria-expanded="true"] .chev, details[open] .chev { transform: rotate(180deg); }
/* copy / export label swap */
.is-done-label { animation: oh-flash 140ms linear; }
/* scroll-driven: decoration only (MODERN_WEB rule 1) — the slit of a frame drifts a hair while scrolling */
@supports ((animation-timeline: view()) and (animation-range: entry)) {
  @media (prefers-reduced-motion: no-preference) {
    .sd-slit { animation: oh-slit-drift linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    @keyframes oh-slit-drift { from { translate: 0 -6px; } to { translate: 0 6px; } }
  }
}
::view-transition-old(root), ::view-transition-new(root) { animation-timing-function: var(--ease-shutter); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; transition-delay: 0ms !important; }
  html.js-motion [data-reveal] { opacity: 1; }
  html.js-motion [data-reveal] .slit, html.js-motion [data-reveal] .rise { transform: none; }
}

/* ---------- 9. WALLET MODAL (EIP-6963: connect → show → disconnect; sign = coming soon) ---------- */
.wallet-modal { width: min(92vw, 460px); padding: 22px; background: var(--surface); color: var(--text); font-size: 15px; }
.wallet-modal::backdrop { background: rgb(6 4 10 / .72); }
.wallet-modal[open] { animation: oh-lamp var(--t-med) var(--ease-shutter); }
@keyframes oh-lamp { from { opacity: 0; } to { opacity: 1; } }
.wm-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wm-title { font: 600 20px/1.2 var(--f-sans); }
.wm-close { width: 36px; height: 36px; font-size: 24px; line-height: 1; color: var(--secondary); border-radius: 8px; }
.wm-close:hover { background: var(--surface-raised); color: var(--text); }
.wm-note { margin-top: 8px; color: var(--secondary); font-size: 14px; }
.wm-list { margin-top: 16px; display: grid; gap: 8px; }
.wm-list button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 8px 14px; border-radius: 8px; text-align: left; background: var(--paper); font-weight: 500; }
.wm-list button:hover { background: var(--surface-raised); }
.wm-list img { width: 28px; height: 28px; border-radius: 6px; }
.wm-empty, .wm-soon { margin-top: 14px; color: var(--secondary); font-size: 14px; }
.wm-connected { margin-top: 14px; }
.wm-row { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; min-width: 0; }
.wm-k { color: var(--secondary); flex: none; }
.wm-v { text-align: right; min-width: 0; overflow-wrap: anywhere; }
.wm-actions { margin-top: 16px; display: flex; flex-wrap: wrap; gap: 10px; }
.wm-actions .btn-ghost { min-height: 42px; font-size: 15px; }

/* ---------- 10. PHONE LAYOUT 360–1279 (LUAT 71) ---------- */
@media (max-width: 1279.98px) {
  :root {
    --u: 0.8px;
    --gutter-l: 16px; --gutter-r: 16px; --section-gap: 48px;
    --r-panel: 12px; --r-ctl: 8px; --r-pill: 26px;
    --fs-xs: 12px; --fs-sm: 13px; --fs-body: 15px; --fs-ctl: 15px; --fs-lead: 17px; --fs-cell: 14px;
    --fs-h3: 21px; --fs-h2: 30px; --fs-eyebrow: 14px; --fs-alias: 26px; --fs-kpi: 30px; --fs-hero: 40px;
  }
  .page { max-width: 752px; margin: 0 auto; padding: 0 var(--gutter-r) 0 var(--gutter-l); }
  .site-nav { height: auto; padding: 12px 12px 0; display: block; }
  .nav-pill { width: 100%; max-width: 980px; margin: 0 auto; height: 54px; padding: 0 8px 0 14px; gap: 12px; }
  .nav-brand { gap: 9px; margin-right: 0; min-width: 0; }
  .nav-mark { height: 36px; }
  .nav-word { font-size: 16px; }
  .nav-sep, .nav-routes, .nav-pill > .btn-wallet, .nav-pill > .btn-buy { display: none; }
  .nav-social { font-size: 14px; }
  .nav-menu { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 20px; background: var(--surface-raised); color: var(--text); font-size: 14px; font-weight: 500; flex: none; }
  .nav-menu-bars { position: relative; width: 16px; height: 2px; background: currentColor; border-radius: 2px; }
  .nav-menu-bars::before, .nav-menu-bars::after { content: ""; position: absolute; left: 0; width: 16px; height: 2px; background: currentColor; border-radius: 2px; transition: transform var(--t-med) var(--ease-shutter); }
  .nav-menu-bars::before { top: -5px; } .nav-menu-bars::after { top: 5px; }
  .nav-menu[aria-expanded="true"] .nav-menu-bars { background: transparent; }
  .nav-menu[aria-expanded="true"] .nav-menu-bars::before { transform: translateY(5px) rotate(45deg); }
  .nav-menu[aria-expanded="true"] .nav-menu-bars::after { transform: translateY(-5px) rotate(-45deg); }
  .nav-drawer:not([hidden]) {
    display: grid; gap: 2px; width: 100%; max-width: 980px; margin: 8px auto 0; padding: 10px; background: #14101C;
    animation: oh-lamp var(--t-med) var(--ease-shutter);
  }
  .nav-drawer .route { font-size: 16px; padding: 12px 10px; border-radius: 8px; }
  .nav-drawer .route.is-active { background: var(--surface-raised); }
  .drawer-actions { display: flex; flex-wrap: wrap; gap: 10px; padding: 10px 4px 4px; }
  .drawer-actions .btn-nav { height: 44px; padding: 0 16px; font-size: 15px; border-radius: 9px; }
  .drawer-actions .buy-tba { font-size: 12px; }
  .site-foot { grid-template-columns: 1fr; justify-items: center; gap: 10px; padding: 18px 16px; min-height: 0; text-align: center; font-size: 13px; }
  .foot-brand { justify-self: center; }
  .foot-mark { height: 36px; }
  .foot-word { font-size: 16px; }
  .foot-src { font-size: 12px; }
  .foot-links { justify-content: center; gap: 24px; }
  .foot-social { font-size: 14px; }
  .btn-primary, .btn-ghost { min-height: 44px; }
  .wbar { height: 8px; }
}
@media (max-width: 380px) {
  .nav-pill { gap: 9px; padding-left: 10px; }
  .nav-word { font-size: 15px; }
  .nav-menu-text { display: none; }
  .nav-menu { padding: 0 12px; }
}
