.hero-transition-stage {
    position: relative;
    height: var(--hero-frame-height);
}

@media (min-width: 80rem) and (prefers-reduced-motion: no-preference) {
    .hero-transition-stage.is-enhanced {
        height: calc(var(--hero-frame-height) + var(--hero-handoff-overlap));
    }
}

.hero {
    position: sticky;
    z-index: 3;
    top: 0;
    display: grid;
    min-height: var(--hero-frame-height);
    isolation: isolate;
    place-items: center;
}

.hero__frame {
    width: 100%;
    height: var(--hero-frame-height);
    min-height: 0;
    margin-inline: auto;
}

.hero-stage {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 0;
    background-color: var(--color-stage);
    background-image: url("../../images/sections/hero/hero-duck-blue-desk.jpg");
    background-position: var(--hero-background-position);
    background-repeat: no-repeat;
    background-size: cover;
    color: var(--color-stage-text);
}

.hero-media {
    position: absolute;
    z-index: 0;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-strips {
    position: absolute;
    pointer-events: none;
}

.hero-stage::before {
    position: absolute;
    z-index: 1;
    inset: 0;
    background: rgb(10 18 22 / 0.34);
    content: "";
    pointer-events: none;
}

.hero-copy {
    position: absolute;
    z-index: 2;
    right: 0;
    top: 50%;
    bottom: auto;
    left: 0;
    display: grid;
    justify-items: center;
    width: 100%;
    max-width: none;
    padding-inline: var(--page-inline);
    text-align: center;
    transform: translateY(-50%);
}

.hero-eyebrow {
    display: none;
}

.hero-title {
    max-width: 100%;
    font-size: clamp(5.5rem, 11.25vw, 13.5rem);
    font-weight: 700;
    line-height: 0.82;
    letter-spacing: -0.075em;
    white-space: nowrap;
}

.hero-lead {
    max-width: 35rem;
    margin-top: clamp(1.25rem, 2vw, 2rem);
    color: var(--color-stage-text);
    font-size: var(--text-ui);
    line-height: 1.35;
    text-align: center;
    text-wrap: balance;
}

@media (max-width: 79.9375rem) {
    .hero-transition-stage {
        height: auto;
    }

    .hero {
        position: relative;
        top: auto;
        display: block;
    }

    .hero__frame {
        min-height: var(--hero-frame-min-height);
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-transition-stage { height: auto; }

    .hero {
        position: relative;
        top: auto;
    }

    .hero-media { display: none; }
}

@media (max-width: 63.9375rem) {
    .hero-copy {
        padding-block: 0;
    }
}

@media (max-width: 39.9375rem) {
    .hero-title {
        max-width: calc(100vw - (var(--page-inline) * 2));
        font-size: clamp(4rem, 20.5vw, 5.25rem);
        line-height: 0.88;
        white-space: normal;
    }

    .hero-lead {
        max-width: 22rem;
        margin-top: clamp(1rem, 4svh, 1.5rem);
    }
}

@media (max-height: 39.9375rem) {
    .hero-title {
        font-size: clamp(3.5rem, 15vmin, 7rem);
    }

    .hero-lead {
        max-width: min(35rem, 74vw);
        margin-top: var(--space-sm);
    }
}
