/* RATIONS — shell stylesheet (JOB shell, 29/11/2026). Source of truth: mockup/v2/DESIGN.md.
   Scale (LUAT 50): build width 1920; one root unit --u = 100vw/1920 ⇒ at 1920 the page equals the mockup 1:1,
   1024–2560 scale in proportion; below 1024 a mobile layout with --u = 1px. Every size below = N × var(--u).
   Borders (LUAT 56): ONLY here — route files use the .rule-* classes and contain zero border/outline declarations. */

:root {
  --u: calc(100vw / 1920);

  /* colour tokens (DESIGN.md §3) */
  --paper: #93BCFD;
  --surface: #FDE7D6;
  --surface-2: #FEF2E9;
  --glass: rgb(200 224 251 / .55);
  --glass-edge: #B4D1FD;
  --primary: #FB3BD6;
  --primary-container: #FBD3F4;
  --primary-container-2: #F0A2ED;
  --olive: #9DA103;
  --olive-dark: #858900;
  --jade: #26906B;
  --jade-ink: #077D6C;
  --mint: #DAF2F8;
  --mint-chain: #97FCE4;
  --pink-num: #F546B6;
  --ink: #0F2E89;
  --ink-2: #1A3BA8;
  --num: #072FA6;
  --label: #253A94;
  --nav-ink: #38559E;
  --footer-ink: #0C328C;
  --chip: #E3E2EB;
  --blob-pink: #E37EFC;
  --blob-violet: #A682F5;
  --blob-olive: #B5C575;

  /* gradients + shadows (§3, §4) */
  --grad-peach: linear-gradient(135deg, #FDE7D6 0%, #FCE6DF 60%, #FBE3E6 100%);
  --grad-glass: linear-gradient(180deg, rgb(255 255 255 / .45), rgb(255 255 255 / .25));
  --grad-jade: linear-gradient(180deg, #2FA478, #1F8A62);
  --shadow-card: 0 calc(8 * var(--u)) calc(24 * var(--u)) rgb(40 80 170 / .18);
  --shadow-node: 0 calc(6 * var(--u)) calc(18 * var(--u)) rgb(60 100 200 / .20);
  --glow-node: 0 0 calc(18 * var(--u)) rgb(255 255 255 / .35);
  --glow-jade: 0 0 calc(12 * var(--u)) rgb(38 144 107 / .25);

  /* radii (§4) */
  --r-card: calc(18 * var(--u));
  --r-row: calc(12 * var(--u));
  --r-node: calc(16 * var(--u));
  --r-tok: calc(9 * var(--u));
  --r-pill: 999px;

  /* fonts (§2) */
  --f-display: "Fraunces", "Newsreader", Georgia, serif;
  --f-body: "Fraunces", Georgia, serif;
  --f-num: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  --f-label: "Outfit", "Segoe UI", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

  /* type scale @1920 (body never below 12 px) */
  --fs-hero: calc(48 * var(--u));
  --fs-title: calc(50 * var(--u));
  --fs-section: calc(28 * var(--u));
  --fs-lead: max(13px, calc(20 * var(--u)));
  --fs-body: max(12px, calc(16 * var(--u)));
  --fs-small: max(12px, calc(15 * var(--u)));
  --fs-label: max(12px, calc(16 * var(--u)));
  --fs-caps: max(12px, calc(14 * var(--u)));
  --fs-num: max(14px, calc(26 * var(--u)));
  --fs-num-big: max(16px, calc(34 * var(--u)));
  --fs-code: max(12px, calc(17 * var(--u)));

  /* page frame (USER FIX U1): gutters 52 / 50 @1920, container 1818 */
  --gutter-l: calc(52 * var(--u));
  --gutter-r: calc(50 * var(--u));
  --gap: calc(24 * var(--u));
  --gap-lg: calc(28 * var(--u));
  --section-gap: calc(64 * var(--u));

  /* RULES (BORDER TABLE §4b) — width + colour per rule kind; hairlines never vanish */
  --rule-hair: max(1px, calc(1.1 * var(--u)));
  --rule-mid: max(1px, calc(1.8 * var(--u)));
  --rule-list: max(1px, calc(2.3 * var(--u)));
  --rule-thick: max(1.5px, calc(2.9 * var(--u)));
  --rule-cmd-c: #7D9FD0;
  --rule-peach-c: #E5C3AB;
  --rule-footcol-c: #F1D5C1;
  --rule-paper-c: #E2D7DA;
  --rule-calc-c: #DDCFD4;
  --rule-glass-c: #D5DEFC;
  --rule-sky-c: #DAEBFD;
  --rule-open-c: #C9BC88;
  --rule-row-c: #E7D4CF;
  --rule-row-sel-c: #EFBDEC;
  --rule-node-c: #EEF6FF;
  --rule-node-blue-c: #6CA6FA;
  --rule-verdict-c: #E0ECFE;
  --rule-verdict-sel-c: #F8FFFD;
  --rule-code-c: #70A7FA;
  --rule-code-peach-c: #E4DBE2;
  --rule-jade-c: #128861;
  --rule-input-c: #B4CDFD;
  --rule-input-peach-c: #C8D7F5;
  --rule-chip-c: rgb(77 127 196 / .45);
  --rule-top-c: rgb(255 255 255 / .6);

  /* MOTION (DESIGN.md §10) — one easing family: "settle" (pour, then come to rest) */
  --ease-settle: cubic-bezier(.22, .8, .26, 1);
  --ease-pour: cubic-bezier(.45, 0, .2, 1);
  --t-quick: 180ms;
  --t-base: 320ms;
  --t-fill: 600ms;
  --t-flow: 6s;
  --t-drift: 14s;
  --rt-nudge: 24px;
  --rt-dur: 220ms;

  color-scheme: light;
  accent-color: var(--primary);
  scrollbar-color: #5F8EDC var(--paper);
}
@media (max-width: 1023px) { :root { --u: 1px; --gutter-l: 16px; --gutter-r: 16px; --fs-hero: 34px; --fs-title: 34px; --fs-section: 22px; } }

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
:where(button, input, select, textarea) { border: 0; font: inherit; color: inherit; background: none; margin: 0; }
:where(button) { cursor: pointer; padding: 0; }
:where(a) { color: inherit; }
:where(h1, h2, h3, h4, p, ul, ol, figure) { margin: 0; }
:where(ul, ol) { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
::selection { background: var(--primary-container-2); color: var(--ink); }
:focus-visible { outline: max(2px, calc(2 * var(--u))) solid var(--primary); outline-offset: 2px; }

html { background: var(--paper); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; position: relative; min-height: 100vh; overflow-x: hidden;
  font-family: var(--f-body); font-size: var(--fs-body); line-height: 1.45; color: var(--ink);
  font-optical-sizing: auto;
  /* PAGE ATMOSPHERE §3b — atm-edge-glow + atm-sky, shared by every route */
  background-color: var(--paper);
  background-image:
    radial-gradient(calc(700 * var(--u)) calc(1100 * var(--u)) at 100% calc(500 * var(--u)), rgb(200 224 251 / .5), transparent 70%),
    radial-gradient(calc(700 * var(--u)) calc(1100 * var(--u)) at 100% calc(1600 * var(--u)), rgb(200 224 251 / .45), transparent 70%),
    radial-gradient(calc(900 * var(--u)) calc(600 * var(--u)) at 0% calc(140 * var(--u)), rgb(190 210 253 / .55), transparent 70%),
    linear-gradient(160deg, rgb(168 196 252 / .55) 0%, rgb(136 180 252 / 0) 45%, rgb(117 168 249 / .35) 100%),
    linear-gradient(180deg, #A8C4FC 0, #8CB7FC calc(560 * var(--u)), #7BABF9 calc(1040 * var(--u)), #9EC0FE calc(1200 * var(--u)), #8BB6FC calc(1760 * var(--u)), #7DACF9 100%);
  background-repeat: no-repeat;
}
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 12px; top: 12px; }

/* atm-dots: ground patches (decoration, scrolls with the page) */
.ground { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.ground__dots {
  position: absolute; display: block;
  background-image: radial-gradient(circle, rgb(255 255 255 / .45) calc(1.5 * var(--u)), transparent calc(1.8 * var(--u)));
  background-size: calc(16 * var(--u)) calc(16 * var(--u));
}
.ground__dots--a { left: calc(48 * var(--u)); top: calc(390 * var(--u)); width: calc(64 * var(--u)); height: calc(96 * var(--u)); }
.ground__dots--b { left: calc(1790 * var(--u)); top: calc(420 * var(--u)); width: calc(80 * var(--u)); height: calc(64 * var(--u)); }
.ground__dots--c { left: calc(150 * var(--u)); top: calc(1590 * var(--u)); width: calc(64 * var(--u)); height: calc(112 * var(--u)); }
.ground__dots--d { left: calc(1660 * var(--u)); top: calc(1310 * var(--u)); width: calc(112 * var(--u)); height: calc(64 * var(--u)); }

/* ---------- ONE PAGE FRAME (every route) ---------- */
.page {
  position: relative; z-index: 1; display: block;
  padding: 0 var(--gutter-r) calc(40 * var(--u)) var(--gutter-l);
  min-height: calc(100vh - 220 * var(--u));
}
.page.is-leaving { opacity: .6; transition: opacity var(--t-quick) linear; }
[data-route-notice] { position: fixed; left: 50%; bottom: 16px; translate: -50% 0; z-index: 60; background: var(--surface); color: var(--ink); padding: 8px 14px; border-radius: 12px; font: 500 var(--fs-small) var(--f-label); box-shadow: var(--shadow-card); }

/* ---------- RULE CLASSES (one per component of BORDER_TABLE / DESIGN §4b) ---------- */
.rule-cmd { border: var(--rule-hair) solid var(--rule-cmd-c); border-radius: var(--r-row); }
.rule-nav-edge { border-bottom: var(--rule-hair) solid var(--rule-peach-c); }
.rule-footer-edge { border-top: var(--rule-hair) solid var(--rule-peach-c); }
.rule-footer-col { border-left: var(--rule-hair) solid var(--rule-footcol-c); }
.rule-chip { border: var(--rule-hair) solid var(--rule-chip-c); }
.rule-line-calc { border: var(--rule-list) solid var(--rule-calc-c); border-radius: var(--r-row); }
.rule-sky { border-top: var(--rule-list) solid var(--rule-sky-c); }
.rule-paper-row { border-bottom: var(--rule-hair) solid var(--rule-paper-c); }
.rule-paper-row--bold { border-bottom: var(--rule-list) solid var(--rule-paper-c); }
.rule-paper-row-open { border: var(--rule-list) dashed var(--rule-open-c); border-radius: var(--r-row); }
.rule-glass-row { border-bottom: var(--rule-hair) solid var(--rule-glass-c); }
/* framed list rows: the shared edge is drawn ONCE (by the upper row) */
.rule-list-row { border: var(--rule-list) solid var(--rule-row-c); border-radius: var(--r-row); }
.rule-list-row + .rule-list-row { border-top-width: 0; border-top-left-radius: 0; border-top-right-radius: 0; }
.rule-list-row:has(+ .rule-list-row) { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.rule-list-row.is-selected, .rule-list-row[aria-selected="true"] { border-color: var(--rule-row-sel-c); }
.rule-list-row--violet { border-color: #D6B4E0; }
.rule-node { border: var(--rule-mid) solid var(--rule-node-c); border-radius: var(--r-node); }
.rule-node--blue { border-color: var(--rule-node-blue-c); }
.rule-verdict { border: var(--rule-list) solid var(--rule-verdict-c); border-radius: var(--r-card); }
.rule-verdict.is-selected, .rule-verdict[aria-pressed="true"] { border-width: var(--rule-thick); border-color: var(--rule-verdict-sel-c); box-shadow: var(--glow-jade), var(--shadow-card); }
.rule-code { border: var(--rule-list) solid var(--rule-code-c); border-radius: calc(14 * var(--u)); }
.rule-code--peach { border-color: var(--rule-code-peach-c); }
.rule-cta-jade { border-bottom: max(1px, calc(3 * var(--u))) solid var(--rule-jade-c); }
.rule-input { border: var(--rule-hair) solid var(--rule-input-c); border-radius: var(--r-pill); }
.rule-input--peach { border-color: var(--rule-input-peach-c); }
.rule-input--box { border-radius: var(--r-row); }
.rule-top { border-top: var(--rule-hair) solid var(--rule-top-c); }
/* card-frame: mockup draws a hairline on every panel edge (presend BORDER_BRIEF "FILL EDGE") */
.rule-card { border: var(--rule-hair) solid var(--rule-peach-c); }
.rule-card--glass { border-color: var(--rule-glass-c); }
/* a frame around an input wraps the whole control: the frame is the wrapper, the input inside has none */
.rule-input > input, .rule-input > select, .rule-input > textarea { min-width: 0; flex: 1; background: transparent; }
.rule-input:focus-within { border-color: var(--primary); }

/* ---------- materials (no borders here: cards are shadow + highlight; frames come from .rule-*) ---------- */
.card-peach { background: var(--grad-peach); border-radius: var(--r-card); box-shadow: var(--shadow-card); }
.card-glass {
  background: var(--grad-glass), var(--glass); border-radius: var(--r-card);
  box-shadow: inset 0 max(1px, calc(1 * var(--u))) 0 rgb(255 255 255 / .55), var(--shadow-card);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.node-glass {
  background: var(--grad-glass), rgb(200 224 251 / .6); border-radius: var(--r-node);
  box-shadow: inset 0 max(1px, calc(1 * var(--u))) 0 rgb(255 255 255 / .6), var(--shadow-node), var(--glow-node);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.card-mint { background: linear-gradient(180deg, #F2FBFC, var(--mint)); border-radius: var(--r-card); }

/* atm-blobs — placed by each route behind its own diagram (never behind text panels) */
.blob { position: absolute; z-index: -1; pointer-events: none; border-radius: 42% 58% 55% 45% / 48% 40% 60% 52%; filter: blur(calc(30 * var(--u))); }
.blob--pink { background: var(--blob-pink); opacity: .7; }
.blob--violet { background: var(--blob-violet); opacity: .6; }
.blob--olive { background: var(--blob-olive); opacity: .7; }
.dots { position: absolute; pointer-events: none; background-image: radial-gradient(circle, rgb(255 255 255 / .45) calc(1.5 * var(--u)), transparent calc(1.8 * var(--u))); background-size: calc(16 * var(--u)) calc(16 * var(--u)); }

/* ---------- type helpers ---------- */
.t-hero { font: 500 var(--fs-hero)/1.08 var(--f-display); letter-spacing: -.024em; font-variation-settings: "opsz" 72; color: var(--ink); }
.t-title { font: 700 var(--fs-title)/1 var(--f-display); letter-spacing: -.01em; text-transform: uppercase; font-variation-settings: "opsz" 72; color: var(--ink); }
.t-section { font: 600 var(--fs-section)/1.1 var(--f-display); text-transform: uppercase; color: var(--ink-2); }
.t-lead { font: 500 var(--fs-lead)/1.35 var(--f-body); letter-spacing: -.02em; color: var(--ink); text-wrap: pretty; }
.t-body { font: 400 var(--fs-body)/1.45 var(--f-body); text-wrap: pretty; }
.t-label { font: 500 var(--fs-label)/1.2 var(--f-label); letter-spacing: -.015em; color: var(--label); }
.t-caps { font: 600 var(--fs-caps)/1.2 var(--f-label); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.t-num { font: 700 var(--fs-num)/1 var(--f-num); letter-spacing: .006em; font-variant-numeric: tabular-nums; color: var(--num); }
.t-num-big { font: 700 var(--fs-num-big)/1 var(--f-num); font-variant-numeric: tabular-nums; color: var(--jade-ink); }
.t-code, .mono { font-family: var(--f-mono); font-size: var(--fs-code); line-height: 1.6; }
.num { font-family: var(--f-num); font-weight: 700; font-variant-numeric: tabular-nums; }
.is-jade { color: var(--jade-ink); } .is-pink { color: var(--pink-num); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- buttons + chips ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: calc(8 * var(--u));
  min-height: calc(40 * var(--u)); padding: 0 calc(18 * var(--u)); border-radius: calc(10 * var(--u));
  font: 600 var(--fs-small)/1 var(--f-body); white-space: nowrap; text-decoration: none;
  transition: transform var(--t-quick) var(--ease-settle), filter var(--t-quick) linear, box-shadow var(--t-quick) linear;
}
.btn--olive { background: var(--olive); color: #fff; }
.btn--jade { background: var(--grad-jade); color: #fff; box-shadow: var(--glow-jade); }
.btn--pink { background: var(--primary); color: #fff; }
.btn--ghost { background: rgb(255 255 255 / .5); color: var(--ink); }
.btn:hover { filter: brightness(1.06); transform: translateY(calc(1 * var(--u))); }
.btn:active { transform: translateY(calc(2 * var(--u))); }
.btn:disabled, .btn[aria-disabled="true"] { cursor: not-allowed; filter: saturate(.25) opacity(.7); transform: none; }
/* launched state (launch.js marks [data-launch-done]) must never look disabled */
.btn[data-launch-done] { filter: none; cursor: pointer; }
.chip {
  display: inline-flex; align-items: center; gap: calc(8 * var(--u)); min-height: calc(34 * var(--u)); padding: 0 calc(16 * var(--u));
  border-radius: var(--r-pill); background: rgb(255 255 255 / .5); color: var(--ink); font: 500 var(--fs-small)/1 var(--f-body);
  transition: background-color var(--t-quick) linear, color var(--t-quick) linear, transform var(--t-quick) var(--ease-settle);
}
.chip::before { content: ""; width: calc(12 * var(--u)); height: calc(12 * var(--u)); min-width: 8px; min-height: 8px; border-radius: 50%; box-shadow: inset 0 0 0 max(1px, calc(1.5 * var(--u))) currentColor; opacity: .7; }
.chip--plain::before { display: none; }
.chip[aria-pressed="true"], .chip.is-on { background: var(--olive); color: #fff; }
.chip[aria-pressed="true"]::before, .chip.is-on::before { background: #fff; box-shadow: none; opacity: 1; }
.chip--pink[aria-pressed="true"], .chip--pink.is-on { background: var(--primary); }
.chip:hover { transform: translateY(calc(1 * var(--u))); }

/* ---------- NAV N5 (command bar) — measured from the home mockup, ×1.148 ---------- */
.nav {
  position: relative; z-index: 20; display: flex; align-items: center; gap: calc(26 * var(--u));
  height: calc(88 * var(--u)); padding: 0 calc(32 * var(--u)) 0 calc(34 * var(--u));
  background: var(--surface); color: var(--ink);
  box-shadow: 0 calc(10 * var(--u)) calc(28 * var(--u)) rgb(77 127 196 / .22);
}
.nav__brand { display: flex; align-items: center; gap: calc(12 * var(--u)); text-decoration: none; flex: none; }
.nav__brand img { height: calc(44 * var(--u)); width: auto; min-height: 30px; }
.nav__brand span { font: 700 calc(29 * var(--u))/1 var(--f-display); letter-spacing: .04em; font-variation-settings: "opsz" 72; color: var(--ink); }
.nav__cmd {
  flex: 1; min-width: 0; height: calc(51 * var(--u)); display: flex; align-items: center; gap: calc(9 * var(--u));
  padding: 0 calc(12 * var(--u)); background: var(--surface-2);
}
.nav__curl { font: 400 max(11px, calc(14.5 * var(--u)))/1 var(--f-mono); color: var(--nav-ink); opacity: .8; white-space: nowrap; margin-right: calc(4 * var(--u)); }
.nav__tok {
  display: inline-flex; align-items: center; height: calc(31 * var(--u)); padding: 0 calc(12 * var(--u)); border-radius: var(--r-tok);
  background: var(--chip); color: var(--nav-ink); text-decoration: none; white-space: nowrap;
  font: 500 max(12px, calc(15.5 * var(--u)))/1 var(--f-body); letter-spacing: .017em;
  transition: background-color var(--t-quick) linear, color var(--t-quick) linear, transform var(--t-quick) var(--ease-settle);
}
.nav__tok:hover { background: #D5D4E2; transform: translateY(calc(1 * var(--u))); }
.nav__tok.is-active { background: var(--primary); color: #fff; border-color: var(--primary); }
.nav__end { display: flex; align-items: center; gap: calc(26 * var(--u)); flex: none; }
.nav__social { font: 500 max(12px, calc(16 * var(--u)))/1 var(--f-body); color: var(--ink); text-decoration: none; white-space: nowrap; }
.nav__social[href]:hover { color: var(--primary); }
.is-soon { cursor: default; opacity: .75; }
.wallet { position: relative; }
.wallet__btn { min-height: calc(36 * var(--u)); padding: 0 calc(14 * var(--u)); font-size: max(12px, calc(16 * var(--u))); font-weight: 700; }
.wallet__btn.is-connected { font-family: var(--f-mono); font-weight: 500; }
.wallet__pop {
  position: absolute; right: 0; top: calc(100% + 12 * var(--u)); z-index: 50; width: max(280px, calc(330 * var(--u)));
  padding: calc(16 * var(--u)); display: grid; gap: calc(12 * var(--u)); color: var(--ink);
  background: linear-gradient(180deg, rgb(255 255 255 / .82), rgb(232 241 255 / .9));
  transition: opacity var(--t-quick) linear, translate var(--t-base) var(--ease-settle), display var(--t-quick);
  transition-behavior: allow-discrete;
}
.wallet__pop[hidden] { display: none; }
@starting-style { .wallet__pop:not([hidden]) { opacity: 0; translate: 0 calc(-8 * var(--u)); } }
.wallet__title { font: 600 var(--fs-caps)/1.2 var(--f-label); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.wallet__list { display: grid; gap: calc(8 * var(--u)); }
.wallet__list button { width: 100%; display: flex; align-items: center; gap: 10px; padding: calc(8 * var(--u)) calc(10 * var(--u)); border-radius: var(--r-row); background: rgb(255 255 255 / .6); font: 500 var(--fs-small)/1.2 var(--f-body); text-align: left; }
.wallet__list button:hover { background: var(--primary-container); }
.wallet__list img { width: 24px; height: 24px; border-radius: 6px; }
.wallet__list p { font-size: var(--fs-small); color: var(--label); }
.wallet__row { display: flex; justify-content: space-between; gap: 12px; font-size: var(--fs-small); }
.wallet__row .lbl { font: 500 var(--fs-caps) var(--f-label); color: var(--label); }
.wallet__acts { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- FOOTER F2 colophon ---------- */
.foot {
  position: relative; z-index: 1; display: grid;
  grid-template-columns: calc(52 * var(--u)) 437fr 596fr 318fr 449fr; align-items: start;
  min-height: calc(131 * var(--u)); padding: calc(24 * var(--u)) calc(34 * var(--u)) calc(22 * var(--u));
  background: var(--surface); color: var(--footer-ink);
  box-shadow: 0 calc(-8 * var(--u)) calc(26 * var(--u)) rgb(77 127 196 / .2);
}
.foot__brand { display: flex; align-items: flex-start; }
.foot__brand img { height: calc(40 * var(--u)); min-height: 36px; width: auto; }
.foot__brand span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.foot__col { padding: 0 calc(26 * var(--u)); font: 400 var(--fs-small)/1.45 var(--f-body); }
.foot__col:nth-child(2) { padding-left: 0; }
.foot__col h3 { margin: 0 0 calc(8 * var(--u)); font: 700 max(14px, calc(20 * var(--u)))/1.1 var(--f-display); color: var(--footer-ink); }
.foot__col a { text-decoration: none; }
.foot__col a[href]:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- toast ---------- */
.toast { position: fixed; z-index: 70; left: 50%; bottom: calc(28 * var(--u)); translate: -50% 0; padding: 10px 16px; font: 500 var(--fs-small)/1.3 var(--f-body); color: var(--ink); background: linear-gradient(180deg, rgb(255 255 255 / .9), var(--mint)); }

/* =====================================================================
   MOTION (DESIGN.md §10) — "the mess hall pours, fills and settles"
   ===================================================================== */
/* 1. signature: LADLE FLOW — glowing drops travel the connector curves (SVG: <path data-flow-path> + .flow-drop circles,
      or CSS: .flow-line with a moving drop). Loops 6 s linear, paused off-screen by app.js (.is-offscreen). */
.flow-line { position: relative; overflow: visible; }
.flow-line::after {
  content: ""; position: absolute; top: 50%; left: 0; width: calc(8 * var(--u)); height: calc(8 * var(--u)); min-width: 5px; min-height: 5px;
  margin-top: calc(-4 * var(--u)); border-radius: 50%; background: #fff; box-shadow: 0 0 calc(10 * var(--u)) #fff, 0 0 calc(18 * var(--u)) var(--blob-pink);
  animation: ladle-run var(--t-flow) linear infinite;
}
@keyframes ladle-run { 0% { left: 0; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
.flow-drop { fill: #fff; filter: drop-shadow(0 0 4px #fff); }
/* 2. signature: FILL & SETTLE — pots, bars and tins fill from the bottom/left and settle with a tiny overshoot-free ease */
.fill-x { transform-origin: left center; transform: scaleX(var(--fill, 1)); transition: transform var(--t-fill) var(--ease-settle); }
.fill-y { transform-origin: center bottom; transform: scaleY(var(--fill, 1)); transition: transform var(--t-fill) var(--ease-settle); }
/* blobs drift slowly (decoration only) */
.blob.is-drift { animation: blob-drift var(--t-drift) ease-in-out infinite alternate; }
@keyframes blob-drift { from { translate: calc(-12 * var(--u)) 0; } to { translate: calc(12 * var(--u)) calc(-8 * var(--u)); } }
/* count-up settles with a single pink "serve" pulse */
.is-served { animation: serve-pulse 700ms var(--ease-settle) 1; }
@keyframes serve-pulse { 0% { text-shadow: 0 0 0 transparent; } 35% { text-shadow: 0 0 calc(14 * var(--u)) rgb(251 59 214 / .55); } 100% { text-shadow: 0 0 0 transparent; } }
/* live tick: the "read at" steam dot breathes */
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--jade); box-shadow: 0 0 0 0 rgb(38 144 107 / .4); animation: steam 2.4s var(--ease-pour) infinite; vertical-align: middle; }
@keyframes steam { 0% { box-shadow: 0 0 0 0 rgb(38 144 107 / .45); } 70% { box-shadow: 0 0 0 8px rgb(38 144 107 / 0); } 100% { box-shadow: 0 0 0 0 rgb(38 144 107 / 0); } }
/* reveal-on-scroll = "set down on the counter": a short drop + settle (content is never hidden for long: app.js adds .is-in after 2 s anyway) */
[data-reveal] { transform: translateY(calc(14 * var(--u))) scale(.985); opacity: .25; transition: transform 520ms var(--ease-settle), opacity 360ms linear; }
[data-reveal].is-in { transform: none; opacity: 1; }
/* hover: a card lifts like a tray taken off the rack */
.lift { transition: transform var(--t-base) var(--ease-settle), box-shadow var(--t-base) linear; }
.lift:hover { transform: translateY(calc(-3 * var(--u))); box-shadow: 0 calc(14 * var(--u)) calc(32 * var(--u)) rgb(40 80 170 / .24); }
/* dashed ladling row marches */
.is-ladling { animation: march 1.6s linear infinite; }
@keyframes march { to { background-position: 40px 0; } }
/* typing dots (ask / run) */
.typing { display: inline-flex; gap: 4px; } .typing i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: dot 1s var(--ease-pour) infinite; } .typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 100% { opacity: .25; translate: 0 0; } 50% { opacity: 1; translate: 0 -3px; } }
/* art parallax (scroll-driven, art/decoration only — LUAT 67) */
@supports ((animation-timeline: view()) and (animation-range: entry)) {
  .art-drift { animation: art-drift linear both; animation-timeline: view(); animation-range: cover; }
  @keyframes art-drift { from { translate: 0 calc(24 * var(--u)); } to { translate: 0 calc(-24 * var(--u)); } }
}
/* route change: kit router v3 View Transition — tuned here only */
::view-transition-old(root), ::view-transition-new(root) { animation-timing-function: var(--ease-settle); }
.is-offscreen, .is-offscreen *, .is-offscreen::after, .is-offscreen *::after { animation-play-state: paused !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { transform: none; opacity: 1; }
}

/* ---------- below 1024: mobile layout (no hamburger — SITE_SPEC: the command field scrolls) ---------- */
@media (max-width: 1023px) {
  .nav { height: auto; flex-wrap: wrap; gap: 10px 14px; padding: 10px 16px 12px; }
  .nav__brand img { height: 38px; }
  .nav__brand span { font-size: 22px; }
  .nav__end { margin-left: auto; gap: 14px; }
  .nav__cmd { order: 3; flex: 1 0 100%; height: 46px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; scroll-snap-type: x proximity; }
  .nav__cmd::-webkit-scrollbar { display: none; }
  .nav__tok { height: 32px; scroll-snap-align: start; }
  .wallet__pop { position: fixed; left: 12px; right: 12px; top: 120px; width: auto; }
  .foot { grid-template-columns: 1fr; gap: 16px; padding: 22px 16px; }
  .foot__col, .foot__col:nth-child(2) { padding: 12px 0 0; }
  .rule-footer-col { border-left-width: 0; border-top: var(--rule-hair) solid var(--rule-footcol-c); }
  .btn { min-height: 44px; }
}
@media (max-width: 520px) {
  .nav__social { font-size: 14px; }
  .wallet__btn { padding: 0 10px; font-size: 13px; }
  .nav__brand span { font-size: 19px; }
}

/* shell-time route stubs (replaced by each route job) */
.route-stub { display: grid; gap: calc(16 * var(--u)); padding: calc(60 * var(--u)) 0 calc(120 * var(--u)); }
