/* ==========================================================================
   Azyntrex — motion. Subtle, purposeful, and disabled for reduced motion.
   ========================================================================== */

/* Reveal on scroll (only when JS is running) */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .9s var(--ease-out), transform 1s var(--ease-out);
  transition-delay: var(--reveal-delay, 0s);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

/* Hero headline: lines slide up */
.js .split-lines .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.js .split-lines .line > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--i, 0) * .09s + .15s); }
.js .split-lines.is-visible .line > span { transform: none; }

.js .hero__fade { opacity: 0; transform: translateY(16px); transition: opacity 1s var(--ease-out) .6s, transform 1s var(--ease-out) .6s; }
.js .hero.is-ready .hero__fade { opacity: 1; transform: none; }
.js .hero__azy { opacity: 0; transform: translateY(40px) scale(.98); transition: opacity 1.2s var(--ease-out) .35s, transform 1.4s var(--ease-out) .35s; }
.js .hero.is-ready .hero__azy { opacity: 1; transform: none; }

/* Idle "breathing" for character media */
.azy-idle { animation: azyIdle 5s ease-in-out infinite; }

@keyframes azyIdle {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@keyframes scrollCue {
  0% { top: -100%; }
  60%, 100% { top: 100%; }
}
@keyframes dotPulse {
  0%, 100% { opacity: .25; transform: scale(.85); }
  50% { opacity: 1; transform: scale(1); }
}
@keyframes loaderBar {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(260%); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* Image hover zoom helper */
.zoom { overflow: hidden; }
.zoom img { transition: transform 1s var(--ease-out); }
.zoom:hover img { transform: scale(1.04); }

/* Respect user preference */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    transition-delay: 0s !important;
  }
  .js [data-reveal], .js .hero__fade, .js .hero__azy, .js .split-lines .line > span { opacity: 1 !important; transform: none !important; }
  .marquee__track { animation: none !important; flex-wrap: wrap; width: auto; justify-content: center; }
  .marquee__track [aria-hidden="true"] { display: none; }
  .statement .w { opacity: 1 !important; }
}
