/* Pinned stage layout (scroll-stage-shift-line, survey-table edition). */
main { display: grid; grid-template-columns: minmax(0, 44rem) minmax(0, 1fr); gap: 1.5rem; max-width: 110rem; margin: 0 auto; align-items: start; }
.story { max-width: none; margin: 0; }
.stage { position: sticky; top: 0; height: 100lvh; display: flex; flex-direction: column; padding: 1rem; }
.stage svg { flex: 1 1 auto; width: 100%; min-height: 0; }
.stage .readout { font-family: Atkinson, system-ui, sans-serif; font-size: 1rem; color: var(--ink-soft); margin: .6rem 0 0; min-height: 3em; }
.st-line { stroke: var(--ink); stroke-width: 1.1; opacity: .8; }
.st-loop { fill: none; stroke: var(--brass-strong); stroke-width: 3.5; }
.st-mid { fill: var(--mulberry); }
.st-brass { fill: none; stroke: var(--brass-strong); stroke-width: 3.5; }
.st-axis { stroke: var(--muted); stroke-width: 1; }
.st-dots { fill: var(--ink); opacity: .45; }
.st-ref { fill: none; stroke: var(--mulberry); stroke-width: 2.5; }
.st-you { fill: var(--brass-strong); stroke: var(--paper); stroke-width: 2; }
.st-label { font-family: "Plex Mono", monospace; font-size: 15px; fill: var(--ink-soft); }
@media (max-width: 60rem) {
  main { display: block; max-width: none; }
  .story { max-width: 44rem; margin: 0 auto; }
  .stage { top: 0; height: 56svh; background: var(--paper); border-bottom: 1px solid var(--line); z-index: 5; }
  .stage .readout { min-height: 2.4em; font-size: .92rem; }
  .st-label { font-size: 17px; }
}
@media (max-height: 740px) and (min-width: 60rem) {
  .stage { height: 100lvh; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
