/* Vigilarch landing page.
 *
 * Register: an instrument, not a brochure. The dashboard next door is a terminal
 * transcript rendered as a web page, and this page is the cover sheet on the same
 * document — so the data voice stays monospace throughout and the only display
 * face is Archivo, set wide and heavy, in the manner of the signage that hangs in
 * the kind of place this ledger is for.
 *
 * Two structural ideas carry the identity, and both mean something:
 *
 *   1. The bracketed span — a solid cap, a rule, a solid cap — is the shape of a
 *      bounded window, which is the one thing this whole project is about. It is
 *      the logo mark and it is the rule under the headline. An OPEN edge is
 *      always dashed and always fades. The two must never look alike.
 *   2. Every section opens with a monospace eyebrow carrying a real citation.
 *      A claim on this page can be checked against a file in this repository, and
 *      the page says which one without being asked.
 *
 * Colour discipline, inherited from base.css: --sealed / --unwitnessed /
 * --disputed encode state and are never spent on emphasis or hierarchy.
 * --accent is the structural colour — links, focus, the one filled button — so
 * "clickable" can never be misread as "sealed".
 *
 * Depth discipline, which is the same idea one dimension over. Three planes,
 * and each one means something:
 *
 *   recessed  the ticker rail — a darker ground and an inset shadow. It is
 *             repository status, which sits behind the argument, not in it.
 *   the page  bands, hairlines, ordinary cards. Flat on purpose.
 *   raised    the live card, and only the live card — a soft accent halo and a
 *             real drop shadow. It is the one element on the page computing
 *             something rather than describing it, and it is allowed to look
 *             like it.
 *
 * A fourth plane would make the first three mean less, so there is not one.
 */

* { box-sizing: border-box; }

body {
  margin: 0;
  background-color: var(--bg);
  color: var(--ink);
  font: 13.5px/1.7 var(--mono);
  -webkit-font-smoothing: antialiased;
}

/* The dot lattice. Every opaque surface that covers the page ground repaints
 * it, so the texture is continuous from the ticker to the footer rather than
 * appearing and disappearing band by band. */
body,
.ticker,
.stats,
.band.alt,
.sitefoot {
  background-image: radial-gradient(circle at 1px 1px, var(--grid-dot) 1px, transparent 0);
  background-size: var(--grid-size) var(--grid-size);
}

::selection { background: var(--accent); color: var(--bg); }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }

code {
  font-family: var(--mono);
  color: var(--ink);
  background: var(--panel-2);
  padding: 0 .28em;
  border-radius: 2px;
}

/* --- shared measure and band rhythm --------------------------------------- */

.measure {
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding-inline: 1.5rem;
}
.measure.narrow { max-width: 860px; }

.band { border-top: 1px solid var(--hair); padding: 5.5rem 0; }
.band.alt { background-color: var(--bg-deep); }

/* Type roles ---------------------------------------------------------------
 * display  Archivo, wide and heavy — headlines and the wordmark only
 * mono     the system stack — everything with data in it, which is most of it */

h1, h2, h3, .stepno, .wordmark {
  font-family: var(--display);
  color: var(--ink-strong);
  text-wrap: balance;
}

.eyebrow {
  margin: 0 0 1.1rem;
  font-size: 11px;
  line-height: 1.5;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--ink-faint);
}

.band-h {
  margin: 0;
  font-size: clamp(1.65rem, 3.1vw, 2.35rem);
  font-weight: 700;
  font-stretch: 110%;
  line-height: 1.1;
  letter-spacing: -0.015em;
}
.band-h em { font-style: normal; color: var(--accent); }

.band-lede {
  margin: 1.1rem 0 0;
  max-width: 68ch;
  color: var(--ink-dim);
}

/* A citation is a first-class element here, not a footnote: it is what makes a
 * claim on this page checkable. */
.cite {
  display: block;
  margin-top: .5rem;
  font-size: 10.5px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
p.cite { margin: .75rem 0 0; }

.k-sealed { color: var(--sealed); }
.k-unwit  { color: var(--unwitnessed); }

/* --- ticker ---------------------------------------------------------------- */
/* At rest — no JS, or reduced motion — the badges simply wrap and sit still.
 * The scrolling version only exists once landing.js has duplicated the track. */

.ticker {
  border-top: 1px solid var(--hair);
  border-bottom: 1px solid var(--hair);
  background-color: var(--bg-sunken);
  overflow: hidden;
  /* Recessed. The rail is repository status — true, checkable, and not the
   * argument — so it sits a plane behind the hero rather than beside it. */
  box-shadow: var(--shadow-inset);
}

.ticker-track { display: flex; flex-wrap: wrap; }

.ticker-track.is-animated {
  flex-wrap: nowrap;
  width: max-content;
  animation: marquee 72s linear infinite;
}
.ticker:hover .ticker-track.is-animated,
.ticker:focus-within .ticker-track.is-animated { animation-play-state: paused; }

@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.tick {
  display: flex;
  align-items: center;
  gap: .4rem;
  padding: .6rem 1.35rem;
  font-size: 11px;
  letter-spacing: .04em;
  color: var(--ink-dim);
  white-space: nowrap;
  /* The separators are the accent's quietest appearance on the page: enough to
   * tie the rail to the rest of the system, nowhere near enough to be read as
   * a state. */
  border-right: 1px solid var(--accent-line);
  transition: background-color .2s ease, color .2s ease;
}
.tick:hover { background-color: var(--accent-bg); color: var(--ink); }
.tick b { color: var(--ink-strong); font-weight: 600; }
/* PASS is a verdict, so it is allowed the verdict colour. */
.tick-ok b { color: var(--sealed); }

@media (prefers-reduced-motion: reduce) {
  .ticker-track.is-animated { animation: none; flex-wrap: wrap; width: auto; }
}

/* --- hero ------------------------------------------------------------------ */

.hero {
  position: relative;
  isolation: isolate;
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  padding: 5rem 1.5rem 4.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: 3.5rem;
  align-items: start;
}

/* Two washes, not one. The first pools behind the headline, the second behind
 * the live card, because those are the two things on this page worth looking
 * at and a single gradient stretched across both would say neither. They are
 * low enough that nothing sitting on them shifts colour — checked against the
 * SEALED / UNWITNESSED / DISPUTED rows, which sit on the right-hand one. */
.hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  /* No overhang at the top: the ticker sits immediately above and is the one
   * recessed surface on the page. A wash spilling onto it would undo that. */
  inset: 0 0 -5rem;
  pointer-events: none;
  background:
    radial-gradient(44% 62% at 22% 32%, var(--accent-wash), transparent 70%),
    radial-gradient(40% 52% at 79% 46%, var(--accent-wash), transparent 72%);
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(2.6rem, 6.2vw, 4.3rem);
  font-weight: 800;
  font-stretch: 114%;
  line-height: .96;
  letter-spacing: -0.035em;
}

/* The bracketed span: a bounded window, drawn under the claim it belongs to.
 * This is the page's one flourish and it is the project's own shape. */
.hero-copy h1::after {
  content: "";
  display: block;
  width: 156px;
  height: 13px;
  margin-top: 1.35rem;
  border-top: 1px solid var(--accent);
  border-left: 3px solid var(--accent);
  border-right: 3px solid var(--accent);
  opacity: .8;
}

.deck {
  margin: 1.6rem 0 0;
  max-width: 56ch;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
}
.deck em { font-style: normal; color: var(--ink-strong); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }

.subdeck {
  margin: 1.1rem 0 0;
  max-width: 62ch;
  color: var(--ink-dim);
}
.subdeck b { color: var(--ink-strong); }

.cta-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

.btn-lg { padding: .7rem 1.2rem; font-size: 13px; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--rule);
  border-radius: 3px;
  color: var(--ink-dim);
  background: transparent;
  text-decoration: none;
  white-space: nowrap;
  transition: color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.btn-ghost:hover {
  color: var(--ink);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--rule));
  box-shadow: 0 8px 22px -12px var(--accent-glow);
  transform: translateY(-1px);
}
.btn-ghost:active { transform: translateY(0); }

.hero-foot {
  margin: 2.2rem 0 0;
  padding-top: 1.2rem;
  border-top: 1px solid var(--hair);
  max-width: 60ch;
  font-size: 12px;
  color: var(--ink-faint);
}

