/* ==========================================================================
   Animation states (motion system: tokens.css + assets/js/motion.js)
   - Only the hero is pre-hidden (to avoid a flash before the GSAP intro), and
     only when motion is allowed. `motion-ready` is added by JS once GSAP owns
     the start state, or by the inline safety timer if GSAP never loads.
   - No continuous decorative motion (no pulsing dots, no looping glows).
   - Reduced motion = OS setting OR `html.force-reduce` (QA: ?motion=reduce).
   ========================================================================== */

.motion:not(.motion-ready) [data-hero-line] { transform: translateY(110%); }
.motion:not(.motion-ready) [data-hero-item],
.motion:not(.motion-ready) [data-hero-chip],
.motion:not(.motion-ready) [data-console-stage],
.motion:not(.motion-ready) .nav__capsule { opacity: 0; }

/* Word-masked heading reveal (spans injected by JS) */
.split-w { display: inline-block; overflow: clip; overflow-clip-margin: 0.15em; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.split-w > span { display: inline-block; will-change: transform; }

/* Reduced motion — OS preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .console-stage { transform: none !important; }
}

/* Reduced motion — forced for QA (?motion=reduce) */
.force-reduce *, .force-reduce *::before, .force-reduce *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
  scroll-behavior: auto !important;
}
.force-reduce .console-stage { transform: none !important; }
