/* Unified scroll / hero reveal animations for invitation templates */

.inv-reveal,
.inv-eco-reveal {
    opacity: 0;
    transform: translate3d(0, 24px, 0);
    transition:
        opacity 0.75s cubic-bezier(0.22, 1, 0.36, 1),
        transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--inv-reveal-delay, 0s);
    will-change: opacity, transform;
}

.inv-reveal.is-visible,
.inv-eco-reveal.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.inv-reveal--hero {
    transform: translate3d(0, 18px, 0);
}

.inv-reveal--item {
    transform: translate3d(0, 16px, 0);
}

/* Eco countdown bar is centered via transform — never override its positioning */
.inv-eco-countdown-bar.inv-reveal {
    opacity: 1;
    transform: translate(-50%, 50%);
    transition: none;
}

@media (prefers-reduced-motion: reduce) {
    .inv-reveal,
    .inv-eco-reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .inv-eco-countdown-bar.inv-reveal {
        transform: translate(-50%, 50%) !important;
    }
}
