.home-panorama {
    position: relative;
    overflow: hidden;
    --panorama-scale: 1.045;
}

.home-panorama--original { width: 100%; aspect-ratio: 659 / 260; }
.furreality .designer-home .home-panorama--original .home-hero__scene {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-panorama--original { background: #171438; }

.furreality .designer-home .home-panorama--original + .home-hero__sticker {
    left: 69.5%;
    top: 39%;
    right: auto;
    width: 21.5%;
    translate: -50% -50%;
}
.furreality .designer-home .home-panorama--original + .home-hero__sticker > img { rotate: -3deg; }

.home-panorama__layers {
    position: absolute;
    inset: 0;
    container-type: size;
    --art-pixel: max(calc(100cqw / 2636), calc(100cqh / 1040));
    --anchor: .5;
    pointer-events: none;
    scale: var(--panorama-scale);
}

.designer-home .home-panorama .home-panorama__layers > img {
    position: absolute;
    left: calc((100cqw - 2636 * var(--art-pixel)) * var(--anchor) + var(--x) * var(--art-pixel));
    top: calc((100cqh - 1040 * var(--art-pixel)) / 2 + var(--y) * var(--art-pixel));
    width: calc(var(--w) * var(--art-pixel));
    height: auto;
    max-width: none;
    transition: translate 160ms ease-out;
}

.home-panorama__confetti {
    position: absolute;
    inset: 0;
    overflow: hidden;
    container-type: size;
}
.home-panorama__confetti > span {
    position: absolute;
    top: 0;
    background-image: var(--paper-image);
    background-repeat: no-repeat;
    animation: home-paper-fall var(--fall) linear var(--delay) infinite;
}

@keyframes home-paper-fall {
    from { translate: 0 -160%; }
    to { translate: var(--drift) calc(100cqh + 160%); }
}

.furreality .designer-home .home-panorama--original + .home-hero__sticker > .b1 { left: -8%; right: auto; }

@media (min-width: 601px) and (max-width: 950px) {
    .furreality .designer-home .home-panorama--original + .home-hero__sticker > .b1 { bottom: 91%; }
}

@media (max-width: 760px) {
    .home-panorama { --panorama-scale: 1.07; }
    .home-panorama--original { aspect-ratio: 2; }
    .furreality .designer-home .home-panorama--original + .home-hero__sticker { left: 75%; width: 27%; }
    .designer-home .home-hero .hero-trial {
        position: relative;
        inset: auto;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 8px 6px;
        transform: none;
    }
    .home-hero .hero-trial fieldset {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        gap: 6px 10px;
    }
    .home-hero .hero-trial__pick { padding: 5px 9px; font-size: clamp(12px, 3.33vw, 14px); }
    .home-hero .hero-trial [role=status]:empty { display: none; }
}

@media (max-width: 600px) {
    /* Ease the compact crop back to the regular mobile layout between 576 and 600px. */
    .home-panorama__layers, .home-panorama--original + .home-hero__sticker {
        --compact-gap: max(0px, calc(100vw - 576px));
    }
    .home-panorama__layers { --anchor: .4; }
    .home-panorama__layers > img[src$="/flyer.webp"] {
        margin-left: max(0px, calc(6cqw - 1.5 * var(--compact-gap)));
        margin-top: max(0px, calc(6cqh - .9375 * var(--compact-gap)));
    }
    .home-panorama--original { aspect-ratio: 1.6; min-height: 248px; }
    .furreality .designer-home .home-panorama--original + .home-hero__sticker {
        left: auto;
        right: max(5%, calc(10% - 1.25 * var(--compact-gap)));
        top: max(40%, calc(42% - .3125 * var(--compact-gap)));
        width: max(26%, calc(31% - 1.25 * var(--compact-gap)));
        translate: 0 -50%;
    }
    .furreality .designer-home .home-panorama--original + .home-hero__sticker > .b2 { right: 0; }
    .home-panorama__confetti > span:nth-child(even) { display: none; }
}

@media (prefers-reduced-motion: no-preference) {
    .furreality .designer-home .home-panorama--original + .home-hero__sticker {
        transform: translate(var(--sticker-x, 0px), var(--sticker-y, 0px));
        transition: transform 160ms ease-out;
    }
    .home-panorama--original .home-hero__scene { transform: scale(var(--panorama-scale)); }
}

@media (prefers-reduced-motion: reduce) {
    .home-panorama__layers { scale: 1; }
    .home-panorama__confetti { display: none; }
}
