/* ============================
   SCROLL REVEAL ANIMATIONS (shared across public pages)
   Sections and cards start hidden/offset, then smoothly fade + slide
   into place as they scroll into view (via IntersectionObserver in
   script.js). Cards within a grid stagger slightly via nth-child delay.

   Kept in its own file (not merged into shared.css/about.css/gallery.css/
   program.css) since those files aren't present in this environment —
   writing into them blind risks overwriting real content I can't see.
============================ */
.scroll-reveal {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.scroll-reveal--visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays for cards within a row/grid */
.scroll-reveal--card:nth-child(1) { transition-delay: 0s; }
.scroll-reveal--card:nth-child(2) { transition-delay: 0.1s; }
.scroll-reveal--card:nth-child(3) { transition-delay: 0.2s; }
.scroll-reveal--card:nth-child(4) { transition-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
    .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
}