/* ============================================================================
   GREA — v5-ledger
   MACROSTRUCTURE: 04 · Stat-Led.  The page opens on the count, the count is the
   argument, and every figure carries its source line in view.
   Accent: indigo oklch(0.66 0.14 285). One accent, under 3% of any viewport —
   it lives on the column caps, the selected scale rule, focus rings, and the
   active figure marker. Everything else is neutral tinted 285°.
   Families: Cabinet Grotesk (display) / IBM Plex Sans (body) / Commit Mono (outlier).

   Pre-emit critique (1–5, revise anything under 3):
     Philosophy 5 — the shape is a ledger because the content is a set of counts
                that have to survive being checked. Column height is the number.
     Hierarchy 4 — count, then source, then the twelve, then the specifics.
     Execution 4 — tabular figures throughout, rules instead of cards, spacing
                varied by section weight rather than uniform.
     Specificity 5 — the absence block and the pages.dev footnote exist only
                because this company's document says what it says.
     Restraint 4 — no cards, no icon tiles, no glow, no gradient, no invented
                number; three families is the ceiling and it is met exactly.
     Variety 5 — not a colour swap: the third dimension carries data and the
                table behind the columns is the y-axis made out of geometry.
   ========================================================================= */

/* ── tokens ────────────────────────────────────────────────────────────── */
:root {
  /* Paper → Ink, every neutral carrying chroma at hue 285. No zero-chroma grey. */
  --paper:      oklch(0.145 0.012 285);
  --paper-2:    oklch(0.175 0.014 285);
  --paper-3:    oklch(0.208 0.016 285);
  --line:       oklch(0.300 0.014 285);
  --line-2:     oklch(0.385 0.016 285);
  --n-4:        oklch(0.480 0.013 285);
  --n-5:        oklch(0.600 0.012 285);
  --n-6:        oklch(0.720 0.011 285);
  --ink-2:      oklch(0.840 0.010 285);
  --ink:        oklch(0.945 0.008 285);

  --accent:     oklch(0.66 0.14 285);
  --accent-ink: oklch(0.80 0.10 285);
  --accent-dim: oklch(0.50 0.09 285);

  /* Ghost values, printed and obviously not filled in. */
  --ghost:      oklch(0.58 0.010 285);

  --sans: "IBM Plex Sans", sans-serif;
  --display: "Cabinet Grotesk", sans-serif;
  --mono: "Commit Mono", monospace;

  --step-0: 1rem;
  --step--1: 0.875rem;
  --step-1: 1.1875rem;
  --step-2: 1.4375rem;
  --step-3: 1.8125rem;
  --step-4: 2.25rem;
  --step-5: 2.875rem;

  --gutter: clamp(1.25rem, 5vw, 5.5rem);
  --rule: 1px solid var(--line);
  --measure: 68ch;

  /* Motion: three buckets, named properties only. */
  --t-micro: 120ms;
  --t-short: 220ms;
  --t-long: 420ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html, body { overflow-x: clip; }

html {
  background: var(--paper);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: var(--step-0);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  font-family: var(--display);
  font-style: normal;          /* display type is always roman */
  font-weight: 700;
  color: var(--ink);
  overflow-wrap: anywhere;
  min-width: 0;
}
h1 { margin: 0; }
h2 { margin: 0; font-size: clamp(1.6rem, 3.2vw, 2.5rem); line-height: 1.08; letter-spacing: -0.018em; }
h3 { margin: 0; font-size: var(--step-1); line-height: 1.3; font-weight: 500; letter-spacing: -0.008em; }

p { margin: 0 0 1em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 0.22em; }
a:hover { color: var(--accent-ink); }

strong { font-weight: 600; color: var(--ink); }

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

.mono, .num, .v-idx, .fb-num, .fl-num, .ro-num, .big-num, .figures-h, .src,
.absence-ph, .absence-tag, .masthead-note, .stage-hint, .field-cap, .readout-src {
  font-variant-numeric: tabular-nums;
}
.mono { font-family: var(--mono); font-size: 0.92em; color: var(--ink); }

section { padding-inline: var(--gutter); }

/* ── the one orchestrated load moment ──────────────────────────────────── */
@keyframes rise {
  from { opacity: 0; transform: translate3d(0, 14px, 0); }
  to   { opacity: 1; transform: translate3d(0, 0, 0); }
}
@keyframes fade-only {
  from { opacity: 0; }
  to   { opacity: 1; }
}
.rise {
  animation: rise var(--t-long) var(--ease-out) both;
  animation-delay: calc(var(--i, 0) * 70ms);   /* 4 elements, 280ms total */
}

/* ── masthead ──────────────────────────────────────────────────────────── */
.masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem 1.5rem;
  padding: clamp(0.85rem, 1.8vw, 1.5rem) var(--gutter) clamp(0.8rem, 1.6vw, 1.2rem);
  border-bottom: var(--rule);
}
.wordmark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.wordmark:hover { color: var(--ink); }
.masthead-note {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--n-5);
  white-space: nowrap;
}
.masthead-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.35rem;
  margin-inline-start: auto;   /* links sit with the mark, not centred */
  font-size: var(--step--1);
}
.masthead-nav a {
  color: var(--n-5);
  text-decoration: none;
  white-space: nowrap;
}
.masthead-nav a:hover { color: var(--ink); }
.masthead-nav .hub { color: var(--n-6); }

