[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 800ms var(--ease), transform 800ms var(--ease);
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}
[data-reveal="stagger"] { opacity: 1; transform: none; transition: none; }
[data-reveal="stagger"]:not(.is-in) > * { opacity: 0; }
[data-reveal="stagger"].is-in > * { animation: revealUp 760ms var(--ease) backwards; }
[data-reveal="stagger"].is-in > :nth-child(2) { animation-delay: 90ms; }
[data-reveal="stagger"].is-in > :nth-child(3) { animation-delay: 180ms; }
[data-reveal="stagger"].is-in > :nth-child(4) { animation-delay: 270ms; }
[data-reveal="stagger"].is-in > :nth-child(5) { animation-delay: 360ms; }
[data-reveal="stagger"].is-in > :nth-child(n+6) { animation-delay: 450ms; }
@keyframes revealUp {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}
[data-reveal="left"] { transform: translateX(-24px); }
[data-reveal="right"] { transform: translateX(24px); }
[data-reveal="scale"] { transform: scale(0.97); }

.img-reveal { overflow: hidden; }
.img-reveal img {
  transform: scale(1.08);
  transition: transform 1.2s var(--ease);
}
.img-reveal.is-in img { transform: none; }

body.is-touch .whatsapp-float:active,
.btn:active { transform: scale(0.97); }

.page-transition.is-on {
  animation: clipIn 420ms var(--ease);
}
@keyframes clipIn {
  from { transform: scaleY(0); }
  50% { transform: scaleY(1); }
  to { transform: scaleY(0); transform-origin: bottom; }
}

.search-overlay.is-open .search-cat,
.search-overlay.is-open .search-chips button,
.search-overlay.is-open .search-results li {
  animation: fadeUp 480ms var(--ease) both;
}
.search-overlay.is-open .search-chips button:nth-child(2) { animation-delay: 40ms; }
.search-overlay.is-open .search-chips button:nth-child(3) { animation-delay: 80ms; }
.search-overlay.is-open .search-chips button:nth-child(4) { animation-delay: 120ms; }
.search-overlay.is-open .search-cat:nth-child(2) { animation-delay: 60ms; }
.search-overlay.is-open .search-cat:nth-child(3) { animation-delay: 120ms; }
.search-overlay.is-open .search-cat:nth-child(4) { animation-delay: 180ms; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }
  .loader { display: none !important; }
  .page-transition { display: none !important; }
  .hero-media img, .signature img { transform: none !important; }
}
