/* ==========================================================================
   Animations — Scroll-reveal, transitions, hover effects
   ========================================================================== */

/* ---------- Scroll Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal--visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-stagger--visible > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger--visible > *:nth-child(2) { transition-delay: 120ms; }
.reveal-stagger--visible > *:nth-child(3) { transition-delay: 240ms; }
.reveal-stagger--visible > *:nth-child(4) { transition-delay: 360ms; }
.reveal-stagger--visible > *:nth-child(5) { transition-delay: 480ms; }
.reveal-stagger--visible > *:nth-child(6) { transition-delay: 600ms; }

.reveal-stagger--visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Hero entrance ---------- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero__tagline {
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 200ms;
  opacity: 0;
}

.hero__title {
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 400ms;
  opacity: 0;
}

.hero__subtitle {
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 600ms;
  opacity: 0;
}

.hero__actions {
  animation: fadeInUp 0.8s ease forwards;
  animation-delay: 800ms;
  opacity: 0;
}

/* ---------- Pulse glow on accent elements ---------- */
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 20px var(--accent-glow); }
  50% { box-shadow: 0 0 40px var(--accent-glow); }
}

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

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .reveal-stagger > * {
    opacity: 1;
    transform: none;
  }
}