/* ── lede: the stat IS the headline ────────────────────────────────────── */
.lede {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 4vw, 3.5rem);
  align-items: start;
  padding-block: clamp(1.35rem, 3vw, 2.35rem) clamp(1.1rem, 2.6vw, 1.9rem);
}
.lede h1 {
  font-size: clamp(2.125rem, 5.6vw, 4.25rem);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.big-num { color: var(--ink); }
.lede-body { max-width: 44ch; }
.lede-body p { color: var(--n-6); font-size: var(--step-0); }
.lede-body p:first-child { color: var(--ink-2); font-size: var(--step-1); line-height: 1.4; }
.lede h1::after {
  content: "";
  display: block;
  width: clamp(72px, 9vw, 140px);
  height: 3px;
  margin-top: clamp(0.7rem, 1.5vw, 1.15rem);
  background: var(--accent);
}

/* ── the field ─────────────────────────────────────────────────────────── */
.field-section {
  padding-block: clamp(0.75rem, 1.8vw, 1.4rem) clamp(3rem, 7vw, 5rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(0.9rem, 2vw, 1.5rem);
}
.field-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: clamp(0.75rem, 2.5vw, 2.5rem);
  align-items: baseline;
}
.field-cap {
  margin: 0;
  font-size: var(--step--1);
  color: var(--n-5);
  max-width: 78ch;
}

.stage {
  position: relative;
  height: clamp(300px, 50vh, 560px);
  background: var(--paper);
  border-top: var(--rule);
  border-bottom: var(--rule);
  overflow: hidden;
  isolation: isolate;
}
.stage canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  touch-action: pan-y;         /* vertical scrolling still belongs to the page */
}
.stage.no-scene #field { opacity: 0; }

/* the callout sits beside the selected column's top, never over it */
.field-label {
  position: absolute;
  top: 0;
  left: 0;
  width: max-content;
  max-width: min(266px, 74vw);
  pointer-events: none;
  opacity: 0;
  transform: translate3d(0, 0, 0) translate(0, -50%);
  transition: opacity var(--t-short) var(--ease-out);
  display: grid;
  justify-items: start;
  gap: 0.12rem;
  padding: 0.5rem 0.7rem 0.55rem;
  background: var(--paper-2);
  border-left: 2px solid var(--accent);
  will-change: transform;
}
.field-label::before {
  content: "";
  position: absolute;
  top: 50%;
  left: -16px;
  width: 16px;
  height: 1px;
  background: var(--accent);
}
.field-label.is-left { border-left: 0; border-right: 2px solid var(--accent); }
.field-label.is-left::before { left: auto; right: -16px; }
.field-label.is-live { opacity: 1; }
.fl-num {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.5rem;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.fl-text {
  font-size: var(--step--1);
  line-height: 1.35;
  color: var(--n-6);
  overflow-wrap: anywhere;
}

.axis { position: absolute; top: 0; left: 0; pointer-events: none; }
.axis-mark {
  position: absolute;
  top: 0;
  left: 0;
  font-family: var(--mono);
  font-size: 0.6875rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--n-5);
  white-space: nowrap;
  will-change: transform;
}
.axis-mark.is-major { color: var(--n-6); }

.stage-hint {
  position: absolute;
  right: 0.75rem;
  bottom: 0.6rem;
  margin: 0;
  font-family: var(--mono);
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  color: var(--n-5);
  pointer-events: none;
  transition: opacity var(--t-short) var(--ease-out);
}
.stage-hint.is-off { opacity: 0; }

