@font-face {
  font-family: "Syne";
  src: url("/inelul-din-aer/assets/fonts/syne-latin-ext.woff2") format("woff2");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB;
}

@font-face {
  font-family: "Syne";
  src: url("/inelul-din-aer/assets/fonts/syne-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Manrope";
  src: url("/inelul-din-aer/assets/fonts/manrope-latin-ext.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0100-024F, U+1E00-1EFF, U+20A0-20AB;
}

@font-face {
  font-family: "Manrope";
  src: url("/inelul-din-aer/assets/fonts/manrope-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+FEFF, U+FFFD;
}

/* ---------- tokens: light by default, dark from the system or the button */
:root {
  color-scheme: light;
  --bg: #f2f0e6;
  --surface: #fbfaf4;
  --band: #e8ebdf;
  --ink: #102326;
  --muted: #34494a;
  --line: rgba(16, 35, 38, 0.18);
  --line-soft: rgba(16, 35, 38, 0.1);
  --accent: #07514a;
  --coral-ink: #872816;
  --coral: #dd5139;
  --seed-ink: #6e4a07;
  --stage-bg0: #e9f0ea;
  --stage-bg1: #d7e4dc;
  --stage-air: #0f7360;
  --stage-air-soft: rgba(15, 115, 96, 0.3);
  --stage-ring: #d9482f;
  --stage-ring-soft: rgba(217, 72, 47, 0.5);
  --stage-zone: rgba(221, 81, 57, 0.13);
  --stage-tube: rgba(221, 81, 57, 0.2);
  --stage-pappus: #1c3a3a;
  --stage-seed: #8f6210;
  --stage-disc: #33504e;
  --stage-ink: #102326;
  --stage-ink-soft: #2c4546;
  --stage-chip: rgba(251, 250, 244, 0.92);
  --to-top-bg: #f2f0e6;
  --to-top-fg: #102326;
  --display: "Syne", "Arial Black", sans-serif;
  --body: "Manrope", "Avenir Next", "Segoe UI", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --bar: 44px;
  --pad: clamp(1rem, 4vw, 3.5rem);
  --max: 84rem;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #082629;
    --surface: #0c3034;
    --band: #0a2c30;
    --ink: #eff4df;
    --muted: #c3d3cd;
    --line: rgba(239, 244, 223, 0.2);
    --line-soft: rgba(239, 244, 223, 0.1);
    --accent: #7ce6c8;
    --coral-ink: #ffab98;
    --coral: #ff7259;
    --seed-ink: #ecc779;
    --stage-bg0: #0b3337;
    --stage-bg1: #04181b;
    --stage-air: #71e1c1;
    --stage-air-soft: rgba(113, 225, 193, 0.28);
    --stage-ring: #ff7259;
    --stage-ring-soft: rgba(255, 138, 112, 0.55);
    --stage-zone: rgba(255, 114, 89, 0.17);
    --stage-tube: rgba(255, 114, 89, 0.22);
    --stage-pappus: #eff4df;
    --stage-seed: #e6b85c;
    --stage-disc: #cfd6c1;
    --stage-ink: #eff4df;
    --stage-ink-soft: #c3d3cd;
    --stage-chip: rgba(6, 30, 33, 0.86);
    --to-top-bg: #082629;
    --to-top-fg: #eff4df;
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #082629;
  --surface: #0c3034;
  --band: #0a2c30;
  --ink: #eff4df;
  --muted: #c3d3cd;
  --line: rgba(239, 244, 223, 0.2);
  --line-soft: rgba(239, 244, 223, 0.1);
  --accent: #7ce6c8;
  --coral-ink: #ffab98;
  --coral: #ff7259;
  --seed-ink: #ecc779;
  --stage-bg0: #0b3337;
  --stage-bg1: #04181b;
  --stage-air: #71e1c1;
  --stage-air-soft: rgba(113, 225, 193, 0.28);
  --stage-ring: #ff7259;
  --stage-ring-soft: rgba(255, 138, 112, 0.55);
  --stage-zone: rgba(255, 114, 89, 0.17);
  --stage-tube: rgba(255, 114, 89, 0.22);
  --stage-pappus: #eff4df;
  --stage-seed: #e6b85c;
  --stage-disc: #cfd6c1;
  --stage-ink: #eff4df;
  --stage-ink-soft: #c3d3cd;
  --stage-chip: rgba(6, 30, 33, 0.86);
  --to-top-bg: #082629;
  --to-top-fg: #eff4df;
}

/* ---------- base */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--bar) + 0.75rem); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  padding-top: var(--bar);
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-color: var(--accent); text-decoration-thickness: 1.5px; text-underline-offset: 0.18em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
svg[hidden] { display: none; }
main:focus { outline: none; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }

.skip-link {
  position: fixed; left: 0.75rem; top: -4rem; z-index: 100;
  padding: 0.7rem 1rem; border-radius: 0.5rem;
  background: var(--ink); color: var(--bg); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 0.5rem; }

/* ---------- topbar: one quiet line */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--bar);
  display: flex; align-items: center; gap: 0.25rem;
  padding: 0 max(0.75rem, env(safe-area-inset-right)) 0 max(0.75rem, env(safe-area-inset-left));
  background: var(--bg); border-bottom: 1px solid var(--line-soft);
  font: 600 0.88rem/1 var(--body);
}
.topbar a { text-decoration: none; }
.home { display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.5rem; font-weight: 700; letter-spacing: 0.01em; white-space: nowrap; }
.topnav { display: flex; gap: 0.1rem; overflow-x: auto; scrollbar-width: none; min-width: 0; margin-left: 0.5rem; }
.topnav::-webkit-scrollbar { display: none; }
.topnav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.6rem; color: var(--muted); white-space: nowrap; border-radius: 0.4rem; }
.topnav a:hover, .topnav a[aria-current="true"] { color: var(--ink); }
.topnav a[aria-current="true"] { box-shadow: inset 0 -2px 0 var(--coral); }
.spacer { flex: 1; }
.chip { display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.7rem; color: var(--muted); white-space: nowrap; }
.chip:hover { color: var(--ink); }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none;
  border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer;
}
.icon-btn:hover { color: var(--accent); }
.icon-btn svg { display: block; }
.icon-btn svg[hidden] { display: none; }
@media (max-width: 40rem) {
  .topbar { gap: 0; padding: 0 0.25rem; }
  .home { font-size: 0.84rem; padding: 0 0.4rem; }
  .topnav { margin-left: 0; mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .topnav a { padding: 0 0.45rem; font-size: 0.84rem; }
  .chip { padding: 0 0.45rem; font-size: 0.84rem; }
}

/* ---------- reading rail: hairline dots in the right gutter, after the opening */
.rail { display: none; }
@media (min-width: 1100px) {
  .rail {
    --col: 84rem;
    display: flex; flex-direction: column; position: fixed; top: 50%; right: 0.35rem;
    transform: translateY(-50%); z-index: 40; margin: 0; padding: 0.4rem 0;
    opacity: 0; pointer-events: none; transition: opacity 0.4s ease;
  }
  .past-opening .rail, .rail:focus-within { opacity: 1; pointer-events: auto; }
  .rail::before { content: ""; position: absolute; left: calc(0.875rem - 0.5px); top: 1.1rem; bottom: 1.1rem; width: 1px; background: var(--line); }
  .rail-dot { position: relative; display: flex; align-items: center; justify-content: center; width: 1.75rem; height: 1.75rem; text-decoration: none; border-radius: 50%; }
  .rail-dot .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); box-shadow: 0 0 0 3px var(--bg); transition: transform 0.2s, background 0.2s; flex: none; opacity: 0.7; }
  .rail-dot:hover .dot, .rail-dot:focus-visible .dot { background: var(--coral); opacity: 1; transform: scale(1.25); }
  .rail-dot[aria-current="true"] .dot { background: var(--coral); opacity: 1; transform: scale(1.4); }
  .rail-dot:focus-visible { outline: 2px solid var(--accent); outline-offset: -1px; }
  .rail-label {
    position: absolute; right: calc(100% + 0.3rem); top: 50%; transform: translate(6px, -50%);
    padding: 0.22rem 0.65rem; border: 1px solid var(--line); border-radius: 0.5rem;
    background: var(--bg); color: var(--ink); font-size: 0.82rem; font-weight: 600; line-height: 1.3;
    white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity 0.15s, transform 0.15s;
  }
  .rail-dot:hover .rail-label, .rail-dot:focus-visible .rail-label { opacity: 1; transform: translate(0, -50%); }
}

