/* CINEMATIC HERO STYLES */

#cinematic-wrapper {
    position: relative;
    width: 100%;
    /* Height will be controlled by ScrollTrigger Pinning space, but we start with auto */
    height: auto;
    overflow: hidden;
    background-color: #000;
    /* Dark premium background */
    color: #fff;
    z-index: 10;
}

#cinematic-sticky {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    display: flex;
    justify-content: center;
    align-items: center;
}

#cinematic-sticky::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.15);
    /* 40% Dark Overlay for legibility */
    z-index: 5;
    /* Above media (z-index 1), below text (z-index 10) */
    pointer-events: none;
}

/* LOADING SCREEN */
#loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #FDFBF7;
    /* Match site background */
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.8s ease-out;
}

.loader-content {
    text-align: center;
    animation: pulse 2s infinite ease-in-out;
}

@keyframes pulse {
    0% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.6;
    }
}

/* MEDIAS */
.cinematic-media {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    opacity: 0;
    /* Hidden by default, managed by GSAP */
    transition: opacity 0.5s ease;
    /* Fallback */
}

.cinematic-media.active {
    opacity: 1;
}

video.video-background {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bg-image-layer {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* TEXT OVERLAYS */
.cinematic-text {
    position: absolute;
    z-index: 10;
    text-align: center;
    width: 90%;
    max-width: 800px;
    opacity: 0;
    /* GSAP controls this */
    transform: translateY(20px);
    pointer-events: none;
    /* Let scroll pass through */
}

.cinematic-text h2 {
    font-family: 'Outfit', sans-serif;
    /* Using your existing premium font */
    font-size: 3rem;
    font-weight: 300;
    /* Light/Thin for elegance */
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    color: #fff;
    margin-bottom: 0;
}

/* Responsive Text */
@media (max-width: 768px) {
    .cinematic-text h2 {
        font-size: 2rem;
    }
}

/* PLACEHOLDERS STYLE */
.placeholder-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #1a1a1a;
    color: #555;
    font-family: monospace;
    font-size: 1.5rem;
}