.hero {
    isolation: isolate;
    overflow: hidden;
    background-image: none;
}

.hero-slides,
.hero-slide {
    position: absolute;
    inset: 0;
}

.hero-slides {
    z-index: -1;
}

.hero-slide {
    background-color: #293a2e;
    background-position: center 52%;
    background-size: cover;
    opacity: 0;
    transform: scale(1.025);
    transition: opacity .9s ease, transform 6s ease;
}

.hero-slide.is-active {
    opacity: 1;
    transform: scale(1);
}

.hero-overlay {
    z-index: 0;
}

.hero-copy {
    z-index: 1;
}

.hero-note {
    right: auto;
    z-index: 2;
}

.hero-slider-controls {
    position: absolute;
    right: 6.5%;
    bottom: 21px;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 14px;
}

.hero-slider-arrow {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .55);
    border-radius: 50%;
    color: #fff;
    background: rgba(30, 34, 27, .28);
    font: 20px/1 var(--sans);
    cursor: pointer;
    transition: background-color .2s ease, border-color .2s ease;
}

.hero-slider-arrow:hover,
.hero-slider-arrow:focus-visible {
    border-color: #fff;
    background: rgba(30, 34, 27, .68);
}

.hero-slider-arrow:focus-visible,
.hero-slider-dot:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.hero-slider-dots {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-slider-dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 1px solid #fff;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    transition: transform .2s ease, background-color .2s ease;
}

.hero-slider-dot.is-active {
    transform: scale(1.25);
    background: #fff;
}

.hero-slide-count {
    position: absolute;
    bottom: 31px;
    left: 6.5%;
    z-index: 2;
    color: #e1e2d7;
    font-size: 10px;
    font-variant-numeric: tabular-nums;
    letter-spacing: .13em;
}

@media (max-width: 600px) {
    .hero-slider-controls {
        right: 6%;
        bottom: 18px;
        gap: 8px;
    }

    .hero-slider-arrow {
        width: 34px;
        height: 34px;
    }

    .hero-slider-dot {
        width: 8px;
        height: 8px;
    }

    .hero-slide-count {
        bottom: 29px;
        left: 7%;
        font-size: 9px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide,
    .hero-slider-arrow,
    .hero-slider-dot {
        transition: none;
    }
}