/* ---------- shared type */
.eyebrow, .section-index {
  margin: 0 0 0.6rem; font: 700 0.78rem/1.3 var(--body); letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
}
.prose { max-width: 42rem; }
.prose p { margin: 0 0 1rem; }
.lead { font-size: 1.2rem; line-height: 1.55; }
h2 { font: 800 clamp(1.75rem, 1.2rem + 2vw, 2.9rem)/1.06 var(--display); letter-spacing: -0.01em; margin: 0 0 1.1rem; }
h3 { font: 800 1.15rem/1.25 var(--body); margin: 0 0 0.5rem; }
strong { font-weight: 800; }

/* ---------- hero */
.hero {
  max-width: var(--max); margin: 0 auto; padding: 1.25rem var(--pad) 2.5rem;
  display: grid; gap: 0.9rem 3rem; grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "title" "stage" "copy";
}
.hero-title { grid-area: title; }
.stage-wrap { grid-area: stage; min-width: 0; }
.hero-copy { grid-area: copy; max-width: 40rem; }
h1 {
  margin: 0; font: 800 2rem/1.04 var(--display);
  letter-spacing: -0.015em; text-wrap: balance;
}
h1 em { font-style: normal; color: var(--coral-ink); }
/* stepped sizes: the longest unbreakable group ("Păpădia și", "The dandelion") always fits its column */
h1:lang(en) { font-size: 1.6rem; }
@media (min-width: 25rem) { h1 { font-size: 2.2rem; } h1:lang(en) { font-size: 2rem; } }
@media (min-width: 40rem) { h1, h1:lang(en) { font-size: 3rem; } }
@media (min-width: 60rem) { h1 { font-size: 2.75rem; } h1:lang(en) { font-size: 2rem; } }
@media (min-width: 75rem) { h1 { font-size: 3.4rem; } h1:lang(en) { font-size: 2.55rem; } }
@media (min-width: 90rem) { h1 { font-size: 3.6rem; } h1:lang(en) { font-size: 2.9rem; } }
.standfirst { margin: 0 0 1rem; font-size: 1.2rem; line-height: 1.55; }
.definition { margin: 0; padding-left: 0.9rem; border-left: 2px solid var(--line); color: var(--muted); font-size: 0.95rem; }
.definition span { font-weight: 800; color: var(--ink); }

