/* ============================================
   ORVINIEL — Animations
   Transitions, Keyframes, Reveal
   ============================================ */

/* ---- Reveal on scroll ---- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 600ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 600ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--i, 0) * 90ms);
}

.reveal.in-view {
  opacity: 1;
  transform: none;
}

/* ---- Hero word cycling ---- */
.hero-cycle-word {
  display: inline-block;
  transition: opacity 380ms ease;
}

.hero-cycle-word.is-hidden {
  opacity: 0;
}

/* ---- Stat counter ---- */
.stat-counter {
  transition: none;
}

/* ---- 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;
    transform: none;
  }
}
