/* site.css — components.
 *
 * THE FIRST VERSION OF THIS FILE was an ice-core logging sheet: hairlines,
 * square corners, a mono depth scale down the left margin, serif body text.
 * It was internally consistent and it read as an academic paper rather than
 * a product, which is a category error — the thing being rebranded is a
 * front page, and a front page has to carry a claim before it carries a
 * document. The genre survives where it earns its keep (the depth marks on
 * figures, the mono for every figure, the provenance chips) and the chrome
 * around it is now built the way the best pages in this category are built:
 * a full-bleed generated hero, one glass card carrying the claim, a band of
 * numerals you cannot miss, and tinted bands alternating down the page.
 *
 * ORDER MATTERS. Every media query sits BELOW the rule it overrides. A
 * media query adds no specificity, so one written above its base rule
 * silently never applies.
 */

/* ============ header ==================================================== */
/* A floating pill, detached from the top edge. */
.bar {
  position: sticky; top: 0; z-index: 40;
  padding: 0.75rem 0;
  transition: padding 0.2s ease;
}
.bar-in {
  display: flex; align-items: center; gap: var(--s4);
  height: 3.5rem; padding: 0 0.65rem 0 1.15rem;
  background: color-mix(in oklab, var(--paper) 82%, transparent);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border: var(--hair) solid color-mix(in oklab, var(--rule) 30%, transparent);
  border-radius: var(--pill);
  box-shadow: var(--lift-2);
}
.wordmark { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; color: var(--ink); flex: none; }
.wordmark-mark { display: block; color: var(--d5); }
.wordmark-text {
  font-family: var(--font-display); font-weight: 600;
  font-size: 1.32rem; letter-spacing: -0.01em;
}
.bar-nav { margin-left: auto; display: flex; gap: 1.35rem; align-items: center; }
.bar-nav a, .bar-menu a {
  font-size: 0.9rem; font-weight: 500; letter-spacing: -0.005em;
  text-decoration: none; color: var(--ink2); white-space: nowrap;
}
.bar-nav a:hover { color: var(--ink); }
.bar-nav a[aria-current='page'] { color: var(--ink); font-weight: 600; }
/* Selected through its parent on purpose. `.bar-nav a` is two classes and
   `.bar-cta` is one, so the plain-link colour won the cascade and the CTA
   shipped as --ink2 on --deep: 1.3:1, a dark label on a dark pill, legible
   in the markup and invisible on the page. Nothing static can see that. */
.bar-nav .bar-cta, .bar-menu .bar-cta {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--deep); color: var(--paper);
  padding: 0.62rem 1.05rem; border-radius: var(--pill);
  font-size: 0.875rem; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: background 0.16s;
}
.bar-nav .bar-cta:hover, .bar-menu .bar-cta:hover { background: var(--ink); color: var(--paper); }
.bar-menu .bar-cta { justify-content: center; margin-top: var(--s3); }
.bar-x {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.2rem; height: 2.2rem; border-radius: var(--pill);
  color: var(--ink2); text-decoration: none; flex: none;
  transition: background 0.16s, color 0.16s;
}
.bar-x:hover { background: color-mix(in oklab, var(--ink) 8%, transparent); color: var(--ink); }
.bar-x svg { fill: currentColor; }
.bar-nav .bar-x { margin-right: -0.35rem; }
.bar-menu .bar-x { width: auto; justify-content: flex-start; padding: 0.72rem 0; gap: 0.6rem; }
.bar-menu .bar-x::after { content: 'X'; font-size: 1rem; font-weight: 500; }

.bar-toggle, .bar-menu { display: none; }