@media (min-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    grid-template-rows: auto 1fr;
    grid-template-areas: "title stage" "copy stage";
    padding-top: 2.5rem; align-items: start;
  }
  .hero-title { align-self: end; padding-top: 3rem; }
  .hero-copy { padding-top: 0.5rem; }
}

/* ---------- the stage */
.stage { margin: 0; }
.stage-box {
  position: relative; overflow: hidden; border-radius: 0.9rem;
  height: max(220px, min(38svh, 92vw));
  background: linear-gradient(180deg, var(--stage-bg0), var(--stage-bg1));
  box-shadow: inset 0 0 0 1px var(--line-soft);
  color: var(--stage-ink);
}
@media (min-width: 960px) {
  .stage-box { height: min(66vh, 46rem); min-height: 30rem; }
}
.tunnel-svg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }

.zone path { fill: var(--stage-zone); }
.ring-back path { fill: none; stroke: var(--stage-tube); stroke-width: 15; stroke-linecap: round; }
.ring-front path { fill: none; stroke: var(--stage-ring); stroke-width: 2.6; stroke-linecap: round; }
.ring-front path { filter: none; }
.sl { fill: none; stroke: var(--stage-air-soft); stroke-width: 1.15; stroke-linejoin: round; }
.sl--ring { stroke: var(--stage-ring-soft); stroke-width: 1.3; }
.chev { fill: none; stroke: var(--stage-air); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; opacity: 0.75; }
.chev--ring { stroke: var(--stage-ring); opacity: 0.9; }
.flow {
  fill: none; stroke: var(--stage-air); stroke-width: 2; stroke-linecap: round;
  stroke-dasharray: 10 38; opacity: 0.85; animation: drift 1.9s linear infinite;
}
.flow--ring { stroke: var(--stage-ring); stroke-dasharray: 9 27; animation-duration: 2.6s; }
@keyframes drift { to { stroke-dashoffset: -48; } }
.flow--ring { animation-name: drift-ring; }
@keyframes drift-ring { to { stroke-dashoffset: -36; } }
.cores path { fill: none; stroke: var(--stage-ring); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: 0.85; }
/* the stage's pause button stops every looping animation on the page; off-screen figures stop too */
.motion-paused .flow, .motion-paused .flow-soft,
.is-offscreen .flow, .is-offscreen .flow-soft { animation-play-state: paused; }

