/* ============================================================================
   PauseOMP — control room at night, with one document on the desk.
   Palette: institutional blue-black, single sodium-amber lamp.
   Type: Archivo (signage, wdth axis) / Source Serif 4 (document) / Martian Mono
   (instrument readouts only).
   ========================================================================== */

:root {
  /* ---- surfaces: the room --------------------------------------------- */
  --night:        oklch(0.145 0.021 258);
  --night-deep:   oklch(0.108 0.019 258);
  --surface:      oklch(0.198 0.022 256);
  --surface-2:    oklch(0.245 0.023 256);
  --hairline:     oklch(0.325 0.022 256);
  --hairline-dim: oklch(0.258 0.020 256);

  /* ---- ink on the room ------------------------------------------------ */
  --ink:    oklch(0.965 0.007 250);
  --ink-2:  oklch(0.795 0.013 252);
  --ink-3:  oklch(0.655 0.015 254);

  /* ---- the lamp ------------------------------------------------------- */
  --amber:      oklch(0.815 0.158 79);
  --amber-dim:  oklch(0.660 0.130 76);
  --amber-wash: oklch(0.815 0.158 79 / 0.12);
  --alarm:      oklch(0.680 0.195 27);

  /* ---- the document (true off-white tinted to the brand hue) ---------- */
  --paper:       oklch(0.968 0.005 252);
  --paper-2:     oklch(0.936 0.007 252);
  --paper-rule:  oklch(0.845 0.010 252);
  --paper-ink:   oklch(0.205 0.020 258);
  --paper-ink-2: oklch(0.395 0.018 256);
  --paper-mark:  oklch(0.510 0.145 47);

  /* ---- type ----------------------------------------------------------- */
  --sans:  'Archivo', ui-sans-serif, system-ui, sans-serif;
  --serif: 'Source Serif 4', ui-serif, Georgia, serif;
  --mono:  'Martian Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --display: clamp(2.55rem, 1.32rem + 5.5vw, 5.35rem);
  --step-4:  clamp(2.15rem, 1.42rem + 3.1vw, 3.5rem);
  --step-3:  clamp(1.72rem, 1.32rem + 1.7vw, 2.5rem);
  --step-2:  clamp(1.35rem, 1.18rem + 0.75vw, 1.72rem);
  --step-1:  clamp(1.08rem, 1.02rem + 0.3vw, 1.22rem);
  --step-0:  1rem;
  --step--1: 0.8125rem;
  --step--2: 0.6875rem;

  /* ---- rhythm --------------------------------------------------------- */
  --gutter:  clamp(1.15rem, 0.6rem + 2.6vw, 3rem);
  --band-y:  clamp(3.75rem, 2rem + 7vw, 8.5rem);
  --measure: 66ch;

  --r-sharp: 2px;
  --r-soft:  3px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);          /* quint out */
  --ease-io: cubic-bezier(0.65, 0, 0.35, 1);

  /* ---- z scale -------------------------------------------------------- */
  --z-base: 0;
  --z-sticky: 40;
  --z-skip: 90;
}

/* ============================== reset ==================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.55;
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 1px;
}

.vh {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: absolute; top: 0; left: 50%;
  z-index: var(--z-skip);
  transform: translate(-50%, -110%);
  padding: 0.6rem 1.1rem;
  background: var(--amber); color: var(--night-deep);
  font-size: var(--step--1); font-weight: 700;
  text-decoration: none;
}
.skip:focus-visible { transform: translate(-50%, 0); }

/* ============================== layout =================================== */

.wrap {
  width: 100%;
  max-width: 76rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: 54rem; }
.wrap--doc    { max-width: 57rem; }

.wrap--split {
  display: grid;
  gap: clamp(2.25rem, 1rem + 4.5vw, 4.75rem);
  align-items: start;
}
@media (min-width: 62rem) {
  .wrap--split      { grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr); }
  .wrap--split-even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
}

.band { padding-block: var(--band-y); }
.band--tight { padding-block: calc(var(--band-y) * 0.72); }
.band--deep  { background: var(--night-deep); border-block: 1px solid var(--hairline-dim); }
.band--sign  { background: var(--night-deep); }

/* ============================== telemetry bar ============================ */

