/* ==========================================================
   ANIMATIONS
   Keyframe definitions used by components elsewhere (see
   arrival.css), plus the site-wide reduced-motion policy.
   ========================================================== */

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

@keyframes reveal-content{
  to{
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================
   SCROLL REVEAL
   Shared "gentle entry" utility — each room breathes in as it's
   reached, not all at once on load. Add class="reveal" to any
   section; nav.js observes it and adds is-visible once it scrolls
   into view (one-time, doesn't re-hide on scroll back up).
   ========================================================== */
.reveal{
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--dur-reveal) var(--ease-slow),
              transform var(--dur-reveal) var(--ease-slow);
}

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

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

@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;
  }
}