.beak { stroke: var(--stage-seed); stroke-width: 2.2; stroke-linecap: round; }
.achene ellipse { fill: var(--stage-seed); }
.achene path { stroke: var(--stage-bg1); stroke-width: 0.9; fill: none; opacity: 0.6; }
.solid-disc { fill: var(--stage-disc); transition: opacity 0.2s linear; }
.fil { stroke: var(--stage-pappus); stroke-width: 0.85; stroke-linecap: round; opacity: 0.92; }
.fil--back { opacity: 0.42; }
.hub { fill: var(--stage-seed); }

.stage-labels { position: absolute; inset: 0; pointer-events: none; font: 600 0.8rem/1.3 var(--body); color: var(--stage-ink); }
.stage-labels p { margin: 0; }
.stamp {
  position: absolute; left: 0.7rem; top: 0.65rem; padding: 0.2rem 0.55rem; border-radius: 1rem;
  background: var(--stage-chip); font-size: 0.74rem; letter-spacing: 0.02em;
}
.label { position: absolute; left: 0; top: 0; max-width: 11rem; padding: 0.25rem 0.5rem; border-radius: 0.45rem; background: var(--stage-chip); }
.label b { font-weight: 800; }
.label--ring b, .label--ring span:not(.label-sub) { color: var(--coral-ink); }
.label-sub { display: block; font-weight: 500; color: var(--stage-ink-soft); font-size: 0.74rem; }
.label--pappus { text-align: right; }
.label--pappus span { display: block; font-weight: 500; color: var(--stage-ink-soft); }
.label--air { left: 0.7rem; top: auto; bottom: 0.65rem; max-width: 12.5rem; color: var(--stage-ink-soft); font-weight: 500; font-size: 0.76rem; }
.air-arrow { color: var(--stage-air); font-weight: 800; }
.plan {
  position: absolute; right: 0.6rem; bottom: 0.6rem; display: flex; align-items: center; gap: 0.45rem;
  padding: 0.3rem 0.55rem 0.3rem 0.35rem; border-radius: 0.6rem; background: var(--stage-chip);
}
.plan-svg { width: 3.1rem; height: 3.1rem; }
.plan-rim { fill: none; stroke: var(--stage-ink-soft); stroke-width: 1; opacity: 0.6; }
.plan-wedges { fill: var(--stage-pappus); }
.plan-hub { fill: var(--stage-seed); }
.plan-cap { font-size: 0.72rem; line-height: 1.25; color: var(--stage-ink-soft); font-weight: 500; }
.plan-cap b { font-size: 0.9rem; color: var(--stage-ink); font-weight: 800; }
.stage-pause {
  position: absolute; right: 0.5rem; top: 0.5rem; width: 44px; height: 44px; display: grid; place-items: center;
  border: 1px solid var(--line); border-radius: 50%; background: var(--stage-chip); color: var(--stage-ink); cursor: pointer;
}
.stage-pause:hover { color: var(--stage-ring); }
@media (max-width: 40rem) {
  .stage-labels { font-size: 0.72rem; }
  .label { max-width: 8.2rem; padding: 0.18rem 0.4rem; }
  .label-sub { display: none; }
  .label--air { max-width: 9rem; font-size: 0.7rem; }
  .plan-svg { width: 2.4rem; height: 2.4rem; }
  .plan-cap { font-size: 0.66rem; }
  .plan-cap b { font-size: 0.8rem; }
  .stamp { font-size: 0.68rem; }
}

.stage-caption { margin: 0.7rem 0 0; font-size: 0.82rem; line-height: 1.45; color: var(--muted); }

/* ---------- the control */
.control { margin-top: 0.75rem; }
.control-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.control-head label { font-weight: 700; font-size: 0.95rem; }
.control-head output { font: 800 1.65rem/1 var(--display); color: var(--coral-ink); font-variant-numeric: tabular-nums; }
input[type="range"] {
  --range-progress: 100%;
  -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 44px; margin: 0.15rem 0 0;
  background: transparent; cursor: pointer;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 6px; border-radius: 3px;
  background: linear-gradient(90deg, var(--coral) var(--range-progress), var(--line) var(--range-progress));
}
input[type="range"]::-moz-range-track { height: 6px; border-radius: 3px; background: var(--line); }
input[type="range"]::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--coral); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 26px; height: 26px; margin-top: -10px; border-radius: 50%;
  background: var(--surface); border: 3px solid var(--coral); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--surface); border: 3px solid var(--coral); }
