/* ════════════════════════════════════════════════════════════════════════════
   ZERO · landing/landing.css · THE LIVING SURFACE · the WHOLE CHROME is the instrument
   ────────────────────────────────────────────────────────────────────────────
   No cards. No stream pane. One full-bleed operating surface built in the Söhne
   specimen idiom — a running header line, metadata rows, hairline rules, the
   Narrow live marquee, tabular slashed-zero numerals, acid as the one signal,
   amber the operator accent, and oceans of black. The composer emits intent; the
   reducer (engage.js) recomposes the ENTIRE page per state. The surface IS the
   theater; the surface IS the stream. Loads after colors_and_type.css.

   TYPE wired to the ZERO superfamily (Söhne · Klim):
     · ZERO Wide  (display) — the claim, the instrument's hero figure
     · ZERO Mono  (data)    — every label, value, proof, the composer
     · ZERO Narrow(condensed) — the live marquee, dense tickers
   ════════════════════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
html { background: #0a0907; }
body {
  background: var(--ink-0); color: var(--bone-1);
  font-family: var(--mono); font-size: var(--fs-13);
  font-feature-settings: var(--feat-mono);
  font-variant-numeric: tabular-nums slashed-zero;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow: hidden; color-scheme: dark;
}
::selection { background: var(--amber); color: var(--ink-0); }
a { color: inherit; text-decoration: none; }

/* ── the fixed ambient stack · the Mantle · z=0 ──────────────────────────── */
.field-stack { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
.field-stack canvas { position: absolute; inset: 0; display: block; }
#field-net { mix-blend-mode: screen; }
html[data-ambient-tier="A"] .field-stack { background:
  radial-gradient(120% 90% at 50% 22%, rgba(214,166,74,0.05), transparent 60%), var(--ink-0); }

/* ── the stage · one screen · header / surface / foot ────────────────────── */
.stage {
  position: relative; z-index: 1;
  height: 100svh; width: 100%;
  display: grid; grid-template-rows: auto minmax(0,1fr) auto;
  padding: clamp(18px, 2.4vw, 30px) clamp(26px, 4.6vw, 72px) clamp(16px, 2vw, 24px);
  gap: clamp(12px, 1.8vh, 22px);
}

/* shared specimen vocabulary */
.kick { font-family: var(--mono); font-size: var(--fs-10); letter-spacing: 0.08em; text-transform: uppercase; color: var(--bone-4); font-feature-settings: var(--feat-mono); }
.v-num { font-variant-numeric: tabular-nums slashed-zero; font-feature-settings: var(--feat-mono); }

/* ════════════════════════════════════════════════════════════════════════
   ROW 1 · the running header · a chrome line (specimen header idiom)
   ════════════════════════════════════════════════════════════════════════ */
.run-head {
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: baseline; gap: clamp(14px, 2.4vw, 30px);
  padding-bottom: clamp(10px, 1.4vh, 14px); border-bottom: 1px solid var(--hair-2);
  font-family: var(--mono); font-size: var(--fs-11); letter-spacing: -0.005em; color: var(--bone-3);
}
.rh-mark { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.rh-mark .sig { width: 19px; height: 19px; flex: none; display: block; border-radius: 2px; transition: filter var(--dur-base) var(--ease-zero); }
.rh-mark .sig .sq { transition: fill var(--dur-base) var(--ease-zero); }
.rh-mark .sig .bar { transition: opacity var(--dur-base) var(--ease-zero); }
@media (prefers-reduced-motion: no-preference) {
  .sig[data-cursor-state="idle"] .bar, .sig[data-cursor-state="listening"] .bar { animation: sig-blink 1.2s steps(1) infinite; }
  .sig[data-cursor-state="thinking"] .bar { animation: sig-blink 0.4s steps(1) infinite; }
}
@keyframes sig-blink { 0%,50% { opacity: 1; } 51%,100% { opacity: 0; } }
.sig.is-exec .sq { fill: var(--acid); } .sig.is-exec { filter: drop-shadow(0 0 5px rgba(237,248,0,0.55)); }
.sig.is-halt .sq { fill: var(--red); }
.rh-mark b { font-family: var(--mono); font-weight: var(--fw-medium); color: var(--bone-0); letter-spacing: 0.02em; }
.rh-mark .rh-sub { color: var(--bone-4); }
.rh-state { font-family: var(--mono); color: var(--bone-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.rh-mode { font-family: var(--mono); font-size: var(--fs-10); letter-spacing: var(--ls-wide); text-transform: uppercase; color: var(--bone-4); white-space: nowrap; }
.rh-mode[hidden] { display: none; }
.rh-mode[data-mode-kind="sim"] { color: var(--blue); }
.rh-mode[data-mode-kind="live"] { color: var(--amber); }
.rh-mode[data-mode-kind="halt"] { color: var(--red-text); }
.rh-cov { display: inline-flex; align-items: baseline; gap: 9px; color: var(--bone-4); white-space: nowrap; font-variant-numeric: tabular-nums slashed-zero; text-transform: uppercase; letter-spacing: var(--ls-wide); font-size: var(--fs-10); }
.rh-cov b { color: var(--acid); font-weight: var(--fw-medium); }
.rh-cov .rh-div { width: 1px; height: 10px; background: var(--hair-3); align-self: center; }
.r { text-align: right; }
@media (max-width: 720px) { .run-head { grid-template-columns: auto 1fr auto; } .rh-state { display: none; } .rh-mark .rh-sub { display: none; } }

/* ════════════════════════════════════════════════════════════════════════
   ROW 2 · THE SURFACE · the middle recomposes per state
   ════════════════════════════════════════════════════════════════════════ */
.surface { display: flex; flex-direction: column; min-height: 0; }

/* the state-meta line · a running metadata row (specimen .meta idiom) ─────── */
.state-meta {
  display: none; grid-template-columns: auto auto 1fr auto; align-items: baseline; gap: clamp(14px, 2.2vw, 26px);
  padding-bottom: 12px; border-bottom: 1px solid var(--hair-2);
  font-family: var(--mono); font-size: var(--fs-11); letter-spacing: -0.005em;
}
.stage[data-mode="run"] .state-meta { display: grid; }
.sm-idx { color: var(--amber); text-transform: uppercase; letter-spacing: var(--ls-wide); font-size: var(--fs-10); white-space: nowrap; }
.sm-verb { color: var(--bone-1); white-space: nowrap; }
.sm-tier { color: var(--bone-4); text-transform: uppercase; letter-spacing: var(--ls-wide); font-size: var(--fs-10); white-space: nowrap; }
.sm-tier[hidden] { display: none; }
.sm-tier[data-tier="T1"] { color: var(--blue); } .sm-tier[data-tier="T2"] { color: var(--amber); } .sm-tier[data-tier="T3"] { color: var(--red-text); }
.sm-phase { color: var(--bone-4); text-transform: uppercase; letter-spacing: var(--ls-wide); font-size: var(--fs-10); white-space: nowrap; }

/* the dominant instrument · the ONE big object · engage.js renders into it ── */
.instrument { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: center; padding: clamp(14px, 2.4vh, 30px) 0; }
.stage[data-mode="run"] .instrument { justify-content: flex-end; }
.instrument > * { width: 100%; }

/* the rest hero · the claim is the rest-state instrument ─────────────────── */
.claim {
  font-family: var(--display); font-weight: var(--fw-fett, 800); color: var(--bone-0);
  font-size: clamp(40px, 6.8vw, 104px); line-height: 0.9; letter-spacing: -0.025em;
  font-feature-settings: var(--feat-display); margin: 0; text-wrap: balance; max-width: 16ch;
}
.claim .verb { color: var(--amber); font-style: normal; transition: opacity var(--dur-settle) var(--ease-zero); }
.claim .verb.swap { opacity: 0; }
.claim .acid { color: var(--acid); }
.rest-sub { margin: clamp(20px,3vh,32px) 0 0; max-width: 52ch; font-family: var(--mono); font-size: var(--fs-13); line-height: 1.6; color: var(--bone-4); }
.rest-sub b { color: var(--bone-2); font-weight: var(--fw-normal); }

/* ── the surface VOICE · the stream, dissolved into the room (no pane) ────── */
.voice { display: none; flex-direction: column; justify-content: flex-end; gap: 4px; min-height: clamp(58px, 9vh, 78px); padding: 10px 0 2px; }
.stage[data-mode="run"] .voice { display: flex; }
.stage[data-capture="true"] .voice { display: none; }
.voice-ghosts { display: flex; flex-direction: column; gap: 3px; }
.vg, .voice-now { display: grid; grid-template-columns: 78px 1fr; gap: 13px; align-items: baseline; font-family: var(--mono); }
.vg { font-size: var(--fs-11); opacity: 0.55; }
.vg:first-child { opacity: 0.3; }
.voice-now { font-size: var(--fs-14); }
.vk { font-size: var(--fs-10); letter-spacing: var(--ls-wide); text-transform: uppercase; color: var(--bone-5); white-space: nowrap; }
.vt { color: var(--bone-4); min-width: 0; }
.voice-now .vt { color: var(--bone-1); }
.voice-now .vk { color: var(--bone-3); }
/* kind tones · colour is redundant; the uppercase kind word always carries meaning */
.voice-now .vk[data-k="saw"] { color: var(--blue); }
.voice-now .vk[data-k="decided"] { color: var(--bone-3); }
.voice-now .vk[data-k="acting"] { color: var(--bone-1); }
.voice-now .vk[data-k="proof"] { color: var(--green); }
.voice-now .vk[data-k="refused"] { color: var(--red-text); }
.voice-now .vk[data-k="note"] { color: var(--bone-4); }
@media (prefers-reduced-motion: no-preference) {
  .voice-now { animation: voice-in var(--dur-settle) var(--ease-zero); /* motion-allow: the surface speaks · transform-only */ }
}
@keyframes voice-in { from { transform: translateY(5px); } to { transform: none; } }

/* ── the seam · a running rule + the audit guarantee · tier-coloured ──────── */
.seam { display: flex; align-items: baseline; gap: 14px; padding-top: 11px; margin-top: 2px; border-top: 1px solid var(--hair-3); min-height: 34px; }
.seam-k { font-family: var(--mono); font-weight: var(--fw-medium); font-size: var(--fs-10); letter-spacing: var(--ls-wide); text-transform: uppercase; color: var(--bone-4); flex: none; }
.seam-v { font-family: var(--mono); font-size: var(--fs-11); line-height: 1.4; color: var(--bone-3); flex: 1; min-width: 0; font-variant-numeric: tabular-nums slashed-zero; }
.seam-h { font-family: var(--mono); font-size: var(--fs-10); color: var(--acid); flex: none; opacity: 0; font-variant-numeric: tabular-nums slashed-zero; }
.stage[data-state="resolving"] .seam-h, .stage[data-state="reflecting"] .seam-h { opacity: 1; }
/* the seam rule reads the engagement tier */
.stage[data-tier="T1"] .seam { border-top-color: color-mix(in oklab, var(--blue) 45%, transparent); }
.stage[data-tier="T2"] .seam { border-top-color: color-mix(in oklab, var(--amber) 45%, transparent); }
.stage[data-tier="T3"] .seam { border-top-color: color-mix(in oklab, var(--red) 50%, transparent); }
.stage[data-state="resolving"] .seam, .stage[data-state="reflecting"] .seam { border-top-color: color-mix(in oklab, var(--green) 45%, transparent); }
.stage[data-state="refused"] .seam, .stage[data-state="halted"] .seam { border-top-color: color-mix(in oklab, var(--red) 55%, transparent); }
.stage[data-tier="T1"] .seam-k { color: var(--blue); } .stage[data-tier="T2"] .seam-k { color: var(--amber); } .stage[data-tier="T3"] .seam-k { color: var(--red-text); }
.stage[data-state="resolving"] .seam-k, .stage[data-state="reflecting"] .seam-k { color: var(--green); }
.stage[data-state="refused"] .seam-k, .stage[data-state="halted"] .seam-k { color: var(--red-text); }

/* ── the composer · a single LINE on the surface, not a box ───────────────── */
.composer-line { padding-top: 13px; margin-top: 12px; border-top: 1px solid var(--hair-3); }
.composer-line .zc { background: transparent; border-top: 0; min-width: 0; }
.composer-line .zc-stream { display: none !important; }   /* the stream lives on the SURFACE (the voice), never in a pane */
.composer-line .zc-recover { padding: 0 0 8px; }
.composer-line .zc-ambient { padding: 0 0 7px; font-size: var(--fs-10); }
.composer-line .zc-chips { padding: 0 0 6px; }
.composer-line .zc-row { padding: 2px 0 0; gap: 13px; align-items: center; }
.composer-line .zc-lead { height: 28px; }
.composer-line .zc-field { font-size: var(--fs-16); padding: 3px 0; color: var(--bone-0); }
.composer-line .zc-field::placeholder { color: var(--bone-5); }
.composer-line .zc-aff { height: 28px; }

/* the suggestions · a tracked specimen index · disclosed on engage ───────── */
.suggest { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; max-height: 0; opacity: 0; overflow: hidden; pointer-events: none;
  transition: max-height var(--dur-travel) var(--ease-zero), opacity var(--dur-settle) var(--ease-zero), margin var(--dur-travel) var(--ease-zero); }
.surface:focus-within .suggest, .composer-line:hover ~ .suggest, .suggest:hover { max-height: 120px; opacity: 1; pointer-events: auto; margin: 13px 0 0; }
.suggest .try { font-family: var(--mono); font-size: var(--fs-10); letter-spacing: var(--ls-wide); text-transform: uppercase; color: var(--bone-5); margin-right: 2px; }
.suggest button { font-family: var(--mono); font-size: var(--fs-11); color: var(--bone-2); white-space: nowrap; background: transparent;
  border: 0; border-bottom: 1px solid var(--hair-3); border-radius: 0; padding: 4px 2px; cursor: pointer; transition: color var(--dur-quick) var(--ease-zero), border-color var(--dur-quick) var(--ease-zero);
  display: inline-flex; align-items: center; gap: 7px; font-feature-settings: var(--feat-mono); }
.suggest button:hover { color: var(--bone-0); border-bottom-color: var(--bone-3); }
.suggest button .vt { width: 6px; height: 6px; border-radius: 50%; flex: none; }
.suggest button[data-tier="T1"] .vt { background: var(--blue); }
.suggest button[data-tier="T2"] .vt { background: var(--amber); }
.suggest button[data-tier="T3"] .vt { background: var(--red); border-radius: 1px; }

/* ════════════════════════════════════════════════════════════════════════
   ROW 3 · the foot · the Narrow live marquee + the colophon wordmark
   ════════════════════════════════════════════════════════════════════════ */
.foot { display: flex; flex-direction: column; gap: 11px; }
.tape { display: flex; align-items: center; height: 28px; border-top: 1px solid var(--hair-2); overflow: hidden;
  font-family: var(--narrow); font-size: var(--fs-12); font-feature-settings: var(--feat-mono); }
.tape .tlbl { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 0 16px 0 0; height: 100%;
  color: var(--bone-4); letter-spacing: var(--ls-wide); text-transform: uppercase; font-family: var(--mono); font-size: var(--fs-10); }
.tape .tlbl .ld { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 6px var(--green); }
.tape .tstream { flex: 1; overflow: hidden; white-space: nowrap; position: relative; height: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.tape .ttrack { position: absolute; left: 0; top: 0; height: 100%; display: flex; align-items: center; gap: 34px; white-space: nowrap; will-change: transform; }
.tape .ev { color: var(--bone-3); display: inline-flex; align-items: center; gap: 9px; text-transform: uppercase; letter-spacing: 0.01em; }
.tape .ev .k { font-family: var(--mono); font-size: var(--fs-10); letter-spacing: var(--ls-wide); }
.tape .ev .k::before { content: ""; display: inline-block; width: 5px; height: 5px; border-radius: 50%; margin-right: 6px; vertical-align: middle; background: currentColor; }
.tape .ev .x { font-variant-numeric: tabular-nums slashed-zero; color: var(--bone-2); }
.tape .ev[data-k="fill"] .k { color: var(--bone-2); }
.tape .ev[data-k="proof"] .k { color: var(--green); }
.tape .ev[data-k="refused"] .k { color: var(--red-text); }
.tape .ev[data-k="refused"] .k::before { background: transparent; box-shadow: inset 0 0 0 1px currentColor; }
.tape .ev[data-k="decision"] .k { color: var(--blue); }
@media (prefers-reduced-motion: reduce) { .tape .ttrack { animation: none !important; } }

.colophon-mini { display: flex; flex-wrap: wrap; gap: 0 9px; align-items: center; font-family: var(--mono); font-size: var(--fs-10); color: var(--bone-4); letter-spacing: 0.01em; font-feature-settings: var(--feat-mono); }
.colophon-mini .fwm { height: 7px; width: auto; color: var(--bone-4); display: block; flex: none; opacity: 0.92; margin-right: 3px; }
.colophon-mini span { display: inline-flex; align-items: center; }
.colophon-mini .sep { color: var(--bone-5); }
@media (max-width: 720px) { .colophon-mini { font-size: 9px; gap: 4px 12px; } .colophon-mini .sep { display: none; } }
