.container {
    position: relative;
    width: 100%;
    min-height: 100dvh;
    min-height: -webkit-fill-available;
}

.fixed-area {
    position: fixed;
    top: 0;
    left: 0;
    width: 70vw;
    height: 100dvh;
    min-height: 100svh;
    background-position: center;
    background-size: cover;
    color: var(--color-light);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.fixed-area::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        rgba(0,0,0,0.2),
        rgba(0,0,0,0.2)
    );
    pointer-events: none;
    z-index: 0;
}

/* pastikan teks/isi di atas overlay */
.fixed-area > * { position: relative; z-index: 1; }

/* .fixed-area h1 {
    font-family: var(--font-heading);
    font-size: 1.5rem;
} */

.scrollable-content {
    position: fixed;
    right: 0;
    top: 0;
    width: 30vw;
    min-height: 100dvh;
    min-height: -webkit-fill-available;
    padding-bottom: env(safe-area-inset-bottom);
    overflow: hidden;
    background: url(../img/bg.jpg);
    background-size: cover;
    background-position: center;
    min-width: 0;
    z-index: 0;
}

.scrollable-content::before {
    content: "";
    position: absolute;
    inset: 0;

    /* background: rgba(143, 139, 136, 0.5); */
    background: rgba(0, 0, 0, 0.5);

    pointer-events: none;
    z-index: 1;
}

.falling-petals {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.content-overlay {
    position: relative;
    inset: 0;
    z-index: 2;
    height: 100dvh;
    overflow-x: hidden;
    overflow-y: hidden;
    scroll-snap-type: y mandatory;
    -webkit-overflow-scrolling: touch;

    touch-action: pan-y;
    overscroll-behavior: none;
    background: transparent;
}   

.content-overlay.scroll-enabled {
    overflow-y: auto;
}

.image-protected {
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: auto;
}

.falling-item {
    position: absolute;

    top: -50px;

    width: 28px;
    height: auto;
    opacity: 0.25;
    display: block;

    pointer-events: none;

    user-select: none;

    transform-origin: center center;

    will-change: transform;

    animation:
        fallLeaf
        var(--duration)
        linear
        infinite;
}

/* =====================================
   FALLING ANIMATION
===================================== */

@keyframes fallLeaf {

    0% {
        transform:
            translate3d(
                0,
                -50px,
                0
            )
            rotate(var(--rotation))
            scale(var(--scale));
    }


    20% {
        transform:
            translate3d(
                calc(var(--drift) * 0.35),
                20vh,
                0
            )
            rotate(
                calc(var(--rotation) + 80deg)
            )
            scale(var(--scale));
    }


    40% {
        transform:
            translate3d(
                calc(var(--drift) * -0.25),
                40vh,
                0
            )
            rotate(
                calc(var(--rotation) + 170deg)
            )
            scale(var(--scale));
    }


    60% {
        transform:
            translate3d(
                calc(var(--drift) * 0.55),
                60vh,
                0
            )
            rotate(
                calc(var(--rotation) + 260deg)
            )
            scale(var(--scale));
    }


    80% {
        transform:
            translate3d(
                calc(var(--drift) * -0.4),
                80vh,
                0
            )
            rotate(
                calc(var(--rotation) + 340deg)
            )
            scale(var(--scale));
    }


    100% {
        transform:
            translate3d(
                var(--drift),
                110vh,
                0
            )
            rotate(
                calc(var(--rotation) + 450deg)
            )
            scale(var(--scale));
    }
}