/* ========================================
Home
======================================== */

/* Hero — full-bleed slide, title above, named rules below */
.home-hero {
    --home-hero-ease: cubic-bezier(0.22, 1, 0.36, 1);
    position: relative;
    overflow: hidden;
    color: #fff;
    background-color: var(--color-primary);
}

/* Keeps the transparent header's white ink readable on bright slides */
.home-hero::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    z-index: 2;
    height: calc(var(--header-height) * 2);
    background: linear-gradient(to bottom, rgb(0 0 0 / 0.45) 0%, transparent 100%);
    pointer-events: none;
}

.home-hero__swiper {
    width: 100%;
    height: 100svh;
    min-height: 36rem;
}

.home-hero__slide {
    position: relative;
    overflow: hidden;
    background-color: var(--color-primary);
}

.home-hero__media {
    position: absolute;
    inset: 0;
}

.home-hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to top, rgb(0 0 0 / 0.72) 0%, rgb(0 0 0 / 0.28) 38%, rgb(0 0 0 / 0.12) 68%, transparent 100%),
        linear-gradient(90deg, rgb(0 0 0 / 0.35) 0%, transparent 46%);
    pointer-events: none;
}

.home-hero__image,
.home-hero__video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Frozen frame while the slide video plays in the lightbox (and until it resumes inline). */
.home-hero__snapshot {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

/* Trial: YouTube muted bg — cover-scale iframe; poster until active. */
.home-hero__youtube {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.home-hero__youtube-poster {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.home-hero__youtube-frame {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    width: 100vw;
    height: 56.25vw; /* 16:9 */
    min-height: 100%;
    min-width: 177.78%; /* 16/9 */
    border: 0;
    /* Extra scale crops residual YouTube chrome at the edges */
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 0;
    transition: opacity 0.35s var(--home-hero-ease);
}

.home-hero__youtube.is-youtube-active .home-hero__youtube-frame {
    opacity: 1;
}

.home-hero__youtube.is-youtube-active .home-hero__youtube-poster {
    opacity: 0;
    transition: opacity 0.35s var(--home-hero-ease);
}

/* Placement only. Size and look come from .play-button. */
.home-hero__play {
    position: absolute;
    inset: 0;
    z-index: 3;
    margin: auto;
}

.home-hero__slide:not(.swiper-slide-active) .home-hero__play {
    pointer-events: none;
}

/* Title sits in the lower half, clear of the navigation */
.home-hero__copy {
    position: absolute;
    inset: auto 0 8.5rem;
    z-index: 2;
    padding-inline: var(--layout-gutter-x);
}

.home-hero__title {
    width: var(--layout-col-8);
    margin: 0;
    font-family: var(--font-manrope);
    font-size: clamp(2.25rem, 4.2vw, 4rem);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: 0em;
    color: #fff;
}

/* Editor emphasis (strong) maps to the accent line — no classed spans in CMS output */
.home-hero__title strong {
    font-weight: inherit;
    color: var(--color-brand-red);
}

/* Hidden until the slider is ready, so the entrance is the first time the title is seen */
.home-hero:not(.is-ready) .home-hero__title {
    opacity: 0;
}

/* Plays once the slide is in; the outgoing slide keeps its settled title while it fades */
.home-hero__slide.is-entering .home-hero__title {
    animation: home-hero-title-in 0.85s var(--home-hero-ease) 0.9s both;
}

@keyframes home-hero-title-in {
    from {
        opacity: 0;
        transform: translateY(1.75rem);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Bottom navigation: a rule, then the slide name */
.home-hero__nav {
    position: absolute;
    inset: auto auto 2.5rem var(--layout-gutter-x);
    z-index: 3;
    display: flex;
    gap: 1.75rem;
    width: var(--layout-col-9);
}

.home-hero__nav-item {
    display: flex;
    flex: 1 1 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
    min-width: 0;
    padding: 0;
    font: inherit;
    color: #fff;
    text-align: start;
    background: none;
    border: 0;
    cursor: pointer;
}

.home-hero__nav-item:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
}

.home-hero__nav-line {
    position: relative;
    display: block;
    width: 100%;
    height: 2px;
    overflow: hidden;
    background-color: rgb(255 255 255 / 0.35);
    transition: width 0.55s var(--home-hero-ease);
}

.home-hero__nav-fill {
    position: absolute;
    inset: 0;
    background-color: var(--color-brand-red);
    transform: scaleX(var(--home-hero-progress, 0));
    transform-origin: left center;
    /* Live autoplay updates the scale every frame, so only the handoff animates. */
    transition: none;
}

.home-hero__nav-item:not(.is-active) .home-hero__nav-fill {
    transition: transform 0.55s var(--home-hero-ease);
}

.home-hero__nav-label {
    font-size: var(--font-size-sm);
    font-weight: 500;
    line-height: 1.3;
    color: rgb(255 255 255 / 0.72);
    transition: color 0.55s var(--home-hero-ease);
}

.home-hero__nav-item.is-active .home-hero__nav-label,
.home-hero__nav-item:hover .home-hero__nav-label {
    color: #fff;
}

@media (min-width: 1024px) {
    .home-hero__copy {
        inset-block-end: 11rem;
        padding-inline-start: max(var(--layout-gutter-x), var(--layout-col-1));
    }

    .home-hero__title {
        width: var(--layout-col-7);
    }

    .home-hero__nav {
        inset-inline-start: max(var(--layout-gutter-x), var(--layout-col-1));
        width: var(--layout-col-10);
    }
}

@media (max-width: 767.98px) {
    .home-hero__swiper {
        height: 50svh;
        min-height: 0;
    }

    .home-hero__copy {
        inset-block-end: 5.75rem;
    }

    .home-hero__title {
        width: 100%;
        font-size: clamp(1.75rem, 7.6vw, 2.25rem);
    }

    .home-hero__nav {
        inset-inline-start: var(--layout-gutter-x);
        inset-inline-end: auto;
        inset-block-end: 1.75rem;
        align-items: center;
        gap: 0.5rem;
        width: auto;
    }

    .home-hero__nav-item {
        position: relative;
        flex: 0 0 auto;
        align-items: center;
        gap: 0;
        padding-block: 0.75rem;
    }

    .home-hero__nav-line,
    .home-hero__nav-fill {
        height: 4px;
        border-radius: 999px;
    }

    .home-hero__nav-line {
        width: 1.25rem;
    }

    .home-hero__nav-item.is-active .home-hero__nav-line {
        width: 2.25rem;
    }

    .home-hero__nav-label {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }
}

/* Video dialog — frame matches the player reference; backdrop is the page blur, not a black scrim */
.home-hero-player.dialog {
    --bs-dialog-width: var(--layout-col-10);
    --bs-dialog-bg: transparent;
    --bs-dialog-border-width: 0;
    --bs-dialog-border-color: transparent;
    --bs-dialog-border-radius: 0;
    --bs-dialog-box-shadow: none;
    --bs-dialog-backdrop-bg: rgb(0 0 0 / 0.2);
    --bs-dialog-backdrop-blur: 18px;
    --bs-dialog-transition-duration: var(--overlay-transition-duration);
    --bs-dialog-transition-timing: var(--overlay-transition-timing);
    background-color: transparent;
    border: 0;
    box-shadow: none;
    overflow: visible;
    transform: scale(0.96);
}

/* Bootstrap's dialog rules live in @layer, so unlayered page rules must restate the open state. */
.home-hero-player.dialog[open]:not(.hiding) {
    transform: none;
}

@starting-style {
    .home-hero-player.dialog[open] {
        transform: scale(0.96);
    }
}

.home-hero-player.dialog:not([open]) {
    position: fixed;
    pointer-events: none;
}

.home-hero-player.dialog::backdrop {
    background-color: rgb(0 0 0 / 0.2);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.home-hero-player.dialog.hiding::backdrop {
    background-color: transparent;
    backdrop-filter: blur(0);
    -webkit-backdrop-filter: blur(0);
}

@starting-style {
    .home-hero-player.dialog[open]::backdrop {
        background-color: transparent;
        backdrop-filter: blur(0);
        -webkit-backdrop-filter: blur(0);
    }
}

.home-hero-player__frame {
    width: 100%;
    overflow: hidden;
    background-color: #000;
    border-radius: var(--radius-xl);
    aspect-ratio: 16 / 9;
}

.home-hero-player__media,
.home-hero-player__media .plyr,
.home-hero-player__media .plyr__video-wrapper {
    width: 100%;
    height: 100%;
}

.home-hero-player__media .plyr {
    border-radius: inherit;
}

/* YouTube draws its title inside the iframe. Shift the frame up so that bar sits outside the crop. */
.home-hero-player__media .plyr--youtube .plyr__video-embed > iframe {
    position: absolute;
    top: -12%;
    left: 0;
    width: 100%;
    height: 112%;
}

.home-hero-player__close {
    position: fixed;
    top: 1.5rem;
    inset-inline-end: 1.5rem;
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    color: #fff;
    background-color: transparent;
    border: 1px solid rgb(255 255 255 / 0.85);
    border-radius: 50%;
    cursor: pointer;
}

.home-hero-player__close:focus {
    outline: none;
}

.home-hero-player__close:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
}

.home-hero-player__close-icon {
    display: block;
    width: 1rem;
    height: 1rem;
}

@media (max-width: 767.98px) {
    .home-hero__play {
        --play-button-size: 4.75rem;
    }

    .home-hero-player.dialog {
        --bs-dialog-width: calc(100% - 3rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-hero__slide.is-entering .home-hero__title {
        animation: none;
    }

    .home-hero__nav-line,
    .home-hero__nav-fill,
    .home-hero__nav-label {
        transition: none;
    }

    .home-hero-player.dialog,
    .home-hero-player.dialog::backdrop {
        transition: none;
    }
}

/* ========================================
Home About — headline + stats
0–1023: 2×2 stats with rules · ≥1024: 1×4 row, no rules
======================================== */
.home-about {
    background-color: var(--color-background);
    color: var(--color-text);
}

.home-about__inner {
    width: var(--layout-col-10);
    margin-inline: auto;
    padding-block: clamp(3.5rem, 8vw, 7.5rem);
}

.home-about__headline {
    width: 100%;
    margin: 0 0 clamp(2.75rem, 7vw, 5.5rem);
    font-family: var(--font-manrope);
    font-size: clamp(1.375rem, 2.6vw, 2rem);
    font-weight: 500;
    line-height: 1.35;
    letter-spacing: 0em;
    color: var(--color-text);
}

.home-about__headline strong {
    font-weight: 700;
    color: var(--color-brand-red);
}

.home-about__stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: clamp(1.25rem, 4vw, 2.5rem);
    row-gap: clamp(1.75rem, 4vw, 2.5rem);
    margin: 0;
    padding: 0;
    list-style: none;
}

.home-about__stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-self: start;
    width: max-content;
    max-width: 100%;
    gap: 0.5rem;
    padding-block-end: 1.25rem;
    border-bottom: 1px solid var(--color-border);
    text-align: center;
}

.home-about__stat-value {
    font-family: var(--font-manrope);
    font-size: clamp(3rem, 8vw, 4rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: 0em;
    font-variant-numeric: tabular-nums;
    color: var(--color-text);
    transition: color var(--transition-base);
}

.home-about__stat:hover .home-about__stat-value {
    color: var(--color-brand-red);
}

.home-about__stat-label {
    font-family: var(--font-manrope);
    font-size: var(--font-size-base);
    font-weight: 500;
    line-height: 1.35;
    color: var(--color-text);
}

@media (min-width: 1024px) {
    .home-about__inner {
        padding-block: clamp(5rem, 8vw, 8rem);
    }

    .home-about__headline {
        width: var(--layout-col-6);
        margin-block-end: clamp(4rem, 6vw, 6.5rem);
        font-size: clamp(2.0625rem, 2.6vw, 2.5rem);
    }

    .home-about__stats {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        column-gap: 2rem;
        row-gap: 0;
    }

    .home-about__stat {
        padding-block-end: 0;
        border-bottom: 0;
    }

    .home-about__stat-value {
        font-size: clamp(3.75rem, 4.2vw, 4.75rem);
    }

    .home-about__stat-label {
        font-size: var(--font-size-lg);
    }
}

/* ========================================
Home Spotlight — title + CTA left, image right
Mobile: content above image · ≥992: side-by-side
======================================== */
.home-spotlight {
    position: relative;
    overflow: visible;
    background-color: var(--color-surface);
    color: var(--color-text);
}

.home-spotlight__inner {
    display: flex;
    flex-direction: column;
    gap: clamp(2rem, 5vw, 3.5rem);
    width: var(--layout-col-10);
    margin-inline: auto;
    padding-block: clamp(3rem, 7vw, 6rem);
}

.home-spotlight__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
    width: 100%;
}

.home-spotlight__accent {
    display: block;
    width: 2.75rem;
    height: 0.25rem;
    background-color: var(--color-brand-red);
    border-radius: 999px;
}

.home-spotlight__copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.875rem;
    width: 100%;
}

.home-spotlight__title {
    margin: 0;
    font-family: var(--font-manrope);
    font-size: clamp(1.75rem, 3.2vw, 2.75rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0em;
    color: var(--color-text);
}

.home-spotlight__title strong {
    font-weight: 700;
    color: var(--color-brand-red);
}

.home-spotlight__description {
    margin: 0;
    max-width: 36rem;
    font-family: var(--font-manrope);
    font-size: clamp(1rem, 1.4vw, 1.125rem);
    font-weight: 400;
    line-height: 1.55;
    color: var(--color-text-muted);
}

.home-spotlight__description p {
    margin: 0;
}

.home-spotlight__icon {
    display: none;
}

.home-spotlight__icon-image {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 7.5rem;
    object-fit: contain;
    object-position: center;
}

.home-spotlight__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
    margin-block-start: 0.25rem;
}

.home-spotlight__media {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding-inline: 0.5rem;
}

.home-spotlight__stack {
    --home-spotlight-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --home-spotlight-duration: 520ms;
    --home-spotlight-fade: 240ms;

    position: relative;
    overflow: visible;
    width: 100%;
    max-width: 34rem;
    margin: 0;
    padding: 0;
    aspect-ratio: 5 / 4;
    list-style: none;
}

.home-spotlight__card {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 1;
    width: 32%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background-color: var(--color-surface);
    border-radius: clamp(0.75rem, 1.6vw, 1.25rem);
    box-shadow:
        0 0.55rem 1.25rem rgb(0 0 0 / 0.1),
        0 0.15rem 0.4rem rgb(0 0 0 / 0.05);
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.86);
    transition:
        left var(--home-spotlight-duration) var(--home-spotlight-ease),
        transform var(--home-spotlight-duration) var(--home-spotlight-ease),
        box-shadow var(--home-spotlight-duration) var(--home-spotlight-ease),
        opacity var(--home-spotlight-fade) ease;
}

.home-spotlight__card.is-warping {
    transition: none;
}

.home-spotlight__card--outer-start {
    left: 16%;
    z-index: 1;
    transform: translate(-50%, -50%) scale(0.82);
}

.home-spotlight__card--inner-start {
    left: 32%;
    z-index: 2;
    transform: translate(-50%, -50%) scale(0.92);
}

.home-spotlight__card--center {
    left: 50%;
    z-index: 5;
    box-shadow:
        0 1rem 2.25rem rgb(0 0 0 / 0.16),
        0 0.25rem 0.6rem rgb(0 0 0 / 0.08);
    transform: translate(-50%, -50%) scale(1.08);
}

.home-spotlight__card--inner-end {
    left: 68%;
    z-index: 2;
    transform: translate(-50%, -50%) scale(0.92);
}

.home-spotlight__card--outer-end {
    left: 84%;
    z-index: 1;
    transform: translate(-50%, -50%) scale(0.82);
}

.home-spotlight__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center bottom;
    padding: 1.5rem 0.45rem;
}

@media (prefers-reduced-motion: reduce) {
    .home-spotlight__card {
        transition: none;
    }
}

@media (min-width: 992px) {
    .home-spotlight__inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        align-items: center;
        column-gap: clamp(1.5rem, 4vw, 3.5rem);
        row-gap: 0;
        padding-block: clamp(3.5rem, 6vw, 5.5rem);
    }

    .home-spotlight__content {
        gap: 1.75rem;
        min-width: 0;
    }

    .home-spotlight__actions {
        margin-block-start: 0.75rem;
    }

    .home-spotlight__media {
        justify-content: flex-end;
        padding-inline: 0;
        min-width: 0;
    }

    .home-spotlight__stack {
        max-width: 32rem;
    }

    .home-spotlight__card {
        width: 34%;
        border-radius: 1rem;
    }

    .home-spotlight__card--outer-start {
        left: 14%;
        transform: translate(-50%, -50%) scale(0.8);
    }

    .home-spotlight__card--inner-start {
        left: 30%;
        transform: translate(-50%, -50%) scale(0.91);
    }

    .home-spotlight__card--center {
        left: 50%;
        transform: translate(-50%, -50%) scale(1.1);
    }

    .home-spotlight__card--inner-end {
        left: 70%;
        transform: translate(-50%, -50%) scale(0.91);
    }

    .home-spotlight__card--outer-end {
        left: 86%;
        transform: translate(-50%, -50%) scale(0.8);
    }

    .home-spotlight__image {
        padding: 1.5rem 0.45rem;
    }
}

