/* ── Global Scroll Animations ── */

/* Block-level (whole sections) */
.sa-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

/* Element-level (headings, labels, buttons) */
.sa-up-sm {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

/* Scale-in (cards, boxes, images) */
.sa-scale {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
}

/* Revealed state — same class for all variants */
.sa-up.sa-in,
.sa-up-sm.sa-in,
.sa-scale.sa-in {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Respect prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .sa-up, .sa-up-sm, .sa-scale {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}
