/**
 * A.M TRADERS - Scroll-Driven Reveal Animations Engine
 * Provides slow, ultra-smooth entry animations (Left, Right, Top, Bottom, Zoom)
 * Triggered via IntersectionObserver
 */

.am-reveal {
    opacity: 0;
    transition-property: opacity, transform;
    transition-duration: 1.15s;
    transition-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
    backface-visibility: hidden;
}

/* Directional Offsets (Unrevealed State) */
.am-reveal-left {
    transform: translate3d(-55px, 0, 0);
}

.am-reveal-right {
    transform: translate3d(55px, 0, 0);
}

.am-reveal-top {
    transform: translate3d(0, -45px, 0);
}

.am-reveal-bottom {
    transform: translate3d(0, 45px, 0);
}

.am-reveal-zoom {
    transform: scale(0.92);
}

/* Revealed State */
.am-reveal.is-revealed {
    opacity: 1 !important;
    transform: translate3d(0, 0, 0) scale(1) !important;
}

/* Stagger Delays for Grid Items & Nested Flows */
.am-delay-1 {
    transition-delay: 0.12s;
}

.am-delay-2 {
    transition-delay: 0.24s;
}

.am-delay-3 {
    transition-delay: 0.36s;
}

.am-delay-4 {
    transition-delay: 0.48s;
}

.am-delay-5 {
    transition-delay: 0.60s;
}

.am-delay-6 {
    transition-delay: 0.72s;
}

/* Fallback for users with reduced motion preferences */
@media (prefers-reduced-motion: reduce) {
    .am-reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}
