/* CAIZUN homepage GSAP V22.2
   Pre-paint states prevent the visible -> hidden -> visible flash.
   Header and Footer are intentionally excluded.
   If GSAP fails, the head fail-safe removes the pending class and content stays visible.
*/

html.cz-gsap-pending body.cz-home-2026 .cz-home-categories__heading:not(.cz-gsap-animated),
html.cz-gsap-active body.cz-home-2026 .cz-home-categories__heading:not(.cz-gsap-animated) {
    opacity: 0 !important;
    visibility: hidden !important;
}

html.cz-gsap-pending body.cz-home-2026 .cz-home-categories__row > *:not(.cz-gsap-animated),
html.cz-gsap-active body.cz-home-2026 .cz-home-categories__row > *:not(.cz-gsap-animated) {
    opacity: 0 !important;
    visibility: hidden !important;
}

html.cz-gsap-pending body.cz-home-2026 .cz-home-about__eyebrow:not(.cz-gsap-animated),
html.cz-gsap-active body.cz-home-2026 .cz-home-about__eyebrow:not(.cz-gsap-animated) {
    opacity: 0 !important;
    visibility: hidden !important;
}

html.cz-gsap-pending body.cz-home-2026 .cz-home-about__title:not(.cz-gsap-animated),
html.cz-gsap-active body.cz-home-2026 .cz-home-about__title:not(.cz-gsap-animated) {
    opacity: 0 !important;
    visibility: hidden !important;
}

html.cz-gsap-pending body.cz-home-2026 .cz-home-about__intro:not(.cz-gsap-animated),
html.cz-gsap-active body.cz-home-2026 .cz-home-about__intro:not(.cz-gsap-animated) {
    opacity: 0 !important;
    visibility: hidden !important;
}

html.cz-gsap-pending body.cz-home-2026 .cz-home-about__stat:not(.cz-gsap-animated),
html.cz-gsap-active body.cz-home-2026 .cz-home-about__stat:not(.cz-gsap-animated) {
    opacity: 0 !important;
    visibility: hidden !important;
}

html.cz-gsap-pending body.cz-home-2026 .cz-home-why__eyebrow:not(.cz-gsap-animated),
html.cz-gsap-active body.cz-home-2026 .cz-home-why__eyebrow:not(.cz-gsap-animated) {
    opacity: 0 !important;
    visibility: hidden !important;
}

html.cz-gsap-pending body.cz-home-2026 .cz-home-why__heading:not(.cz-gsap-animated),
html.cz-gsap-active body.cz-home-2026 .cz-home-why__heading:not(.cz-gsap-animated) {
    opacity: 0 !important;
    visibility: hidden !important;
}

html.cz-gsap-pending body.cz-home-2026 .cz-home-why__item:not(.cz-gsap-animated),
html.cz-gsap-active body.cz-home-2026 .cz-home-why__item:not(.cz-gsap-animated) {
    opacity: 0 !important;
    visibility: hidden !important;
}

html.cz-gsap-pending body.cz-home-2026 .cz-home-why__media:not(.cz-gsap-animated),
html.cz-gsap-active body.cz-home-2026 .cz-home-why__media:not(.cz-gsap-animated) {
    opacity: 0 !important;
    visibility: hidden !important;
}

html.cz-gsap-pending body.cz-home-2026 .cz-home-featured__heading-row:not(.cz-gsap-animated),
html.cz-gsap-active body.cz-home-2026 .cz-home-featured__heading-row:not(.cz-gsap-animated) {
    opacity: 0 !important;
    visibility: hidden !important;
}

html.cz-gsap-pending body.cz-home-2026 .cz-home-featured__grid > .col:not(.cz-gsap-animated),
html.cz-gsap-active body.cz-home-2026 .cz-home-featured__grid > .col:not(.cz-gsap-animated) {
    opacity: 0 !important;
    visibility: hidden !important;
}

html.cz-gsap-pending body.cz-home-2026 .cz-home-featured__cta:not(.cz-gsap-animated),
html.cz-gsap-active body.cz-home-2026 .cz-home-featured__cta:not(.cz-gsap-animated) {
    opacity: 0 !important;
    visibility: hidden !important;
}

html.cz-gsap-pending body.cz-home-2026 .cz-home-process__eyebrow:not(.cz-gsap-animated),
html.cz-gsap-active body.cz-home-2026 .cz-home-process__eyebrow:not(.cz-gsap-animated) {
    opacity: 0 !important;
    visibility: hidden !important;
}

html.cz-gsap-pending body.cz-home-2026 .cz-home-process__title:not(.cz-gsap-animated),
html.cz-gsap-active body.cz-home-2026 .cz-home-process__title:not(.cz-gsap-animated) {
    opacity: 0 !important;
    visibility: hidden !important;
}

html.cz-gsap-pending body.cz-home-2026 .cz-home-process__description:not(.cz-gsap-animated),
html.cz-gsap-active body.cz-home-2026 .cz-home-process__description:not(.cz-gsap-animated) {
    opacity: 0 !important;
    visibility: hidden !important;
}

