/* TARP — app.css (shell, JOB shell 30/11/2026). Source of truth: mockup/v1/DESIGN.md.
   Scale (LUAT 50): one root unit --u = viewport / 1920. Every size = mockup px × 1.148 × --u, so 1920 = mockup 1:1 and
   1280–2560 scale in proportion. Below 1280 the phone layout runs (LUAT 71): content column capped at 720 px and centred.
   BORDERS (LUAT 56): every border/outline of the site lives in THIS file, in the .rule-* classes below. Route files use the
   classes and contain zero border/outline declarations. */

/* ------------------------------------------------------------------ 0. TOKENS */
:root {
  --u: calc(100vw / 1920);              /* replaced by app.js with clientWidth / 1920 (no scrollbar overshoot) */

  /* colour (DESIGN.md §3) */
  --paper: #E9F0F8;
  --shell: #EEF2F7;
  --surface: #FFFFFF;
  --surface-2: #F5F8FD;
  --text: #0E1A2F;
  --muted: #4B5A73;
  --hairline: #CFD9E9;
  --rule-strong-c: #B8C4D9;
  --action: #275AF7;
  --action-deep: #1C46D6;
  --action-line: #6D8BFB;
  --action-soft: #DCE8FD;
  --cost: #B4532A;
  --cost-soft: #FBE5DA;
  --art-cyan: #00C6FD;
  --ok: #1FA463;
  --disabled-bg: #DFE5EE;
  --disabled-ink: #8D9AB0;

  /* fonts (DESIGN.md §2) */
  --f-display: "Schibsted Grotesk", "Work Sans", system-ui, sans-serif;
  --f-figure: "IBM Plex Sans", "Work Sans", system-ui, sans-serif;
  --f-ui: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  /* type scale @1920 (floors keep body ≥ 12 px at 1280) */
  --fs-h1: max(34px, calc(82 * var(--u)));
  --fs-h2: max(26px, calc(46 * var(--u)));
  --fs-h1-inner: max(26px, calc(44 * var(--u)));
  --fs-panel: max(18px, calc(26 * var(--u)));
  --fs-fig: max(28px, calc(47 * var(--u)));
  --fs-eyebrow: max(12px, calc(22 * var(--u)));
  --fs-body: max(14px, calc(17 * var(--u)));
  --fs-small: max(12px, calc(15 * var(--u)));
  --fs-nav: max(14px, calc(17 * var(--u)));
  --fs-ticker: max(12px, calc(13 * var(--u)));
  --fs-mono: max(12px, calc(15 * var(--u)));
  --fs-code: max(12px, calc(13 * var(--u)));
  --fs-cell: max(13px, calc(24 * var(--u)));

  /* page frame (DESIGN.md §0 · USER FIX U1): 45 px gutters @1920, no max-width at ≥1280 */
  --gutter: calc(45 * var(--u));
  --gap-section: calc(80 * var(--u));     /* 48–96 px rule */
  --gap-block: calc(32 * var(--u));
  --gap: calc(20 * var(--u));
  --pad-card: calc(28 * var(--u));

  /* chrome sizes @1920 (mockup B1 31 px · B2 98 px · footer ≈148 px) */
  --ticker-h: calc(31 * var(--u));
  --bar-h: calc(98 * var(--u));
  --head-h: calc(var(--ticker-h) + var(--bar-h));

  /* radii (DESIGN.md §4) */
  --r-card: calc(16 * var(--u));
  --r-btn: calc(12 * var(--u));
  --r-tab: calc(12 * var(--u));
  --r-tab-in: calc(10 * var(--u));
  --r-input: calc(9 * var(--u));
  --r-chip: calc(7 * var(--u));

  /* rules (BORDER TABLE): widths from the measurement, hairlines never below 1 px */
  --rule-1: max(1px, calc(1 * var(--u)));
  --rule-2: max(1px, calc(2 * var(--u)));
  --rule-c: var(--hairline);
  --rule-ticker: var(--rule-1) solid #D0D9E6;
  --rule-nav: var(--rule-2) solid #C7D3E3;
  --rule-frame: var(--rule-2) solid var(--hairline);
  --rule-frame-thin: var(--rule-1) solid var(--hairline);
  --rule-row: var(--rule-1) solid var(--hairline);
  --rule-section: var(--rule-2) solid var(--rule-strong-c);
  --rule-selected: var(--rule-2) solid var(--action);
  --rule-outline-btn: var(--rule-2) solid var(--action-line);
  --rule-footer: var(--rule-1) solid #CFD8E5;

  /* shadows / materials */
  --shadow-card: 0 calc(12 * var(--u)) calc(32 * var(--u)) rgba(39, 90, 247, .06), 0 calc(2 * var(--u)) calc(6 * var(--u)) rgba(14, 26, 47, .04);
  --panel-fill: linear-gradient(160deg, #FFFFFF 0%, #FFFFFF 55%, #F5F8FD 100%);

  /* motion (DESIGN.md §10) — one easing family */
  --ease-tarp: cubic-bezier(.22, .8, .24, 1);
  --ease-lift: cubic-bezier(.3, 1.3, .5, 1);
  --t-fast: 220ms;
  --t-mid: 500ms;
  --t-slow: 900ms;
  --rt-nudge: 24px;
  --rt-dur: 280ms;

  /* native controls */
  --native-accent: var(--action);
  --native-scroll-thumb: #B8C4D9;
  --native-scroll-track: var(--shell);
}
html[data-rt-dir=back] { --rt-nudge: -24px; }

/* phone layout 360–1279 (LUAT 71) */
@media (max-width: 1279.98px) {
  :root {
    --u: 0.62px;
    --gutter: 20px;
    --gap-section: 56px;
    --gap-block: 24px;
    --gap: 14px;
    --pad-card: 18px;
    --ticker-h: 30px;
    --bar-h: 60px;
    --fs-h1: 38px;
    --fs-h2: 28px;
    --fs-h1-inner: 30px;
    --fs-panel: 20px;
    --fs-fig: 30px;
    --fs-eyebrow: 13px;
    --fs-body: 16px;
    --fs-small: 14px;
    --fs-nav: 16px;
    --fs-ticker: 12px;
    --fs-mono: 13px;
    --fs-code: 12px;
    --fs-cell: 15px;
    --r-card: 14px;
    --r-btn: 10px;
    --r-tab: 10px;
    --r-tab-in: 8px;
    --r-input: 8px;
    --r-chip: 6px;
    --rule-1: 1px;
    --rule-2: 1.5px;
  }
}
@media (max-width: 400px) {
  :root { --gutter: 16px; --fs-h1: 34px; --fs-h2: 26px; }
}

/* ------------------------------------------------------------------ 1. BASE */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; scroll-padding-top: calc(var(--head-h) + 12px); }
body {
  margin: 0; min-height: 100vh; overflow-x: clip;
  font: 400 var(--fs-body)/1.5 var(--f-ui); color: var(--text);
  background-color: var(--paper);
  /* §3b page atmosphere: paper + atm-sweep (left → right) + a faint top glow; scrolls with the page */
  background-image:
    radial-gradient(ellipse 60% 40% at 78% 18%, rgba(220, 230, 245, .70), rgba(220, 230, 245, 0) 70%),
    linear-gradient(90deg, rgba(233, 240, 248, 0) 0%, rgba(224, 236, 249, .9) 100%);
  background-repeat: no-repeat;
  background-size: 100% 100%;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "kern";
}
img, svg, video, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
:where(button, input, select, textarea) { border: 0; font: inherit; color: inherit; background: none; margin: 0; }
:where(button) { cursor: pointer; padding: 0; }
:where(h1, h2, h3, h4, p, ul, ol, figure, dl, dd) { margin: 0; }
:where(ul, ol) { padding: 0; list-style: none; }
::selection { background: var(--action-soft); color: var(--text); }
:focus-visible { outline: var(--rule-2) solid var(--action); outline-offset: 3px; border-radius: 4px; }
[data-rt-focus]:focus { outline: none; }
.tw-pretty, p { text-wrap: pretty; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ------------------------------------------------------------------ 2. TYPE */
.t-eyebrow { font: 700 var(--fs-eyebrow)/1.2 var(--f-ui); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.t-h1 { font: 700 var(--fs-h1)/1.08 var(--f-display); letter-spacing: -.02em; color: var(--text); }
.t-h1-inner { font: 700 var(--fs-h1-inner)/1.1 var(--f-display); letter-spacing: -.01em; color: var(--text); }
.t-h2 { font: 700 var(--fs-h2)/1.1 var(--f-display); letter-spacing: -.01em; color: var(--text); }
.t-panel { font: 700 var(--fs-panel)/1.2 var(--f-display); color: var(--text); }
.t-fig { font: 700 var(--fs-fig)/1 var(--f-figure); letter-spacing: .02em; font-variant-numeric: tabular-nums; color: var(--text); }
.t-lede { font: 400 max(15px, calc(19 * var(--u)))/1.5 var(--f-ui); color: var(--muted); max-width: 68ch; }
.t-body { font: 400 var(--fs-body)/1.5 var(--f-ui); color: var(--muted); }
.t-small { font: 400 var(--fs-small)/1.45 var(--f-ui); color: var(--muted); }
.t-label { font: 500 var(--fs-small)/1.3 var(--f-ui); color: var(--muted); }
.t-mono { font: 400 var(--fs-mono)/1.35 var(--f-mono); font-variant-numeric: tabular-nums; }
.t-cell { font: 400 var(--fs-cell)/1.2 var(--f-mono); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.t-code { font: 400 var(--fs-code)/1.45 var(--f-mono); }
.t-source { font: 400 var(--fs-ticker)/1.4 var(--f-mono); color: var(--muted); }
.is-pos, .pos { color: var(--action); }
.is-neg, .neg { color: var(--cost); }
.is-action { color: var(--action); }
.tw-balance { text-wrap: balance; }

/* ------------------------------------------------------------------ 3. PAGE FRAME (one container for every route) */
.page {
  display: block; position: relative;
  padding-inline: var(--gutter);
  padding-block: calc(40 * var(--u)) var(--gap-section);
  min-height: calc(100vh - var(--head-h) - 150px);
}
.page > * + * { margin-top: var(--gap-section); }        /* one section gap on every route */
.section { position: relative; }
.stack > * + * { margin-top: var(--gap); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap-block); }
@media (max-width: 1279.98px) {
  .page { max-width: 760px; margin-inline: auto; padding-block: 24px 56px; }
  .grid-2 { grid-template-columns: 1fr; }
}
/* atmosphere decorations a route may place (art helpers, never content): glow behind hero/desk art, floor under the method diagram */
.atm-glow, .atm-floor { position: absolute; pointer-events: none; z-index: -1; }
.atm-glow { width: calc(900 * var(--u)); height: calc(600 * var(--u)); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(220, 230, 245, .9), rgba(220, 230, 245, 0)); }
.atm-floor { width: calc(1100 * var(--u)); height: calc(160 * var(--u)); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(206, 225, 246, .6), rgba(206, 225, 246, 0)); }
.art { pointer-events: none; user-select: none; }
.art img, img.art { width: 100%; height: auto; }

