/* ═══════════════════════════════════════════════════════════════════════════
   DOMINION // TERMINAL — the whole visual system, one file.

   Everything here is read off his mark: a monochrome glyph, blown white on
   crushed black, torn into displaced horizontal bands, with a halftone grain
   inside the strokes and hard shards spiking off the mass.

   ★★★★★ THERE IS NO HUE IN THIS STYLESHEET AND THERE MUST NEVER BE ONE.
   His mark contains none, so the site carries none — not "monochrome plus one
   accent", zero. That deletes the whole failure class where two status colours
   land 1.2:1 apart on a dark ground and nobody can tell them apart. Status is
   carried by, in order: the WORD, then FILL, then HATCHING, then a BLOOM.
   If a future edit needs "just one accent colour", the answer is a different
   fill or a different line, never a hue.

   Sections
     1  tokens          6  panels + the instrument frame
     2  reset           7  data tables + readouts
     3  type            8  status vocabulary (no colour)
     4  the four marks  9  controls
     5  chrome         10  page furniture + motion + responsive
   ═══════════════════════════════════════════════════════════════════════════ */

/* ── 1. tokens ───────────────────────────────────────────────────────────── */
:root {
  /* ground */
  --void:      #000000;
  --ground:    #050506;
  --panel:     #0a0a0c;
  --panel-up:  #101014;
  --panel-hi:  #16171b;

  /* line */
  --line:      #1e1f25;
  --line-up:   #2b2c34;
  --line-hot:  #4a4c56;

  /* ink — every value below is measured against --panel (#0a0a0c).
     ★ The instrument labels on this site are 9–11px mono, which is exactly the
       size a "muted" grey stops being readable at. So the whole ladder sits
       ABOVE 4.5:1 down to --t-dim, and only --t-off (disabled states and the
       drawn bracket glyphs) is allowed to fall below it. */
  --t-hi:   #f4f5f7;   /* 17.9:1  headings, live values                    */
  --t-body: #d3d5db;   /* 13.3:1  body copy                                */
  --t-sec:  #9ea0aa;   /*  7.0:1  secondary, labels                        */
  --t-ter:  #8a8c95;   /*  5.8:1  tertiary                                 */
  --t-dim:  #7a7c85;   /*  4.6:1  the smallest instrument labels           */
  --t-off:  #55565d;   /*  2.7:1  DISABLED + drawn punctuation ONLY        */
  --blown:  #ffffff;   /*         live. earns a bloom.                     */

  /* geometry — no radius anywhere in this world; corners are CUT */
  --cut:    14px;
  --cut-sm: 8px;
  --hair:   1px;

  /* rhythm */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px;
  --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;
  --s9: 96px; --s10: 128px;

  /* type */
  --display: "Archivo", "Archivo Expanded", system-ui, sans-serif;
  --ui:      "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --data:    "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  /* motion — one authored moment (the register snap), everything else quiet */
  --quick: 120ms cubic-bezier(.22,.61,.36,1);
  --snap:  620ms cubic-bezier(.16,1,.3,1);

  /* the four marks, as reusable paint */
  --halftone: radial-gradient(circle at 50% 50%, rgba(255,255,255,.30) .75px, transparent .9px);
  --hatch: repeating-linear-gradient(45deg,
             transparent 0 3px, rgba(255,255,255,.16) 3px 4px);
  --lit-edge: inset 0 1px 0 rgba(255,255,255,.16);
  --crush:    0 24px 48px -28px #000, 0 2px 0 rgba(0,0,0,.9);

  --shell: 1560px;
  --measure: 68ch;
}

/* Self-hosted so the site downloads nothing from anyone. Archivo carries a
   width axis, which is what lets one family be both the wide display voice
   and the UI voice without a second file. */