@media (min-width: 1200px) {
    .home-spotlight__inner--with-icon {
        /* Content loses 1 layout col; icon sits between content and media. */
        grid-template-columns: minmax(0, 1fr) var(--layout-col-1) minmax(0, 1fr);
        column-gap: clamp(1rem, 2.5vw, 2rem);
    }

    .home-spotlight__icon {
        display: flex;
        align-items: center;
        justify-content: center;
        align-self: center;
        width: 100%;
        min-width: 0;
    }

    .home-spotlight__icon-image {
        max-width: 100%;
        max-height: 12rem;
    }
}

/* Must follow role rules (incl. desktop) so exit/enter win on left + opacity */
.home-spotlight__card.is-exiting {
    left: 2%;
    z-index: 0;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.72);
    pointer-events: none;
    transition:
        left var(--home-spotlight-duration) var(--home-spotlight-ease),
        transform var(--home-spotlight-duration) var(--home-spotlight-ease),
        box-shadow var(--home-spotlight-duration) var(--home-spotlight-ease),
        opacity var(--home-spotlight-fade) ease;
}

.home-spotlight__card.is-entering {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.72);
    pointer-events: none;
    transition:
        left var(--home-spotlight-duration) var(--home-spotlight-ease),
        transform var(--home-spotlight-duration) var(--home-spotlight-ease),
        box-shadow var(--home-spotlight-duration) var(--home-spotlight-ease),
        opacity var(--home-spotlight-fade) ease;
}