/* --- the live card --------------------------------------------------------- */

.livecard {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 5px;
  overflow: hidden;
  min-width: 0;
  /* Raised, and the only element on the page that is. The halo is --accent
   * because this card is the page's one live control surface; it is a glow
   * around a container, never a fill behind a verdict, so it cannot be read as
   * a state. */
  box-shadow:
    var(--shadow-lift),
    0 0 0 1px var(--accent-line),
    0 0 72px -18px var(--accent-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.lc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .6rem .9rem;
  background: var(--panel-2);
  border-bottom: 1px solid var(--rule);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.lc-live { display: inline-flex; align-items: center; gap: .5rem; min-width: 0; color: var(--ink-dim); }
.lc-target { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lc-live .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--ink-faint);
  flex: none;
}
/* The dot is page status — did the module answer — so it takes the structural
 * accent, not a ledger-state colour. */
.lc-live[data-state="live"] .dot { background: var(--accent); animation: blip 3.6s ease-in-out infinite; }
.lc-live[data-state="live"] { color: var(--accent); }
.lc-live[data-state="error"] .dot { background: var(--disputed); }
.lc-live[data-state="error"] { color: var(--disputed); }

/* Slow on purpose. The dot is the page's one claim that something is actually
 * running, and a fast blink reads as a decorative LED; a pulse near a resting
 * heart rate reads as a process. */
@keyframes blip {
  0%      { box-shadow: 0 0 0 0 var(--accent-glow); opacity: 1; }
  45%     { box-shadow: 0 0 0 6px transparent;      opacity: .62; }
  100%    { box-shadow: 0 0 0 0 transparent;        opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .lc-live[data-state="live"] .dot { animation: none; }
}

.lc-body { padding: .95rem 1rem 1.1rem; }
.lc-boot { margin: 0; color: var(--ink-faint); font-size: 12px; }
.lc-err { margin: .8rem 0 0; color: var(--disputed); font-size: 11.5px; word-break: break-word; }

/* the five calls, and what each returned */
.lc-log { display: grid; gap: .18rem; font-size: 11.5px; }
.lc-line { display: grid; grid-template-columns: 10.5rem minmax(0, 1fr); gap: .75rem; }
.lc-line .call { color: var(--ink-strong); }
.lc-line .call::before { content: "› "; color: var(--ink-faint); }
.lc-line .res { color: var(--ink-dim); word-break: break-word; }

.lc-check {
  margin: .85rem 0 0;
  padding: .45rem .6rem;
  border-left: 2px solid var(--ink-faint);
  background: var(--panel-2);
  font-size: 11px;
  color: var(--ink-dim);
}
.lc-check.ok  { border-left-color: var(--sealed); }
.lc-check.bad { border-left-color: var(--disputed); color: var(--disputed); }

/* verdict chips — these DO carry ledger state, which is what they are for */
.lc-chips { display: grid; gap: .4rem; margin-top: 1rem; }

.lc-chip {
  display: grid;
  grid-template-columns: .9rem max-content minmax(0, 1fr);
  align-items: baseline;
  gap: .45rem;
  min-width: 0;
  padding: .45rem .6rem;
  font: inherit;
  font-size: 11px;
  text-align: left;
  color: var(--ink-dim);
  background: transparent;
  border: 1px solid var(--rule);
  border-left-width: 3px;
  border-radius: 3px;
  cursor: pointer;
}
.lc-chip .l { letter-spacing: .05em; white-space: nowrap; }
.lc-chip .w {
  color: var(--ink-faint);
  font-size: 10.5px;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lc-chip:hover { border-top-color: var(--ink-faint); border-right-color: var(--ink-faint); border-bottom-color: var(--ink-faint); }

.lc-chip.v-sealed      { border-left-color: var(--sealed); }
.lc-chip.v-unwitnessed { border-left-color: var(--unwitnessed); }
.lc-chip.v-disputed    { border-left-color: var(--disputed); }

.lc-chip[aria-pressed="true"].v-sealed      { color: var(--sealed);      background: var(--sealed-bg); }
.lc-chip[aria-pressed="true"].v-unwitnessed { color: var(--unwitnessed); background: var(--unwit-bg); }
.lc-chip[aria-pressed="true"].v-disputed    { color: var(--disputed);    background: var(--disputed-bg); }
.lc-chip[aria-pressed="true"] .w { color: inherit; opacity: .8; }

.lc-panel { margin-top: 1rem; padding-top: .9rem; border-top: 1px solid var(--rule); }
.lc-call { margin: 0; font-size: 11.5px; color: var(--ink-strong); word-break: break-all; }
.lc-when { margin: .3rem 0 .8rem; font-size: 11px; color: var(--ink-faint); }

.lc-json {
  margin: 0;
  padding: .75rem .85rem;
  background: var(--bg-deep);
  border: 1px solid var(--hair);
  border-radius: 3px;
  overflow-x: auto;
  font: 11.5px/1.55 var(--mono);
  color: var(--ink-dim);
  tab-size: 2;
}
.lc-json code {
  background: none;
  padding: 0;
  color: inherit;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.lc-read {
  margin: .9rem 0 0;
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--ink-dim);
}

.lc-foot {
  padding: .8rem 1rem .9rem;
  border-top: 1px solid var(--rule);
  background: var(--panel-2);
  font-size: 11px;
  line-height: 1.6;
  color: var(--ink-faint);
}

/* --- the unwitnessed window, compact --------------------------------------- */
/* Bounded edges are solid caps. Open edges are dashed and the fill fades out
 * towards them, so "unbounded" cannot read as a tidy interval. */

.lw { margin-top: 1rem; }
.lw-h { margin: 0 0 .4rem; font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-faint); }

.lw-bar { display: flex; align-items: stretch; height: 22px; }
.lw-cap { width: 9px; flex: none; border-top: 2px solid; border-bottom: 2px solid; }
.lw-cap.bounded { border-color: var(--sealed); }
.lw-cap.open    { border-color: var(--unwitnessed); }
.lw-cap.left.bounded  { border-left: 4px solid var(--sealed); }
.lw-cap.right.bounded { border-right: 4px solid var(--sealed); }
.lw-cap.left.open     { border-left: 2px dashed var(--unwitnessed); }
.lw-cap.right.open    { border-right: 2px dashed var(--unwitnessed); }

.lw-track {
  flex: 1;
  min-width: 0;
  border-top: 2px solid var(--ink-faint);
  border-bottom: 2px solid var(--ink-faint);
  background: var(--panel-2);
}
.lw-bar.open-left  .lw-track { background: linear-gradient(90deg, transparent, var(--unwit-bg) 70%); }
.lw-bar.open-right .lw-track { background: linear-gradient(270deg, transparent, var(--unwit-bg) 70%); }
.lw-bar.open-left.open-right .lw-track {
  background: linear-gradient(90deg, transparent, var(--unwit-bg) 45%, var(--unwit-bg) 55%, transparent);
}

.lw-edges { display: flex; justify-content: space-between; gap: 1rem; margin-top: .3rem; font-size: 10.5px; }
.lw-edge { max-width: 48%; word-break: break-all; }
.lw-edge.right { text-align: right; }
.lw-edge .k { display: block; text-transform: uppercase; letter-spacing: .06em; }
.lw-edge.bounded .k { color: var(--sealed); }
.lw-edge.open    .k { color: var(--unwitnessed); }
.lw-edge .v { color: var(--ink-dim); }

/* --- stat strip ------------------------------------------------------------ */

.stats { border-top: 1px solid var(--hair); background-color: var(--bg-deep); padding: 3.2rem 0; }

/* Ten tiles. auto-fit gave six across and left a two-cell hole in the second
 * row, so the column count is stated: five, then two, then one. */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: var(--hair);
  border: 1px solid var(--hair);
  border-radius: 4px;
  overflow: hidden;
}

.stat {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  padding: 1.3rem 1.25rem 1.4rem;
  background: var(--bg-deep);
}
.stat .num {
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 2.9rem);
  font-weight: 700;
  font-stretch: 112%;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--ink-strong);
  font-variant-numeric: tabular-nums;
}
.stat .lbl { font-size: 11px; letter-spacing: .04em; color: var(--ink-faint); }

.stats-cap {
  margin: 1.2rem 0 0;
  max-width: 78ch;
  font-size: 11.5px;
  color: var(--ink-faint);
}
.stats-cap b { color: var(--ink-dim); }

