.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-v2.jpg?v=202610072300);
    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: -30px;
    display: block;
    pointer-events: none;
    transform-origin: center;
}


/* =====================================
   DAUN
===================================== */

.falling-item.leaf {
    width: 12px;
    height: 20px;

    background: #a89072;

    border-radius: 100% 0 100% 0;

    animation:
        fallLeaf
        var(--duration)
        linear
        infinite;
}


/* =====================================
   KELOPAK
===================================== */

.falling-item.petal {
    width: 14px;
    height: 10px;

    background: #cfa6a0;

    border-radius: 100% 0 100% 100%;

    animation:
        fallPetal
        var(--duration)
        linear
        infinite;
}


/* =====================================
   SERPIHAN
===================================== */

.falling-item.fragment {
    width: 5px;
    height: 9px;

    background: #b9a68c;

    border-radius: 1px;

    animation:
        fallFragment
        var(--duration)
        linear
        infinite;
}


/* =====================================
   DAUN
===================================== */

@keyframes fallLeaf {

    0% {
        transform:
            translate3d(0, -30px, 0)
            rotate(0deg);
    }

    25% {
        transform:
            translate3d(
                var(--drift),
                25vh,
                0
            )
            rotate(120deg);
    }

    50% {
        transform:
            translate3d(
                calc(var(--drift) * -0.5),
                50vh,
                0
            )
            rotate(240deg);
    }

    75% {
        transform:
            translate3d(
                var(--drift),
                75vh,
                0
            )
            rotate(320deg);
    }

    100% {
        transform:
            translate3d(0, 110vh, 0)
            rotate(450deg);
    }
}


/* =====================================
   KELOPAK
===================================== */

@keyframes fallPetal {

    0% {
        transform:
            translate3d(0, -30px, 0)
            rotate(0deg);
    }

    30% {
        transform:
            translate3d(
                var(--drift),
                30vh,
                0
            )
            rotate(90deg);
    }

    60% {
        transform:
            translate3d(
                calc(var(--drift) * -0.5),
                60vh,
                0
            )
            rotate(200deg);
    }

    100% {
        transform:
            translate3d(0, 110vh, 0)
            rotate(300deg);
    }
}


/* =====================================
   SERPIHAN
===================================== */

@keyframes fallFragment {

    0% {
        transform:
            translate3d(0, -30px, 0)
            rotate(20deg);
    }

    50% {
        transform:
            translate3d(
                var(--drift),
                50vh,
                0
            )
            rotate(180deg);
    }

    100% {
        transform:
            translate3d(
                calc(var(--drift) * -0.5),
                110vh,
                0
            )
            rotate(360deg);
    }
}