/* WHITTLE — shell stylesheet (JOB shell, 30/11/2026).
   Single source of: tokens (DESIGN.md §0–§4), the page scale (§1, LUAT 50), the page frame + atmosphere (§3b, LUAT 53/70),
   every border (BORDER_TABLE → .rule-* classes, LUAT 56), nav N11 + footer F7 (mockup/v1/chrome, scaled ×1.148),
   motion character (DESIGN.md §10). Route fragments use these classes and declare NO border/outline of their own. */

/* ---------- 1. tokens ---------- */
:root {
  /* one root unit: 1 design px at the 1920 build width; 1280–2560 scale with the viewport (DESIGN §1) */
  --u: calc(100vw / 1920);

  --paper: #11161C;
  --ground: #15181C;
  --surface: #1E2329;
  --surface-2: #21272C;
  --surface-strong: #2A3037;
  --text: #F3EFE6;
  --secondary: #A4AAB3;
  --hairline: #3A414A;
  --frame: #434A52;
  --action: #DA9F24;
  --action-hi: #FBB712;
  --on-action: #15181C;
  --slice: #FA6E2F;
  --shadow: #0B0D10;
  --track: #2A3037;

  --f-display: "DM Sans", "Manrope", Arial, sans-serif;
  --f-body: "Manrope", Arial, sans-serif;
  --f-mono: "Roboto Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --f-fig: "Roboto", "Manrope", Arial, sans-serif;

  /* type scale @1920 (DESIGN §2) */
  --t-hero: calc(53 * var(--u));
  --t-route: calc(55 * var(--u));
  --t-section: calc(42 * var(--u));
  --t-panel: calc(28 * var(--u));
  --t-giant: calc(64 * var(--u));
  --t-lede: max(13px, calc(21 * var(--u)));
  --t-label: max(13px, calc(22 * var(--u)));
  --t-body: max(13px, calc(18 * var(--u)));
  --t-fig: max(13px, calc(25 * var(--u)));
  --t-mono: max(12px, calc(21 * var(--u)));
  --t-mono-lg: max(13px, calc(29 * var(--u)));
  --t-small: max(12px, calc(15 * var(--u)));
  --t-nav: max(12px, calc(15 * var(--u)));

  /* radii @1920 (DESIGN §4) */
  --r-panel: calc(14 * var(--u));
  --r-card: calc(12 * var(--u));
  --r-input: calc(10 * var(--u));
  --r-chip: calc(8 * var(--u));
  --r-btn: calc(10 * var(--u));

  /* page frame (USER_FIXES FRAME: 66 px left / 64 px right @1920) */
  --gutter-l: calc(66 * var(--u));
  --gutter-r: calc(64 * var(--u));
  --page-top: calc(56 * var(--u));
  --section-gap: calc(72 * var(--u));

  /* ---------- rule tokens (BORDER_TABLE.md, CSS px @1920; hairlines never below 1 px) ---------- */
  --rule-hair-w: max(1px, calc(1.3 * var(--u)));
  --rule-hair-c: var(--hairline);
  --rule-panel-w: max(2px, calc(2.3 * var(--u)));
  --rule-panel-c: var(--frame);
  --rule-panel-soft-c: #5D656B;     /* pay/receipt lower panels #565E64–#666E74 */
  --rule-panel-light-c: #858C91;    /* mcp lower panels #80878C–#91989D */
  --rule-thin-w: max(1px, calc(1.3 * var(--u)));   /* slices quote-flow / selected-drawer / client-states */
  --rule-input-w: max(1.5px, calc(2.2 * var(--u)));
  --rule-input-c: #464C52;
  --rule-row-w: max(1px, calc(1 * var(--u)));
  --rule-row-c: #444D56;
  --rule-row-strong-w: max(1.5px, calc(2.2 * var(--u)));
  --rule-row-strong-c: #3D4247;
  --rule-section-w: max(1px, calc(1.1 * var(--u)));
  --rule-section-c: #6B737B;
  --rule-ghost-w: max(1.5px, calc(2 * var(--u)));
  --rule-ghost-c: #363C45;
  --rule-ghost-strong-c: #5D656D;
  --rule-post-c: #E7E8E7;
  --rule-peek-c: #656062;
  --rule-sel-w: max(1.5px, calc(2.2 * var(--u)));
  --rule-sel-c: var(--action);
  --rule-tab-w: max(4px, calc(10 * var(--u)));     /* boundary-strip left tab */
  --rule-bar-w: max(3px, calc(6 * var(--u)));      /* response code-well slice bar */
  --rule-foot-w: max(1px, calc(1 * var(--u)));

  /* motion character (DESIGN §10) */
  --cut: cubic-bezier(.2, .7, .2, 1);
  --cut-snap: cubic-bezier(.3, 0, .1, 1);
  --m-swap: 160ms;
  --m-cut: 240ms;
  --m-count: 400ms;
  --m-draw: 600ms;
  --rt-dur: 220ms;
  --rt-nudge: 18px;

  --native-accent: var(--action);
  --native-scroll-thumb: #3A414A;
  --native-scroll-track: var(--paper);
  color-scheme: dark;
}

