/* Compact scenes keep the original reading-order layout while native scroll
   continues to animate their artwork. Desktop geometry remains unchanged. */
@media (max-height: 620px) and (prefers-reduced-motion: no-preference) {
  html:not(.motion-paused) .foundation-track.local-motion .foundation-stage canvas {
    display: block;
  }
  html:not(.motion-paused) .foundation-track.local-motion .foundation-stage.local-art-ready .foundation-architecture {
    opacity: 0;
  }
  html:not(.motion-paused) .foundation-track.local-motion .foundation-composition {
    transform: translate3d(0, var(--scene-lift, 0px), 0) rotateX(var(--scene-turn, 0deg));
  }
  html:not(.motion-paused) .foundation-track.local-motion .credential {
    transform: translate3d(0, calc((1 - var(--credential-enter, 1)) * 10px), 0);
    opacity: calc(.92 + var(--credential-enter, 1) * .08);
  }
}

/* The reading-flow heading reveals on entry, before Doc's game timeline. */
@media (prefers-reduced-motion: no-preference) {
  @media (max-width: 900px), (max-height: 759px) {
    html:not(.motion-paused) .doc-cinematic-track:not(.doc-cinematic-enabled) .doc-reveal-mask {
      padding-bottom: .13em;
      margin-bottom: -.13em;
      overflow: clip;
    }
    html:not(.motion-paused) .doc-cinematic-track:not(.doc-cinematic-enabled) .doc-reveal-line {
      transform: translate3d(0, calc((1 - var(--doc-compact-line-reveal, 1)) * 105%), 0);
    }
  }
}
