/* ==========================================================================
   /name — standalone page. Deliberately shares nothing with the terminal
   theme in styles.css; this page does not load it.
   ========================================================================== */

:root {
  --bg: #08080b;
  --ink: #fafafa;
  --muted: #a1a1aa;
  --dim: #6f6f78;
  --line: rgba(255, 255, 255, 0.09);
  --line-soft: rgba(255, 255, 255, 0.055);
  --surface: rgba(255, 255, 255, 0.035);
  --surface-2: rgba(255, 255, 255, 0.06);

  --g1: #c084fc;
  --g2: #f472b6;
  --g3: #fb923c;
  --grad: linear-gradient(115deg, var(--g1) 0%, var(--g2) 52%, var(--g3) 100%);

  --display: "Inter Tight", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --measure: 34rem;
  --gutter: clamp(4.75rem, 13vw, 8.5rem);
  --page: min(100% - 2.5rem, 60rem);
}

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

html {
  color-scheme: dark;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

::selection { background: rgba(244, 114, 182, 0.28); }

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

/* ── Ambient background ──────────────────────────────────────── */
.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ambient span {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(110px);
}

.ambient__a {
  top: -18vh; left: -10vw;
  width: 60vw; height: 60vw;
  max-width: 780px; max-height: 780px;
  background: radial-gradient(circle, rgba(192, 132, 252, 0.20), transparent 68%);
}

.ambient__b {
  right: -16vw; bottom: -22vh;
  width: 64vw; height: 64vw;
  max-width: 820px; max-height: 820px;
  background: radial-gradient(circle, rgba(251, 146, 60, 0.14), transparent 68%);
}

.wrap {
  position: relative;
  z-index: 1;
  width: var(--page);
  margin-inline: auto;
  padding-bottom: 6rem;
}

/* ── Topbar ──────────────────────────────────────────────────── */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.75rem 0;
  font-size: 0.83rem;
  letter-spacing: 0.01em;
}

.topbar a { text-decoration: none; }

.topbar__back {
  color: var(--dim);
  transition: color 180ms ease;
}

.topbar__back::before {
  content: "\2190";
  margin-right: 0.45rem;
}

.topbar__back:hover { color: var(--ink); }

.topbar__jump {
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--surface);
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.topbar__jump:hover {
  color: var(--ink);
  border-color: rgba(244, 114, 182, 0.45);
  background: var(--surface-2);
}

/* ── Concise / detailed ──────────────────────────────────────────
   The title and the scrubber are in both modes; everything with a
   data-when sits in exactly one of them. The attribute selectors on
   <html> outrank the class rules that lay these blocks out, so no
   !important is needed.
   ──────────────────────────────────────────────────────────────── */
html[data-mode="concise"] [data-when="detailed"],
html[data-mode="detailed"] [data-when="concise"] { display: none; }

/* The switch is JS-only, and the head script marks the document as soon as
   it runs. Without it the page stays on the detailed version, which is the
   whole page, so there is nothing for a switch to do. */
.modeswitch { display: none; }

html[data-js] .modeswitch {
  display: inline-flex;
  padding: 2px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.modeswitch__opt { display: block; }

.modeswitch__opt input {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}

.modeswitch__opt span {
  display: block;
  padding: 0.3rem 0.85rem;
  border-radius: 999px;
  color: var(--dim);
  font-size: 0.78rem;
  cursor: pointer;
  user-select: none;
  transition: color 180ms ease, background 180ms ease;
}

.modeswitch__opt:hover span { color: var(--muted); }

.modeswitch__opt input:checked + span {
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink);
}

.modeswitch__opt input:focus-visible + span {
  outline: 2px solid var(--g2);
  outline-offset: 3px;
}

/* ── Shared type ─────────────────────────────────────────────── */
.eyebrow {
  margin: 0 0 1.1rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dim);
}

.h1 {
  margin: 0 0 1.1rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.1rem, 6.5vw, 3.4rem);
  line-height: 1.12;
  letter-spacing: -0.032em;
}

