/* Webflow interaction targets start hidden only while JS is running (w-mod-js) and the
   Webflow runtime hasn't initialized yet (no w-mod-ix), which prevents a flash before they
   animate in. If webflow.js never initializes, js/interactions.js adds .ix-failed on load. */
html.w-mod-js:not(.w-mod-ix):not(.ix-failed) [data-ix-hidden] {
  opacity: 0;
}

/* Backstop for when js/interactions.js itself didn't run (no .ix-watch): reveal after 3s. */
html.w-mod-js:not(.w-mod-ix):not(.ix-watch) [data-ix-hidden] {
  animation: ix-failsafe 0s linear 3s forwards;
}

@keyframes ix-failsafe {
  to {
    opacity: 1;
  }
}

/* Staggered reveals: js/interactions.js adds .reveal-ready to <html> and .is-revealed to each
   [data-stagger] group as it scrolls into view. Without the script, nothing is hidden. */
.reveal-ready [data-stagger] > * {
  opacity: 0;
  transform: translate3d(0, 40px, 0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal-ready [data-stagger].is-revealed > * {
  opacity: 1;
  transform: none;
}

[data-stagger] > :nth-child(1) { transition-delay: 0.1s; }
[data-stagger] > :nth-child(2) { transition-delay: 0.2s; }
[data-stagger] > :nth-child(3) { transition-delay: 0.3s; }
[data-stagger] > :nth-child(4) { transition-delay: 0.4s; }
[data-stagger] > :nth-child(5) { transition-delay: 0.5s; }
[data-stagger] > :nth-child(6) { transition-delay: 0.6s; }

@media (prefers-reduced-motion: reduce) {
  .reveal-ready [data-stagger] > * {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
