/* Loaded only on websites that explicitly enable GSAP stagger. */
html, body { overflow-x: hidden; }
::-moz-selection { color: white; background: var(--e-global-color-primary, #ce6d3f); }
::selection { color: white; background: var(--e-global-color-primary, #ce6d3f); }

/* Opt in before the first body paint; the head script has a fail-open timeout. */
html.sx-stagger-pending [data-stagger="children"] > * {
    opacity: 0;
}
html.sx-stagger-pending [data-stagger="children"]:focus-within > * {
    opacity: 1;
}

/* JavaScript adds this class only after GSAP is available.
   Without JavaScript (or with reduced motion) content stays visible. */
[data-stagger].sx-stagger-active {
    opacity: 0;
    will-change: opacity, transform;
}
[data-stagger="children"].sx-stagger-active {
    opacity: 1 !important;
    transform: none !important;
}
[data-stagger="children"].sx-stagger-active > * {
    opacity: 0;
    will-change: opacity, transform;
    transition: unset !important;
}

@media print {
    html.sx-stagger-pending [data-stagger="children"] > *,
    [data-stagger].sx-stagger-active,
    [data-stagger="children"].sx-stagger-active > * {
        opacity: 1 !important;
        transform: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    html.sx-stagger-pending [data-stagger="children"] > * {
        opacity: 1 !important;
    }
}
