/* RETAINAGE — app.css (shell, 01/12/2026). Tokens, page scale, page frame + atmosphere, chrome, rule classes, shared components, motion.
   SCALE (LUAT 50): design width 1920 = mockup ×1.148. Every size is calc(N * var(--u)); --u = 100vw/1920 from 1280 up (no max-width cap),
   a fixed phone unit below 1280 (one phone layout 360–1279, content column ≤720 px centred).
   BORDERS (LUAT 56): every border/outline of the site lives in THIS file, as the rule-* classes below. Route files use the classes only. */

:root {
  --u: calc(100vw / 1920);
  /* colour tokens — DESIGN.md §3 */
  --paper: #F2F8FA;
  --surface: #FEFEFE;
  --surface-tint: #E8F5FB;
  --ink: #151518;
  --muted: #537086;
  --hairline: #D8E4EC;
  --nav-rule: #B2CFD9;
  --tab-rule: #C7DCE2;
  --blueprint: #0063C9;
  --blueprint-ink: #0664D5;
  --blueprint-hover: #0059B5;
  --cyan: #01BECF;
  --signal: #01ADBE;
  --navy-zone: #0A3758;
  --navy-zone-2: #063A5A;
  --navy-deep: #071C2D;
  --burn: #F45732;
  --held-tint: #DDF2FE;
  --released-tint: #C9EDFF;
  --burn-tint: #FFE4D7;
  --on-navy: #EAF6FB;
  --muted-on-dark: #8FB2C2;
  --rule-on-navy-c: #11608B;

  /* fonts — DESIGN.md §2 */
  --f-display: "DM Sans", "Geologica", system-ui, sans-serif;
  --f-ui: "Geologica", "DM Sans", system-ui, sans-serif;
  --f-body: "Atkinson Hyperlegible", system-ui, sans-serif;
  --f-mono: "Ubuntu Sans Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* type scale @1920 (USER FIX U1: body 15–18, labels 12–16, controls 40–48) — floors keep every word ≥12 px */
  --fs-hero: calc(68 * var(--u));
  --fs-h1: calc(50 * var(--u));
  --fs-h2: calc(30 * var(--u));
  --fs-eyebrow: max(12px, calc(18 * var(--u)));
  --fs-lead: max(14px, calc(20 * var(--u)));
  --fs-body: max(13px, calc(16 * var(--u)));
  --fs-small: max(12px, calc(14 * var(--u)));
  --fs-label: max(12px, calc(15 * var(--u)));
  --fs-nav: max(12px, calc(14 * var(--u)));
  --fs-btn: max(12px, calc(18 * var(--u)));
  --fs-mono: max(12px, calc(16 * var(--u)));
  --fs-stamp: max(12px, calc(14 * var(--u)));
  --fs-big: calc(42 * var(--u));
  --fs-clock: calc(74 * var(--u));
  --fs-foot: max(12px, calc(12 * var(--u)));

  /* materials — DESIGN.md §4 */
  --r-card: calc(18 * var(--u));
  --r-ctl: calc(9 * var(--u));
  --r-stamp: max(3px, calc(4 * var(--u)));
  --sh-card: 0 calc(20 * var(--u)) calc(40 * var(--u)) calc(-16 * var(--u)) rgba(7, 49, 72, .10);
  --sh-strip: 0 calc(10 * var(--u)) calc(20 * var(--u)) calc(-8 * var(--u)) rgba(7, 49, 72, .07);
  --ctl-h: max(40px, calc(46 * var(--u)));

  /* rule tokens — widths from DESIGN.md §4b BORDER TABLE only; every hairline max(1px, …) so it never vanishes at 1280–2560 */
  --rule-card-w: max(1px, round(calc(2 * var(--u)), 1px));
  --rule-card-c: var(--hairline);
  --rule-strip-w: max(1px, round(calc(3 * var(--u)), 1px));
  --rule-strip-c: #C9E5ED;
  --rule-row-w: max(1px, round(calc(2 * var(--u)), 1px));
  --rule-row-c: #E3E9F0;
  --rule-head-w: max(1px, round(calc(2 * var(--u)), 1px));
  --rule-head-c: #E0E6EE;
  --rule-div-w: max(1px, round(calc(1 * var(--u)), 1px));
  --rule-div-c: #D6DFE9;
  --rule-input-w: max(1px, round(calc(2 * var(--u)), 1px));
  --rule-input-c: #D1DBE2;
  --rule-code-w: max(1px, round(calc(2 * var(--u)), 1px));
  --rule-code-c: #E1EBF2;
  --rule-seg-w: max(1px, round(calc(2 * var(--u)), 1px));
  --rule-seg-c: #D8E4E9;
  --rule-stamp-w: max(1px, round(calc(1.5 * var(--u)), 1px));
  --rule-burn-w: max(1px, round(calc(2 * var(--u)), 1px));
  --rule-accent-w: max(2px, round(calc(2 * var(--u)), 1px));
  --rule-navy-w: max(1px, round(calc(2 * var(--u)), 1px));
  --rule-nav-w: 1px;
  --rule-foot-w: 1px;

  /* page frame — DESIGN.md §0 (USER_FIXES: gutters 44 / 42 @1920) */
  --gut-l: calc(44 * var(--u));
  --gut-r: calc(42 * var(--u));
  --nav-h: calc(59 * var(--u));
  --hero-h: calc(919 * var(--u));   /* bottom of the navy hero zone, per route below */
  --band-h: calc(190 * var(--u));
  --grid: calc(32 * var(--u));

  /* motion — DESIGN.md §10 */
  --ease-machine: cubic-bezier(.2, .7, .2, 1);
  --ease-stamp: cubic-bezier(.3, 1.6, .5, 1);
  --t-stamp: 120ms;
  --t-slide: 250ms;
  --t-sweep: 600ms;
  --t-count: 900ms;
  --rt-nudge: 24px;
  --rt-dur: 260ms;

  --native-accent: var(--blueprint);
  --native-scroll-thumb: #9DB9D3;
  --native-scroll-track: var(--paper);
  color-scheme: light;
}
html[data-rt-dir=back] { --rt-nudge: -24px; }

