/* Rare Standard — scroll enhancements (injected, non-destructive) */

@media (prefers-reduced-motion: no-preference) {
  /* Hidden state is instant (no transition) so nothing "fades out" on load. */
  [data-fx="reveal"] {
    opacity: 0;
    transform: translate3d(0, 30px, 0);
    will-change: opacity, transform;
  }
  /* Only the reveal animates in. */
  [data-fx="reveal"].fx-in {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition: opacity 0.72s cubic-bezier(0.16, 0.8, 0.3, 1),
                transform 0.72s cubic-bezier(0.16, 0.8, 0.3, 1);
    transition-delay: var(--fx-delay, 0ms);
  }
}

/* Reduced-motion users: never hide content (JS also skips tagging them). */
@media (prefers-reduced-motion: reduce) {
  [data-fx="reveal"] { opacity: 1 !important; transform: none !important; }
}