@font-face {
  font-family: "Archivo"; font-style: normal; font-weight: 100 900;
  font-stretch: 62% 125%; font-display: swap;
  src: url("fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Archivo"; font-style: normal; font-weight: 100 900;
  font-stretch: 62% 125%; font-display: swap;
  src: url("fonts/archivo-latinext.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800;
  font-display: swap; src: url("fonts/jbmono-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800;
  font-display: swap; src: url("fonts/jbmono-latinext.woff2") format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* ── 2. reset ────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-color: var(--line-up) var(--void); }
body {
  margin: 0;
  background: var(--ground);
  color: var(--t-body);
  font: 400 15px/1.62 var(--ui);
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
/* ★ [hidden] WINS, SITE-WIDE. The UA's [hidden]{display:none} loses to ANY
   author `display` — .tool, .who-btn, .lb-wx and every flex/grid box — so on the
   live site a signed-in visitor saw BOTH the Steam button and their own chip,
   the anonymous page showed an em-dash chip, and the livebar's weather cell
   stayed on screen after the script hid it (2026-08-22). Every page root had
   re-asserted this for itself; the chrome and the livebar never did. One rule,
   once, for all of them — no page needs its own copy again. */
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible {
  outline: 2px solid var(--blown);
  outline-offset: 2px;
}
::selection { background: var(--blown); color: var(--void); }

.skip {
  position: fixed; left: var(--s4); top: -100px; z-index: 200;
  padding: 10px 18px; background: var(--blown); color: var(--void);
  font: 700 11px/1 var(--data); letter-spacing: .18em; text-transform: uppercase;
  transition: top var(--quick);
}
.skip:focus { top: var(--s4); }
.vh {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ── 3. type ─────────────────────────────────────────────────────────────── */
.display {
  font-family: var(--display);
  font-weight: 800;
  font-stretch: 112%;
  letter-spacing: -.035em;
  line-height: .86;
  text-transform: uppercase;
  color: var(--t-hi);
  margin: 0;
}
.d1 { font-size: clamp(52px, 9.2vw, 132px); }
.d2 { font-size: clamp(38px, 5.4vw, 74px); }
.d3 { font-size: clamp(26px, 3.1vw, 42px); }

/* The instrument label. In this world a bracketed mono label IS the heading —
   it is never an eyebrow sitting above a second, larger heading. */
.inst {
  font: 700 11px/1 var(--data);
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--t-sec);
  display: flex; align-items: center; gap: 10px;
  margin: 0;
}
.inst::before { content: "["; color: var(--t-dim); }
.inst::after  { content: "]"; color: var(--t-dim); margin-right: auto; }
.inst.plain::before, .inst.plain::after { content: none; }

.lede {
  font-size: clamp(16px, 1.35vw, 19px);
  line-height: 1.55;
  color: var(--t-sec);
  max-width: var(--measure);
  margin: 0;
}
.copy { max-width: var(--measure); color: var(--t-body); }
.copy p { margin: 0 0 var(--s4); }
.copy p:last-child { margin-bottom: 0; }
.mono { font-family: var(--data); font-variant-numeric: tabular-nums; }
.num  { font: 500 inherit/1 var(--data); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
strong, b { font-weight: 700; color: var(--t-hi); }

/* ── 4. the four marks ───────────────────────────────────────────────────────
   Every identity device on this site is one of four things lifted straight off
   the glyph. If a new element needs "some visual interest", it gets one of
   these, not a fifth invention. */

/* 4a. TEAR — a heading arrives out of register and snaps in. The bands are
   real clipped copies, so the text stays selectable and screen-readable; the
   copies are aria-hidden. */
/* vertical-align:top, not baseline: an inline-block on a baseline drags the
   parent's descent into the line box and opens a ~70px hole under every
   display heading on the site. */
.tear { position: relative; display: inline-block; vertical-align: top; isolation: isolate; }
.tear > .band {
  position: absolute; inset: 0; pointer-events: none;
  color: var(--t-hi); white-space: pre;
}
.tear > .band:nth-child(1) { clip-path: inset(0 0 82% 0); }
.tear > .band:nth-child(2) { clip-path: inset(19% 0 62% 0); }
.tear > .band:nth-child(3) { clip-path: inset(39% 0 43% 0); }
.tear > .band:nth-child(4) { clip-path: inset(58% 0 24% 0); }
.tear > .band:nth-child(5) { clip-path: inset(77% 0 0 0); }
.tear.armed > .band { transform: translateX(var(--dx, 0)); }
.tear.snap  > .band { transform: translateX(0); transition: transform var(--snap); }
.tear.snap  > .band:nth-child(2) { transition-delay: 40ms; }
.tear.snap  > .band:nth-child(3) { transition-delay: 80ms; }
.tear.snap  > .band:nth-child(4) { transition-delay: 30ms; }
.tear.snap  > .band:nth-child(5) { transition-delay: 95ms; }

/* 4b. HALFTONE — the grain inside his strokes, as a fill. */
.halftone {
  background-image: var(--halftone);
  background-size: 3px 3px;
}

/* 4c. SHARD — the hard slivers that spike off the mass of the glyph. Drawn
   with a repeating gradient at a seeded set of widths so they read as debris
   rather than as a dashed border. */
.shard {
  height: 3px; border: 0; margin: 0;
  background:
    linear-gradient(90deg, var(--line-hot) 0 42px, transparent 42px 52px,
      var(--line-up) 52px 71px, transparent 71px 96px,
      var(--line-hot) 96px 103px, transparent 103px 137px,
      var(--line-up) 137px 168px, transparent 168px 179px,
      var(--line-up) 179px 186px, transparent 186px);
  background-size: 214px 1px;
  background-position: 0 1px;
  background-repeat: repeat-x;
  opacity: .9;
}
.shard.tall { height: 6px; background-position: 0 2px; }

/* 4d. CUT — corners are cut, never rounded. */
.cut  { clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut))); }
.cut-sm { clip-path: polygon(0 0, calc(100% - var(--cut-sm)) 0, 100% var(--cut-sm), 100% 100%, var(--cut-sm) 100%, 0 calc(100% - var(--cut-sm))); }

/* ── 5. chrome ───────────────────────────────────────────────────────────── */
.shell { width: min(100% - var(--s6), var(--shell)); margin-inline: auto; }

.chrome {
  position: sticky; top: 0; z-index: 90;
  background: linear-gradient(180deg, rgba(5,5,6,.97) 60%, rgba(5,5,6,.86));
  backdrop-filter: blur(14px) saturate(0);
  border-bottom: var(--hair) solid var(--line);
}
.chrome-a, .chrome-b {
  display: flex; align-items: center; gap: var(--s4);
  width: min(100% - var(--s6), var(--shell)); margin-inline: auto;
}
.chrome-a { height: 62px; }
.chrome-b {
  min-height: 40px; padding-bottom: 6px;
  border-top: var(--hair) solid var(--line);
  padding-top: 6px; flex-wrap: wrap;
}

.brand { display: flex; align-items: center; gap: 12px; padding: 4px 0; }
.brand img { width: 28px; height: 34px; object-fit: contain; }
.brand-txt { display: grid; gap: 3px; }
.brand-txt b {
  font-family: var(--display); font-weight: 800; font-stretch: 112%;
  font-size: 15px; letter-spacing: .01em; line-height: 1;
  text-transform: uppercase; color: var(--t-hi);
}
.brand-txt span {
  font: 400 9px/1 var(--data); letter-spacing: .28em;
  text-transform: uppercase; color: var(--t-dim);
}

/* ★ THE NAV WRAPS. It must never be put on overflow-x with a hidden
   scrollbar: that clips real pages out of existence with no gesture a mouse
   can make to reach them, and it fails UPWARD — a wider monitor shows less.
   See feedback_a_clipped_scroll_container_hides_navigation_and_fails_upward. */
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; min-width: 0; }
.nav a {
  position: relative; flex: 0 1 auto; min-width: 0;
  padding: 7px 10px;
  font: 500 11px/1 var(--data); letter-spacing: .15em; text-transform: uppercase;
  color: var(--t-ter); white-space: nowrap;
  transition: color var(--quick), background var(--quick);
}
.nav a i { font-style: normal; color: var(--t-off); transition: color var(--quick); }
.nav a:hover { color: var(--t-hi); background: var(--panel-up); }
.nav a:hover i { color: var(--t-sec); }
.nav a[aria-current="page"] { color: var(--blown); }
.nav a[aria-current="page"] i { color: var(--blown); }
/* the active tab holds a permanent 1px displacement — the mark's own defect */
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 10px; right: 10px; bottom: 1px;
  height: 2px; background: var(--blown);
  box-shadow: 3px 2px 0 -1px rgba(255,255,255,.45), -5px -1px 0 -1px rgba(255,255,255,.28);
}

