/* Side story: the scene is sticky on the right (60%), the five chapters scroll natively on the left.
   The chapter that crosses the middle of the viewport picks the scene; the scene glides there on its own clock. */
.side #stage{position:relative;height:auto;display:grid;grid-template-columns:minmax(0,4fr) minmax(0,6fr);max-width:none}
.side .scene-col{grid-column:2;grid-row:1;position:relative;border-left:1px solid var(--line)}
.side .sticky{position:sticky;top:0;height:100vh;height:100svh;overflow:hidden}
.side .text-col{grid-column:1;grid-row:1;padding:15vh clamp(24px,4vw,64px) 15vh clamp(24px,6vw,96px)}
.side .chapter{position:static;width:auto;margin:0;left:auto;top:auto;opacity:.32;visibility:visible;transform:none;min-height:70vh;min-height:70svh;display:flex;flex-direction:column;justify-content:center;max-width:440px;transition:opacity .25s ease}
.side .chapter.on{opacity:1}
.side .chapter h2{font-size:clamp(30px,3vw,48px)}
.side .chapter .acts{justify-content:flex-start;margin-top:28px}
.side .ch-tag{position:absolute;left:24px;bottom:24px;padding:8px 12px;border-radius:999px;background:var(--chip);border:1px solid var(--line);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);font:400 12px/1 var(--mono);letter-spacing:.02em;color:var(--mute);font-variant-numeric:tabular-nums}
.side .ch-tag b{font-weight:500;color:var(--text)}
.side .ch-tag span{margin-left:8px;color:var(--dim)}

/* Phones: the scene sticks on top, the text scrolls beneath it. */
@media (max-width:820px){
  .side #stage{grid-template-columns:1fr}
  .side .scene-col{grid-column:1;grid-row:1;position:sticky;top:64px;height:55svh;z-index:2;background:var(--bg);border-left:0;border-bottom:1px solid var(--line);box-shadow:0 -64px 0 var(--bg)} /* sits under the fixed nav; the shadow fills the strip behind the nav so text never shows through it */
  .side .sticky{position:relative;height:100%}
  .side .text-col{grid-column:1;grid-row:2;padding:8px 20px 30svh}
  .side .chapter{min-height:48svh;max-width:none;justify-content:flex-start;padding-top:24px}
  .side .chapter h2{font-size:28px;margin-bottom:12px}
  .side .chapter p{font-size:15.5px}
  .side .chapter p.eb{margin-bottom:12px;font-size:12px} /* the eyebrow stays a 12px mono label; the body size rule above must not reach it */
  .side .ch-tag{left:12px;bottom:12px;padding:8px 12px}
}

/* Stills: no WebGL, a failed load, or ?stills. */
.side #stage.static{display:block;padding:96px var(--pad) 40px;max-width:1360px;margin:0 auto}
.side #stage.static .scene-col{display:none}
.side #stage.static .text-col{padding:0;display:grid;gap:clamp(40px,6vw,80px)}
.side #stage.static .chapter{opacity:1;min-height:0;max-width:none;display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);column-gap:clamp(24px,4vw,56px);align-items:center}
.side #stage.static .chapter > *{grid-column:2}
.side #stage.static .chapter .still{display:block;grid-column:1;grid-row:1 / span 5;width:100%;height:auto;border-radius:18px;border:1px solid var(--line);background:#eae9e4}
@media (max-width:820px){
  .side #stage.static .chapter{grid-template-columns:1fr;padding-top:0}
  .side #stage.static .chapter > *,.side #stage.static .chapter .still{grid-column:1;grid-row:auto}
  .side #stage.static .chapter .still{margin-bottom:20px}
}
@media (prefers-reduced-motion:reduce){.side .chapter{transition:none}}
