/* Everest — the summit and the brass snowline.
   Cold-paper reading rooms against night-ice instrument panels; brass marks
   only the reader's live position and every gauge mark. Per-chapter
   accents and per-grade stage skins keep all eight chapters distinct.
   font-display: optional on all faces (not swap/block): fallback→webfont
   swaps reflowed late (+25px measured), shifting beats across the reading
   line after the scroll pass ran. Same-origin woff2 (preloaded) renders
   from first paint; on slow networks the fallback stays for the page
   lifetime — either way, zero mid-read swaps, zero shift. */
@font-face {
  font-family: "Syne";
  src: url("syne-latin.woff2") format("woff2");
  font-weight: 400 800;
  font-display: optional;
}
/* latin-ext is shipped AND declared: Syne Ș/Ț render from the subset
   file instead of falling back to system sans. */
@font-face {
  font-family: "Syne";
  src: url("syne-latin-ext.woff2") format("woff2");
  font-weight: 400 800;
  font-display: optional;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7,
    U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F,
    U+A720-A7FF;
}
@font-face {
  font-family: "Newsreader";
  src: url("Newsreader.woff2") format("woff2");
  font-weight: 400 700;
  font-display: optional;
}
@font-face {
  font-family: "Newsreader";
  src: url("Newsreader-Italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400 700;
  font-display: optional;
}
:root {
  --paper: #f2f0e7;
  --paper-soft: #e3ded0;
  --ink: #1e2632;
  --ink-soft: #4a5a6c;
  --night: #0e1728;
  --night-abyss: #0a1220;
  --night-panel: #152741;
  --glacier: #5f87a0;
  --ice: #8fc1d4;
  --snow: #e8eef4;
  --brass: #b08a3c;
  --brass-deep: #7c5f22;
  --line: #d3d0c2;
  --card: #faf8f1;
  --stage-bg: #10203a;
  --glow: rgba(143, 193, 212, 0.16);
  color-scheme: light;
}
html[data-theme="dark"] {
  --paper: #0d1420;
  --paper-soft: #14202f;
  --ink: #e8eef4;
  --ink-soft: #9fb0c2;
  --line: #31435c;
  --card: #14202f;
  --glow: rgba(200, 162, 74, 0.10);
  color-scheme: dark;
}
/* Per-chapter accents: the same snow, a different gauge in each room. */
.story-chapter[data-chapter="numarul-viu"] { --accent: #4f8fa8; --wash: rgba(79, 143, 168, 0.10); }
.story-chapter[data-chapter="patru-nume"] { --accent: #b08a3c; --wash: rgba(176, 138, 60, 0.10); }
.story-chapter[data-chapter="muntele-care-creste"] { --accent: #55a08a; --wash: rgba(85, 160, 138, 0.10); }
.story-chapter[data-chapter="fata-sudica"] { --accent: #7d9ec4; --wash: rgba(125, 158, 196, 0.12); }
.story-chapter[data-chapter="fata-nordica"] { --accent: #3f7f8c; --wash: rgba(63, 127, 140, 0.10); }
.story-chapter[data-chapter="zona-mortii"] { --accent: #94402f; --wash: rgba(148, 64, 47, 0.10); }
.story-chapter[data-chapter="parcul-dintre-tari"] { --accent: #5b8a5e; --wash: rgba(91, 138, 94, 0.12); }
.story-chapter[data-chapter="muntele-aglomerat"] { --accent: #7a5fa0; --wash: rgba(122, 95, 160, 0.10); }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Newsreader", Georgia, "Noto Serif CJK SC", "PingFang SC", serif;
  font-size: 1.125rem;
  line-height: 1.65;
}
html[lang="zh-Hans"] body { line-height: 1.85; }
/* The chapter wash: a faint summit glow that follows the reader down. */
body::before {
  content: "";
  position: fixed; inset: 0 0 auto 0; height: 46vh;
  pointer-events: none; z-index: 0;
  background: radial-gradient(60% 100% at 70% 0%, var(--chapter-wash, transparent), transparent 70%);
}
body[data-chapter="numarul-viu"] { --chapter-wash: rgba(79, 143, 168, 0.14); }
body[data-chapter="patru-nume"] { --chapter-wash: rgba(176, 138, 60, 0.12); }
body[data-chapter="muntele-care-creste"] { --chapter-wash: rgba(85, 160, 138, 0.12); }
body[data-chapter="fata-sudica"] { --chapter-wash: rgba(125, 158, 196, 0.14); }
body[data-chapter="fata-nordica"] { --chapter-wash: rgba(63, 127, 140, 0.10); }
body[data-chapter="zona-mortii"] { --chapter-wash: rgba(148, 64, 47, 0.10); }
body[data-chapter="parcul-dintre-tari"] { --chapter-wash: rgba(91, 138, 94, 0.16); }
body[data-chapter="muntele-aglomerat"] { --chapter-wash: rgba(122, 95, 160, 0.12); }
main, .site-header, .site-footer, .reading-rail { position: relative; z-index: 1; }
h1, h2, h3, .eyebrow, .hero-stat strong, .stage-value {
  font-family: "Syne", "Newsreader", "PingFang SC", "Noto Sans CJK SC", sans-serif;
}
.shell {
  max-width: 76rem;
  margin: 0 auto;
  padding-left: 1.25rem;
  padding-right: 4.5rem;
}
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
::selection { background: var(--brass); color: #141414; }
.sr-only {
  position: absolute; width: 1px; height: 1px;
  clip-path: inset(50%); overflow: hidden; white-space: nowrap;
}
.skip-link {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--brass); color: #141414;
  padding: 0.5rem 1rem; border-radius: 0.25rem;
  font-weight: 700; z-index: 60; transition: top 0.15s ease;
}
.skip-link:focus-visible { top: 0.75rem; }
.eyebrow {
  text-transform: uppercase; letter-spacing: 0.22em;
  font-size: 0.78rem; font-weight: 700; color: var(--brass-deep);
  margin: 0 0 0.75rem;
}
html[lang="zh-Hans"] .eyebrow { letter-spacing: 0.32em; }
html[data-theme="dark"] .eyebrow { color: var(--brass); }
/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 1rem;
  padding-top: 0.7rem; padding-bottom: 0.7rem;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 2px solid var(--line);
}
.wordmark {
  font-family: "Syne", "PingFang SC", sans-serif; font-weight: 800;
  text-decoration: none; font-size: 1.05rem; letter-spacing: 0.02em;
}
.wordmark-short { display: none; }
.top-jumps { display: flex; gap: 0.9rem; margin-left: auto; font-size: 0.95rem; }
.top-jumps a { text-decoration: none; border-bottom: 2px solid transparent; }
.top-jumps a[aria-current] { border-color: var(--brass); font-weight: 700; }
.header-actions { display: flex; gap: 0.5rem; align-items: center; }
.language-switch { display: flex; gap: 0.35rem; font-size: 0.85rem; font-weight: 700; }
.language-switch a {
  text-decoration: none; padding: 0.15rem 0.5rem;
  border: 1px solid var(--line); border-radius: 999px;
}
#theme-control, #copy-link {
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  border-radius: 999px; width: 2.1rem; height: 2.1rem; cursor: pointer;
  font-size: 1rem; line-height: 1;
}
/* Hero: the peak fills the first viewport. The copy lives inside the
   media frame now, so it can never collide with the gauge strip below. */
.hero { padding: 0 0 2.5rem; }
.hero-field { margin: 0; }
.hero-media {
  position: relative; overflow: hidden;
  display: grid;
  border-radius: 0 0 1.25rem 1.25rem;
  border: 1px solid var(--line); border-top: 0;
  box-shadow: 0 2.5rem 4rem -2.5rem rgba(10, 18, 32, 0.55);
  background: var(--night-abyss);
}
/* The frame grows past the photograph's minimum whenever the copy runs
   tall (narrow phones, short landscape heights), so the headline can
   never clip against the rounded top edge. */
.hero-peak {
  grid-area: 1 / 1; width: 100%; height: 100%;
  min-height: clamp(30rem, 82svh, 60rem); object-fit: cover;
}
.hero-curtain {
  grid-area: 1 / 1; height: 100%;
  min-height: clamp(30rem, 82svh, 60rem);
  background: linear-gradient(180deg, var(--night) 0%, var(--night-panel) 55%, var(--ice) 130%);
}
.hero-scrim {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,18,32,0.32) 0%, rgba(10,18,32,0.04) 32%, rgba(10,18,32,0.18) 55%, rgba(10,18,32,0.86) 100%);
}
/* A breath of spindrift along the frame's foot: the copy sits inside weather. */
.hero-media::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 7rem;
  background: linear-gradient(transparent, rgba(10, 18, 32, 0.5));
  pointer-events: none;
}
/* Spindrift over the photograph: soft diagonal drift plus a breath of
   grain. Pure weather, no meaning — kept faint so it never reads as
   scratches on the frame. */
.hero-threads {
  position: absolute; inset: 0; opacity: 0.55; mix-blend-mode: screen;
  background:
    repeating-linear-gradient(115deg,
      transparent 0 46px, rgba(200, 220, 235, 0.05) 46px 48px,
      transparent 48px 110px),
    repeating-linear-gradient(115deg,
      transparent 0 9px, rgba(200, 220, 235, 0.035) 9px 10px,
      transparent 10px 31px),
    radial-gradient(38% 30% at 22% 18%, rgba(200, 220, 235, 0.10), transparent 70%),
    radial-gradient(30% 26% at 78% 34%, rgba(200, 220, 235, 0.08), transparent 70%);
  -webkit-mask-image: linear-gradient(180deg, black 24%, transparent 88%);
  mask-image: linear-gradient(180deg, black 24%, transparent 88%);
}
.hero-copy {
  grid-area: 1 / 1; align-self: end; position: relative; z-index: 2;
  padding: 2rem clamp(1.25rem, 4vw, 3rem) 4rem; color: #eef3f7;
}
.hero-copy .eyebrow { color: var(--brass); }
.hero-kicker { display: flex; align-items: center; gap: 0.75rem; }
.hero-kicker::after {
  content: ""; height: 2px; width: clamp(3rem, 12vw, 9rem);
  background: linear-gradient(90deg, var(--brass), transparent);
}
.hero-seal { color: var(--brass); font-size: 1.4rem; }
.hero-copy h1 {
  font-size: clamp(2.5rem, 6.2vw, 5rem); line-height: 1.0;
  letter-spacing: -0.02em;
  margin: 0.25rem 0 0.9rem; max-width: 20ch;
  text-wrap: balance;
  text-shadow: 0 2px 22px rgba(10, 18, 32, 0.8), 0 1px 3px rgba(10, 18, 32, 0.9);
}
html[lang="zh-Hans"] .hero-copy h1 { max-width: 26ch; }
.deck {
  font-size: clamp(1.1rem, 2.2vw, 1.4rem); max-width: 62ch; margin: 0;
  text-shadow: 0 1px 10px rgba(10, 18, 32, 0.8);
}
.hero-cold-open {
  max-width: 62ch; margin: 0.9rem 0 0;
  font-style: italic;
  border-left: 3px solid var(--brass); padding: 0.6rem 1rem 0.6rem 0.9rem;
  background: rgba(10, 18, 32, 0.55);
  backdrop-filter: blur(6px);
  border-radius: 0 0.5rem 0.5rem 0;
  text-shadow: 0 1px 8px rgba(10, 18, 32, 0.8);
}
/* The way up: a brass thread the reader can follow with a keypress. */
.scroll-cue {
  position: absolute; right: clamp(1.25rem, 4vw, 3rem); bottom: 3.6rem; z-index: 2;
  display: flex; align-items: center; gap: 0.6rem;
  color: var(--snow); text-decoration: none;
  font-family: "Syne", "PingFang SC", sans-serif; font-size: 0.8rem; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(10, 18, 32, 0.9);
}
.scroll-cue .cue-line {
  display: block; width: 2px; height: 2.6rem;
  background: linear-gradient(var(--brass), transparent);
}
.hero-stats {
  position: relative; z-index: 3;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr));
  gap: 0.75rem; padding: 0 clamp(1.25rem, 4vw, 3rem);
  margin-top: -2.75rem;
}
.hero-stat {
  background: linear-gradient(165deg, #1c3350 0%, var(--night-panel) 55%, var(--night-abyss) 100%);
  color: var(--snow);
  border-radius: 0.6rem; padding: 0.8rem 1rem;
  border: 1px solid #31435c;
  border-top: 3px solid var(--brass);
  box-shadow: 0 1.25rem 2rem -1.25rem rgba(10, 18, 32, 0.7);
  font-variant-numeric: tabular-nums;
}
.hero-stat strong { display: block; font-size: 1.35rem; letter-spacing: -0.01em; }
.hero-stat span { font-size: 0.92rem; color: var(--ice); }
.hero-stat {
  background-image:
    repeating-linear-gradient(90deg, transparent 0 14px, rgba(143, 193, 212, 0.08) 14px 15px),
    linear-gradient(165deg, #1c3350 0%, var(--night-panel) 55%, var(--night-abyss) 100%);
}
/* The ascent index: eight rooms previewed before the first scroll. */
.chapter-index {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem; padding: 1rem clamp(1.25rem, 4vw, 3rem) 0;
  position: relative; z-index: 3;
}
.chapter-index a {
  display: flex; align-items: baseline; gap: 0.55rem; min-width: 0;
  text-decoration: none; overflow-wrap: anywhere;
  background: var(--card); border: 1px solid var(--line);
  border-left: 3px solid var(--brass); border-radius: 0.45rem;
  padding: 0.5rem 0.65rem;
  box-shadow: 0 0.75rem 1.5rem -1rem rgba(10, 18, 32, 0.5);
}
.chapter-index a:hover, .chapter-index a:focus-visible { border-color: var(--brass); }
.ci-numeral {
  font-family: "Syne", "PingFang SC", sans-serif; font-weight: 800; font-size: 0.85rem;
  color: var(--brass-deep); flex: none;
}
html[data-theme="dark"] .ci-numeral { color: var(--brass); }
.ci-title { font-size: 0.92rem; font-weight: 700; line-height: 1.3; min-width: 0; }
.hero-caption {
  display: block; padding: 0.85rem clamp(1.25rem, 4vw, 3rem) 0;
  font-size: 0.95rem; color: var(--ink-soft);
}
/* Citations */
.citation {
  font-family: "Syne", sans-serif; font-size: 0.72rem; font-weight: 700;
  text-decoration: none; color: var(--brass-deep);
  border: 1px solid var(--brass); border-radius: 0.25rem;
  padding: 0 0.3rem; margin-left: 0.25rem; white-space: nowrap;
}
html[data-theme="dark"] .citation { color: var(--brass); }
.hero-copy .citation, .hero-stat .citation { color: var(--brass); border-color: var(--brass); }
.credit { display: block; font-size: 0.85rem; opacity: 0.85; margin-top: 0.25rem; overflow-wrap: anywhere; }
.media-grid > * { min-width: 0; }
/* Chapter gates: the signature. Between rooms, a dark night band where
   nine ice threads rise to one brass snowline over the next room's
   numeral, seal and title. Full-bleed rhythm against the shelled chapters. */
.gate {
  position: relative; overflow: hidden; margin: 3rem 0 0.5rem;
  background: linear-gradient(180deg, var(--night-abyss) 0%, var(--night-panel) 55%, #1c3350 130%);
  border-top: 1px solid #31435c; border-bottom: 1px solid #31435c;
  min-width: 0;
}
.gate svg { display: block; width: 100%; height: 12rem; }
.gate-line { stroke: var(--brass); stroke-width: 4; }
.gate-threads line { opacity: 0.9; }
.gate-numeral {
  position: absolute; left: clamp(1rem, 6vw, 5rem); top: 50%;
  transform: translateY(-50%);
  font-family: "Syne", sans-serif; font-weight: 800;
  font-size: clamp(3.5rem, 9vw, 6rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 2px var(--ice);
  opacity: 0.55;
}
.gate-seal {
  position: absolute; left: 50%; top: 1.1rem; transform: translateX(-50%);
  display: inline-grid; place-items: center;
  width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: rgba(10, 18, 32, 0.7); color: var(--brass);
  border: 2px solid var(--brass); font-size: 1.2rem;
}
.gate-title {
  position: absolute; left: 50%; bottom: 1.1rem; transform: translateX(-50%);
  width: min(46rem, calc(100% - 7rem));
  text-align: center; overflow-wrap: anywhere;
  font-family: "Syne", "PingFang SC", "Noto Sans CJK SC", sans-serif;
  font-weight: 800; font-size: clamp(1.15rem, 2.8vw, 1.8rem); line-height: 1.2;
  color: var(--snow);
  text-shadow: 0 2px 14px rgba(10, 18, 32, 0.9);
}
/* Each gate borrows the accent of the room it opens into: the brass
   snowline, seal and numeral take the next chapter's gauge color.
   Gates are the only divs directly inside main, so nth-of-type(1..7)
   addresses them in reading order. */
main > div.gate:nth-of-type(1) { --brass: #b08a3c; }
main > div.gate:nth-of-type(2) { --brass: #55a08a; }
main > div.gate:nth-of-type(3) { --brass: #7d9ec4; }
main > div.gate:nth-of-type(4) { --brass: #3f7f8c; }
main > div.gate:nth-of-type(5) { --brass: #94402f; }
main > div.gate:nth-of-type(6) { --brass: #5b8a5e; }
main > div.gate:nth-of-type(7) { --brass: #7a5fa0; }
/* Chapters */
.story-chapter { padding: 2.5rem 0 1rem; scroll-margin-top: 5rem; }
.chapter-opening { position: relative; margin-bottom: 1.5rem; }
.chapter-ghost {
  position: absolute; right: 0; top: -2.2rem;
  font-family: "Syne", sans-serif; font-weight: 800;
  font-size: clamp(4rem, 10vw, 7rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 2px var(--line);
  opacity: 0.6; pointer-events: none;
}
.story-chapter[data-chapter="zona-mortii"] .chapter-ghost {
  -webkit-text-stroke-color: var(--accent);
  opacity: 0.5;
}
.chapter-kicker { display: flex; align-items: center; gap: 0.6rem; }
.chapter-seal {
  display: inline-grid; place-items: center;
  width: 2.2rem; height: 2.2rem; border-radius: 50%;
  background: var(--night-panel); color: var(--accent, var(--brass));
  border: 1px solid var(--accent, var(--brass));
  font-size: 1.1rem; flex: none;
}
.chapter-opening h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  line-height: 1.12; margin: 0.25rem 0 0.75rem; text-wrap: balance;
  letter-spacing: -0.01em;
}
.story-chapter[data-chapter="numarul-viu"] .chapter-opening h2,
.story-chapter[data-chapter="fata-sudica"] .chapter-opening h2 {
  font-size: clamp(2rem, 4.4vw, 3.1rem);
}
.chapter-lead p { max-width: 68ch; }
/* Drop cap in Newsreader, not Syne: Syne 800 flattens Î's circumflex into a
   bar, so "În…" reads as "T…" (parent review 2026-10-07, also live on 065).
   Serif cap keeps full RO coverage and still contrasts the sans headings. */
.chapter-lead p:first-child::first-letter {
  font-family: "Newsreader", Georgia, serif; font-weight: 700;
  font-size: 2.6em; line-height: 0.9; float: left;
  padding: 0.08em 0.12em 0 0; color: var(--brass-deep);
}
html[lang="zh-Hans"] .chapter-lead p:first-child::first-letter {
  font-family: "PingFang SC", "Noto Sans CJK SC", sans-serif;
  font-size: 1.6em; float: none; padding: 0 0.1em 0 0;
}
html[data-theme="dark"] .chapter-lead p:first-child::first-letter { color: var(--brass); }
.chapter-opening blockquote {
  position: relative;
  margin: 1.25rem 0 0; padding: 0.9rem 1.2rem 0.9rem 2.9rem;
  border-left: 4px solid var(--accent, var(--brass));
  background: var(--card); font-style: italic; max-width: 62ch;
  font-size: 1.16rem; line-height: 1.55;
  border-radius: 0 0.5rem 0.5rem 0;
}
.chapter-opening blockquote::before {
  content: "\201E";
  position: absolute; left: 0.75rem; top: 0.35rem;
  font-family: "Newsreader", Georgia, serif; font-style: normal;
  font-size: 2.4rem; line-height: 1;
  color: var(--accent, var(--brass));
}
html[lang="en"] .chapter-opening blockquote::before,
html[lang="zh-Hans"] .chapter-opening blockquote::before { content: "\201C"; }
.chapter-flip .chapter-opening blockquote {
  border-left: 0; border-right: 4px solid var(--accent, var(--brass));
  border-radius: 0.5rem 0 0 0.5rem;
  padding-left: 1.2rem; padding-right: 2.9rem;
}
.chapter-flip .chapter-opening blockquote::before {
  left: auto; right: 0.75rem;
}
/* The thin-air rooms read their pull-lines off dark night glass. */
.story-chapter[data-chapter="zona-mortii"] .chapter-opening blockquote,
.story-chapter[data-chapter="muntele-care-creste"] .chapter-opening blockquote {
  background: linear-gradient(160deg, var(--night-panel), var(--night-abyss));
  color: var(--snow);
  border: 1px solid #31435c;
  border-left: 4px solid var(--accent, var(--brass));
  box-shadow: 0 1.5rem 2.5rem -1.5rem rgba(10, 18, 32, 0.6);
}
.story-chapter[data-chapter="zona-mortii"] .chapter-opening blockquote .citation,
.story-chapter[data-chapter="muntele-care-creste"] .chapter-opening blockquote .citation {
  color: var(--brass); border-color: var(--brass);
}
/* The names room: chapter 2 reads its lead off dark night glass, so the
   four-name claim lands before the first beat. The pull stays on paper. */
.story-chapter[data-chapter="patru-nume"] .chapter-lead {
  background: linear-gradient(160deg, var(--night-panel), var(--night-abyss));
  color: var(--snow);
  border: 1px solid #31435c; border-radius: 0.7rem;
  padding: 1.1rem 1.25rem; max-width: 62rem;
  box-shadow: 0 1.5rem 2.5rem -1.5rem rgba(10, 18, 32, 0.6);
}
.story-chapter[data-chapter="patru-nume"] .chapter-lead p { max-width: 62ch; margin: 0.5rem 0; }
.story-chapter[data-chapter="patru-nume"] .chapter-lead p:first-child::first-letter { color: var(--brass); }
.story-chapter[data-chapter="patru-nume"] .chapter-lead .citation { color: var(--brass); border-color: var(--brass); }
/* The coda: chapter 8 closes the ascent centered, seal ringed like a stamp. */
.story-chapter[data-chapter="muntele-aglomerat"] .chapter-opening { text-align: center; }
.story-chapter[data-chapter="muntele-aglomerat"] .chapter-kicker { justify-content: center; }
.story-chapter[data-chapter="muntele-aglomerat"] .chapter-seal {
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 5px var(--accent, var(--brass));
}
.story-chapter[data-chapter="muntele-aglomerat"] .chapter-opening h2 { margin-inline: auto; }
.story-chapter[data-chapter="muntele-aglomerat"] .chapter-lead p { margin-inline: auto; }
.story-chapter[data-chapter="muntele-aglomerat"] .chapter-lead p:first-child::first-letter {
  float: none; font-size: 1.35em; padding: 0 0.08em 0 0;
}
.story-chapter[data-chapter="muntele-aglomerat"] .chapter-ghost {
  left: 50%; right: auto; transform: translateX(-50%); opacity: 0.35;
}
.story-chapter[data-chapter="muntele-aglomerat"] .chapter-opening blockquote {
  margin-inline: auto; text-align: left;
}
.chapter-layout {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 2rem; align-items: start;
}
.chapter-flip .chapter-layout { direction: rtl; }
.chapter-flip .chapter-layout > * { direction: ltr; }
.chapter-layout > * { min-width: 0; }
/* Sticky stage: one instrument, five skins, chosen per beat. */
.stage-column { position: sticky; top: 5.5rem; align-self: start; min-width: 0; }
.stage-pin { position: static; min-width: 0; }
.sticky-stage, .story-steps, .story-step { min-width: 0; overflow-wrap: anywhere; }
.sticky-stage {
  background: var(--stage-bg); color: var(--snow);
  border-radius: 0.9rem; padding: 1.25rem 1.25rem 1rem;
  border: 1px solid #31435c;
  border-top: 4px solid var(--brass);
  box-shadow: 0 2rem 3rem -2rem rgba(10, 18, 32, 0.65);
  font-variant-numeric: tabular-nums;
}
.sticky-stage[data-grade="glacier"] {
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(143, 193, 212, 0.22), transparent 60%),
    linear-gradient(170deg, #1d3a52 0%, var(--stage-bg) 60%, #0a1626 100%);
  box-shadow: 0 2rem 3rem -2rem rgba(10, 18, 32, 0.65), 0 0 3rem -1rem var(--glow);
}
.sticky-stage[data-grade="snow"] {
  background: linear-gradient(170deg, #f4f7fa, #dfe8ef);
  color: var(--ink); border-color: var(--line);
}
.sticky-stage[data-grade="snow"] .stage-label,
.sticky-stage[data-grade="snow"] .stage-subline { color: var(--ink-soft); }
.sticky-stage[data-grade="snow"] .beat-art .g-thread { stroke: #3a6f83; }
.sticky-stage[data-grade="snow"] .beat-art .g-aux { stroke: #9aa8b0; }
.sticky-stage[data-grade="snow"] .stage-note { color: var(--ink-soft); }
.sticky-stage[data-grade="snow"] .stage-kicker { color: var(--brass-deep); }
html[data-theme="dark"] .sticky-stage[data-grade="snow"] .stage-kicker { color: var(--brass); }
.sticky-stage[data-grade="snow"] .stage-citations .citation {
  color: var(--brass-deep); border-color: var(--brass);
}
html[data-theme="dark"] .sticky-stage[data-grade="snow"] .stage-citations .citation {
  color: var(--brass);
}
.sticky-stage[data-grade="snow"] .stage-gesture {
  background: rgba(30, 38, 50, 0.05);
  border-color: var(--line);
}
.sticky-stage[data-grade="granite"] {
  background:
    radial-gradient(100% 55% at 50% 0%, rgba(176, 138, 60, 0.14), transparent 62%),
    linear-gradient(170deg, #2a3340 0%, #1a2230 55%, #111722 100%);
  border-color: #3d4a5c;
}
.sticky-stage[data-grade="night"] {
  background:
    radial-gradient(110% 55% at 50% 0%, rgba(125, 158, 196, 0.20), transparent 62%),
    linear-gradient(170deg, #14202e 0%, #0e1824 55%, #09121c 100%);
  border-color: #2e4255;
}
.sticky-stage[data-grade="abyss"] {
  background:
    radial-gradient(90% 45% at 50% 0%, rgba(200, 162, 74, 0.12), transparent 60%),
    linear-gradient(170deg, #0a1220 0%, var(--night-abyss) 70%);
  border-color: #1a2a40;
}
/* The instrument's linework glows faintly on dark grades; the snow
   grade keeps flat ink for contrast. Filter is paint-only. */
.sticky-stage[data-grade="glacier"] .beat-art,
.sticky-stage[data-grade="granite"] .beat-art,
.sticky-stage[data-grade="night"] .beat-art,
.sticky-stage[data-grade="abyss"] .beat-art {
  filter: drop-shadow(0 0 5px rgba(143, 193, 212, 0.35));
}
.sticky-stage[data-grade="glacier"] .stage-value,
.sticky-stage[data-grade="granite"] .stage-value,
.sticky-stage[data-grade="night"] .stage-value,
.sticky-stage[data-grade="abyss"] .stage-value {
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}
.stage-gesture {
  margin-bottom: 0.75rem; border-radius: 0.55rem;
  background: rgba(10, 18, 32, 0.35);
  border: 1px solid rgba(143, 193, 212, 0.14);
  padding: 0.35rem 0.35rem 0.1rem;
}
.beat-art { display: none; width: 100%; height: auto; }
.beat-art:first-child { display: block; }
.beat-art .g-thread { fill: none; stroke: var(--ice); stroke-width: 5; }
.beat-art .g-aux { fill: none; stroke: #5d86a0; stroke-width: 3; }
.beat-art .g-mark { fill: none; stroke: var(--accent, var(--brass)); stroke-width: 4; }
.beat-art .g-dot { fill: var(--brass); }
.stage-note { font-size: 0.8rem; color: var(--ice); margin: 0 0 0.5rem; }
.stage-kicker {
  font-family: "Syne", "PingFang SC", sans-serif; font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.18em; color: var(--brass); margin: 0;
}
.stage-value {
  font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800;
  line-height: 1.05; margin: 0.25rem 0; letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}
.stage-value, .stage-label { text-wrap: balance; }
.stage-label { font-weight: 700; margin: 0; color: var(--ice); }
.sticky-stage[data-grade="granite"] .stage-label,
.sticky-stage[data-grade="granite"] .stage-subline { color: #c9d8e4; }
.stage-subline { font-size: 0.95rem; margin: 0.35rem 0 0; color: var(--ice); }
.stage-citations { margin-top: 0.5rem; }
.stage-citations .citation { color: var(--brass); border-color: var(--brass); }
.stage-progress { font-size: 0.8rem; opacity: 0.75; margin: 0.6rem 0 0; }
/* Each room signs its instrument: a chapter-accent rule down the stage. */
.story-chapter[data-chapter] .sticky-stage { border-left: 4px solid var(--accent, var(--brass)); }
/* Beat pips: summit-mark progress inside the instrument. */
.stage-pips {
  display: flex; gap: 0.45rem; list-style: none; margin: 0.7rem 0 0; padding: 0;
  min-width: 0;
}
.stage-pips li span {
  display: block; width: 0.55rem; height: 0.55rem; border-radius: 50%;
  background: transparent; border: 2px solid var(--ice);
  opacity: 0.55;
}
.sticky-stage[data-grade="snow"] .stage-pips li span { border-color: var(--ink-soft); }
.stage-pips li.is-now span {
  background: var(--brass); border-color: var(--brass); opacity: 1;
  box-shadow: 0 0 0.6rem rgba(176, 138, 60, 0.8);
}
/* Steps: each card carries an outlined step numeral, and a brass
   climbing thread runs beside the column on wide screens. Both are
   absolutely positioned, so step heights — and the reading line —
   never move. */
.story-steps { position: relative; counter-reset: everest-step; }
.story-steps::before {
  content: ""; position: absolute; left: -1rem; top: 1.5rem; bottom: 1.5rem;
  width: 2px; border-radius: 2px;
  background: linear-gradient(var(--accent, var(--brass)), var(--line) 85%);
  opacity: 0.7;
}
.story-step {
  position: relative;
  counter-increment: everest-step;
  padding: 1.25rem 1.25rem 1.5rem; margin: 0 0 1rem;
  border: 1px solid var(--line); border-radius: 0.7rem;
  background: var(--card); scroll-margin-top: 6rem;
  box-shadow: 0 1rem 2rem -1.5rem rgba(30, 38, 50, 0.35);
}
.story-step::after {
  content: "0" counter(everest-step);
  position: absolute; top: 0.85rem; right: 1.1rem;
  font-family: "Syne", "PingFang SC", sans-serif; font-weight: 800;
  font-size: 1.15rem; line-height: 1; letter-spacing: 0.04em;
  color: transparent; -webkit-text-stroke: 1.5px var(--line);
  pointer-events: none;
}
.story-step.is-active::after {
  color: var(--accent, var(--brass));
  -webkit-text-stroke-color: var(--accent, var(--brass));
  opacity: 0.85;
}
/* Active marker is an INSET shadow, never a wider border: border-left
   1px→5px under border-box narrows the content box 4px on activation,
   reflowing text +1 line (+28px measured) and pushing beats below the
   reading line — freezing stale stages (067 capture flake). */
.story-step.is-active {
  border-color: var(--accent, var(--brass));
  box-shadow: inset 4px 0 0 var(--accent, var(--brass)),
    0 1.25rem 2.5rem -1.25rem rgba(30, 38, 50, 0.45);
}
.step-kicker {
  font-family: "Syne", "PingFang SC", sans-serif; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.18em; color: var(--brass-deep); margin: 0 0 0.4rem;
  padding-right: 2.75rem;
}
html[data-theme="dark"] .step-kicker { color: var(--brass); }
.story-step h3 { margin: 0 0 0.4rem; font-size: 1.3rem; line-height: 1.25; }
.step-subline { font-weight: 700; margin: 0 0 0.5rem; }
.step-copy { margin: 0; }
/* The death-zone room reads its steps off dark night glass: thin air,
   thin light. Paint only — padding and borders stay identical. */
.story-chapter[data-chapter="zona-mortii"] .story-step {
  background: linear-gradient(165deg, #1c3350 0%, #0e1824 70%, #09121c 100%);
  border-color: #31435c;
  color: var(--snow);
  box-shadow: 0 1.25rem 2.5rem -1.25rem rgba(10, 18, 32, 0.7);
}
.story-chapter[data-chapter="zona-mortii"] .step-kicker { color: var(--brass); }
.story-chapter[data-chapter="zona-mortii"] .story-step h3 { color: var(--snow); }
.story-chapter[data-chapter="zona-mortii"] .step-subline { color: var(--ice); }
.story-chapter[data-chapter="zona-mortii"] .step-copy { color: #c9d8e4; }
.story-chapter[data-chapter="zona-mortii"] .story-step .citation {
  color: var(--brass); border-color: var(--brass);
}
.story-chapter[data-chapter="zona-mortii"] .story-step.is-active {
  border-color: var(--accent);
  box-shadow: inset 4px 0 0 var(--accent),
    0 1.25rem 2.5rem -1.25rem rgba(10, 18, 32, 0.8);
}
.story-chapter[data-chapter="zona-mortii"] .story-step::after {
  -webkit-text-stroke-color: #3d5a76;
}
.story-chapter[data-chapter="zona-mortii"] .story-step.is-active::after {
  color: var(--accent);
  -webkit-text-stroke-color: var(--accent);
}
/* Media galleries */
.chapter-media { margin-top: 1.5rem; }
.media-grid { display: grid; gap: 1.25rem; }
@media (min-width: 1100px) {
  .media-grid:has(> :nth-child(2)) { grid-template-columns: 1fr 1fr; }
  .media-grid:has(> :nth-child(2)) > :first-child { grid-column: 1 / -1; }
}
.media-grid figure { margin: 0; }
.photo-figure img, .map-figure img, .diagram-figure img {
  border-radius: 0.6rem; border: 1px solid var(--line);
  box-shadow: 0 1.5rem 2.5rem -1.75rem rgba(10, 18, 32, 0.55);
  /* Night-ice developing plate: while a lazy frame is still on its
     way, the reserved box reads as intentional dark glass, never a
     broken white void. */
  background: linear-gradient(160deg, #1c3350 0%, #0e1824 60%, #0a1220 100%);
}
/* Cold-room grade on the prints; the full frame returns on hover. */
.photo-figure img {
  filter: saturate(0.94) contrast(1.02);
}
.map-figure img, .diagram-figure img {
  border-color: #31435c;
  box-shadow: 0 1.5rem 2.5rem -1.5rem rgba(10, 18, 32, 0.7);
}
.photo-figure figcaption, .map-figure figcaption, .diagram-figure figcaption {
  font-size: 0.92rem; color: var(--ink-soft); padding-top: 0.5rem;
  border-left: 2px solid var(--accent, var(--brass)); padding-left: 0.75rem;
  margin-top: 0.5rem;
}
/* Each room frames its evidence in its own accent. */
.photo-figure img { border-top: 3px solid var(--accent, var(--brass)); }
.map-figure img, .diagram-figure img { border-top: 3px solid var(--brass); }
/* Convention instrument (pure CSS state) */
.sounding {
  margin: 0 0 1.5rem; padding: 1.25rem;
  background: linear-gradient(165deg, #1c3350 0%, var(--night-panel) 50%, var(--night-abyss) 100%);
  color: var(--snow);
  border-radius: 0.9rem; border: 1px solid #31435c;
  border-top: 4px solid var(--brass);
  box-shadow: 0 2rem 3rem -2rem rgba(10, 18, 32, 0.7);
  font-variant-numeric: tabular-nums;
}
.sounding .eyebrow { color: var(--brass); }
.sounding h3 { margin: 0.25rem 0 0.5rem; font-size: 1.4rem; }
.sounding-note { font-size: 0.92rem; color: var(--ice); margin: 0 0 0.5rem; }
.dispute-tag { font-size: 0.9rem; margin: 0 0 1rem; }
.dispute-tag .citation { color: var(--brass); border-color: var(--brass); }
.sounding-instrument { border: 0; padding: 0; margin: 0; }
.snd-stop { position: absolute; opacity: 0; }
.snd-stops { position: relative; padding-left: 2rem; margin-bottom: 1rem; }
.snd-line {
  position: absolute; left: 0.6rem; top: 0.4rem; bottom: 0.4rem;
  border-left: 3px dashed var(--ice);
}
.snd-tick {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.55rem 0.8rem; margin-bottom: 0.4rem;
  border: 1px solid #31435c; border-radius: 0.5rem; cursor: pointer;
}
.snd-tick:hover { border-color: var(--ice); }
.snd-tick-value { color: var(--brass); font-weight: 700; }
#snd-0:checked ~ .snd-stops label[for="snd-0"],
#snd-1:checked ~ .snd-stops label[for="snd-1"],
#snd-2:checked ~ .snd-stops label[for="snd-2"],
#snd-3:checked ~ .snd-stops label[for="snd-3"] {
  border-color: var(--brass); background: rgba(176, 138, 60, 0.12);
  box-shadow: 0 0 1.5rem -0.5rem rgba(176, 138, 60, 0.5);
}
.snd-read { display: none; border-top: 1px solid #31435c; padding-top: 0.9rem; }
#snd-0:checked ~ .snd-readouts [data-snd="0"],
#snd-1:checked ~ .snd-readouts [data-snd="1"],
#snd-2:checked ~ .snd-readouts [data-snd="2"],
#snd-3:checked ~ .snd-readouts [data-snd="3"] { display: block; }
.snd-value { font-family: "Syne", "PingFang SC", sans-serif; font-size: 1.9rem; font-weight: 800; margin: 0; color: #e3c87e; }
.snd-label { font-weight: 700; color: var(--ice); margin: 0.25rem 0; }
.snd-label .citation, .snd-subline .citation { color: var(--brass); border-color: var(--brass); }
.snd-subline { font-size: 0.92rem; color: var(--ice); margin: 0; }
/* Sources, footer */
.sources { padding: 2.5rem 0; scroll-margin-top: 5rem; }
.sources h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0.25rem 0 0.5rem; }
.sources ol { padding-left: 1.25rem; }
.sources li { margin-bottom: 1rem; }
.sources li::marker { color: var(--brass-deep); font-weight: 700; }
.sources li p { margin: 0.2rem 0; font-size: 0.95rem; color: var(--ink-soft); }
.sources li a { overflow-wrap: anywhere; font-size: 0.85rem; }
.source-status { font-family: "Syne", sans-serif; font-size: 0.75rem; font-weight: 700; }
.site-footer {
  border-top: 2px solid var(--line); padding: 1.5rem 0 3rem;
  display: flex; gap: 1.25rem; flex-wrap: wrap; align-items: baseline;
  font-size: 0.95rem; color: var(--ink-soft);
}
.site-footer p { margin: 0; }
/* Reading rail */
.reading-rail {
  position: fixed; right: 0.55rem; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 0.22rem; z-index: 40;
  max-height: 86vh; overflow: hidden; padding: 0.5rem 0.25rem;
  background: color-mix(in srgb, var(--paper) 72%, transparent);
  border: 1px solid var(--line); border-radius: 999px;
  backdrop-filter: blur(6px);
}
.rail-river {
  position: absolute; left: 50%; top: 0.5rem; bottom: 0.5rem; width: 2px;
  background: var(--line); transform: translateX(-50%);
  border-radius: 2px; overflow: hidden;
}
.rail-fill {
  position: absolute; left: 0; top: 0; width: 100%; height: 0;
  background: linear-gradient(var(--ice), var(--brass));
}
.reading-rail a {
  position: relative; display: block; width: 1.6rem; height: 1.1rem;
  text-decoration: none;
}
.reading-rail a span {
  position: absolute; left: 50%; top: 50%;
  width: 0.55rem; height: 0.55rem; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--paper); border: 2px solid var(--ink-soft);
}
.reading-rail a.rail-step span { width: 0.4rem; height: 0.4rem; }
.reading-rail a[aria-current] span {
  background: var(--brass); border-color: var(--brass-deep);
  box-shadow: 0 0 0.6rem rgba(176, 138, 60, 0.8);
}
.reading-rail a::after {
  content: attr(data-label);
  position: absolute; right: 1.9rem; top: 50%; transform: translateY(-50%);
  white-space: nowrap; font-size: 0.75rem; font-weight: 700;
  background: var(--night-panel); color: var(--snow);
  padding: 0.15rem 0.55rem; border-radius: 0.3rem;
  opacity: 0; pointer-events: none;
}
.reading-rail a:hover::after, .reading-rail a:focus-visible::after { opacity: 1; }
.rail-marker {
  position: absolute; left: 50%; top: 0;
  width: 1rem; height: 1rem; border-radius: 50%;
  transform: translate(-50%, 0);
  border: 2px solid var(--brass); pointer-events: none;
  box-shadow: 0 0 0.5rem rgba(176, 138, 60, 0.55);
}
/* The gauge mark rides in the current room's accent. */
body[data-chapter="numarul-viu"] .rail-marker { border-color: #4f8fa8; box-shadow: 0 0 0.5rem rgba(79, 143, 168, 0.6); }
body[data-chapter="patru-nume"] .rail-marker { border-color: #b08a3c; }
body[data-chapter="muntele-care-creste"] .rail-marker { border-color: #55a08a; box-shadow: 0 0 0.5rem rgba(85, 160, 138, 0.6); }
body[data-chapter="fata-sudica"] .rail-marker { border-color: #7d9ec4; box-shadow: 0 0 0.5rem rgba(125, 158, 196, 0.6); }
body[data-chapter="fata-nordica"] .rail-marker { border-color: #3f7f8c; box-shadow: 0 0 0.5rem rgba(63, 127, 140, 0.6); }
body[data-chapter="zona-mortii"] .rail-marker { border-color: #94402f; box-shadow: 0 0 0.5rem rgba(148, 64, 47, 0.6); }
body[data-chapter="parcul-dintre-tari"] .rail-marker { border-color: #5b8a5e; box-shadow: 0 0 0.5rem rgba(91, 138, 94, 0.6); }
body[data-chapter="muntele-aglomerat"] .rail-marker { border-color: #7a5fa0; box-shadow: 0 0 0.5rem rgba(122, 95, 160, 0.6); }
/* To-top + status */
.to-top {
  position: fixed; left: 1rem; bottom: 1rem; z-index: 40;
  display: flex; gap: 0.4rem; align-items: center;
  background: var(--night-panel); color: var(--snow);
  border: 1px solid var(--brass); border-radius: 999px;
  padding: 0.55rem 1rem; cursor: pointer; font-size: 0.9rem;
}
.to-top[hidden] { display: none; }
#share-status:empty { display: none; }
#share-status {
  position: fixed; left: 50%; bottom: 1.25rem; transform: translateX(-50%);
  background: var(--night-panel); color: var(--snow);
  padding: 0.5rem 1rem; border-radius: 0.4rem; z-index: 60;
}
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--brass); outline-offset: 2px;
}
.sounding-instrument:focus-within .snd-stops {
  outline: 3px solid var(--brass); outline-offset: 2px;
}
/* Choreography: everything stays visible unless motion is welcome AND
   JavaScript confirmed enhancement. Captures emulate reduced motion,
   and no-JS readers never set data-enhanced, so both keep full text. */
@media (prefers-reduced-motion: no-preference) {
  html[data-enhanced="true"] .chapter-opening,
  html[data-enhanced="true"] .story-step,
  html[data-enhanced="true"] .chapter-media figure,
  html[data-enhanced="true"] .sounding,
  html[data-enhanced="true"] .gate,
  html[data-enhanced="true"] .hero-stats,
  html[data-enhanced="true"] .chapter-index {
    opacity: 0; transform: translateY(26px);
    transition: opacity 0.7s ease, transform 0.7s ease;
  }
  html[data-enhanced="true"] .is-inview {
    opacity: 1; transform: none;
  }
  html[data-enhanced="true"] .story-steps > :nth-child(2) { transition-delay: 0.06s; }
  html[data-enhanced="true"] .story-steps > :nth-child(3) { transition-delay: 0.12s; }
  html[data-enhanced="true"] .story-steps > :nth-child(4) { transition-delay: 0.18s; }
  .hero-peak { animation: hero-settle 1.6s ease-out; }
  @keyframes hero-settle {
    from { transform: scale(1.045); } to { transform: scale(1); }
  }
  .hero-threads { animation: thread-drift 11s linear infinite; }
  @keyframes thread-drift {
    from { background-position-y: 0; } to { background-position-y: 236px; }
  }
  .scroll-cue .cue-line { animation: cue-rise 2.2s ease-in-out infinite; }
  @keyframes cue-rise {
    0% { transform: scaleY(0); transform-origin: bottom; }
    55% { transform: scaleY(1); transform-origin: bottom; }
    56% { transform-origin: top; }
    100% { transform: scaleY(0); transform-origin: top; }
  }
  .gate-threads line { animation: gate-rise 3.2s ease-in-out infinite; }
  @keyframes gate-rise {
    0%, 100% { transform: translateY(7px); opacity: 0.5; }
    50% { transform: translateY(-9px); opacity: 1; }
  }
  .gate-line { animation: gate-shimmer 5s ease-in-out infinite; }
  @keyframes gate-shimmer {
    0%, 100% { opacity: 0.7; } 50% { opacity: 1; }
  }
  .beat-art .g-thread {
    stroke-dasharray: 11 9;
    animation: gauge-flow 1.8s linear infinite;
  }
  @keyframes gauge-flow {
    from { stroke-dashoffset: 0; } to { stroke-dashoffset: 40; }
  }
  .sticky-stage.is-swap [data-stage-kicker],
  .sticky-stage.is-swap [data-stage-value],
  .sticky-stage.is-swap [data-stage-label],
  .sticky-stage.is-swap [data-stage-subline] {
    animation: stage-in 0.45s ease;
  }
  .sticky-stage.is-swap [data-stage-label] { animation-delay: 0.05s; }
  .sticky-stage.is-swap [data-stage-subline] { animation-delay: 0.1s; }
  @keyframes stage-in {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: none; }
  }
  .sticky-stage.is-swap .stage-gesture { animation: stage-in 0.4s ease; }
  html[data-enhanced="true"] .chapter-media figure,
  html[data-enhanced="true"] .chapter-index a {
    transition: opacity 0.7s ease, transform 0.7s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  }
  html[data-enhanced="true"] .chapter-media figure:hover {
    transform: translateY(-3px);
    box-shadow: 0 1.75rem 2.75rem -1.5rem rgba(10, 18, 32, 0.55);
  }
  html[data-enhanced="true"] .chapter-index a:hover {
    transform: translateY(-2px);
  }
  .photo-figure img { transition: filter 0.45s ease; }
  .photo-figure:hover img { filter: none; }
  /* First viewport entrance: the headline and deck rise out of the
     weather. Keyframe-only, ending at the natural state, so no-JS
     and reduced-motion readers always land on full text. */
  .hero-copy > * { animation: hero-copy-in 0.9s ease-out both; }
  .hero-copy > :nth-child(2) { animation-delay: 0.08s; }
  .hero-copy > :nth-child(3) { animation-delay: 0.16s; }
  .hero-copy > :nth-child(4) { animation-delay: 0.24s; }
  @keyframes hero-copy-in {
    from { opacity: 0; transform: translateY(22px); }
    to { opacity: 1; transform: none; }
  }
}
@media (max-width: 900px) {
  .chapter-layout { grid-template-columns: 1fr; }
  .stage-column { position: sticky; top: 6rem; z-index: 5; }
  .top-jumps { display: none; }
  .chapter-index { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* Single column: no gap for the climbing thread, numerals carry it. */
  .story-steps::before { display: none; }
}
@media (max-width: 740px) {
  body { font-size: 1.05rem; }
  .shell { padding-right: 3.4rem; }
  .site-header { gap: 0.5rem; }
  .wordmark { font-size: 0.85rem; white-space: nowrap; }
  .wordmark-full { display: none; }
  .wordmark-short { display: inline; }
  .header-actions { gap: 0.35rem; margin-left: auto; }
  html[lang="ro"] .language-switch a[lang="ro"],
  html[lang="en"] .language-switch a[lang="en"],
  html[lang="zh-Hans"] .language-switch a[lang="zh-Hans"] { display: none; }
  #theme-control, #copy-link { width: 1.8rem; height: 1.8rem; font-size: 0.9rem; }
  .reading-rail { right: 0.25rem; }
  .reading-rail a.rail-step { display: none; }
  .hero, .story-chapter, .sources, .site-footer { margin-right: 3.4rem; }
  .gate { margin-right: 3.4rem; }
  .gate svg { height: 9.5rem; }
  .gate-numeral { font-size: 2.6rem; opacity: 0.4; }
  .gate-seal { width: 2rem; height: 2rem; font-size: 1rem; top: 0.8rem; }
  .gate-title { width: calc(100% - 3rem); bottom: 0.9rem; }
  .hero-peak, .hero-curtain { min-height: clamp(26rem, 78svh, 44rem); }
  .hero-copy { padding-bottom: 3.6rem; }
  .scroll-cue { bottom: auto; top: 1rem; }
  .scroll-cue span:first-child { display: none; }
  .hero-stats { margin-top: -2.25rem; }
  .ci-title { font-size: 0.85rem; }
  .chapter-ghost { top: -1.4rem; }
  /* Fixed stage minima: beat swaps change stage text, which wrapped to
     different heights per beat (411↔437px measured) and shifted every
     chapter below on scroll — freezing stale stages (067 capture flake:
     ch1's stage grew 26px, pushing the ch4 test beat below the line).
     Values = max rendered stage height across ALL beats × RO/EN/ZH ×
     320/390px, +8px margin, measured 2026-10-07. If a restyle changes
     stage typography/padding, re-measure (drive every beat active at
     320+390 in all editions) and update these. Desktop needs none: the
     stage sits in its own column there. */
  #numarul-viu .sticky-stage { min-height: 470px; }
  #patru-nume .sticky-stage { min-height: 465px; }
  #muntele-care-creste .sticky-stage { min-height: 475px; }
  #fata-sudica .sticky-stage { min-height: 495px; }
  #fata-nordica .sticky-stage { min-height: 475px; }
  #zona-mortii .sticky-stage { min-height: 437px; }
  #parcul-dintre-tari .sticky-stage { min-height: 465px; }
  #muntele-aglomerat .sticky-stage { min-height: 437px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