input[type="range"]:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.stops { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.3rem; margin-top: 0.1rem; }
.stops button {
  min-height: 44px; padding: 0 0.2rem; border: 1px solid var(--line); border-radius: 0.55rem;
  background: transparent; color: var(--ink); font: 700 0.82rem/1 var(--body); font-variant-numeric: tabular-nums; cursor: pointer;
}
.stops button:hover { border-color: var(--coral); }
.stops button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.range-ends { display: flex; justify-content: space-between; margin-top: 0.3rem; font-size: 0.74rem; color: var(--muted); }
.state-explanation { margin: 0.7rem 0 0; font-size: 0.97rem; line-height: 1.5; min-height: 4.4em; }
.reset {
  margin-top: 0.4rem; min-height: 44px; padding: 0 0.9rem; border: 1px solid var(--line); border-radius: 2rem;
  background: transparent; color: var(--ink); font: 700 0.88rem/1 var(--body); cursor: pointer;
}
.reset:hover { border-color: var(--coral); color: var(--coral-ink); }

.control-extra { margin-top: 0.9rem; }
.control-note { margin: 0.9rem 0 0; font-size: 0.85rem; line-height: 1.5; color: var(--muted); }

/* ---------- share row: compact and quiet */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.6rem; scroll-margin-top: 4.75rem; }
.share-label { font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.share-row { display: flex; gap: 0.35rem; }
.share-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0;
  border: 1px solid var(--line-soft); border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer;
}
.share-btn svg { width: 18px; height: 18px; }
.share-btn:hover, .share-btn:focus-visible { color: var(--accent); border-color: var(--accent); }
@media (pointer: coarse) { .share-btn { width: 44px; height: 44px; } }
.share-status { flex-basis: 100%; margin: 0; min-height: 1.2em; font-size: 0.85rem; color: var(--accent); }
.copy-field { position: fixed; left: -100vw; top: 0; opacity: 0; }

/* ---------- bands */
.band { max-width: var(--max); margin: 0 auto; padding: clamp(3rem, 7vw, 6rem) var(--pad); border-top: 1px solid var(--line-soft); scroll-margin-top: var(--bar); }

.mechanism { display: grid; gap: 2rem 4rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) {
  .mechanism { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .mechanism .section-index { grid-column: 1 / -1; margin-bottom: -1rem; }
  .measurements, .adjacent-limit { grid-column: 1 / -1; }
}
.boundary-figure { margin: 0; }
.boundary-figure svg { width: 100%; height: auto; }
.halos ellipse { fill: var(--stage-air-soft); opacity: 0.32; stroke: var(--stage-air); stroke-opacity: 0.35; stroke-width: 1; }
.flow-soft { fill: none; stroke: var(--stage-air); stroke-width: 1.6; stroke-dasharray: 8 16; animation: drift-soft 3s linear infinite; }
@keyframes drift-soft { to { stroke-dashoffset: -24; } }
.filaments circle { fill: var(--ink); }
.spacing { fill: none; stroke: var(--coral); stroke-width: 1.6; }
.boundary-figure text { fill: var(--ink); font: 600 15px var(--body); }
.boundary-figure .halo-label { fill: var(--muted); }
.boundary-figure figcaption, .area-comparison figcaption { margin-top: 0.6rem; font-size: 0.85rem; color: var(--muted); }

.measurements { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 1rem; margin: 0; }
.measurements div { padding: 1rem 1.1rem; border-top: 2px solid var(--coral); background: var(--surface); border-radius: 0 0 0.6rem 0.6rem; }
.measurements dt { font-size: 0.85rem; font-weight: 700; color: var(--muted); }
.measurements dd { margin: 0.25rem 0 0; font: 800 1.8rem/1.1 var(--display); }
.measurements small { display: block; margin-top: 0.3rem; font: 600 0.8rem/1.3 var(--body); color: var(--muted); }
.adjacent-limit { margin: 0; font-size: 0.92rem; color: var(--muted); }

/* ---------- area comparison */
.comparison { display: grid; gap: 2rem 4rem; }
@media (min-width: 960px) { .comparison { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); align-items: start; } .comparison .section-index { grid-column: 1 / -1; margin-bottom: -1rem; } }
.area-comparison { margin: 0; padding: clamp(1rem, 3vw, 2rem); background: var(--surface); border-radius: 0.9rem; box-shadow: inset 0 0 0 1px var(--line-soft); }
.area-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; align-items: start; }
.area-item { min-width: 0; text-align: center; }
.area-svg { width: 100%; height: auto; aspect-ratio: 1; }
.area-disc { fill: var(--stage-disc); }
.area-scalebar { fill: none; stroke: var(--ink); stroke-width: 0.12; }
.area-envelope { fill: none; stroke: var(--line); stroke-width: 0.06; stroke-dasharray: 0.25 0.25; }
/* stroke width in mm, chosen so the painted filaments total 12.6 mm²: 100 lines, 637.5 mm in all, 0.0197 mm wide */
.area-filaments line { stroke: var(--stage-pappus); stroke-width: 0.0197; stroke-linecap: butt; }
.area-hub { fill: var(--stage-seed); }
.area-gathered { fill: var(--stage-pappus); }
.area-cap { margin: 0.4rem 0 0; display: grid; gap: 0.1rem; font-size: 0.82rem; line-height: 1.3; color: var(--muted); }
.area-cap b { color: var(--ink); font-size: 0.92rem; }
.area-bars { display: grid; gap: 0.45rem; margin-top: 1.4rem; }
.bar-row { display: grid; grid-template-columns: 5.6rem minmax(0, 1fr) 5rem; gap: 0.6rem; align-items: center; font-size: 0.85rem; }
.bar-name { font-weight: 700; }
.bar { height: 0.8rem; border-radius: 0.4rem; background: var(--line-soft); overflow: hidden; }
.bar-fill { display: block; height: 100%; border-radius: 0.4rem; }
.bar-fill--disc { width: 100%; background: var(--stage-disc); }
.bar-fill--pappus { width: 21.79%; background: var(--stage-pappus); }
.bar-val { text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; }
.area-claim { margin: 1.2rem 0 0; font-size: 1.05rem; line-height: 1.5; }
.area-claim strong { color: var(--coral-ink); }

