/* Homepage hero and carousel. */
.home-hero-carousel .home-hero-stage { position: relative; }
.home-hero-carousel .home-hero-slide[hidden] { display: none; }
.home-hero-carousel .home-hero-slide h2 { font-size: var(--fs-8); margin: 0; }
.home-hero-carousel .home-hero-controls {
    position: absolute;
    top: .75rem;
    right: .75rem;
    display: flex;
    align-items: center;
    padding: .125rem .25rem;
    border: 1px solid rgb(255 255 255 / 20%);
    border-radius: 999px;
    background: rgb(0 0 0 / 30%);
    z-index: 2;
}
.home-hero-carousel .home-hero-controls[hidden] { display: none; }
.home-hero-carousel .home-hero-progress {
    position: absolute;
    left: 1.25rem;
    right: 1.25rem;
    bottom: -.5rem;
    height: 2px;
    overflow: hidden;
    border-radius: 999px;
    background: rgb(255 255 255 / 25%);
}
.home-hero-carousel .home-hero-progress-fill {
    display: block;
    height: 100%;
    background: var(--color-white);
    transform: scaleX(0);
    transform-origin: left;
}
.home-hero-carousel [data-hero-pause]::before {
    content: '';
    width: .625rem;
    height: .75rem;
    border-left: 2px solid currentColor;
    border-right: 2px solid currentColor;
    box-sizing: border-box;
    opacity: .8;
}
.home-hero-carousel [data-hero-pause][aria-pressed="true"]::before {
    width: 0;
    height: 0;
    border-top: .375rem solid transparent;
    border-bottom: .375rem solid transparent;
    border-left: .625rem solid currentColor;
    border-right: 0;
}
.home-hero-carousel [data-hero-status] {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.home-hero-carousel .home-hero-controls button {
    flex: 0 0 2.75rem;
    width: 2.75rem;
    height: 2.75rem;
    aspect-ratio: 1;
    padding: 0;
    border-radius: 50%;
    color: var(--color-white);
    background: transparent;
}
@media (hover: hover) {
    .home-hero-carousel .home-hero-controls button:hover { background: rgb(255 255 255 / 15%); }
}
.home-hero-carousel .home-hero-controls button:focus-visible {
    outline: 2px solid var(--color-white);
    outline-offset: 2px;
    background: rgb(255 255 255 / 15%);
}
.home-hero-carousel .home-hero-arrow { width: 1rem; height: 1rem; opacity: .8; }
.home-hero-carousel [data-hero-prev] .home-hero-arrow { transform: rotate(180deg); }
.home-hero-carousel button:hover .home-hero-arrow,
.home-hero-carousel button:focus-visible .home-hero-arrow { opacity: 1; }
.home-hero-carousel .home-hero-dot::before {
    content: '';
    width: .375rem;
    height: .375rem;
    border: 1px solid rgb(255 255 255 / 65%);
    border-radius: 50%;
}
.home-hero-carousel .home-hero-dot[aria-current="true"]::before { background: var(--color-white); border-color: var(--color-white); }
.home-hero-carousel .home-hero-slide.is-leaving {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}
.home-hero-carousel .home-hero-slide.is-entering { z-index: 1; }
/* Use one transition for the whole slide instead of replaying text animations. */
.home-hero-carousel.has-interacted [data-animate] {
    opacity: 1 !important;
    transform: none !important;
    translate: none !important;
    animation: none !important;
}
@media (prefers-reduced-motion: reduce) {
    .home-hero-carousel .home-hero-progress { display: none; }
    .home-hero-carousel .home-hero-slide,
    .home-hero-carousel [data-animate],
    .home-hero-carousel button,
    .home-hero-carousel .btn,
    .home-hero-carousel .btn::after {
        animation: none !important;
        transition: none !important;
    }
    /* Also override theme animations registered before a live preference change. */
    .home-hero-carousel [data-animate] {
        opacity: 1 !important;
        transform: none !important;
        translate: none !important;
    }
}

@media (min-width: 62rem) {
    .home-hero-carousel .home-hero-panel--right { grid-column: 2; }
}

@media (max-width: 61.9375rem) {
    /* Reserve the tallest enabled panel so the crossfade never resizes the hero. */
    .home-hero-carousel .home-hero-slide .home-hero-panel {
        min-height: var(--home-hero-panel-height, 0px);
        box-sizing: border-box;
    }
    .home-hero-carousel .home-hero-slide > .image-wrapper {
        aspect-ratio: 16 / 9;
        height: auto;
    }
    .home-hero-carousel .home-hero-slide > .image-wrapper img {
        position: absolute;
        inset: 0;
        height: 100%;
        transition: none;
    }
    /* Measure hidden slides in one layout pass without displaying or focusing them. */
    .home-hero-carousel.is-measuring .home-hero-slide {
        position: absolute;
        inset: 0 0 auto;
        visibility: hidden;
    }
    .home-hero-carousel.is-measuring .home-hero-slide[hidden] { display: block; }
    .home-hero-carousel.is-measuring .home-hero-panel { min-height: 0; }
}