@media (max-width: 66rem) {
  .bar-nav { display: none; }
  .bar-toggle {
    display: grid; place-content: center; gap: 5px; margin-left: auto;
    width: 2.5rem; height: 2.5rem; background: none; cursor: pointer;
    border: var(--hair) solid color-mix(in oklab, var(--rule) 45%, transparent);
    border-radius: var(--pill); padding: 0;
  }
  .bar-toggle span { display: block; width: 15px; height: 1.5px; background: var(--ink); transition: transform 0.22s; }
  .bar-toggle[aria-expanded='true'] span:first-child { transform: translateY(3.25px) rotate(45deg); }
  .bar-toggle[aria-expanded='true'] span:last-child { transform: translateY(-3.25px) rotate(-45deg); }
  .bar-menu {
    display: grid; margin: 0.6rem auto 0; width: min(100% - 3rem, var(--shell));
    padding: 0.6rem 1.15rem 1.1rem;
    background: var(--paper); border: var(--hair) solid color-mix(in oklab, var(--rule) 30%, transparent);
    border-radius: var(--radius); box-shadow: var(--lift-2);
  }
  .bar-menu[hidden] { display: none; }
  .bar-menu a { padding: 0.72rem 0; border-bottom: var(--hair) solid color-mix(in oklab, var(--rule) 25%, transparent); font-size: 1rem; }
  .bar-menu a:last-child { border-bottom: 0; }
}

/* ============ bands ===================================================== */
.band { position: relative; padding-block: clamp(4rem, 7vw, 7rem); }
.band-pale { background: var(--paper); }
.band-sink { background: var(--sink); }
/* THE DARK BAND OVERRIDES EVERY INK TOKEN IT INHERITS. The first version
   set only `color` on the band and left .lede, .btn and the h2 accent
   carrying their light-surface values — 1.2:1, 1.4:1 and 1.9:1 against the
   band, invisible, on a page that had just passed 22 static checks.
   tools/audit-live.mjs is what found them and is what keeps them found. */
.band-deep { background: var(--deep); color: var(--on-deep); }
.band-deep h1, .band-deep h2, .band-deep h3, .band-deep b, .band-deep .kpi-v,
.band-deep .stat-v { color: var(--paper); }
.band-deep h1 em, .band-deep h2 em, .band-deep h3 em { color: var(--open-lift); }
.band-deep .lede, .band-deep p, .band-deep li { color: var(--on-deep); }
.band-deep .eyebrow, .band-deep .fig-cap, .band-deep .kpi-k, .band-deep .stat-k {
  color: color-mix(in oklab, var(--on-deep) 84%, transparent);
}
.band-deep .btn {
  background: color-mix(in oklab, var(--paper) 10%, transparent);
  border-color: color-mix(in oklab, var(--paper) 30%, transparent);
  color: var(--paper);
}
.band-deep .btn:hover { background: color-mix(in oklab, var(--paper) 18%, transparent); border-color: var(--paper); }
.band-deep .btn-primary { background: var(--paper); color: var(--deep); border-color: var(--paper); }
.band-deep .btn-primary:hover { background: var(--d0); color: var(--deep); border-color: var(--d0); }
.band-deep .prov-measured { color: var(--d1); }
.band-deep .prov-computed { color: var(--gas-lift); }
.band-deep .prov-executed { color: var(--seal-lift); }
.band-deep .prov-planned { color: var(--open-lift); }
.band-deep .note { background: color-mix(in oklab, var(--paper) 8%, transparent); color: var(--on-deep); }
.band-deep .note b { color: var(--paper); }
.band-deep code { background: color-mix(in oklab, var(--paper) 14%, transparent); color: var(--paper); }
.band-deep a { color: var(--paper); }
.band-tight { padding-block: clamp(2.75rem, 4vw, 4rem); }

/* ============ section heads ============================================= */
.eyebrow {
  display: flex; align-items: center; gap: 0.75rem;
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint);
  margin-bottom: var(--s3);
}
.eyebrow::after { content: ''; flex: 1; height: 1px; background: color-mix(in oklab, var(--rule) 45%, transparent); }
.eyebrow-c { justify-content: center; }
.eyebrow-c::after { display: none; }
.eyebrow-c::before { content: ''; width: 1.5rem; height: 1px; background: color-mix(in oklab, var(--rule) 55%, transparent); }