/* hero heights per route (strip tops of each mockup ×1.148) — the shell owns the page ground, routes never paint it */
body[data-route="home"] { --hero-h: calc(919 * var(--u)); }
body[data-route="milestones"] { --hero-h: calc(950 * var(--u)); }
body[data-route="vault"] { --hero-h: calc(985 * var(--u)); }
body[data-route="release"] { --hero-h: calc(941 * var(--u)); }
body[data-route="agent"] { --hero-h: calc(948 * var(--u)); }

/* ---------- reset ---------- */
*, *::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(h1, h2, h3, h4, p, ul, ol, figure, dl, dd, pre) { margin: 0; }
:where(ul, ol) { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
::selection { background: var(--released-tint); color: var(--ink); }
[hidden] { display: none !important; }

html { background: var(--paper); -webkit-text-size-adjust: 100%; scrollbar-gutter: auto; }
body {
  margin: 0; position: relative; min-height: 100vh; overflow-x: clip;
  font: 400 var(--fs-body)/1.45 var(--f-body); color: var(--ink);
  background-color: var(--paper);
  /* atm-grid: 1 px blueprint @5 % every 32 px, aligned to the page origin, scrolls with the page */
  background-image:
    linear-gradient(rgba(0, 99, 201, .05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 99, 201, .05) 1px, transparent 1px);
  background-size: var(--grid) var(--grid);
  display: flex; flex-direction: column;
}
.tnum, .mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }

