/* ==========================================================================
   Entrance animations — reusable utilities, not tied to any one component.
   ========================================================================== */

@keyframes fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(var(--fade-up-distance, 16px)); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fade-in-up-blur {
  from {
    opacity: 0;
    transform: translateY(var(--fade-up-distance, 16px));
    filter: blur(var(--fade-blur-amount, 24px));
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.fade-in {
  animation: fade-in 0.6s var(--ease-out) both;
}

.fade-in-up {
  animation: fade-in-up 0.9s var(--ease-out) both;
}

@media (prefers-reduced-motion: reduce) {
  .fade-in,
  .fade-in-up {
    animation: none;
  }
}

/* Scroll-triggered reveal — starts hidden, animates in once
   js/scroll-reveal.js adds .is-visible on intersection. Use this (not
   .fade-in-up) for below-the-fold content — a page-load animation would
   already be finished by the time the user scrolls to it. */
.reveal {
  opacity: 0;
  transform: translateY(var(--fade-up-distance, 40px));
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}

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

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