.telemetry {
  position: sticky; top: 0;
  z-index: var(--z-sticky);
  background: var(--night-deep);
  border-bottom: 1px solid var(--hairline-dim);
}
.telemetry__inner {
  max-width: 76rem;
  margin-inline: auto;
  padding: 0.44rem var(--gutter);
  display: flex; gap: clamp(0.9rem, 2vw, 2.1rem);
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  font-family: var(--mono);
  font-stretch: 78%;
  font-size: var(--step--2);
  letter-spacing: -0.01em;
  color: var(--ink-3);
  white-space: nowrap;
}
.telemetry__inner::-webkit-scrollbar { display: none; }
.tm { display: inline-flex; align-items: center; gap: 0.42rem; }
.tm b { color: var(--ink-2); font-weight: 500; }
.tm--status b { color: var(--amber); }
.tm__of { color: var(--ink-3); }
#tm-clock { font-variant-numeric: tabular-nums; }

.lamp {
  width: 6px; height: 6px; flex: none;
  background: var(--amber);
  border-radius: 50%;
  box-shadow: 0 0 7px var(--amber);
  animation: pulse 2.4s var(--ease-io) infinite;
}
@keyframes pulse { 0%, 62%, 100% { opacity: 1; } 78% { opacity: 0.22; } }

@media (max-width: 46rem) { .tm--drop { display: none; } }

/* ============================== masthead ================================= */

.mast {
  max-width: 76rem;
  margin-inline: auto;
  padding: clamp(1rem, 2vw, 1.6rem) var(--gutter);
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem;
}
.brand {
  display: inline-flex; align-items: center; gap: 0.55rem;
  text-decoration: none;
}
.brand__mark { width: 15px; height: 15px; fill: var(--amber); flex: none; }
.brand__word {
  font-weight: 800; font-stretch: 112%;
  font-size: var(--step-1);
  letter-spacing: -0.022em;
}
.brand__word-b { color: var(--amber); }

.nav {
  display: flex; align-items: center;
  gap: clamp(0.9rem, 1.8vw, 1.75rem);
  font-size: var(--step--1);
  font-weight: 500;
}
.nav a { color: var(--ink-2); text-decoration: none; transition: color 0.18s var(--ease); }
.nav a:hover { color: var(--ink); }
.nav__cta {
  color: var(--amber) !important;
  border: 1px solid var(--amber-dim);
  padding: 0.32rem 0.85rem;
  border-radius: var(--r-sharp);
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease);
}
.nav__cta:hover { background: var(--amber-wash); border-color: var(--amber); }
@media (max-width: 52rem) { .nav a:not(.nav__cta) { display: none; } }

/* ============================== hero ==================================== */

.hero {
  max-width: 76rem;
  margin-inline: auto;
  padding: clamp(2rem, 1rem + 4vw, 4.5rem) var(--gutter) var(--band-y);
}
.hero__grid {
  display: grid;
  gap: clamp(2.5rem, 1rem + 5vw, 4.5rem);
  align-items: end;
}
@media (min-width: 64rem) {
  .hero__grid { grid-template-columns: minmax(0, 1.42fr) minmax(0, 0.58fr); }
}

.hero__h1 {
  font-size: var(--display);
  font-weight: 800;
  font-stretch: 96%;
  line-height: 0.96;
  letter-spacing: -0.028em;
  text-wrap: balance;
  margin-bottom: clamp(1.25rem, 0.6rem + 1.6vw, 2rem);
}
.hero__lead {
  max-width: 48ch;
  font-size: var(--step-1);
  line-height: 1.58;
  color: var(--ink-2);
  text-wrap: pretty;
}
.hero__actions {
  display: flex; flex-wrap: wrap; gap: 0.7rem;
  margin-top: clamp(1.5rem, 0.8rem + 1.8vw, 2.25rem);
}
.hero__note {
  margin-top: 1.5rem;
  max-width: 44ch;
  font-size: var(--step--1);
  color: var(--ink-3);
  border-top: 1px solid var(--hairline-dim);
  padding-top: 0.9rem;
  text-wrap: pretty;
}

