
/* ==========================================
   VFX EIORS — CINEMATIC SHOWCASE
========================================== */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    background: #050505;
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    overflow-x: hidden;
}

/* MAIN SCROLL CONTAINER */

.vfx-showcase {
    position: relative;
    width: 100%;
    height: 500vh;
    background: #050505;
    isolation: isolate;
}

/* STICKY VIEWPORT */

.vfx-viewport {
    position: sticky;
    top: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: #050505;
}

/* FULL SCREEN VIDEO PANELS */

.vfx-project {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    background: #111111;
    isolation: isolate;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
}

/* LAYER ORDER */

.vfx-project:nth-child(1) { z-index: 5; }
.vfx-project:nth-child(2) { z-index: 4; }
.vfx-project:nth-child(3) { z-index: 3; }
.vfx-project:nth-child(4) { z-index: 2; }
.vfx-project:nth-child(5) { z-index: 1; }

/* VIDEO LAYER */

.vfx-media {
    position: absolute;
    inset: -8% 0;
    overflow: hidden;
    transform: translate3d(0, 0, 0);
    backface-visibility: hidden;
}

.vfx-media video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    pointer-events: none;
}

/* DARK CINEMATIC GRADIENT */

.vfx-shade {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.05) 0%,
        rgba(0, 0, 0, 0.02) 48%,
        rgba(0, 0, 0, 0.55) 100%
    );
}

/* PROJECT TITLES */

.vfx-info {
    position: absolute;
    left: 50%;
    bottom: 16%;
    width: min(80%, 800px);
    transform: translateX(-50%);
    text-align: center;
    pointer-events: none;
}

.vfx-info h2 {
    margin: 0;
    font-size: clamp(30px, 3.4vw, 58px);
    font-weight: 700;
    letter-spacing: -0.055em;
    line-height: 1.05;
}

.vfx-info p {
    margin: 8px 0 0;
    font-size: clamp(12px, 1vw, 16px);
}

/* PROJECT NUMBER */

.vfx-count {
    position: absolute;
    left: 32px;
    bottom: 17%;
    font-size: 12px;
    letter-spacing: 0.05em;
    pointer-events: none;
}

/* PROJECT CATEGORY */

.vfx-category {
    position: absolute;
    right: 32px;
    bottom: 17%;
    font-size: 12px;
    letter-spacing: 0.05em;
    pointer-events: none;
}

/* MOBILE */

@media (max-width: 767px) {

    .vfx-info {
        bottom: 15%;
        width: calc(100% - 40px);
    }

    .vfx-info h2 {
        font-size: clamp(30px, 8vw, 44px);
    }

    .vfx-info p {
        font-size: 12px;
    }

    .vfx-count {
        left: 20px;
        bottom: 5%;
        font-size: 10px;
    }

    .vfx-category {
        right: 20px;
        bottom: 5%;
        font-size: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vfx-media {
        transform: none !important;
    }
}

/* ==========================================
   ELEMENTOR EMBED MODE
   MAIN PAGE CONTROLS SCROLL
========================================== */

html.vfx-embedded,
html.vfx-embedded body {
    height: 100%;
    overflow: hidden;
}

html.vfx-embedded .vfx-showcase {
    height: 100vh !important;
}

html.vfx-embedded .vfx-viewport {
    position: relative;
    height: 100vh;
}