/* ---------- page atmosphere (DESIGN.md §3b, one for every route) ---------- */
.atm { position: absolute; inset: 0 0 auto 0; height: calc(var(--hero-h) + var(--band-h)); z-index: 0; pointer-events: none; }
.atm::before { /* atm-hero-sweep + navy grid */
  content: ""; position: absolute; inset: 0 0 auto 0; height: var(--hero-h);
  background:
    linear-gradient(rgba(127, 200, 232, .08) 1px, transparent 1px) 0 0 / var(--grid) var(--grid),
    linear-gradient(90deg, rgba(127, 200, 232, .08) 1px, transparent 1px) 0 0 / var(--grid) var(--grid),
    linear-gradient(118deg, #F3F7F9 0%, #E2F4F8 22%, #C6E8F0 32%, #5D97B2 35%, #1C5878 38%, var(--navy-zone) 42%, var(--navy-zone-2) 100%);
}
.atm::after { /* atm-hero-fade + atm-band-tint: navy zone → paper under the summary strip */
  content: ""; position: absolute; inset: var(--hero-h) 0 auto 0; height: var(--band-h);
  background: linear-gradient(180deg, #D7EEF4 0%, #E9F8FB 55%, rgba(242, 248, 250, 0) 100%);
}
.site-header, .page, .site-footer { position: relative; z-index: 1; }

/* ---------- ONE page frame: the container every route uses ---------- */
.page { flex: 1 0 auto; }
main#main { display: block; padding-left: var(--gut-l); padding-right: var(--gut-r); min-height: calc(100vh - var(--nav-h)); }
/* full-bleed helpers for art that runs to the screen edge (the mockup hero art zone) */
.bleed-r { margin-right: calc(-1 * var(--gut-r)); }
.bleed-l { margin-left: calc(-1 * var(--gut-l)); }
.bleed { margin-left: calc(-1 * var(--gut-l)); margin-right: calc(-1 * var(--gut-r)); }
.section-gap { margin-top: calc(72 * var(--u)); }

/* ---------- NAV (chrome/nav.html, N6 file-tab nav; sizes from the mockup ×1.148) ---------- */
.site-header { height: var(--nav-h); background: rgba(255, 255, 255, .97); }
.nav { height: 100%; display: flex; align-items: stretch; border-bottom: var(--rule-nav-w) solid var(--nav-rule); }
.nav-brand { width: calc(284 * var(--u)); flex: none; display: flex; align-items: center; padding-left: calc(48 * var(--u)); }
.brand-plate { display: inline-flex; align-items: center; gap: calc(8 * var(--u)); padding: calc(2 * var(--u)) calc(9 * var(--u)) calc(2 * var(--u)) calc(5 * var(--u)); background: #EDF2F5; border-radius: max(2px, calc(3 * var(--u))); }
.brand-mark { height: max(40px, calc(40 * var(--u))); width: auto; flex: none; }
.wordmark { font: 700 max(13px, calc(17 * var(--u)))/1 var(--f-ui); letter-spacing: .02em; color: var(--ink); white-space: nowrap; }
.nav-tabs { display: flex; align-items: stretch; border-left: var(--rule-nav-w) solid var(--tab-rule); }
.nav-tab {
  position: relative; display: flex; align-items: center; justify-content: center; white-space: nowrap;
  min-width: calc(106 * var(--u)); padding: 0 calc(25 * var(--u));
  font: 700 var(--fs-nav)/1 var(--f-ui); color: var(--ink); background: #fff;
  border-right: var(--rule-nav-w) solid var(--tab-rule);
  transition: color var(--t-slide) var(--ease-machine), background-color var(--t-slide) var(--ease-machine);
}
.nav-tab::after { /* active underline — a transform, never a border that moves layout */
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: max(2px, calc(3 * var(--u)));
  background: var(--blueprint); transform: scaleX(0); transform-origin: 0 50%; transition: transform var(--t-slide) var(--ease-machine);
}
.nav-tab:hover { color: var(--blueprint); background: #F7FBFD; }
.nav-tab.is-active { color: var(--blueprint); background: var(--paper); }
.nav-tab.is-active::after { transform: scaleX(1); }
.nav-end { margin-left: auto; display: flex; align-items: stretch; padding-right: calc(42 * var(--u)); }
.nav-social {
  width: calc(52 * var(--u)); min-width: 40px; display: flex; align-items: center; justify-content: center;
  font: 700 max(12px, calc(13 * var(--u)))/1 var(--f-mono); color: var(--ink);
  border-left: var(--rule-nav-w) solid var(--tab-rule);
}
.nav-social:last-of-type { border-right: var(--rule-nav-w) solid var(--tab-rule); }
.nav-social:hover { color: var(--blueprint); }
.is-soon { cursor: default; }
.nav-social.is-soon { color: var(--muted); }
.nav-wallet, .nav-buy {
  align-self: center; height: max(34px, calc(40 * var(--u))); display: inline-flex; align-items: center; justify-content: center; gap: .4em;
  padding: 0 calc(20 * var(--u)); border-radius: max(3px, calc(4 * var(--u))); white-space: nowrap;
  font: 700 max(12px, calc(13 * var(--u)))/1 var(--f-ui); letter-spacing: .01em;
}
.nav-wallet { margin-left: calc(14 * var(--u)); color: var(--blueprint-ink); background: #fff; }
.nav-wallet:hover { background: var(--surface-tint); }
.nav-wallet.is-on { color: var(--ink); font-family: var(--f-mono); font-weight: 600; }
.nav-buy { margin-left: calc(10 * var(--u)); color: #fff; background: var(--blueprint); }
.nav-buy:hover { background: var(--blueprint-hover); }
.nav-buy.is-soon { color: var(--blueprint-ink); background: var(--surface-tint); }
.nav-buy.is-soon:hover { background: var(--surface-tint); }
.nav-buy[data-launch-done] { color: #fff; background: var(--blueprint); cursor: pointer; }
.nav-menu { display: none; }
.nav-drawer { display: none; }

/* ---------- FOOTER (chrome/footer.html, F7 title block; text per SITE_SPEC F7) ---------- */
.site-footer {
  margin-top: calc(48 * var(--u) + var(--foot-snap, 0px));
  background-color: var(--navy-deep);
  background-image: linear-gradient(rgba(30, 60, 85, .4) 1px, transparent 1px), linear-gradient(90deg, rgba(30, 60, 85, .4) 1px, transparent 1px);
  background-size: var(--grid) var(--grid);
  color: #fff;
}
.foot {
  min-height: calc(100 * var(--u)); display: grid;
  grid-template-columns: calc(284 * var(--u)) 1fr calc(170 * var(--u)) calc(155 * var(--u)) calc(267 * var(--u));
  border-top: var(--rule-foot-w) solid var(--signal);
}
.foot-cell { display: flex; align-items: center; padding: calc(14 * var(--u)) calc(24 * var(--u)); }
.foot-cell + .foot-cell { border-left: var(--rule-foot-w) solid rgba(0, 189, 207, .26); }
.foot-brand { padding-left: calc(48 * var(--u)); }
.foot-brand .brand-plate { background: #fff; }
.foot-brand .brand-mark { height: max(32px, calc(36 * var(--u))); }
.foot-brand .wordmark { font-size: max(12px, calc(15 * var(--u))); }
.foot-tag { font: 400 max(12px, calc(14 * var(--u)))/1.35 var(--f-body); color: #B8D5DF; letter-spacing: .01em; }
.foot-link { justify-content: center; font: 700 var(--fs-foot)/1.2 var(--f-mono); letter-spacing: .04em; color: var(--cyan); white-space: nowrap; }
.foot-link:hover { color: #6FE6F2; }
.foot-copy { font: 500 var(--fs-foot)/1.3 var(--f-mono); letter-spacing: .04em; color: var(--muted-on-dark); }


/* fallback when CSS round() is unsupported: unrounded hairlines */
@supports not (width: round(1px, 1px)) {
  :root {
    --rule-card-w: max(1px, calc(2 * var(--u)));
    --rule-strip-w: max(1px, calc(3 * var(--u)));
    --rule-row-w: max(1px, calc(2 * var(--u)));
    --rule-head-w: max(1px, calc(2 * var(--u)));
    --rule-div-w: max(1px, calc(1 * var(--u)));
    --rule-input-w: max(1px, calc(2 * var(--u)));
    --rule-code-w: max(1px, calc(2 * var(--u)));
    --rule-seg-w: max(1px, calc(2 * var(--u)));
    --rule-stamp-w: max(1px, calc(1.5 * var(--u)));
    --rule-burn-w: max(1px, calc(2 * var(--u)));
    --rule-accent-w: max(2px, calc(2 * var(--u)));
    --rule-navy-w: max(1px, calc(2 * var(--u)));
  }
}

/* ---------- RULE CLASSES — one per framed component of DESIGN.md §4b ---------- */
/* card family: inspect-panel · steps-card · writer-card · dry-run card · schedule/hand-on/wallet/attach cards · ledger/outcome/quote/clock cards · runner/config/webhook/schema cards */
.rule-panel, .rule-card { border: var(--rule-card-w) solid var(--rule-card-c); border-radius: var(--r-card); }
/* status-strip card · fail-list card · kinds card (measured 3–4 px) */
.rule-strip { border: var(--rule-strip-w) solid var(--rule-strip-c); border-radius: var(--r-card); }
/* cards drawn on the navy hero zone (desk-card, settings-card, clock-card right) */
.rule-card-navy { border: var(--rule-navy-w) solid var(--rule-on-navy-c); border-radius: var(--r-card); }
/* inputs: the frame wraps the whole control (put the class on the wrapper; the <input> inside has no border) */
.rule-input { border: var(--rule-input-w) solid var(--rule-input-c); border-radius: var(--r-ctl); display: flex; align-items: center; min-height: var(--ctl-h); padding: 0 calc(14 * var(--u)); background: #fff; }
.rule-input:focus-within { border-color: var(--blueprint); }
.rule-input > input, .rule-input > select, .rule-input > textarea { flex: 1; min-width: 0; height: 100%; min-height: calc(var(--ctl-h) - 2 * var(--rule-input-w)); outline: none; }
/* code blocks · raw code-block · request/response blocks */
.rule-code { border: var(--rule-code-w) solid var(--rule-code-c); border-radius: var(--r-ctl); }
/* raw-response drawer frame / result-row frame */
.rule-drawer { border: var(--rule-code-w) solid var(--rule-card-c); border-radius: var(--r-ctl); }
/* table/list rows: each row draws its BOTTOM edge only — two rows never both draw the shared line */
.rule-row { border-bottom: var(--rule-row-w) solid var(--rule-row-c); }
.rule-rows > * { border-bottom: var(--rule-row-w) solid var(--rule-row-c); }
.rule-rows > *:last-child { border-bottom: 0; }
.rule-head { border-bottom: var(--rule-head-w) solid var(--rule-head-c); }
/* horizontal section divider inside a card (raw-drawer / vault divider, writer divider) — draws its TOP edge */
.rule-divider { border-top: var(--rule-head-w) solid var(--rule-head-c); }
/* vertical dividers between sibling cells (step dividers, strip cells, runner columns): every cell but the first draws its LEFT edge */
.rule-cols > * + * { border-left: var(--rule-div-w) solid var(--rule-div-c); }
.rule-vdiv { border-left: var(--rule-div-w) solid var(--rule-div-c); }
/* segmented control / tab strip: frame on the group, separators on the cells */
.rule-seg { display: inline-flex; border: var(--rule-seg-w) solid var(--rule-seg-c); border-radius: var(--r-ctl); overflow: hidden; background: #fff; }
.rule-seg > * + * { border-left: max(1px, calc(1 * var(--u))) solid var(--rule-seg-c); }
/* stamps */
.rule-stamp-notyet { border: var(--rule-stamp-w) solid var(--ink); }
.rule-stamp-reach { border: var(--rule-stamp-w) dashed var(--cyan); }
/* burn outline button */
.rule-burn { border: var(--rule-burn-w) solid var(--burn); border-radius: var(--r-ctl); }
/* outcome-detail accent bar */
.rule-accent { border-left: var(--rule-accent-w) solid #63DBF6; }

/* ---------- SHARED COMPONENTS (DESIGN.md §5) ---------- */
.eyebrow { font: 600 var(--fs-eyebrow)/1.2 var(--f-ui); letter-spacing: .04em; text-transform: uppercase; color: var(--blueprint-ink); }
.h-hero { font: 700 var(--fs-hero)/1.08 var(--f-display); color: var(--ink); letter-spacing: -.005em; }
.h1 { font: 700 var(--fs-h1)/1.1 var(--f-display); color: var(--ink); letter-spacing: -.01em; }
.h2 { font: 700 var(--fs-h2)/1.1 var(--f-display); color: var(--blueprint-ink); text-transform: uppercase; }
.lead { font: 400 var(--fs-lead)/1.5 var(--f-body); color: var(--ink); text-wrap: pretty; }
.muted { color: var(--muted); }
.label { font: 600 var(--fs-label)/1.2 var(--f-ui); letter-spacing: .06em; text-transform: uppercase; }
.source { font: 500 var(--fs-small)/1.4 var(--f-mono); color: var(--muted); }
.big-num { font: 600 var(--fs-big)/1 var(--f-mono); font-variant-numeric: tabular-nums; color: var(--blueprint-ink); white-space: nowrap; }
.big-num.is-burn { color: var(--burn); }

/* hero split: text left, navy art zone right (the sweep is the page atmosphere, not the hero's own background) */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 36fr) minmax(0, 64fr); min-height: calc(var(--hero-h) - var(--nav-h)); }
.hero-text { position: relative; z-index: 2; padding-top: calc(96 * var(--u)); }
.hero-art { position: relative; z-index: 1; margin-right: calc(-1 * var(--gut-r)); pointer-events: none; }
.hero-art img, .hero-art video { width: 100%; height: auto; }
.hero-art :is(a, button, [data-live], [data-hit]) { pointer-events: auto; }

/* card + summary strip */
.card { background: var(--surface); border-radius: var(--r-card); box-shadow: var(--sh-card); padding: calc(34 * var(--u)); }
.strip { background: var(--surface); border-radius: var(--r-card); box-shadow: var(--sh-strip); display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.strip > * { display: flex; align-items: baseline; gap: calc(26 * var(--u)); padding: calc(22 * var(--u)) calc(50 * var(--u)); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: var(--ctl-h);
  padding: 0 calc(38 * var(--u)); border-radius: var(--r-ctl); white-space: nowrap;
  font: 700 var(--fs-btn)/1 var(--f-ui); letter-spacing: .02em; text-transform: uppercase;
  transition: background-color var(--t-slide) var(--ease-machine), transform var(--t-stamp) var(--ease-machine);
}
.btn-primary { background: var(--blueprint); color: #fff; }
.btn-primary:hover { background: var(--blueprint-hover); }
.btn-primary:active { transform: translateY(1px); }
.btn-link { min-height: auto; padding: 0; color: var(--blueprint-ink); }
.btn-link:hover { color: var(--blueprint-hover); }
.btn-burn { color: var(--burn); background: #fff; }
.btn-signal { background: var(--cyan); color: var(--navy-deep); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }

/* stamp — PASSED · NOT YET · CAN'T REACH · MISSED */
.stamp {
  display: inline-flex; align-items: center; justify-content: center; min-width: calc(122 * var(--u)); height: max(22px, calc(28 * var(--u)));
  padding: 0 calc(12 * var(--u)); border-radius: var(--r-stamp); white-space: nowrap;
  font: 600 var(--fs-stamp)/1 var(--f-mono); letter-spacing: .04em; text-transform: uppercase;
}
.stamp-passed { background: var(--blueprint); color: #fff; }
.stamp-notyet { background: #fff; color: var(--ink); }
.stamp-reach { background: #fff; color: #0B7F8C; }
.stamp-missed { background: var(--burn); color: #fff; }
.chip-demo { display: inline-flex; align-items: center; padding: .2em .6em; border-radius: 999px; background: var(--surface-tint); color: var(--blueprint-ink); font: 600 var(--fs-small)/1 var(--f-mono); letter-spacing: .04em; text-transform: uppercase; }

/* code block */
.code { background: #F0F6F9; font: 500 max(12px, calc(15 * var(--u)))/1.55 var(--f-mono); color: var(--ink); padding: calc(16 * var(--u)) calc(20 * var(--u)); overflow-x: auto; white-space: pre; tab-size: 2; }
.code .k { color: var(--blueprint-ink); }
.code .s { color: #0B7F8C; }

/* vault bar — held / released / burned */
.vault-bar { display: flex; min-height: calc(67 * var(--u)); border-radius: var(--r-ctl); overflow: hidden; }
.vault-bar > * { display: flex; align-items: center; gap: calc(28 * var(--u)); padding: 0 calc(40 * var(--u)); flex-basis: 0; min-width: 0; transition: flex-grow var(--t-slide) var(--ease-machine); }
.seg-held { background: var(--held-tint); }
.seg-released { background: var(--released-tint); }
.seg-burned { background: var(--burn-tint); }

/* toast ("Copied", wallet notices) */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 90; transform: translate(-50%, 0);
  padding: 10px 16px; border-radius: 8px; background: var(--navy-deep); color: #fff; font: 600 14px/1.3 var(--f-ui);
  box-shadow: 0 10px 30px rgba(7, 28, 45, .3); transition: opacity 200ms var(--ease-machine), transform 200ms var(--ease-machine);
}
.toast[data-off] { opacity: 0; transform: translate(-50%, 8px); pointer-events: none; }

/* ---------- MOTION — DESIGN.md §10 "inspection machine": measured, stamped, routed ---------- */
/* reveal = a scanner pass: the block slides 10 px in from the left under a cyan scan line (IntersectionObserver + 2 s safety timer in app.js) */
[data-reveal] { position: relative; }
html.js [data-reveal]:not(.is-in) { opacity: 0; transform: translateX(calc(-10 * var(--u))); }
html.js [data-reveal] { transition: opacity 360ms var(--ease-machine), transform 360ms var(--ease-machine); transition-delay: calc(var(--rv-i, 0) * 70ms); }
[data-reveal].is-in::after, .is-scanning::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: max(2px, calc(3 * var(--u))); pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--cyan), transparent); box-shadow: 0 0 calc(14 * var(--u)) rgba(0, 229, 255, .55);
  opacity: 0; animation: rt-scan var(--t-sweep) var(--ease-machine) 1 both;
}
@keyframes rt-scan { 0% { opacity: 0; transform: translateX(0); } 15% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; transform: translateX(var(--scan-w, 600px)); } }
/* stamp drop: 1.15 → 1 in 120 ms, a short ink pulse */
.is-stamping { animation: rt-stamp var(--t-stamp) var(--ease-stamp) both; }
@keyframes rt-stamp { from { transform: scale(1.15); opacity: .4; } to { transform: scale(1); opacity: 1; } }
/* grow-in: bars and segments grow from their left edge */
html.js [data-grow]:not(.is-in) { transform: scaleX(0); }
[data-grow] { transform-origin: 0 50%; transition: transform var(--t-slide) var(--ease-machine); }
/* live tick: a value that changed flashes a cyan underline once */
.is-ticked { animation: rt-tick 700ms var(--ease-machine) 1; }
@keyframes rt-tick { 0% { box-shadow: inset 0 -2px 0 rgba(1, 190, 207, 0); } 30% { box-shadow: inset 0 -2px 0 rgba(1, 190, 207, .9); } 100% { box-shadow: inset 0 -2px 0 rgba(1, 190, 207, 0); } }
/* hover on rows: the row lights like a part on the inspection rail */
.row-hover { transition: background-color 160ms var(--ease-machine), box-shadow 160ms var(--ease-machine); }
.row-hover:hover { background-color: var(--surface-tint); box-shadow: inset max(2px, calc(3 * var(--u))) 0 0 var(--blueprint); }
/* route change: kit router v3 View Transition, tuned by --rt-nudge / --rt-dur above */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important; }
  html.js [data-reveal]:not(.is-in), html.js [data-grow]:not(.is-in) { opacity: 1; transform: none; }
  [data-reveal].is-in::after, .is-scanning::after { display: none; }
}

/* ---------- 1280–2560: everything scales with --u (above). Below 1280: ONE phone layout 360–1279 ---------- */
@media (max-width: 1279.98px) {
  :root {
    --u: 0.82px;
    --gut-l: max(16px, calc((100vw - 720px) / 2));
    --gut-r: max(16px, calc((100vw - 720px) / 2));
    --nav-h: 56px;
    --hero-h: 0px;
    --band-h: 0px;
    --fs-hero: clamp(34px, 9vw, 52px);
    --fs-h1: clamp(28px, 7.4vw, 40px);
    --fs-h2: 22px;
    --fs-big: clamp(26px, 7vw, 34px);
    --fs-clock: clamp(44px, 13vw, 64px);
  }
  body[data-route] { --hero-h: 0px; }
  .atm { height: 560px; }
  .atm::before { height: 560px; background:
    linear-gradient(rgba(127, 200, 232, .08) 1px, transparent 1px) 0 0 / var(--grid) var(--grid),
    linear-gradient(90deg, rgba(127, 200, 232, .08) 1px, transparent 1px) 0 0 / var(--grid) var(--grid),
    linear-gradient(180deg, #F3F7F9 0%, #E4F4F8 60%, #F2F8FA 100%); }
  .atm::after { display: none; }
  main#main { min-height: 60vh; }

  .site-header { position: sticky; top: 0; z-index: 50; height: var(--nav-h); }
  .nav-brand { width: auto; padding-left: 12px; padding-right: 8px; }
  .nav-tabs { display: none; }
  .nav-end { padding-right: 8px; }
  .nav-social { width: 40px; }
  .nav-wallet { display: none; }
  .nav-buy { height: 36px; padding: 0 10px; margin-left: 8px; }
  .nav-menu {
    display: inline-flex; align-items: center; justify-content: center; align-self: center; margin-left: 8px;
    width: 44px; height: 40px; border-radius: 6px; background: var(--surface-tint); color: var(--ink);
  }
  .nav-menu svg { width: 22px; height: 22px; }
  .nav-drawer {
    position: absolute; top: 100%; left: 0; right: 0; display: block; padding: 8px max(16px, calc((100vw - 720px) / 2)) 16px;
    background: #fff; box-shadow: 0 18px 40px rgba(7, 49, 72, .16); border-bottom: var(--rule-nav-w) solid var(--nav-rule);
  }
  .nav-drawer[hidden] { display: none !important; }
  .nav-drawer a.drawer-tab {
    display: flex; align-items: center; min-height: 48px; padding: 0 12px; font: 700 16px/1.2 var(--f-ui); color: var(--ink);
    border-bottom: var(--rule-nav-w) solid var(--tab-rule);
  }
  .nav-drawer a.drawer-tab.is-active { color: var(--blueprint); background: var(--paper); box-shadow: inset 3px 0 0 var(--blueprint); }
  .nav-drawer .nav-wallet { display: inline-flex; margin: 14px 0 0; height: 44px; font-size: 15px; }

  .foot { grid-template-columns: 1fr 1fr; padding: 0 max(16px, calc((100vw - 720px) / 2)); }
  .foot-cell { padding: 14px 8px; }
  .foot-cell + .foot-cell { border-left: 0; }
  .foot-brand, .foot-tag { grid-column: 1 / -1; padding-left: 8px; }
  .foot-link { justify-content: flex-start; }
  .foot-copy { grid-column: 1 / -1; }

  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .hero-text { padding-top: 36px; padding-bottom: 24px; }
  .hero-art { margin-left: calc(-1 * var(--gut-l)); padding: 20px var(--gut-r) 24px var(--gut-l);
    background: linear-gradient(160deg, #2E6E8E 0%, var(--navy-zone) 35%, var(--navy-zone-2) 100%); }
  .strip { grid-auto-flow: row; }
  .strip > * { padding: 14px 18px; }
  .rule-cols > * + * { border-left: 0; border-top: var(--rule-div-w) solid var(--rule-div-c); }
  .card { padding: 18px; }
  .btn { padding: 0 20px; }
  .vault-bar { flex-direction: column; }
  .vault-bar > * { padding: 12px 16px; flex-basis: auto; }
}
@media (max-width: 479.98px) {
  .nav-brand .wordmark { display: none; }
  .nav-buy { font-size: 12px; padding: 0 8px; }
  .nav-social { width: 34px; min-width: 34px; }
}