/* ============================== buttons ================================== */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.82rem 1.5rem;
  border: 1px solid transparent;
  border-radius: var(--r-sharp);
  font-family: var(--sans);
  font-size: var(--step-0);
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
              border-color 0.2s var(--ease), transform 0.12s var(--ease-io);
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--amber); color: var(--night-deep); }
.btn--primary:hover { background: oklch(0.87 0.15 82); }
.btn--ghost { border-color: var(--hairline); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink-3); background: oklch(1 0 0 / 0.035); }
.btn--block { width: 100%; }

/* ============================== panels =================================== */

.panel {
  background: var(--surface);
  border: 1px solid var(--hairline-dim);
  border-radius: var(--r-soft);
  padding: clamp(1.15rem, 0.7rem + 1.2vw, 1.65rem);
}
.panel__head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--hairline-dim);
}
.panel__title {
  font-size: var(--step--1);
  font-weight: 600;
  font-stretch: 104%;
  letter-spacing: 0.01em;
  color: var(--ink-2);
}
.panel__badge {
  font-family: var(--mono); font-stretch: 78%;
  font-size: var(--step--2);
  color: var(--amber);
  border: 1px solid var(--amber-dim);
  border-radius: 999px;
  padding: 0.1rem 0.5rem 0.14rem;
}

.counter {
  margin-top: 1.15rem;
  font-family: var(--mono);
  font-stretch: 84%;
  font-size: clamp(1.65rem, 0.9rem + 2.6vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  line-height: 1.05;
}
.counter__note {
  margin-top: 0.5rem;
  font-size: var(--step--1);
  color: var(--ink-3);
}
.counter__note b { color: var(--ink-2); font-weight: 600; }

.ticker { margin-top: 1.3rem; padding-top: 1rem; border-top: 1px solid var(--hairline-dim); }
.ticker__label {
  font-family: var(--mono); font-stretch: 78%;
  font-size: var(--step--2);
  color: var(--ink-3);
  margin-bottom: 0.55rem;
}
.ticker__list { display: grid; gap: 0.28rem; }
.ticker__list li {
  display: flex; justify-content: space-between; gap: 1rem;
  font-family: var(--mono); font-stretch: 76%;
  font-size: var(--step--2);
  color: var(--ink-2);
  line-height: 1.5;
  animation: slot 0.42s var(--ease) backwards;
}
.ticker__list li span:last-child { color: var(--ink-3); flex: none; }
@keyframes slot { from { opacity: 0; transform: translateY(-6px); } }

/* ============================== headings ================================= */

.h2 {
  font-size: var(--step-4);
  font-weight: 800;
  font-stretch: 96%;
  line-height: 1.02;
  letter-spacing: -0.026em;
  text-wrap: balance;
}
.section__head { max-width: 44ch; margin-bottom: clamp(1.75rem, 1rem + 2vw, 2.75rem); }
.section__sub {
  margin-top: 0.85rem;
  color: var(--ink-2);
  font-size: var(--step-0);
  text-wrap: pretty;
}

/* ============================== incident ================================= */

.band__copy > .h2 { margin-bottom: 1.4rem; }
.band__copy p {
  max-width: var(--measure);
  color: var(--ink-2);
  margin-bottom: 1rem;
  text-wrap: pretty;
}
.band__kicker {
  margin-top: 1.6rem !important;
  padding-top: 1.2rem;
  border-top: 1px solid var(--hairline-dim);
  color: var(--ink) !important;
  font-size: var(--step-1);
  font-weight: 600;
  letter-spacing: -0.012em;
}

.mono-id {
  font-family: var(--mono); font-stretch: 76%;
  font-size: var(--step--2);
  font-weight: 400;
  color: var(--ink-3);
  letter-spacing: -0.01em;
}

.record { margin-top: 0.35rem; }
.record__row {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 1rem;
  padding: 0.62rem 0;
  border-bottom: 1px solid var(--hairline-dim);
}
.record__row:last-child { border-bottom: 0; }
.record__row dt { font-size: var(--step--1); color: var(--ink-3); }
.record__row dd {
  font-family: var(--mono); font-stretch: 78%;
  font-size: var(--step--1);
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  text-align: right;
}
.record__row--flag dd { color: var(--alarm); }
.record__row--wide { flex-direction: column; align-items: stretch; gap: 0.3rem; }
.record__row--wide dd { text-align: left; color: var(--amber); }

/* ============================== the letter =============================== */

.letter {
  background: var(--paper);
  color: var(--paper-ink);
  border-top: 3px solid var(--amber);
  padding-block: clamp(3.25rem, 1.75rem + 6vw, 7rem);
}

.letterhead {
  display: flex; flex-wrap: wrap; align-items: baseline;
  justify-content: space-between; gap: 0.5rem 1.5rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--paper-rule);
}
.letterhead__org {
  font-weight: 800; font-stretch: 112%;
  font-size: var(--step-0);
  letter-spacing: -0.02em;
}
.letterhead__meta {
  font-family: var(--mono); font-stretch: 78%;
  font-size: var(--step--2);
  color: var(--paper-ink-2);
}

