/*
 * Stable homepage Hero layout.
 *
 * The live homepage currently has one Hero panel. These rules use a reusable
 * slide class so every panel added through the same component inherits the
 * same title, copy, action, proof and engineering-media slots.
 */

.home-hero .home-hero-slide {
    min-width: 0;
}

.home-hero .home-hero-slide > *,
.home-hero .hero-copy,
.home-hero .hero-visual-proof {
    min-width: 0;
}

.home-hero .home-hero-title {
    color: #fff;
    text-wrap: balance;
    overflow-wrap: normal;
    word-break: normal;
}

.home-hero .home-hero-title-line {
    display: block;
}

@media (min-width: 1200px) {
    .home-hero {
        height: clamp(720px, calc(100svh - 76px), 900px);
        min-height: 720px;
    }

    .home-hero .home-hero-grid {
        width: min(1440px, calc(100% - 64px));
        grid-template-columns: minmax(0, 57fr) minmax(0, 41fr);
        gap: 2%;
        padding-top: clamp(32px, 4.2vh, 46px);
        padding-bottom: clamp(32px, 4.2vh, 46px);
        align-items: center;
    }

    .home-hero .hero-copy {
        display: grid;
        grid-template-rows: 40px 118px 104px 62px 38px;
        align-content: center;
        height: 520px;
        padding: 0;
    }

    .home-hero .hero-copy .section-kicker {
        align-self: start;
        margin: 0;
    }

    .home-hero .home-hero-title {
        align-self: start;
        max-width: none;
        min-height: 112px;
        margin: 0;
        font-size: clamp(46px, 2.5vw, 48px);
        line-height: 1.05;
        letter-spacing: -.056em;
        text-shadow: 0 3px 24px rgba(0, 0, 0, .34);
    }

    .home-hero .home-hero-title-line:first-child {
        white-space: nowrap;
    }

    .home-hero .hero-copy > p {
        align-self: start;
        max-width: 720px;
        margin: 0;
        color: #d7e3ec;
        font-size: 17px;
        line-height: 1.58;
    }

    .home-hero .hero-actions {
        align-self: center;
        margin: 0;
    }

    .home-hero .hero-proof-line {
        align-self: end;
        margin: 0;
    }

    .home-hero .hero-visual-proof {
        align-self: center;
        width: 100%;
        height: 520px;
        min-height: 520px;
    }

    .home-hero .engineering-panel {
        top: 34px;
        width: 100%;
        max-width: 620px;
    }
}

@media (min-width: 621px) and (max-width: 1199px) {
    .home-hero {
        min-height: 0;
        height: auto;
    }

    .home-hero .home-hero-grid {
        width: min(100% - 40px, 900px);
        grid-template-columns: 1fr;
        gap: 24px;
        padding-top: 48px;
        padding-bottom: 38px;
    }

    .home-hero .hero-copy {
        padding: 0;
    }

    .home-hero .home-hero-title {
        max-width: 900px;
        margin-bottom: 18px;
        font-size: clamp(40px, 6.4vw, 50px);
        line-height: 1.06;
        letter-spacing: -.04em;
    }

    .home-hero .home-hero-title-line:first-child {
        white-space: normal;
    }

    .home-hero .home-hero-title-line {
        display: inline;
    }

    .home-hero .home-hero-title-line + .home-hero-title-line::before {
        content: " ";
    }

    .home-hero .hero-copy > p {
        max-width: 760px;
        margin-bottom: 0;
        font-size: 16px;
        line-height: 1.62;
    }

    .home-hero .hero-actions {
        margin-top: 24px;
    }

    .home-hero .hero-proof-line {
        margin-top: 24px;
    }

    .home-hero .hero-visual-proof {
        width: min(100%, 720px);
        height: 370px;
        min-height: 370px;
    }
}

@media (max-width: 620px) {
    .home-hero {
        height: auto;
        min-height: 0;
    }

    .home-hero .home-hero-grid {
        width: min(100% - 28px, 520px);
        gap: 20px;
        padding-top: 38px;
        padding-bottom: 28px;
    }

    .home-hero .hero-copy {
        padding: 0;
    }

    .home-hero .hero-copy .section-kicker {
        margin-bottom: 16px;
        font-size: 10px;
        line-height: 1.45;
    }

    .home-hero .home-hero-title {
        max-width: 100%;
        margin-bottom: 16px;
        font-size: clamp(34px, 8.7vw, 36px);
        line-height: 1.04;
        letter-spacing: -.04em;
    }

    .home-hero .home-hero-title-line:first-child {
        white-space: normal;
    }

    .home-hero .home-hero-title-line {
        display: inline;
    }

    .home-hero .home-hero-title-line + .home-hero-title-line::before {
        content: " ";
    }

    .home-hero .hero-copy > p {
        max-width: 100%;
        margin-bottom: 0;
        font-size: 15px;
        line-height: 1.6;
    }

    .home-hero .hero-actions {
        margin-top: 20px;
    }

    .home-hero .hero-proof-line {
        margin-top: 20px;
    }

    .home-hero .hero-visual-proof {
        height: 300px;
        min-height: 300px;
    }
}