/* ---------- scope */
.scope { display: grid; gap: 2rem; }
.method-grid { display: grid; gap: 1.5rem 3rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.method-grid section { padding-top: 1rem; border-top: 1px solid var(--line); }
.method-grid p { margin: 0; color: var(--muted); }
.calculation { border: 1px solid var(--line); border-radius: 0.8rem; background: var(--surface); }
.calculation summary {
  display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 1.1rem;
  font-weight: 800; cursor: pointer; list-style: none;
}
.calculation summary::-webkit-details-marker { display: none; }
.calculation[open] summary span { transform: rotate(45deg); }
.calculation summary span { transition: transform 0.2s; font-size: 1.3rem; }
.calculation > div { padding: 0 1.1rem 1.1rem; }
.calculation code { display: block; margin: 0.4rem 0 0.9rem; padding: 0.7rem 0.9rem; border-radius: 0.5rem; background: var(--band); font: 600 0.92rem/1.5 var(--mono); overflow-x: auto; }

/* ---------- sources and footer */
.sources ol { margin: 0; padding-left: 1.3rem; display: grid; gap: 0.9rem; max-width: 50rem; }
.sources li a { font-weight: 700; }
.sources li span { display: block; color: var(--muted); font-size: 0.92rem; }
.source-note { max-width: 50rem; margin: 1.5rem 0 0; font-size: 0.9rem; color: var(--muted); }
.site-footer { max-width: var(--max); margin: 0 auto; padding: 2rem var(--pad) 5rem; border-top: 1px solid var(--line-soft); font-size: 0.9rem; color: var(--muted); }
.site-footer p { margin: 0 0 0.3rem; }

/* ---------- 404 */
.not-found { max-width: 40rem; margin: 0 auto; padding: 18vh var(--pad) 4rem; }
.not-found h1 { margin-bottom: 1rem; }
.not-found-ring { width: 9rem; height: 2.4rem; margin-bottom: 2rem; border: 3px solid var(--coral); border-radius: 50%; }
.text-link { display: inline-flex; align-items: center; gap: 0.4rem; min-height: 44px; font-weight: 800; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .flow, .flow-soft { animation: none; }
  .rail, .rail .dot, .rail-label, .solid-disc, .calculation summary span { transition: none; }
}

@media print {
  .topbar, .rail, .stage-pause, .share, .skip-link { display: none !important; }
  body { padding-top: 0; }
}
