.portfolio-page-hero.work-hero {
    padding-block: clamp(34px, 3.25vw, 48px);
}

.work-hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: clamp(16px, 3vw, 34px);
}

.work-hero-copy h1 {
    text-wrap: balance;
}

.work-hero .portfolio-kicker {
    color: var(--portfolio-red);
    font-size: .82rem;
    line-height: inherit;
}

.work-hero-art {
    position: relative;
    justify-self: center;
    width: min(100%, 36rem);
    aspect-ratio: 5 / 3;
    overflow: hidden;
}

.work-hero .work-hero-art img {
    position: absolute;
    top: var(--piece-top);
    left: var(--piece-left);
    display: block;
    width: var(--piece-width);
    height: auto;
    max-height: none;
    object-fit: contain;
    filter: none;
}

.work-hero-landscape {
    --piece-top: 7%;
    --piece-left: 18%;
    --piece-width: 38%;
}

.work-hero-chart {
    --piece-top: 22%;
    --piece-left: 48%;
    --piece-width: 43%;
}

.work-hero-gallery {
    --piece-top: 36%;
    --piece-left: 9%;
    --piece-width: 55%;
}

@media (min-width: 64rem) {
    .work-hero-layout {
        grid-template-columns: minmax(30rem, 1.05fr) minmax(0, 1fr);
        column-gap: clamp(24px, 3.5vw, 64px);
    }

    .work-hero-art {
        width: min(100%, 40rem);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .work-hero .work-hero-art img {
        animation: work-hero-assemble 7.2s cubic-bezier(.64, 0, .22, 1) var(--arrival, 0s) infinite backwards;
    }

    .work-hero-landscape {
        --scatter-x: -27%;
        --scatter-y: -14%;
        --scatter-turn: -20deg;
        --scatter-scale: .64;
    }

    .work-hero-chart {
        --scatter-x: 19%;
        --scatter-y: -12%;
        --scatter-turn: 19deg;
        --scatter-scale: .66;
        --arrival: .25s;
    }

    .work-hero-gallery {
        --scatter-x: -4%;
        --scatter-y: 12%;
        --scatter-turn: -12deg;
        --scatter-scale: .7;
        --arrival: .62s;
    }

    /* Match the assembly, hold, and scatter phases of the Services hero. */
    @keyframes work-hero-assemble {
        0%, 7%, 94%, 100% {
            transform: translate(var(--scatter-x), var(--scatter-y)) rotate(var(--scatter-turn)) scale(var(--scatter-scale));
        }

        24% {
            transform:
                translate(calc(var(--scatter-x) * -.07), calc(var(--scatter-y) * -.07))
                rotate(calc(var(--scatter-turn) * -.08))
                scale(1.025);
        }

        32%, 75% {
            transform: none;
        }

        75% {
            animation-timing-function: cubic-bezier(.55, 0, .68, 1);
        }
    }
}
