/* ════════════════════════════════════════════════════════════════════
   THE DESIGN ATLAS — engine chrome
   ────────────────────────────────────────────────────────────────────
   Reuses the page's own scale exactly (--s*, --step*, --ease*, --t*,
   --r*, --font-mono/serif) — one scale for the whole page, no drift.
   library.css owns the eight aesthetic directions and the component
   kit (--sp-*, .sp-*). This file owns everything the atlas needs on
   top of that: the cue system, the seven wing regions, the rail, the
   seams between regions, and the racks/wings/mixers/index that host
   the specimens.

   Contents
   1. THE CUE SYSTEM — sr-only text + native popover, accessible first
   2. WING REGIONS — seven grounds the page changes through
   3. THE RAIL — glyphs, not words
   4. LEGEND + STYLE METER
   5. WING / RACK / SPECIMEN chrome
   6. SEAMS — the ten transitions between regions
   7. COLOUR LABORATORY layout
   8. TECHNIQUE INDEX + CAPABILITY WALL cards
   9. JUDGMENT (do/don't) layout
   10. Guards
   ════════════════════════════════════════════════════════════════════ */

/* ══════════════════════════════════════════════════════════
   1 · THE CUE SYSTEM
   ──────────────────────────────────────────────────────────
   A cue is a trigger (`.cue`) plus its text (`.cue__t`). The text is
   ALWAYS in the DOM, always exposed to assistive tech via the classic
   clip-based sr-only technique (never display:none/visibility:hidden,
   which most screen readers drop from aria-describedby) — so hiding a
   word here never removes it, only defers its visible form. Hover,
   focus and tap all trigger the same reveal. Native `popover` gives
   us light-dismiss, top-layer stacking and Esc-to-close for free where
   supported; the `.is-shown` class is the fallback path atlas.js drives
   everywhere else, so the mechanism degrades to "always works."
   ══════════════════════════════════════════════════════════ */

.cue {
  all: unset;
  cursor: pointer;
  position: relative;
  display: inline-flex;
  touch-action: manipulation;
}
.cue:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }

/* the sr-only baseline: perceivable to AT, invisible on screen */
.cue__t {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* once promoted to a visible popover, the sr-only clip lifts */
.cue__t:popover-open,
.cue__t.is-shown {
  position: fixed;
  width: max-content;
  max-width: min(280px, 78vw);
  height: auto;
  padding: 7px 10px;
  margin: 0;
  clip: auto;
  overflow: visible;
  white-space: normal;
  inset: auto;
  z-index: 200;
  background: var(--card);
  color: var(--text);
  border: 1.5px solid var(--draft);
  border-radius: var(--r-1);
  box-shadow: var(--shadow);
  font-family: var(--font-mono);
  font-size: var(--step--2);
  line-height: 1.5;
  letter-spacing: .01em;
  text-transform: none;
  pointer-events: none;
  animation: cue-in 120ms var(--ease-out);
}
@keyframes cue-in { from { opacity: 0; transform: translateY(2px); } }

/* anchor positioning where supported — the fallback (JS-measured
   top/left, set inline by atlas.js) covers every other browser */
@supports (anchor-name: --a) {
  .cue[data-anchor] { anchor-name: var(--anchor-nm); }
  .cue__t[data-anchored] {
    position-anchor: var(--anchor-nm);
    position-area: var(--anchor-area, top);
    position-try-fallbacks: flip-block, flip-inline;
    inset: unset;
    margin: 6px 0 0;
  }
}

/* the glyph a cue sits on — a mark, never a label */
.cue__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: color var(--t-micro) var(--ease-out);
}
.cue:hover .cue__mark,
.cue:focus-visible .cue__mark,
.cue.is-active .cue__mark { color: var(--accent-ink); }

/* ── the ten cue forms ── */

/* tick — a registration cross in a stage corner */
.cue--tick .cue__mark {
  width: 13px; height: 13px;
  position: relative;
}
.cue--tick .cue__mark::before, .cue--tick .cue__mark::after {
  content: ""; position: absolute; background: currentColor;
}
.cue--tick .cue__mark::before { left: 6px; top: 0; width: 1.4px; height: 13px; }
.cue--tick .cue__mark::after { top: 6px; left: 0; height: 1.4px; width: 13px; }

/* numeral — a plate number that IS the trigger */
.cue--num {
  font-family: var(--font-mono);
  font-size: var(--step--1);
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--muted);
  min-width: 30px;
}
.cue--num:hover, .cue--num:focus-visible, .cue--num.is-active { color: var(--accent-ink); }

/* leader — a drafting line that extends toward its dimension */
.cue--leader { align-items: center; gap: 0; }
.cue--leader .cue__mark {
  width: 22px; height: 1.4px;
  background: var(--line);
  transform-origin: left center;
  transition: width var(--t-move) var(--ease-out), background var(--t-micro);
}
.cue--leader:hover .cue__mark, .cue--leader:focus-visible .cue__mark, .cue--leader.is-active .cue__mark {
  width: 40px; background: var(--accent);
}

/* margin dot — a small dot in a gutter */
.cue--dot .cue__mark {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--draft);
  box-shadow: 0 0 0 3px transparent;
  transition: box-shadow var(--t-micro) var(--ease-out), background var(--t-micro);
}
.cue--dot:hover .cue__mark, .cue--dot:focus-visible .cue__mark, .cue--dot.is-active .cue__mark {
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}

/* swell — a term with a hairline under it, that thickens */
.cue--swell { display: inline; border-bottom: 1.4px solid var(--draft); padding-bottom: 1px; }
.cue--swell:hover, .cue--swell:focus-visible, .cue--swell.is-active { border-bottom-width: 2.5px; border-bottom-color: var(--accent); }