.stage-fallback {
  position: absolute;
  inset: auto 1rem 1rem 1rem;
  margin: 0;
  font-size: var(--step--1);
  color: var(--n-6);
  border-left: 2px solid var(--line-2);
  padding-left: 0.75rem;
}

/* readout: the selected figure in words, and where it came from */
.readout {
  border-top: var(--rule);
  padding-top: 0.9rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  gap: 0.5rem clamp(0.9rem, 3vw, 3rem);
  align-items: baseline;
}
.readout-main {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  min-width: 0;
  max-width: none;
}
.ro-num {
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--step-2);
  line-height: 1;
  color: var(--accent-ink);
}
.ro-label { color: var(--ink); font-size: var(--step-0); overflow-wrap: anywhere; }
.readout-src {
  margin: 0;
  font-size: var(--step--1);
  color: var(--n-5);
  max-width: none;
}

/* the seven figures — a ledger list, not a grid of cards */
.figures { display: grid; gap: 0.85rem; margin-top: clamp(1.5rem, 4vw, 2.75rem); }
.figures-h {
  font-family: var(--mono);
  font-size: var(--step--1);
  font-weight: 400;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--n-5);
  margin: 0;
}
.figures-list { list-style: none; margin: 0; padding: 0; border-top: var(--rule); }
.figures-list li { border-bottom: var(--rule); }
.fig-btn {
  display: grid;
  grid-template-columns: 3.25rem 0.5rem minmax(0, 1fr);
  align-items: center;
  gap: 0.9rem;
  width: 100%;
  padding: 0.7rem 0.25rem;
  background: none;
  border: 0;
  border-radius: 0;
  font: inherit;
  color: var(--n-5);
  text-align: left;
  cursor: pointer;
  transition: color var(--t-micro) var(--ease-out), background-color var(--t-micro) var(--ease-out);
}
.fig-btn:hover { color: var(--ink); background: var(--paper-2); }
.fig-btn.is-on { color: var(--ink); }
.fb-num {
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--step-1);
  line-height: 1;
  color: var(--n-6);
  transition: color var(--t-micro) var(--ease-out);
}
.fig-btn.is-on .fb-num { color: var(--accent-ink); }
.fb-dot {
  width: 6px;
  height: 6px;
  background: var(--line-2);
  transition: background-color var(--t-micro) var(--ease-out);
}
.fig-btn.is-on .fb-dot { background: var(--accent); }
.fb-name {
  font-size: var(--step-0);
  white-space: nowrap;      /* one line, always */
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.figures-note {
  margin: 0;
  font-size: var(--step--1);
  color: var(--n-5);
  max-width: 74ch;
}
.band-list {
  margin: 0.35rem 0 0;
  border-top: var(--rule);
  max-width: 84ch;
}
.band-row {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
  gap: 0.35rem clamp(0.75rem, 2.5vw, 2rem);
  padding: 0.5rem 0 0.55rem;
  border-bottom: var(--rule);
}
.band-row dt {
  font-size: var(--step--1);
  color: var(--ink);
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  min-width: 0;
}
.band-row dt .num {
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--step-0);
  color: var(--accent-ink);
  min-width: 1ch;
}
.band-row dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--n-5);
  overflow-wrap: anywhere;
}
@media (max-width: 720px) {
  .band-row { grid-template-columns: minmax(0, 1fr); gap: 0.2rem; }
}

/* ── the source table ──────────────────────────────────────────────────── */
.ledger-table-section {
  padding-block: clamp(3rem, 7vw, 5.5rem);
  border-top: var(--rule);
  display: grid;
  gap: clamp(1rem, 2.6vw, 1.75rem);
}
.section-note { margin: 0; font-size: var(--step-0); color: var(--n-6); max-width: 62ch; }

.table-wrap { min-width: 0; }
.ledger-table {
  width: 100%;
  min-width: 0;
  border-collapse: collapse;
  font-size: var(--step--1);
}
.ledger-table caption {
  caption-side: top;
  text-align: left;
  padding-bottom: 0.9rem;
  color: var(--n-5);
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
}
.ledger-table th, .ledger-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.8rem 0.9rem 0.85rem 0;
  border-bottom: var(--rule);
}
.ledger-table thead th {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.8125rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--n-5);
  border-bottom-color: var(--line-2);
  padding-bottom: 0.6rem;
}
.ledger-table tbody th { font-family: var(--sans); font-weight: 500; color: var(--ink); width: 26%; }
.ledger-table td { color: var(--n-5); width: 26%; }
.ledger-table td.num {
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--step-1);
  line-height: 1.15;
  color: var(--accent-ink);
  white-space: nowrap;
  width: 8%;
}
.ledger-table td.src { font-family: var(--mono); font-size: 0.8125rem; color: var(--n-6); }

