/* ============================================================
   ANIMATIONS
   Keyframes + scroll-reveal helpers.
   ============================================================ */

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

/* Subtle pulse for accent glows */
@keyframes pulse-glow {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 1; }
}

.pulse-glow {
  animation: pulse-glow 3s ease-in-out infinite;
}

/* ----- Scroll reveal (replaces framer-motion whileInView) ----- */
/* Default state: invisible, slightly down */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  will-change: opacity, transform;
}
.reveal.from-left  { transform: translateX(-30px); }
.reveal.from-right { transform: translateX(30px);  }

/* Visible state — added by JS via IntersectionObserver */
.reveal.is-visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* Optional staggered delays — apply via .delay-1 ... .delay-5 */
.delay-1.reveal { transition-delay: 50ms; }
.delay-2.reveal { transition-delay: 150ms; }
.delay-3.reveal { transition-delay: 250ms; }
.delay-4.reveal { transition-delay: 350ms; }
.delay-5.reveal { transition-delay: 450ms; }

/* Hero entry animations (run on load, no observer needed) */
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(40px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-content > * {
  animation: hero-rise 900ms var(--ease-out) both;
}
.hero-content > *:nth-child(1) { animation-delay: 150ms; }
.hero-content > *:nth-child(2) { animation-delay: 0ms; }
.hero-content > *:nth-child(3) { animation-delay: 500ms; }

/* Respect users who prefer 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;
  }
  .marquee-track {
    animation: none !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
