/* The opening slide inherits the established hero typography and dimensions. */
.hero-slider {
    --hero-slide-duration: 1.6s;
    --hero-control-ink: #f7f5ef;
    position: relative;
    isolation: isolate;
}

.hero-slider .hero-slide {
    position: absolute;
    inset: 0;
    min-height: inherit;
    isolation: isolate;
    z-index: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity var(--hero-slide-duration) ease,
                visibility 0s linear var(--hero-slide-duration);
}

.hero-slider .hero-slide.is-active {
    z-index: 1;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s, 0s;
}

.hero-slider .hero-slide[hidden],
.hero-slider .hero-slider-controls[hidden],
.hero-slider .hero-rotation svg[hidden] {
    display: none !important;
}

.hero-slider .hero-slide > .hero-inner {
    height: 100%;
    min-height: inherit;
}

/* Each isolated slide keeps the existing negative image/shade layers intact. */
.hero-slider .hero-slide-verdante > .hero-image {
    object-position: center 55%;
}

.hero-slider .hero-slide-verdante > .hero-shade {
    background:
        linear-gradient(90deg, rgba(29, 37, 26, .86) 0%, rgba(36, 44, 30, .66) 38%, rgba(36, 44, 30, .18) 76%, rgba(36, 44, 30, .08) 100%),
        linear-gradient(0deg, rgba(25, 32, 22, .42), transparent 42%);
}

.hero-slider.home-hero .verdante-hero-copy {
    width: calc(100% - 235px);
    max-width: 660px;
}

.hero-slider.home-hero .verdante-hero-copy > .eyebrow {
    margin-bottom: 20px;
}

.hero-slider .verdante-hero-title {
    margin: 0 0 17px;
    font-family: var(--serif, Georgia, serif);
    font-size: clamp(100px, 9.7vw, 156px);
    font-weight: 400;
    line-height: .91;
    letter-spacing: -.025em;
    color: var(--hero-control-ink);
}

.hero-slider.home-hero .verdante-hero-copy > .verdante-hero-services {
    max-width: 570px;
    margin: 0 0 22px;
    font-family: var(--serif, Georgia, serif);
    font-size: clamp(24px, 2.15vw, 28px);
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: .015em;
    color: #f4f0e4;
    text-wrap: balance;
}

.hero-slider.home-hero .verdante-hero-copy > .verdante-hero-tagline {
    max-width: 500px;
    margin-bottom: 30px;
    font-family: var(--sans, Arial, sans-serif);
    font-size: 14px;
    line-height: 1.85;
    color: #eeede4;
}

