/* ===== THORNWOVEN 2 — ANIMATIONS ===== */

/* ── Generic Scroll Reveal (GSAP controlled) ── */
.anim-fade-up {
  opacity: 0;
  transform: translateY(40px);
}

.anim-fade-up.is-active {
  opacity: 1;
  transform: translateY(0);
}

.anim-scale-in {
  opacity: 0;
  transform: scale(0.9);
}

.anim-scale-in.is-active {
  opacity: 1;
  transform: scale(1);
}

/* ── Clip Reveal (for images) ── */
.anim-clip-reveal {
  clip-path: inset(50% 20% 50% 20%);
  transition: clip-path 1.2s var(--ease-out-expo);
}

.anim-clip-reveal.is-active {
  clip-path: inset(0% 0% 0% 0%);
}

/* ── Line Draw (for pillar borders) ── */
.anim-line-draw::before {
  transform: scaleX(0);
  transform-origin: left;
}

.anim-line-draw.is-active::before {
  transform: scaleX(1);
  transition: transform 0.8s var(--ease-out-expo);
}

/* ── Stagger Children ── */
.anim-stagger > * {
  opacity: 0;
  transform: translateY(30px);
}

.anim-stagger.is-active > * {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s var(--ease-out-expo), transform 0.6s var(--ease-out-expo);
}

.anim-stagger.is-active > *:nth-child(1) { transition-delay: 0s; }
.anim-stagger.is-active > *:nth-child(2) { transition-delay: 0.1s; }
.anim-stagger.is-active > *:nth-child(3) { transition-delay: 0.2s; }
.anim-stagger.is-active > *:nth-child(4) { transition-delay: 0.3s; }
.anim-stagger.is-active > *:nth-child(5) { transition-delay: 0.4s; }

/* ── Reduced Motion ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .anim-fade-up,
  .anim-scale-in,
  .anim-clip-reveal,
  .anim-stagger > * {
    opacity: 1 !important;
    transform: none !important;
    clip-path: none !important;
  }

  .loader { display: none !important; }
  .hero-title .word { opacity: 1 !important; transform: none !important; }
}