/* --- how it works ---------------------------------------------------------- */
/* Numbered because these four moves genuinely are a sequence: each provably
 * precedes the next. The vertical rule through the number column is the chain. */

.steps { position: relative; list-style: none; margin: 2.6rem 0 0; padding: 0; }

.steps::before {
  content: "";
  position: absolute;
  left: 2.25rem;
  top: 2.4rem;
  bottom: 2.4rem;
  width: 1px;
  background: var(--hair);
}

.steps li {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr);
  gap: 1.75rem;
  padding: 1.8rem 0;
  border-top: 1px solid var(--hair);
}
.steps li:last-child { border-bottom: 1px solid var(--hair); }

.stepno {
  position: relative;
  z-index: 1;
  align-self: start;
  width: 4.5rem;
  padding: .1rem 0;
  text-align: center;
  background: var(--bg);
  font-size: 1.9rem;
  font-weight: 700;
  font-stretch: 112%;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}

.step-body h3 {
  margin: 0 0 .55rem;
  font-size: 1.15rem;
  font-weight: 700;
  font-stretch: 108%;
  letter-spacing: -0.01em;
}
.step-body p { margin: 0; max-width: 74ch; color: var(--ink-dim); }
.step-body b { color: var(--ink); }

/* --- card grids ------------------------------------------------------------ */

.grid-6 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 1rem;
  margin-top: 2.6rem;
}

.card {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  padding: 1.25rem 1.3rem 1.35rem;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 4px;
}
.card h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  font-stretch: 106%;
  line-height: 1.3;
  letter-spacing: -0.005em;
}
.card p { margin: 0; color: var(--ink-dim); font-size: 12.5px; }
.card b { color: var(--ink); }

.inv-id {
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  color: var(--ink-faint);
}

.chip {
  align-self: flex-start;
  margin-top: auto;
  padding-top: .7rem;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.chip-on  { color: var(--ink-faint); }
.chip-off { color: var(--unwitnessed); }


.novelty {
  margin: 1.8rem 0 0;
  padding: 1.15rem 1.3rem;
  max-width: none;
  background: var(--panel-2);
  border-left: 3px solid var(--ink-faint);
  color: var(--ink-dim);
  font-size: 12.5px;
}
.novelty b { color: var(--ink-strong); }

/* --- verification checklist ------------------------------------------------ */
/* The tick is --accent because "checked" is structural, not a ledger verdict.
 * The open row is --unwitnessed because in this project that colour means
 * exactly "not covered", which is what an open gap is. */

.checklist { list-style: none; margin: 2.4rem 0 0; padding: 0; }

.checklist li {
  display: grid;
  grid-template-columns: 1.5rem minmax(0, 1fr) minmax(0, 15rem);
  gap: 0 1.1rem;
  align-items: start;
  padding: 1.05rem 0;
  border-top: 1px solid var(--hair);
}
.checklist li:last-child { border-bottom: 1px solid var(--hair); }

.checklist li::before {
  content: "✓";
  color: var(--accent);
  font-size: 13px;
  line-height: 1.55;
}
.checklist li.open::before { content: "○"; color: var(--unwitnessed); }
.checklist li.open .ck-body b { color: var(--unwitnessed); }

.ck-body { color: var(--ink-dim); font-size: 12.5px; }
.ck-body b { color: var(--ink-strong); font-weight: 600; }

.src {
  font-size: 10.5px;
  letter-spacing: .05em;
  color: var(--ink-faint);
  text-align: right;
  word-break: break-word;
}
.src code { background: none; padding: 0; color: inherit; }

/* --- pipeline code block ---------------------------------------------------- */

.codeblock {
  margin-top: 2.2rem;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 4px;
  overflow-x: auto;
}
.codeblock pre { margin: 0; padding: 1.25rem 1.35rem; }
.codeblock code {
  display: block;
  background: none;
  padding: 0;
  white-space: pre;
  font: 12.5px/1.8 var(--mono);
  color: var(--ink-dim);
}
.c-c { color: var(--ink-faint); }
.c-s { color: var(--ink-strong); }
/* VIOLATED is a chain verdict, so it takes the verdict colour. */
.c-b { color: var(--disputed); }

/* --- FAQ -------------------------------------------------------------------- */

.faq { border-top: 1px solid var(--hair); }
.faq:last-of-type { border-bottom: 1px solid var(--hair); }

.faq summary {
  position: relative;
  list-style: none;
  cursor: pointer;
  padding: 1.15rem 2.75rem 1.15rem 0;
  font-family: var(--display);
  font-size: 1.02rem;
  font-weight: 600;
  font-stretch: 106%;
  line-height: 1.4;
  color: var(--ink-strong);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: .3rem;
  top: 1.05rem;
  font-family: var(--mono);
  font-size: 1.15rem;
  line-height: 1;
  color: var(--ink-faint);
}
.faq[open] summary::after { content: "–"; color: var(--accent); }
.faq summary { transition: color .18s ease, background-color .18s ease; }
.faq summary:hover { color: var(--accent); background-color: var(--accent-bg); }
.faq summary:hover::after { color: var(--accent); }
.faq summary code { font-size: .85em; }

.faq-body { padding: 0 2.75rem 1.4rem 0; max-width: 74ch; }
.faq-body p { margin: 0 0 .8rem; color: var(--ink-dim); }
.faq-body p:last-child { margin-bottom: 0; }
.faq-body b { color: var(--ink); }

/* --- closing ---------------------------------------------------------------- */

.closing {
  border-top: 1px solid var(--hair);
  padding: 5.5rem 0;
  text-align: center;
}
.closing-h {
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 800;
  font-stretch: 114%;
  line-height: 1;
  letter-spacing: -0.03em;
}
.closing-p {
  margin: 1.4rem auto 0;
  max-width: 66ch;
  color: var(--ink-dim);
}
.closing .cta-row { justify-content: center; }

/* --- footer ----------------------------------------------------------------- */

.sitefoot { border-top: 1px solid var(--hair); background-color: var(--bg-deep); padding: 3.5rem 0 2.5rem; }

.foot-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
  gap: 2.5rem;
  align-items: start;
}

.foot-brand p {
  margin: 1rem 0 0;
  max-width: 46ch;
  font-size: 11.5px;
  color: var(--ink-faint);
}

.foot-col { display: flex; flex-direction: column; gap: .55rem; }
.foot-col h3 {
  margin: 0 0 .3rem;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.foot-col a {
  position: relative;
  align-self: flex-start;
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 12px;
  transition: color .18s ease;
}
.foot-col a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -2px;
  height: 1px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .22s cubic-bezier(.22, .61, .36, 1);
}
.foot-col a:hover { color: var(--accent); }
.foot-col a:hover::after { transform: scaleX(1); }
.foot-col a span { color: var(--ink-faint); }
.foot-col a:hover span { color: var(--ink-faint); }

.foot-note {
  margin-top: 2.8rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--hair);
}
.foot-note p { margin: 0 0 .8rem; max-width: 84ch; font-size: 11.5px; color: var(--ink-faint); }
.foot-note p:last-child { margin-bottom: 0; }
.foot-note b { color: var(--ink-dim); }
.foot-copy { color: var(--ink-faint); }
.foot-copy a { color: var(--ink-dim); text-decoration: none; }
.foot-copy a:hover { color: var(--accent); }

/* --- section reveal ---------------------------------------------------------
 * Applied by landing.js, never in the markup: without JavaScript, or with
 * reduced motion asked for, nothing here is ever attached and every section is
 * simply visible. A page whose content depends on an animation having fired is
 * a page that can fail to say anything at all.
 *
 * The container carries the fade; its rows carry only a short staggered slide.
 * Fading both would double the effect on every grid on the page.
 */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity .6s cubic-bezier(.22, .61, .36, 1),
    transform .6s cubic-bezier(.22, .61, .36, 1);
}
.reveal.is-in { opacity: 1; transform: none; }

.reveal .r-item {
  transform: translateY(10px);
  transition: transform .55s cubic-bezier(.22, .61, .36, 1);
  transition-delay: calc(var(--i, 0) * 45ms);
}
.reveal.is-in .r-item { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal .r-item { opacity: 1; transform: none; transition: none; }
}

