/* ==========================================================================
   WebVoken — animations.css
   Everything is gated behind html.js so the site is fully readable without
   JavaScript, and behind prefers-reduced-motion so motion-sensitive
   visitors get a calm, static experience.
   ========================================================================== */

/* scroll reveal */
.js [data-reveal] { opacity: 0; transform: translate3d(0, 28px, 0); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--reveal-delay, 0ms); will-change: opacity, transform; }
.js [data-reveal="left"]  { transform: translate3d(-40px, 0, 0); }
.js [data-reveal="right"] { transform: translate3d(40px, 0, 0); }
.js [data-reveal="scale"] { transform: scale(.94); }
.js [data-reveal="fade"]  { transform: none; }
.js [data-reveal].is-visible { opacity: 1; transform: none; will-change: auto; }

/* image reveal: a clip-path wipe with a slow settle on the photo */
.js .img-reveal { clip-path: inset(0 100% 0 0); transition: clip-path 1.2s var(--ease); transition-delay: var(--reveal-delay, 0ms); }
.js .img-reveal img { transform: scale(1.18); transition: transform 1.6s var(--ease); transition-delay: var(--reveal-delay, 0ms); }
.js .img-reveal.is-visible { clip-path: inset(0 0 0 0); }
.js .img-reveal.is-visible img { transform: none; }
/* images that already have a decorative clip-path keep it by wrapping the reveal on a child */

/* hero entrance */
.js .hero-copy > * { animation: heroIn 1s var(--ease) both; }
.js .hero-copy > *:nth-child(1) { animation-delay: .1s; }
.js .hero-copy > *:nth-child(2) { animation-delay: .22s; }
.js .hero-copy > *:nth-child(3) { animation-delay: .36s; }
.js .hero-copy > *:nth-child(4) { animation-delay: .5s; }
.js .hero-copy > *:nth-child(5) { animation-delay: .64s; }
.js .page-hero .container > .crumbs, .js .page-hero-grid > div > * { animation: heroIn .9s var(--ease) both; }
.js .page-hero-grid > div > *:nth-child(2) { animation-delay: .1s; }
.js .page-hero-grid > div > *:nth-child(3) { animation-delay: .2s; }
.js .page-hero-grid > div > *:nth-child(4) { animation-delay: .3s; }
.js .page-hero-img { animation: heroImg 1.3s var(--ease) .15s both; }
@keyframes heroIn { from { opacity: 0; transform: translate3d(0, 30px, 0); } to { opacity: 1; transform: none; } }
@keyframes heroImg { from { opacity: 0; transform: translate3d(40px, 0, 0); } to { opacity: 1; transform: none; } }

/* floating call button gentle pulse */
.float-call::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--ecru); opacity: 0; animation: ring 3.4s ease-out 2s infinite; pointer-events: none; }
.float-call { position: relative; }
@keyframes ring { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(1.55); opacity: 0; } }

@keyframes marquee { to { transform: translateX(-50%); } }

/* hide JS-dependent initial states from print */
@media print { .js [data-reveal], .js .img-reveal { opacity: 1 !important; transform: none !important; clip-path: none !important; } }

/* reduced motion: no movement, no scroll animation */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0ms !important; transition-duration: .001ms !important; transition-delay: 0ms !important; scroll-behavior: auto !important; }
  .js [data-reveal], .js .img-reveal { opacity: 1; transform: none; clip-path: none; }
  .js .img-reveal img { transform: none; }
  .marquee { animation: none; flex-wrap: wrap; width: auto; }
  .hero-media img, [data-parallax] { transform: none !important; }
}