.sec-head { max-width: 46rem; }
.sec-head .lede { margin-top: var(--s3); }
.sec-head + .prose, .sec-head + .fig, .sec-head + .grid { margin-top: var(--s4); }
.sec-c { text-align: center; margin-inline: auto; }
.sec-c .lede { margin-inline: auto; }
.lede { font-size: clamp(1.075rem, 1rem + 0.35vw, 1.22rem); color: var(--ink2); max-width: 42rem; line-height: 1.55; }
.prose { max-width: var(--measure); }
.prose p, .prose ul { margin-top: var(--s3); }
.prose h3 { margin-top: var(--s5); }
.prose > p:first-child { margin-top: 0; }

/* ============ hero ====================================================== */
/* z-index 1, and the isolation is what makes it stick. The card at the foot
   of the hero hangs into the band below it; without a stacking context ABOVE
   the following siblings, the next section simply painted over it — the card
   was cut in half by the strip and looked like a rendering bug. */
.hero {
  position: relative; isolation: isolate; z-index: 1; overflow: visible;
  padding-block: clamp(3.5rem, 7vw, 6.5rem) clamp(3rem, 5vw, 4.5rem);
  margin-top: -5rem; padding-top: calc(clamp(3.5rem, 7vw, 6.5rem) + 5rem);
}
.hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
/* The canvas and the vignette are clipped to the hero; the card is not. */
.hero-canvas, .hero::before { clip-path: inset(0); }
/* A vignette rather than a wash: the column stays legible at the edges and
   the glass card gets a quieter field to sit on. */
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(120% 78% at 50% 42%, color-mix(in oklab, var(--ground) 78%, transparent) 0%, transparent 68%),
    linear-gradient(to bottom, color-mix(in oklab, var(--ground) 92%, transparent) 0%, transparent 22%, transparent 72%, color-mix(in oklab, var(--ground) 88%, transparent) 100%);
}
.hero-in { position: relative; text-align: center; }

.glass {
  max-width: 54rem; margin-inline: auto; padding: clamp(2.25rem, 4vw, 3.5rem) clamp(1.5rem, 4vw, 3.5rem);
  background: color-mix(in oklab, var(--paper) 62%, transparent);
  backdrop-filter: blur(22px) saturate(1.5);
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
  border: var(--hair) solid color-mix(in oklab, var(--paper) 70%, transparent);
  border-radius: 26px; box-shadow: var(--lift-3);
}
.tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: color-mix(in oklab, var(--paper) 80%, transparent);
  border: var(--hair) solid color-mix(in oklab, var(--rule) 32%, transparent);
  border-radius: var(--pill); padding: 0.4rem 0.9rem;
  font-size: 0.8rem; font-weight: 500; color: var(--ink2);
  text-decoration: none;
}
.tag-dot { width: 0.44rem; height: 0.44rem; border-radius: 50%; background: var(--seal); flex: none; }
.hero h1 { margin-top: var(--s4); }
.hero-lede { margin: var(--s4) auto 0; max-width: 36rem; font-size: clamp(1.05rem, 0.98rem + 0.4vw, 1.2rem); color: var(--ink2); line-height: 1.55; }

.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-top: var(--s4); }
.chip {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: color-mix(in oklab, var(--paper) 72%, transparent);
  border: var(--hair) solid color-mix(in oklab, var(--rule) 28%, transparent);
  border-radius: var(--pill); padding: 0.4rem 0.85rem;
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.02em; color: var(--ink2);
}
.chip b { color: var(--ink); font-weight: 600; }

/* It used to hang into the band below, which is a lovely move on a page
   whose next band is empty and a bad one here: the next band is a strip of
   text and the card covered the middle of it. It sits inside the hero. */