/* --- narrow ----------------------------------------------------------------- */

@media (max-width: 1000px) {
  .hero { grid-template-columns: 1fr; gap: 2.5rem; padding-top: 3.5rem; }
  /* Stacked, the live card is below the headline rather than beside it, so the
   * second wash follows it down instead of staying in an empty right margin. */
  .hero::before {
    background:
      radial-gradient(58% 32% at 30% 14%, var(--accent-wash), transparent 70%),
      radial-gradient(64% 30% at 55% 68%, var(--accent-wash), transparent 72%);
  }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem; }
  .foot-brand { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .band { padding: 3.75rem 0; }
  .checklist li { grid-template-columns: 1.5rem minmax(0, 1fr); }
  .src { grid-column: 2; text-align: left; margin-top: .4rem; }
  .steps li { grid-template-columns: 3rem minmax(0, 1fr); gap: 1rem; }
  .steps::before { left: 1.5rem; }
  .stepno { width: 3rem; font-size: 1.5rem; }
  .lc-line { grid-template-columns: 1fr; gap: 0; }
  .lc-line .res { padding-left: 1rem; }
}

@media (max-width: 520px) {
  .foot-grid { grid-template-columns: 1fr; }
}

/* ===========================================================================
 * PART TWO — the purple systems pass.
 *
 * Everything above this line is the original landing page. Everything below is
 * the figure work, the icon system and the interaction states added with it.
 * The rules the original file set still hold and are not relaxed here:
 *
 *   - --sealed / --unwitnessed / --disputed encode ledger state only. Every new
 *     figure below that uses one of the three is showing a verdict the ledger
 *     returned. Nothing decorative is allowed near them, which is why the
 *     purple glows in this file are always on a CONTAINER — a border, a halo, a
 *     backdrop — and never a fill behind a verdict.
 *   - Motion is an enhancement. Every transition and keyframe here is switched
 *     off under prefers-reduced-motion at the bottom of the file, and no figure
 *     depends on an animation having fired to be legible.
 * =========================================================================== */

/* --- the icon system -------------------------------------------------------
 * One 24×24 line grid, hand-authored in index.html. Stroke properties are set
 * here rather than on the symbols because they are inherited properties and so
 * pass through <use> into the shadow tree — which means a hovered card can
 * brighten its icon by changing `color` and nothing else. */

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.ic {
  width: 20px;
  height: 20px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -.28em;
  transition: transform var(--t) var(--ease), filter var(--t) ease;
}
.ic-sm { width: 15px; height: 15px; vertical-align: -.22em; }

/* The arrow on a primary button leans into the direction it is promising. */
.btn-primary .sweep { margin-left: .1rem; transition: transform var(--t) var(--ease); }
.btn-primary:hover .sweep { transform: translateX(3px); }

.k-disputed { color: var(--disputed); }
.k-live-i   { color: var(--accent); }

/* Two badges, and they must not be confusable. A LIVE badge means the values
 * beside it came back from the ledger in this browser; a DIAGRAM badge means
 * the figure draws a mechanism this page does not run. */
.badge-diagram {
  display: inline-block;
  padding: .1rem .4rem;
  border: 1px solid var(--rule);
  border-radius: 2px;
  font-size: 9.5px;
  letter-spacing: .12em;
  color: var(--ink-faint);
}

/* --- hero backdrop ---------------------------------------------------------
 * The lattice sits behind everything in the hero and is aria-hidden: it says
 * nothing the copy does not. Two histories are drawn lit, the one meeting
 * between them brighter still, and every edge that never formed stays faint.
 * That is the whole thesis as a picture, and it is the only reason the
 * decoration is here. */

.hero-field {
  position: absolute;
  z-index: -1;
  inset: -1px 0 -5rem;
  overflow: hidden;
  pointer-events: none;
  /* Atmosphere, not an element. Two things keep it there: it is drawn at under
   * half strength, and one radial mask pools it behind the live card and fades
   * it out before it reaches the headline. Without the mask the two lit chains
   * read as stray rules ruled across the type; with it they read as structure
   * standing behind the card that is actually computing something. */
  opacity: .5;
  mask-image: radial-gradient(120% 95% at 76% 46%, #000 8%, rgba(0, 0, 0, .5) 42%, transparent 76%);
  -webkit-mask-image: radial-gradient(120% 95% at 76% 46%, #000 8%, rgba(0, 0, 0, .5) 42%, transparent 76%);
}
.lattice { position: absolute; inset: 0; width: 100%; height: 100%; }

.lat-quiet, .lat-dots { opacity: .55; }

.lat-chain {
  stroke-dasharray: 720;
  stroke-dashoffset: 720;
  animation: draw 2.4s var(--ease) .25s forwards;
}
.lat-chain-2 { animation-delay: .6s; }
.lat-meet {
  stroke-dasharray: 260;
  stroke-dashoffset: 260;
  animation: draw 1.1s var(--ease) 1.5s forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }

.lat-pulse { opacity: 0; animation: latpop .5s var(--ease) 2.2s forwards, latbreathe 5s ease-in-out 2.7s infinite; }
.lat-pulse-2 { animation-delay: 2.35s, 2.85s; }
@keyframes latpop     { to { opacity: .9; } }
@keyframes latbreathe { 0%, 100% { opacity: .9; } 50% { opacity: .35; } }

/* The two focal washes now carry a magenta and an indigo companion, so the
 * ground has some movement in it rather than one flat violet. Both companions
 * are background-only and under 10% alpha — checked against the SEALED /
 * UNWITNESSED / DISPUTED rows on the live card, which sit on the right-hand
 * one and do not shift. */
.hero::before {
  background:
    radial-gradient(44% 62% at 22% 32%, var(--accent-wash), transparent 70%),
    radial-gradient(40% 52% at 79% 46%, var(--accent-wash), transparent 72%),
    radial-gradient(34% 44% at 92% 18%, var(--wash-magenta), transparent 74%),
    radial-gradient(38% 46% at 6% 74%, var(--wash-indigo), transparent 76%);
}

/* --- the ticker, lit ------------------------------------------------------- */

.tick:hover {
  background-color: var(--accent-bg);
  color: var(--ink);
  box-shadow: inset 0 -1px 0 0 var(--accent);
}

/* --- the live card, raised further ----------------------------------------- */

.livecard { transition: box-shadow .4s ease; }
.livecard:hover {
  box-shadow:
    var(--shadow-lift),
    0 0 0 1px var(--accent-edge),
    0 0 96px -18px var(--accent-glow),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.lc-chip { transition: border-color var(--t) ease, background-color var(--t) ease, transform var(--t) var(--ease); }
.lc-chip:hover { transform: translateX(2px); }

/* --- stat strip ------------------------------------------------------------
 * A tile is a fact plus its source. The source is folded away until the tile is
 * hovered or focused, because ten visible citations at once is a wall; it is in
 * the markup either way, so nothing is hidden from a reader without a pointer.
 * The tile is focusable for that reason. */

.stats .band-h { margin-bottom: 2rem; }

.stat {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: background-color var(--t) ease;
}
.stat::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: radial-gradient(120% 90% at 50% 118%, var(--accent-wash), transparent 70%);
  opacity: 0;
  transition: opacity var(--t) ease;
}
.stat:hover::before, .stat:focus-within::before { opacity: 1; }
.stat:hover .num, .stat:focus-within .num { color: var(--accent-hi); }
.stat .num { transition: color var(--t) ease; }
.stat.ok:hover .num, .stat.ok:focus-within .num { color: var(--sealed); }

.stat .why {
  display: block;
  margin-top: .55rem;
  max-height: 0;
  overflow: hidden;
  font-size: 10.5px;
  line-height: 1.55;
  color: var(--ink-dim);
  opacity: 0;
  transition: max-height .3s var(--ease), opacity .3s ease, margin-top .3s var(--ease);
}
.stat:hover .why, .stat:focus-within .why { max-height: 7rem; opacity: 1; }
.stat .why b {
  display: block;
  margin-top: .3rem;
  font-weight: 400;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
}
.stat .why code { font-size: .95em; }
.stat .lbl code { background: none; padding: 0; color: inherit; }

/* --- why this exists -------------------------------------------------------
 * Four cards, each with an icon plate, a small figure and a hover that lights
 * the plate and the border. The figures are line drawings on the same grid as
 * the icons so the two do not read as coming from different sets. */

/* Four cards, so four across or two across — auto-fit landed on three and
 * orphaned the fourth. */
.prob-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.6rem;
}
@media (max-width: 1040px) { .prob-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px)  { .prob-grid { grid-template-columns: 1fr; } }

.prob {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: .7rem;
  padding: 1.3rem 1.3rem 1.1rem;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 5px;
  transition: border-color var(--t) ease, box-shadow var(--t) ease, transform var(--t) var(--ease);
}
.prob::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(160deg, var(--accent-wash), transparent 58%);
  opacity: 0;
  transition: opacity var(--t) ease;
}
.prob:hover {
  border-color: var(--accent-edge);
  box-shadow: 0 18px 40px -26px rgba(0,0,0,.9), 0 0 34px -20px var(--accent-glow);
  transform: translateY(-2px);
}
.prob:hover::before { opacity: 1; }

