/* fonts: Geist and Geist Mono (Vercel, SIL Open Font License; web/fonts/LICENSE-Geist.txt), self-hosted, no CDN */
@font-face { font-family:"Geist"; src:url("/fonts/Geist-Variable.woff2") format("woff2"); font-weight:100 900; font-style:normal; font-display:swap; }
@font-face { font-family:"Geist Mono"; src:url("/fonts/GeistMono-Variable.woff2") format("woff2"); font-weight:100 900; font-style:normal; font-display:swap; }
/* SUB-01 · shared design tokens and page chrome (2026-11: the "decoded" redesign).
   Black ground, bold white grotesk headlines, monospace data labels, one red for anything LIVE and one teal for
   anything PROJECTED (estimated by the model, not read from it). Pages load this before their own styles and use
   the .ui-* classes; nothing here styles bare tags, so the older pages keep their own layouts. */
:root {
  --ui-bg: #000;            --ui-bg2: #181818;         --ui-panel: #181818;       --ui-panel2: #1F1F1F;
  --ui-fg: #fff;            --ui-fg2: #c9c9d1;         --ui-dim: #9494a1;         --ui-faint: #8a8a98;
  --ui-line: rgba(255,255,255,.1);                     --ui-line2: rgba(255,255,255,.18);
  --ui-live: #ff2d55;       --ui-live2: #ff6b8a;       --ui-proj: #2ee6c5;        --ui-warn: #ffb020;
  --ui-attn: #ffffff;       --ui-arousal: #5aa9ff;     --ui-load: #ffd166;        --ui-neural: #2ee6c5;
  --ui-sans: "Geist", "Helvetica Neue", Helvetica, Inter, "Segoe UI", Arial, system-ui, sans-serif;
  --ui-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ui-r: 6px;              --ui-r2: 12px;             --ui-gap: 12px;            --ui-pad: 16px;
  --ui-ease: cubic-bezier(.22,1,.36,1);
}
.ui-sans { font-family: var(--ui-sans); }
.ui-mono { font-family: var(--ui-mono); }

/* header: wordmark · nav · state */
.ui-hdr { display:flex; align-items:center; gap:18px; padding:10px var(--ui-pad); color:var(--ui-fg);
  font-family: var(--ui-mono); font-size:12px; letter-spacing:.02em; }
.ui-wordmark { font-family: var(--ui-sans); font-weight:700; font-size:18px; letter-spacing:-.03em; line-height:1;
  color:var(--ui-fg); text-decoration:none; margin:0; }
.ui-wordmark small { display:block; font-family:var(--ui-mono); font-weight:400; font-size:12px; letter-spacing:.14em;
  text-transform:uppercase; color:var(--ui-dim); margin-top:3px; }
.ui-nav { display:flex; gap:2px; }
.ui-nav a { color:var(--ui-dim); text-decoration:none; padding:5px 9px; border-radius:8px; text-transform:lowercase;
  transition: color .2s var(--ui-ease), background .2s var(--ui-ease); }
.ui-nav a:hover { color:var(--ui-fg); background:rgba(255,255,255,.06); }
.ui-nav a.on { color:var(--ui-fg); background:rgba(255,255,255,.1); }
.ui-nav a.ext::after { content:" ↗"; color:var(--ui-faint); }
.ui-spacer { flex:1; }
.ui-counter { color:var(--ui-dim); font-variant-numeric: tabular-nums; }

/* small uppercase label, as in the reference's panel captions */
.ui-label { font-family:var(--ui-mono); font-size:12px; letter-spacing:.16em; text-transform:uppercase; color:var(--ui-dim); }
.ui-label b { color:var(--ui-fg); font-weight:600; }

/* chips */
.ui-chip { display:inline-flex; align-items:center; gap:6px; padding:3px 8px; border-radius:8px; font-family:var(--ui-mono);
  font-size:12px; letter-spacing:.12em; text-transform:uppercase; border:1px solid var(--ui-line2); color:var(--ui-fg2); }