.chrome-tools { display: flex; align-items: center; gap: var(--s2); margin-left: auto; }

.tool {
  display: inline-flex; align-items: center; gap: 7px;
  height: 32px; padding: 0 12px;
  background: transparent; border: var(--hair) solid var(--line-up);
  font: 500 10px/1 var(--data); letter-spacing: .18em; text-transform: uppercase;
  color: var(--t-sec); cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 7px 100%, 0 calc(100% - 7px));
  transition: color var(--quick), border-color var(--quick), background var(--quick);
}
.tool:hover { color: var(--t-hi); border-color: var(--line-hot); background: var(--panel-up); }
.tool[aria-pressed="true"] { color: var(--void); background: var(--blown); border-color: var(--blown); }
.tool svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 1.6; }
.tool kbd {
  font: 500 10px/1 var(--data); padding: 3px 4px; color: var(--t-dim);
  border: var(--hair) solid var(--line-up);
}

.tool.signin { color: var(--void); background: var(--blown); border-color: var(--blown); font-weight: 700; }
.tool.signin:hover { background: var(--t-hi); color: var(--void); }

/* profile pill + dropdown */
.who { position: relative; }
.who-btn { display: inline-flex; align-items: center; gap: 9px; height: 32px; padding: 0 10px 0 4px;
  background: var(--panel-up); border: var(--hair) solid var(--line-up); cursor: pointer;
  clip-path: polygon(0 0, calc(100% - 7px) 0, 100% 7px, 100% 100%, 7px 100%, 0 calc(100% - 7px)); }