.prob-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--accent-line);
  border-radius: 4px;
  background: var(--accent-bg);
  color: var(--accent);
  transition: border-color var(--t) ease, box-shadow var(--t) ease, color var(--t) ease;
}
.prob:hover .prob-ic {
  border-color: var(--accent);
  color: var(--accent-hi);
  box-shadow: 0 0 22px -6px var(--accent-glow);
}
.prob:hover .prob-ic .ic { transform: scale(1.08); }

.prob h3 { margin: 0; font-size: 1rem; font-weight: 700; font-stretch: 106%; line-height: 1.3; }
.prob p  { margin: 0; font-size: 12.5px; color: var(--ink-dim); }

.prob-fig {
  width: 100%;
  height: auto;
  margin-top: auto;
  padding-top: .5rem;
  color: var(--accent);
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: .75;
  transition: opacity var(--t) ease;
}
.prob:hover .prob-fig { opacity: 1; }
.prob-fig .pf-dev, .prob-fig .pf-dial, .prob-fig .pf-site circle, .prob-fig .pf-site path { }
.prob-fig .pf-dash, .prob-fig .pf-void { color: var(--ink-faint); stroke: currentColor; }
.prob-fig .pf-arrow { color: var(--ink-faint); stroke: currentColor; }
.prob-fig .pf-bars rect { fill: var(--accent); stroke: none; opacity: .55; }
.prob-fig .pf-gap { color: var(--unwitnessed); stroke: currentColor; }
.prob-fig .pf-hand { stroke-width: 1.6; }
.prob-fig .pf-hand-b { color: var(--unwitnessed); stroke: currentColor; }
.prob-fig .pf-t { fill: var(--ink-faint); stroke: none; font: 9px var(--mono); letter-spacing: .06em; }
.prob-fig .pf-t-warn { fill: var(--unwitnessed); }

.prob:hover .pf-dash { animation: crawl 1.6s linear infinite; }
@keyframes crawl { to { stroke-dashoffset: -18; } }

.prob .cite { margin-top: .1rem; }

/* --- the pipeline ----------------------------------------------------------
 * Eight stages left to right, wrapping to a grid on the way down. The connector
 * is a ::after on each stage rather than a separate element, so a stage and its
 * outgoing edge light together and there is nothing left over at the end of a
 * row to clean up. */

.pipe {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 2.4rem 0 3.5rem;
  padding: 0;
  background: var(--hair);
  border: 1px solid var(--hair);
  border-radius: 5px;
  overflow: hidden;
}

.pl {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  gap: .4rem;
  padding: 1.15rem 1.1rem 1.2rem;
  background: var(--bg-deep);
  transition: background-color var(--t) ease;
}
.pl::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(180deg, var(--accent-wash), transparent 70%);
  opacity: 0;
  transition: opacity var(--t) ease;
}
.pl:hover, .pl:focus-within { background-color: var(--panel); }
.pl:hover::before, .pl:focus-within::before { opacity: 1; }

/* A hovered stage lifts the stage before and after it too: the point of the
 * picture is that these are links in one path, not eight independent boxes. */
.pipe:has(.pl:hover) .pl { opacity: .55; transition: opacity var(--t) ease; }
.pipe:has(.pl:hover) .pl:hover,
.pipe:has(.pl:hover) .pl:hover + .pl { opacity: 1; }

.pl-n {
  font-family: var(--display);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .16em;
  color: var(--ink-faint);
  transition: color var(--t) ease;
}
.pl:hover .pl-n { color: var(--accent); }

.pl-ic { color: var(--accent); opacity: .8; transition: opacity var(--t) ease, color var(--t) ease; }
.pl:hover .pl-ic { opacity: 1; color: var(--accent-hi); }
.pl:hover .pl-ic .ic { filter: drop-shadow(0 0 7px var(--accent-glow)); }

