@charset "UTF-8";

/*
 * Top hero carousel
 * Full-bleed crossfade inspired by editorial campaign sites.
 * The fixed stage keeps the following sections scrolling over the hero.
 */

#top.hero-carousel {
    --hero-carousel-start-scale: 1.15;
    box-sizing: border-box;
    display: block;
    height: 100svh;
    min-height: 640px;
    padding: 0;
    position: relative;
    width: 100%;
    z-index: 0;
}

#top.hero-carousel::before {
    content: none;
}

#top.hero-carousel~* {
    position: relative;
    z-index: 2;
}

.hero-carousel__stage {
    background: #cff0e5;
    box-sizing: border-box;
    height: 100svh;
    inset: 0;
    min-height: 640px;
    overflow: hidden;
    position: fixed;
    width: 100%;
    z-index: 1;
}

.hero-carousel__stage::after {
    background:
        linear-gradient(180deg, rgba(207, 240, 229, .24) 0%, transparent 24%),
        linear-gradient(0deg, rgba(27, 72, 57, .15) 0%, transparent 22%);
    content: "";
    inset: 0;
    pointer-events: none;
    position: absolute;
    z-index: 2;
}

.hero-carousel__viewport {
    cursor: grab;
    height: 100%;
    overflow: hidden;
    touch-action: pan-y;
    user-select: none;
    width: 100%;
}

.hero-carousel__viewport.is-dragging {
    cursor: grabbing;
}

.hero-carousel__track {
    height: 100%;
    position: relative;
    width: 100%;
}

.hero-carousel__slide {
    inset: 0;
    opacity: 0;
    overflow: hidden;
    pointer-events: none;
    position: absolute;
    transition:
        opacity 1800ms cubic-bezier(.42, 0, .58, 1),
        visibility 0s linear 1800ms;
    visibility: hidden;
    width: 100%;
    z-index: 0;
}

.hero-carousel__slide.is-active {
    opacity: 1;
    pointer-events: auto;
    transition:
        opacity 1800ms cubic-bezier(.42, 0, .58, 1),
        visibility 0s linear 0s;
    visibility: visible;
    z-index: 1;
}

.hero-carousel:not(.is-ready) .hero-carousel__slide:first-child {
    opacity: 1;
    visibility: visible;
}

.hero-carousel__slide picture,
.hero-carousel__slide img {
    display: block;
    height: 100%;
    width: 100%;
}

.hero-carousel__slide img {
    object-fit: cover;
    pointer-events: none;
    transform: scale(1);
}

.hero-carousel__slide.is-active img {
    animation: hero-carousel-breathe 6.8s cubic-bezier(.22, .61, .36, 1) both;
}

@keyframes hero-carousel-breathe {
    from {
        transform: scale(var(--hero-carousel-start-scale));
    }

    to {
        transform: scale(1);
    }
}

.hero-carousel__arrow {
    appearance: none;
    background: rgba(207, 240, 229, .18);
    border: 1px solid rgba(255, 255, 255, .68);
    border-radius: 50%;
    cursor: pointer;
    height: 54px;
    padding: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: background-color 250ms ease, border-color 250ms ease, transform 250ms ease;
    width: 54px;
    z-index: 3;
}

.hero-carousel__arrow::before {
    border-color: #fff;
    border-style: solid;
    border-width: 0 1px 1px 0;
    content: "";
    height: 12px;
    left: 50%;
    position: absolute;
    top: 50%;
    width: 12px;
}

.hero-carousel__arrow:hover {
    background: rgba(207, 240, 229, .42);
    border-color: #fff;
    transform: translateY(-50%) scale(1.07);
}

.hero-carousel__arrow:focus-visible,
.hero-carousel__dot:focus-visible,
.hero-carousel__toggle:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 4px;
}

.hero-carousel__arrow--prev {
    left: clamp(20px, 3.5vw, 60px);
}

.hero-carousel__arrow--prev::before {
    transform: translate(-30%, -50%) rotate(135deg);
}

.hero-carousel__arrow--next {
    right: clamp(20px, 3.5vw, 60px);
}

.hero-carousel__arrow--next::before {
    transform: translate(-70%, -50%) rotate(-45deg);
}

.hero-carousel__controls {
    align-items: center;
    bottom: clamp(24px, 4vh, 48px);
    display: flex;
    gap: 18px;
    left: clamp(24px, 4vw, 68px);
    position: absolute;
    z-index: 3;
}