/* ========================================
Home Investors — split media + brand-blue copy
======================================== */
.home-investors {
    background-color: var(--color-brand-blue);
    color: #fff;
}

.home-investors__row {
    --bs-gutter-x: 0;
}

.home-investors__media {
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 18rem;
    height: 100%;
    background-color: color-mix(in srgb, var(--color-brand-blue) 70%, #000);
}

.home-investors__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.home-investors__media .home-investors__image {
    position: absolute;
    inset: 0;
}

.home-investors__content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: clamp(2.5rem, 6vw, 4rem);
    height: 100%;
    padding: clamp(2.5rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4.5rem);
    background-color: var(--color-brand-blue);
}

.home-investors__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem 1rem;
}

.home-investors__download-icon {
    width: 1.25rem;
    height: 1.25rem;
}

.home-investors__copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    width: min(100%, var(--layout-col-10));
}

.home-investors__title {
    margin: 0;
    font-family: var(--font-manrope);
    font-size: clamp(1.75rem, 3.2vw, 2.75rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: 0em;
    color: #fff;
}

.home-investors__description p {
    margin: 0;
    font-family: var(--font-manrope);
    font-size: clamp(1rem, 1.4vw, 1.25rem);
    font-weight: 400;
    line-height: 1.5;
    color: rgb(255 255 255 / 0.88);
}

@media (max-width: 991.98px) {
    .home-investors__media {
        height: auto;
        min-height: 0;
        aspect-ratio: 16 / 10;
    }

    .home-investors__content {
        padding-block: clamp(2.5rem, 8vw, 3.5rem);
        padding-inline: var(--layout-gutter-x);
    }

    .home-investors__copy {
        width: 100%;
        gap: 1rem;
    }
}

@media (min-width: 992px) {
    .home-investors__row {
        display: grid;
        grid-template-columns: 5fr 8fr;
        min-height: clamp(28rem, 52vw, 40rem);
    }

    .home-investors__row > [class*="col"] {
        width: 100%;
        max-width: none;
    }

    .home-investors__media {
        min-height: 100%;
    }

    .home-investors__copy {
        width: min(100%, var(--layout-col-9));
    }
}

/* Homepage popup — shrink-wrap image; only clamp max width/height */
.home-popup.dialog {
    --home-popup-max-width: min(50rem, calc(100vw - 2.5rem)); /* ~modal-lg */
    --home-popup-max-height: min(50rem, calc(100vh - 7rem));
    --bs-dialog-width: fit-content;
    --bs-dialog-bg: transparent;
    --bs-dialog-border-width: 0;
    --bs-dialog-border-color: transparent;
    --bs-dialog-border-radius: 0;
    --bs-dialog-box-shadow: none;
    --bs-dialog-backdrop-bg: rgb(0 0 0 / 0.45);
    --bs-dialog-backdrop-blur: 10px;
    --bs-dialog-transition-duration: var(--overlay-transition-duration);
    --bs-dialog-transition-timing: var(--overlay-transition-timing);
    z-index: var(--z-overlay);
    width: fit-content;
    max-width: var(--home-popup-max-width);
    height: fit-content;
    background-color: transparent;
    border: 0;
    box-shadow: none;
    overflow: visible;
    transform: scale(0.96);
}

/* Bootstrap's dialog rules live in @layer, so unlayered page rules must restate the open state. */
.home-popup.dialog[open]:not(.hiding) {
    transform: none;
}

@starting-style {
    .home-popup.dialog[open] {
        transform: scale(0.96);
    }
}

.home-popup.dialog:not([open]) {
    position: fixed;
    pointer-events: none;
}

.home-popup.dialog::backdrop {
    background-color: rgb(0 0 0 / 0.45);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.home-popup.dialog.hiding::backdrop {
    background-color: transparent;
    backdrop-filter: blur(0);
    -webkit-backdrop-filter: blur(0);
}

@starting-style {
    .home-popup.dialog[open]::backdrop {
        background-color: transparent;
        backdrop-filter: blur(0);
        -webkit-backdrop-filter: blur(0);
    }
}

.home-popup__panel {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.875rem;
    width: fit-content;
    max-width: 100%;
    padding: 0;
}

.home-popup__image {
    display: block;
    width: auto;
    height: auto;
    max-width: var(--home-popup-max-width);
    max-height: var(--home-popup-max-height);
    object-fit: contain;
    border-radius: var(--radius-lg);
}

.home-popup__close {
    position: absolute;
    top: 0.75rem;
    inset-inline-end: 0.75rem;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    color: #fff;
    background-color: rgb(0 0 0 / 0.45);
    border: 1px solid rgb(255 255 255 / 0.75);
    border-radius: 50%;
    cursor: pointer;
}

.home-popup__close:focus {
    outline: none;
}

.home-popup__close:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.home-popup__close-icon {
    display: block;
    width: 0.9rem;
    height: 0.9rem;
}

.home-popup__dismiss {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    align-self: center;
    margin: 0;
    color: #fff;
    font-size: var(--font-size-sm);
    cursor: pointer;
    user-select: none;
}

.home-popup__dismiss-input {
    width: 1rem;
    height: 1rem;
    margin: 0;
    accent-color: var(--color-brand-red);
    cursor: pointer;
}

.home-popup__dismiss-label {
    line-height: 1.3;
}

@media (max-width: 575.98px) {
    .home-popup.dialog {
        --home-popup-max-width: calc(100vw - 1.5rem);
        --home-popup-max-height: calc(100vh - 6rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-popup.dialog,
    .home-popup.dialog::backdrop {
        transition: none;
    }
}