.hero-slider .verdante-hero-emblem {
    position: absolute;
    top: calc(50% - 28px);
    right: 0;
    width: clamp(160px, 14vw, 190px);
    height: auto;
    aspect-ratio: 1;
    object-fit: contain;
    border-radius: 50%;
    background: var(--paper, #f7f5ef);
    box-shadow: 0 14px 44px rgba(21, 29, 19, .2);
    transform: translateY(-50%);
    pointer-events: none;
}

.hero-slider .hero-slider-controls {
    position: absolute;
    z-index: 5;
    left: 50%;
    bottom: 27px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 17px;
    width: max-content;
    max-width: calc(100% - 40px);
    padding: 5px 17px 5px 6px;
    border: 1px solid rgba(247, 245, 239, .2);
    border-radius: 2px;
    background: rgba(28, 36, 24, .46);
    color: var(--hero-control-ink);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transform: translateX(-50%);
}

.hero-slider .hero-rotation {
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 12px;
    border: 1px solid rgba(247, 245, 239, .36);
    border-radius: 50%;
    appearance: none;
    background: transparent;
    color: inherit;
    cursor: pointer;
    transition: background .2s ease, border-color .2s ease;
}

.hero-slider .hero-rotation svg {
    display: block;
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hero-slider .hero-slide-selectors {
    display: flex;
    align-items: stretch;
    gap: 24px;
    min-width: 0;
}

.hero-slider .hero-slide-selector {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 11px 0;
    border: 0;
    border-bottom: 1px solid rgba(247, 245, 239, .25);
    border-radius: 0;
    appearance: none;
    background: transparent;
    color: rgba(247, 245, 239, .72);
    font-family: var(--sans, Arial, sans-serif);
    font-size: 10px;
    font-weight: 500;
    line-height: 1.5;
    letter-spacing: 1px;
    white-space: nowrap;
    cursor: pointer;
    transition: color .2s ease, border-color .2s ease;
}

.hero-slider .hero-slide-selector > span {
    font-size: 9px;
    letter-spacing: .8px;
    opacity: .7;
    font-variant-numeric: tabular-nums;
}

.hero-slider .hero-slide-selector::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 1px;
    background: var(--hero-control-ink);
    content: "";
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .35s ease;
}

.hero-slider .hero-slide-selector.is-active,
.hero-slider .hero-slide-selector[aria-pressed="true"] {
    color: var(--hero-control-ink);
}

.hero-slider .hero-slide-selector.is-active::after,
.hero-slider .hero-slide-selector[aria-pressed="true"]::after {
    transform: scaleX(1);
}

.hero-slider .hero-rotation:focus-visible,
.hero-slider .hero-slide-selector:focus-visible {
    outline: 2px solid var(--hero-control-ink);
    outline-offset: 4px;
}

.hero-slider .hero-slider-status {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}

/* Its existing seven-second animation remains defined by site.css. */
.hero-slider > .hero-reveal-curtain {
    z-index: 4;
}

@media (hover: hover) {
    .hero-slider .hero-rotation:hover {
        background: rgba(247, 245, 239, .13);
        border-color: rgba(247, 245, 239, .75);
    }

    .hero-slider .hero-slide-selector:hover {
        color: var(--hero-control-ink);
        border-bottom-color: rgba(247, 245, 239, .65);
    }
}

@media (max-width: 1050px) {
    .hero-slider.home-hero .verdante-hero-copy {
        width: calc(100% - 175px);
    }

    .hero-slider .verdante-hero-title {
        font-size: clamp(96px, 12.5vw, 128px);
    }

    .hero-slider .verdante-hero-emblem {
        width: 140px;
    }
}

@media (min-width: 761px) and (max-width: 900px) {
    .hero-slider[data-slider-ready="true"] .scroll-cue {
        bottom: 97px;
    }

    .hero-slider[data-slider-ready="true"] .hero-note {
        bottom: 100px;
    }

    .hero-slider.home-hero[data-slider-ready="true"] .hero-copy {
        padding-bottom: 160px;
    }
}

@media (max-width: 760px) {
    .hero-slider.home-hero[data-slider-ready="true"] {
        min-height: 680px;
    }

    .hero-slider.home-hero[data-slider-ready="true"] .hero-copy {
        padding-top: 30px;
        padding-bottom: 160px;
    }

    .hero-slider.home-hero .verdante-hero-copy {
        width: 100%;
        max-width: 100%;
    }

    .hero-slider.home-hero .verdante-hero-copy > .eyebrow {
        margin-bottom: 24px;
        font-size: 8px;
        letter-spacing: 2.6px;
    }

    .hero-slider .verdante-hero-title {
        margin-bottom: 20px;
        font-size: clamp(76px, 19.4vw, 110px);
        letter-spacing: -.035em;
    }

    .hero-slider.home-hero .verdante-hero-copy > .verdante-hero-services {
        max-width: 480px;
        margin-bottom: 23px;
        font-size: 25px;
        line-height: 1.3;
        letter-spacing: 0;
    }

    .hero-slider.home-hero .verdante-hero-copy > .verdante-hero-tagline {
        max-width: 440px;
        margin-bottom: 28px;
        font-size: 12px;
        line-height: 1.85;
    }

    .hero-slider .verdante-hero-emblem {
        display: none;
    }

    .hero-slider .hero-slide-verdante > .hero-image {
        object-position: 61% center;
    }

    .hero-slider .hero-slide-verdante > .hero-shade {
        background:
            linear-gradient(90deg, rgba(28, 37, 25, .88), rgba(28, 37, 25, .49) 72%, rgba(28, 37, 25, .29)),
            linear-gradient(0deg, rgba(24, 33, 21, .4), transparent 45%);
    }

    .hero-slider .hero-slider-controls {
        right: 20px;
        bottom: 18px;
        left: 20px;
        width: auto;
        max-width: none;
        padding: 5px 13px 5px 6px;
        gap: 15px;
        transform: none;
    }

    .hero-slider .hero-slide-selectors {
        justify-content: space-evenly;
        flex: 1 1 auto;
        gap: 17px;
    }

    .hero-slider .hero-slide-selector {
        flex: 1 1 0;
        gap: 8px;
        font-size: 10px;
        letter-spacing: .6px;
    }

    .hero-slider[data-slider-ready="true"] .scroll-cue {
        bottom: 97px;
    }

    .hero-slider[data-slider-ready="true"] .hero-note {
        bottom: 100px;
    }
}

@media (max-width: 370px) {
    .hero-slider.home-hero[data-slider-ready="true"] {
        min-height: 740px;
    }

    .hero-slider .hero-slider-controls {
        gap: 10px;
        padding-right: 10px;
    }

    .hero-slider .hero-slide-selectors {
        gap: 12px;
    }

    .hero-slider .hero-slide-selector {
        gap: 6px;
        font-size: 9px;
    }

    .hero-slider.home-hero .verdante-hero-copy > .verdante-hero-services {
        font-size: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-slider .hero-slide,
    .hero-slider .hero-slide-selector,
    .hero-slider .hero-slide-selector::after,
    .hero-slider .hero-rotation {
        animation: none !important;
        transition: none !important;
    }

    .hero-slider > .hero-reveal-curtain {
        display: none !important;
        animation: none !important;
    }
}

@media print {
    .hero-slider.home-hero,
    .hero-slider.home-hero[data-slider-ready="true"] {
        height: auto;
        min-height: 0;
        max-height: none;
        overflow: visible;
        color: #30332c;
    }

    .hero-slider .hero-slide {
        animation: none !important;
        transition: none !important;
    }

    .hero-slider .hero-slide:not(.is-active),
    .hero-slider .hero-image,
    .hero-slider .hero-shade,
    .hero-slider .hero-slider-controls,
    .hero-slider .verdante-hero-emblem,
    .hero-slider .scroll-cue,
    .hero-slider .hero-note,
    .hero-slider > .hero-reveal-curtain {
        display: none !important;
    }

    .hero-slider .hero-slide.is-active {
        position: relative;
        inset: auto;
        height: auto;
        min-height: 0;
        opacity: 1;
        visibility: visible;
    }

    .hero-slider .hero-slide > .hero-inner {
        display: block;
        height: auto;
        min-height: 0;
    }

    .hero-slider.home-hero .hero-copy,
    .hero-slider.home-hero[data-slider-ready="true"] .hero-copy {
        width: 100%;
        max-width: none;
        padding: 24px 0;
    }

    .hero-slider .hero-copy > * {
        color: #30332c !important;
    }
}