.h1 em {
  font-style: italic;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.h2 {
  margin: 0 0 1.15rem;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

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

.chip {
  padding: 0.12rem 0.42rem;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--surface-2);
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 0.86em;
  color: #f0abfc;
  white-space: nowrap;
}

/* ── Hero ────────────────────────────────────────────────────── */
.hero {
  padding: clamp(2.5rem, 8vw, 5rem) 0 clamp(3rem, 7vw, 4.5rem);
  text-align: center;
}

.hero .eyebrow { text-align: center; }

.hero .lede,
.story__lede {
  margin-inline: auto;
  color: var(--muted);
  font-size: 1.02rem;
}

.hero .lede { max-width: 33rem; margin-top: 2.5rem; }

/* The story lede sits in a left-aligned section, so it should not be centred. */
.story__lede { margin-inline: 0; max-width: 36rem; }

/* Morph stage */
.morph {
  position: relative;
  width: 100%;
  margin: 0 auto;
  /* Vertical padding is headroom for a name stepping off the line to pass
     another; measure() sets it from the arc it actually uses. A margin
     would not do: it collapses into the eyebrow's and the scrubber's. */
  transition: height 200ms ease, padding 200ms ease;
}

.morph__stage {
  position: relative;
  --gap: clamp(0.6rem, 2vw, 1.15rem);
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: var(--gap);
  margin-inline: auto;
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(2.3rem, 10vw, 5.25rem);
  line-height: 1.16;
  letter-spacing: -0.035em;
  white-space: nowrap;
  transform-origin: 50% 0;
}

/* Before JS: plain flex row showing the destination name, middles off (the
   toggle defaults unchecked). Once JS runs it sets display per token. */
.morph__stage .tok--old,
.morph__stage .tok--mid { display: none; }

/* After JS: absolutely positioned, driven by the slider. */
.morph__stage.is-live {
  display: block;
  height: 1.16em;
  /* JS centres the stage via translateX so it works at any scale. */
  margin-inline: 0;
}

.morph__stage.is-live .tok {
  position: absolute;
  top: 0;
  left: 0;
  will-change: transform, opacity;
}

.tok--keep { color: var(--ink); }

/* Lewis -> Elias. Letters are placed by JS; the two glyphs in each letter
   sit on top of one another and crossfade. Letter-spacing is deliberately
   inherited from .morph__stage: each single-glyph span then measures one
   tracked advance, so summing those widths reproduces normal typesetting.
   Zeroing it here would leave the rearranged word too loose. */
.tok--wordmorph {
  position: relative;
  display: inline-block;
  color: var(--dim);
}

.tok--wordmorph .ltr {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-block;
  text-align: center;
  will-change: transform, width;
}

.tok--wordmorph .ltr__g {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  will-change: opacity;
}

.tok--new {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* No compositor layer for the gradient-text tokens. With will-change:
   transform, desktop Firefox (WebRender, GPU) paints the background-clip:
   text mask at the token's untransformed spot, left: 0, while the glyphs
   move with translate(): Ezekiel, which barely moves, showed, and "Zeke",
   translated ~260px, rendered as an empty gap. Headless/software rendering
   does not reproduce it. Costs a repaint per scrub step on two words. */
.morph__stage.is-live .tok--new { will-change: auto; }

.tok--old { color: var(--dim); }

/* Scrubber */
.scrub {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.65rem, 2.5vw, 1.4rem);
  max-width: 41rem;
  margin: clamp(1.75rem, 5vw, 2.75rem) auto 0;
}

.scrub__cap {
  flex: 0 0 auto;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--dim);
  white-space: nowrap;
}

.scrub__track { flex: 1 1 auto; display: block; min-width: 0; }

#slide {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 26px;
  margin: 0;
  background: transparent;
  cursor: grab;
}

#slide:active { cursor: grabbing; }

#slide::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255,255,255,0.14), rgba(255,255,255,0.14));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
}

#slide::-moz-range-track {
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
}

#slide::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 19px; height: 19px;
  margin-top: -8px;
  border: none;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 0 4px rgba(244, 114, 182, 0.14), 0 3px 12px rgba(0, 0, 0, 0.55);
  transition: box-shadow 180ms ease, transform 180ms ease;
}

#slide:hover::-webkit-slider-thumb,
#slide:focus-visible::-webkit-slider-thumb {
  transform: scale(1.12);
  box-shadow: 0 0 0 7px rgba(244, 114, 182, 0.18), 0 3px 14px rgba(0, 0, 0, 0.6);
}