.letter__h2 {
  margin-top: clamp(2rem, 1rem + 2.6vw, 3.25rem);
  font-size: var(--step-4);
  font-weight: 800; font-stretch: 94%;
  line-height: 1.03;
  letter-spacing: -0.028em;
  text-wrap: balance;
  max-width: 30ch;
}

.prose {
  margin-top: clamp(1.75rem, 1rem + 1.8vw, 2.5rem);
  max-width: 70ch;
  font-family: var(--serif);
  font-size: clamp(1.055rem, 1rem + 0.28vw, 1.185rem);
  line-height: 1.66;
  color: var(--paper-ink);
  text-wrap: pretty;
}
.prose p + p { margin-top: 1.15em; }
.prose__lede {
  font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.45rem);
  line-height: 1.5;
  font-weight: 600;
  letter-spacing: -0.011em;
}
.prose em { font-style: italic; }
.prose__call { font-weight: 600; }
.prose--close { margin-top: clamp(2rem, 1.2rem + 2vw, 3rem); }

.articles {
  counter-reset: art;
  margin-top: clamp(1.75rem, 1rem + 1.8vw, 2.5rem);
  border-top: 1px solid var(--paper-rule);
}
.article {
  counter-increment: art;
  display: grid;
  grid-template-columns: 4.25rem minmax(0, 1fr);
  gap: 0 1rem;
  padding: clamp(1.15rem, 0.8rem + 0.9vw, 1.6rem) 0;
  border-bottom: 1px solid var(--paper-rule);
}
.article::before {
  content: 'Art. ' counter(art, upper-roman);
  grid-row: 1 / span 2;
  font-family: var(--mono); font-stretch: 76%;
  font-size: var(--step--2);
  font-weight: 500;
  color: var(--paper-mark);
  padding-top: 0.42rem;
  letter-spacing: -0.02em;
}
.article__h {
  font-size: var(--step-2);
  font-weight: 700; font-stretch: 100%;
  letter-spacing: -0.019em;
  line-height: 1.16;
  margin-bottom: 0.4rem;
}
.article p {
  max-width: 60ch;
  font-family: var(--serif);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.09rem);
  line-height: 1.62;
  color: var(--paper-ink-2);
  text-wrap: pretty;
}
.article code, .q__body code {
  font-family: var(--mono); font-stretch: 76%;
  font-size: 0.84em;
  padding: 0.08em 0.3em;
  border-radius: var(--r-sharp);
  background: var(--paper-2);
  color: var(--paper-ink);
  letter-spacing: -0.02em;
}
@media (max-width: 34rem) {
  .article { grid-template-columns: 1fr; gap: 0.3rem; }
  .article::before { grid-row: auto; padding-top: 0; }
}

.signoff {
  margin-top: clamp(2.25rem, 1.2rem + 2.2vw, 3.25rem);
  padding-top: 1.4rem;
  border-top: 1px solid var(--paper-rule);
  max-width: 42ch;
}
.signoff__for {
  font-family: var(--serif);
  font-size: 1.06rem;
  color: var(--paper-ink-2);
}
.signoff__name {
  margin-top: 0.35rem;
  font-size: var(--step-2);
  font-weight: 700; font-stretch: 104%;
  letter-spacing: -0.02em;
}
.signoff__meta {
  margin-top: 0.4rem;
  font-size: var(--step--1);
  color: var(--paper-ink-2);
  text-wrap: pretty;
}
.signoff__meta .mono-id { color: var(--paper-mark); }

/* ============================== chart =================================== */

