/* ==========================================================================
   Scroll-triggered fade-in animation
   Used only by index-fadein.html. Loaded after style.css.

   Progressive enhancement: the ".js" class is only ever present on <html>
   when JavaScript ran successfully (see inline script in <head>), so the
   ".fade-in" opacity/transform rules below only ever apply when the
   accompanying js/fade-in.js can actually reveal the elements again.
   Without JavaScript, elements stay fully visible at all times.
   ========================================================================== */

.js .fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .fade-in.is-visible {
  opacity: 1;
  transform: none;
}

/* Respect reduced-motion preference: show content immediately, no motion */
@media (prefers-reduced-motion: reduce) {
  .js .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
