/* Native touch scrolling, quiet document entrances, and a stable mobile scene. */
@media (max-width: 800px) {
  html { scroll-behavior: smooth; }
  .site-header::after {
    content: "";
    position: absolute;
    inset: auto 0 -1px;
    height: 2px;
    background: var(--teal);
    opacity: .55;
    transform: scaleX(var(--reading-progress, 0));
    transform-origin: left;
    pointer-events: none;
  }
  /* Each chapter still has time to read, with fewer empty swipes between scenes. */
  body:not(.static-motion) .story { height: 900svh; min-height: 5400px; }
  body:not(.static-motion) .journey {
    --journey-base-height: max(430svh, 2450px);
    --feature-height: max(280svh, 1700px);
  }
  .chapter-effects-page .evidence-panel.panel-opening {
    animation: mobile-panel-enter 360ms cubic-bezier(.22, .61, .36, 1);
  }
  .tour-progress button { min-height: 44px; }
  .guide .evidence-trigger, .visual-details > summary { min-height: 44px; }
  @keyframes mobile-panel-enter {
    from { opacity: .3; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
.motion-viewport-measure {
  position: absolute;
  top: 0;
  width: 1px;
  height: 100svh;
  visibility: hidden;
  pointer-events: none;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .chapter-effects-page .evidence-panel.panel-opening { animation: none; }
}
body.motion-paused .evidence-panel.panel-opening { animation: none; }
