.home-petal-layer {
    position: fixed;
    inset: 0;
    z-index: 40;
    overflow: hidden;
    pointer-events: none;
    contain: layout paint;
}

.home-petal {
    position: absolute;
    top: -40px;
    display: block;
    line-height: 1;
    opacity: 0;
    user-select: none;
    will-change: transform, opacity;

    --home-petal-opacity: 0.75;
    --home-petal-drift: 35px;

    filter: drop-shadow(0 2px 3px rgba(133, 15, 55, .2));

    animation: home-petal-fall linear forwards;
}

@keyframes home-petal-fall {
    0% {
        opacity: 0;
        transform: translate3d(0, -30px, 0) rotate(0deg);
    }

    8% {
        opacity: var(--home-petal-opacity);
    }

    45% {
        transform: translate3d(
                var(--home-petal-drift),
                48vh,
                0
        ) rotate(180deg);
    }

    88% {
        opacity: var(--home-petal-opacity);
    }

    100% {
        opacity: 0;
        transform: translate3d(
                calc(var(--home-petal-drift) * -0.5),
                105vh,
                0
        ) rotate(360deg);
    }
}

@media (max-width: 767px) {
    .home-petal-layer {
        opacity: 0.85;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-petal-layer {
        display: none !important;
    }
}