/* ==========================================
   SELALU TEH — FULL-SCREEN CINEMATIC SCENE & PAGE TRANSITION
   Brand Palette: #F04F21 (Primary), #F58016 (Secondary), #FDE9F5 (Light), #2C2926 (Espresso)
   ========================================== */

.st-scene-curtain {
    position: fixed;
    inset: 0;
    z-index: 99999;
    visibility: hidden;
    pointer-events: none;
    overflow: hidden;
}

.st-curtain-layer {
    position: absolute;
    top: -15vh;
    left: -6vw;
    right: -6vw;
    height: 130vh;
    transform: translate3d(0, 115vh, 0);
    border-radius: 50% 50% 0% 0% / 26vh 26vh 0% 0%;
    will-change: transform, border-radius;
}

.st-curtain-light {
    z-index: 1;
    background: #FFF9F2;
}

.st-curtain-accent {
    z-index: 2;
    background: linear-gradient(135deg, #F58016 0%, #F04F21 100%);
}

.st-curtain-main {
    z-index: 3;
    overflow: hidden;
    background:
        radial-gradient(
            ellipse 70% 55% at 50% 45%,
            rgba(245, 128, 22, 0.18) 0%,
            rgba(240, 79, 33, 0.05) 46%,
            transparent 75%
        ),
        #171514;
}

.st-curtain-art {
    position: absolute;
    pointer-events: none;
    object-fit: contain;
    opacity: 0.28;
    filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.45));
    will-change: transform, opacity;
}

.st-curtain-art-left {
    width: clamp(140px, 20vw, 280px);
    left: 6vw;
    bottom: 18vh;
    transform: rotate(-14deg);
}

.st-curtain-art-right {
    width: clamp(160px, 24vw, 340px);
    right: 6vw;
    top: 18vh;
    opacity: 0.22;
    transform: rotate(10deg);
}

.st-curtain-caption {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px;
    text-align: center;
    pointer-events: none;
    perspective: 900px;
}

.st-curtain-logo {
    width: clamp(58px, 7vw, 84px);
    height: auto;
    object-fit: contain;
    opacity: 0;
    filter: drop-shadow(0 12px 24px rgba(245, 128, 22, 0.28));
    will-change: transform, opacity;
}

.st-curtain-index {
    display: none;
}

.st-curtain-title {
    display: inline-block;
    color: #FFF9F2;
    font-family: 'Anton', Impact, 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(32px, 4.8vw, 62px);
    font-weight: 400;
    letter-spacing: 0.03em;
    line-height: 1.02;
    text-transform: uppercase;
    opacity: 0;
    will-change: transform, opacity, clip-path;
}

/* Pre-paint cover state during cross-page navigation (zero white flash) */
html.st-page-entering .st-scene-curtain {
    visibility: visible;
}

html.st-page-entering .st-curtain-layer {
    transform: translate3d(0, 0vh, 0);
    border-radius: 0% 0% 0% 0% / 0vh 0vh 0% 0%;
}

html.st-page-entering .st-curtain-logo,
html.st-page-entering .st-curtain-index,
html.st-page-entering .st-curtain-title {
    opacity: 1;
}

@media (max-width: 767px) {
    .st-curtain-art-left {
        width: 110px;
        left: 2vw;
        bottom: 16vh;
        opacity: 0.2;
    }

    .st-curtain-art-right {
        width: 128px;
        right: 2vw;
        top: 16vh;
        opacity: 0.16;
    }

    .st-curtain-logo {
        width: 54px;
    }

    .st-curtain-index {
        font-size: 10px;
        letter-spacing: 0.2em;
    }

    .st-curtain-title {
        font-size: clamp(28px, 8.2vw, 40px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .st-scene-curtain {
        display: none !important;
    }
}

