/* Static documents and reduced-motion browsing keep the full route visible. */
@media screen and (prefers-reduced-motion: no-preference) {
  [data-meet-motion] .hero-photo {
    overflow: clip;
  }

  [data-meet-motion] .hero-photo > img,
  [data-meet-motion] .hero-photo > picture > img {
    scale: 1.075;
    translate: 0 var(--meet-photo-shift, 0%);
    transform-origin: center;
  }

  [data-meet-motion] .wheel-mark {
    rotate: var(--meet-wheel-turn, 0deg);
    transform-box: fill-box;
    transform-origin: center;
  }

  [data-meet-motion] [data-ride-path] {
    stroke-dasharray: 1 1;
    stroke-dashoffset: var(--meet-route-remaining, 0);
  }

  [data-meet-motion] [data-ride-step] :where(h3, [data-ride-marker]) {
    transition: translate 220ms ease-out;
  }

  [data-meet-motion] [data-ride-step].is-current :where(h3, [data-ride-marker]) {
    translate: 0.24rem 0;
  }
}

@media screen and (min-width: 54rem) and (min-height: 36rem) and (prefers-reduced-motion: no-preference) {
  [data-meet-motion] [data-ride-visual] {
    position: sticky;
    top: var(--ride-sticky-top, clamp(5rem, 12vh, 8rem));
    align-self: start;
  }
}