.ui-chip.live { border-color:transparent; background:#d1002c; color:#fff; }   /* white on this red: 4.6:1 (the trace red stays --ui-live) */
.ui-chip.proj { border-color:var(--ui-proj); color:var(--ui-proj); }
.ui-chip.ai   { border-color:var(--ui-line2); color:var(--ui-dim); }
.ui-dot { width:7px; height:7px; border-radius:50%; background:currentColor; animation: ui-pulse 1.6s ease-in-out infinite; }
@keyframes ui-pulse { 0%,100%{ opacity:1; transform:scale(1);} 50%{ opacity:.45; transform:scale(.78);} }

/* panels */
.ui-panel { background:var(--ui-panel); border:1px solid var(--ui-line); border-radius:var(--ui-r2); overflow:hidden; }
.ui-panel > .ui-head { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:10px 14px;
  border-bottom:1px solid var(--ui-line); }

/* big numbers (the "47", "6", "10 ↑+34" of the reference) */
.ui-big { font-family:var(--ui-sans); font-weight:700; font-size:clamp(40px, 6vw, 72px); letter-spacing:-.05em;
  line-height:.9; color:var(--ui-fg); font-variant-numeric: tabular-nums; }
.ui-delta { font-family:var(--ui-mono); font-size:12px; }
.ui-delta.up { color:var(--ui-proj); } .ui-delta.down { color:var(--ui-live2); }

/* buttons and inputs */
.ui-btn { font:inherit; font-family:var(--ui-mono); font-size:12px; letter-spacing:.08em; text-transform:lowercase;
  color:var(--ui-fg2); background:transparent; border:1px solid var(--ui-line2); border-radius:8px; padding:5px 11px; cursor:pointer;
  transition: background .3s var(--ui-ease), color .3s var(--ui-ease), border-color .3s var(--ui-ease); }
.ui-btn:hover { background:rgba(255,255,255,.08); color:var(--ui-fg); }
.ui-btn.on { background:var(--ui-fg); color:#000; border-color:var(--ui-fg); }
.ui-btn.live { border-color:var(--ui-live); color:var(--ui-live2); }
.ui-input { font:inherit; font-family:var(--ui-mono); font-size:12px; color:var(--ui-fg); background:var(--ui-panel2);
  border:1px solid var(--ui-line2); border-radius:8px; padding:8px 14px; outline:none; }
.ui-input:focus { border-color:var(--ui-fg2); }
.ui-input:focus-visible { outline:2px solid #fff; outline-offset:1px; box-shadow:0 0 0 1px #000; }

/* the honesty line: always visible, never covered */
.ui-honest { font-family:var(--ui-mono); font-size:12px; line-height:1.5; color:var(--ui-dim); }
.ui-honest a { color:var(--ui-fg2); }

/* motion: a page may add .ui-in to things that enter */
.ui-in { animation: ui-in .6s var(--ui-ease) both; }
@keyframes ui-in { from { opacity:0; transform:translateY(8px);} to { opacity:1; transform:none;} }
@media (prefers-reduced-motion: reduce) {
  .ui-dot, .ui-in { animation:none !important; }
  * { transition-duration:.01ms !important; }
}

/* ============================================================================================================
   v2 · "one deck" (2026-11-02, docs/design/decoded/SYSTEM.md). Every page is one slide of the same deck: the same
   header (lockup · nav · state), the same pulse strip at the bottom, the same motion. Everything above stays and
   keeps working; v2 only adds tokens and classes. */
:root { --ui-blue:#3f7bff; --ui-blue2:#8fb3ff; --ui-r3:16px; --ui-pulse-h:28px; }

/* header v2: the two-line lockup, like the title slide's wordmark */
.ui-lockup { display:inline-flex; flex-direction:column; gap:3px; color:var(--ui-fg); text-decoration:none; line-height:1;
  flex:none; border-radius:4px; }
.ui-lockup b { font-family:var(--ui-sans); font-weight:700; font-size:16px; letter-spacing:-.03em; }
.ui-lockup small { font-family:var(--ui-mono); font-weight:400; font-size:12px; letter-spacing:.16em; text-transform:uppercase;
  color:var(--ui-dim); }
.ui-state { display:flex; align-items:center; gap:12px; flex:none; white-space:nowrap; }
.ui-clock { font-family:var(--ui-mono); font-size:12px; letter-spacing:.06em; color:var(--ui-fg2); font-variant-numeric:tabular-nums; }
.ui-state .ui-counter { font-family:var(--ui-mono); font-size:12px; letter-spacing:.08em; min-width:5ch; text-align:right; }
.ui-chip.live.off { background:transparent; border-color:var(--ui-line2); color:var(--ui-dim); }   /* the socket is down */
.ui-chip.live.off .ui-dot { animation:none; }
@media (max-width: 720px) {                    /* phones: lockup + state on one line, the six links scroll under them */
  .ui-hdr:has(> .ui-lockup) { flex-wrap:wrap; row-gap:8px; column-gap:12px; padding:10px var(--ui-pad) 8px; }
  .ui-hdr:has(> .ui-lockup) > .ui-nav { order:3; flex:1 0 100%; overflow-x:auto; scrollbar-width:none; margin:0 -9px; }
  .ui-hdr:has(> .ui-lockup) > .ui-nav::-webkit-scrollbar { display:none; }
  .ui-hdr:has(> .ui-lockup) > .ui-nav a { flex:none; }
  .ui-state { gap:8px; }
  .ui-state .ui-clock, .ui-state .ui-counter { font-size:12px; }
}
@media (max-width: 420px) {                    /* small phones: lockup and state still share the first line */
  .ui-hdr:has(> .ui-lockup) { padding-left:12px; padding-right:12px; column-gap:10px; }
  .ui-lockup small { letter-spacing:.12em; }
  .ui-state .ui-chip { letter-spacing:.04em; padding:3px 7px; gap:5px; }
  .ui-state .ui-counter { min-width:0; }
}

/* captions: the 11 px mono tracked uppercase line (alias of .ui-label) */
.ui-caption { font-family:var(--ui-mono); font-size:12px; letter-spacing:.16em; text-transform:uppercase; color:var(--ui-dim); }
.ui-caption b { color:var(--ui-fg); font-weight:600; }

/* segmented control: one bordered pill, buttons inside, the chosen one filled white */
.ui-seg { display:inline-flex; align-items:center; gap:2px; padding:2px; border:1px solid var(--ui-line2); border-radius:8px; }
.ui-seg > button { font:inherit; font-family:var(--ui-mono); font-size:12px; letter-spacing:.08em; text-transform:lowercase;
  color:var(--ui-dim); background:transparent; border:0; border-radius:8px; padding:4px 11px; cursor:pointer;
  transition: background .3s var(--ui-ease), color .3s var(--ui-ease); }
.ui-seg > button:hover { color:var(--ui-fg); background:rgba(255,255,255,.08); }
.ui-seg > button.on, .ui-seg > button[aria-pressed="true"] { background:var(--ui-fg); color:#000; }

/* the primary button: white fill, black text (.ui-btn stays the hairline pill) */
.ui-btn.primary { background:var(--ui-fg); color:#000; border-color:var(--ui-fg); font-weight:600; }
.ui-btn.primary:hover { background:var(--ui-fg2); border-color:var(--ui-fg2); color:#000; }
.ui-btn:disabled, .ui-btn[aria-disabled="true"] { opacity:.4; cursor:default; }

/* a big-number block: caption · number (+ a word beside it) · caption */
.ui-num { display:grid; grid-template-columns:auto 1fr; align-items:baseline; column-gap:8px; row-gap:6px; min-width:0; }
.ui-num > :not(.ui-big):not(.ui-word) { grid-column:1 / -1; }
.ui-num > .ui-big { grid-column:1; }
.ui-word { grid-column:2; font-family:var(--ui-sans); font-weight:500; font-size:14px; letter-spacing:-.01em; color:var(--ui-fg2);
  line-height:1.1; }
.ui-word.live { color:var(--ui-live2); } .ui-word.proj { color:var(--ui-proj); } .ui-word.blue { color:var(--ui-blue2); }

/* rails: vertical stacks of .ui-num at the edges of a full-bleed page, hairlines between */
.ui-rail { display:flex; flex-direction:column; gap:0; width:200px; pointer-events:auto; }
.ui-rail > .ui-num { padding:14px 0; }
.ui-rail > .ui-num + .ui-num { border-top:1px solid var(--ui-line); }
.ui-rail .ui-big { font-size:clamp(32px, 3.4vw, 48px); }
.ui-rail.left, .ui-rail.right { position:absolute; top:50%; transform:translateY(-50%); }
.ui-rail.left { left:var(--ui-pad); } .ui-rail.right { right:var(--ui-pad); }
@media (max-width: 720px) {                    /* phones: a rail is a horizontal scroll row in the page's flow */
  .ui-rail, .ui-rail.left, .ui-rail.right { position:static; transform:none; flex-direction:row; width:auto; max-width:100%;
    overflow-x:auto; scrollbar-width:none; box-sizing:border-box; }
  .ui-rail::-webkit-scrollbar { display:none; }
  .ui-rail > .ui-num { flex:none; min-width:132px; padding:10px 14px; }
  .ui-rail > .ui-num:first-child { padding-left:0; }
  .ui-rail > .ui-num + .ui-num { border-top:0; border-left:1px solid var(--ui-line); }
}

/* the HUD: a full-bleed page's overlay layer; clicks pass through to the scene, its children take them again */
.ui-hud { position:fixed; inset:0; z-index:10; pointer-events:none; }
.ui-hud > * { pointer-events:auto; }
body[data-pulse] .ui-hud { bottom:var(--ui-pulse-h); }

/* the contact sheet: tiles edge to edge, 1 px seams. The seams are each tile's 1 px ring (the line colour, opaque on
   black) in a 1 px gap, so a short last row ends in black instead of a grey block of empty cells */
.ui-sheet { display:grid; grid-template-columns:repeat(auto-fill, minmax(var(--ui-tile, 200px), 1fr)); gap:1px; padding:1px; }
.ui-sheet > * { background:var(--ui-bg); min-width:0; margin:0; box-shadow:0 0 0 1px #1a1a1a; }

/* the dock: a panel pinned at the bottom of a full-bleed page, above the pulse */
.ui-dock { position:fixed; left:0; right:0; bottom:12px; margin:0 auto; width:min(920px, calc(100% - 2 * var(--ui-pad)));
  z-index:20; background:var(--ui-panel); border:1px solid var(--ui-line2); border-radius:var(--ui-r3); }
body[data-pulse] .ui-dock { bottom:calc(var(--ui-pulse-h) + 12px); }

/* the .ui-in stagger: a page sets style="--i:2" on the third panel to enter (no --i: no delay, as in v1) */
.ui-in { animation-delay:calc(var(--i, 0) * 70ms); }

/* the title-slide headline: h1 800, a second line 600, a mono sub */
.ui-title { color:var(--ui-fg); }
.ui-title h1, .ui-title h2 { font-family:var(--ui-sans); color:var(--ui-fg); margin:0; letter-spacing:-.045em; line-height:.92; }
.ui-title h1 { font-weight:700; font-size:clamp(40px, 7vw, 96px); }
.ui-title h1 > span, .ui-title h1 > small, .ui-title h2 { display:block; font-weight:600; font-size:.82em; }
.ui-title h2 { font-size:clamp(33px, 5.7vw, 79px); }
.ui-title p { font-family:var(--ui-mono); font-size:12px; letter-spacing:.14em; text-transform:uppercase; color:var(--ui-dim);
  margin:16px 0 0; line-height:1.5; }

/* the pulse strip (web/pulse.js): 28 px at the bottom of every page with body[data-pulse] */
body[data-pulse] { padding-bottom:28px; }
#ui-pulse { position:fixed; left:0; right:0; bottom:0; height:28px; z-index:40; display:flex; align-items:center;
  background:#000; border-top:1px solid var(--ui-line); font-family:var(--ui-mono); font-size:12px; letter-spacing:.06em;
  color:var(--ui-fg2); box-sizing:border-box; contain:strict; }
#ui-pulse canvas { flex:1 1 auto; min-width:0; height:27px; display:block; }
#ui-pulse .ui-pulse-vals { flex:none; display:flex; align-items:center; gap:10px; padding:0 var(--ui-pad) 0 12px;
  white-space:nowrap; font-variant-numeric:tabular-nums; }
#ui-pulse .ui-pulse-vals b { font-weight:600; }
#ui-pulse .ui-pulse-row .ui-pw { display:inline; } #ui-pulse .ui-pulse-row .ui-pl { display:none; }
#ui-pulse .ui-vh { position:absolute; width:1px; height:1px; margin:-1px; padding:0; overflow:hidden; clip:rect(0 0 0 0);
  clip-path:inset(50%); white-space:nowrap; border:0; }
/* the spike (SUB01Pulse.spike()): a 24 px bright pulse that travels the strip left to right; reduced motion: a flash */
#ui-pulse .ui-pulse-spike { position:absolute; left:0; top:0; bottom:0; width:24px; opacity:0; pointer-events:none; will-change:transform,opacity;
  background:linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.85) 46%, #fff 50%, rgba(255,255,255,.85) 54%, rgba(255,255,255,0));
  box-shadow:0 0 2px 2px rgba(255,255,255,.55); }
#ui-pulse .ui-pulse-flash { position:absolute; inset:0; opacity:0; pointer-events:none; background:rgba(255,255,255,.4); }
#ui-pulse .ui-pulse-stage[hidden] { display:none; }
#ui-pulse .ui-pulse-stage { padding:1px 7px; font-size:12px; letter-spacing:.12em; color:var(--ui-blue2); border-color:var(--ui-blue); }
@media (max-width: 720px) { #ui-pulse .ui-pulse-row .ui-pw { display:none; } #ui-pulse .ui-pulse-row .ui-pl { display:inline; } }
@media (max-width: 520px) { #ui-pulse .ui-pulse-vals { gap:8px; padding-left:8px; } #ui-pulse .ui-pulse-stage { letter-spacing:.06em; } }

/* focus: a 2 px white outline with a 1 px dark ring inside it, so it shows on white pills too (zero specificity: a page
   can still restyle it) */
:where(a, button, input, select, textarea, summary, [tabindex], .ui-btn, .ui-seg > button, .ui-nav a, .ui-lockup):focus-visible {
  outline:2px solid #fff; outline-offset:1px; box-shadow:0 0 0 1px #000; }

/* page to page: a 320 ms crossfade (cross-document view transitions; browsers without them just navigate) */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
}
::view-transition-old(root) { animation:320ms var(--ui-ease) both ui-vt-out; }
::view-transition-new(root) { animation:320ms var(--ui-ease) both ui-vt-in; }
@keyframes ui-vt-out { to { opacity:0; } }
@keyframes ui-vt-in { from { opacity:0; } }

/* reduced motion: no crossfade, no stagger, no pulsing dots, no transitions */
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation:none !important; }
  .ui-dot, .ui-in, .ui-chip .ui-dot { animation:none !important; }
  .ui-seg > button, .ui-btn, .ui-nav a { transition:none !important; }
}

/* ============================================================================================================
   v2.1 · design-review fixes (2026-11-02): hover states that move more than colour, the skip link, a short phone
   header, 24 px chips. Everything above stays; page styles that load after this file may still override. */
:root { --ui-pill: rgba(255,255,255,.06); }   /* the nav pill fill, reused as the hover fill */

/* buttons: the nav pill fill + a brighter hairline on hover (specificity kept low so a page can still restyle) */
.ui-btn:hover:not(:disabled):not(.primary):not(.on) { background:var(--ui-pill); border-color:rgba(255,255,255,.4); color:var(--ui-fg);
  box-shadow:inset 0 0 0 999px var(--ui-pill); }   /* the inset fill also shows on a page that sets its own button background */
.ui-btn:hover:focus-visible:not(.primary):not(.on) { box-shadow:0 0 0 1px #000, inset 0 0 0 999px var(--ui-pill); }
.ui-seg > button:hover:not(:disabled):not(.on):not([aria-pressed="true"]) { background:var(--ui-pill); color:var(--ui-fg); box-shadow:inset 0 0 0 999px var(--ui-pill); }
.ui-seg > button:hover:focus-visible:not(.on):not([aria-pressed="true"]) { box-shadow:0 0 0 1px #000, inset 0 0 0 999px var(--ui-pill); }
:where(.ui-dock, #tools, .ui-hud) button:where(:not(.ui-btn, .primary, .on, [aria-pressed="true"], :disabled)),
:where(.tab) {
  transition: background .3s var(--ui-ease), color .3s var(--ui-ease), border-color .3s var(--ui-ease); }
:where(.ui-dock, #tools, .ui-hud) button:where(:not(.ui-btn, .primary, .on, [aria-pressed="true"], :disabled)):hover,
:where(.tab):hover:where(:not(.on, [aria-selected="true"], :disabled)) { background:var(--ui-pill); color:var(--ui-fg); box-shadow:inset 0 0 0 999px var(--ui-pill); }
/* the primary button: pure white and a 1 px lift, never grey */
.ui-btn.primary { transition: background .3s var(--ui-ease), color .3s var(--ui-ease), border-color .3s var(--ui-ease), transform .3s var(--ui-ease); }
.ui-btn.primary:hover:not(:disabled) { background:#fff; border-color:#fff; color:#000; transform:translateY(-1px); }
.ui-btn.primary:active:not(:disabled) { transform:none; }

/* inline links in running text: a hairline underline at rest, a 2 px one that draws in from the left on hover; 2 px of
   vertical padding so the target is not a hairline */
:is(p, li, td, .ui-honest, .ui-caption) a:not(.ui-btn):not([class*="ui-nav"]) {
  text-decoration:none; padding:2px 0; -webkit-box-decoration-break:clone; box-decoration-break:clone;
  background-image:linear-gradient(currentColor, currentColor), linear-gradient(rgba(255,255,255,.35), rgba(255,255,255,.35));
  background-repeat:no-repeat; background-position:0 100%, 0 100%; background-size:0 2px, 100% 1px;
  transition: background-size .3s var(--ui-ease), color .3s var(--ui-ease); }
:is(p, li, td, .ui-honest, .ui-caption) a:not(.ui-btn):not([class*="ui-nav"]):hover,
:is(p, li, td, .ui-honest, .ui-caption) a:not(.ui-btn):not([class*="ui-nav"]):focus-visible { background-size:100% 2px, 100% 1px; color:var(--ui-fg); }

/* the lock-up: the faint pill, and the small line brightens (the box grows by its padding and gives it back in margin) */
.ui-lockup { padding:4px 8px; margin:-4px -8px; border-radius:8px; transition: background .3s var(--ui-ease); }
.ui-lockup small { transition: color .3s var(--ui-ease); }
.ui-lockup:hover { background:var(--ui-pill); }
.ui-lockup:hover small { color:var(--ui-fg); }

/* skip link (web/deck.js inserts it as the first child of body): off-screen until it takes focus */
.ui-skip { position:fixed; left:-9999px; top:8px; z-index:2147483000; box-sizing:border-box; min-height:44px; padding:0 20px;
  display:inline-flex; align-items:center; border-radius:8px; background:#fff; color:#000; text-decoration:none;
  font-family:var(--ui-mono); font-size:12px; letter-spacing:.08em; text-transform:lowercase; font-weight:600; }
.ui-skip:focus, .ui-skip:focus-visible { left:8px; }
main[tabindex="-1"]:focus { outline:none; }

/* targets: chips and segmented buttons at least 24 px tall */
.ui-chip { box-sizing:border-box; min-height:24px; }
.ui-seg > button { box-sizing:border-box; min-height:24px; }

/* phones: lock-up and LIVE chip on one row, the clock and counter drop out, the nav is one scrolling row of 44 px targets
   (header about 88 px instead of 220; markup untouched) */
@media (max-width: 720px) {
  :is(.ui-hdr, #hdr):has(> .ui-lockup) { flex-wrap:wrap; align-items:center; row-gap:0; column-gap:12px; padding:8px var(--ui-pad) 0; }
  :is(.ui-hdr, #hdr):has(> .ui-lockup) > .ui-lockup { order:1; }
  :is(.ui-hdr, #hdr):has(> .ui-lockup) > .ui-spacer { order:2; }
  :is(.ui-hdr, #hdr):has(> .ui-lockup) > .ui-state { order:2; margin-left:auto; }
  :is(.ui-hdr, #hdr):has(> .ui-lockup) > .ui-nav { order:3; flex:1 0 100%; overflow-x:auto; scrollbar-width:none; margin:0 -12px; padding:2px 3px; }
  :is(.ui-hdr, #hdr) .ui-state .ui-clock, :is(.ui-hdr, #hdr) .ui-state .ui-counter { display:none; }
  :is(.ui-hdr, #hdr) .ui-state > .ui-chip:not(.live) { display:none; }          /* extra state chips (the stage) live in the pulse strip */
  :is(.ui-hdr, #hdr):has(> .ui-lockup) > button { order:2; }                  /* a page's own header button stays on the first row */
  :is(.ui-hdr, #hdr):has(> .ui-lockup) > .ui-nav a { flex:none; display:inline-flex; align-items:center; box-sizing:border-box; min-height:44px; padding:0 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .ui-btn, .ui-seg > button, .ui-nav a, .ui-lockup, .ui-lockup small, .ui-tab, .tab, :is(.ui-dock, #tools, .ui-hud) button,
  :is(p, li, td, .ui-honest, .ui-caption) a { transition-duration:0s !important; }
}

/* ============================================================================================================
   v3 · controls that answer (2026-11-02). The owner's five component references (Rare UI, Kobra, EasyUI, Pin UI,
   Aceternity) translated into black and white, no library, no font: a light runs round a hovered pill, a white thumb
   slides inside the segmented control, one pill slides under the nav, a faint light follows the pointer in panels,
   the primary button is magnetic and shines, a tooltip and a toast in the system, a stateful send, shimmer on loader
   captions, a blur-in on a changing headline. deck.js places the moving parts (window.SUB01UI). Still under reduced
   motion; pointer things only on fine pointers. */
@property --ui-ang { syntax:"<angle>"; inherits:false; initial-value:0deg; }
@keyframes ui-run { to { --ui-ang:360deg; } }
@keyframes ui-shine { from { transform:translateX(-140%) skewX(-18deg); } to { transform:translateX(260%) skewX(-18deg); } }
@keyframes ui-shimmer { from { background-position:200% 0; } to { background-position:-200% 0; } }
@keyframes ui-swap { from { opacity:0; filter:blur(6px); transform:translateY(4px); } to { opacity:1; filter:blur(0); transform:none; } }
@keyframes ui-tip { from { opacity:0; transform:translate(-50%, 4px) scale(.96); } to { opacity:1; transform:translate(-50%, 0) scale(1); } }
@keyframes ui-tip-b { from { opacity:0; transform:translate(-50%, -4px) scale(.96); } to { opacity:1; transform:translate(-50%, 0) scale(1); } }
@keyframes ui-toast { from { opacity:0; transform:translate(-50%, 8px); } to { opacity:1; transform:translate(-50%, 0); } }

/* pills: a light runs round the hairline under the pointer; the press is a 3 % squeeze */
.ui-btn, .ui-seg > button { position:relative; isolation:isolate; }
.ui-btn::before { content:""; position:absolute; inset:-1px; border-radius:inherit; padding:1px; pointer-events:none; z-index:1; opacity:0;
  background:conic-gradient(from var(--ui-ang), transparent 0 60%, rgba(255,255,255,.95) 80%, transparent 100%);
  -webkit-mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite:xor;
  mask:linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite:exclude;
  transition:opacity .25s var(--ui-ease); }
.ui-btn:hover:not(:disabled):not([aria-disabled="true"])::before { opacity:1; animation:ui-run 1.4s linear infinite; }
.ui-btn:active:not(:disabled), .ui-seg > button:active:not(:disabled) { transform:scale(.97); }
/* the primary pill: a shine crosses the white fill once, and the pointer pulls it a few pixels (deck.js) */
.ui-btn.primary { overflow:hidden; }
.ui-btn.primary::before { inset:0 auto 0 0; width:45%; padding:0; -webkit-mask:none; mask:none; border-radius:0; z-index:1;
  background:linear-gradient(100deg, transparent 20%, rgba(0,0,0,.14) 50%, transparent 80%); transform:translateX(-140%) skewX(-18deg); }
.ui-btn.primary:hover:not(:disabled)::before { opacity:1; animation:ui-shine .7s var(--ui-ease) 1 forwards; }
.ui-btn.primary:active:not(:disabled) { transform:scale(.97); }

/* the segmented control: a white thumb slides to the chosen button (a control with several chosen buttons keeps the fill) */
.ui-seg { position:relative; }
.ui-seg > .ui-seg-thumb { position:absolute; left:0; top:0; width:0; height:0; border-radius:8px; background:var(--ui-fg); z-index:0;
  pointer-events:none; opacity:0; transition:transform .28s var(--ui-ease), width .28s var(--ui-ease), height .28s var(--ui-ease), opacity .2s; }
.ui-seg.has-thumb > button { z-index:1; transition:color .3s var(--ui-ease), background .3s var(--ui-ease), box-shadow .3s var(--ui-ease); }
.ui-seg.has-thumb > button.on, .ui-seg.has-thumb > button[aria-pressed="true"] { background:transparent; box-shadow:none; }

/* the nav: one pill slides under the pointer (or the focus) and comes home to the current page */
.ui-nav { position:relative; }
.ui-nav > .ui-nav-pill { position:absolute; left:0; top:0; width:0; height:0; border-radius:8px; background:rgba(255,255,255,.1); z-index:0;
  pointer-events:none; opacity:0; transition:transform .3s var(--ui-ease), width .3s var(--ui-ease), height .3s var(--ui-ease), opacity .2s; }
.ui-nav.has-pill > a { position:relative; z-index:1; }
.ui-nav.has-pill > a:hover, .ui-nav.has-pill > a.on { background:transparent; }

/* panels: a faint light follows the pointer, the hairline brightens (deck.js sets --mx/--my and positions the panel) */
.ui-panel.has-spot { isolation:isolate; --mx:50%; --my:50%; transition:border-color .3s var(--ui-ease); }
.ui-panel.has-spot::before { content:""; position:absolute; inset:0; border-radius:inherit; pointer-events:none; z-index:-1; opacity:0;
  background:radial-gradient(260px circle at var(--mx) var(--my), rgba(255,255,255,.07), transparent 65%); transition:opacity .35s var(--ui-ease); }
.ui-panel.has-spot:hover::before { opacity:1; }
.ui-panel.has-spot:hover { border-color:var(--ui-line2); }

/* inputs: a soft halo when the pointer puts the focus there (the keyboard keeps the ring) */
.ui-input:focus:not(:focus-visible) { border-color:#fff; box-shadow:0 0 0 3px rgba(255,255,255,.08); }
.ui-input::placeholder { color:var(--ui-faint); }

/* a stateful button (SUB01UI.state(btn, "busy" | "done" | "fail", text)): the label changes, done fills white for a moment */
button[data-state="busy"] { opacity:.7; cursor:progress; }
button[data-state="done"] { background:#fff !important; color:#000 !important; border-color:#fff !important; }
button[data-state="fail"] { border-color:var(--ui-live) !important; color:var(--ui-live2) !important; }

/* the tooltip (deck.js shows it for title= on buttons, links, chips and summaries, and for [data-tip]) */
.ui-tip { position:fixed; left:0; top:0; z-index:2147483000; max-width:260px; padding:6px 9px; border-radius:8px; background:#0e0e11;
  color:var(--ui-fg2); border:1px solid var(--ui-line2); font-family:var(--ui-mono); font-size:12px; line-height:1.45; letter-spacing:.02em;
  text-transform:none; pointer-events:none; transform:translate(-50%, 0); animation:ui-tip .3s var(--ui-ease) both; }
.ui-tip.below { animation-name:ui-tip-b; }
.ui-tip[hidden] { display:none; }

/* the toast (SUB01UI.toast("copied")): a white pill above the pulse for a moment */
.ui-toast { position:fixed; left:50%; bottom:calc(var(--ui-pulse-h) + 16px); z-index:2147483000; transform:translate(-50%, 0); padding:8px 14px;
  border-radius:8px; background:#fff; color:#000; font-family:var(--ui-mono); font-size:12px; letter-spacing:.06em; pointer-events:none;
  animation:ui-toast .22s var(--ui-ease) both; transition:opacity .3s var(--ui-ease); }
.ui-toast.out { opacity:0; }
body:not([data-pulse]) .ui-toast { bottom:16px; }

/* a loader caption: a light passes along the text */
.ui-shimmer { background:linear-gradient(90deg, var(--ui-dim) 0 38%, #fff 50%, var(--ui-dim) 62% 100%); background-size:200% 100%;
  color:transparent; -webkit-background-clip:text; background-clip:text; animation:ui-shimmer 1.8s linear infinite; }

/* a changing line (SUB01UI.swap(el, fn)): the new text comes in from a 6 px blur */
.ui-swap { animation:ui-swap .32s var(--ui-ease) both; }

@media (prefers-reduced-motion: reduce) {
  .ui-btn::before, .ui-shimmer, .ui-swap, .ui-tip, .ui-toast { animation:none !important; }
  .ui-btn.primary::before { display:none; }
  .ui-shimmer { color:var(--ui-dim); background:none; -webkit-background-clip:border-box; background-clip:border-box; }
  .ui-seg > .ui-seg-thumb, .ui-nav > .ui-nav-pill, .ui-panel.has-spot::before, .ui-panel.has-spot { transition:none !important; }
}

/* the nav pill answers the pointer too (jury round 2): the pill brightens under the pointer, the link lifts 1 px */
.ui-nav.has-pill > a { transition:color .2s var(--ui-ease), background .2s var(--ui-ease), transform .2s var(--ui-ease); }
.ui-nav.has-pill > a:hover { transform:translateY(-1px); }
.ui-nav.has-pill:hover > .ui-nav-pill { background:rgba(255,255,255,.16); }
@media (prefers-reduced-motion: reduce) { .ui-nav.has-pill > a:hover { transform:none; } }

/* ============================================================================================================
   v4 · the look, from the owner's references read again (2 November, late): Geist everywhere, Geist Mono only for numbers
   and times; labels in sentence case with no tracking; 10 px rounded rectangles instead of pills; translucent fills with a
   hairline and a top highlight; layered panel surfaces. These rules come last and win over the v1–v3 ones above. */
:root { --ui-r: 8px; --ui-r2: 12px; --ui-r3: 16px; --ui-fill: rgba(255,255,255,.06); --ui-fill2: rgba(255,255,255,.1);
  --ui-hair: rgba(255,255,255,.1); --ui-hair2: rgba(255,255,255,.18); --ui-top: inset 0 1px 0 rgba(255,255,255,.07); }
body { font-family:var(--ui-sans); -webkit-font-smoothing:antialiased; }

/* labels and captions: sentence case, 12 px, medium, no tracking (the mono stays for numbers and times) */
.ui-label, .ui-caption, .ui-lockup small, .ui-title p, #ui-pulse, #ui-pulse .ui-pulse-vals, .ui-chip, .ui-btn, .ui-seg > button, .ui-input, .ui-honest,
.ui-clock, .ui-tip, .ui-toast, .ui-skip, .ui-delta, .ui-word {
  font-family:var(--ui-sans); text-transform:none; letter-spacing:-.01em; }
.ui-label, .ui-caption, .ui-lockup small { font-size:12px; font-weight:500; color:var(--ui-dim); }
.ui-clock, .ui-delta, #ui-pulse .ui-pulse-vals, .ui-big, .ui-num .ui-big { font-family:var(--ui-mono); letter-spacing:0; font-variant-numeric:tabular-nums; }
.ui-honest { font-size:12px; }
.ui-lockup b { font-size:16px; letter-spacing:-.03em; }

/* buttons: a 10 px rounded rectangle, a translucent fill, a hairline, a top highlight; the primary a white gradient */
.ui-btn, .ui-seg > button, .ui-skip, .ui-toast, .ui-tip { border-radius:var(--ui-r); }
.ui-btn { font-size:14px; font-weight:600; padding:8px 12px; color:var(--ui-fg2); background:var(--ui-fill); border:1px solid var(--ui-hair);
  box-shadow:var(--ui-top); line-height:1.2; min-height:32px; box-sizing:border-box; display:inline-flex; align-items:center; justify-content:center; gap:6px; }
.ui-btn:hover:not(:disabled):not(.primary):not(.on) { background:var(--ui-fill2); border-color:var(--ui-hair2); color:var(--ui-fg); box-shadow:var(--ui-top); }
.ui-btn.on { background:#fff; color:#000; border-color:#fff; box-shadow:none; }
.ui-btn.primary { background:#fff; color:#000; border-color:#fff; font-weight:600;
  box-shadow:inset 0 1px 0 #fff, 0 1px 2px rgba(0,0,0,.5); }
.ui-btn.primary:hover:not(:disabled) { background:#fff; border-color:#fff; box-shadow:inset 0 1px 0 #fff, 0 2px 6px rgba(0,0,0,.5); }
.ui-seg { border-radius:8px; padding:3px; gap:2px; background:rgba(255,255,255,.03); border:1px solid var(--ui-hair); }
.ui-seg > button { font-size:12px; font-weight:500; padding:5px 11px; border-radius:6px; min-height:28px; color:var(--ui-dim); }
.ui-seg > .ui-seg-thumb { border-radius:6px; box-shadow:0 1px 2px rgba(0,0,0,.4); }
.ui-seg > button.on, .ui-seg > button[aria-pressed="true"] { color:#000; }
.ui-chip { border-radius:6px; font-size:12px; font-weight:500; padding:3px 8px; border-color:var(--ui-hair2); color:var(--ui-fg2); background:var(--ui-fill); }
.ui-chip.live { background:#d1002c; border-color:transparent; color:#fff; }
.ui-chip.proj { background:transparent; }
.ui-input { font-size:14px; border-radius:var(--ui-r); padding:8px 12px; background:#000; border:1px solid var(--ui-hair);
  box-shadow:inset 0 1px 2px rgba(0,0,0,.5); color:var(--ui-fg); }
.ui-input:focus:not(:focus-visible) { border-color:var(--ui-hair2); box-shadow:inset 0 1px 2px rgba(0,0,0,.5), 0 0 0 3px rgba(255,255,255,.06); }

/* the nav: 13 px medium, 8 px pill */
.ui-nav a, .ui-nav > .ui-nav-pill { border-radius:var(--ui-r); }
.ui-nav a { font-family:var(--ui-sans); font-size:14px; font-weight:500; letter-spacing:-.01em; text-transform:none; padding:4px 8px; }
.ui-nav > .ui-nav-pill { background:var(--ui-fill2); }
.ui-lockup { border-radius:var(--ui-r); }

/* panels and docks: a layered surface, a hairline, a top highlight */
.ui-panel { background:#181818; border:1px solid rgba(255,255,255,.08); border-radius:var(--ui-r3); box-shadow:var(--ui-top); }
.ui-panel.has-spot:hover { border-color:rgba(255,255,255,.14); }
.ui-dock { border-radius:var(--ui-r3); background:#181818; border:1px solid rgba(255,255,255,.1); box-shadow:var(--ui-top), 0 8px 30px rgba(0,0,0,.5); }
.ui-tip { font-family:var(--ui-sans); font-size:12px; background:#1F1F1F; box-shadow:0 4px 16px rgba(0,0,0,.5); }
.ui-toast { font-family:var(--ui-sans); font-size:12px; font-weight:500; }

/* the pulse strip row: sentence case words, mono numbers */
#ui-pulse { font-family:var(--ui-sans); font-size:12px; letter-spacing:0; text-transform:none; }
#ui-pulse .ui-pulse-stage { font-family:var(--ui-sans); font-size:12px; letter-spacing:0; text-transform:none; border-radius:6px; }

/* ============================================================================================================
   v5 · the owner's design skill (elayadesign redesign-existing-projects + landing-page-design Part B), applied:
   base curve cubic-bezier(.22,1,.36,1), nothing under 200 ms, flat surfaces on #000 / #181818 / #1F1F1F, Tailwind radii
   (8, 12, 16; nested shapes outer minus gap), the spacing scale (buttons 8 / 12), type on the Tailwind scale (12 px floor,
   14 for buttons and nav, no weight above 700), the hero heading as a white to #9B9B9B text gradient, a floating
   translucent header, balanced headings. */
h1, h2, h3 { text-wrap:balance; } p, li { text-wrap:pretty; }
.ui-title h1, #hero-h, #story, h1.lead { background:linear-gradient(90deg, #fff, #9B9B9B); -webkit-background-clip:text; background-clip:text; color:transparent; }
.ui-title h1 { font-weight:700; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior:smooth; } }

/* the header floats off the top edge: sized to its content, centred, translucent over a blur */
:is(.ui-hdr, #hdr.ui-hdr) { left:0; right:0; top:8px; margin:0 auto; width:max-content; max-width:calc(100% - 16px); box-sizing:border-box;
  padding:8px 12px; gap:16px; border-radius:12px; background:rgba(0,0,0,.6); -webkit-backdrop-filter:blur(12px); backdrop-filter:blur(12px);
  border:1px solid rgba(255,255,255,.08); }
:is(.ui-hdr, #hdr.ui-hdr) > .ui-spacer { flex:0 0 16px; }
@media (max-width: 720px) { :is(.ui-hdr, #hdr.ui-hdr) { width:calc(100% - 16px); padding:8px 12px 0; } }

/* the coin (owner, 2026-11-03): one chip with the contract address, tap to copy (deck.js builds it), after the nav on wide
   screens, first in the nav's row on phones, and on the intro's first screen above the hint. Case kept: the address is
   case-sensitive. The X account is a nav link like the pages. */
.ui-ca { text-transform:none; letter-spacing:0; cursor:pointer; flex:none; align-self:center; pointer-events:auto; text-decoration:none;
  font-family:var(--ui-mono); font-size:12px; font-weight:500; min-height:26px; padding:3px 9px; color:var(--ui-fg2); background:var(--ui-fill); border-color:var(--ui-hair2);
  font-variant-numeric:tabular-nums; transition:border-color .2s var(--ui-ease), color .2s var(--ui-ease), background .2s var(--ui-ease); }
.ui-ca:hover, .ui-ca:focus-visible, .ui-ca.done { border-color:var(--ui-fg2); color:var(--ui-fg); background:var(--ui-fill2); }
.ui-nav > .ui-ca { margin:0 6px 0 4px; min-height:32px; padding:4px 11px; font-size:13px; }
