/* Scroll-reveal for section text.
   Vertical only — no horizontal movement — so it reads identically in RTL.
   Elements start hidden only once the observer has confirmed it will run, so
   the page stays readable if the script fails to load. */

[data-reveal] {
  opacity: 1;
}

/* No will-change here on purpose: this runs on ~80 elements, and that many
   promoted layers costs more than the hint saves. Opacity and transform are
   composited anyway. */
.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translate3d(0, 14px, 0);
}

.reveal-ready [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
  transition:
    opacity 620ms cubic-bezier(0.22, 0.61, 0.36, 1) var(--reveal-delay, 0ms),
    transform 620ms cubic-bezier(0.22, 0.61, 0.36, 1) var(--reveal-delay, 0ms);
}

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