/* ---- Scroll Reveal ---- */
[data-animate] {
  opacity: 0;
  transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

[data-animate="fade-up"] { transform: translateY(30px); }
[data-animate="fade-in"] { transform: none; }
[data-animate="scale"] { transform: scale(0.95); }
[data-animate="slide-left"] { transform: translateX(-30px); }
[data-animate="slide-right"] { transform: translateX(30px); }

[data-animate].is-visible {
  opacity: 1;
  transform: none;
}

/* Stagger delays */
[data-delay="100"] { transition-delay: 0.1s; }
[data-delay="200"] { transition-delay: 0.2s; }
[data-delay="300"] { transition-delay: 0.3s; }
[data-delay="400"] { transition-delay: 0.4s; }

/* ---- Steam wisps ---- */
.steam-wisp {
  fill: none;
  stroke: var(--clr-brown-light);
  stroke-width: 2;
  stroke-linecap: round;
  opacity: 0;
}

#steam-group.visible .steam-wisp {
  animation: steam-rise 3s ease-in-out infinite;
}

.steam-wisp:nth-child(2) { animation-delay: -1s; }
.steam-wisp:nth-child(3) { animation-delay: -2s; }

@keyframes steam-rise {
  0% { transform: translateY(0) scaleX(1); opacity: 0; }
  20% { opacity: 0.5; }
  100% { transform: translateY(-50px) scaleX(1.5); opacity: 0; }
}

/* ---- Reduced 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;
  }

  [data-animate] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