.who-btn img { width: 24px; height: 24px; object-fit: cover; filter: grayscale(1) contrast(1.15); }
.who-btn b { font: 600 11px/1 var(--ui); color: var(--t-hi); letter-spacing: .01em; }
.who-menu {
  position: absolute; right: 0; top: calc(100% + 8px); width: 250px; z-index: 95;
  background: var(--panel-up); border: var(--hair) solid var(--line-up);
  box-shadow: var(--crush), var(--lit-edge); padding: 6px;
}
.who-menu[hidden] { display: none; }
.who-menu a, .who-menu button {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; padding: 10px 10px; background: none; border: 0; text-align: left; cursor: pointer;
  font: 500 12px/1.2 var(--ui); color: var(--t-body);
}
.who-menu a:hover, .who-menu button:hover { background: var(--panel-hi); color: var(--t-hi); }
.who-menu .k { font: 400 10px/1 var(--data); letter-spacing: .14em; text-transform: uppercase; color: var(--t-dim); }

.burger { display: none; }

/* ── 6. panels + the instrument frame ────────────────────────────────────── */
.panel {
  position: relative;
  background: var(--panel);
  border: var(--hair) solid var(--line);
  box-shadow: var(--lit-edge), var(--crush);
}
.panel.up { background: var(--panel-up); }
.panel-h {
  display: flex; align-items: center; gap: var(--s3);
  padding: 12px var(--s4);
  border-bottom: var(--hair) solid var(--line);
  background-image: var(--halftone); background-size: 3px 3px;
  background-blend-mode: overlay;
}
.panel-h .inst { flex: 1 1 auto; min-width: 0; }
.panel-b { padding: var(--s4); }
.panel-b.flush { padding: 0; }
.panel-f {
  padding: 7px var(--s4); border-top: var(--hair) solid var(--line);
  font: 400 10px/1.4 var(--data); letter-spacing: .12em; text-transform: uppercase;
  color: var(--t-dim); display: flex; gap: var(--s4); flex-wrap: wrap; align-items: center;
}
.panel-f a { display: inline-block; padding: 6px 0; color: var(--t-sec); }
.panel-f a:hover { color: var(--t-hi); }
.panel-f b { color: var(--t-hi); font-weight: 500; }

/* corner brackets — the instrument frame. Decoration only: never load-bearing,
   never the thing that tells a reader where a panel ends. */
.bracketed::before, .bracketed::after {
  content: ""; position: absolute; width: 13px; height: 13px; pointer-events: none;
  border: var(--hair) solid var(--line-hot); opacity: .8;
}
.bracketed::before { left: -1px; top: -1px; border-right: 0; border-bottom: 0; }
.bracketed::after { right: -1px; bottom: -1px; border-left: 0; border-top: 0; }

/* ── 7. data tables + readouts ───────────────────────────────────────────── */
/* A readout with eight columns cannot fit a 430px phone, and letting it push
   the DOCUMENT sideways breaks the whole page. It scrolls INSIDE its own
   panel, and it keeps a visible scrollbar — a clipped scroller with the bar
   hidden is how content becomes unreachable with no gesture that finds it
   (feedback_a_clipped_scroll_container_hides_navigation_and_fails_upward). */