/* the three figures that are absent on purpose */
.absence {
  border-top: 1px solid var(--line-2);
  padding-top: clamp(1rem, 2.4vw, 1.5rem);
  display: grid;
  gap: 0.7rem;
  max-width: 78ch;
}
.absence h3 { font-size: var(--step-0); font-weight: 600; color: var(--ink); }
.absence p { font-size: var(--step--1); color: var(--n-5); }
.absence-row {
  display: grid;
  grid-template-columns: 2.25rem minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 0.9rem;
  margin: 0;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
  max-width: none;
}
.absence-ph {
  font-family: var(--display);
  font-weight: 700;
  font-size: var(--step-1);
  line-height: 1;
  color: var(--ghost);
}
.absence-row > span:nth-child(2) { color: var(--ghost); font-size: var(--step-0); }
.absence-tag {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ghost);
  white-space: nowrap;
}

/* ── the twelve ────────────────────────────────────────────────────────── */
.ventures-section {
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3rem, 7vw, 5.5rem);
  border-top: var(--rule);
  display: grid;
  gap: clamp(1rem, 2.6vw, 1.75rem);
}
.ventures { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line-2); }
.ventures > li {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) minmax(0, 15rem);
  gap: clamp(0.75rem, 2.5vw, 2rem);
  align-items: baseline;
  padding: 0.95rem 0;
  border-bottom: var(--rule);
  opacity: 0;
}
.ventures > li.is-in {
  animation: rise var(--t-long) var(--ease-out) both;
  animation-delay: calc(min(var(--i, 0), 7) * 45ms);
}
.v-idx {
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--n-5);
  letter-spacing: 0.05em;
}
.v-main { min-width: 0; display: grid; gap: 0.2rem; }
.v-name { font-size: var(--step-0); font-weight: 600; }
.v-what { margin: 0; font-size: var(--step--1); color: var(--n-5); max-width: 62ch; }
.v-url { font-size: var(--step--1); min-width: 0; }
.v-url a {
  font-family: var(--mono);
  font-size: 0.8125rem;
  color: var(--n-6);
  text-decoration: none;
  white-space: nowrap;
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: bottom;
}
.v-url a:hover { color: var(--accent-ink); text-decoration: underline; }
.v-url--none { font-family: var(--mono); font-size: 0.8125rem; color: var(--ghost); white-space: nowrap; }

.caveat {
  margin: 0;
  max-width: 74ch;
  font-size: var(--step--1);
  color: var(--n-5);
  border-left: 2px solid var(--accent-dim);
  padding-left: 0.9rem;
}
.caveat strong { color: var(--ink); }

/* ── operating detail ──────────────────────────────────────────────────── */
.detail-section {
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3rem, 7vw, 5rem);
  border-top: var(--rule);
  display: grid;
  gap: clamp(1rem, 2.6vw, 1.75rem);
}
.detail { margin: 0; border-top: 1px solid var(--line-2); }
.detail-row {
  display: grid;
  grid-template-columns: minmax(0, 14rem) minmax(0, 1fr);
  gap: clamp(0.75rem, 3vw, 3rem);
  padding: 1rem 0 1.1rem;
  border-bottom: var(--rule);
}
.detail dt {
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--n-5);
}
.detail dd { margin: 0; font-size: var(--step-0); color: var(--n-6); max-width: 70ch; }

/* ── positioning ───────────────────────────────────────────────────────── */
.pitch-section {
  padding-block: clamp(3rem, 7vw, 5.5rem);
  border-top: var(--rule);
  background: var(--paper-2);   /* elevation goes lighter, and this band is the proof */
  display: grid;
  gap: clamp(1.25rem, 3vw, 2.25rem);
}
.pitch-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(1.25rem, 4vw, 3.5rem);
  align-items: start;
}
.pitch-lead .pitch-line {
  font-family: var(--display);
  font-size: var(--step-3);
  line-height: 1.14;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
  max-width: 22ch;
}
.pitch-lead p { font-size: var(--step-0); color: var(--n-5); }
.pitch-body p { color: var(--n-6); }
.pitch-body p:last-child { color: var(--n-5); }

