/* These wrappers preserve the existing desktop flex composition. */
.bf-hero__heading-group,
.bf-hero__details {
    display: contents;
}

/* Put the real artwork alongside the title instead of behind the page. */
@media (max-width: 1024px), (max-width: 1366px) and (hover: none) and (pointer: coarse) {
    .bf-hero .bf-hero__grid {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
        grid-template-rows: auto auto;
        align-content: center;
        align-items: center;
        column-gap: clamp(12px, 2vw, 28px);
        row-gap: clamp(24px, 4vw, 42px);
        min-height: 100svh;
        padding-block: max(132px, calc(env(safe-area-inset-top) + 112px)) max(44px, calc(env(safe-area-inset-bottom) + 28px));
    }

    .bf-hero .bf-hero__content {
        display: contents;
    }

    .bf-hero .bf-hero__heading-group {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        grid-column: 1;
        grid-row: 1;
        min-width: 0;
        container-type: inline-size;
        position: relative;
        z-index: 25;
    }

    .bf-hero .bf-hero-eyebrow {
        gap: 10px;
        margin: 0 0 18px;
        max-width: 100%;
    }

    .bf-hero .bf-script-label {
        margin: 0;
        font-size: clamp(14px, 2.3vw, 23px);
        line-height: 1.5;
    }

    .bf-hero .bf-hero-eyebrow__line {
        width: clamp(16px, 2.2vw, 30px);
        flex-shrink: 0;
    }

    .bf-hero .bf-hero-title {
        width: 100%;
        font-size: clamp(21px, 6.5vw, 74px);
        gap: .055em;
        line-height: 1;
    }

    .bf-hero .bf-hero__visual {
        grid-column: 2;
        grid-row: 1;
        position: relative;
        inset: auto;
        width: 100%;
        height: auto;
        min-height: 0;
        max-width: none;
        margin: 0;
        align-self: center;
        opacity: 1;
        transform: none;
        isolation: isolate;
        pointer-events: none;
    }

    .bf-hero .bf-hero__visual::before {
        content: '';
        position: absolute;
        inset: 6% -3%;
        z-index: -1;
        border-radius: 50%;
        background: radial-gradient(ellipse, rgba(199, 149, 89, .15), transparent 70%);
    }

    .bf-hero .bf-hero-pan-wrap {
        width: calc(100% + var(--bf-device-gutter));
        max-width: 680px;
        flex-shrink: 0;
        min-width: 0;
        margin: 0;
        transform: none;
    }

    .bf-hero .bf-hero-pan {
        width: 100%;
        height: auto;
        max-width: 100%;
        object-fit: contain;
        filter: drop-shadow(0 16px 22px rgba(0, 0, 0, .45));
    }

    .bf-hero .bf-hero__details {
        display: grid;
        grid-column: 1 / -1;
        grid-row: 2;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 24px 32px;
        min-width: 0;
        width: 100%;
    }

    .bf-hero .bf-hero-description {
        margin: 0;
        max-width: 52ch;
        font-size: 15px;
        line-height: 1.85;
    }

    .bf-hero .bf-hero-divider {
        display: none;
    }

    .bf-hero .bf-hero__actions {
        display: flex;
        width: auto;
        margin: 0;
        align-items: center;
        justify-content: flex-end;
    }

    .bf-hero .bf-hero-btn {
        min-height: 52px;
        max-width: 100%;
        white-space: nowrap;
    }

    .bf-hero .bf-hero-benefits-wrap {
        grid-column: 1 / -1;
        width: 100%;
        max-width: none;
        margin: 0;
        padding-top: 22px;
    }

    .bf-hero .bf-hero__benefits {
        margin: 0;
        padding: 0;
    }
}

@supports (font-size: 1cqi) {
    @media (max-width: 1024px), (max-width: 1366px) and (hover: none) and (pointer: coarse) {
        .bf-hero .bf-hero-title {
            font-size: clamp(21px, 16cqi, 74px);
        }
    }
}

@media (max-width: 700px) {
    .bf-hero .bf-hero__grid {
        column-gap: 12px;
        row-gap: 24px;
        padding-top: max(112px, calc(env(safe-area-inset-top) + 96px));
        padding-bottom: max(32px, calc(env(safe-area-inset-bottom) + 20px));
    }

    .bf-hero .bf-hero-eyebrow {
        margin-bottom: 12px;
        gap: 7px;
    }

    .bf-hero .bf-hero__details {
        grid-template-columns: minmax(0, 1fr);
        gap: 20px;
    }

    .bf-hero .bf-hero-description {
        max-width: 48ch;
        font-size: 14px;
        line-height: 1.8;
    }

    .bf-hero .bf-hero__actions {
        justify-content: flex-start;
    }

    .bf-hero .bf-hero-btn {
        width: 100%;
        justify-content: space-between;
    }

    .bf-hero .bf-hero-benefits-wrap {
        padding-top: 16px;
    }

    .bf-hero .bf-hero-benefit,
    .bf-hero .bf-hero-benefit:first-child,
    .bf-hero .bf-hero-benefit:last-child {
        padding: 12px 0;
    }
}

@media (max-width: 380px) {
    .bf-hero .bf-script-label {
        font-size: 13px;
    }

    .bf-hero .bf-hero-eyebrow__line {
        display: none;
    }
}

@media (max-height: 600px) and (orientation: landscape) {
    .bf-hero .bf-hero__grid {
        align-content: start;
    }
}
