/* Shared scroll-driven effects — reused by src/js/scroll-fx.js across all blocks */

[data-parallax] {
  will-change: transform;
}

[data-reveal] {
  opacity: 0;
  filter: blur(16px);
  transition: opacity 1s cubic-bezier(0.16, 1, 0.3, 1), filter 1s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-reveal].is-visible {
  opacity: 1;
  /* Must settle at `none`, not blur(0): any non-none filter on an ancestor
     creates a backdrop root and permanently blocks backdrop-filter on
     descendants (hero glass buttons, stat cards). blur(16px) -> none still
     animates smoothly (none interpolates as blur(0)). */
  filter: none;
}

@media (prefers-reduced-motion: reduce) {
  [data-parallax] {
    transform: none !important;
  }

  [data-reveal] {
    opacity: 1;
    filter: none;
    transition: none;
  }
}