.pl h3 {
  margin: .1rem 0 0;
  font-size: .95rem;
  font-weight: 700;
  font-stretch: 106%;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.pl p { margin: 0; font-size: 11.5px; line-height: 1.55; color: var(--ink-dim); }

/* The artifact slot. Empty in the markup for a live stage; landing.js writes
 * the returned value into it. Until it does, and if the module never loads, the
 * slot renders its data-fallback and nothing else. */
/* Only the value itself may break mid-token — it is a content address. The
 * note under it is prose and breaks on spaces like prose. */
.pl-art {
  display: block;
  margin-top: auto;
  padding-top: .7rem;
  font-size: 10.5px;
  line-height: 1.5;
  color: var(--accent);
}
.pl-art code { overflow-wrap: anywhere; }
.pl-art:empty::before {
  content: attr(data-fallback);
  color: var(--ink-faint);
}
.pl-art[data-live]:empty::before { content: "—"; }
.pl-art b {
  display: block;
  margin-top: .25rem;
  font-weight: 400;
  font-size: 9.5px;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.pl-art code { display: block; background: none; padding: 0; color: inherit; }
.pl-art.is-const { color: var(--ink-dim); }

@media (max-width: 900px) { .pipe { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .pipe { grid-template-columns: 1fr; } }

/* --- architecture diagram --------------------------------------------------
 * The strongest visual element on the page, so it is the one given a hover
 * model rather than a static picture: a node lights, its edges light with it,
 * and its paragraph opens underneath. Everything the diagram says is also in
 * the paragraphs, which are in the markup — with JavaScript off the diagram is
 * a still picture and the text is all still there. */

.arch { margin-top: 2.6rem; }

.arch-canvas {
  overflow-x: auto;
  padding: 1.4rem 1.2rem;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 5px;
  box-shadow: inset 0 0 90px -40px var(--accent-glow);
}
.archsvg { display: block; width: 100%; min-width: 760px; height: auto; }
.arch-hint { margin: .6rem 0 0; font-size: 10.5px; color: var(--ink-faint); }

.archsvg .nb {
  fill: var(--panel-2);
  stroke: var(--rule);
  stroke-width: 1.2;
  transition: stroke var(--t) ease, fill var(--t) ease, filter var(--t) ease;
}
.archsvg .nt { fill: var(--ink-strong); font: 600 13px var(--display); }
.archsvg .vt { font-size: 12px; }
.archsvg .ns { fill: var(--ink-faint); font: 10px var(--mono); letter-spacing: .04em; }
.archsvg .bl { fill: var(--accent); }
.archsvg .el { fill: var(--ink-dim); font: 9.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.archsvg .el-dim { fill: var(--ink-faint); }
.archsvg .bd { fill: var(--ink-faint); font: 9.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; }

.archsvg .glyph, .archsvg .nd {
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.3;
  stroke-linecap: round;
  opacity: .6;
  transition: opacity var(--t) ease;
}
.archsvg .glyph .cap-l, .archsvg .glyph .cap-r { stroke-width: 2.4; }
.archsvg .glyph .span { stroke: var(--unwitnessed); }
.archsvg .glyph text { stroke: none; }

.archsvg .boundary path { stroke: var(--accent-line); }
.archsvg .ed path { stroke: var(--rule); fill: none; stroke-linecap: round; transition: stroke var(--t) ease, filter var(--t) ease; }
.archsvg .mm { fill: var(--bg); stroke: var(--accent); stroke-width: 1.4; }
.archsvg .mmi { stroke: var(--accent); stroke-width: 1.4; stroke-linecap: round; }
.archsvg .mml { fill: var(--accent); }

.archsvg .anode { cursor: pointer; }
.archsvg .anode:focus { outline: none; }
.archsvg .anode:focus-visible .nb,
.archsvg .anode:focus-visible .mm { stroke: var(--accent); stroke-width: 2; }
.archsvg .is-ghost .nb { fill: none; }

/* A hovered or focused node dims everything that is not on its path. The
 * `data-hot` attribute is set by landing.js; the selectors below are the whole
 * interaction model. */
.archsvg[data-hot] .anode { opacity: .4; transition: opacity var(--t) ease; }
.archsvg[data-hot] .ed { opacity: .3; transition: opacity var(--t) ease; }
.archsvg[data-hot] .anode.is-hot { opacity: 1; }
.archsvg[data-hot] .ed.is-hot { opacity: 1; }
.archsvg .anode.is-hot .nb {
  fill: var(--accent-bg);
  stroke: var(--accent);
  filter: drop-shadow(0 0 10px var(--accent-glow));
}
.archsvg .anode.is-hot .glyph, .archsvg .anode.is-hot .nd { opacity: 1; }
.archsvg .ed.is-hot path { stroke: var(--accent); filter: drop-shadow(0 0 6px var(--accent-glow)); }

.arch-info { margin-top: 1rem; }
.ai {
  padding: 1rem 1.15rem;
  background: var(--panel-2);
  border: 1px solid var(--hair);
  border-left: 3px solid var(--accent-line);
  border-radius: 4px;
  transition: border-left-color var(--t) ease;
}
.ai + .ai { margin-top: .5rem; }
.ai h3 {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 0 0 .4rem;
  font-size: .95rem;
  font-weight: 700;
  font-stretch: 106%;
  color: var(--ink-strong);
}
.ai h3 .ic { color: var(--accent); }
.ai p { margin: 0; font-size: 12.5px; color: var(--ink-dim); }

/* Once landing.js runs, the panels collapse to one at a time and the diagram
 * drives which. Without it, `.is-live` is never set and all eight simply stack —
 * which is the accessible form of the same content. */
.arch-info.is-live .ai { display: none; }
.arch-info.is-live .ai.is-shown { display: block; border-left-color: var(--accent); }

/* --- capabilities ---------------------------------------------------------- */

.caps { display: grid; gap: 1.1rem; margin-top: 2.6rem; }

.cap {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 1.6rem;
  align-items: center;
  padding: 1.4rem;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 6px;
  transition: border-color var(--t) ease, box-shadow var(--t) ease;
}
.cap:hover {
  border-color: var(--accent-line);
  box-shadow: 0 24px 60px -40px rgba(0,0,0,.9), 0 0 44px -28px var(--accent-glow);
}
.cap-flip .cap-fig { order: 2; }

/* D, F and G are drawn SVG. At half the measure their labels fall under 8px,
 * so those rows stack instead: copy first, figure across the full width. */
.cap-wide { grid-template-columns: minmax(0, 1fr); }
.cap-wide .cap-fig { order: 2; }
.cap-wide .figbox { min-height: 0; }
.cap-wide .dagfig { max-width: 820px; margin-inline: auto; }
.cap-wide .fk { max-width: 760px; margin-inline: auto; }
.cap-wide .fig-g { max-width: 720px; }

.cap-copy { min-width: 0; }
.cap-letter {
  display: inline-block;
  margin-bottom: .5rem;
  padding: .1rem .45rem;
  border: 1px solid var(--accent-line);
  border-radius: 3px;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  color: var(--accent);
}
.cap-copy h3 {
  display: flex;
  align-items: baseline;
  gap: .6rem;
  margin: 0 0 .7rem;
  font-size: 1.1rem;
  font-weight: 700;
  font-stretch: 108%;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.cap-copy h3 .ic { color: var(--accent); transition: filter var(--t) ease; }
.cap:hover h3 .ic { filter: drop-shadow(0 0 8px var(--accent-glow)); }
.cap-copy p { margin: 0 0 .7rem; font-size: 12.5px; color: var(--ink-dim); }
.cap-copy .cap-note {
  padding: .6rem .75rem;
  background: var(--panel-2);
  border-left: 2px solid var(--accent-line);
  border-radius: 0 3px 3px 0;
  font-size: 11.5px;
  color: var(--ink-faint);
}
.cap-copy .cap-note code { font-size: .95em; }

.figbox {
  position: relative;
  min-height: 200px;
  padding: 2.2rem 1rem 1rem;
  background: var(--bg-deep);
  border: 1px solid var(--hair);
  border-radius: 5px;
  overflow: hidden;
}
.figbox::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(70% 60% at 50% 0%, var(--accent-wash), transparent 72%);
}
.figbox > * { position: relative; }

.figbadge {
  position: absolute;
  top: .6rem;
  left: .75rem;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .12rem .45rem;
  border-radius: 2px;
  font-size: 9.5px;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.figbadge.is-live {
  color: var(--accent);
  border: 1px solid var(--accent-edge);
  background: var(--accent-bg);
}
.figbadge.is-diagram {
  color: var(--ink-faint);
  border: 1px dashed var(--rule);
}
.fb-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
  animation: blip 3.6s ease-in-out infinite;
}

.fig-live:empty::before {
  content: attr(data-fallback);
  display: block;
  padding: 2.5rem 0;
  text-align: center;
  font-size: 11.5px;
  color: var(--ink-faint);
}
.fig-live.is-err { color: var(--disputed); font-size: 11.5px; }

.fig-a, .fig-g {
  display: block;
  width: 100%;
  max-width: 420px;
  margin-inline: auto;
  height: auto;
  color: var(--accent);
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.fig-a .dev { fill: var(--panel); }
.fig-a .scr { fill: var(--bg); color: var(--rule); stroke: currentColor; }
.fig-a .ln  { color: var(--ink-faint); stroke: currentColor; }
.fig-a .btn { color: var(--rule); stroke: currentColor; stroke-width: 2; }
.fig-a .nosig { color: var(--ink-faint); stroke: currentColor; }
/* Neutral, not red: in this palette red means a violation — tampering, a fork,
 * a quarantined key — and being offline is the normal state here, not a fault. */
.fig-a .slash { color: var(--ink-dim); stroke: currentColor; stroke-width: 1.6; }
.figt { fill: var(--ink-faint); stroke: none; font: 9.5px var(--mono); letter-spacing: .05em; }

.fig-g .gnode rect { fill: var(--panel-2); stroke: var(--rule); stroke-width: 1.2; }
.fig-g .gnode-hot rect { fill: var(--accent-bg); stroke: var(--accent-edge); }
.fig-g .gt { fill: var(--ink-strong); stroke: none; font: 600 12px var(--display); }
.fig-g .gt-ok  { fill: var(--sealed); }
.fig-g .gt-bad { fill: var(--disputed); }
.fig-g .gs { fill: var(--ink-faint); stroke: none; font: 9.5px var(--mono); }
.fig-g .gs-em { fill: var(--accent); }
.fig-g .ged { color: var(--rule); stroke: currentColor; }

/* --- figure B: the chain ---------------------------------------------------
 * A vertical run of blocks. The left rule of a block carries the ledger verdict
 * and nothing transient ever repaints it — the same discipline the demo page
 * holds its chain rows to. The connector between blocks is the prev link. */

.chainfig { display: flex; flex-direction: column; gap: 0; }
.cf-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }

.cf-block {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: .15rem .6rem;
  padding: .5rem .6rem;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-left-width: 3px;
  border-radius: 3px;
  font-size: 11px;
  transition: border-color var(--t) ease, transform var(--t) var(--ease), box-shadow var(--t) ease;
}
.cf-block:hover {
  transform: translateX(3px);
  box-shadow: 0 0 26px -14px var(--accent-glow);
  border-top-color: var(--accent-line);
  border-right-color: var(--accent-line);
  border-bottom-color: var(--accent-line);
}
.cf-block[data-state="sealed"]      { border-left-color: var(--sealed); }
.cf-block[data-state="unwitnessed"] { border-left-color: var(--unwitnessed); }
.cf-block[data-state="disputed"]    { border-left-color: var(--disputed); background: var(--disputed-bg); }

/* the prev link, drawn between consecutive blocks */
.cf-block + .cf-block::before {
  content: "";
  position: absolute;
  left: 1.1rem;
  top: -1.1rem;
  height: 1.1rem;
  border-left: 1px dashed var(--accent-line);
}
.cf-block + .cf-block::after {
  content: "";
  position: absolute;
  left: calc(1.1rem - 2.5px);
  top: -.35rem;
  width: 6px; height: 6px;
  border-right: 1px solid var(--accent);
  border-bottom: 1px solid var(--accent);
  transform: rotate(45deg);
}

.cf-seq   { color: var(--ink-dim); letter-spacing: .04em; }
.cf-badge { justify-self: end; font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; padding: 0 .3rem; border-radius: 2px; white-space: nowrap; }
.cf-badge[data-state="sealed"]      { color: var(--sealed);      background: var(--sealed-bg); }
.cf-badge[data-state="unwitnessed"] { color: var(--unwitnessed); background: var(--unwit-bg); }
.cf-badge[data-state="disputed"]    { color: var(--disputed);    background: var(--disputed-bg); }
.cf-id   { grid-column: 1 / -1; color: var(--accent); word-break: break-all; }
.cf-text { grid-column: 1 / -1; color: var(--ink); word-break: break-word; }
.cf-prev { grid-column: 1 / -1; color: var(--ink-faint); font-size: 10px; word-break: break-all; }

/* --- figure C: the exchange ------------------------------------------------ */

.atfig { display: grid; gap: .9rem; }
.at-heads { display: grid; grid-template-columns: 1fr auto 1fr; gap: .6rem; align-items: center; }
.at-dev {
  display: grid;
  justify-items: center;
  gap: .15rem;
  padding: .6rem .5rem;
  background: var(--panel);
  border: 1px solid var(--accent-line);
  border-radius: 4px;
  color: var(--accent);
}
.at-dev b { font-size: 11.5px; color: var(--ink-strong); font-weight: 600; }
.at-key { font-size: 10px; color: var(--ink-faint); }
.at-mid { display: grid; justify-items: center; gap: .2rem; color: var(--accent); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; }
.at-mid .ic { animation: blip 3.6s ease-in-out infinite; }

.at-x {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: .25rem;
  padding: .5rem .6rem;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 3px;
  font-size: 11px;
  transition: border-color var(--t) ease, box-shadow var(--t) ease;
}
.at-x:hover { border-color: var(--accent-edge); box-shadow: 0 0 24px -14px var(--accent-glow); }
.at-lbl { color: var(--ink); }
.at-line {
  position: relative;
  height: 1px;
  margin: .25rem 0;
  background: linear-gradient(90deg, var(--accent-line), var(--accent), var(--accent-line));
}
.at-line::after {
  content: "";
  position: absolute;
  top: -3px;
  width: 7px; height: 7px;
  border-top: 1px solid var(--accent);
  border-right: 1px solid var(--accent);
}
.at-x.dir-r .at-line::after { right: 0; transform: rotate(45deg); }
.at-x.dir-l .at-line::after { left: 0; transform: rotate(-135deg); }
.at-id { color: var(--accent); font-size: 10.5px; word-break: break-all; background: none; padding: 0; }
.at-meta { color: var(--ink-faint); font-size: 10px; }

/* --- figure D: the DAG ----------------------------------------------------- */

.dagfig { display: block; width: 100%; height: auto; }
.dagfig .dg-lane { fill: var(--ink-faint); font: 9.5px var(--mono); letter-spacing: .09em; text-transform: uppercase; }
.dagfig .dg-v rect, .dagfig .dg-v circle {
  fill: var(--panel);
  stroke: var(--rule);
  stroke-width: 1.2;
  transition: stroke var(--t) ease, filter var(--t) ease;
}
.dagfig .dg-v.is-att rect { fill: var(--accent-bg); stroke: var(--accent-edge); }
.dagfig .dg-v.st-sealed rect      { stroke: var(--sealed); }
.dagfig .dg-v.st-unwitnessed rect { stroke: var(--unwitnessed); }
.dagfig .dg-v.st-disputed rect    { stroke: var(--disputed); }
.dagfig .dg-t { fill: var(--ink-strong); stroke: none; font: 10.5px var(--mono); }
.dagfig .dg-s { fill: var(--ink-faint); stroke: none; font: 9px var(--mono); }
/* A chain edge is structural and stays quiet; a sealing edge is the whole
 * point of the picture and takes the system colour. Both must be visible —
 * an edge drawn in --rule against --panel is a join, not an edge. */
.dagfig .dg-e { stroke: var(--ink-faint); fill: none; stroke-width: 1.2; }
.dagfig .dg-e.is-seal { stroke: var(--accent); }
.dagfig .dg-v:hover rect { filter: drop-shadow(0 0 8px var(--accent-glow)); }
.dagfig .dg-legend { fill: var(--ink-faint); stroke: none; font: 9px var(--mono); }

.dag-cap { margin: .7rem 0 0; font-size: 10.5px; color: var(--ink-faint); }
.dag-cap b { color: var(--accent); font-weight: 400; }

/* --- figure E: the bracket ------------------------------------------------- */

.bkfig { display: grid; gap: .85rem; }
.bk-tabs { display: flex; flex-wrap: wrap; gap: .4rem; }
.bk-tab {
  font: inherit;
  font-size: 10.5px;
  padding: .3rem .55rem;
  color: var(--ink-dim);
  background: transparent;
  border: 1px solid var(--rule);
  border-left-width: 3px;
  border-radius: 3px;
  cursor: pointer;
  transition: color var(--t) ease, background-color var(--t) ease, border-color var(--t) ease;
}
.bk-tab[data-state="sealed"]      { border-left-color: var(--sealed); }
.bk-tab[data-state="unwitnessed"] { border-left-color: var(--unwitnessed); }
.bk-tab[data-state="disputed"]    { border-left-color: var(--disputed); }
.bk-tab:hover { color: var(--ink); border-top-color: var(--accent-line); border-right-color: var(--accent-line); border-bottom-color: var(--accent-line); }
.bk-tab[aria-pressed="true"][data-state="sealed"]      { color: var(--sealed);      background: var(--sealed-bg); }
.bk-tab[aria-pressed="true"][data-state="unwitnessed"] { color: var(--unwitnessed); background: var(--unwit-bg); }
.bk-tab[aria-pressed="true"][data-state="disputed"]    { color: var(--disputed);    background: var(--disputed-bg); }

.bk-verdict {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .45rem .6rem;
  border-radius: 3px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .06em;
}
.bk-verdict[data-state="sealed"]      { color: var(--sealed);      background: var(--sealed-bg); }
.bk-verdict[data-state="unwitnessed"] { color: var(--unwitnessed); background: var(--unwit-bg); }
.bk-verdict[data-state="disputed"]    { color: var(--disputed);    background: var(--disputed-bg); }

.bk-axis { margin-top: .2rem; }
.bk-axis-l {
  display: flex;
  justify-content: space-between;
  font-size: 9.5px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: .35rem;
}
.bk-kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: .2rem .8rem; margin: 0; font-size: 10.5px; }
.bk-kv dt { color: var(--ink-faint); }
.bk-kv dd { margin: 0; color: var(--ink); word-break: break-all; }
.bk-kv dd.none { color: var(--unwitnessed); }
.bk-note { margin: 0; font-size: 10.5px; line-height: 1.6; color: var(--ink-faint); }

/* --- figure F: the fork ---------------------------------------------------- */

.fkfig { display: grid; gap: .85rem; }
.fk { display: block; width: 100%; height: auto; }
.fk .fk-node rect { fill: var(--panel); stroke: var(--rule); stroke-width: 1.2; }
.fk .fk-node.is-a rect { stroke: var(--disputed); }
.fk .fk-node.is-b rect { stroke: var(--disputed); stroke-dasharray: 4 3; }
.fk .fk-t { fill: var(--ink-strong); stroke: none; font: 10.5px var(--mono); }
.fk .fk-s { fill: var(--ink-faint); stroke: none; font: 9px var(--mono); }
.fk .fk-e { stroke: var(--rule); fill: none; stroke-width: 1.2; }
.fk .fk-e.is-split { stroke: var(--disputed); }
.fk .fk-mark { fill: var(--disputed); stroke: none; font: 600 10px var(--mono); letter-spacing: .09em; }

.fk-proof {
  display: grid;
  gap: .2rem;
  padding: .6rem .7rem;
  background: var(--disputed-bg);
  border-left: 3px solid var(--disputed);
  border-radius: 0 3px 3px 0;
  font-size: 10.5px;
}
.fk-row { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: .6rem; }
.fk-row span { color: var(--ink-faint); }
.fk-row code { background: none; padding: 0; color: var(--disputed); word-break: break-all; }
.fk-note { margin: 0; font-size: 10.5px; color: var(--ink-faint); }

/* --- invariants, restyled -------------------------------------------------- */

.card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  transition: border-color var(--t) ease, box-shadow var(--t) ease, transform var(--t) var(--ease);
}
.card::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(155deg, var(--accent-wash), transparent 60%);
  opacity: 0;
  transition: opacity var(--t) ease;
}
.card:hover {
  border-color: var(--accent-line);
  box-shadow: 0 16px 38px -28px rgba(0,0,0,.9), 0 0 30px -20px var(--accent-glow);
  transform: translateY(-2px);
}
.card:hover::before { opacity: 1; }

.inv-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.inv-head .ic { color: var(--accent); opacity: .55; transition: opacity var(--t) ease, transform var(--t) var(--ease); }
.card:hover .inv-head .ic { opacity: 1; transform: scale(1.06); }
.inv-id { transition: color var(--t) ease; }
.card:hover .inv-id { color: var(--accent); }
.card.is-open:hover .inv-head .ic { color: var(--unwitnessed); }

/* --- limits: the two-column split ------------------------------------------
 * The KNOWS column takes --accent, the system's own colour. The DOES NOT KNOW
 * column takes --unwitnessed, which in this palette means precisely "not
 * covered". Green is not used on either: green is a sealed verdict on one
 * specific record, and a general statement about the system is not one. */

.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.6rem;
}