.panel-b.flush { overflow-x: auto; overscroll-behavior-x: contain; }
.panel-b.flush::-webkit-scrollbar { height: 8px; }
.panel-b.flush::-webkit-scrollbar-track { background: var(--void); }
.panel-b.flush::-webkit-scrollbar-thumb { background: var(--line-hot); }
.readout { width: 100%; border-collapse: collapse; }
.readout caption { text-align: left; padding: 0 0 var(--s3); color: var(--t-ter); font-size: 12px; }
.readout th, .readout td {
  padding: 10px var(--s4); text-align: left;
  border-bottom: var(--hair) solid var(--line);
  font-variant-numeric: tabular-nums;
}
.readout thead th {
  font: 500 10px/1 var(--data); letter-spacing: .2em; text-transform: uppercase;
  color: var(--t-dim); padding-top: 12px; padding-bottom: 12px;
  border-bottom-color: var(--line-up);
}
.readout tbody tr { transition: background var(--quick); }
.readout tbody tr:hover { background: var(--panel-up); }
.readout tbody tr:last-child td { border-bottom: 0; }
.readout .ix { color: var(--t-dim); font: 400 11px/1 var(--data); width: 1%; white-space: nowrap; }
.readout .k  { color: var(--t-sec); font-size: 13px; }
.readout .v  { color: var(--t-hi); font: 500 13px/1 var(--data); }
.readout .v.live { color: var(--blown); text-shadow: 0 0 12px rgba(255,255,255,.35); }
.readout .st { width: 1%; white-space: nowrap; }
.readout td.r, .readout th.r { text-align: right; }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 9px var(--s4); align-items: baseline; }
.kv dt { font: 500 10px/1.4 var(--data); letter-spacing: .18em; text-transform: uppercase; color: var(--t-dim); }
.kv dd { margin: 0; font: 500 13px/1.4 var(--data); color: var(--t-hi); font-variant-numeric: tabular-nums; }

/* a bar that is a real measurement, not a decorative progress ring.
   It fills by scaling on the compositor, never by transitioning `width` —
   a width transition relayouts its whole row on every frame, and there are
   six of them side by side on the live page. */
@keyframes barfill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
/* display:block is load-bearing: .bar is a <span>, and height does not apply to
   a non-replaced INLINE element. Inside a grid or flex parent it is blockified
   for free and looks correct, which is why the profile and level pages were the
   only two where the bar collapsed to a 1px tick. */
.bar { display: block; height: 6px; background: var(--panel-hi); border: var(--hair) solid var(--line-up); position: relative; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--t-hi); transform-origin: left center; }
html.js .bar > i { animation: barfill var(--snap) cubic-bezier(.16,1,.3,1) both; }
.bar.blown > i { background: var(--blown); box-shadow: 0 0 10px rgba(255,255,255,.55); }
.bar.hatched > i { background-image: var(--hatch); background-color: var(--t-dim); }

/* ── 8. status vocabulary — carried WITHOUT colour ───────────────────────── */
.dot {
  width: 8px; height: 8px; flex: none; display: inline-block;
  background: var(--t-off); border: var(--hair) solid var(--line-hot);
}
.dot.live { background: var(--blown); border-color: var(--blown); box-shadow: 0 0 12px 1px rgba(255,255,255,.6); }
.dot.wait { background: transparent; border-color: var(--t-sec); }
.dot.stop { background: transparent; background-image: var(--hatch); border-color: var(--t-ter); }

.tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px;
  font: 500 10px/1 var(--data); letter-spacing: .16em; text-transform: uppercase;
  border: var(--hair) solid var(--line-up); color: var(--t-sec); white-space: nowrap;
}
.tag.on   { color: var(--void); background: var(--blown); border-color: var(--blown); font-weight: 700; }
.tag.off  { color: var(--t-off); border-color: var(--line); }
/* danger and locked are HATCHING plus the word — never a red */
.tag.warn { color: var(--t-hi); border-color: var(--t-ter); background-image: var(--hatch); }
.tag.sel  { color: var(--t-hi); border-color: var(--blown); }

.empty {
  padding: var(--s7) var(--s4); text-align: center;
  border: var(--hair) dashed var(--line-up); color: var(--t-ter);
}
.empty b { display: block; font: 700 13px/1.3 var(--data); letter-spacing: .16em; text-transform: uppercase; color: var(--t-sec); margin-bottom: 8px; }
.empty p { margin: 0 auto; max-width: 46ch; font-size: 13px; }

/* ── 9. controls ─────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 42px; padding: 0 20px; cursor: pointer;
  background: transparent; border: var(--hair) solid var(--line-hot);
  font: 600 11px/1 var(--data); letter-spacing: .2em; text-transform: uppercase;
  color: var(--t-hi);
  clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 9px 100%, 0 calc(100% - 9px));
  transition: background var(--quick), color var(--quick), border-color var(--quick);
}
.btn:hover { background: var(--panel-hi); border-color: var(--blown); }
/* GO fills. Anything that commits an action is the only filled control on a
   screen, so "which one commits" is never a colour question. */
