/* ==========================================
   PAOREEL STUDIOS
   V4 HERO CINEMATIC ENGINE

   File: cinematic.css
========================================== */

/* ==========================================
   CURSOR LOCK
========================================== */
body.cursor-hidden,
body.cursor-hidden * {
    cursor: none !important;
}

/* ==========================================
   INTRO VIDEO
========================================== */
.cinematic-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 1;
    opacity: 1;
}

/* ==========================================================
   SHUTTER
========================================================== */
.cinematic-shutter {
    position: fixed;
    inset: 0;
    z-index: 999998;
    pointer-events: none;
}

.shutter-blade {
    position: absolute;
    width: 120vw;
    height: 120vh;
    background: #000;
    transform-origin: center center;
}

.shutter-blade:nth-child(1) {
    top: -95vh;
    left: 50%;
    transform: translateX(-50%) rotate(0deg);
}

.shutter-blade:nth-child(2) {
    top: -45vh;
    right: -85vw;
    transform: rotate(60deg);
}

.shutter-blade:nth-child(3) {
    bottom: -45vh;
    right: -85vw;
    transform: rotate(120deg);
}

.shutter-blade:nth-child(4) {
    bottom: -95vh;
    left: 50%;
    transform: translateX(-50%) rotate(180deg);
}

.shutter-blade:nth-child(5) {
    bottom: -45vh;
    left: -85vw;
    transform: rotate(240deg);
}

.shutter-blade:nth-child(6) {
    top: -45vh;
    left: -85vw;
    transform: rotate(300deg);
}

/* ==========================================
   BLACK OVERLAY
========================================== */
.cinematic-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999999;
    pointer-events: all;
    will-change: opacity;
    background: transparent;
}

.cinematic-overlay.hidden {
    pointer-events: none;
}

/* ==========================================
   LENS VIEWPORT MASK
========================================== */
.cinematic-lens-mask {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    background: radial-gradient(
        circle 40vh at center,
        transparent 0,
        transparent 39.5vh,
        #000 40vh
    );
}

/* ==========================================
   APERTURE
========================================== */
.cinematic-aperture {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vh;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    border-radius: 50%;
    overflow: hidden;
    background: transparent;
}

.cinematic-aperture::before {
    content: '';
    position: absolute;
    width: 80%;
    height: 80%;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, rgba(140, 210, 255, 0.12) 0%, rgba(0, 0, 0, 0) 70%);
    pointer-events: none;
    z-index: 12;
    mix-blend-mode: screen;
}

.cinematic-aperture svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

/* ==========================================
   CINEMATIC FLASH
========================================== */
.cinematic-flash {
    position: fixed;
    inset: 0;
    background: #fff;
    opacity: 0;
    pointer-events: none;
    z-index: 999999;
}

/* ==========================================
   HERO MEDIA
========================================== */
.hero-image {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.hero-image img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    z-index: 2;
    transition: opacity 2s ease;
}

/* ==========================================
   HERO INITIAL STATES
========================================== */
.hero-bts {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    z-index: 1;
    opacity: 0;
    transform: scale(1.15);
    --lens-blur: 15px;
    filter: blur(var(--lens-blur));
    will-change: transform, opacity, filter;
    transition: 
        transform 1.2s cubic-bezier(.25, 1, .5, 1),
        opacity 1.2s cubic-bezier(.25, 1, .5, 1);
}

.scroll-indicator {
    opacity: 0;
}