html.cz-gsap-pending body.cz-home-2026 .cz-home-process__item:not(.cz-gsap-animated),
html.cz-gsap-active body.cz-home-2026 .cz-home-process__item:not(.cz-gsap-animated) {
    opacity: 0 !important;
    visibility: hidden !important;
}

html.cz-gsap-pending body.cz-home-2026 .cz-home-markets__eyebrow:not(.cz-gsap-animated),
html.cz-gsap-active body.cz-home-2026 .cz-home-markets__eyebrow:not(.cz-gsap-animated) {
    opacity: 0 !important;
    visibility: hidden !important;
}

html.cz-gsap-pending body.cz-home-2026 .cz-home-markets__title:not(.cz-gsap-animated),
html.cz-gsap-active body.cz-home-2026 .cz-home-markets__title:not(.cz-gsap-animated) {
    opacity: 0 !important;
    visibility: hidden !important;
}

html.cz-gsap-pending body.cz-home-2026 .cz-home-markets__stat:not(.cz-gsap-animated),
html.cz-gsap-active body.cz-home-2026 .cz-home-markets__stat:not(.cz-gsap-animated) {
    opacity: 0 !important;
    visibility: hidden !important;
}

html.cz-gsap-pending body.cz-home-2026 .cz-home-news__heading-row:not(.cz-gsap-animated),
html.cz-gsap-active body.cz-home-2026 .cz-home-news__heading-row:not(.cz-gsap-animated) {
    opacity: 0 !important;
    visibility: hidden !important;
}

html.cz-gsap-pending body.cz-home-2026 .cz-home-news__item:not(.cz-gsap-animated),
html.cz-gsap-active body.cz-home-2026 .cz-home-news__item:not(.cz-gsap-animated) {
    opacity: 0 !important;
    visibility: hidden !important;
}

html.cz-gsap-pending body.cz-home-2026 .cz-home-contact__eyebrow:not(.cz-gsap-animated),
html.cz-gsap-active body.cz-home-2026 .cz-home-contact__eyebrow:not(.cz-gsap-animated) {
    opacity: 0 !important;
    visibility: hidden !important;
}

html.cz-gsap-pending body.cz-home-2026 .cz-home-contact__title:not(.cz-gsap-animated),
html.cz-gsap-active body.cz-home-2026 .cz-home-contact__title:not(.cz-gsap-animated) {
    opacity: 0 !important;
    visibility: hidden !important;
}

html.cz-gsap-pending body.cz-home-2026 .cz-home-contact__description:not(.cz-gsap-animated),
html.cz-gsap-active body.cz-home-2026 .cz-home-contact__description:not(.cz-gsap-animated) {
    opacity: 0 !important;
    visibility: hidden !important;
}

html.cz-gsap-pending body.cz-home-2026 .cz-home-contact__details:not(.cz-gsap-animated),
html.cz-gsap-active body.cz-home-2026 .cz-home-contact__details:not(.cz-gsap-animated) {
    opacity: 0 !important;
    visibility: hidden !important;
}

html.cz-gsap-pending body.cz-home-2026 .cz-home-contact__card:not(.cz-gsap-animated),
html.cz-gsap-active body.cz-home-2026 .cz-home-contact__card:not(.cz-gsap-animated) {
    opacity: 0 !important;
    visibility: hidden !important;
}

/* The About image starts behind a narrow reveal mask until its own tween starts. */
html.cz-gsap-pending body.cz-home-2026 .cz-home-about__scene:not(.cz-gsap-animated),
html.cz-gsap-active body.cz-home-2026 .cz-home-about__scene:not(.cz-gsap-animated) {
    clip-path: inset(0% 14% 0% 0%);
}

/* Keep the Hero photograph in its intended starting scale before GSAP takes over. */
html.cz-gsap-pending body.cz-home-2026 .cz-home-hero__media img:not(.cz-gsap-animated),
html.cz-gsap-active body.cz-home-2026 .cz-home-hero__media img:not(.cz-gsap-animated) {
    transform: scale(1.05);
}

/* A restrained map starting state; the bitmap itself is never moved on mobile. */
@media (min-width: 768px) {
    html.cz-gsap-pending body.cz-home-2026 .cz-home-markets__map-image:not(.cz-gsap-animated),
    html.cz-gsap-active body.cz-home-2026 .cz-home-markets__map-image:not(.cz-gsap-animated) {
        opacity: .8;
        transform: scale(1.035);
    }
}

/* Production connector starts collapsed and is animated by the existing GSAP timeline. */
html.cz-gsap-pending body.cz-home-2026 .cz-home-process__track:not(.cz-gsap-animated),
html.cz-gsap-active body.cz-home-2026 .cz-home-process__track:not(.cz-gsap-animated) {
    --cz-gsap-process-line: 0;
}

.cz-home-2026 .cz-home-process__track::before {
    transform: scaleX(var(--cz-gsap-process-line, 1));
    transform-origin: left center;
    will-change: transform;
}

@media (prefers-reduced-motion: reduce) {
    html.cz-gsap-pending,
    html.cz-gsap-active {
        /* No forced hiding when reduced motion is requested. */
    }
    .cz-home-2026 .cz-home-process__track::before {
        transform: none;
        will-change: auto;
    }
}
