/* ============================================================
   Reusable scroll-reveal — animate in on enter,
   animate back out when leaving the bottom (scroll up).
   ============================================================ */
.sr {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .8s cubic-bezier(.22, 1, .36, 1),
              transform .8s cubic-bezier(.22, 1, .36, 1);
  will-change: opacity, transform;
}
.sr.in { opacity: 1; transform: none; }
/* exit (scrolling back up): slide back down the way it came in */
.sr.out-down { opacity: 0; transform: translateY(28px); }

@media (prefers-reduced-motion: reduce) {
  .sr, .sr.in, .sr.out-down {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