.hero-card {
  max-width: 44rem; margin: clamp(2.5rem, 5vw, 4rem) auto 0;
  position: relative; z-index: 2; text-align: left;
}

/* ============ buttons =================================================== */
.btn-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: var(--s4); }
.sec-c .btn-row, .hero .btn-row { justify-content: center; }
.btn {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.95rem; font-weight: 600; letter-spacing: -0.006em; text-decoration: none;
  padding: 0.82rem 1.5rem; border-radius: var(--pill); cursor: pointer;
  border: var(--hair) solid color-mix(in oklab, var(--rule) 40%, transparent);
  background: color-mix(in oklab, var(--paper) 88%, transparent); color: var(--ink);
  transition: background 0.16s, border-color 0.16s, transform 0.16s;
}
.btn:hover { background: var(--paper); border-color: color-mix(in oklab, var(--ink) 30%, transparent); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--deep); color: var(--paper); border-color: var(--deep); }
.btn-primary:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-sm { padding: 0.5rem 0.95rem; font-size: 0.84rem; }
.btn[disabled] { opacity: 0.45; cursor: not-allowed; }

/* ============ the strip ================================================= */
.strip {
  background: var(--sink);
  border-block: var(--hair) solid color-mix(in oklab, var(--rule) 30%, transparent);
  padding-block: 1.1rem;
}
.strip-in { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0.6rem 1.6rem; }
.strip span { font-size: 0.9rem; color: var(--ink2); white-space: nowrap; }
.strip b { color: var(--ink); font-weight: 600; }
.strip .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--d3); }
@media (max-width: 48rem) { .strip .dot { display: none; } }

/* ============ the numerals ============================================== */
.stats { display: grid; gap: 0; border-top: var(--hair) solid color-mix(in oklab, var(--rule) 35%, transparent); }
.stat { padding: var(--s4) 0; border-bottom: var(--hair) solid color-mix(in oklab, var(--rule) 35%, transparent); }
@media (min-width: 48rem) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: var(--s4) var(--s4) var(--s4) 0; }
  .stat:nth-child(odd) { border-right: var(--hair) solid color-mix(in oklab, var(--rule) 35%, transparent); padding-right: var(--s4); }
  .stat:nth-child(even) { padding-left: var(--s4); }
}
@media (min-width: 66rem) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .stat { padding: var(--s4) var(--s4) var(--s4) 0; border-right: var(--hair) solid color-mix(in oklab, var(--rule) 35%, transparent); }
  .stat:last-child { border-right: 0; }
  .stat:nth-child(even) { padding-left: 0; }
}
.stat-v {
  font-family: var(--font-display); font-weight: 500;
  font-size: clamp(2.4rem, 1.6rem + 2.6vw, 3.4rem); line-height: 1; letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.stat-k { margin-top: 0.7rem; font-size: 0.925rem; color: var(--ink2); line-height: 1.45; max-width: 20rem; }

/* ============ cards ===================================================== */
.card {
  background: var(--paper); border-radius: var(--radius); padding: clamp(1.35rem, 2.4vw, 1.9rem);
  border: var(--hair) solid color-mix(in oklab, var(--rule) 24%, transparent);
}
.band-pale .card { background: var(--ground); }
.band-sink .card { background: var(--paper); }
.band-deep .card { background: color-mix(in oklab, var(--paper) 8%, transparent); border-color: color-mix(in oklab, var(--paper) 18%, transparent); }
.card-lift { box-shadow: var(--lift-2); }
.card h3 { margin-bottom: 0.6rem; }
.card p { color: var(--ink2); }
.card-head { display: flex; align-items: center; gap: 0.75rem; margin-bottom: var(--s3); padding-bottom: var(--s2); border-bottom: var(--hair) solid color-mix(in oklab, var(--rule) 30%, transparent); }
.card-head .k { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.04em; color: var(--ink2); }
.card-head .prov { margin-left: auto; }

.grid { display: grid; gap: var(--s3); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 48rem) { .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 62rem) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* A mono-labelled spec list inside a card. */
.spec { margin-top: var(--s3); border-top: var(--hair) solid color-mix(in oklab, var(--rule) 30%, transparent); }
.spec div { padding: 0.7rem 0; border-bottom: var(--hair) solid color-mix(in oklab, var(--rule) 22%, transparent); }
.spec dt, .spec .t { font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.02em; color: var(--ink); }
.spec dd, .spec .d { margin: 0.15rem 0 0; font-size: 0.9rem; color: var(--faint); line-height: 1.45; }

/* ============ lists ===================================================== */
/* NOT a grid and NOT a flex container. A list item that is one of those
   splits its own inline children — <b>, <code>, a bare text node — into
   separate anonymous items, which overlap and, in the flex case, drop the
   whitespace between words entirely. */
.ticks { list-style: none; padding: 0; margin: var(--s3) 0 0; }
.ticks li { position: relative; padding-left: 1.7rem; margin-top: 0.6rem; color: var(--ink2); }
.ticks li::before {
  content: '✓'; position: absolute; left: 0; top: 0;
  font-size: 0.9rem; color: var(--d4); font-weight: 700;
}
.ticks-no li::before { content: '✕'; color: var(--open); }
.ticks-no li { color: var(--faint); }
.ticks li em { font-style: italic; color: var(--ink2); }

.swap { display: grid; gap: var(--s3); margin-top: var(--s5); text-align: left; }
@media (min-width: 52rem) { .swap { grid-template-columns: 1fr 1fr; } }
.swap h4 {
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--faint); margin-bottom: 0.7rem; font-weight: 500;
}
.swap h3 { font-size: 1.25rem; }