.col {
  padding: 1.4rem 1.4rem 1.5rem;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 6px;
}
.col-knows { border-top: 3px solid var(--accent); }
.col-not   { border-top: 3px solid var(--unwitnessed); border-style: dashed solid solid; }

.col-h {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin: 0 0 1.1rem;
  font-size: 1rem;
  font-weight: 700;
  font-stretch: 108%;
  letter-spacing: .01em;
  text-transform: uppercase;
}
.col-knows .col-h, .col-knows .col-h .ic { color: var(--accent); }
.col-not   .col-h, .col-not   .col-h .ic { color: var(--unwitnessed); }

.col-list { list-style: none; margin: 0; padding: 0; }
.col-list li {
  position: relative;
  padding: .85rem 0 .85rem 1.2rem;
  border-top: 1px solid var(--hair);
  font-size: 12.5px;
  color: var(--ink-dim);
  transition: color var(--t) ease;
}
.col-list li:first-child { border-top: none; padding-top: 0; }
.col-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.35rem;
  width: 5px;
  height: 5px;
  border-radius: 1px;
  transition: box-shadow var(--t) ease;
}
.col-list li:first-child::before { top: .5rem; }
.col-knows .col-list li::before { background: var(--accent); }
.col-not   .col-list li::before { background: var(--unwitnessed); }
.col-list li:hover { color: var(--ink); }
.col-knows .col-list li:hover::before { box-shadow: 0 0 9px 1px var(--accent-glow); }
.col-list li b { color: var(--ink-strong); font-weight: 600; }
.col-list li .src { display: block; margin-top: .35rem; text-align: left; }