#slide::-moz-range-thumb {
  width: 19px; height: 19px;
  border: none;
  border-radius: 50%;
  background: #f472b6;
  box-shadow: 0 0 0 4px rgba(244, 114, 182, 0.14);
}

/* Middle-names toggle */
.morph__opts {
  display: flex;
  justify-content: center;
  margin-top: 1.1rem;
}

.midtoggle {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.2rem;
  color: var(--dim);
  font-size: 0.8rem;
  cursor: pointer;
  user-select: none;
  transition: color 180ms ease;
}

.midtoggle:hover { color: var(--muted); }

.midtoggle input {
  position: absolute;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}

.midtoggle__box {
  position: relative;
  flex: 0 0 auto;
  width: 1rem; height: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 4px;
  background: var(--surface);
  transition: background 180ms ease, border-color 180ms ease;
}

.midtoggle__box::after {
  content: "";
  position: absolute;
  top: 0.14rem; left: 0.3rem;
  width: 0.26rem; height: 0.5rem;
  border: solid #0a0a0c;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0.6);
  opacity: 0;
  transition: opacity 150ms ease, transform 150ms ease;
}

.midtoggle input:checked + .midtoggle__box {
  border-color: transparent;
  background: var(--grad);
}

.midtoggle input:checked + .midtoggle__box::after {
  opacity: 1;
  transform: rotate(45deg) scale(1);
}

.midtoggle input:focus-visible + .midtoggle__box {
  outline: 2px solid var(--g2);
  outline-offset: 3px;
}

.midtoggle input:checked ~ .midtoggle__text { color: var(--ink); }

.scrub__hint {
  margin: 0.85rem auto 0;
  max-width: none;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--dim);
  opacity: 0.85;
  transition: opacity 400ms ease;
}

.scrub__hint.is-gone { opacity: 0; }

/* CTA */
.cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 2.25rem;
  padding: 0.78rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
  transition: border-color 200ms ease, background 200ms ease, transform 200ms ease;
}

.cta svg { transition: transform 200ms ease; }
.cta:hover { border-color: rgba(244, 114, 182, 0.5); background: var(--surface-2); }
.cta:hover svg { transform: translateX(3px); }

/* ── Panels ──────────────────────────────────────────────────── */
.panel {
  margin: 0 0 clamp(1.25rem, 3vw, 1.75rem);
  padding: clamp(1.6rem, 4vw, 2.5rem);
  border: 1px solid var(--line-soft);
  border-radius: 1.15rem;
  background: var(--surface);
}

.panel p { color: var(--muted); }
.panel strong { color: var(--ink); font-weight: 600; }

/* ── Concise panel ───────────────────────────────────────────── */
.brief { margin-top: clamp(0.5rem, 2vw, 1rem); }

.brief p { font-size: 1.02rem; }

.brief__more {
  margin-top: 1.5rem;
  font-size: 0.88rem;
  color: var(--dim);
}

.brief__btn {
  padding: 0;
  border: 0;
  border-bottom: 1px solid rgba(244, 114, 182, 0.35);
  background: none;
  color: var(--g2);
  font: inherit;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease;
}