/* ------------------------------------------------------------------ 4. RULES — the only borders of the site (BORDER TABLE) */
/* 2 px framed panels (home · receipt · desk · mcp) */
.rule-panel,
.rule-sizing-card, .rule-portfolio-table, .rule-chart-panel, .rule-summary-card, .rule-ca-strip,
.rule-receipt-panel, .rule-receipt-row, .rule-compare-panel, .rule-receipt-card, .rule-method-panel, .rule-step-card,
.rule-ticket-card, .rule-desk-summary, .rule-lift-strip, .rule-hip3-table, .rule-wallet-state, .rule-tx-box, .rule-code-box {
  border: var(--rule-frame); border-radius: var(--r-card);
}
.rule-receipt-row, .rule-step-card, .rule-wallet-state, .rule-tx-box, .rule-lift-strip { border-radius: calc(12 * var(--u)); }
/* 1 px framed panels (tape route, request/response code boxes, tab strip) */
.rule-panel--thin, .rule-tape-board, .rule-read-panel, .rule-blocks-panel, .rule-code-box--thin {
  border: var(--rule-frame-thin); border-radius: var(--r-card);
}
.rule-method-panel--thin { border: var(--rule-frame-thin); border-radius: var(--r-card); }
/* sub-blocks INSIDE the tape board: only the top edge (the board draws the outside — never a doubled line) */
.rule-week-strip, .rule-weekend-table { border-top: var(--rule-frame-thin); }
/* tab strip / segmented control */
.rule-tab-strip { border: var(--rule-frame-thin); border-radius: var(--r-tab); }
/* inputs: the frame wraps the whole control (padding inside the frame) */
.rule-input { border: var(--rule-frame-thin); border-radius: var(--r-input); }
.rule-input:focus-within { border-color: var(--action); }
/* chips / pills */
.rule-chip { border: var(--rule-frame-thin); border-radius: var(--r-chip); }
/* outline button (2 px action line) */
.rule-btn-outline { border: var(--rule-outline-btn); border-radius: var(--r-btn); }
/* selected state of any framed card/row/chip: same width, action colour (no second line) */
.rule-panel.is-selected, .rule-receipt-row.is-selected, .rule-receipt-card.is-selected, .rule-chip.is-selected,
.rule-receipt-row--selected, .rule-receipt-card--selected, .rule-selected { border: var(--rule-selected); }
.rule-receipt-row--selected, .rule-receipt-card--selected { border-radius: var(--r-card); }
/* rows: a rule BETWEEN rows (never under the last one, never doubled with the frame) */
.rule-rows > :not(:first-child) { border-top: var(--rule-row); }
.rule-row { border-bottom: var(--rule-row); }
.rule-row-top { border-top: var(--rule-row); }
.rule-head { border-bottom: var(--rule-row); }
/* table rows in a <table>: rule between body rows + under the header */
.rule-table { border-collapse: collapse; }
.rule-table thead th { border-bottom: var(--rule-row); }
.rule-table tbody tr + tr > * { border-top: var(--rule-row); }
/* column dividers: a 1 px line between columns, never before the first */
.rule-cols > :not(:first-child) { border-left: var(--rule-row); }
.rule-col { border-left: var(--rule-row); }
/* card divider (sizing card, 2 px) and section rule (home, 2 px rule-strong) */
.rule-divider { border-bottom: var(--rule-frame); }
.rule-divider-top { border-top: var(--rule-frame); }
.rule-section { border-top: var(--rule-section); }
.rule-none { border: 0; }
@media (max-width: 1279.98px) {
  .rule-cols > :not(:first-child) { border-left: 0; border-top: var(--rule-row); }
  .rule-cols--keep > :not(:first-child) { border-top: 0; border-left: var(--rule-row); }
}

