/* PAYPACKET — app.css (shell). Tokens from mockup/v1/DESIGN.md §0–§5, motion §10.
   SCALE (LUAT 50): one unit --u = 100vw/1920 from 1280 up (1920 = mockup ×1.148 1:1, no max-width cap);
   below 1280 one phone layout (LUAT 71): --u = 1px, content column capped at --read-w and centred, ground full-bleed.
   BORDERS (LUAT 56): every frame is a .rule-* class below; route files contain ZERO border/outline declarations. */

/* ---------- 1. tokens ---------- */
:root {
  --u: calc(100vw / 1920);
  /* colours (DESIGN §3) */
  --paper: #F7EEE4;
  --nav-ground: #F6F1E8;
  --surface: #FFFDF9;
  --surface-2: #FEFAF5;
  --ink: #2A1E14;
  --ink-2: #6B5A4A;
  --ink-link: #9A4A12;
  --hairline: #E5D9C6;
  --hair-soft: #EBDFD2;
  --hair-row: #EEE4E1;
  --dash: #B9A78F;
  --action: #B35715;
  --action-dark: #9A4A12;
  --amber: #CF961F;
  --amber-tint: #F5E3CB;
  --haze: #F1E2C8;
  --dune: #F3E2CC;
  --disabled: #EDE4D9;
  --disabled-ink: #9B8D7D;
  --chip-buy: #E5EFC9;
  --chip-sell: #F8D3BF;
  /* fonts (DESIGN §2) */
  --f-display: 'Inter', 'Helvetica Neue', Arial, sans-serif;
  --f-body: 'Source Sans 3', 'Source Sans Pro', 'Segoe UI', Arial, sans-serif;
  --f-label: 'IBM Plex Sans', 'Source Sans 3', Arial, sans-serif;
  --f-mono: 'Red Hat Mono', 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  /* type scale @1920 (multiply by --u; floors keep body ≥12px) */
  --fs-hero: calc(86 * var(--u));
  --fs-title: calc(56 * var(--u));
  --fs-section: calc(41 * var(--u));
  --fs-card: calc(32 * var(--u));
  --fs-big: calc(34 * var(--u));
  --fs-lede: max(15px, calc(27 * var(--u)));
  --fs-figure: max(13px, calc(22 * var(--u)));
  --fs-body: max(13px, calc(17 * var(--u)));
  --fs-ui: max(12px, calc(16 * var(--u)));
  --fs-label: max(12px, calc(17 * var(--u)));
  --fs-cell: max(12px, calc(15 * var(--u)));
  --fs-small: max(12px, calc(13 * var(--u)));
  /* geometry */
  --gut-l: calc(70 * var(--u));
  --gut-r: calc(68 * var(--u));
  --nav-h: calc(90 * var(--u));
  --r-card: calc(14 * var(--u));
  --r-ctl: calc(10 * var(--u));
  --r-chip: calc(9 * var(--u));
  --gap-section: calc(72 * var(--u));
  --shadow-card: 0 1px 2px rgba(42, 30, 20, .06), 0 8px 24px rgba(42, 30, 20, .06);
  /* rules (BORDER TABLE, DESIGN §4b) — hairlines never below 1px */
  --rule-hair: max(1px, calc(1.1 * var(--u)));
  --rule-mid: max(1px, calc(1.6 * var(--u)));
  --rule-card: max(1px, calc(2 * var(--u)));
  --rule-modal: max(1px, calc(2.4 * var(--u)));
  --rule-c: var(--hairline);
  --rule-c-soft: var(--hair-soft);
  --rule-c-row: var(--hair-row);
  /* motion (DESIGN §10) */
  --ease-press: cubic-bezier(.2, .8, .2, 1);
  --ease-settle: cubic-bezier(.16, 1, .3, 1);
  --t-flatten: 600ms;
  --t-settle: 450ms;
  --t-row: 240ms;
  --rt-nudge: 16px;
  --rt-dur: 280ms;
  --read-w: 760px;
  color-scheme: light;
  accent-color: var(--action);
}
@media (max-width: 1279.98px) {
  :root {
    --u: 1px;
    --gut-l: 20px; --gut-r: 20px;
    --nav-h: auto;
    --fs-hero: clamp(38px, 9vw, 64px);
    --fs-title: clamp(32px, 7vw, 48px);
    --fs-section: clamp(26px, 5.5vw, 36px);
    --fs-card: clamp(22px, 4.6vw, 28px);
    --fs-big: clamp(24px, 5vw, 30px);
    --fs-lede: 18px;
    --fs-figure: 17px;
    --fs-body: 16px;
    --fs-ui: 15px;
    --fs-label: 13px;
    --fs-cell: 14px;
    --fs-small: 13px;
    --gap-section: 48px;
  }
}

