/* The original right-hand artwork slot, with paper-composited video frames. */
.research-film-track, .research-film-scene { display: contents; }
.research-stage[data-animation="scroll-film"] { left: 46%; }
.research-stage[data-animation="scroll-film"]::after { display: none; }
.research-stage[data-animation="scroll-film"] .research-viewport { inset: 0 0 65px; }
.research-stage[data-animation="scroll-film"] #research-canvas,
.research-stage[data-animation="scroll-film"] #research-fallback {
  width: 100%; height: 100%; object-fit: contain; object-position: center;
  transition: none;
}
.research-stage[data-animation="scroll-film"].has-frame #research-canvas { opacity: 1; }
.research-stage[data-animation="scroll-film"].has-frame #research-fallback { opacity: 0; }
.research-stage[data-animation="scroll-film"] .research-stage-ui { left: 10%; right: 6%; bottom: 22px; }
.research-stage[data-animation="scroll-film"] .research-stage-toolbar { justify-content: space-between; gap: 12px; }
.research-stage[data-animation="scroll-film"] .research-stage-caption { max-width: none; }
.scroll-film-playback { display: flex; align-items: center; gap: 7px; pointer-events: auto; color: #8a818d; font-size: 10px; }
.scroll-film-playback [hidden] { display: none !important; }
#scroll-film-time { font-variant-numeric: tabular-nums; white-space: nowrap; }
#scroll-film-skip { border: 0; background: transparent; color: #75677e; font: inherit; text-decoration: underline; text-underline-offset: 3px; padding: 8px 3px; cursor: pointer; }
#scroll-film-skip:focus-visible { outline: 2px solid #8a66b1; outline-offset: 3px; }
#scroll-film-toggle { min-height: 36px; padding: 6px 10px; border: 1px solid #ded7e4; border-radius: 5px; background: #fdfcf9; color: #75677e; font: inherit; cursor: pointer; white-space: nowrap; }
#scroll-film-toggle:hover { background: #f0ebf5; }
#scroll-film-toggle:focus-visible { outline: 2px solid #8a66b1; outline-offset: 4px; }
.scroll-film-progress { margin-top: 10px; height: 1px; background: #e8e3e9; }
.scroll-film-progress span { display: block; height: 100%; background: #a999b7; transform-origin: left; transform: scaleX(var(--film-progress, 0)); }
@media (min-width: 901px) and (max-width: 1200px) {
  .research-stage[data-animation="scroll-film"] { left: 51%; }
  .research-stage[data-animation="scroll-film"] .research-stage-ui { left: 4%; right: 0; }
  .research-stage[data-animation="scroll-film"] .research-stage-toolbar { flex-wrap: wrap; gap: 3px 10px; }
}
@media (max-width: 900px) {
  .research-film-track, .research-film-scene { display: flow-root; }
  .research-film-track.is-native-scrub {
    --film-travel-height: max(1000px, 170svh);
    position: relative;
    /* Sticky is constrained by the parent's content box. Padding alone leaves
       a full-height scene with no travel inside that containing block. */
    height: calc(var(--film-scene-height, 0px) + var(--film-travel-height));
    padding: 0;
  }
  /* Pin the complete page scene: copy, artwork, project cards and content below
     share one coordinate system throughout the film, not separate sticky areas. */
  .research-film-track.is-native-scrub .research-film-scene {
    position: sticky;
    top: var(--film-scene-top, 58px);
  }
  .research-intro[data-animation="scroll-film"] { display: block; min-height: 0; }
  .research-intro[data-animation="scroll-film"] .research-copy { padding-bottom: 8px; }
  .research-stage[data-animation="scroll-film"] { position: relative; left: auto; height: clamp(300px, 90vw, 380px); margin-bottom: 14px; }
  .research-stage[data-animation="scroll-film"] .research-viewport { inset: 0 0 58px; }
  .research-stage[data-animation="scroll-film"] .research-stage-ui { left: 0; right: 0; bottom: 6px; }
  .research-stage[data-animation="scroll-film"] .research-stage-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
  .research-stage[data-animation="scroll-film"] .research-stage-caption { font-size: 9px; }
  #scroll-film-skip, #scroll-film-toggle { min-height: 44px; min-width: 44px; }
}