.brief__btn:hover { color: #f9a8d4; border-bottom-color: var(--g2); }

/* ── Thermometer ─────────────────────────────────────────────── */
.progress__intro {
  margin-bottom: 2.25rem;
  color: var(--muted);
}

.progress__intro strong {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 700;
}

.progress__note {
  margin-top: 2.25rem;
  font-size: 0.88rem;
  color: var(--dim);
}

.thermo {
  --tube: 1.9rem;
  --bulb: 2.8rem;
  --fill: 8.3%; /* no-JS fallback: one stage of nine, offset for the bulb. JS measures it exactly. */
  position: relative;
  padding-bottom: calc(var(--bulb) + 0.4rem);
}

.thermo__tube {
  position: absolute;
  top: 0;
  bottom: calc(var(--bulb) - 0.55rem);
  left: 0;
  width: var(--tube);
  border: 1px solid var(--line);
  border-bottom: none;
  border-radius: var(--tube) var(--tube) 0 0;
  background: rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.thermo__fill {
  position: absolute;
  right: 0; bottom: 0; left: 0;
  height: var(--fill);
  background: var(--grad);
  box-shadow: 0 0 22px rgba(244, 114, 182, 0.4);
  transition: height 1000ms cubic-bezier(0.22, 1, 0.36, 1);
}

.thermo__bulb {
  position: absolute;
  bottom: 0;
  left: calc(var(--tube) / 2 - var(--bulb) / 2);
  width: var(--bulb);
  height: var(--bulb);
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 26px rgba(244, 114, 182, 0.38);
}

@media (prefers-reduced-motion: reduce) {
  .thermo__fill { transition: none; }
}

.stages {
  position: relative;
  z-index: 1;
  margin: 0;
  padding: 0;
  list-style: none;
}

.stage {
  display: grid;
  grid-template-columns: var(--tube) 1fr;
  gap: 0 1.15rem;
  align-items: center;
  min-height: 3.5rem;
}

.stage__tick {
  justify-self: center;
  width: 0.8rem; height: 0.8rem;
  border: 2px solid rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  background: #0b0b10;
}

.stage__label {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  font-size: 0.94rem;
  line-height: 1.45;
  color: var(--dim);
}

.stage__num {
  min-width: 1.1rem;
  font-size: 0.72rem;
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.28);
}

.stage[data-status="done"] .stage__tick {
  border-color: transparent;
  background: var(--grad);
  box-shadow: 0 0 12px rgba(244, 114, 182, 0.6);
}

.stage[data-status="done"] .stage__label { color: var(--ink); }
.stage[data-status="done"] .stage__num { color: var(--g2); }

.stage[data-status="active"] .stage__tick {
  border-color: var(--g1);
  animation: tick-pulse 2.2s ease-in-out infinite;
}

.stage[data-status="active"] .stage__label { color: #e9d5ff; }
.stage[data-status="active"] .stage__num { color: var(--g1); }

.stage[data-status="active"] .stage__text::after {
  content: "in progress";
  margin-left: 0.6rem;
  padding: 0.1rem 0.45rem;
  border: 1px solid rgba(192, 132, 252, 0.3);
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--g1);
  white-space: nowrap;
}

@keyframes tick-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(192, 132, 252, 0.4); }
  50% { box-shadow: 0 0 0 0.4rem rgba(192, 132, 252, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .stage[data-status="active"] .stage__tick { animation: none; }
}

/* ── Story / timeline ────────────────────────────────────────── */
.story {
  padding: clamp(3.5rem, 9vw, 6rem) 0 clamp(1rem, 3vw, 2rem);
  scroll-margin-top: 2rem;
}

.story__lede { margin-bottom: clamp(2.5rem, 6vw, 3.75rem); }

.tl {
  position: relative;
  margin: 0;
  padding: 0 0 0 var(--gutter);
  list-style: none;
}

/* the spine */
.tl::before {
  content: "";
  position: absolute;
  top: 0.6rem;
  bottom: 2rem;
  left: var(--gutter);
  width: 1px;
  background: linear-gradient(180deg, rgba(192,132,252,0.55), rgba(244,114,182,0.3) 55%, transparent);
  transform: translateX(-1px);
}

.tl__item {
  position: relative;
  padding: 0 0 clamp(2.5rem, 6vw, 3.5rem) clamp(1.4rem, 4vw, 2.25rem);
}

.tl__item:last-child { padding-bottom: 0; }

/* the node */
.tl__item::before {
  content: "";
  position: absolute;
  top: 0.62rem;
  left: 0;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #2a2a33;
  box-shadow: 0 0 0 4px var(--bg);
  transform: translateX(-4px);
}

.tl__item--mark::before {
  background: var(--grad);
  box-shadow: 0 0 0 4px var(--bg), 0 0 16px rgba(244, 114, 182, 0.75);
}

.tl__year {
  position: absolute;
  top: 0.1rem;
  left: calc(-1 * var(--gutter));
  width: calc(var(--gutter) - 1.15rem);
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(0.92rem, 2.6vw, 1.22rem);
  line-height: 1.25;
  text-align: right;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.tl__item--mark .tl__year {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tl__body h3 {
  margin: 0 0 0.75rem;
  font-family: var(--sans);
  font-size: 1.03rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--ink);
}

.tl__body p {
  color: var(--muted);
  font-size: 0.97rem;
}

.tl__body em {
  color: var(--ink);
  font-style: italic;
}

/* ── The names ───────────────────────────────────────────────── */
.names {
  padding: clamp(2.5rem, 7vw, 4.5rem) 0 clamp(1rem, 3vw, 2rem);
  scroll-margin-top: 2rem;
}

.namelist {
  margin: clamp(2rem, 5vw, 3rem) 0 0;
  padding: 0;
  list-style: none;
}

.nameitem {
  padding: clamp(1.5rem, 4vw, 2.25rem) 0;
  border-top: 1px solid var(--line-soft);
}

.nameitem:last-of-type { border-bottom: 1px solid var(--line-soft); }

.nameitem__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 1rem;
  margin-bottom: 1rem;
}

.nameitem__word {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.7rem, 5.5vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ink);
}