/* ── contact ───────────────────────────────────────────────────────────── */
.contact-section {
  padding-block: clamp(3rem, 8vw, 6rem) clamp(3.5rem, 9vw, 7rem);
  border-top: var(--rule);
  display: grid;
  gap: 0.75rem;
}
.contact-lede { margin: 0; font-size: var(--step-1); color: var(--ink-2); max-width: 46ch; }
.contact-mail { margin: 0.5rem 0 0; }
.contact-mail a {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.5rem, 4.4vw, 2.75rem);
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 2px solid var(--accent);
  padding-bottom: 0.06em;
  overflow-wrap: anywhere;
}
.contact-mail a:hover { color: var(--accent-ink); }

/* ── footer ────────────────────────────────────────────────────────────── */
.site-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem 1.75rem;
  padding: clamp(1.25rem, 3vw, 2rem) var(--gutter);
  border-top: var(--rule);
  font-size: var(--step--1);
}
.foot-left { display: flex; align-items: baseline; gap: 0.9rem; flex-wrap: wrap; }
.foot-mark {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
}
.foot-note { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.05em; color: var(--n-5); }
.foot-right { display: flex; flex-wrap: wrap; gap: 0.35rem 1.5rem; margin-inline-start: auto; }
.foot-right a { color: var(--n-5); text-decoration: none; white-space: nowrap; }
.foot-right a:hover { color: var(--ink); }

/* ── responsive ────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .lede { grid-template-columns: minmax(0, 1fr); align-items: start; }
  .lede-body { max-width: 56ch; }
  .field-head, .readout { grid-template-columns: minmax(0, 1fr); }
  .pitch-grid { grid-template-columns: minmax(0, 1fr); }
  .detail-row { grid-template-columns: minmax(0, 1fr); gap: 0.35rem; }
  .ventures > li { grid-template-columns: 2.5rem minmax(0, 1fr); }
  .ventures .v-url { grid-column: 2; }
}

@media (max-width: 640px) {
  .masthead { padding-block: 0.6rem; gap: 0.25rem 1rem; }
  .masthead-nav { margin-inline-start: 0; width: 100%; gap: 0.25rem 1.1rem; }
  .lede { padding-block: 0.75rem; gap: 0.9rem; }
  .lede-body { max-width: none; }
  .stage { height: clamp(210px, 28vh, 320px); }
  .fig-btn { grid-template-columns: 2.5rem 0.4rem minmax(0, 1fr); gap: 0.6rem; }
  .figures-note, .caveat { border-left-width: 2px; }

  /* the source table becomes ruled rows; nothing here is clickable, so wrapping is fine */
  .ledger-table, .ledger-table tbody, .ledger-table tr, .ledger-table th, .ledger-table td {
    display: block;
    width: auto;
  }
  .ledger-table thead { display: none; }
  .ledger-table caption { padding-bottom: 0.6rem; }
  .ledger-table tr { border-bottom: var(--rule); padding: 0.85rem 0 0.9rem; }
  .ledger-table tbody th {
    border-bottom: 0;
    padding: 0 0 0.3rem;
    font-size: var(--step-1);
    font-weight: 600;
  }
  .ledger-table td {
    border-bottom: 0;
    padding: 0.12rem 0;
    max-width: none;
  }
  .ledger-table td::before {
    content: attr(data-label);
    display: inline-block;
    min-width: 8.5rem;
    font-family: var(--mono);
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--n-5);
  }
  .ledger-table td.num { font-size: var(--step-2); padding-bottom: 0.4rem; }
  .absence-row { grid-template-columns: 2rem minmax(0, 1fr); }
  .absence-tag { grid-column: 2; }
  .field-label { padding: 0.4rem 0.55rem 0.45rem; }
  .fl-num { font-size: 1.25rem; }
}

@media (max-width: 400px) {
  .lede h1 { letter-spacing: -0.028em; }
  .masthead { gap: 0.5rem 1rem; }
}

/* ── reduced motion: spatial motion collapses to an opacity crossfade ──── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    transition-duration: 1ms !important;
    transition-delay: 0ms !important;
  }
  .rise, .ventures > li.is-in { animation-name: fade-only; }
  .ventures > li { opacity: 1; }
  .field-label { transition-property: opacity; }
}