.btn.go { background: var(--blown); border-color: var(--blown); color: var(--void); font-weight: 700; }
.btn.go:hover { background: var(--t-hi); }
.btn.danger { background-image: var(--hatch); border-color: var(--t-ter); }
.btn.danger:hover { border-color: var(--blown); background-color: var(--panel-hi); }
.btn[disabled], .btn[aria-disabled="true"] { color: var(--t-off); border-color: var(--line); cursor: not-allowed; background: none; }
.btn[disabled]:hover { background: none; border-color: var(--line); }
.btn.sm { min-height: 32px; padding: 0 13px; font-size: 10px; letter-spacing: .16em; }
.btn.wide { width: 100%; }
.btn.busy { color: var(--t-ter); pointer-events: none; }
.btn svg { width: 14px; height: 14px; stroke: currentColor; fill: none; stroke-width: 1.7; }

.field { display: grid; gap: 7px; }
.field > span {
  font: 500 10px/1 var(--data); letter-spacing: .18em; text-transform: uppercase; color: var(--t-dim);
}
.input, .select {
  height: 40px; padding: 0 12px; width: 100%;
  background: var(--void); border: var(--hair) solid var(--line-up); color: var(--t-hi);
  font: 500 13px/1 var(--data);
  transition: border-color var(--quick);
}
.input::placeholder { color: var(--t-ter); }
.input:focus, .select:focus { border-color: var(--blown); outline: none; }
.select { appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--t-sec) 50%),
                    linear-gradient(135deg, var(--t-sec) 50%, transparent 50%);
  background-position: calc(100% - 17px) 18px, calc(100% - 12px) 18px;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  padding: 7px 12px; cursor: pointer; background: none;
  border: var(--hair) solid var(--line-up);
  font: 500 10px/1 var(--data); letter-spacing: .15em; text-transform: uppercase; color: var(--t-ter);
  transition: color var(--quick), border-color var(--quick), background var(--quick);
}
.chip:hover { color: var(--t-hi); border-color: var(--line-hot); }
.chip[aria-pressed="true"] { color: var(--void); background: var(--blown); border-color: var(--blown); font-weight: 700; }

.switch {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
  padding: 12px 0; border-bottom: var(--hair) solid var(--line); cursor: pointer;
  background: none; border-left: 0; border-right: 0; border-top: 0; width: 100%; text-align: left;
}
.switch:last-child { border-bottom: 0; }
.switch > span { display: grid; gap: 3px; }
.switch b { font: 600 13px/1.2 var(--ui); color: var(--t-hi); }
.switch em { font-style: normal; font-size: 12px; color: var(--t-ter); }
.switch i {
  flex: none; width: 42px; height: 22px; position: relative;
  border: var(--hair) solid var(--line-hot); background: var(--void);
  transition: background var(--quick), border-color var(--quick);
}
.switch i::after {
  content: ""; position: absolute; inset: 3px auto 3px 3px; width: 14px;
  background: var(--t-ter); transition: transform var(--quick), background var(--quick);
}
.switch[aria-pressed="true"] i { border-color: var(--blown); background: var(--blown); }
.switch[aria-pressed="true"] i::after { transform: translateX(20px); background: var(--void); }

/* ── 10. page furniture ──────────────────────────────────────────────────── */
main { display: block; padding-bottom: var(--s10); }

.page-head {
  position: relative; padding: var(--s8) 0 var(--s6);
  border-bottom: var(--hair) solid var(--line);
  margin-bottom: var(--s7);
}
.page-head .d2 { margin-bottom: var(--s4); }
.page-head .row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: var(--s6); }
.page-head .row > .copy { flex: 1 1 380px; }
.page-head .facts { display: flex; flex-wrap: wrap; gap: var(--s6); margin-left: auto; }
.page-head .facts div { display: grid; gap: 5px; }
.page-head .facts dt, .page-head .facts .k {
  font: 500 10px/1 var(--data); letter-spacing: .2em; text-transform: uppercase; color: var(--t-dim);
}
.page-head .facts .v { font: 600 22px/1 var(--data); color: var(--t-hi); font-variant-numeric: tabular-nums; }

section { margin-bottom: var(--s8); }
.sec-h { display: flex; align-items: center; gap: var(--s4); margin-bottom: var(--s4); flex-wrap: wrap; }
.sec-h .inst { flex: 0 0 auto; }
.sec-h .rule { flex: 1 1 60px; height: 3px; }
.sec-h .side { margin-left: auto; display: flex; gap: var(--s2); align-items: center; flex-wrap: wrap; }

