/* Motion — entrance, scroll reveals, clip-path wipes, reduced motion */

.js-anim .reveal,
.js-anim .reveal-left,
.js-anim .reveal-right,
.js-anim .reveal-scale,
.js-anim .stagger-item {
  opacity: 0;
  transition:
    opacity var(--duration-slow) var(--ease-out),
    transform var(--duration-slow) var(--ease-out),
    clip-path var(--duration-slow) var(--ease-out);
}

.js-anim .reveal { transform: translateY(28px); }
.js-anim .reveal-left { transform: translateX(-32px); }
.js-anim .reveal-right { transform: translateX(32px); }
.js-anim .reveal-scale { transform: scale(0.96); }

.js-anim .wipe-heading {
  clip-path: inset(0 0 100% 0);
  opacity: 1;
  transform: none;
}

.js-anim .reveal.is-visible,
.js-anim .reveal.revealed,
.js-anim .reveal-left.is-visible,
.js-anim .reveal-left.revealed,
.js-anim .reveal-right.is-visible,
.js-anim .reveal-right.revealed,
.js-anim .reveal-scale.is-visible,
.js-anim .reveal-scale.revealed,
.js-anim .stagger-item.is-visible,
.js-anim .stagger-item.stagger-visible {
  opacity: 1;
  transform: none;
}

.js-anim .wipe-heading.is-visible,
.js-anim .wipe-heading.revealed {
  clip-path: inset(0 0 0 0);
}

/* Hero entrance sequence */
@keyframes heroRise {
  from { opacity: 0; transform: translateY(36px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes markDraw {
  from { stroke-dashoffset: 120; opacity: 0; }
  to { stroke-dashoffset: 0; opacity: 1; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.hero-enter .wordmark { animation: heroRise 0.9s var(--ease-out) both; }
.hero-enter .hero__links a {
  animation: heroRise 0.8s var(--ease-out) both;
}
.hero-enter .hero__links a:nth-child(1) { animation-delay: 0.05s; }
.hero-enter .hero__links a:nth-child(2) { animation-delay: 0.1s; }
.hero-enter .hero__links a:nth-child(3) { animation-delay: 0.15s; }
.hero-enter .hero__links a:nth-child(4) { animation-delay: 0.2s; }
.hero-enter .hero__links a:nth-child(5) { animation-delay: 0.25s; }
.hero-enter .hero__links a:nth-child(6) { animation-delay: 0.3s; }
.hero-enter .hero__links a:nth-child(7) { animation-delay: 0.35s; }

.hero-enter .eyebrow { animation: heroRise 0.85s 0.15s var(--ease-out) both; }
.hero-enter .hero__title { animation: heroRise 1s 0.25s var(--ease-out) both; }
.hero-enter .hero__lede { animation: heroRise 0.9s 0.4s var(--ease-out) both; }
.hero-enter .hero__meta { animation: heroRise 0.9s 0.5s var(--ease-out) both; }
.hero-enter .hero__visual { animation: heroRise 1.1s 0.35s var(--ease-out) both; }
.hero-enter .hero__trust { animation: fadeIn 1s 0.7s var(--ease-out) both; }

.wordmark__mark path,
.wordmark__mark rect,
.wordmark__mark polygon {
  stroke-dasharray: 120;
  animation: markDraw 1.1s 0.1s var(--ease-out) both;
}

/* Parallax layer (JS sets --py) */
.parallax-layer {
  --py: 0px;
  transform: translate3d(0, var(--py), 0);
  will-change: transform;
}

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

  .js-anim .reveal,
  .js-anim .reveal-left,
  .js-anim .reveal-right,
  .js-anim .reveal-scale,
  .js-anim .stagger-item,
  .js-anim .wipe-heading {
    opacity: 1;
    transform: none;
    clip-path: none;
  }

  .marquee-track { animation: none; }
  .parallax-layer { transform: none !important; }
}