.chart__head {
  display: flex; flex-wrap: wrap;
  align-items: baseline; justify-content: space-between;
  gap: 0.7rem 2.5rem;
  margin-bottom: clamp(1.5rem, 1rem + 1.6vw, 2.4rem);
}
.chart__head .h2 { max-width: 22ch; flex: 1 1 20rem; }
.chart__sub { color: var(--ink-3); font-size: var(--step--1); max-width: 26ch; }

.chart {
  background: var(--surface);
  border: 1px solid var(--hairline-dim);
  border-radius: var(--r-soft);
  padding: clamp(1rem, 0.6rem + 1.2vw, 1.75rem);
}
.chart__svg { width: 100%; height: auto; overflow: visible; }

.grid line     { stroke: var(--hairline-dim); stroke-width: 1; }
.baseline      { stroke: var(--hairline); stroke-width: 1; }
.axis-y text   { fill: var(--ink-3); font-family: var(--mono); font-stretch: 76%; font-size: 10px; text-anchor: end; }
.axis-x text   { fill: var(--ink-3); font-family: var(--mono); font-stretch: 76%; font-size: 10px; text-anchor: middle; }

/* The SVG scales down with the viewport, so 10 user units becomes ~4px on a
   phone. Enlarge the labels and drop the intermediate ticks to keep it legible. */
@media (max-width: 48rem) {
  .axis-y text, .axis-x text { font-size: 21px; }
  .axis-y text:nth-child(2), .axis-y text:nth-child(4) { display: none; }
}

.series { fill: none; stroke-width: 2.25; stroke-linecap: round; }
.series--instr { stroke: var(--amber); }
.series--tools { stroke: oklch(0.74 0.105 218); }
.series--human { stroke: var(--ink-3); stroke-width: 1.75; stroke-dasharray: 5 4; }
.dot--instr { fill: var(--amber); }
.dot--tools { fill: oklch(0.74 0.105 218); }
.dot--human { fill: var(--ink-3); r: 3; }

.chart__legend {
  display: flex; flex-wrap: wrap;
  gap: 0.5rem clamp(1rem, 2vw, 2rem);
  margin-top: 1.35rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--hairline-dim);
  font-size: var(--step--1);
  color: var(--ink-2);
}
.lg { display: inline-flex; align-items: center; gap: 0.5rem; }
.lg::before { content: ''; width: 15px; height: 2px; flex: none; }
.lg--instr::before { background: var(--amber); }
.lg--tools::before { background: oklch(0.74 0.105 218); }
.lg--human::before { background: var(--ink-3); height: 0; border-top: 2px dashed var(--ink-3); }
.lg b {
  font-family: var(--mono); font-stretch: 78%;
  font-size: var(--step--2); font-weight: 500;
  color: var(--ink); letter-spacing: -0.02em;
}
.chart__foot {
  margin-top: 1.1rem;
  font-size: var(--step--1);
  color: var(--ink-3);
}

/* ============================== roster ================================== */

