@media (max-width: 899px) {
    [style*="--mobile-bg-image"] {
        background-image: var(--mobile-bg-image) !important;
        background-size: cover !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
    }
}

/* Hero art direction: phone <640, tablet 640–1023, desktop >=1024.
   The frame reserves space before images load; <picture> chooses one asset. */
.hero .slider--hero .sl-slide {
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 3 / 1;
}
.hero-bg {
    position: absolute;
    inset: 0;
    display: block;
    pointer-events: none;
    user-select: none;
}
.hero-bg img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}
@media (min-width: 640px) and (max-width: 1023px) {
    .hero .slider--hero .sl-slide { aspect-ratio: 11 / 5; }
    .hero .hero-slide-copy {
        max-width: 56%;
        gap: .65rem;
        padding: clamp(1.5rem, 3vw, 2rem);
    }
    .hero .hero-slide-t { font-size: clamp(1.4rem, 3vw, 1.9rem); }
    .hero .hero-slide-s { font-size: .875rem; line-height: 1.8; }
    .hero .hero-slide .sl-media {
        inset-block: 0;
        inset-inline-start: auto;
        inset-inline-end: 0;
        width: 58%;
        height: auto;
        -webkit-mask-image: linear-gradient(to left, transparent, #000 25%);
        mask-image: linear-gradient(to left, transparent, #000 25%);
    }
}
@media (max-width: 639px) {
    .hero .slider--hero .sl-slide { aspect-ratio: 7 / 5; }
    .hero .hero-slide-copy { padding: 1.1rem 1rem; }
    .hero .hero-slide-t { font-size: clamp(1.125rem, 4.8vw, 1.6rem); }
    .hero .hero-slide-s { font-size: .8125rem; line-height: 1.7; }
}
/* The inset remains a separate row throughout the tablet range. */
@media (min-width: 900px) and (max-width: 1023px) {
    .hero .hero-notch {
        position: relative;
        inset: auto;
        width: auto;
        height: auto;
        margin-top: .5rem;
        padding: 0;
        background: transparent;
    }
    .hero .hero-notch::before, .hero .hero-notch::after { display: none; }
    .hero .hero-notch .hero-inset {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 1rem;
        min-height: 0;
        padding: .75rem 1rem;
        border-radius: 16px;
    }
    .hero .hero-inset::before { display: none; }
    .hero .hero-inset-k { display: none; }
    .hero .hero-inset-big { font-size: 1.8rem; }
    .hero .hero-inset-row { flex: 1; }
    .hero .hero-inset-row .hero-inset-t { max-width: none; font-size: .9375rem; }
    .hero .hero-inset-cta { margin: 0; }
}

/* Campaign banners are complete graphics: no inset covers their artwork. */
.hero--campaign .hero-stage { --hr: 16px; }
/* Quiet controls: small visible circles with generous click/touch targets. */
.hero-slider-frame { position: relative; }
.hero .hero-nav-arrow {
    position: absolute;
    z-index: 4;
    top: 50%;
    translate: 0 -50%;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: rgba(23, 29, 32, .56);
    cursor: pointer;
    touch-action: manipulation;
}
.hero-nav-arrow--prev { inset-inline-start: 4px; }
.hero-nav-arrow--next { inset-inline-end: 4px; }
.hero .hero-nav-arrow::before {
    content: "";
    position: absolute;
    inset: 8px;
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: inherit;
    background: rgba(255, 255, 255, .38);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(23, 29, 32, .04);
    transition: background .25s ease, box-shadow .25s ease, transform .25s ease;
}
.hero .hero-nav-arrow svg { position: relative; transition: color .25s ease; }
.hero .hero-nav-arrow:hover { color: rgba(23, 29, 32, .85); }
.hero .hero-nav-arrow:hover::before {
    background: rgba(255, 255, 255, .72);
    box-shadow: 0 2px 12px rgba(23, 29, 32, .08);
}
.hero .hero-nav-arrow:active::before { transform: scale(.92); }
.hero .hero-nav-arrow:focus-visible { outline: none; }
.hero .hero-nav-arrow:focus-visible::before { outline: 2px solid #4d799f; outline-offset: 3px; }
.hero .hero-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    padding-block: 2px;
}
.hero .hero-pagination button {
    position: relative;
    flex: 0 0 28px;
    width: 28px;
    min-width: 28px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
    touch-action: manipulation;
}
.hero .hero-pagination button::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--text) 22%, transparent);
    transform: translate(-50%, -50%);
    transition: background .25s ease, transform .25s ease;
}
.hero .hero-pagination button:hover::before { background: color-mix(in srgb, var(--text) 45%, transparent); }
.hero .hero-pagination button[aria-current="true"]::before {
    background: color-mix(in srgb, var(--text) 60%, transparent);
    transform: translate(-50%, -50%) scale(1.33);
}
.hero .hero-pagination button:focus-visible { outline: 2px solid #4d799f; outline-offset: -4px; }
.no-js .hero .hero-nav-arrow, .no-js .hero .hero-pagination { display: none; }
@media (prefers-reduced-motion: reduce) {
    .hero .hero-nav-arrow::before,
    .hero .hero-nav-arrow svg,
    .hero .hero-pagination button::before { transition: none; }
}
.hero-banner-link { position: absolute; inset: 0; z-index: 3; display: block; }
.hero-banner-link:focus-visible { outline: 3px solid #4d799f; outline-offset: -5px; border-radius: 16px; }
.hero--campaign .is-banner .hero-bg img { object-fit: contain; }
.hero--campaign .hero-notch {
    position: relative;
    inset: auto;
    width: auto;
    height: auto;
    margin: 0 0 1rem;
    padding: 0;
    background: transparent;
}
.hero--campaign .hero-notch::before, .hero--campaign .hero-notch::after { display: none; }
.hero--campaign .hero-notch .hero-inset {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    min-height: 0;
    padding: .65rem 1rem;
    border-radius: 14px;
}
.hero--campaign .hero-inset::before, .hero--campaign .hero-inset-k { display: none; }
.hero--campaign .hero-inset-row { flex: 1; }
.hero--campaign .hero-inset-row .hero-inset-t { max-width: none; font-size: .875rem; }
.hero--campaign .hero-inset-big { font-size: 1.75rem; }
.hero--campaign .hero-inset-cta { margin: 0; font-size: .8125rem; }
.hero--campaign:has(.is-banner) > .shell { max-width: 1648px; padding-inline: 16px; }
.hero--campaign:has(.is-banner) .slider--hero .sl-slide { aspect-ratio: 24 / 5; }
.hero--campaign:has(.is-banner) .hero-slide-copy { padding: clamp(1rem, 2vw, 2rem); gap: .5rem; max-width: 55%; }
.hero--campaign:has(.is-banner) .hero-slide-t { font-size: clamp(1.25rem, 2.1vw, 2rem); }
@media (min-width: 640px) and (max-width: 1023px) {
    .hero--campaign:has(.is-banner) .slider--hero .sl-slide { aspect-ratio: 16 / 5; }
}
@media (max-width: 639px) {
    .hero .hero-nav-arrow--prev { inset-inline-start: -16px; }
    .hero .hero-nav-arrow--next { inset-inline-end: -16px; }
    .hero--campaign:has(.is-banner) .slider--hero .sl-slide { aspect-ratio: 2; }
    .hero--campaign:has(.is-banner) .hero-slide-copy { max-width: 64%; padding: .875rem; }
    .hero--campaign:has(.is-banner) .hero-slide-t { font-size: clamp(1rem, 4.5vw, 1.35rem); }
    .hero--campaign .hero-inset-row .hero-inset-t { font-size: .75rem; }
    .hero--campaign .hero-inset-big { font-size: 1.35rem; }
    .hero--campaign .hero-inset-cta { font-size: .75rem; }
}
