/* ============================================================
   ANIMATIONS.CSS
   Keyframes · Scroll-reveal utility classes
   ============================================================ */

/* ── Keyframes ───────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: none; }
}

@keyframes blink {
  50% { opacity: 0; }
}

@keyframes scrollHint {
  0%, 100% { height: 36px; opacity: 1; }
  50%       { height: 16px; opacity: .4; }
}

@keyframes pulseGreen {
  0%, 100% { box-shadow: 0 0 0 0   rgba(34, 197, 94, 0.45); }
  60%       { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

/* ── Scroll-reveal ───────────────────────────────────────── */
.rev {
  opacity: 0;
  transform: translateY(28px);
  transition:
    opacity   .75s var(--ease-out-expo),
    transform .75s var(--ease-out-expo);
}

.rev.in {
  opacity: 1;
  transform: none;
}

/* Stagger delay helpers */
.d1 { transition-delay: .08s; }
.d2 { transition-delay: .17s; }
.d3 { transition-delay: .26s; }
.d4 { transition-delay: .35s; }

/* ── Reduced motion ──────────────────────────────────────────
   Respects system preference: Settings → Accessibility → Reduce 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;
  }

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