.home-hero {
    height: min(38.5vw,650px);
    min-height: 330px;
    max-height: var(--hero-available-height,700px);
    position: relative;
    overflow: hidden;
    background: #e8e9e7;
}

.hero-slides {
    height: 100%;
    position: relative;
}

.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 700ms;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
}

.hero-slide > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-copy {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    padding: 30px 0 55px;
}

.hero-copy-content {
    width: var(--content-width);
    margin: auto;
}

.hero-copy-inner {
    width: 47%;
    max-width: 560px;
}

.hero-copy h1,.hero-copy h2 {
    font-size: clamp(34px,4.3vw,60px);
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -2.2px;
    margin-bottom: 24px;
}

.hero-copy p {
    font-size: 16px;
    line-height: 1.65;
    margin-bottom: 30px;
    max-width: 350px;
    color: #4e5b62;
}

.hero-copy .action-link {
    font-size: 13px;
}

.hero-controls {
    position: absolute;
    bottom: 23px;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: var(--content-width);
    margin: auto;
}

.hero-dots {
    display: flex;
    gap: 9px;
    align-items: center;
}

.hero-dots button {
    width: 22px;
    height: 4px;
    background: #929b9f;
    border: 0;
    transition: width 160ms,background 160ms;
}

.hero-dots button[aria-pressed=true] {
    width: 44px;
    background: var(--brand);
}

.hero-arrows {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-arrows button {
    width: 34px;
    height: 34px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff9e;
    border: 1px solid #c2c7c8;
    border-radius: 50%;
}

.hero-arrows button:hover {
    color: var(--brand);
    background: white;
}

.hero-arrows button[data-direction="-1"] svg {
    transform: rotate(180deg);
}

.hero-arrows svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
}

@media(min-width:1025px) {
    .home-hero .hero-controls {
        inset: 0;
        width: 100%;
        padding: 0 0 23px;
        justify-content: center;
        align-items: flex-end;
        gap: 14px;
        pointer-events: none;
    }

    .hero-dots {
        height: 34px;
        pointer-events: auto;
    }

    .hero-arrows {
        pointer-events: auto;
    }

    .hero-arrows button[data-direction] {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        width: 34px;
        height: 34px;
        padding: 8px;
    }

    .hero-arrows button[data-direction="-1"] {
        left: 3px;
    }

    .hero-arrows button[data-direction="1"] {
        right: 3px;
    }
}

@media(min-width:1520px) {
    .hero-arrows button[data-direction] {
        width: 44px;
        height: 44px;
        padding: 12px;
    }

    .hero-arrows button[data-direction="-1"] {
        left: 24px;
    }

    .hero-arrows button[data-direction="1"] {
        right: 24px;
    }
}

@media(max-width:1024px) {
    .home-hero {
        height: 48vw;
        min-height: 310px;
    }
    .hero-copy {
        padding: 28px 0 55px;
    }
    .hero-copy-inner {
        width: 50%;
    }
    .hero-copy h1,.hero-copy h2 {
        font-size: clamp(30px,4.8vw,47px);
        letter-spacing: -1.4px;
    }
    .hero-copy p {
        font-size: 14px;
        max-width: 290px;
        margin-bottom: 20px;
    }
    .hero-slide > img {
        object-position: 60% center;
    }
}

@media(max-width:640px) {
    .home-hero {
        height: 83vw;
        min-height: 300px;
        max-height: var(--hero-available-height,500px);
    }
    .hero-copy {
        padding: 25px 0 60px;
        background: linear-gradient(90deg,#f0f0ecf5 0%,#f0f0eceb 45%,#f0f0ec00 90%);
    }
    .hero-copy-inner {
        width: 68%;
    }
    .hero-copy h1,.hero-copy h2 {
        font-size: clamp(27px,7.5vw,40px);
        letter-spacing: -1px;
        margin-bottom: 15px;
    }
    .hero-copy p {
        font-size: 12px;
        margin-bottom: 20px;
        max-width: 230px;
    }
    .hero-copy .action-link {
        padding: 9px 15px;
        min-height: 42px;
        gap: 14px;
        font-size: 12px;
    }
    .hero-controls {
        bottom: 18px;
    }
    .hero-slide > img {
        object-position: 66% center;
    }
}

@media(max-height:500px) and (min-width:641px) {
    .home-hero {
        min-height: 0;
        height: var(--hero-available-height,250px);
    }
    .hero-copy {
        padding: 12px 0 45px;
    }
    .hero-copy-inner {
        width: 50%;
    }
    .hero-copy h1,.hero-copy h2 {
        font-size: 29px;
        letter-spacing: -1px;
        margin-bottom: 10px;
    }
    .hero-copy p {
        margin-bottom: 12px;
        font-size: 12px;
    }
    .hero-copy .action-link {
        min-height: 36px;
        padding: 6px 14px;
        font-size: 12px;
    }
    .hero-controls {
        bottom: 10px;
    }
}