/* ------------------------------------------------------------------ 5. SHARED COMPONENTS */
/* panel surface (pair with a .rule-* class) */
.panel { background: var(--panel-fill); box-shadow: var(--shadow-card); border-radius: var(--r-card); }
.panel--flat { background: var(--surface); box-shadow: none; }
.pad { padding: var(--pad-card); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: calc(10 * var(--u));
  min-height: max(40px, calc(55 * var(--u))); padding: 0 calc(28 * var(--u));
  border-radius: var(--r-btn); font: 600 max(14px, calc(19 * var(--u)))/1 var(--f-ui); text-decoration: none; white-space: nowrap;
  transition: transform var(--t-fast) var(--ease-lift), background-color var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);
}
.btn--primary { background: var(--action); color: #fff; box-shadow: 0 calc(8 * var(--u)) calc(20 * var(--u)) rgba(39, 90, 247, .22); }
.btn--primary:hover { background: var(--action-deep); }
.btn--outline { background: var(--surface); color: var(--action); }
.btn--outline:hover { background: var(--action-soft); }
.btn--small { min-height: max(32px, calc(40 * var(--u))); padding: 0 calc(18 * var(--u)); font-size: var(--fs-small); }
.btn:hover:not([disabled]):not([aria-disabled="true"]) { transform: translateY(-2px); }
.btn[disabled], .btn[aria-disabled="true"], .btn.is-soon { background: var(--disabled-bg); color: var(--disabled-ink); box-shadow: none; cursor: not-allowed; }
/* launched BUY must look live (data-launch-done from launch.js) */
.btn[data-launch-done] { background: var(--action); color: #fff; cursor: pointer; box-shadow: 0 calc(8 * var(--u)) calc(20 * var(--u)) rgba(39, 90, 247, .22); }

/* segmented tabs (Tech · Index · Mixed …): pair the wrapper with .rule-tab-strip */
.seg { display: inline-flex; gap: calc(4 * var(--u)); padding: calc(4 * var(--u)); background: var(--surface); }
.seg > button, .seg > a {
  min-height: max(32px, calc(43 * var(--u))); padding: 0 calc(26 * var(--u)); border-radius: var(--r-tab-in);
  font: 500 max(14px, calc(18 * var(--u)))/1 var(--f-ui); color: var(--text); text-decoration: none; display: inline-flex; align-items: center;
  transition: background-color var(--t-fast) var(--ease-tarp), color var(--t-fast);
}
.seg > [aria-pressed="true"], .seg > [aria-selected="true"], .seg > .is-selected { background: var(--action); color: #fff; }
.seg > :not([aria-pressed="true"]):not([aria-selected="true"]):not(.is-selected):hover { background: var(--action-soft); }

/* pills + chips */
.pill { display: inline-flex; align-items: center; gap: .4em; padding: calc(5 * var(--u)) calc(12 * var(--u)); border-radius: var(--r-chip);
  background: var(--action-soft); color: var(--action); font: 500 var(--fs-small)/1.2 var(--f-ui); white-space: nowrap; }
.pill--cost { background: var(--cost-soft); color: var(--cost); }
.chip-source { display: inline-flex; align-items: center; gap: .5em; padding: calc(6 * var(--u)) calc(12 * var(--u)); border-radius: var(--r-chip);
  background: rgba(220, 232, 253, .6); font: 400 var(--fs-ticker)/1.3 var(--f-mono); color: var(--muted); }

/* ------------------------------------------------------------------ 6. HEADER (N9: ticker strip + nav bar) */
.site-head { position: sticky; top: 0; z-index: 50; background: var(--shell); }
.ticker { height: var(--ticker-h); border-bottom: var(--rule-ticker); overflow: hidden; }
.ticker__track {
  height: 100%; display: flex; align-items: center; justify-content: space-between; gap: calc(40 * var(--u));
  padding-inline: calc(48 * var(--u)); font: 400 var(--fs-ticker)/1 var(--f-mono); color: var(--text); white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.tk { display: inline-flex; gap: 1.1ch; align-items: baseline; }
.tk b { font-weight: 500; }
.tk--time { color: var(--muted); }
.tk--time i { font-style: normal; }
.bar { height: var(--bar-h); display: flex; align-items: center; padding-inline: calc(48 * var(--u)); border-bottom: var(--rule-nav); }
.brand { display: inline-flex; align-items: center; gap: calc(12 * var(--u)); width: calc(173 * var(--u)); text-decoration: none; color: var(--text); flex: none; }
.brand__mark { width: auto; height: max(40px, calc(42 * var(--u))); }
.brand__name { font: 700 max(20px, calc(24 * var(--u)))/1 var(--f-display); letter-spacing: .01em; }
.routes { display: flex; align-items: stretch; align-self: stretch; gap: calc(38 * var(--u)); margin-left: calc(56 * var(--u)); }
.routes a {
  position: relative; display: flex; align-items: center; padding-inline: calc(2 * var(--u));
  font: 500 var(--fs-nav)/1 var(--f-ui); color: var(--text); text-decoration: none; white-space: nowrap;
  transition: color var(--t-fast);
}
.routes a::after { content: ""; position: absolute; left: 0; right: 0; bottom: calc(-1 * var(--rule-2)); height: max(2px, calc(2.6 * var(--u)));
  background: var(--action); transform: scaleX(0); transform-origin: 0 50%; transition: transform var(--t-mid) var(--ease-tarp); }
.routes a:hover { color: var(--action); }
.routes a:hover::after { transform: scaleX(.35); }
.routes a.is-active { color: var(--action); }
.routes a.is-active::after { transform: scaleX(1); }
.social { margin-left: auto; display: flex; align-items: center; gap: calc(37 * var(--u)); }
.social a, .social span { font: 500 var(--fs-nav)/1 var(--f-ui); color: var(--action); text-decoration: none; white-space: nowrap; }
.social a:hover { text-decoration: underline; text-underline-offset: 4px; }
.is-soon-link { cursor: default; opacity: .9; }
.nav-toggle { display: none; }

@media (max-width: 1279.98px) {
  .ticker { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
  .ticker::-webkit-scrollbar { display: none; }
  .ticker__track { width: max-content; min-width: 100%; padding-inline: 16px; gap: 28px; justify-content: flex-start; }
  .bar { padding-inline: 16px; gap: 12px; }
  .brand { width: auto; gap: 8px; }
  .brand__mark { height: 40px; }
  .brand__name { font-size: 20px; }
  .social { gap: 16px; margin-left: auto; }
  .social a, .social span { font-size: 15px; }
  .nav-toggle {
    display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border-radius: 10px;
    font: 600 15px/1 var(--f-ui); color: var(--text); background: var(--surface);
  }
  .nav-toggle__bars { width: 16px; height: 2px; background: currentColor; position: relative; }
  .nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; width: 16px; height: 2px; background: currentColor; transition: transform var(--t-fast) var(--ease-tarp); }
  .nav-toggle__bars::before { top: -5px; } .nav-toggle__bars::after { top: 5px; }
  .site-head.is-open .nav-toggle__bars { background: transparent; }
  .site-head.is-open .nav-toggle__bars::before { transform: translateY(5px) rotate(45deg); }
  .site-head.is-open .nav-toggle__bars::after { transform: translateY(-5px) rotate(-45deg); }
  .routes {
    position: absolute; left: 0; right: 0; top: 100%; margin: 0; flex-direction: column; gap: 0; padding: 8px 16px 16px;
    background: var(--shell); border-bottom: var(--rule-nav); box-shadow: 0 18px 30px rgba(14, 26, 47, .08);
    visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity var(--t-fast), transform var(--t-fast) var(--ease-tarp), visibility 0s linear var(--t-fast);
  }
  .site-head.is-open .routes { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
  .routes a { min-height: 48px; font-size: 18px; max-width: 760px; width: 100%; margin-inline: auto; padding-inline: 4px; }
  .routes a + a { border-top: var(--rule-row); }
  .routes a::after { display: none; }
  .routes a.is-active::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--action); margin-right: 10px; }
}
@media (max-width: 400px) {
  .bar { gap: 8px; padding-inline: 12px; }
  .brand__name { font-size: 18px; }
  .social { gap: 12px; }
  .nav-toggle { padding: 0 10px; }
  .nav-toggle__text { display: none; }
}

/* ------------------------------------------------------------------ 7. FOOTER (F8) */
.site-foot { background: var(--shell); border-top: var(--rule-footer); padding: calc(25 * var(--u)) calc(48 * var(--u)) calc(22 * var(--u)); }
.foot-row { display: flex; align-items: flex-start; gap: calc(40 * var(--u)); }
.foot-close { font: 700 var(--fs-h2)/1.05 var(--f-display); letter-spacing: -.01em; color: var(--text); max-width: calc(1420 * var(--u)); }
.foot-links { margin-left: auto; display: flex; align-items: center; gap: calc(30 * var(--u)); white-space: nowrap; padding-top: calc(6 * var(--u)); }
.foot-links a, .foot-links span, .foot-links button { font: 500 max(15px, calc(20 * var(--u)))/1 var(--f-ui); color: var(--action); text-decoration: none; }
.foot-links a:hover, .foot-links button:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot-mark { height: max(36px, calc(40 * var(--u))); width: auto; }
.foot-ca { display: inline-flex; gap: .35em; align-items: baseline; }
.foot-ca [data-launch="ca-short"], .foot-ca__value { font-family: var(--f-mono); }
.foot-sources { margin-top: calc(14 * var(--u)); font: 400 var(--fs-ticker)/1.4 var(--f-mono); color: var(--muted); }
@media (max-width: 1279.98px) {
  .site-foot { padding: 28px 20px 24px; }
  .foot-row { flex-direction: column; gap: 18px; max-width: 760px; margin-inline: auto; }
  .foot-close { font-size: 26px; max-width: none; }
  .foot-links { margin-left: 0; flex-wrap: wrap; gap: 14px 22px; white-space: normal; }
  .foot-sources { max-width: 760px; margin-inline: auto; margin-top: 16px; }
}

/* ------------------------------------------------------------------ 8. MOTION (DESIGN.md §10 — "pull the cover, lift at the bell") */
/* reveal = the cover is pulled over a block from the Friday side (left): a short slide from the left + an action line that
   runs across the top edge and leaves a cyan "Monday" tick at the right end. IntersectionObserver + 2 s safety timer (app.js). */
[data-reveal] { position: relative; }
.motion [data-reveal]:not(.is-in) { opacity: 0; transform: translateX(calc(-18 * var(--u))); }
.motion [data-reveal] { transition: opacity var(--t-mid) var(--ease-tarp), transform var(--t-slow) var(--ease-tarp); transition-delay: calc(var(--ri, 0) * 60ms); }
[data-reveal="cover"]::before {
  content: ""; position: absolute; left: var(--r-card); right: var(--r-card); top: 0; height: max(2px, calc(3 * var(--u)));
  background: linear-gradient(90deg, var(--action) 0%, var(--action) 88%, var(--art-cyan) 100%);
  transform: scaleX(1); transform-origin: 0 50%; opacity: 0; pointer-events: none;
}
.motion [data-reveal="cover"].is-in::before { animation: tarp-pull 1.1s var(--ease-tarp) both; animation-delay: calc(var(--ri, 0) * 60ms + 120ms); }
@keyframes tarp-pull { 0% { transform: scaleX(0); opacity: 1; } 70% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }

/* bell lift = hover on a liftable card/row: it rises 2 px and its right (Monday) edge gets the cyan rim */
.liftable { transition: transform var(--t-fast) var(--ease-lift), box-shadow var(--t-fast) var(--ease-tarp); }
.liftable:hover { transform: translateY(-2px); box-shadow: var(--shadow-card), inset calc(-3 * var(--u)) 0 0 var(--art-cyan); }

/* grow-in bars/blocks (chart, tape blocks, week cards): children grow from their baseline, 40 ms apart (--gi = index) */
.motion [data-grow] > * { transform-origin: 50% 100%; }
.motion [data-grow]:not(.is-in) > * { transform: scaleY(.04); }
.motion [data-grow] > * { transition: transform var(--t-mid) var(--ease-tarp); transition-delay: calc(var(--gi, 0) * 40ms); }
.motion [data-grow="x"] > * { transform-origin: 0 50%; }
.motion [data-grow="x"]:not(.is-in) > * { transform: scaleX(.04); }

/* live tick = a refreshed value gets a thin underline swept from the left in its sign colour */
[data-cell] { position: relative; }
[data-cell].is-ticked::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor;
  transform-origin: 0 50%; animation: tick-sweep 900ms var(--ease-tarp) both; }
@keyframes tick-sweep { 0% { transform: scaleX(0); opacity: 1; } 60% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }

/* countdown colon breathes once per second (opacity only) */
[data-countdown] { font-variant-numeric: tabular-nums; }

/* art parallax (decoration only, scroll-driven, never hides content) */
@media (prefers-reduced-motion: no-preference) {
  @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 (router v3 View Transition) — the page slides in from the Friday side */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: var(--rt-dur); animation-timing-function: var(--ease-tarp); }

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