/* TransRoyal public site — motion system (Phase 3B / 3C.1)
   Only scroll-story motion infrastructure lives here: utility classes
   toggled by assets/js/scroll-story.js, plus safety defaults. This
   file does NOT duplicate design tokens, resets, typography, navbar,
   footer, buttons, or generic section/card utilities — those remain
   in public-tokens.css / public-base.css / public-components.css.

   It also does NOT redefine the positioning of any existing hero
   layer (.hba-sky, .hba-grid, .hba-road, .hba-packages, .hba-overlay)
   — those rules already exist inline in index.html and are left
   untouched by this Phase 3C.1 slice. */

/* Applied by scroll-story.js to any layer it is actively animating.
   A perf hint, not a positioning rule — the element's own existing
   CSS (inline in the page) already establishes its layout. */
.scroll-story-parallax,
.scroll-story-crossfade {
  will-change: transform, opacity;
}

/* Safety default: if scroll-story.js never runs (no GSAP, reduced
   motion, mobile-disabled, or JS failure), any element it *would*
   have touched must render exactly as its own default CSS describes
   it — this rule intentionally does nothing beyond documenting that
   contract. No transform/opacity value is set here, so there is
   nothing to "undo": elements simply keep their existing appearance. */

@media (prefers-reduced-motion: reduce) {
  .scroll-story-parallax,
  .scroll-story-crossfade {
    will-change: auto;
  }
}