/* ---------- 2. base ---------- */
*, *::before, *::after { box-sizing: border-box; }
:where(button, input, select, textarea) { border: 0; font: inherit; color: inherit; }
:where(button) { background: none; padding: 0; cursor: pointer; }
:where(a) { color: inherit; }
html { background: var(--paper); -webkit-text-size-adjust: 100%; accent-color: var(--action); scrollbar-color: var(--native-scroll-thumb) var(--native-scroll-track); }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column; overflow-x: clip;
  color: var(--text); font-family: var(--f-body); font-weight: 500; font-size: var(--t-body); line-height: 1.45;
  background-color: var(--paper);
  /* §3b page atmosphere: band behind screen 1 · amber pool behind the hero/first panels · seam glow · pre-footer glow */
  background-image:
    radial-gradient(calc(1300 * var(--u)) calc(700 * var(--u)) at calc(1150 * var(--u)) calc(300 * var(--u)), rgba(218, 159, 36, .2) 0%, rgba(218, 159, 36, .09) 38%, rgba(218, 159, 36, 0) 70%),
    radial-gradient(calc(1100 * var(--u)) calc(300 * var(--u)) at 50% calc(1050 * var(--u)), rgba(218, 159, 36, .1) 0%, rgba(218, 159, 36, 0) 70%),
    radial-gradient(calc(1400 * var(--u)) calc(260 * var(--u)) at 50% 100%, rgba(218, 159, 36, .08) 0%, rgba(218, 159, 36, 0) 70%),
    linear-gradient(180deg, rgba(25, 31, 37, 0) calc(200 * var(--u)), #191F25 calc(320 * var(--u)), #1D2328 calc(640 * var(--u)), #191F25 calc(940 * var(--u)), rgba(25, 31, 37, 0) calc(1080 * var(--u)));
  background-repeat: no-repeat;
}
body::after { /* atm-grain: monochrome noise ~2 %, decoration only */
  content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none; opacity: .035; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
::selection { background: rgba(218, 159, 36, .4); color: var(--text); }
:focus-visible { outline: max(2px, calc(2 * var(--u))) solid var(--action); outline-offset: 2px; }
img, svg, video { max-width: 100%; }
h1, h2, h3, h4, p { margin: 0; }
.mono { font-family: var(--f-mono); font-weight: 500; }
.fig { font-family: var(--f-fig); font-weight: 500; letter-spacing: -.009em; }

/* ---------- 3. page frame (one container for every route) ---------- */
.page {
  flex: 1 0 auto; position: relative; width: 100%;
  padding: var(--page-top) var(--gutter-r) var(--section-gap) var(--gutter-l);
  display: flex; flex-direction: column; gap: var(--section-gap);
  outline: none;
}
.page > * { min-width: 0; }

/* shared type roles */
.t-hero { font-family: var(--f-display); font-weight: 700; font-size: var(--t-hero); line-height: 1.05; letter-spacing: -.004em; }
.t-route { font-family: var(--f-display); font-weight: 700; font-size: var(--t-route); line-height: 1.05; }
.t-section { font-family: var(--f-display); font-weight: 700; font-size: var(--t-section); line-height: 1.1; }
.t-panel { font-family: var(--f-display); font-weight: 700; font-size: var(--t-panel); line-height: 1.15; }
.t-lede { font-size: var(--t-lede); line-height: 1.45; color: var(--secondary); text-wrap: pretty; }
.t-label { font-size: var(--t-label); line-height: 1.25; }
.t-small, .as-of { font-size: var(--t-small); color: var(--secondary); }
.t-upper { text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.c-secondary { color: var(--secondary); }
.c-action { color: var(--action); }
.c-slice { color: var(--slice); }

/* shared surfaces */
.panel { background: var(--surface); border-radius: var(--r-panel); padding: calc(24 * var(--u)) calc(26 * var(--u)); }
.panel-2 { background: var(--surface-2); }
.shadow-soft { box-shadow: 0 calc(18 * var(--u)) calc(40 * var(--u)) rgba(11, 13, 16, .55); }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: calc(8 * var(--u));
  min-height: calc(46 * var(--u)); padding: 0 calc(22 * var(--u)); border-radius: var(--r-btn);
  font-family: var(--f-body); font-weight: 700; font-size: var(--t-nav); letter-spacing: .02em; line-height: 1.1; white-space: nowrap;
  text-decoration: none; transition: transform var(--m-swap) var(--cut), box-shadow var(--m-swap) var(--cut), background-color var(--m-swap) var(--cut);
}
.btn-primary, .btn-action { background: var(--action); color: var(--on-action); box-shadow: calc(3 * var(--u)) calc(3 * var(--u)) 0 var(--shadow); }
.btn-ghost { background: #1E2227; color: var(--text); }
.btn:not(:disabled):hover { transform: translate(calc(-1 * var(--u)), calc(-1 * var(--u))); }
.btn-primary:not(:disabled):hover, .btn-action:not(:disabled):hover { box-shadow: calc(4 * var(--u)) calc(4 * var(--u)) 0 var(--shadow); }
.btn:not(:disabled):active { transform: translate(calc(2 * var(--u)), calc(2 * var(--u))); box-shadow: 0 0 0 var(--shadow); }
.btn:disabled, .btn[aria-disabled="true"] { cursor: not-allowed; }
.btn-disabled, .btn-primary:disabled { background: var(--surface-strong); color: var(--secondary); box-shadow: none; }

/* bars: track + amber fill + orange slice tip (DESIGN §5) */
.bar { position: relative; height: calc(14 * var(--u)); min-height: 6px; border-radius: 999px; background: var(--track); overflow: hidden; }
.bar-fill { position: absolute; inset: 0 auto 0 0; width: var(--w, 0%); background: var(--action); border-radius: inherit; transform-origin: left center; }
.bar-tip { position: absolute; top: 0; bottom: 0; left: calc(var(--w, 0%) - var(--tip, 2%)); width: var(--tip, 2%); background: var(--slice); }

/* data row: label left, mono value right */
.drow { display: flex; justify-content: space-between; align-items: baseline; gap: calc(16 * var(--u)); padding: calc(10 * var(--u)) 0; }
.drow > :last-child { font-family: var(--f-mono); font-weight: 500; text-align: right; overflow-wrap: anywhere; }

/* pills / chips */
.pill { display: inline-flex; align-items: center; padding: calc(4 * var(--u)) calc(12 * var(--u)); border-radius: 999px; font-size: var(--t-small); font-weight: 700; line-height: 1.2; }
.pill-open { background: rgba(218, 159, 36, .16); color: var(--action); }
.pill-shut { background: var(--surface-strong); color: var(--secondary); }

/* segmented / presets: equal cells in one framed group, selected = action fill */
.seg { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; border-radius: var(--r-input); overflow: hidden; }
.seg > button { min-height: calc(46 * var(--u)); padding: 0 calc(16 * var(--u)); font-weight: 700; font-size: var(--t-small); color: var(--text); background: transparent; transition: background-color var(--m-swap) var(--cut), color var(--m-swap) var(--cut); }
.seg > button[aria-pressed="true"], .seg > button.is-on { background: var(--action); color: var(--on-action); }

/* ---------- 4. BORDERS — the only border declarations of the site (BORDER_TABLE.md → DESIGN §4) ---------- */
/* generic frames */
.rule-panel        { border: var(--rule-panel-w) solid var(--rule-panel-c); border-radius: var(--r-panel); }
.rule-panel-soft   { border: var(--rule-panel-w) solid var(--rule-panel-soft-c); border-radius: var(--r-panel); }
.rule-panel-light  { border: var(--rule-panel-w) solid var(--rule-panel-light-c); border-radius: var(--r-panel); }
.rule-panel-thin   { border: var(--rule-thin-w) solid #5C666D; border-radius: var(--r-panel); }
.rule-card         { border: var(--rule-panel-w) solid #3F4952; border-radius: var(--r-card); }
.rule-input        { border: var(--rule-input-w) solid var(--rule-input-c); border-radius: var(--r-input); }
.rule-input:focus-within, .rule-input.is-focus { border-color: var(--action); }
.rule-input.is-invalid { border-color: var(--slice); }
.rule-select       { border: var(--rule-input-w) solid var(--rule-input-c); border-radius: var(--r-input); }
.rule-split        { border-left: var(--rule-input-w) solid var(--rule-input-c); }   /* unit cell inside an input frame (HYPE) */
.rule-chip         { border: var(--rule-ghost-w) solid #656C72; border-radius: var(--r-card); }
.rule-seg          { border: var(--rule-ghost-w) solid #5D646B; border-radius: var(--r-input); }
.rule-seg > * + *  { border-left: var(--rule-ghost-w) solid #5D646B; }
.rule-preset       { border: var(--rule-ghost-w) solid #5D646B; border-radius: var(--r-input); }
.rule-preset.is-on, .rule-preset[aria-pressed="true"], .rule-selected { border: var(--rule-sel-w) solid var(--rule-sel-c); border-radius: var(--r-input); }
.rule-btn-ghost    { border: var(--rule-ghost-w) solid var(--rule-ghost-c); border-radius: var(--r-btn); }
.rule-btn-ghost-strong { border: var(--rule-ghost-w) solid var(--rule-ghost-strong-c); border-radius: var(--r-btn); }
.rule-btn-post     { border: var(--rule-ghost-w) solid var(--rule-post-c); border-radius: var(--r-btn); }
.rule-peek         { border: var(--rule-input-w) solid var(--rule-peek-c); border-radius: var(--r-panel); }
.rule-code         { border: var(--rule-panel-w) solid #4E545B; border-radius: var(--r-input); }
.rule-code-response { border: var(--rule-panel-w) solid #464C53; border-left: var(--rule-bar-w) solid var(--slice); border-radius: var(--r-input); }
.rule-strip-tab    { border: var(--rule-panel-w) solid #83888D; border-left: var(--rule-tab-w) solid var(--action); border-radius: var(--r-panel); }
.rule-wallet-strip { border: var(--rule-panel-w) solid var(--hairline); border-top: 0; border-radius: 0 0 var(--r-panel) var(--r-panel); }
/* line rules */
.rule-row          { border-bottom: var(--rule-row-w) solid var(--rule-row-c); }
.rule-row-strong   { border-bottom: var(--rule-row-strong-w) solid var(--rule-row-strong-c); }
.rule-rows > * + * { border-top: var(--rule-row-w) solid var(--rule-row-c); }          /* rows inside a framed panel: rule only BETWEEN rows */
.rule-rows-strong > * + * { border-top: var(--rule-row-strong-w) solid var(--rule-row-strong-c); }
.rule-section      { border-bottom: var(--rule-section-w) solid var(--rule-section-c); }
.rule-top          { border-top: var(--rule-row-w) solid var(--rule-row-c); }
.rule-vsep         { border-left: var(--rule-row-w) solid var(--rule-row-c); }
/* tables: outer frame + rules between rows; cells never draw the shared edge twice */
.rule-table        { border: var(--rule-panel-w) solid #464D53; border-radius: var(--r-panel); overflow: hidden; }
.rule-table > * + *, .rule-table tbody tr + tr, .rule-table thead + tbody tr:first-child { border-top: var(--rule-row-strong-w) solid #3B4045; }
.rule-table-light  { border: var(--rule-panel-w) solid #91989D; border-radius: var(--r-panel); overflow: hidden; }
.rule-table-light > * + *, .rule-table-light tbody tr + tr, .rule-table-light thead + tbody tr:first-child { border-top: var(--rule-row-w) solid #5A6168; }
table { border-collapse: collapse; }
/* chrome */
.rule-nav          { border-bottom: var(--rule-hair-w) solid var(--rule-hair-c); }
.rule-foot         { border-top: var(--rule-foot-w) solid var(--hairline); }

/* ---------- 5. nav N11 (mockup/v1/chrome/nav.html, mockup px ×1.148) ---------- */
.site-nav {
  position: relative; z-index: 20;
  padding: calc(64 * var(--u)) calc(56 * var(--u)) 0;
  background: linear-gradient(180deg, #111820 0%, rgba(21, 24, 28, .0) 100%);
}
.nav-top { display: flex; align-items: center; justify-content: space-between; height: calc(56 * var(--u)); }
.brand { display: inline-flex; align-items: center; gap: calc(14 * var(--u)); color: var(--text); text-decoration: none; margin-left: calc(15 * var(--u)); }
.brand-mark { display: block; height: max(36px, calc(44 * var(--u))); width: auto; }
.brand-word { font-family: var(--f-display); font-weight: 700; font-size: max(22px, calc(31 * var(--u))); letter-spacing: .07em; line-height: 1; }
.nav-actions { display: flex; align-items: center; gap: calc(26 * var(--u)); }
.nav-social { display: inline-flex; align-items: center; gap: calc(7 * var(--u)); color: var(--text); text-decoration: none; font-weight: 700; font-size: var(--t-nav); letter-spacing: .02em; }
.nav-social.soon, .foot-social.soon { cursor: default; }
.nav-social:not(.soon):hover, .foot-social:not(.soon):hover { color: var(--action); }
.tg-glyph { width: calc(9 * var(--u)); min-width: 7px; height: auto; }
.nav-divider { width: 1px; height: calc(24 * var(--u)); background: #343A42; }
.site-nav .btn { min-height: calc(42 * var(--u)); padding: 0 calc(21 * var(--u)); }
.btn-buy { position: relative; background: var(--action); color: var(--on-action); box-shadow: calc(3 * var(--u)) calc(3 * var(--u)) 0 var(--shadow); }
.btn-buy .tba { display: inline-block; font-size: .78em; font-weight: 700; letter-spacing: .06em; padding: calc(2 * var(--u)) calc(6 * var(--u)); border-radius: calc(5 * var(--u)); background: rgba(21, 24, 28, .18); }
.btn-buy:disabled { background: rgba(218, 159, 36, .62); color: var(--on-action); box-shadow: none; }
.btn-buy[data-launch-done] { background: var(--action); color: var(--on-action); box-shadow: calc(3 * var(--u)) calc(3 * var(--u)) 0 var(--shadow); cursor: pointer; }
.btn-buy[data-launch-done] .tba { display: none; }
.btn-ghost.is-connected [data-wallet-label] { font-family: var(--f-mono); }
.nav-menu-btn { display: none; }
.nav-ruler { position: relative; display: flex; align-items: flex-end; gap: calc(48 * var(--u)); height: calc(84 * var(--u)); }
.nav-ruler a { position: relative; padding: 0 0 calc(17 * var(--u)); color: var(--secondary); text-decoration: none; font-weight: 700; font-size: var(--t-nav); letter-spacing: .01em; line-height: 1.2; white-space: nowrap; transition: color var(--m-swap) var(--cut); }
.nav-ruler a:hover, .nav-ruler a.is-active { color: var(--text); }
.nav-ink { /* the active-route underline; app.js slides it between tabs */
  position: absolute; left: 0; bottom: calc(-1 * var(--rule-hair-w)); height: max(3px, calc(4 * var(--u))); width: var(--ink-w, 0); border-radius: 3px;
  background: var(--action); transform: translateX(var(--ink-x, 0)); transition: transform var(--m-cut) var(--cut), width var(--m-cut) var(--cut);
}

/* ---------- 6. footer F7 ---------- */
.site-foot {
  display: flex; align-items: center; justify-content: space-between; gap: calc(32 * var(--u));
  min-height: calc(86 * var(--u)); padding: calc(18 * var(--u)) calc(56 * var(--u)); background: var(--ground);
  font-size: max(12px, calc(13 * var(--u))); line-height: 1.3;
}
.foot-title { display: flex; align-items: center; gap: calc(12 * var(--u)); font-weight: 700; }
.foot-title b { font-family: var(--f-display); letter-spacing: .04em; }
.foot-mark { display: block; height: max(24px, calc(28 * var(--u))); width: auto; }
.foot-ca { display: flex; align-items: center; gap: calc(14 * var(--u)); color: var(--secondary); white-space: nowrap; }
.foot-ca-cell { color: var(--text); font-weight: 700; }
.foot-right { display: flex; align-items: center; gap: calc(18 * var(--u)); text-align: right; }
.foot-sources { color: var(--secondary); font-size: max(12px, calc(12 * var(--u))); font-weight: 500; }
.foot-social { display: inline-flex; align-items: center; gap: calc(6 * var(--u)); color: var(--text); text-decoration: none; font-weight: 700; white-space: nowrap; }

/* ---------- 7. motion character (DESIGN §10): "the cut" ---------- */
/* reveal = a panel is set down on the bench: rises 10 design px with its hard shadow closing; never hides content past 2 s */
[data-reveal] { transition: opacity var(--m-cut) var(--cut), transform var(--m-cut) var(--cut); transition-delay: calc(var(--i, 0) * 40ms); }
.js [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(calc(10 * var(--u))); }
/* bars grow from the left, then the orange slice tip is cut in last */
.js [data-grow] .bar-fill { transform: scaleX(0); transition: transform var(--m-draw) var(--cut); }
.js [data-grow] .bar-tip { opacity: 0; transform: scaleY(.2); transition: opacity var(--m-cut) var(--cut) var(--m-draw), transform var(--m-cut) var(--cut-snap) var(--m-draw); }
.js [data-grow].is-in .bar-fill { transform: none; }
.js [data-grow].is-in .bar-tip { opacity: 1; transform: none; }
/* live tick = a 1 px amber shaving sweeps under a value the network just replaced */
.is-ticked { position: relative; }
.is-ticked::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: var(--action); transform-origin: left; animation: shave var(--m-draw) var(--cut) both; }
@keyframes shave { 0% { transform: scaleX(0); opacity: 1; } 70% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
/* label swap (Copied / Saved / Opened) */
.is-swapped { animation: swap var(--m-swap) var(--cut); }
@keyframes swap { from { transform: translateY(calc(4 * var(--u))); opacity: .2; } to { transform: none; opacity: 1; } }
/* slice cut: an element marked data-cut splits off to the right by a hair (used by art overlays / receipts) */
@keyframes cut-off { 0% { transform: translateX(0); } 60% { transform: translateX(calc(10 * var(--u))); } 100% { transform: translateX(calc(6 * var(--u))); } }
.is-cut { animation: cut-off var(--m-draw) var(--cut-snap) both; }
/* route change: kit router v3 view transition, tuned here */
::view-transition-old(root), ::view-transition-new(root) { animation-duration: var(--rt-dur); }
/* scroll-driven: art may drift ≤12 px, never content */
@supports ((animation-timeline: view()) and (animation-range: entry)) {
  @media (prefers-reduced-motion: no-preference) {
    .art-drift { animation: art-drift linear both; animation-timeline: view(); animation-range: cover 0% cover 100%; }
    @keyframes art-drift { from { translate: 0 calc(12 * var(--u)); } to { translate: 0 calc(-12 * var(--u)); } }
  }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; transition-delay: 0ms !important; }
  .js [data-reveal]:not(.is-in) { opacity: 1; transform: none; }
  .js [data-grow] .bar-fill, .js [data-grow] .bar-tip { transform: none; opacity: 1; }
}

/* ---------- 8. wide screens: keep proportions, nothing capped (LUAT 50) ---------- */

/* ---------- 9. phone layout 360–1279 (LUAT 71): one layout, content column capped + centred, ground full-bleed ---------- */
@media (max-width: 1279.98px) {
  :root {
    --u: .8px;
    --gutter-l: max(16px, calc((100vw - 720px) / 2));
    --gutter-r: max(16px, calc((100vw - 720px) / 2));
    --page-top: 28px;
    --section-gap: 48px;
    --t-hero: clamp(30px, 8.4vw, 44px);
    --t-route: clamp(30px, 8.4vw, 44px);
    --t-section: clamp(24px, 6.4vw, 34px);
    --t-panel: clamp(19px, 5vw, 24px);
    --t-giant: clamp(40px, 12vw, 56px);
    --t-lede: 16px;
    --t-label: 15px;
    --t-body: 15px;
    --t-fig: 17px;
    --t-mono: 14px;
    --t-mono-lg: 18px;
    --t-small: 13px;
    --t-nav: 14px;
  }
  body { background-image:
    radial-gradient(120vw 520px at 70% 180px, rgba(218, 159, 36, .18) 0%, rgba(218, 159, 36, 0) 70%),
    radial-gradient(140vw 260px at 50% 100%, rgba(218, 159, 36, .07) 0%, rgba(218, 159, 36, 0) 70%); }
  .site-nav { padding: 14px var(--gutter-r) 0 var(--gutter-l); background: var(--paper); }
  .nav-top { height: 52px; position: relative; }
  .brand { margin-left: 0; gap: 10px; }
  .brand-mark { height: 36px; }
  .brand-word { font-size: 22px; }
  .nav-menu-btn {
    display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 10px;
    background: #1E2227; color: var(--text); font-weight: 700; font-size: 14px;
  }
  .nav-menu-bars, .nav-menu-bars::before, .nav-menu-bars::after { display: block; width: 16px; height: 2px; background: currentColor; border-radius: 2px; position: relative; }
  .nav-menu-bars::before, .nav-menu-bars::after { content: ""; position: absolute; left: 0; }
  .nav-menu-bars::before { top: -5px; } .nav-menu-bars::after { top: 5px; }
  /* drawer: X · Telegram · Connect wallet · Buy on Montra */
  .nav-actions {
    position: absolute; top: calc(100% + 8px); right: 0; left: auto; width: min(320px, calc(100vw - 32px)); z-index: 30;
    flex-direction: column; align-items: stretch; gap: 10px; padding: 14px; border-radius: 14px;
    background: var(--surface); box-shadow: 0 18px 40px rgba(11, 13, 16, .6);
    visibility: hidden; opacity: 0; transform: translateY(-6px); transition: opacity 160ms var(--cut), transform 160ms var(--cut), visibility 0s linear 160ms;
  }
  .site-nav.is-open .nav-actions { visibility: visible; opacity: 1; transform: none; transition: opacity 160ms var(--cut), transform 160ms var(--cut); }
  .nav-actions .nav-divider { width: 100%; height: 1px; }
  .nav-social { min-height: 40px; padding: 0 6px; font-size: 15px; }
  .site-nav .btn { min-height: 44px; font-size: 15px; padding: 0 16px; }
  .tg-glyph { width: 9px; }
  /* row 2 scrolls sideways (never hidden behind Menu) */
  .nav-ruler { height: 48px; gap: 26px; overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
  .nav-ruler::-webkit-scrollbar { display: none; }
  .nav-ruler a { padding-bottom: 12px; font-size: 14px; }
  .nav-ink { bottom: 0; height: 3px; }
  .page { padding: var(--page-top) var(--gutter-r) var(--section-gap) var(--gutter-l); }
  .site-foot { flex-direction: column; align-items: flex-start; gap: 12px; padding: 22px var(--gutter-r) 26px var(--gutter-l); font-size: 13px; }
  .foot-title { align-items: flex-start; }
  .foot-ca { flex-wrap: wrap; white-space: normal; gap: 6px 12px; }
  .foot-right { flex-wrap: wrap; text-align: left; gap: 8px 16px; }
  .foot-sources { flex-basis: 100%; font-size: 12px; }
  .panel { padding: 18px 16px; }
  .btn { min-height: 44px; padding: 0 16px; }
  .seg > button { min-height: 40px; }
  .drow { padding: 9px 0; }
}