.grid { display: grid; gap: var(--s4); }
.g2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.split { display: grid; grid-template-columns: minmax(0,1fr) 380px; gap: var(--s5); align-items: start; }
.split.wide-right { grid-template-columns: 380px minmax(0,1fr); }

.foot {
  border-top: var(--hair) solid var(--line);
  padding: var(--s7) 0 var(--s8);
  color: var(--t-ter);
}
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0,1fr)); gap: var(--s6); }
.foot h3 { font: 700 10px/1 var(--data); letter-spacing: .22em; text-transform: uppercase; color: var(--t-sec); margin: 0 0 var(--s3); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
/* inline-block + padding so every link clears the 24px touch floor; a 13px
   text link with no padding is 14px tall and is a real miss on a phone */
.foot a { display: inline-block; padding: 5px 0; font-size: 13px; color: var(--t-ter); transition: color var(--quick); }
.foot a:hover { color: var(--t-hi); }
.foot .fine { margin-top: var(--s6); font: 400 10px/1.6 var(--data); letter-spacing: .1em; text-transform: uppercase; color: var(--t-dim); }

/* ── the step list. Lives HERE and not in home.css because three pages use
   it and one of them does not load home.css: a component defined in one
   page-stylesheet and used in another renders as an unstyled default with no
   error anywhere. ─────────────────────────────────────────────────────────── */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; }
.steps li {
  position: relative; padding: 0 0 var(--s5) var(--s7);
  border-left: var(--hair) solid var(--line);
  margin-left: 8px;
}
.steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
.steps li::before {
  counter-increment: s; content: counter(s, decimal-leading-zero);
  position: absolute; left: 0; top: -2px; transform: translateX(-50%);
  width: 30px; height: 22px; display: grid; place-items: center;
  background: var(--ground); color: var(--t-sec);
  font: 500 10px/1 var(--data); letter-spacing: .12em;
}
.steps b {
  display: block; margin-bottom: 7px;
  font-family: var(--display); font-weight: 700; font-stretch: 106%;
  font-size: 19px; letter-spacing: -.012em; color: var(--t-hi);
}
.steps p { margin: 0 0 10px; max-width: 62ch; font-size: 14px; color: var(--t-ter); }
.steps .addr {
  display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap;
  padding: 11px 14px; margin-top: 4px;
  background: var(--void); border: var(--hair) solid var(--line-up);
  color: var(--t-hi); font-size: 14px; letter-spacing: .02em;
}



/* Shared page furniture. These live in the SYSTEM sheet because more than one
   page uses them and not every one of those pages loads the same page sheet —
   a class defined in one page-stylesheet and used from another renders as an
   unstyled default with nothing anywhere reporting it. */
.page-sub { margin: 0 0 var(--s4); font: 500 11px/1.6 var(--data); letter-spacing: .22em; color: var(--t-dim); }
.mini-sub { margin: 0; font: 400 11px/1.5 var(--data); letter-spacing: .16em; text-transform: uppercase; color: var(--t-dim); }
.switches { border-top: var(--hair) solid var(--line); }

/* the honesty band — this is a preview build and its numbers are authored */
.preview-band {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  padding: 9px var(--s4); background-image: var(--hatch); background-color: var(--panel);
  border-bottom: var(--hair) solid var(--line-up);
  font: 500 10px/1.5 var(--data); letter-spacing: .14em; text-transform: uppercase; color: var(--t-sec);
}
.preview-band b { color: var(--t-hi); }

