/* scroll-reveal.css — title load + scroll reveal (perf & CLS safe, 2026-11-16g)
   No DOM splitting, compositor-only, no layout shifts. */

@media (prefers-reduced-motion: no-preference) {
  /* Page title: reveal on load */
  .sr-title {
    opacity: 0;
    transform: translate3d(0, 0.6em, 0);
    clip-path: inset(0 0 100% 0);
  }
  .sr-title.sr-in {
    animation: sr-title-in 900ms cubic-bezier(.16, 1, .3, 1) forwards;
  }
  @keyframes sr-title-in {
    0%   { opacity: 0; transform: translate3d(0, 0.6em, 0); clip-path: inset(0 0 100% 0); }
    40%  { opacity: 1; }
    100% { opacity: 1; transform: translate3d(0, 0, 0); clip-path: inset(0 0 0% 0); }
  }

  /* Blocks: reveal on scroll */
  .sr-block {
    opacity: 0;
    transform: translate3d(0, 28px, 0);
  }
  .sr-block.sr-in {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    transition: opacity 600ms cubic-bezier(.16, 1, .3, 1), transform 700ms cubic-bezier(.16, 1, .3, 1);
  }
}
