@media screen and (prefers-reduced-motion: no-preference) {
    /* The real sky lingers below the hero's normal boundary. Its nav and
       links counter the offset, so their original hit areas scroll normally. */
    html[data-scroll-handoffs] [data-handoff="hero-vision"] .duna-home {
        --sky-lag: calc(42svh * var(--hero-vision));
        z-index: 1;
        translate: 0 var(--sky-lag);
        opacity: calc(1 - var(--hero-vision));
        mask-image: linear-gradient(to bottom,
            #000 calc(100% - 65% * var(--hero-vision)),
            transparent calc(112% - 14% * var(--hero-vision)));
    }
    html[data-scroll-handoffs] [data-handoff="hero-vision"] .duna-home > :is(header, .duna-home__intro, footer) {
        translate: 0 calc(0px - var(--sky-lag));
    }
    html[data-scroll-handoffs] [data-handoff="hero-vision"] .duna-vision {
        position: relative;
        z-index: 2;
        background-color: transparent;
    }
    html[data-scroll-handoffs] [data-handoff="hero-vision"] .duna-vision__words {
        --approach: calc(1 - var(--hero-vision));
        pointer-events: none;
        transform-origin: 68% 58%;
        transform: translate3d(calc(4vw * var(--approach)), calc(-22svh * var(--approach)), 0)
            scale(calc(1 - .27 * var(--approach)));
        opacity: var(--hero-vision);
    }
    html[data-scroll-handoffs] [data-handoff="hero-vision"] .duna-vision__copy {
        translate: calc(-3vw * (1 - var(--hero-vision))) 0;
        opacity: var(--hero-vision);
    }

    /* Words gather on the same diagonal from which the deck opens. Only
       the existing cover list crosses the seam; controls stay on their page. */
    html[data-scroll-handoffs] [data-handoff="vision-games"] .duna-vision__words {
        transform-origin: 72% 75%;
        transform: translate3d(calc(4vw * var(--vision-games)), calc(15svh * var(--vision-games)), 0)
            rotate(calc(-7deg * var(--vision-games))) scale(calc(1 - .46 * var(--vision-games)));
        opacity: calc(1 - var(--vision-games));
    }
    html[data-scroll-handoffs] [data-handoff="vision-games"] .duna-vision__copy {
        opacity: calc(1 - var(--vision-games));
    }
    html[data-scroll-handoffs] :is([data-handoff="vision-games"], [data-handoff="games-philosophy"]) .duna-games {
        position: relative;
        z-index: 1;
    }
    html[data-scroll-handoffs] :is([data-handoff="vision-games"], [data-handoff="games-philosophy"]) .duna-games__sheet {
        overflow: visible;
    }
    html[data-scroll-handoffs] [data-handoff="vision-games"] .duna-games__covers {
        --folded: calc(1 - var(--vision-games));
        transform-origin: 65% 66%;
        transform: translate3d(calc(-5vw * var(--folded)), calc(-76svh * var(--folded)), 0)
            rotate(calc(-7deg * var(--folded))) scale(calc(1 - .46 * var(--folded)));
        opacity: var(--vision-games);
    }
    html[data-scroll-handoffs] [data-handoff="vision-games"] .duna-games__cover {
        /* Keep carousel transforms independent of the scroll position. */
        rotate: calc((4 - var(--stack)) * 4deg * var(--folded));
    }
    html[data-scroll-handoffs] [data-handoff="vision-games"] :is(.duna-games__copy, .duna-games__navigation) {
        opacity: clamp(.14, var(--vision-games), 1);
    }

    /* The cards peel back across the upper edge of 03. The star field
       underneath opens in that direction on exactly the same progress. */
    html[data-scroll-handoffs] [data-handoff="games-philosophy"] .duna-games__gallery {
        transform-origin: 75% 73%;
        transform: translate3d(calc(6vw * var(--games-philosophy)), calc(60svh * var(--games-philosophy)), 0)
            rotate(calc(-11deg * var(--games-philosophy))) scale(calc(1 - .26 * var(--games-philosophy)));
        opacity: calc(1 - var(--games-philosophy));
    }
    html[data-scroll-handoffs] [data-handoff="games-philosophy"] .duna-games__cover {
        rotate: calc((var(--stack) - 2) * 5deg * var(--games-philosophy));
    }
    html[data-scroll-handoffs] [data-handoff="games-philosophy"] :is(.duna-games__copy, .duna-games__navigation) {
        opacity: clamp(.14, calc(1 - var(--games-philosophy)), 1);
    }
    html[data-scroll-handoffs] [data-handoff="games-philosophy"] .duna-closing-stage {
        --edge: calc(100% - 148% * var(--games-philosophy));
        mask-image: linear-gradient(116deg, transparent var(--edge), #000 calc(var(--edge) + 44%));
    }
    html[data-scroll-handoffs] [data-handoff="games-philosophy"] .duna-philosophy__copy {
        opacity: clamp(.13, calc(1.35 * var(--games-philosophy)), 1);
    }
    html[data-scroll-handoffs] [data-handoff="games-philosophy"] .duna-philosophy__verse {
        opacity: clamp(.08, calc(1.48 * var(--games-philosophy) - .48), 1);
    }

    @media (max-width: 44rem) {
        /* With the cards below the copy, the word field hands off to the
           incoming title. The actual covers unfold in their own lower row. */
        html[data-scroll-handoffs] [data-handoff="vision-games"] .duna-vision__words {
            transform-origin: 20% 95%;
            transform: translate3d(0, calc(8svh * var(--vision-games)), 0)
                rotate(calc(-4deg * var(--vision-games))) scale(calc(1 - .34 * var(--vision-games)));
        }
        html[data-scroll-handoffs] [data-handoff="vision-games"] :is(.duna-games__label, .duna-games__copy h2) {
            translate: 0 calc(-10svh * (1 - var(--vision-games)));
        }
        html[data-scroll-handoffs] [data-handoff="vision-games"] .duna-games__covers {
            transform: translateX(calc(6vw * var(--folded)))
                rotate(calc(-5deg * var(--folded))) scale(calc(1 - .32 * var(--folded)));
        }
        /* Keep the outgoing deck and its controls together inside the
           illustration row as the philosophy title comes in from the right. */
        html[data-scroll-handoffs] [data-handoff="games-philosophy"] .duna-games__gallery {
            transform-origin: right center;
            transform: translateX(calc(18vw * var(--games-philosophy)))
                rotate(calc(-4deg * var(--games-philosophy))) scale(calc(1 - .36 * var(--games-philosophy)));
        }
        html[data-scroll-handoffs] [data-handoff="games-philosophy"] .duna-philosophy__copy h2 {
            translate: calc(6vw * (1 - var(--games-philosophy))) 0;
        }
    }

    html[data-scroll-handoffs] [data-handoff] :is(.duna-home, .duna-games__covers, .duna-games__copy,
        .duna-games__gallery, .duna-games__navigation, .duna-philosophy__copy):has(:focus-visible) {
        opacity: 1;
    }
}