/* ── seek: the command surface ───────────────────────────────────────────── */
.seek-wrap { position: fixed; inset: 0; z-index: 140; display: grid; place-items: start center; padding-top: 12vh; }
.seek-wrap[hidden] { display: none; }
.seek-scrim { position: absolute; inset: 0; background: rgba(0,0,0,.82); backdrop-filter: blur(3px) saturate(0); }
.seek {
  position: relative; width: min(720px, calc(100% - var(--s6)));
  background: var(--panel-up); border: var(--hair) solid var(--line-hot);
  box-shadow: var(--lit-edge), 0 40px 90px -30px #000;
}
.seek-in { display: flex; align-items: center; gap: 12px; padding: 0 var(--s4); border-bottom: var(--hair) solid var(--line); }
.seek-in input { flex: 1; height: 56px; background: none; border: 0; outline: none; font: 500 15px/1 var(--data); color: var(--t-hi); }
.seek-in input::placeholder { color: var(--t-ter); }
.seek-in .inst::after { margin: 0; }
.seek-list { max-height: min(52vh, 460px); overflow-y: auto; padding: 6px; }
.seek-list li { list-style: none; }
.seek-list ul { margin: 0; padding: 0; }
.seek-row {
  display: flex; align-items: center; gap: var(--s3); width: 100%; padding: 10px 12px;
  background: none; border: 0; cursor: pointer; text-align: left; color: var(--t-body);
}
.seek-row:hover, .seek-row[aria-selected="true"] { background: var(--panel-hi); color: var(--t-hi); }
.seek-row[aria-selected="true"] { box-shadow: inset 2px 0 0 var(--blown); }
.seek-row .kind { font: 500 9px/1 var(--data); letter-spacing: .18em; text-transform: uppercase; color: var(--t-dim); width: 74px; flex: none; }
.seek-row .name { font: 500 13px/1.2 var(--ui); flex: 1; min-width: 0; }
.seek-row .name mark { background: none; color: var(--blown); text-decoration: underline; text-underline-offset: 3px; }
.seek-row .hint { font: 400 11px/1 var(--data); color: var(--t-dim); }
.seek-f { padding: 8px var(--s4); border-top: var(--hair) solid var(--line); display: flex; gap: var(--s4); flex-wrap: wrap;
  font: 400 10px/1.4 var(--data); letter-spacing: .12em; text-transform: uppercase; color: var(--t-dim); }
.seek-f kbd { border: var(--hair) solid var(--line-up); padding: 2px 5px; color: var(--t-sec); }

/* ── motion ──────────────────────────────────────────────────────────────── */
/* Entrances are ADDITIVE. With no JS and no motion the page is fully readable —
   nothing here starts at opacity 0 by default. */
.reveal { transition: opacity var(--snap), transform var(--snap); }
html.js .reveal { opacity: 0; transform: translateY(14px); }
html.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; transition-duration: 1ms !important; }
  html.js .reveal { opacity: 1; transform: none; }
  .tear.armed > .band { transform: none; }
}

/* ── responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .g4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .split, .split.wide-right { grid-template-columns: minmax(0,1fr); }
  .foot-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 860px) {
  :root { --s7: 36px; --s8: 48px; --s9: 64px; --s10: 80px; }
  .g2, .g3 { grid-template-columns: minmax(0,1fr); }
  .chrome-b { display: none; }
  .burger { display: inline-flex; }
  .brand-txt span { display: none; }
  .readout th, .readout td { padding: 9px 12px; }
  /* the tool row does not fit a phone. Seek keeps its icon, the language pair
     and the persona name go to the drawer and the profile menu — never a
     horizontal scroll, which is how a control disappears with no gesture that
     reaches it. */
  .chrome-tools { gap: 4px; }
  .chrome-tools .tool[data-seek-open] span, .chrome-tools .tool kbd { display: none; }
  .chrome-tools .tool[data-seek-open] { padding: 0 9px; }
  .chrome-tools [data-lang-opt] { display: none; }
  .who-btn b { display: none; }
  .who-btn { padding: 0 4px; }
  .brand img { width: 24px; height: 30px; }
  .brand-txt b { font-size: 13px; }
}
@media (max-width: 560px) {
  .shell, .chrome-a, .chrome-b { width: calc(100% - var(--s4)); }
  .foot-grid { grid-template-columns: minmax(0,1fr); }
  .page-head { padding-top: var(--s6); }
}

/* ── drawer (small screens) ──────────────────────────────────────────────── */
.drawer { position: fixed; inset: 0; z-index: 130; }
.drawer[hidden] { display: none; }
.drawer-scrim { position: absolute; inset: 0; background: rgba(0,0,0,.8); }
.drawer-p {
  position: absolute; right: 0; top: 0; bottom: 0; width: min(340px, 88vw);
  background: var(--panel-up); border-left: var(--hair) solid var(--line-hot);
  overflow-y: auto; padding: var(--s4);
  display: grid; gap: var(--s2); align-content: start;
}
.drawer-p a {
  padding: 13px 12px; border-bottom: var(--hair) solid var(--line);
  font: 500 12px/1 var(--data); letter-spacing: .16em; text-transform: uppercase; color: var(--t-sec);
}
.drawer-p a[aria-current="page"] { color: var(--blown); }
.drawer-p a:hover { color: var(--t-hi); background: var(--panel-hi); }
.drawer-lang { display: flex; gap: 6px; padding-top: var(--s4); }
.drawer-lang .tool { flex: 1; justify-content: center; }