/* ============ provenance ================================================ */
.prov {
  display: inline-flex; align-items: center; gap: 0.34rem;
  font-family: var(--font-mono); font-size: 0.62rem; font-weight: 500;
  letter-spacing: 0.09em; text-transform: uppercase;
  padding: 0.2rem 0.5rem; border-radius: var(--pill);
  border: var(--hair) solid currentColor; white-space: nowrap;
}
.prov::before { content: ''; width: 0.36rem; height: 0.36rem; border-radius: 50%; background: currentColor; }
.prov-measured { color: var(--d5); }
.prov-computed { color: var(--gas); }
.prov-executed { color: var(--seal); }
.prov-planned { color: var(--open); }

/* ============ figures =================================================== */
.fig { margin-top: var(--s4); }
.fig-frame {
  background: var(--paper); border: var(--hair) solid color-mix(in oklab, var(--rule) 24%, transparent);
  border-radius: var(--radius); padding: clamp(0.9rem, 2vw, 1.5rem);
}
.band-pale .fig-frame { background: var(--ground); }
.fig figcaption, .fig-cap { margin-top: var(--s2); font-size: 0.88rem; color: var(--faint); line-height: 1.5; max-width: 46rem; }
.sec-c .fig-cap { margin-inline: auto; }
.fig-cap b { color: var(--ink2); font-weight: 600; }
/* Capped and centred. A 620x420 chart stretched to a 1150px band renders
   780px tall and the reader scrolls past the axis before reaching the
   curve; width:100% with height:auto has no ceiling of its own. */
.fig svg, [data-column] svg { width: 100%; max-width: 46rem; height: auto; display: block; margin-inline: auto; }
.scroll-x { overflow-x: auto; min-width: 0; max-width: 100%; }