.roster {
  border: 1px solid var(--hairline-dim);
  border-radius: var(--r-soft);
  background: var(--surface);
  overflow: hidden;
}
.roster__table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--mono);
  font-stretch: 76%;
  font-size: var(--step--2);
  letter-spacing: -0.018em;
  table-layout: fixed;
}
.roster__table th {
  text-align: left;
  padding: 0.72rem clamp(0.6rem, 1.4vw, 1.1rem);
  background: var(--night-deep);
  border-bottom: 1px solid var(--hairline);
  color: var(--ink-3);
  font-weight: 500;
}
.roster__table th.num, .roster__table td.num { text-align: right; }
.roster__table td {
  padding: 0.6rem clamp(0.6rem, 1.4vw, 1.1rem);
  border-bottom: 1px solid var(--hairline-dim);
  color: var(--ink-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.roster__table tr:last-child td { border-bottom: 0; }
.roster__table td:first-child { color: var(--ink); }
.roster__table tr[data-fresh] { animation: rowin 0.5s var(--ease) backwards; }
.roster__table tr[data-human] td:first-child { color: var(--amber); }
.roster__table tr[data-human] td:nth-child(2) { color: var(--amber-dim); }
@keyframes rowin {
  from { opacity: 0; background: var(--amber-wash); }
  60%  { background: var(--amber-wash); }
}
.roster__foot {
  margin-top: 1.1rem;
  font-size: var(--step--1);
  color: var(--ink-3);
  max-width: 60ch;
  text-wrap: pretty;
}
@media (max-width: 44rem) {
  .roster__table th:nth-child(3), .roster__table td:nth-child(3) { display: none; }
}

/* ============================== objections ============================== */

.qa {
  margin-top: clamp(1.75rem, 1rem + 2vw, 2.75rem);
  border-top: 1px solid var(--hairline);
  max-width: 56rem;
}
.q { border-bottom: 1px solid var(--hairline-dim); }
.q > summary {
  list-style: none;
  cursor: pointer;
  display: flex; align-items: baseline; gap: 1rem;
  padding: 1.05rem 0;
  font-size: var(--step-1);
  font-weight: 600;
  letter-spacing: -0.014em;
  color: var(--ink);
  transition: color 0.18s var(--ease);
  text-wrap: pretty;
}
.q > summary::-webkit-details-marker { display: none; }
.q > summary::after {
  content: '+';
  margin-left: auto;
  flex: none;
  font-family: var(--mono);
  font-size: var(--step-0);
  color: var(--amber);
  transition: transform 0.24s var(--ease);
}
.q[open] > summary::after { content: '\2212'; }
.q > summary:hover { color: var(--amber); }
.q__body {
  padding-bottom: 1.15rem;
  max-width: 62ch;
  font-family: var(--serif);
  font-size: 1.06rem;
  line-height: 1.62;
  color: var(--ink-2);
  text-wrap: pretty;
  animation: qopen 0.32s var(--ease) backwards;
}
.q__body code {
  background: var(--surface-2);
  color: var(--ink);
  border: 0;
}
@keyframes qopen { from { opacity: 0; transform: translateY(-4px); } }

/* ============================== abort lever ============================= */

.h2--sign { max-width: 20ch; }
.switchbox__sub {
  margin-top: 0.9rem;
  max-width: 40ch;
  color: var(--ink-2);
  text-wrap: pretty;
}
.lever { margin-top: clamp(1.75rem, 1rem + 2vw, 2.5rem); }
.lever__btn {
  --lit: 0;
  display: flex; align-items: center; gap: 1rem;
  width: 100%;
  padding: 1.1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--r-soft);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-1);
  font-weight: 700;
  letter-spacing: -0.014em;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.22s var(--ease), background 0.22s var(--ease);
}
.lever__btn:hover { border-color: var(--ink-3); }
.lever__btn[aria-pressed='true'] { --lit: 1; border-color: var(--amber); background: var(--surface-2); }
.lever__lamp {
  width: 12px; height: 12px; flex: none;
  border-radius: 50%;
  background: color-mix(in oklab, var(--amber) calc(var(--lit) * 100%), oklch(0.3 0.02 256));
  box-shadow: 0 0 calc(var(--lit) * 16px) var(--amber);
  transition: background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.lever__label { flex: 1; }
.lever__track {
  width: 58px; height: 28px; flex: none;
  border-radius: 999px;
  background: var(--night-deep);
  border: 1px solid var(--hairline);
  padding: 3px;
  display: flex;
}
.lever__knob {
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--ink-3);
  transform: translateX(calc(var(--lit) * 30px));
  transition: transform 0.32s var(--ease), background 0.22s var(--ease);
}
.lever__btn[aria-pressed='true'] .lever__knob { background: var(--amber); }
.lever__readout {
  display: block;
  margin-top: 1rem;
  min-height: 3.4em;
  padding: 0.8rem 0.95rem;
  background: var(--night-deep);
  border: 1px solid var(--hairline-dim);
  border-radius: var(--r-sharp);
  font-family: var(--mono); font-stretch: 78%;
  font-size: var(--step--2);
  line-height: 1.7;
  color: var(--amber);
  letter-spacing: -0.015em;
  text-wrap: pretty;
}

/* ============================== sign form =============================== */