/* peel — a corner that lifts to show what's beneath (used on cards) */
.cue--peel { position: absolute; top: 0; right: 0; width: 26px; height: 26px; overflow: hidden; }
.cue--peel .cue__mark {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 50%, var(--card-2) 50%);
  transition: inset var(--t-move) var(--ease-out);
}
.cue--peel:hover .cue__mark, .cue--peel:focus-visible .cue__mark, .cue--peel.is-active .cue__mark { inset: -6px; }

/* halo — a ring that thickens toward a hotspot, no shape of its own */
.cue--halo .cue__mark {
  width: 10px; height: 10px; border-radius: 50%;
  border: 1.4px solid var(--line);
  transition: border-color var(--t-micro), box-shadow var(--t-micro);
}
.cue--halo:hover .cue__mark, .cue--halo:focus-visible .cue__mark, .cue--halo.is-active .cue__mark {
  border-color: var(--accent);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 14%, transparent);
}

/* ghost — type at low opacity that resolves on approach */
.cue--ghost { opacity: .38; transition: opacity var(--t-micro) var(--ease-out); }
.cue--ghost:hover, .cue--ghost:focus-visible, .cue--ghost.is-active { opacity: 1; }

/* chip — a colour swatch standing in for a word (see legend, §4) */
.cue--chip .cue__mark { width: 15px; height: 15px; border: 1px solid var(--line); }

/* scrub — pointer position across a strip drives which state/label
   shows; no trigger glyph of its own, the whole strip is the trigger */
.scrub {
  position: relative;
  display: flex;
  cursor: col-resize;
  touch-action: pan-y;
}
.scrub__cue { position: absolute; inset: 0; }

/* ══ show-all-labels: one switch, unhides every cue permanently ══ */
:root[data-labels="all"] .cue__t {
  position: static;
  width: auto; height: auto;
  padding: 3px 0 0; margin: 0;
  clip: auto; overflow: visible;
  white-space: normal;
  display: block;
  font-family: var(--font-mono);
  font-size: var(--step--2);
  color: var(--muted);
  animation: none;
}
:root[data-labels="all"] .cue--tick,
:root[data-labels="all"] .cue--dot,
:root[data-labels="all"] .cue--halo { flex-direction: column; align-items: flex-start; gap: 4px; }

/* ══════════════════════════════════════════════════════════
   2 · WING REGIONS — the page changes ground as it descends
   ══════════════════════════════════════════════════════════ */

.wing {
  position: relative;
  isolation: isolate;
  padding: var(--s8) 0;
  background: var(--wg-bg, var(--bg));
  color: var(--wg-fg, var(--text));
  transition: background var(--t-slow) var(--ease-inout);
}
.wing[data-region] {
  --wg-font: var(--font-ui);
}

/* I · Foundations — vellum & graphite, laboratory */
.wing[data-region="lab"] {
  --wg-bg: color-mix(in srgb, var(--bg) 92%, var(--draft) 8%);
  --wg-fg: var(--text); --wg-mut: var(--muted); --wg-line: var(--line);
  --wg-acc: var(--accent); --wg-r: var(--r0);
}
/* II · Components — swiss white, grid visible */
.wing[data-region="swiss"] {
  --wg-bg: #F1F1EE; --wg-fg: #0B0B0A; --wg-mut: #6A6A64;
  --wg-line: rgba(11,11,10,.2); --wg-acc: #E4002B; --wg-r: 0px;
  --wg-font: "Space Grotesk", var(--font-ui);
}
:root[data-theme="dark"] .wing[data-region="swiss"] {
  --wg-bg: #131313; --wg-fg: #F1F1EE; --wg-mut: #9A9A94; --wg-line: rgba(241,241,238,.18);
}
/* III · Composition — editorial cream, oversized numerals */
.wing[data-region="editorial"] {
  --wg-bg: #FAF6EE; --wg-fg: #1B1613; --wg-mut: #6B5F52;
  --wg-line: rgba(27,22,19,.18); --wg-acc: #7E2B2B; --wg-r: 2px;
  --wg-font: "General Sans", var(--font-ui);
  --wg-display: "Instrument Serif", var(--font-serif);
}
:root[data-theme="dark"] .wing[data-region="editorial"] {
  --wg-bg: #1D1813; --wg-fg: #F3EBDD; --wg-mut: #B7A891; --wg-line: rgba(243,235,221,.16);
}
/* IV · Motion — carbon & phosphor, everything in motion */
.wing[data-region="carbon"] {
  --wg-bg: #07100C; --wg-fg: #CFF7E6; --wg-mut: #6B9C86;
  --wg-line: rgba(53,240,160,.25); --wg-acc: #35F0A0; --wg-r: 0px;
  --wg-font: var(--font-mono); color-scheme: dark;
}
/* V · The possible — terminal-brutalist spec sheet */
.wing[data-region="terminal"] {
  --wg-bg: #050505; --wg-fg: #EDEDED; --wg-mut: #8A8A8A;
  --wg-line: rgba(237,237,237,.2); --wg-acc: #FF4D00; --wg-r: 0px;
  --wg-font: var(--font-mono); color-scheme: dark;
}
/* VI · Judgment — riso two-colour, misregistered on purpose */
.wing[data-region="riso"] {
  --wg-bg: #F4EFE4; --wg-fg: #17130F; --wg-mut: #6C6255;
  --wg-line: rgba(23,19,15,.22); --wg-acc: #3355FF; --wg-r: 0px;
  --wg-font: var(--font-ui);
}
:root[data-theme="dark"] .wing[data-region="riso"] {
  --wg-bg: #1A1712; --wg-fg: #F4EFE4; --wg-mut: #A79E8E; --wg-line: rgba(244,239,228,.16);
}

