/* ==========================================================================
   animations.css — Keyframes + scroll-reveal utility classes
   Usage: <div data-reveal="fade-up" data-reveal-delay="200">
   reveal.js adds `.is-revealed` once the element is 15% visible.
   ========================================================================== */

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes menuFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ---- Reveal: initial (hidden) state ---- */
/* Gated on .js so content stays visible if JavaScript fails to load. */
.js [data-reveal] {
  opacity: 0;
  transition:
    opacity var(--duration-slow) var(--ease-elegant),
    transform var(--duration-slow) var(--ease-elegant);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.js [data-reveal="fade-up"]    { transform: translateY(32px); }
.js [data-reveal="fade-left"]  { transform: translateX(-40px); }
.js [data-reveal="fade-right"] { transform: translateX(40px); }
.js [data-reveal="zoom-in"]    { transform: scale(0.92); }
/* fade-in: opacity only */

/* ---- Reveal: final state ---- */
.js [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
  will-change: auto;
}

/* ---- Reduced motion: show everything immediately, no movement ---- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js [data-reveal],
  .js [data-reveal].is-revealed {
    opacity: 1;
    transform: none;
    transition: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