.nameitem__fate {
  padding: 0.24rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--dim);
}

.nameitem__fate--drop { color: var(--dim); }

.nameitem__fate--move,
.nameitem__fate--keep {
  border-color: rgba(244, 114, 182, 0.35);
  color: var(--g2);
}

.nameitem__fate--new {
  border-color: rgba(192, 132, 252, 0.4);
  color: var(--g1);
}

/* A set-down name is stated plainly rather than dressed up. */
.nameitem[data-fate="drop"] .nameitem__word { color: var(--muted); }

.nameitem__body p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.97rem;
}

.nameitem__body p:last-child { margin-bottom: 0; }
.nameitem__body strong { color: var(--ink); font-weight: 600; }
.nameitem__body em { color: var(--ink); font-style: italic; }
.nameitem__body a { color: var(--g2); text-decoration: none; border-bottom: 1px solid rgba(244,114,182,0.35); }
.nameitem__body a:hover { color: #f9a8d4; }

/* The mode switch and the two section jumps share the right-hand side. */
.topbar__links {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}

.topbar__jumps {
  display: inline-flex;
  gap: 0.5rem;
}

/* ── Footer ──────────────────────────────────────────────────── */
.foot {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding-top: 2rem;
  border-top: 1px solid var(--line-soft);
  font-size: 0.88rem;
  color: var(--dim);
}

.foot p { max-width: none; }
.foot a { color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line); }
.foot a:hover { color: var(--ink); border-bottom-color: var(--g2); }

/* ── Small screens ───────────────────────────────────────────── */
@media (max-width: 640px) {
  :root { --page: min(100% - 1.75rem, 60rem); }

  body { font-size: 16px; }

  /* Inline padding keeps the thumb's glow from clipping at the viewport edge. */
  .scrub { flex-direction: column; gap: 0.8rem; padding-inline: 0.5rem; }
  .scrub__track { width: 100%; }
  .scrub__cap { font-size: 0.7rem; }
  .scrub__cap--from { order: 1; }
  .scrub__track { order: 2; }
  .scrub__cap--to { order: 3; }

  .thermo { --tube: 1.6rem; --bulb: 2.3rem; }

  .topbar { flex-wrap: wrap; gap: 0.65rem 0.8rem; padding-bottom: 1.25rem; }
  .topbar__links { flex-wrap: wrap; gap: 0.4rem; }
  .topbar__jumps { gap: 0.35rem; }
  .modeswitch__opt span { padding: 0.28rem 0.7rem; font-size: 0.75rem; }
  .topbar__jump { padding: 0.35rem 0.7rem; font-size: 0.78rem; }
  .stage__label { font-size: 0.89rem; }
  .stage[data-status="active"] .stage__text::after { content: none; }

  /* Timeline: year sits above the entry instead of in a gutter. */
  .tl { padding-left: 0; }
  .tl::before { left: 4px; }
  .tl__item { padding-left: 1.6rem; }
  .tl__year {
    position: static;
    display: block;
    width: auto;
    margin-bottom: 0.45rem;
    text-align: left;
    font-size: 0.95rem;
    color: var(--g2);
  }
  .tl__year br { display: none; }
}