/* ============ tables ==================================================== */
.table { width: 100%; border-collapse: collapse; font-size: 0.925rem; text-align: left; }
.table th, .table td { padding: 0.68rem 0.85rem; border-bottom: var(--hair) solid color-mix(in oklab, var(--rule) 25%, transparent); vertical-align: baseline; }
.table thead th {
  font-family: var(--font-mono); font-size: 0.66rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint);
  border-bottom-color: color-mix(in oklab, var(--rule) 55%, transparent);
}
.table tbody tr:hover { background: color-mix(in oklab, var(--sink) 40%, transparent); }
.table .num, .table .r { text-align: right; font-family: var(--font-mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.table caption { caption-side: bottom; margin-top: var(--s2); font-size: 0.86rem; color: var(--faint); text-align: left; }

/* ============ the ladder ================================================ */
.ladder { list-style: none; padding: 0; margin: 0; counter-reset: rung; text-align: left; }
.ladder li { position: relative; padding: 0.95rem 0 0.95rem 3rem; border-top: var(--hair) solid color-mix(in oklab, var(--rule) 25%, transparent); }
.ladder li:first-child { border-top: 0; }
.ladder li::before {
  counter-increment: rung; content: counter(rung);
  position: absolute; left: 0; top: 1rem;
  width: 1.65rem; height: 1.65rem; display: grid; place-content: center;
  font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600;
  color: var(--paper); background: var(--d3); border-radius: 50%;
}
.ladder li:nth-child(2)::before { background: var(--d4); }
.ladder li:nth-child(3)::before { background: var(--d5); }
.ladder li:nth-child(4)::before { background: var(--d6); }
.ladder li:last-child::before { background: var(--seal); }
.rung-name { font-weight: 600; font-size: 1rem; letter-spacing: -0.008em; padding-right: 5.5rem; }
.rung-time {
  position: absolute; right: 0; top: 0.95rem;
  font-family: var(--font-mono); font-size: 1.02rem; font-weight: 500; color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.rung-says { color: var(--ink2); font-size: 0.92rem; margin-top: 0.25rem; line-height: 1.5; }
.rung-worst { font-family: var(--font-mono); font-size: 0.74rem; color: var(--faint); }
@media (max-width: 34rem) {
  .rung-time { position: static; display: block; margin-bottom: 0.15rem; font-size: 0.95rem; color: var(--ink2); }
  .rung-name { padding-right: 0; }
  .ladder li { padding-left: 2.6rem; }
}

/* ============ stat tiles ================================================ */
.kpis { display: grid; gap: var(--s2); margin-top: var(--s4); grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); }
.kpi { background: var(--paper); border: var(--hair) solid color-mix(in oklab, var(--rule) 24%, transparent); border-radius: var(--radius-sm); padding: var(--s3); }
.band-pale .kpi { background: var(--ground); }
.kpi-v { font-family: var(--font-mono); font-size: 1.4rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; }
.kpi-k { font-size: 0.78rem; letter-spacing: 0.04em; color: var(--faint); margin-top: 0.35rem; text-transform: uppercase; font-weight: 500; }
.kpi-n { font-size: 0.85rem; color: var(--ink2); margin-top: var(--s1); line-height: 1.45; }

/* ============ notes ===================================================== */
.note {
  border-radius: var(--radius-sm); padding: var(--s3) var(--s3) var(--s3) calc(var(--s3) + 3px);
  border-left: 3px solid var(--rule);
  background: color-mix(in oklab, var(--sink) 45%, transparent);
  color: var(--ink2); font-size: 0.95rem; margin-top: var(--s4); text-align: left;
}
.note-open { border-left-color: var(--open); }
.note-seal { border-left-color: var(--seal); }
.note b { color: var(--ink); }

pre {
  background: var(--deep); color: var(--on-deep); border-radius: var(--radius-sm);
  padding: var(--s3); overflow-x: auto; min-width: 0; font-size: 0.82rem;
  line-height: 1.55; font-family: var(--font-mono); margin-top: var(--s3);
}
pre code { background: none; padding: 0; font-size: inherit; color: inherit; }

/* ============ faq ======================================================= */
.qa { border-bottom: var(--hair) solid color-mix(in oklab, var(--rule) 25%, transparent); }
.qa:first-of-type { border-top: var(--hair) solid color-mix(in oklab, var(--rule) 25%, transparent); }
.qa summary {
  cursor: pointer; list-style: none; padding: var(--s4) 2.5rem var(--s4) 0;
  font-weight: 600; font-size: 1.05rem; letter-spacing: -0.008em; position: relative;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: ''; position: absolute; right: 0.6rem; top: 1.85rem;
  width: 0.5rem; height: 0.5rem; border-right: 1.6px solid var(--faint); border-bottom: 1.6px solid var(--faint);
  transform: rotate(45deg); transition: transform 0.2s;
}
.qa[open] summary::after { transform: rotate(-135deg); top: 2.05rem; }
.qa-body { padding-bottom: var(--s4); color: var(--ink2); max-width: var(--measure); }

/* ============ the sonde ================================================= */
.sonde-live { display: grid; gap: var(--s4); }
@media (min-width: 60rem) { .sonde-live { grid-template-columns: minmax(0, 24rem) minmax(0, 1fr); align-items: start; } }
.field { display: block; text-align: left; }
.field label { display: block; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--faint); margin-bottom: 0.4rem; }
.field input {
  width: 100%; font-family: var(--font-mono); font-size: 0.88rem; padding: 0.75rem 0.9rem;
  border: var(--hair) solid color-mix(in oklab, var(--rule) 45%, transparent);
  border-radius: var(--radius-sm); background: var(--paper); color: var(--ink);
}
.field input:focus { border-color: var(--d4); }
.live-dot { display: inline-block; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: var(--faint); margin-right: 0.45rem; vertical-align: 0.05em; }
.live-on .live-dot { background: var(--seal); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }

/* ============ the column control ======================================== */
[data-column] { margin-top: var(--s4); text-align: left; max-width: 54rem; }
.col-controls { display: grid; gap: var(--s3); margin-bottom: var(--s3); }
@media (min-width: 56rem) {
  .col-controls { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; }
  .col-controls .btn-row { grid-column: 1 / -1; margin-top: 0; justify-content: flex-start; }
}
.col-controls input[type='range'] { width: 100%; accent-color: var(--d5); }

/* ============ footer ==================================================== */
.foot { background: var(--deep); color: var(--on-deep); }
.foot a { color: var(--on-deep); }
.foot-in { padding-block: clamp(3rem, 5vw, 4.5rem) var(--s4); display: grid; gap: var(--s5); }
.foot-brand { display: flex; gap: 0.7rem; align-items: flex-start; }
.foot-brand b { font-family: var(--font-display); font-size: 1.25rem; font-weight: 600; color: var(--paper); }
.foot-brand p { color: var(--on-deep); font-size: 0.95rem; margin-top: 0.2rem; max-width: 22rem; }
.foot-brand .wordmark-mark { color: var(--paper); margin-top: 0.3rem; }
.foot-nav, .foot-social { display: flex; flex-wrap: wrap; gap: 0.9rem 1.5rem; }
.foot-nav a, .foot-social a { font-size: 0.92rem; text-decoration: none; opacity: 0.86; }
.foot-nav a:hover, .foot-social a:hover { opacity: 1; text-decoration: underline; }
.foot-fine {
  font-size: 0.85rem; opacity: 0.72; max-width: 46rem;
  border-top: var(--hair) solid color-mix(in oklab, var(--on-deep) 22%, transparent); padding-top: var(--s3);
}
@media (min-width: 62rem) {
  .foot-in { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
  .foot-fine { grid-column: 1 / -1; }
}

/* ============ page heads ================================================ */
/* No top padding of its own: the band already provides it, and the two
   stacked put 190px of nothing above the eyebrow. */
.page-head { padding-block: 0 clamp(1rem, 2vw, 2rem); }
.page-head h1 { font-size: clamp(2.5rem, 1.6rem + 3.4vw, 4rem); }
.page-head .lede { margin-top: var(--s4); }
