/* Kausalität 2026 — shared styles for the landing page and the case narratives.
   Visual system of Kepleriana 2026: Oxford blue, gold, sandstone. */

:root {
  --oxford: #002147;
  --oxford-deep: #00152e;
  --oxford-soft: #2c4a6e;
  --ink: #1b2733;
  --muted: #5c5348;
  --gold: #c4a15a;
  --gold-deep: #8c6d2a;
  --gold-pale: #efe3c4;
  --sand: #f6f1e7;
  --sand-deep: #ece3d2;
  --paper: #fffdf8;
  --line: #e3d9c6;
  --line-strong: #cdbfa4;
  --serif: "Source Serif 4", "Palatino Linotype", Palatino, serif;
  --display: "Fraunces", "Source Serif 4", Palatino, serif;
  --sans: "Source Sans 3", "Avenir Next", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
.no-smooth { scroll-behavior: auto !important; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(1200px 480px at 50% -180px, rgba(196, 161, 90, 0.16), transparent 60%),
    var(--sand);
  font-family: var(--serif);
  font-size: 1.05rem;
  line-height: 1.55;
}
a { color: var(--oxford); text-underline-offset: 0.18em; }
a:hover { color: var(--gold-deep); }
img { max-width: 100%; }
.skip {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--oxford); color: #fff; padding: 0.4rem 0.7rem;
}
.skip:focus { top: 0.6rem; z-index: 50; }

