/* =========================================================
   AGYS MEDS — Motion Layer (GSAP + ScrollTrigger + Interactive)
   ========================================================= */

/* Lazy background videos */
video[data-lazy-video] {
  opacity: 0;
  transition: opacity 0.8s ease-in-out;
}
video[data-lazy-video][data-loaded="1"] {
  opacity: 1;
}

/* Split headings word masks */
.w {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  padding-bottom: 0.12em;
  margin-bottom: -0.12em;
}
.w > span {
  display: inline-block;
  will-change: transform, opacity;
}

/* GSAP handles hero reveals dynamically */

/* Marquee track if used */
@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Respect reduced motion */
@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;
  }
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