/* ---------- 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; }
:where(button:disabled, [aria-disabled="true"]) { cursor: not-allowed; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: #CDB9A0 var(--paper); }
body {
  margin: 0; min-height: 100vh; overflow-x: hidden;
  font-family: var(--f-body); font-size: var(--fs-body); line-height: 1.4; color: var(--ink);
  font-feature-settings: 'tnum' 0;
  background-color: var(--paper);
  /* PAGE ATMOSPHERE (DESIGN §3b, look 4): cream shift + hero haze, shared by every route; strongest on #/ */
  background-image:
    radial-gradient(ellipse calc(1300 * var(--u)) calc(620 * var(--u)) at calc(760 * var(--u)) calc(880 * var(--u)), rgba(241, 226, 200, .7), rgba(241, 226, 200, 0) 70%),
    linear-gradient(180deg, #F8EFE6 0%, #F7EEE4 60%, #F8F0E6 100%);
  background-repeat: no-repeat;
  background-size: 100% 100%, 100% 100%;
}
body:not([data-route="home"]) {
  /* inner routes: same family, haze at ~40 % behind their top chart band */
  background-image:
    radial-gradient(ellipse calc(1300 * var(--u)) calc(560 * var(--u)) at calc(760 * var(--u)) calc(480 * var(--u)), rgba(241, 226, 200, .28), rgba(241, 226, 200, 0) 70%),
    linear-gradient(180deg, #F8EFE6 0%, #F7EEE4 60%, #F8F0E6 100%);
}
::selection { background: var(--amber-tint); color: var(--ink); }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
.mono, .num { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 12px; top: 12px; z-index: 100; padding: 8px 12px; background: var(--surface); }
:focus-visible { outline: 2px solid var(--action); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 3. ONE PAGE FRAME (USER FIX: 70 / 68 px gutters @1920; routes never set their own) ---------- */
.page {
  display: block; position: relative;
  padding: 0 var(--gut-r) 0 var(--gut-l);
  min-height: 60vh;
}
.page:focus { outline: none; }
.full-bleed { margin-left: calc(-1 * var(--gut-l)); margin-right: calc(-1 * var(--gut-r)); }
.section-gap { margin-top: var(--gap-section); }
@media (max-width: 1279.98px) {
  .page { max-width: calc(var(--read-w) + 40px); margin: 0 auto; padding: 0 20px; }
  .full-bleed { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
}

/* ---------- 4. type helpers (DESIGN §2) ---------- */
.t-hero { font: 800 var(--fs-hero)/1.04 var(--f-display); letter-spacing: -0.011em; }
.t-title { font: 800 var(--fs-title)/1.05 var(--f-display); letter-spacing: -0.01em; }
.t-section { font: 800 var(--fs-section)/1.1 var(--f-display); letter-spacing: -0.01em; }
.t-card { font: 800 var(--fs-card)/1.1 var(--f-display); }
.t-big { font: 800 var(--fs-big)/1.1 var(--f-display); font-variant-numeric: tabular-nums; }
.t-lede { font: 400 var(--fs-lede)/1.3 var(--f-body); color: var(--ink-2); text-wrap: pretty; }
.t-eyebrow { font: 700 var(--fs-label)/1.2 var(--f-label); letter-spacing: .009em; text-transform: uppercase; color: var(--ink-2); }
.t-artlabel { font: 700 var(--fs-label)/1.2 var(--f-label); letter-spacing: .12em; text-transform: uppercase; color: #6B4A28; }
.t-head { font: 600 var(--fs-small)/1.2 var(--f-label); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); }
.t-figure { font: 500 var(--fs-figure)/1.2 var(--f-mono); letter-spacing: -0.029em; font-variant-numeric: tabular-nums; }
.t-cell { font: 500 var(--fs-cell)/1.4 var(--f-mono); font-variant-numeric: tabular-nums; }
.t-note { font: 400 var(--fs-ui)/1.4 var(--f-body); color: var(--ink-2); text-wrap: pretty; }
.t-src { font: 400 var(--fs-small)/1.4 var(--f-body); color: var(--ink-2); }
.link-action { color: var(--action); font-weight: 600; text-decoration: none; }
.link-action:hover { color: var(--action-dark); text-decoration: underline; }

/* dotted-leader row: label ........ value (DESIGN §5) */
.leader { display: flex; align-items: baseline; gap: calc(8 * var(--u)); min-width: 0; }
.leader > .leader-dots { flex: 1 1 auto; min-width: calc(24 * var(--u)); height: 1em; align-self: baseline;
  background: radial-gradient(circle, rgba(107, 90, 74, .5) 1px, transparent 1.3px) left 72% / calc(9 * var(--u)) 100% repeat-x;
  transform-origin: left center; }
.leader > .leader-val { font-family: var(--f-mono); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
@media (max-width: 1279.98px) { .leader > .leader-dots { background-size: 8px 100%; min-width: 16px; } }

/* ---------- 5. controls (DESIGN §5) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4em; min-height: max(40px, calc(48 * var(--u)));
  padding: 0 calc(20 * var(--u)); border-radius: var(--r-ctl); font: 600 var(--fs-ui)/1 var(--f-body); white-space: nowrap;
  text-decoration: none; transition: background-color 160ms var(--ease-press), transform 160ms var(--ease-press); }
@media (max-width: 1279.98px) { .btn { padding: 0 16px; } }
.btn-primary { background: var(--action); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--action-dark); }
.btn-primary:active:not(:disabled) { transform: translateY(1px); }
.btn-primary:disabled, .btn-primary[aria-disabled="true"] { background: var(--disabled); color: var(--disabled-ink); }
.btn-quiet { background: var(--surface-2); color: var(--ink); }
.chip { display: inline-flex; align-items: center; min-height: max(30px, calc(36 * var(--u))); padding: 0 calc(14 * var(--u));
  border-radius: var(--r-chip); background: var(--surface-2); font: 400 var(--fs-ui)/1 var(--f-body); white-space: nowrap; }
.chip[aria-pressed="true"], .chip.is-on { background: var(--amber-tint); }
@media (max-width: 1279.98px) { .chip { padding: 0 12px; } }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: calc(4 * var(--u)); border-radius: var(--r-ctl); background: var(--surface-2); }
.seg > button { min-height: max(36px, calc(44 * var(--u))); border-radius: calc(8 * var(--u)); font: 400 var(--fs-ui)/1 var(--f-body); white-space: nowrap; padding: 0 12px;
  transition: background-color 200ms var(--ease-press), color 200ms var(--ease-press); }
.seg > button[aria-pressed="true"] { background: var(--action); color: #fff; font-weight: 600; }
.field { display: flex; align-items: center; min-height: max(40px, calc(48 * var(--u))); padding: 0 calc(14 * var(--u)); border-radius: var(--r-ctl); background: var(--surface); }
.field > input, .field > select { flex: 1 1 auto; min-width: 0; height: 100%; padding: 0; font: 400 var(--fs-ui)/1.2 var(--f-mono); outline: none; }
.field:focus-within { box-shadow: 0 0 0 2px rgba(179, 87, 21, .35); }
.card { background: var(--surface); border-radius: var(--r-card); box-shadow: var(--shadow-card); }
.card-2 { background: var(--surface-2); border-radius: var(--r-card); }

/* ---------- 6. BORDER CLASSES — one per component of DESIGN §4b (widths from the table only) ---------- */
.rule-nav { border-bottom: var(--rule-hair) solid var(--rule-c); }
.rule-tab { border: var(--rule-hair) solid var(--rule-c); border-bottom: 0; border-radius: var(--r-ctl) var(--r-ctl) 0 0; }
.rule-toggle { border: var(--rule-card) solid var(--rule-c-soft); border-radius: var(--r-ctl); }
.rule-payslip { border: var(--rule-card) solid var(--rule-c); border-radius: var(--r-card); }
.rule-panel { border: var(--rule-card) solid var(--rule-c); border-radius: var(--r-card); }     /* token-panel */
.rule-card { border: var(--rule-mid) solid var(--rule-c-soft); border-radius: var(--r-card); }  /* why-card, howto-card, wallet-card, wallet-chooser, wallet-elysium, timecard, receipt-card */
.rule-card-strong { border: var(--rule-card) solid var(--rule-c-soft); border-radius: var(--r-card); } /* ahead-card, chart-card, daily-table, scenario-table, terms-card, legs-table */
.rule-card-thin { border: var(--rule-hair) solid var(--rule-c-soft); border-radius: var(--r-card); } /* stream-chart-card, swap-table, jag-card, formula-card */
.rule-card-joined { border: var(--rule-card) solid var(--rule-c-soft); border-top: 0; border-radius: 0 0 var(--r-card) var(--r-card); } /* take-card under scenario-table: shared edge drawn once */
.rule-card-joined-top { border-radius: var(--r-card) var(--r-card) 0 0; }                        /* pair with .rule-card-strong on the upper box */
.rule-modal { border: var(--rule-modal) solid var(--rule-c); border-radius: var(--r-card); }     /* take-modal, wallet modal, demo receipt overlay */
.rule-row { border-bottom: var(--rule-hair) solid var(--rule-c-row); }                         /* table row rule, payslip-rule, howto-step-rule */
.rule-row:last-child.rule-row-last-none { border-bottom: 0; }
.rule-row-top { border-top: var(--rule-hair) solid var(--rule-c-row); }
.rule-sel.is-sel { border-top: var(--rule-hair) solid var(--rule-c); border-bottom: var(--rule-hair) solid var(--rule-c); border-radius: 0; } /* desk selected scenario row: framed top + bottom as drawn */
.rule-rule { border-top: var(--rule-card) solid var(--rule-c-soft); }                         /* token-rule (2.0 px) */
.rule-divider { border-left: var(--rule-hair) solid var(--rule-c); }                           /* stat-divider, vertical separators */
.rule-input { border: var(--rule-hair) solid var(--rule-c); border-radius: var(--r-ctl); }      /* wraps the whole control: .field.rule-input */
.rule-chip { border: var(--rule-hair) solid var(--rule-c); border-radius: var(--r-chip); }
.rule-chip[aria-pressed="true"], .rule-chip.is-on { border-color: #E9CFA8; }
.rule-cell { border: max(1px, calc(1 * var(--u))) solid var(--rule-c); border-radius: calc(8 * var(--u)); } /* timecard day cells */
.rule-dash { border-top: max(1px, calc(1.1 * var(--u))) dashed var(--dash); }
.rule-footer { border-top: var(--rule-hair) solid var(--rule-c); }
.rule-foot-base { border-top: var(--rule-hair) solid var(--rule-c); }
.rule-btn-quiet { border: var(--rule-hair) solid var(--rule-c); border-radius: var(--r-ctl); }
.rule-none { border: 0; }

/* ---------- 7. NAV — N6 folder tabs (chrome/nav.html; CA/BUY/Connect not in the header) ---------- */
.site-nav { position: sticky; top: 0; z-index: 40; background: var(--nav-ground); }
.nav-in { display: flex; align-items: flex-end; height: var(--nav-h); padding: 0 var(--gut-r) 0 var(--gut-l); }
.brand { display: flex; align-items: center; gap: calc(14 * var(--u)); align-self: center; margin-right: calc(42 * var(--u));
  text-decoration: none; color: var(--ink); flex: none; }
.brand-mark { height: max(36px, calc(42 * var(--u))); width: auto; }
.brand-word { font: 800 max(20px, calc(30 * var(--u)))/1 var(--f-display); letter-spacing: -0.005em; }
.tabs { display: flex; align-items: flex-end; gap: calc(2 * var(--u)); height: calc(60 * var(--u)); margin-bottom: calc(-1.1 * var(--u)); }
.tab { position: relative; display: flex; align-items: center; height: 100%; padding: calc(4 * var(--u)) calc(35 * var(--u)) 0;
  font: 400 var(--fs-ui)/1 var(--f-body); color: var(--ink); text-decoration: none; white-space: nowrap;
  background: var(--nav-ground); transition: transform 220ms var(--ease-press), background-color 220ms var(--ease-press); }
.tab:hover { transform: translateY(calc(-2 * var(--u))); background: #F9F5EE; }
.tab.is-active { font-weight: 600; background: var(--paper); transform: none; z-index: 1; }
.nav-social { margin-left: auto; align-self: center; display: flex; align-items: center; gap: calc(30 * var(--u)); font: 400 var(--fs-ui)/1 var(--f-body); white-space: nowrap; }
.soc { color: var(--ink); text-decoration: none; padding: 8px 2px; }
.soc[href]:hover { color: var(--action); text-decoration: underline; }
.soc.is-soon { color: var(--ink-2); cursor: default; }
@media (max-width: 1279.98px) {
  .nav-in { flex-wrap: wrap; align-items: center; height: auto; padding: 10px 20px 0; max-width: calc(var(--read-w) + 40px); margin: 0 auto; }
  .brand { margin-right: auto; gap: 10px; }
  .brand-mark { height: 36px; }
  .brand-word { font-size: 22px; }
  .nav-social { gap: 18px; font-size: 15px; }
  .tabs { order: 3; flex: 1 0 100%; height: 46px; margin-top: 8px; gap: 2px; overflow-x: auto; overflow-y: hidden;
    scrollbar-width: none; overscroll-behavior-x: contain; margin-bottom: -1px; }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { padding: 0 16px; font-size: 15px; flex: none; }
  .tab:hover { transform: none; }
}
@media (max-width: 400px) { .tab { padding: 0 12px; } .nav-social { gap: 14px; } }

/* ---------- 8. FOOTER — F3 receipt (chrome/footer.html; socials from launch.json) ---------- */
.site-foot { margin-top: var(--gap-section); background: var(--surface); }
.foot-in { padding: calc(29 * var(--u)) var(--gut-r) calc(26 * var(--u)) var(--gut-l); font: 400 var(--fs-small)/1 var(--f-mono); color: var(--ink); }
.foot-dash { height: 0; }
.foot-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: calc(80 * var(--u)); margin-top: calc(28 * var(--u)); }
.foot-col li { min-height: calc(29 * var(--u)); display: flex; align-items: center; }
.lead-row { display: inline-flex; gap: 1ch; align-items: baseline; text-decoration: none; color: var(--ink); }
.lead-row .dots::before { content: '........'; letter-spacing: 0; }
.lead-row .dots { font-style: normal; color: var(--ink-2); }
a.lead-row:hover span:first-child { color: var(--action); text-decoration: underline; }
.foot-soon { color: var(--ink-2); }
a.foot-soon { color: var(--ink-link); }
.foot-base { display: flex; align-items: center; justify-content: space-between; gap: calc(24 * var(--u)); flex-wrap: wrap;
  margin-top: calc(18 * var(--u)); padding-top: calc(14 * var(--u)); }
.foot-brand { display: inline-flex; align-items: center; gap: calc(10 * var(--u)); }
.foot-mark { height: max(28px, calc(30 * var(--u))); width: auto; }
.foot-ca { display: inline-flex; align-items: center; gap: calc(14 * var(--u)); flex-wrap: wrap; }
.foot-ca-label { font-family: var(--f-body); font-weight: 600; font-size: var(--fs-ui); }
.foot-ca-val { white-space: nowrap; }
.btn-mini { min-height: max(30px, calc(34 * var(--u))); padding: 0 calc(14 * var(--u)); border-radius: calc(8 * var(--u));
  background: var(--action); color: #fff; font: 600 var(--fs-small)/1 var(--f-body); }
.btn-mini:disabled { background: var(--disabled); color: var(--disabled-ink); }
.btn-buy { display: inline-flex; align-items: center; min-height: max(34px, calc(40 * var(--u))); padding: 0 calc(18 * var(--u));
  border-radius: var(--r-ctl); background: var(--action); color: #fff; font: 600 var(--fs-ui)/1 var(--f-body); white-space: nowrap; text-decoration: none; }
.btn-buy:hover:not(:disabled) { background: var(--action-dark); }
.btn-buy:disabled { background: var(--disabled); color: var(--disabled-ink); }
.btn-buy[data-launch-done] { background: var(--action); color: #fff; }
@media (max-width: 1279.98px) {
  .foot-in { max-width: calc(var(--read-w) + 40px); margin: 0 auto; padding: 24px 20px 28px; font-size: 13px; }
  .foot-grid { grid-template-columns: 1fr; margin-top: 18px; }
  .foot-col li { min-height: 30px; }
  .foot-base { flex-direction: column; align-items: flex-start; margin-top: 14px; padding-top: 14px; }
  .btn-mini { padding: 0 12px; } .btn-buy { padding: 0 14px; }
}

/* ---------- 9. MOTION (DESIGN §10: "press flat" — a jagged line pressed level; figures settle like stamped pay) ---------- */
[data-reveal], [data-reveal-group] > * { transition: opacity var(--t-row) var(--ease-press), transform var(--t-row) var(--ease-press); }
.pp-motion [data-reveal]:not(.is-in), .pp-motion [data-reveal-group]:not(.is-in) > * { opacity: 0; transform: translateY(8px); }
[data-reveal-group].is-in > * { transition-delay: calc(var(--i, 0) * 30ms); }
/* leader dots press out from the label (transform only) */
.pp-motion [data-reveal]:not(.is-in) .leader-dots, .pp-motion [data-reveal-group]:not(.is-in) .leader-dots { transform: scaleX(.2); }
.leader-dots { transition: transform var(--t-settle) var(--ease-settle); }
/* stamped figure: value lands with a short press (scale .96 → 1) when its count-up ends */
.pp-stamp { animation: pp-stamp 260ms var(--ease-settle) both; }
@keyframes pp-stamp { 0% { transform: scale(.96); opacity: .7; } 100% { transform: none; opacity: 1; } }
/* line draw-on for SVG paths with [data-draw] (stroke paint only, never layout) */
.pp-motion [data-draw]:not(.is-drawn) { stroke-dashoffset: var(--len, 2000); }
[data-draw] { stroke-dasharray: var(--len, 2000); transition: stroke-dashoffset 500ms var(--ease-press); }
[data-draw].is-drawn { stroke-dashoffset: 0; }
/* the pressed-flat gap fill fades after the line lands */
.pp-motion [data-gap-fill]:not(.is-in) { opacity: 0; }
[data-gap-fill] { transition: opacity 300ms var(--ease-press) 200ms; }
/* "Copied" confirmation without moving layout */
.pp-copied { position: relative; }
.pp-copied::after { content: 'Copied'; position: absolute; left: 50%; bottom: calc(100% + 6px); transform: translateX(-50%);
  padding: 4px 8px; border-radius: 6px; background: var(--ink); color: #fff; font: 600 12px/1 var(--f-body); pointer-events: none;
  animation: pp-toast 1200ms var(--ease-press) both; }
@keyframes pp-toast { 0% { opacity: 0; transform: translate(-50%, 4px); } 15%, 80% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; } }
/* art drift with scroll — art only, never content (LUAT 67) */
@supports ((animation-timeline: view()) and (animation-range: entry)) {
  @media (prefers-reduced-motion: no-preference) {
    .pp-drift { animation: pp-drift linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
    @keyframes pp-drift { from { transform: translateY(calc(12 * var(--u))); } to { transform: translateY(calc(-12 * var(--u))); } }
  }
}
/* route change: kit router v3 View Transition, tuned calm (DESIGN §10) */
html[data-rt-dir="back"] { --rt-nudge: -16px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; transition-delay: 0ms !important; }
  .pp-motion [data-reveal]:not(.is-in), .pp-motion [data-reveal-group]:not(.is-in) > * { opacity: 1; transform: none; }
}

/* ---------- 10. shared bits for routes ---------- */
.art { position: relative; pointer-events: none; }
.art img, .art video { width: 100%; height: auto; }
.table-scroll { overflow-x: auto; overscroll-behavior-x: contain; }
.is-hidden-cell { visibility: hidden; }
[data-open="false"] > .when-open { display: none; }
