.wp-block-group.one-202x-pattern-hero003_shapebanner {
    --a2e-hero-gutter: clamp(1.5rem, 5vw, 4.5rem);
    --a2e-hero-mask: url("../../images/masks/hero-shape-1.png");
    --a2e-hero-media-width: 137.1163%;
    --a2e-hero-media-offset: -37.1163%;
    --a2e-hero-media-ratio: 990 / 583;

    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 574fr) minmax(0, 722fr);
    grid-template-areas: "content media";
    gap: var(--a2e-hero-gutter);
    min-height: 36.4375rem;
    /* Align the copy with the content; allow the mask one gutter of visual bleed. */
    padding-block: 0;
    padding-inline: var(--a2e-section-inset) max(0px, calc(var(--a2e-section-inset) - var(--a2e-hero-gutter)));

    &.a2e-hero003--shape-2 {
        --a2e-hero-mask: url("../../images/masks/hero-shape-2.png");
        --a2e-hero-media-width: 120.3436%;
        --a2e-hero-media-offset: -20.3436%;
        --a2e-hero-media-ratio: 868.881 / 583;
    }

    &.a2e-hero003--shape-3 {
        --a2e-hero-mask: url("../../images/masks/hero-shape-3.png");
        --a2e-hero-media-width: 149.6015%;
        --a2e-hero-media-offset: -49.6015%;
        --a2e-hero-media-ratio: 1080.123 / 583;
    }

    &.a2e-hero003--shape-4 {
        --a2e-hero-mask: url("../../images/masks/hero-shape-4.png");
        --a2e-hero-media-width: 100.9701%;
        --a2e-hero-media-offset: -0.9701%;
        --a2e-hero-media-ratio: 729.004 / 583;
    }

    &.a2e-hero003--shape-5 {
        --a2e-hero-mask: url("../../images/masks/hero-shape-5.png");
        --a2e-hero-media-width: 103.3093%;
        --a2e-hero-media-offset: -3.3093%;
        --a2e-hero-media-ratio: 745.893 / 583;
    }

    &.a2e-hero003--media-left {
        --a2e-hero-media-offset: 0%;

        grid-template-columns: minmax(0, 722fr) minmax(0, 574fr);
        grid-template-areas: "media content";
        padding-inline: max(0px, calc(var(--a2e-section-inset) - var(--a2e-hero-gutter))) var(--a2e-section-inset);

        & .a2e-hero003__title {
            padding-inline-end: 0;
        }

        & .one-202x-media-cover__video-control {
            inset-inline: 25% auto;
        }
    }

    & > .a2e-hero003__content {
        grid-area: content;
        position: relative;
        z-index: 1;
        display: flex;
        min-width: 0;
        margin: 0;
        padding-block: 6rem 4.5rem;
        flex-direction: column;
        justify-content: space-between;
        gap: var(--wp--preset--spacing--md);
    }

    & .a2e-hero003__title {
        margin: 0 0 -1px;
        padding-inline-end: 3.75rem;
        font-weight: 600;
        line-height: 0.933333;
        letter-spacing: -1.3px;
    }

    & .a2e-hero003__details,
    & .a2e-hero003__description {
        margin: 0;
    }

    & .a2e-hero003__description {
        font-size: var(--wp--preset--font-size--body);
        line-height: 1.4;
        letter-spacing: 0.5px;
    }

    & .a2e-hero003__details > p + p {
        margin-block-start: var(--wp--preset--spacing--sm);
    }

    & .a2e-hero003__statistics {
        gap: 1.5rem 2rem;
        margin-block-start: 1.5rem;
    }

    & .a2e-hero003__statistic {
        & p {
            margin: 0;
            line-height: 1.25;
            letter-spacing: 0;
        }

        & .a2e-hero003__number {
            font-weight: 600;
            line-height: 1.125;
            letter-spacing: 0.25px;
        }
    }

    & .a2e-hero003__actions {
        gap: 1rem;
        margin-block-start: 2.5rem;
    }

    & > .a2e-hero003__media {
        grid-area: media;
        align-self: start;
        width: var(--a2e-hero-media-width);
        aspect-ratio: var(--a2e-hero-media-ratio);
        min-height: 0;
        margin: 0 0 0 var(--a2e-hero-media-offset);

        /* Preserve the shape's proportions independently of the copy's height. */
        & .one-202x-media-cover__media,
        & .one-202x-media-cover__overlay {
            mask-image: var(--a2e-hero-mask);
            mask-mode: alpha;
            mask-repeat: no-repeat;
            mask-position: center;
            mask-size: contain;
        }

        & .one-202x-media-cover__video-control {
            inset-inline-end: 25%;
        }

        /* Native manual-video controls need the full rectangular player. */
        &[data-playback-mode="manual"] {
            align-self: stretch;
            width: 100%;
            aspect-ratio: auto;
            margin: 0;

            & .one-202x-media-cover__media {
                mask-image: none;
            }
        }
    }

    @media (max-width: 37.5rem) {
        &,
        &.a2e-hero003--media-left {
            grid-template-columns: minmax(0, 1fr);
            grid-template-areas: "content" "media";
            gap: 0;
            min-height: 0;
            padding: 0;
        }

        & > .a2e-hero003__content {
            padding: 3rem var(--a2e-hero-gutter);
        }

        & .a2e-hero003__title {
            max-width: 34rem;
            margin: 0;
            padding: 0;
        }

        & .a2e-hero003__description {
            max-width: 36rem;
        }

        & > .a2e-hero003__media {
            width: 100%;
            margin: 0;
            aspect-ratio: var(--a2e-hero-media-ratio);
        }
    }

    @media (37.5rem < width <= 68.75rem) {
        --a2e-hero-tablet-shift: clamp(6rem, 18vw, 12rem);

        overflow: clip;
        grid-template-columns: minmax(0, 58fr) minmax(0, 42fr);

        &.a2e-hero003--media-left {
            grid-template-columns: minmax(0, 42fr) minmax(0, 58fr);
        }

        & > .a2e-hero003__content {
            isolation: isolate;
            padding-block: 3rem;

            /* Keep the copy on a solid surface, then fade into the image. */
            &::before {
                content: "";
                position: absolute;
                z-index: -1;
                inset-block: 0;
                inset-inline: calc(-1 * var(--a2e-section-inset)) -4rem;
                background: linear-gradient(
                    90deg,
                    var(--wp--preset--color--base) 0%,
                    var(--wp--preset--color--base) calc(100% - 3rem),
                    transparent 100%
                );
                pointer-events: none;
            }
        }

        &.a2e-hero003--media-left > .a2e-hero003__content::before {
            inset-inline: -4rem calc(-1 * var(--a2e-section-inset));
            background: linear-gradient(
                270deg,
                var(--wp--preset--color--base) 0%,
                var(--wp--preset--color--base) calc(100% - 3rem),
                transparent 100%
            );
        }

        & .a2e-hero003__title {
            padding-inline-end: 0;
        }

        /* Keep the desktop silhouette at full height and crop its outer edge. */
        & > .a2e-hero003__media {
            justify-self: start;
            width: auto;
            height: 100%;
        }

        &.a2e-hero003--media-left > .a2e-hero003__media {
            justify-self: end;
        }

        & > .a2e-hero003__media:not([data-playback-mode="manual"]) {
            /* Extra copy must not enlarge the silhouette and zoom into the photo. */
            max-height: 36.4375rem;
            translate: calc(-1 * var(--a2e-hero-tablet-shift)) 0;
        }

        &.a2e-hero003--media-left > .a2e-hero003__media:not([data-playback-mode="manual"]) {
            translate: var(--a2e-hero-tablet-shift) 0;
        }

        /* Keep background-video controls inside the visible crop. */
        & > .a2e-hero003__media[data-playback-mode="autoplay"] .one-202x-media-cover__video-control {
            inset-block: 1.5rem auto;
            inset-inline: calc(25vw - 3rem + var(--a2e-hero-tablet-shift)) auto;
        }

        &.a2e-hero003--media-left > .a2e-hero003__media[data-playback-mode="autoplay"] .one-202x-media-cover__video-control {
            inset-inline: auto calc(1.5rem + var(--a2e-hero-tablet-shift));
        }
    }
}