.hero-carousel__status {
    align-items: baseline;
    color: #fff;
    display: flex;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.1rem;
    font-variant-numeric: tabular-nums;
    gap: 5px;
    letter-spacing: .12em;
    line-height: 1;
    text-shadow: 0 1px 8px rgba(20, 69, 52, .25);
}

.hero-carousel__status-separator {
    opacity: .58;
}

.hero-carousel__dots {
    align-items: center;
    display: flex;
    gap: 7px;
}

.hero-carousel__dot {
    appearance: none;
    background: rgba(255, 255, 255, .42);
    border: 0;
    cursor: pointer;
    height: 1px;
    overflow: hidden;
    padding: 0;
    position: relative;
    transition: width 350ms ease;
    width: 22px;
}

.hero-carousel__dot::after {
    background: #fff;
    content: "";
    inset: 0;
    position: absolute;
    transform: scaleX(0);
    transform-origin: left center;
}

.hero-carousel__dot[aria-current="true"] {
    width: 42px;
}

.hero-carousel__dot[aria-current="true"]::after {
    animation: hero-carousel-progress 6.8s linear both;
}

.hero-carousel.is-paused .hero-carousel__dot[aria-current="true"]::after {
    animation-play-state: paused;
}

@keyframes hero-carousel-progress {
    to {
        transform: scaleX(1);
    }
}

.hero-carousel__toggle {
    align-items: center;
    appearance: none;
    background: rgba(207, 240, 229, .14);
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    height: 28px;
    justify-content: center;
    padding: 0;
    transition: background-color 200ms ease;
    width: 28px;
}

.hero-carousel__toggle:hover {
    background: rgba(207, 240, 229, .36);
}

.hero-carousel__toggle span {
    border-color: #fff;
    border-style: solid;
    border-width: 0 1px;
    height: 9px;
    width: 4px;
}

.hero-carousel__toggle.is-paused span {
    border-color: transparent transparent transparent #fff;
    border-style: solid;
    border-width: 5px 0 5px 7px;
    height: 0;
    margin-left: 2px;
    width: 0;
}

.s-header .menu-btn span.white::before,
.s-header .menu-btn span.white::after {
    background-color: #fff;
    box-shadow: 0 1px 8px rgba(20, 69, 52, .22);
}

@media only screen and (max-width: 700px) {

    #top.hero-carousel {
        --hero-carousel-start-scale: 1.15;
    }

    #top.hero-carousel,
    .hero-carousel__stage {
        min-height: 600px;
    }

    .hero-carousel__stage::after {
        background:
            linear-gradient(180deg, rgba(24, 72, 56, .12) 0%, transparent 24%),
            linear-gradient(0deg, rgba(24, 72, 56, .2) 0%, transparent 24%);
    }

    .hero-carousel__slide img {
        object-fit: contain;
        object-position: center top;
    }

    .hero-carousel__arrow {
        display: none;
    }

    .hero-carousel__controls {
        bottom: max(20px, env(safe-area-inset-bottom));
        gap: 12px;
        left: 20px;
        right: 20px;
    }

    .hero-carousel__status {
        color: #2f7c62;
        font-size: 1rem;
        text-shadow: none;
    }

    .hero-carousel__dots {
        flex: 1;
    }

    .hero-carousel__dot {
        background: rgba(47, 124, 98, .3);
        flex: 1;
        width: auto;
    }

    .hero-carousel__dot::after {
        background: #2f7c62;
    }

    .hero-carousel__dot[aria-current="true"] {
        width: auto;
    }

    .hero-carousel__toggle {
        background: rgba(207, 240, 229, .7);
        border-color: rgba(47, 124, 98, .55);
        flex: 0 0 28px;
    }

    .hero-carousel__toggle span {
        border-color: #2f7c62;
    }

    .hero-carousel__toggle.is-paused span {
        border-color: transparent transparent transparent #2f7c62;
    }

    .s-header .menu-btn span.white::before,
    .s-header .menu-btn span.white::after {
        background-color: #2f7c62;
        box-shadow: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-carousel__slide {
        transition-duration: 1ms;
    }

    .hero-carousel__slide.is-active img,
    .hero-carousel__dot[aria-current="true"]::after {
        animation: none;
        transform: none;
    }
}