/* ---------------------------------------------------------------- mast */
.mast {
  background: var(--oxford-deep);
  color: #f4efe4;
  border-bottom: 3px solid var(--gold);
  position: relative;
  z-index: 20;
}
.mast-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0.85rem 1.5rem 0.8rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}
.brand {
  margin: 0;
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  font-weight: 650;
}
.brand a { color: #f4efe4; text-decoration: none; }
.brand span { color: var(--gold); }
.mast nav { font-family: var(--sans); font-size: 0.92rem; }
.mast nav a { color: #f4efe4; text-decoration: none; margin-left: 1.15rem; }
.mast nav a:hover, .mast nav a[aria-current="page"] { color: var(--gold); }

.wrap { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }

/* ---------------------------------------------------------------- hero */
.hero { padding: 3.4rem 0 1.6rem; }
.kicker {
  margin: 0 0 0.7rem;
  font-family: var(--sans);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--gold-deep);
  font-weight: 650;
}
h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 560;
  font-size: clamp(2.8rem, 7vw, 5.6rem);
  letter-spacing: -0.03em;
  line-height: 0.95;
  color: var(--oxford);
}
h1 em { font-style: italic; font-weight: 460; color: var(--gold-deep); }
.lead {
  max-width: 44rem;
  margin: 1.35rem 0 0;
  font-size: 1.22rem;
  line-height: 1.45;
}
.byline { margin: 1.1rem 0 0; max-width: 44rem; color: var(--muted); font-size: 0.98rem; }
.credit {
  margin: 0.9rem 0 0;
  max-width: 44rem;
  font-family: var(--sans);
  font-size: 0.86rem;
  color: var(--muted);
  border-left: 3px solid var(--gold);
  padding: 0.15rem 0 0.15rem 0.7rem;
}
.go {
  margin-top: auto;
  align-self: flex-start;
  display: inline-block;
  background: var(--oxford);
  color: #f7f1e4;
  text-decoration: none;
  font-family: var(--sans);
  font-weight: 650;
  font-size: 0.95rem;
  padding: 0.6rem 0.95rem;
  border-radius: 2px;
}
.go:hover { background: #01315f; color: #fff; }
.go.quiet { background: transparent; color: var(--oxford); border: 1px solid var(--oxford); margin-left: 0.45rem; }
.go.quiet:hover { background: var(--oxford); color: #fff; }

section.band { padding: 1.8rem 0 0.6rem; }
section.band > h2, .band-title {
  margin: 0 0 0.85rem;
  font-family: var(--display);
  font-weight: 560;
  font-size: 1.7rem;
  color: var(--oxford);
  letter-spacing: -0.02em;
}
.section-lead { margin: -0.35rem 0 1rem; color: var(--muted); max-width: 46rem; }

/* sources */
.sources { display: grid; grid-template-columns: 1.2fr 1fr; gap: 1rem; padding-bottom: 2.5rem; }
.source-item { background: var(--paper); border: 1px solid var(--line); padding: 1rem 1.15rem; }
.source-item h3 { margin: 0 0 0.3rem; font-family: var(--display); font-weight: 560; font-size: 1.25rem; color: var(--oxford); }
.source-item p { margin: 0 0 0.35rem; font-size: 0.96rem; }
.source-item .meta { font-family: var(--sans); font-size: 0.84rem; color: var(--muted); }

footer {
  background: var(--oxford-deep);
  color: #d9d0c2;
  padding: 1.6rem 0 1.8rem;
  font-family: var(--sans);
  font-size: 0.9rem;
  margin-top: 2rem;
}
footer .wrap { display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
footer a { color: var(--gold); }
footer p { margin: 0.15rem 0; }

/* ---------------------------------------------------------------- narrative */
.story-hero { padding: 3rem 0 1.2rem; }
.story-hero h1 { font-size: clamp(2.4rem, 5.6vw, 4.4rem); }

.home-back { margin: 1.15rem 0 0; }
.home-back a {
  display: inline-block;
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  color: #f4ead0;
  background: var(--oxford, #002147);
  text-decoration: none;
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
}
.home-back a:hover { color: var(--gold, #c8a22a); }
.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin: 1.4rem 0 0.5rem;
  padding: 0;
  list-style: none;
  font-family: var(--sans);
  font-size: 0.88rem;
}
.toc a {
  display: inline-block;
  text-decoration: none;
  color: var(--oxford);
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 0.25rem 0.6rem;
  border-radius: 2px;
}
.toc a:hover { border-color: var(--oxford); }
.toc .n { color: var(--gold-deep); margin-right: 0.35rem; font-weight: 650; }

.chapter {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  gap: 2.2rem;
  padding: 3.2rem 0 1rem;
  border-top: 1px solid var(--line);
}
.chapter.no-figure { grid-template-columns: minmax(0, 46rem); }
.chapter-text { min-width: 0; }
.chapter-num { font-family: var(--sans); font-size: 0.8rem; color: var(--gold-deep); font-weight: 650; margin: 0 0 0.35rem; letter-spacing: 0.04em; }
.chapter h2 {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-weight: 560;
  font-size: 2.05rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--oxford);
}
.chapter h3 { font-family: var(--display); font-weight: 560; font-size: 1.25rem; color: var(--oxford); margin: 1.4rem 0 0.5rem; }
.step {
  margin: 0 0 2.4rem;
  padding: 0.2rem 0 0.2rem 1rem;
  border-left: 2px solid transparent;
  transition: border-color 200ms ease, opacity 200ms ease;
  opacity: 0.55;
}
.step:first-of-type { opacity: 1; }
.step.active { border-left-color: var(--gold); opacity: 1; }
.step p { margin: 0 0 0.85rem; }
.step:last-child { margin-bottom: 30vh; }
.chapter.no-figure .step, .chapter.no-figure .step:last-child { opacity: 1; margin-bottom: 1.4rem; }
.chapter-figure { min-width: 0; }
.chapter-figure .sticky {
  position: sticky;
  top: 1.2rem;
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 1rem 1rem 0.8rem;
  box-shadow: 0 10px 28px rgba(0, 21, 46, 0.05);
}
.fig { width: 100%; min-height: 320px; }
.fig svg { display: block; width: 100%; height: auto; overflow: visible; }
.fig-title { font-family: var(--sans); font-weight: 650; font-size: 0.92rem; color: var(--oxford); margin: 0 0 0.4rem; }
.fig-note { font-family: var(--sans); font-size: 0.8rem; color: var(--muted); margin: 0.55rem 0 0; line-height: 1.35; }
.fig-legend { display: flex; flex-wrap: wrap; gap: 0.2rem 0.9rem; font-family: var(--sans); font-size: 0.78rem; color: var(--muted); margin: 0.4rem 0 0; }
.fig-legend i { display: inline-block; width: 0.75rem; height: 0.75rem; margin-right: 0.3rem; vertical-align: -0.1rem; border-radius: 1px; }

/* tooltip */
.tip {
  position: fixed;
  pointer-events: none;
  z-index: 60;
  background: var(--oxford-deep);
  color: #f4efe4;
  font-family: var(--sans);
  font-size: 0.82rem;
  line-height: 1.35;
  padding: 0.45rem 0.6rem;
  border-radius: 2px;
  max-width: 22rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transition: opacity 120ms ease;
}
.tip b { color: var(--gold); font-weight: 650; }

/* chart text */
.axis text { font-family: var(--sans); font-size: 11px; fill: var(--muted); }
.lbl { font-family: var(--sans); font-size: 11px; }
.lbl:not([fill]) { fill: var(--muted); }
.axis path, .axis line { stroke: #cdbfa4; }
.lbl-strong { font-family: var(--sans); font-size: 11.5px; font-weight: 650; }
.lbl-strong:not([fill]) { fill: var(--oxford); }
.lbl-serif { font-family: var(--serif); font-size: 12px; }
.lbl-serif:not([fill]) { fill: var(--ink); }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 1020px) {
  .chapter { grid-template-columns: 1fr; }
  .chapter-figure { order: -1; }
  .chapter-figure .sticky { position: relative; top: 0; }
  .step { opacity: 1; }
  .step:last-child { margin-bottom: 1rem; }
}
@media (max-width: 680px) {
  .mast-inner { flex-direction: column; align-items: flex-start; }
  .mast nav a { margin-left: 0; margin-right: 0.9rem; }
  .sources { grid-template-columns: 1fr; }
  .go.quiet { margin-left: 0; margin-top: 0.45rem; }
  .hero { padding-top: 2.2rem; }
  .chapter-figure .fig, .full-figure .fig { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .chapter-figure .fig svg, .full-figure .fig svg { min-width: 600px; }
  .chapter-figure .sticky, .full-figure { padding: 0.7rem 0.6rem 0.6rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .step { transition: none; }
}

/* ================================================================ Kausalität additions */
.lang-switch { font-family: var(--sans); font-size: 0.82rem; margin-left: 1.3rem; }
.lang-switch a { margin-left: 0.35rem !important; border: 1px solid rgba(244, 239, 228, 0.45); padding: 0.05rem 0.4rem; border-radius: 2px; }
.lang-switch a[aria-current="true"] { background: var(--gold); color: var(--oxford-deep) !important; border-color: var(--gold); }

/* formulas and factor letters inside prose */
.f { font-family: Georgia, "Source Serif 4", serif; font-style: italic; white-space: nowrap; color: var(--oxford); }
.fm { display: block; margin: 0.4rem 0 0.9rem; padding: 0.55rem 0.8rem; background: var(--paper); border-left: 3px solid var(--oxford); font-family: Georgia, serif; font-style: italic; font-size: 1.12rem; color: var(--oxford); }
.fm .rd { display: block; font-family: var(--sans); font-style: normal; font-size: 0.86rem; color: var(--muted); margin-top: 0.25rem; }
.key { font-family: var(--sans); font-size: 0.9rem; background: #f1ece0; border: 1px solid var(--line); padding: 0.55rem 0.75rem; margin: 0.3rem 0 1rem; }
.key p { margin: 0; }
.key b { color: var(--oxford); font-family: Georgia, serif; font-style: italic; font-weight: 600; }
blockquote { margin: 0.5rem 0 1rem; padding: 0.2rem 0 0.2rem 1rem; border-left: 3px solid var(--gold); color: #3b3a36; font-style: italic; }
blockquote p { margin: 0 0 0.4rem; }
.cite { font-family: var(--sans); font-size: 0.8rem; color: var(--muted); }

/* stage */
.stage-lbl { font-family: var(--sans); font-size: 12px; fill: var(--muted); }
.stage-cap { font-family: var(--sans); font-size: 12px; fill: var(--muted); }
.stage-note { min-height: 1.2em; font-size: 0.86rem !important; color: var(--oxford) !important; }
.stage-legend { font-family: var(--sans); font-size: 0.74rem; color: var(--muted); margin: 0.35rem 0 0; display: flex; flex-wrap: wrap; gap: 0.25rem 0.5rem; align-items: center; }
.stage-legend .lg-arc { display: inline-block; width: 16px; height: 8px; border-top: 2.5px solid #b3902a; border-radius: 50% 50% 0 0; }
.stage-legend .lg-neg { display: inline-block; border: 1.3px solid #334e68; border-radius: 2px; padding: 0 3px; font-family: Georgia, serif; font-weight: 700; color: #334e68; line-height: 1.1; }
.stage-legend .lg-h, .stage-legend .lg-f { display: inline-block; width: 0; height: 0; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 10px solid #334e68; position: relative; }
.stage-legend .lg-h::after { content: ""; position: absolute; left: -8.6px; top: -2.6px; border-top: 2.6px solid transparent; border-bottom: 2.6px solid transparent; border-left: 5.4px solid #fff; }
.chapter-figure .fig { min-height: 0; }
.step-bar { display: flex; justify-content: space-between; align-items: center; margin-top: 0.55rem; font-family: var(--sans); font-size: 0.78rem; color: var(--muted); }
.step-nav button { font-family: var(--sans); font-size: 0.8rem; background: var(--paper); border: 1px solid var(--line-strong); color: var(--oxford); padding: 0.15rem 0.6rem; border-radius: 2px; cursor: pointer; margin-left: 0.3rem; }
.step-nav button:hover { border-color: var(--oxford); }

/* coincidence table */
.ctable-wrap { margin: 0.7rem 0 0.2rem; overflow: hidden; overflow-x: auto; max-height: 34rem; transition: opacity 450ms ease, max-height 450ms ease, margin 450ms ease; }
.ctable-wrap.collapsed { opacity: 0; max-height: 0; margin: 0; }
.ctable { border-collapse: collapse; margin: 0 auto; font-family: var(--sans); font-size: 0.86rem; font-variant-numeric: tabular-nums; }
.ctable th, .ctable td { padding: 0.18rem 0.62rem; text-align: center; border-bottom: 1px solid var(--line); transition: background-color 400ms ease, opacity 400ms ease, color 400ms ease; }
.ctable th { font-family: Georgia, serif; font-style: italic; font-weight: 600; color: var(--oxford); border-bottom: 1.5px solid var(--oxford); }
.ctable th:first-child, .ctable td.rn { font-family: var(--sans); font-style: normal; color: var(--muted); font-size: 0.76rem; }
.ctable td.zero { color: #9aa7b6; }
.ctable td.one { color: var(--ink); font-weight: 650; }
.ctable .outcome { border-left: 1.5px solid var(--line-strong); }
.ctable .extra { display: none; border-left: 1.5px dashed var(--gold); }
.ctable .extra.shown { display: table-cell; }
.ctable tr.lit td { background: var(--gold-pale); }
.ctable tr.dim td { opacity: 0.3; }
.ctable .hc { background: rgba(0, 33, 71, 0.07); }
.ctable tr.lit .hc { background: #e7d6a8; }
.ctable td.mark { width: 1.6rem; font-weight: 700; }
.ctable td.mark.ok { color: #3f6b3a; }
.ctable td.mark.no { color: #c62828; }
.ctable td.mark.key { color: var(--gold-deep); }

/* timeline */
.tl-year { font-family: var(--sans); font-size: 13px; font-weight: 650; fill: var(--gold-deep); }
.tl-who { font-family: var(--display); font-size: 15px; fill: var(--oxford); }
.tl-what { font-family: var(--sans); font-size: 12px; fill: var(--muted); }

/* case cards on the landing page */
.cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding-bottom: 1rem; }
.case { background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--oxford); padding: 1.1rem 1.15rem 1rem; display: flex; flex-direction: column; text-decoration: none; color: var(--ink); }
.case:hover { border-color: var(--oxford); }
.case .mark { font-family: var(--sans); font-size: 0.74rem; letter-spacing: 0.06em; color: var(--gold-deep); font-weight: 650; margin: 0 0 0.35rem; }
.case h3 { margin: 0 0 0.45rem; font-family: var(--display); font-weight: 560; font-size: 1.35rem; line-height: 1.15; color: var(--oxford); }
.case p { margin: 0 0 0.7rem; font-size: 0.97rem; }
.case .thumb { display: block; width: 100%; height: 150px; margin: 0.2rem 0 0.7rem; background: #fff; border: 1px solid var(--line); }
.case .more { margin-top: auto; font-family: var(--sans); font-size: 0.86rem; font-weight: 650; color: var(--oxford); }
.definition { font-family: var(--display); font-size: clamp(1.3rem, 2.4vw, 1.75rem); line-height: 1.3; color: var(--oxford); max-width: 52rem; margin: 0.4rem 0 0.8rem; }
.definition em { color: var(--gold-deep); }
.vols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; padding-bottom: 1rem; }
.vol { background: var(--paper); border: 1px solid var(--line); padding: 1rem 1.1rem; }
.vol .n { font-family: var(--display); font-size: 2rem; color: var(--gold-deep); line-height: 1; }
.vol h3 { margin: 0.3rem 0 0.35rem; font-family: var(--display); font-weight: 560; font-size: 1.2rem; color: var(--oxford); }
.vol p { margin: 0 0 0.6rem; font-size: 0.95rem; }
.vol .meta { font-family: var(--sans); font-size: 0.82rem; color: var(--muted); }
.next-case { display: flex; justify-content: space-between; gap: 1rem; padding: 1.6rem 0 0.4rem; border-top: 1px solid var(--line); font-family: var(--sans); }
@media (max-width: 1020px) {
  .cases, .vols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .cases, .vols, .terms { grid-template-columns: 1fr; }
  .lang-switch { margin-left: 0; }
  .chapter-figure .fig svg { min-width: 0 !important; }
}

/* phones and narrow tablets: the figure stays pinned at the top while the steps scroll
   beneath it, so the animation is visible while reading */
@media (max-width: 1020px) {
  .chapter[data-scene] .chapter-figure { position: sticky; top: 0; z-index: 12; background: var(--sand); padding: 0.3rem 0 0.4rem; }
  .chapter[data-scene] .chapter-figure .sticky { max-height: 50vh; overflow-y: auto; padding: 0.45rem 0.5rem 0.35rem; }
  .chapter[data-scene] .chapter-figure .fig-title, .chapter[data-scene] .stage-legend { display: none; }
  .chapter[data-scene] .step { opacity: 0.55; }
  .chapter[data-scene] .step.active { opacity: 1; }
  .chapter[data-scene] .step:last-child { margin-bottom: 40vh; }
  .ctable { font-size: 0.78rem; }
  .ctable th, .ctable td { padding: 0.1rem 0.45rem; }
}

/* ================================================================ landing: definition, groups, volumes */
[id] { scroll-margin-top: 4.2rem; }
.terms { list-style: none; margin: 0.4rem 0 1rem; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; counter-reset: t; }
.terms li { position: relative; background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--oxford); padding: 1rem 1.1rem 0.95rem; }
.terms li:not(:last-child)::after { content: "→"; position: absolute; right: -0.95rem; top: 1.05rem; z-index: 2; font-family: var(--sans); font-size: 1rem; color: var(--gold-deep); background: var(--sand); width: 0.9rem; text-align: center; }
.terms h3 { margin: 0.1rem 0 0.4rem; font-family: var(--display); font-weight: 560; font-size: 1.3rem; color: var(--oxford); line-height: 1.15; }
.terms p { margin: 0 0 0.55rem; font-size: 0.97rem; }
.terms .t-ex { font-family: var(--sans); font-size: 0.86rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 0.5rem; margin: 0.6rem 0 0; }
.terms .t-ex b { color: var(--gold-deep); font-weight: 650; margin-right: 0.3rem; }
.t-num { font-family: var(--sans); font-weight: 650; font-size: 0.78rem; color: var(--gold-deep); letter-spacing: 0.05em; }
.terms .t-num { position: absolute; right: 0.9rem; top: 0.85rem; }
.def-final { position: relative; background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--gold); padding: 1.3rem 1.5rem 1.15rem; }
.def-final .t-num { position: absolute; right: 1.1rem; top: 1rem; }
.def-final .definition { margin: 0 0 0.9rem; max-width: 56rem; }
.def-final .definition p { margin: 0; }
.def-note { margin: 0 0 0.7rem; max-width: 52rem; font-size: 0.96rem; color: var(--muted); border-left: 3px solid var(--gold); padding-left: 0.8rem; }
.def-pointer { display: inline-block; font-family: var(--sans); font-weight: 650; font-size: 0.9rem; }

.group { margin: 1.6rem 0 0; }
.group-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.15rem 1rem; margin: 0 0 0.75rem; padding-bottom: 0.45rem; border-bottom: 1px solid var(--line-strong); }
.group-head h3 { margin: 0; font-family: var(--display); font-weight: 560; font-size: 1.3rem; color: var(--oxford); }
.group-head p { margin: 0; font-family: var(--sans); font-size: 0.9rem; color: var(--muted); }
.group .cases { padding-bottom: 0.4rem; }
.case { transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease; }
.case:hover { box-shadow: 0 10px 26px rgba(0, 21, 46, 0.1); transform: translateY(-2px); }
.case.lead-card { border-top-color: var(--gold); }
.case .thumb-fig { min-height: 0; margin: 0.2rem 0 0.7rem; }
.case .thumb-fig svg { background: #fff; border: 1px solid var(--line); }

/* the card you came from is marked when a backlink lands on it */
.case:target, .vol:target {
  border-color: var(--gold-deep);
  box-shadow: 0 0 0 3px rgba(196, 161, 90, 0.45), 0 12px 28px rgba(0, 21, 46, 0.12);
  animation: land 1.6s ease-out 1;
}
@keyframes land { from { box-shadow: 0 0 0 10px rgba(196, 161, 90, 0.75); } }

.vol { display: flex; flex-direction: column; }
.vol .meta { margin-bottom: 0.9rem; }
.vol-links { margin-top: auto; display: flex; flex-wrap: wrap; gap: 0.45rem; }
.vol-links .go { margin-top: 0; }
.vol-links .go.quiet { margin-left: 0; }
.sources { grid-template-columns: 1.2fr 1fr; }

/* story pages: the header stays reachable on wide screens */
@media (min-width: 1021px) {
  .mast { position: sticky; top: 0; z-index: 50; }
  .chapter-figure .sticky { top: 4.4rem; }
}
.home-back a { transition: color 140ms ease; }

@media (max-width: 1020px) {
  .terms { grid-template-columns: 1fr; }
  .terms li:not(:last-child)::after { content: "↓"; right: auto; left: 1.1rem; top: auto; bottom: -1rem; }
  .terms li { margin-bottom: 0.3rem; }
  .sources { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .case, .case:hover { transition: none; transform: none; }
  .case:target, .vol:target { animation: none; }
}
