/* =========================================================================
   Motion — reveal-on-scroll (Jano AOS / Endcap blur), curtain image reveal
   (GO ARCH), page intro, marquee (Dalco). All disabled for reduced motion.
   ========================================================================= */

/* Elements start hidden only when JS has confirmed it can reveal them */
.js [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 28px, 0);
  filter: blur(6px);
  transition:
    opacity 0.9s var(--ease),
    transform 1s var(--ease),
    filter 0.9s var(--ease);
  transition-delay: var(--delay, 0s);
  will-change: opacity, transform;
}
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="left"] { transform: translate3d(-36px, 0, 0); }
.js [data-reveal="right"] { transform: translate3d(36px, 0, 0); }
.js [data-reveal="scale"] { transform: scale(0.96); }
.js [data-reveal].is-inview { opacity: 1; transform: none; filter: none; }

/* Curtain reveal for framed images */
.js [data-curtain] { position: relative; overflow: hidden; }
.js [data-curtain]::after {
  content: ""; position: absolute; inset: 0; z-index: 2; background: var(--surface-2);
  transform-origin: top; transition: transform 1.1s var(--ease-in-out);
  transition-delay: var(--delay, 0s);
}
.js [data-curtain] img { transform: scale(1.12); transition: transform 1.6s var(--ease); transition-delay: var(--delay, 0s); }
.js [data-curtain].is-inview::after { transform: scaleY(0); }
.js [data-curtain].is-inview img { transform: scale(1); }

/* Split heading lines (word-by-word rise) */
.js [data-split] .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.14em; margin-bottom: -0.14em; }
.js [data-split] .w > span { display: inline-block; transform: translateY(105%); transition: transform 1s var(--ease); transition-delay: calc(var(--i, 0) * 0.06s + var(--delay, 0s)); }
.js [data-split].is-inview .w > span { transform: none; }

/* Page intro curtain */
.page-intro {
  position: fixed; inset: 0; z-index: 500; pointer-events: none; display: grid; place-items: center;
  background: var(--white);
  transition: clip-path 0.9s var(--ease-in-out) 0.15s;
  clip-path: inset(0 0 0 0);
}
.page-intro__mark { width: 240px; height: auto; animation: intro-pulse 1s var(--ease) infinite alternate; }
.is-loaded .page-intro { clip-path: inset(0 0 100% 0); }
.no-js .page-intro { display: none; }

@keyframes intro-pulse { from { transform: scale(0.92); opacity: 0.6; } to { transform: scale(1); opacity: 1; } }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Hero progress bar fill */
.hero__progress span.is-running { animation: progress var(--slide-dur, 6s) linear forwards; }
@keyframes progress { to { transform: scaleX(1); } }

/* Reduced motion: show everything, stop movement */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; scroll-behavior: auto !important; }
  .js [data-reveal], .js [data-split] .w > span, .js [data-curtain] img { opacity: 1 !important; transform: none !important; filter: none !important; }
  .js [data-curtain]::after { display: none; }
  .marquee__track { animation: none !important; flex-wrap: wrap; width: auto; }
  .page-intro { display: none; }
  .hero__slide img { transform: none !important; }
}