/* the dashed-card treatment moves off .limits .card, which no longer exists */
.limits .novelty { border-left-color: var(--accent-line); }

/* --- checklist, lit --------------------------------------------------------- */

.checklist li { transition: background-color var(--t) ease; }
.checklist li:hover { background-color: var(--accent-bg); }
.checklist li::before { transition: text-shadow var(--t) ease; }
.checklist li:hover::before { text-shadow: 0 0 10px var(--accent-glow); }

/* --- code block: a bar and a copy control ---------------------------------- */

.codeblock { position: relative; }
.cb-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .5rem .8rem .5rem 1rem;
  background: var(--panel-2);
  border-bottom: 1px solid var(--rule);
  font-size: 10.5px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.cb-name { display: inline-flex; align-items: center; gap: .45rem; }
.cb-name .ic { color: var(--accent); }

.cb-copy {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .25rem .5rem;
  font: inherit;
  font-size: 10.5px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-faint);
  background: transparent;
  border: 1px solid var(--rule);
  border-radius: 3px;
  cursor: pointer;
  transition: color var(--t) ease, border-color var(--t) ease, box-shadow var(--t) ease;
}
.cb-copy:hover { color: var(--accent); border-color: var(--accent-edge); box-shadow: 0 0 18px -8px var(--accent-glow); }
.cb-copy.is-done { color: var(--sealed); border-color: var(--sealed); }

/* --- FAQ, lit --------------------------------------------------------------- */

.faq summary { transition: color var(--t-fast) ease, background-color var(--t-fast) ease, padding-left var(--t) var(--ease); }
.faq summary:hover { padding-left: .5rem; }
.faq[open] summary { color: var(--accent); }

/* --- closing ---------------------------------------------------------------- */

.closing { position: relative; isolation: isolate; overflow: hidden; }
.closing-glow {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(52% 70% at 50% 108%, var(--accent-wash), transparent 72%),
    radial-gradient(34% 46% at 16% 8%, var(--wash-indigo), transparent 76%),
    radial-gradient(34% 46% at 86% 12%, var(--wash-magenta), transparent 76%);
}
.closing-h em { font-style: normal; color: var(--accent); }
.closing .eyebrow { margin-bottom: 1.4rem; }

.closing-cmds {
  display: grid;
  gap: .4rem;
  max-width: 620px;
  margin: 2.4rem auto 0;
  text-align: left;
}
.cmdrow {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .45rem .5rem .45rem .75rem;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 3px;
  transition: border-color var(--t) ease;
}
.cmdrow:hover { border-color: var(--accent-line); }
.cmdrow code {
  flex: 1;
  min-width: 0;
  background: none;
  padding: 0;
  font-size: 11.5px;
  color: var(--ink-dim);
  overflow-x: auto;
  white-space: nowrap;
}
.cmdrow .cb-copy { flex: none; }

/* --- reveal: the new rows join the stagger --------------------------------- */

.reveal .r-item { opacity: .001; transition: transform .55s var(--ease), opacity .45s ease; }
.reveal.is-in .r-item { opacity: 1; }

/* --- narrow ----------------------------------------------------------------- */

@media (max-width: 1000px) {
  .cap { grid-template-columns: 1fr; gap: 1.1rem; }
  .cap-flip .cap-fig { order: 0; }
  .split { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .arch-canvas { padding: 1rem .6rem; }
  .prob-grid { gap: .75rem; }
  .caps { gap: .8rem; }
  .cap { padding: 1.1rem; }
  .fk-row { grid-template-columns: 1fr; gap: 0; }
  .closing-cmds { margin-top: 1.8rem; }
}

/* --- motion off ------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .lat-chain, .lat-meet { stroke-dasharray: none; stroke-dashoffset: 0; animation: none; }
  .lat-pulse { opacity: .9; animation: none; }
  .fb-dot, .at-mid .ic { animation: none; }
  .prob:hover .pf-dash { animation: none; }
  .prob:hover, .card:hover, .cf-block:hover, .lc-chip:hover { transform: none; }
  .btn-primary:hover .sweep { transform: none; }
  .faq summary:hover { padding-left: 0; }
  .ic, .stat .why, .pipe .pl, .cap, .prob, .card { transition: none; }
}

/* the three properties named under the closing paragraph */
.closing-marks {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .6rem 1.6rem;
  margin: 2rem 0 0;
  padding: 0;
  font-size: 11.5px;
  color: var(--ink-faint);
}
.closing-marks li { display: inline-flex; align-items: center; gap: .5rem; }
.closing-marks .ic { color: var(--accent); opacity: .8; }

/* Ten stat tiles divide evenly by five, two and one, and by nothing else that
 * fits — so those are the three column counts. */
@media (max-width: 1040px) { .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 460px)  { .stat-grid { grid-template-columns: 1fr; } }

/* the record nodes on the two lit chains */
.lat-rec { opacity: 0; animation: latpop .6s var(--ease) 1.1s forwards; }
@media (prefers-reduced-motion: reduce) { .lat-rec { opacity: .9; animation: none; } }