/* everything inside a wing follows its region by default */
.wing .rack__head h3, .wing .wingopen__h { font-family: var(--wg-display, var(--font-display)); }
.wing .rack__no, .wing .ann, .wing .cue__t { font-family: var(--font-mono); }
.wing .rack__note, .wing p { color: var(--wg-mut, var(--muted)); }

/* riso misregistration: a doubled, offset print pass, always-on */
.wing[data-region="riso"] .rack__head h3 {
  text-shadow: 1.5px 1.5px 0 color-mix(in srgb, var(--wg-acc) 55%, transparent);
}

/* ══════════════════════════════════════════════════════════
   3 · THE RAIL — glyphs, not words
   ══════════════════════════════════════════════════════════ */

.atlas-rail {
  position: sticky;
  top: 46px;
  z-index: 45;
  display: flex;
  align-items: center;
  gap: var(--s2);
  padding: var(--s1) var(--s3);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px);
  border-top: 1.5px solid var(--draft);
  border-bottom: 1.5px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.atlas-rail::-webkit-scrollbar { display: none; }

.rail-sw {
  flex: 0 0 auto;
  width: 24px; height: 24px;
  border: 1.5px solid var(--line);
  cursor: pointer;
  padding: 0;
  transition: border-color var(--t-micro), transform var(--t-micro) var(--ease-spring);
}
.rail-sw:hover { transform: translateY(-1px); }
.rail-sw[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 30%, transparent); }
.rail-sw--swiss { background: linear-gradient(135deg,#F1F1EE 50%,#E4002B 50%); }
.rail-sw--editorial { background: linear-gradient(135deg,#FAF6EE 50%,#7E2B2B 50%); }
.rail-sw--brutal { background: linear-gradient(135deg,#FFE94A 50%,#0A0A0A 50%); }
.rail-sw--soft { background: linear-gradient(135deg,#EFEBFF 50%,#6C5CE7 50%); }
.rail-sw--terminal { background: linear-gradient(135deg,#050807 50%,#35F0A0 50%); }
.rail-sw--glass { background: linear-gradient(135deg,#1B1040 50%,#6EE7F9 50%); }
.rail-sw--luxe { background: linear-gradient(135deg,#0C0B09 50%,#C9A961 50%); }
.rail-sw--neopop { background: linear-gradient(135deg,#FFE94A 45%,#3D2BFF 45%); }
.rail-sw--all { background: conic-gradient(#E4002B,#7E2B2B,#FFE94A,#6C5CE7,#35F0A0,#6EE7F9,#C9A961,#3D2BFF,#E4002B); }

.rail-glyph {
  flex: 0 0 auto;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border: 1.5px solid transparent;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color var(--t-micro), border-color var(--t-micro);
}
.rail-glyph:hover { color: var(--text); }
.rail-glyph[aria-pressed="true"], .rail-glyph.is-on { color: var(--accent-ink); border-color: var(--accent); }
.rail-glyph svg { width: 15px; height: 15px; }

.rail-sep { width: 1.5px; align-self: stretch; background: var(--line); flex: 0 0 auto; }
.rail-count {
  margin-left: auto;
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: var(--step--2);
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

/* the pin tray: docks at the foot of the viewport, glyph-triggered */
.pintray {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 60;
  display: flex;
  gap: 1px;
  background: var(--draft);
  border-top: 1.5px solid var(--draft);
  transform: translateY(100%);
  transition: transform var(--t-move) var(--ease-spring);
  max-height: 46vh;
}
.pintray.is-open { transform: translateY(0); }
.pintray__cell {
  flex: 1 1 0;
  min-width: 0;
  background: var(--bg);
  overflow: auto;
}
.pintray__close {
  position: fixed; right: var(--s2); bottom: calc(46vh + var(--s1));
  z-index: 61;
  width: 34px; height: 34px;
  border: 1.5px solid var(--draft);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  display: none;
}
.pintray.is-open ~ .pintray__close, .pintray.is-open + .pintray__close { display: grid; place-items: center; }

/* ══════════════════════════════════════════════════════════
   4 · LEGEND + STYLE METER
   ══════════════════════════════════════════════════════════ */

.legend {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.5px;
  background: var(--line);
  border: 1.5px solid var(--line);
  margin: var(--s4) 0;
}
.legend__cell {
  background: var(--card);
  padding: var(--s2);
  display: flex;
  align-items: center;
  gap: 10px;
}
.legend__mark { width: 20px; height: 20px; flex: 0 0 auto; border: 1.5px solid var(--line); }
.legend__t { font-family: var(--font-mono); font-size: var(--step--2); color: var(--muted); }

.stylemeter {
  position: fixed;
  right: 6px; top: 50%;
  transform: translateY(-50%);
  z-index: 46;
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 5px;
}
.stylemeter__band {
  width: 5px; height: 30px;
  background: var(--wing-hue, var(--line));
  cursor: pointer;
  opacity: .5;
  transition: opacity var(--t-micro), width var(--t-micro);
}
.stylemeter__band.is-here { opacity: 1; width: 9px; margin-left: -4px; }
@media (max-width: 900px) { .stylemeter { display: none; } }

/* ══════════════════════════════════════════════════════════
   5 · WING / RACK / SPECIMEN chrome
   ══════════════════════════════════════════════════════════ */

.wingopen {
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--s2);
  padding: var(--s6) 0 var(--s7);
  position: relative;
}
.wingopen__no {
  font-family: var(--font-mono);
  font-size: var(--step-1);
  color: var(--wg-acc, var(--accent-ink));
  letter-spacing: .1em;
}
.wingopen__h {
  font-size: var(--step-7);
  font-weight: 560;
  line-height: .96;
  letter-spacing: -.02em;
  margin: 0;
  color: var(--wg-fg, var(--text));
}
.wingopen__ghost {
  position: absolute;
  right: -2vw; top: 50%; transform: translateY(-50%);
  font-size: min(40vw, 28rem);
  font-weight: 600;
  color: transparent;
  -webkit-text-stroke: 1px color-mix(in srgb, var(--wg-fg, var(--text)) 14%, transparent);
  z-index: -1;
  line-height: 1;
  user-select: none;
  pointer-events: none;
}

.rack { margin-top: var(--s7); scroll-margin-top: 130px; position: relative; }
.rack__head {
  display: flex;
  align-items: baseline;
  gap: var(--s2);
  padding-bottom: var(--s1);
  border-bottom: 1.5px solid var(--wg-acc, var(--draft));
  margin-bottom: var(--s2);
}
.rack__no { font-family: var(--font-mono); font-size: var(--step--2); color: var(--wg-mut, var(--muted)); }
.rack__head h3 { font-size: var(--step-3); font-weight: 560; letter-spacing: -.01em; margin: 0; }

.rack__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--s2); }
.rack__grid--wide { grid-template-columns: repeat(auto-fit, minmax(460px, 1fr)); }
.rack__grid--wall { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

.spec {
  position: relative;
  margin: 0;
  border: 1.5px solid var(--wg-line, var(--line));
  background: var(--card);
  transition: border-color var(--t-micro) var(--ease-out);
  content-visibility: auto;
  contain-intrinsic-size: 260px;
}
.spec:hover, .spec:focus-within { border-color: var(--wg-acc, var(--draft)); }
.spec[hidden] { display: none; }

.spec__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  border-top: 1.5px solid var(--line);
  background: var(--card-2);
}
.spec__acts { display: flex; gap: 6px; }
.spec__act {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
}
.spec__act:hover { color: var(--text); border-color: var(--draft); }
.spec__act[aria-pressed="true"] { color: var(--accent-ink); border-color: var(--accent); }
.spec__act svg { width: 12px; height: 12px; }

/* ══════════════════════════════════════════════════════════
   6 · SEAMS — the ten transitions between wing regions
   ══════════════════════════════════════════════════════════ */

.seam {
  position: relative;
  height: 34vh;
  min-height: 220px;
  overflow: hidden;
  isolation: isolate;
}
.seam__from, .seam__to {
  position: absolute; inset: 0;
}
.seam__from { background: var(--seam-a); }
.seam__to { background: var(--seam-b); }
.seam__label {
  position: absolute; left: var(--s3); bottom: var(--s2);
  z-index: 2;
}

/* 1 wipe — clip-path sweep, scroll-linked */
.seam--wipe .seam__to { clip-path: inset(0 100% 0 0); }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .seam--wipe .seam__to {
      animation: seam-wipe linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 60%;
    }
  }
}
@keyframes seam-wipe { to { clip-path: inset(0 0 0 0); } }

/* 2 invert — colour cross-fade of the two grounds */
.seam--invert .seam__to { opacity: 0; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .seam--invert .seam__to { animation: seam-fade linear both; animation-timeline: view(); animation-range: entry 0% cover 70%; }
  }
}
@keyframes seam-fade { to { opacity: 1; } }

/* 3 stack — outgoing pins, incoming slides over it */
.seam--stack { height: 60vh; }
.seam--stack .seam__from { position: sticky; top: 0; height: 60vh; }
.seam--stack .seam__to { position: relative; height: 60vh; margin-top: -20vh; box-shadow: 0 -30px 60px -30px rgba(0,0,0,.4); }

/* 4 dissolve — grain rises, resolves into the next ground */
.seam--dissolve .seam__to {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0;
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .seam--dissolve .seam__to { animation: seam-fade linear both; animation-timeline: view(); animation-range: entry 0% cover 80%; }
  }
}

/* 5 split — halves part vertically */
.seam--split { display: flex; }
.seam--split .seam__from, .seam--split .seam__to { position: relative; flex: 1 1 50%; height: 100%; }
.seam--split .seam__from { clip-path: inset(0 0 0 0); }
@media (prefers-reduced-motion: no-preference) {
  .seam--split:hover .seam__from, .seam--split.is-parted .seam__from { transform: translateX(-6%); }
  .seam--split:hover .seam__to, .seam--split.is-parted .seam__to { transform: translateX(6%); }
}
.seam--split .seam__from, .seam--split .seam__to { transition: transform var(--t-slow) var(--ease-spring); }

/* 6 curtain — same-document view transition (JS-driven, see atlas.js) */
.seam--curtain { cursor: pointer; }

/* 7 morph — a shape from A becomes the opener shape of B (SVG, JS-driven) */
.seam--morph svg { width: 100%; height: 100%; display: block; }

/* 8 fold — 3D perspective hinge */
.seam--fold { perspective: 1400px; }
.seam--fold .seam__to { transform-origin: top center; transform: rotateX(0deg); transition: transform var(--t-slow) var(--ease-inout); }
.seam--fold.is-folded .seam__to { transform: rotateX(-10deg); }

/* 9 bleed — colour floods upward from the incoming section */
.seam--bleed .seam__to { clip-path: inset(100% 0 0 0); }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .seam--bleed .seam__to { animation: seam-bleed linear both; animation-timeline: view(); animation-range: entry 10% cover 90%; }
  }
}
@keyframes seam-bleed { to { clip-path: inset(0 0 0 0); } }

/* 10 cut — no transition. deliberate. proves restraint by contrast. */
.seam--cut { height: 1.5px; background: var(--draft); }

/* ══════════════════════════════════════════════════════════
   7 · COLOUR LABORATORY layout
   ══════════════════════════════════════════════════════════ */

.lab-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: var(--s2); }
.mixer {
  border: 1.5px solid var(--line);
  background: var(--card);
  display: flex;
  flex-direction: column;
}
.mixer__stage { padding: var(--s2); min-height: 160px; }
.mixer__io {
  display: flex; align-items: center; gap: 8px;
  padding: 8px var(--s2);
  border-top: 1.5px solid var(--line);
  background: var(--card-2);
}
.mixer__ramp { display: flex; height: 44px; width: 100%; }
.mixer__ramp > span { flex: 1 1 0; }
.mixer__grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.mixer__cell {
  aspect-ratio: 1;
  display: grid; place-items: center;
  font-family: var(--font-mono);
  font-size: 9.5px;
  color: rgba(0,0,0,.55);
}
.mixer input[type="range"] { width: 100%; accent-color: var(--accent); }
.mixer input[type="color"] { width: 34px; height: 28px; border: 1px solid var(--line); padding: 0; background: none; cursor: pointer; }
.mixer canvas { display: block; width: 100%; height: 100%; }

/* ══════════════════════════════════════════════════════════
   8 · TECHNIQUE INDEX + CAPABILITY WALL cards
   ══════════════════════════════════════════════════════════ */

.techcard {
  position: relative;
  border: 1.5px solid var(--wg-line, var(--line));
  overflow: hidden;
  background: var(--card);
  height: 220px;  /* fixed, not min-height — every demo below fills it via
                     height:100% chains, which need a definite ancestor
                     height or they collapse (circular percentage) */
  display: flex;
  flex-direction: column;
}
.techcard__demo { flex: 1; position: relative; overflow: hidden; }
.techcard__bar {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px;
  border-top: 1.5px solid var(--line);
  background: var(--card-2);
}
.techcard__cost {
  margin-left: auto;
  display: flex; gap: 2px;
}
.techcard__cost i { width: 5px; height: 11px; background: var(--line); display: block; }
.techcard__cost i.is-on { background: var(--accent-ink); }
.techcard__src {
  display: none;
  position: absolute; inset: 0;
  background: var(--ink, #14171c);
  color: #cfe3ff;
  z-index: 5;
  overflow: auto;
  padding: var(--s2);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.6;
  white-space: pre-wrap;
}
.techcard.is-src-open .techcard__src { display: block; }

.capwall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.capcell {
  background: var(--card);
  padding: var(--s2);
  min-height: 150px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.capcell__demo { flex: 1; display: flex; align-items: center; justify-content: center; min-height: 60px; }
.capcell__row { display: flex; align-items: center; gap: 6px; }
.capbadge {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: .06em;
  padding: 2px 5px;
  border: 1px solid var(--line);
  text-transform: uppercase;
}
.capbadge--baseline { color: #16A06A; border-color: #16A06A; }
.capbadge--limited { color: #C98A0F; border-color: #C98A0F; }
.capbadge--new { color: var(--accent-ink); border-color: var(--accent); }

/* ══════════════════════════════════════════════════════════
   9 · JUDGMENT — do/don't
   ══════════════════════════════════════════════════════════ */

.dodont { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5px; background: var(--line); border: 1.5px solid var(--line); }
.dodont__cell { background: var(--card); padding: var(--s2); position: relative; }
.dodont__cell--bad { filter: saturate(.7); }
.dodont__tag {
  position: absolute; top: 8px; left: 8px;
  width: 18px; height: 18px;
  display: grid; place-items: center;
  font-family: var(--font-mono); font-weight: 700; font-size: 11px;
  border-radius: 50%;
  z-index: 2;
}
.dodont__cell--good .dodont__tag { background: #16A06A; color: #fff; }
.dodont__cell--bad .dodont__tag { background: #E5484D; color: #fff; }
@media (max-width: 640px) { .dodont { grid-template-columns: 1fr; } }

/* ══════════════════════════════════════════════════════════
   10 · GUARDS
   ══════════════════════════════════════════════════════════ */

@media (max-width: 700px) {
  .rack__grid, .rack__grid--wide { grid-template-columns: 1fr; }
  .wingopen__h { font-size: var(--step-6); }
  .wingopen__ghost { display: none; }
  .pintray { display: none; }
  .atlas-rail { top: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .cue__t, .rail-sw, .rail-glyph, .seam__to, .seam__from, .cue__mark { transition-duration: 1ms !important; animation: none !important; }
  .seam--wipe .seam__to, .seam--invert .seam__to, .seam--dissolve .seam__to, .seam--bleed .seam__to {
    animation: none !important; clip-path: inset(0 0 0 0) !important; opacity: 1 !important;
  }
}

@media (prefers-contrast: more) {
  .cue__t:popover-open, .cue__t.is-shown { border-width: 2px; }
}

/* ══════════════════════════════════════════════════════════
   11 · LADDER — one variable, stepped in order (mode 2, §6)
   ══════════════════════════════════════════════════════════ */

.ladder { display: flex; align-items: flex-end; gap: var(--s3); flex-wrap: wrap; padding: var(--s3) 0; }
.ladder__step { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ladder__demo { display: flex; align-items: flex-end; justify-content: center; min-height: 70px; }

.elev-demo {
  width: 64px; height: 64px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: 0 calc(var(--e) * 1px) calc(var(--e) * 5px) calc(var(--e) * -2px) rgba(0,0,0,calc(.08 + var(--e) * .05));
}

/* ══════════════════════════════════════════════════════════
   12 · WHOLE-PAGE ARCHETYPE thumbnails (Wing III)
   ══════════════════════════════════════════════════════════ */

.archetype {
  aspect-ratio: 4/3;
  border: 1.5px solid var(--line);
  background: var(--sp-bg, #fff);
  padding: 6px;
  display: grid;
  gap: 3px;
}
.archetype i { display: block; background: var(--sp-line, rgba(0,0,0,.14)); }
.archetype--bento { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.archetype--bento i:first-child { grid-row: 1/3; background: var(--sp-acc, #888); }
.archetype--split { grid-template-columns: 1.4fr 1fr; }
.archetype--split i:first-child { background: var(--sp-acc, #888); }
.archetype--collage { grid-template-columns: repeat(3,1fr); grid-template-rows: repeat(3,1fr); }
.archetype--collage i:nth-child(1) { grid-column: 1/3; grid-row: 1/3; background: var(--sp-acc, #888); }
.archetype--broken { grid-template-columns: repeat(5,1fr); grid-template-rows: repeat(3,1fr); }
.archetype--broken i:nth-child(1) { grid-column: 1/4; grid-row: 1/3; background: var(--sp-acc, #888); }
.archetype--broken i:nth-child(2) { grid-column: 4/6; grid-row: 1/2; }
.archetype--broken i:nth-child(3) { grid-column: 4/6; grid-row: 2/4; }
.archetype--broken i:nth-child(4) { grid-column: 1/4; grid-row: 3/4; }
.archetype--stack { grid-template-rows: repeat(4,1fr); }
.archetype--stack i:first-child { background: var(--sp-acc, #888); }
.archetype--full { grid-template-rows: 1fr; }
.archetype--full i { background: var(--sp-acc, #888); }

.footer-demo {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s2);
  padding-top: var(--s2);
  border-top: 1.5px solid var(--sp-line, var(--line));
}
.footer-demo__col { display: flex; flex-direction: column; gap: 5px; }
.footer-demo__col span { height: 8px; width: 70%; background: var(--sp-line, rgba(0,0,0,.14)); }
.footer-demo__col span:first-child { width: 45%; background: var(--sp-fg, #333); opacity: .5; }

/* ══════════════════════════════════════════════════════════
   13 · WING IV — technique motion primitives
   ══════════════════════════════════════════════════════════ */

.tk-marquee { display: flex; overflow: hidden; white-space: nowrap; }
.tk-marquee__track { display: flex; gap: 2ch; animation: tk-scroll 12s linear infinite; }
.tk-marquee:hover .tk-marquee__track { animation-play-state: paused; }
@keyframes tk-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .tk-marquee__track { animation: none; } }

.tk-mag { display: inline-flex; align-items: center; justify-content: center; will-change: transform; }

.tk-spot { position: relative; overflow: hidden; cursor: crosshair; height: 100%; background: #0A0A0A; }
.tk-spot__mask {
  position: absolute; inset: 0;
  background: radial-gradient(120px circle at var(--mx,50%) var(--my,50%), rgba(255,255,255,.9), transparent 70%);
  mix-blend-mode: soft-light;
}
.tk-spot__txt { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; }

.tk-tilt { perspective: 600px; }
.tk-tilt__card {
  width: 100%; height: 100%;
  background: var(--card-2);
  border: 1px solid var(--line);
  transform: rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg));
  transition: transform 120ms var(--ease-out);
  display: grid; place-items: center;
}

.tk-scramble { font-family: var(--font-mono); font-size: 15px; letter-spacing: .04em; }

.tk-flap { display: flex; gap: 3px; }
.tk-flap__d { width: 22px; height: 30px; background: #0A0A0A; color: #fff; border-radius: 2px; display: grid; place-items: center; font-family: var(--font-mono); font-weight: 700; overflow: hidden; }

.tk-clip {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, #6C5CE7, #29E7CD);
  clip-path: circle(20% at 30% 30%);
  transition: clip-path 900ms var(--ease-inout);
}
.techcard:hover .tk-clip, .techcard:focus-within .tk-clip { clip-path: circle(75% at 50% 50%); }
@media (prefers-reduced-motion: reduce) { .tk-clip { transition: none; clip-path: circle(75% at 50% 50%); } }

.tk-sticky { height: 100%; overflow-y: auto; position: relative; }
.tk-sticky__card { position: sticky; top: 8px; margin: 8px; padding: 10px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.tk-sticky__card + .tk-sticky__card { margin-top: 60px; }

.tk-hscroll { display: flex; gap: 8px; overflow-x: auto; height: 100%; align-items: center; padding: 0 8px; scroll-snap-type: x proximity; }
.tk-hscroll i { flex: 0 0 60px; height: 70%; background: var(--sp-acc, #888); scroll-snap-align: center; }

.tk-blend { position: relative; height: 100%; }
.tk-blend i { position: absolute; inset: 0; }
.tk-blend i:nth-child(1) { background: #FF5C35; }
.tk-blend i:nth-child(2) { background: #1C3F94; mix-blend-mode: difference; }

.tk-grain { position: relative; height: 100%; background: linear-gradient(135deg,#6C5CE7,#FF5C35); }
.tk-grain::after {
  content: ""; position: absolute; inset: 0; opacity: .35; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.tk-particles { position: relative; height: 100%; background: #06090C; }
.tk-particles canvas { width: 100%; height: 100%; display: block; }

.tk-physics { position: relative; height: 100%; background: var(--card-2); overflow: hidden; }
.tk-physics canvas { width: 100%; height: 100%; display: block; }

.tk-generative canvas { width: 100%; height: 100%; display: block; }

.tk-flip { display: flex; align-items: center; justify-content: center; height: 100%; gap: 16px; }
.tk-flip__box { width: 40px; height: 40px; background: var(--sp-acc, #888); transition: transform 500ms var(--ease-spring); }
.tk-flip__box.is-moved { transform: translateX(80px) scale(1.6); }

.tk-vt { display: flex; align-items: center; justify-content: center; height: 100%; }

/* ══════════════════════════════════════════════════════════
   14 · WING VI — accessibility & performance showcase
   ══════════════════════════════════════════════════════════ */

.focus-gallery { display: flex; gap: var(--s2); flex-wrap: wrap; padding: var(--s2) 0; }
.focus-demo { padding: 8px 14px; border: 1.5px solid var(--line); background: var(--card); cursor: pointer; font-family: var(--font-mono); font-size: 11px; }
.focus-demo--ring:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.focus-demo--glow:focus-visible { outline: none; box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 35%, transparent); }
.focus-demo--underline:focus-visible { outline: none; box-shadow: inset 0 -3px 0 var(--accent); }
.focus-demo--corner:focus-visible { outline: none; border-color: var(--accent); border-style: dashed; }

.perfbar-row { display: flex; flex-direction: column; gap: 6px; }
.perfbar { display: flex; align-items: center; gap: 8px; }
.perfbar__track { flex: 1; height: 6px; background: var(--line); position: relative; }
.perfbar__fill { position: absolute; inset: 0; background: var(--accent-ink); }

/* ══════════════════════════════════════════════════════════
   15 · RAIL STATES driven by atlas.js — squint, density, source
   ══════════════════════════════════════════════════════════ */

.atlas-squint .wing :is(.spec, .techcard, .mixer, .archetype, .dodont, .capwall, .ladder__demo) {
  filter: blur(7px);
  transition: filter 200ms var(--ease-out);
}
.atlas-squint .wing :is(.spec, .techcard, .mixer, .archetype, .dodont, .capwall, .ladder__demo):hover,
.atlas-squint .wing :is(.spec, .techcard, .mixer, .archetype, .dodont, .capwall, .ladder__demo):focus-within {
  filter: none;
}

:root.atlas-compact .rack__grid, :root.atlas-compact .rack__grid--wide, :root.atlas-compact .rack__grid--wall { gap: 6px; }
:root.atlas-compact .rack { margin-top: var(--s5); }
:root.atlas-compact .spec__stage { padding: 14px; }

.spec__srcbox {
  display: none;
  position: absolute; inset: 0;
  z-index: 8;
  margin: 0;
  background: #10131a;
  color: #cfe3ff;
  overflow: auto;
  padding: 12px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  cursor: pointer;
}
.spec.is-src-open .spec__srcbox { display: block; }
.spec.is-src-open .spec__stage { visibility: hidden; }

/* ══════════════════════════════════════════════════════════
   16 · SEARCH PALETTE (⌘K)
   ══════════════════════════════════════════════════════════ */

.palette {
  display: none;
  position: fixed; inset: 0;
  z-index: 90;
  background: color-mix(in srgb, var(--ink, #000) 55%, transparent);
  padding: 10vh 20px 0;
}
.palette.is-open { display: block; }
.palette__box {
  max-width: 560px; margin: 0 auto;
  background: var(--card);
  border: 1.5px solid var(--draft);
  box-shadow: var(--shadow);
  max-height: 70vh;
  display: flex;
  flex-direction: column;
}
.palette__input {
  border: 0;
  border-bottom: 1.5px solid var(--line);
  background: transparent;
  color: var(--text);
  padding: 16px;
  font-family: var(--font-mono);
  font-size: 15px;
}
.palette__input:focus { outline: none; }
.palette__list { list-style: none; margin: 0; padding: 6px; overflow: auto; }
.palette__list li a {
  display: flex; align-items: baseline; gap: 10px;
  padding: 9px 10px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 12.5px;
}
.palette__list li a:hover, .palette__list li a.is-sel { background: var(--card-2); color: var(--accent-ink); }
.palette__list li a span.tag { margin-left: auto; color: var(--muted); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }

/* ══════════════════════════════════════════════════════════
   17 · WING OPENER / ATLAS ENTRY refinements
   ══════════════════════════════════════════════════════════ */

.atlas-legend-wrap { margin: var(--s4) 0 0; }
.atlas-entry {
  min-height: 56vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--s2);
  position: relative;
}
.atlas-entry__no { font-family: var(--font-mono); font-size: var(--step-1); color: var(--accent-ink); letter-spacing: .1em; }
.atlas-entry__h { font-size: var(--step-7); font-weight: 560; line-height: .96; letter-spacing: -.02em; margin: 0; }
.atlas-entry__sub { font-family: var(--font-mono); font-size: var(--step--1); color: var(--muted); max-width: 46ch; }

@media (max-width: 700px) {
  .palette { padding-top: 6vh; }
  .atlas-entry__h { font-size: var(--step-6); }
}

/* ══════════════════════════════════════════════════════════
   18 · WING IV — round 2 technique primitives
   ══════════════════════════════════════════════════════════ */

.tk-wordmask { display: flex; flex-wrap: wrap; gap: .35em; align-items: center; justify-content: center; height: 100%; font-family: var(--font-display); font-size: 20px; padding: 0 12px; }
.tk-wordmask span { opacity: .15; filter: blur(3px); }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .techcard:hover .tk-wordmask span, .techcard:focus-within .tk-wordmask span { animation: tk-wordreveal 900ms var(--ease-out) both; }
    .tk-wordmask span:nth-child(1) { animation-delay: 0ms !important; }
    .tk-wordmask span:nth-child(2) { animation-delay: 80ms !important; }
    .tk-wordmask span:nth-child(3) { animation-delay: 160ms !important; }
    .tk-wordmask span:nth-child(4) { animation-delay: 240ms !important; }
    .tk-wordmask span:nth-child(5) { animation-delay: 320ms !important; }
    .tk-wordmask span:nth-child(6) { animation-delay: 400ms !important; }
  }
}
@keyframes tk-wordreveal { to { opacity: 1; filter: blur(0); } }
@media (prefers-reduced-motion: reduce) { .tk-wordmask span { opacity: 1; filter: none; } }

.tk-zpar { position: relative; height: 100%; overflow: hidden; background: #0d1117; }
.tk-zpar i { position: absolute; border-radius: 50%; }
.tk-zpar .l1 { width: 120px; height: 120px; background: #1C3F94; left: -20px; top: -20px; opacity: .5; }
.tk-zpar .l2 { width: 70px; height: 70px; background: #FF5C35; right: 20%; top: 40%; opacity: .7; }
.tk-zpar .l3 { width: 34px; height: 34px; background: #29E7CD; left: 45%; bottom: 10%; }
.techcard:hover .tk-zpar .l1, .techcard:focus-within .tk-zpar .l1 { transform: translateY(-6px); }
.techcard:hover .tk-zpar .l2, .techcard:focus-within .tk-zpar .l2 { transform: translateY(6px); }
.techcard:hover .tk-zpar .l3, .techcard:focus-within .tk-zpar .l3 { transform: translateY(-12px); }
.tk-zpar i { transition: transform 400ms var(--ease-out); }

.tk-dof { display: flex; align-items: center; justify-content: center; gap: 20px; height: 100%; font-family: var(--font-mono); font-size: 14px; }
.tk-dof__b { filter: blur(4px); transition: filter 300ms var(--ease-out); }
.techcard:hover .tk-dof__b, .techcard:focus-within .tk-dof__b { filter: blur(0); }

.tk-trail { position: relative; height: 100%; background: #14101f; display: grid; place-items: center; overflow: hidden; cursor: none; }
.tk-trail__dot { position: absolute; width: 16px; height: 16px; border-radius: 50%; background: #6C5CE7; left: 50%; top: 50%; transform: translate(-50%, -50%); pointer-events: none; transition: left 140ms linear, top 140ms linear; }

.tk-drag { position: relative; height: 100%; background: var(--card-2); overflow: hidden; }
.tk-drag__card { position: absolute; left: 50%; top: 50%; width: 60px; height: 40px; margin: -20px 0 0 -30px; background: #FF5C35; color: #fff; display: grid; place-items: center; font-family: var(--font-mono); font-size: 10px; cursor: grab; touch-action: none; }
.tk-drag__card:active { cursor: grabbing; }

.tk-oversized { height: 100%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: min(12vw, 4.2rem); letter-spacing: -.03em; }

.tk-texttexture { height: 100%; display: flex; align-items: center; overflow: hidden; word-spacing: 6px; line-height: 1.6; padding: 0 8px; color: color-mix(in srgb, currentColor 16%, transparent); font-family: var(--font-mono); font-size: 11px; }

.tk-hmarq { height: 100%; display: flex; align-items: center; overflow: hidden; white-space: nowrap; }
.tk-hmarq__track { display: inline-block; animation: tk-scroll 8s linear infinite; animation-play-state: paused; }
.techcard:hover .tk-hmarq__track, .techcard:focus-within .tk-hmarq__track { animation-play-state: running; }
@media (prefers-reduced-motion: reduce) { .tk-hmarq__track { animation: none; } }

.tk-halftone { height: 100%; background-color: var(--card-2); background-image: radial-gradient(circle, var(--text) 30%, transparent 31%); background-size: 7px 7px; opacity: .7; }

.tk-mesh { height: 100%; background: #0c0c14 radial-gradient(at 20% 20%, #FF5C35 0, transparent 55%), radial-gradient(at 80% 30%, #6C5CE7 0, transparent 55%), radial-gradient(at 50% 85%, #29E7CD 0, transparent 55%); }

.tk-chroma { height: 100%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 26px; text-shadow: -2px 0 #E5484D, 2px 0 #29E7CD; }

.tk-linedraw { display: grid; place-items: center; height: 100%; color: var(--accent-ink); }
.tk-linedraw path { stroke-dasharray: 300; stroke-dashoffset: 300; }
@media (prefers-reduced-motion: no-preference) {
  .techcard:hover .tk-linedraw path, .techcard:focus-within .tk-linedraw path { animation: tk-draw 1.1s var(--ease-out) forwards; }
}
@keyframes tk-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .tk-linedraw path { stroke-dashoffset: 0; } }

.tk-diag { position: relative; height: 100%; }
.tk-diag i { position: absolute; inset: 0; }
.tk-diag i:nth-child(1) { background: #1C3F94; }
.tk-diag i:nth-child(2) { background: #FF5C35; clip-path: polygon(0 12%, 100% 0, 100% 100%, 0 88%); }

.tk-bento { display: flex; gap: 4px; height: 100%; padding: 8px; }
.tk-bento i { flex: 1; background: var(--card-2); border: 1px solid var(--line); }
.tk-bento__hot { background: var(--accent-ink) !important; }

.tk-splitscroll { display: flex; height: 100%; gap: 1px; background: var(--line); font-family: var(--font-mono); font-size: 10px; }
.tk-splitscroll div { flex: 1; overflow-y: auto; background: var(--card); padding: 6px; }