.signform {
  align-self: start;
  background: var(--surface);
  border: 1px solid var(--hairline-dim);
  border-radius: var(--r-soft);
  padding: clamp(1.25rem, 0.8rem + 1.4vw, 2rem);
}
.signform__h {
  font-size: var(--step-2);
  font-weight: 700; font-stretch: 102%;
  letter-spacing: -0.02em;
}
.signform__sub { margin-top: 0.4rem; font-size: var(--step--1); color: var(--ink-3); }
.field { margin-top: 1.15rem; }
.field label {
  display: block;
  font-size: var(--step--1);
  font-weight: 600;
  color: var(--ink-2);
  margin-bottom: 0.42rem;
}
.field__opt { font-weight: 400; color: var(--ink-3); }
.field input {
  width: 100%;
  padding: 0.75rem 0.85rem;
  background: var(--night-deep);
  border: 1px solid var(--hairline);
  border-radius: var(--r-sharp);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-0);
  transition: border-color 0.18s var(--ease);
}
.field input::placeholder { color: oklch(0.585 0.014 254); }
.field input:hover { border-color: var(--ink-3); }
.field input:focus-visible { border-color: var(--amber); outline-offset: 1px; }
.field input[aria-invalid='true'] { border-color: var(--alarm); }
.signform .btn { margin-top: 1.4rem; }
.signform__receipt {
  display: block;
  margin-top: 0.9rem;
  font-family: var(--mono); font-stretch: 78%;
  font-size: var(--step--2);
  line-height: 1.7;
  color: var(--amber);
  letter-spacing: -0.015em;
  text-wrap: pretty;
}
.signform__receipt:empty { display: none; }

/* ============================== footer ================================== */

.foot {
  padding-block: clamp(2.75rem, 1.5rem + 3vw, 4.5rem);
  border-top: 1px solid var(--hairline-dim);
  background: var(--night);
}
.foot__grid { display: grid; gap: 1.75rem; align-items: start; }
@media (min-width: 54rem) {
  .foot__grid { grid-template-columns: 12rem minmax(0, 1fr); gap: 3rem; }
}
.foot__brand { display: inline-flex; align-items: center; gap: 0.55rem; }
.foot__fine { max-width: 68ch; font-size: var(--step--1); color: var(--ink-3); }
.foot__fine p + p { margin-top: 0.85rem; }
.foot__fine b { color: var(--ink-2); }
.foot__fine a { color: var(--amber); text-decoration: underline; text-underline-offset: 2px; }
.foot__meta {
  font-family: var(--mono); font-stretch: 76%;
  font-size: var(--step--2);
  letter-spacing: -0.015em;
  color: oklch(0.615 0.014 254);   /* 4.5:1 floor on --night; 0.545 measured 4.02 */
  padding-top: 0.85rem;
  border-top: 1px solid var(--hairline-dim);
}

/* ============================== 404 ==================================== */

.void {
  min-height: 76svh;
  display: grid; place-content: center;
  text-align: center;
  padding: var(--gutter);
}
.void h1 {
  font-size: var(--step-4);
  font-weight: 800; font-stretch: 96%;
  letter-spacing: -0.026em;
  line-height: 1.05;
}
.void p { margin-top: 1rem; color: var(--ink-2); max-width: 44ch; }
.void .btn { margin-top: 2rem; justify-self: center; }

/* ============================== entrance =============================== */
/* Base state is visible. Keyframes run from an offset via `backwards`, so a
   headless renderer or a disabled-animation client still shows the content. */

[data-anim] { animation: rise 0.72s var(--ease) backwards; }
[data-anim='1'] { animation-delay: 0.04s; }
[data-anim='2'] { animation-delay: 0.14s; }
[data-anim='3'] { animation-delay: 0.24s; }
[data-anim='4'] { animation-delay: 0.34s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* Left-to-right clip wipe. Preserves the dashed stroke on the flat series, which
   a stroke-dasharray draw-in would overwrite. Falls back to fully revealed when
   CSS geometry properties or JS are unavailable. */
#reveal-rect { transition: width 1.5s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .lamp { opacity: 1; }
}

/* ============================== print ================================== */

@media print {
  .telemetry, .mast, .hero__actions, .band--sign, .qa, .roster, .foot__brand { display: none; }
  body { background: #fff; color: #111; }
  .letter { background: #fff; border-top: 2px solid #111; }
  .band, .band--deep, .band--sign { background: #fff; color: #111; padding-block: 1.5rem; }
  .h2, .hero__h1 { color: #111; }
  .band__copy p, .section__sub, .foot__fine { color: #333; }
  .panel, .chart { border-color: #bbb; background: #fff; }
  .articles, .article { break-inside: avoid; }
}
