/* ==========================================================================
   NL DOJO 2.0 — SCROLL CHOREOGRAPHY ENGINE STYLES (ZERO VISUAL OVERRIDES)
   Only sticky backdrop, proscenium dome curtain, 3D stage wrappers,
   z-index section stacking, and prefers-reduced-motion fallbacks.
   ========================================================================== */

/* Keep position: sticky working across all browsers (avoid overflow: hidden on ancestors) */
html,
body.vbs-theme {
    overflow-x: clip;
}

/* ========== EFFECT A: PINNED STICKY HERO STAGE ========== */
.vbs-hero[data-scroll-fx="hero"] {
    position: sticky;
    top: var(--fx-hero-sticky-top, 0px);
    z-index: 1;
    min-height: max(730px, 100vh);
}

/* Prevent .vbs-hero-wave from clashing with the rising proscenium dome */
.vbs-hero[data-scroll-fx="hero"] .vbs-hero-wave {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.vbs-hero[data-scroll-fx="hero"] .vbs-hero-stage {
    transform-origin: center center;
}

/* ========== EFFECT B: PROSCENIUM CURVED DOME CURTAIN & STACKING ========== */
.vbs-pillars-section[data-scroll-fx="dome-section"] {
    position: relative;
    z-index: 2;
    margin-top: var(--fx-dome-height, 115px);
    overflow-x: clip;
    overflow-y: visible;
}

.vbs-dome-curtain {
    position: absolute;
    left: 0;
    right: 0;
    bottom: calc(100% - 2px);
    width: 100%;
    height: var(--fx-dome-height, 115px);
    z-index: 3;
    pointer-events: none;
    overflow: visible;
}

.vbs-dome-curtain svg {
    width: 100%;
    height: 100%;
    display: block;
    transform-origin: center bottom;
}

/* Stack all subsequent sections cleanly above the pinned hero */
#three-m.vbs-three-m-section {
    position: relative;
    z-index: 3;
}

#key-features.vbs-features-section {
    position: relative;
    z-index: 4;
}

.vbs-capabilities-section {
    position: relative;
    z-index: 5;
}

#digital-platforms.vbs-eco-section {
    position: relative;
    z-index: 6;
}

#trusted-clients.vbs-clients-section {
    position: relative;
    z-index: 7;
}

.vbs-cta-section {
    position: relative;
    z-index: 8;
}

.vbs-footer {
    position: relative;
    z-index: 9;
}

/* ========== EFFECT C: ZERO-COLLISION 3D PERSPECTIVE WRAPPERS ========== */
/* Untransformed anchor slot keeps layout geometry and grid sizing stable */
.fx-tilt-slot {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    overflow: visible;
}

.vbs-pillars-bento>.fx-tilt-slot,
.vbs-triad-grid>.fx-tilt-slot,
.vbs-spec-grid>.fx-tilt-slot,
.vbs-cap-grid>.fx-tilt-slot,
.vbs-eco-grid>.fx-tilt-slot {
    height: 100%;
}

/* Stage carries ONLY scroll-driven 3D transform/opacity; inner card keeps hover & keyframes */
.fx-tilt-stage {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    overflow: visible;
    transform-origin: 50% 25%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.fx-tilt-stage>* {
    flex: 1 1 auto;
    width: 100%;
}

.vbs-pillars-bento .fx-tilt-stage>*,
.vbs-triad-grid .fx-tilt-stage>*,
.vbs-spec-grid .fx-tilt-stage>*,
.vbs-cap-grid .fx-tilt-stage>*,
.vbs-eco-grid .fx-tilt-stage>* {
    height: 100%;
}

/* ========== RESPONSIVE GUARDRAILS ========== */
@media (max-width: 767px) {
    .vbs-pillars-section[data-scroll-fx="dome-section"] {
        margin-top: var(--fx-dome-height-mobile, 68px);
    }

    .vbs-dome-curtain {
        height: var(--fx-dome-height-mobile, 68px);
    }
}

/* ========== ACCESSIBILITY: REDUCED MOTION ========== */
@media (prefers-reduced-motion: reduce) {
    .vbs-hero[data-scroll-fx="hero"] {
        position: relative !important;
        top: auto !important;
        min-height: 730px;
    }

    .vbs-pillars-section[data-scroll-fx="dome-section"] {
        margin-top: 0 !important;
    }

    .vbs-hero[data-scroll-fx="hero"] .vbs-hero-wave {
        opacity: 1 !important;
        visibility: visible !important;
    }

    .vbs-dome-curtain {
        display: none !important;
    }

    .fx-tilt-stage,
    .vbs-suite-header,
    .vbs-three-m-header,
    .vbs-features-hero-head,
    .vbs-cap-head,
    .vbs-eco-header,
    .vbs-clients-header,
    .vbs-hero-kicker,
    .vbs-hero-title,
    .vbs-hero-subtitle,
    .vbs-title-accent-bar,
    .vbs-hero-mini-grid,
    .vbs-hero-actions,
    .vbs-hero-stage {
        transform: none !important;
        opacity: 1 !important;
        will-change: auto !important;
    }
}