/* Uses the variables and shared components from styles.css. */


/* ==================================================
   PAGE CONTAINER
================================================== */

.team-container {
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
}


/* ==================================================
   TEAM PAGE
================================================== */

.team-page {
    position: relative;
    z-index: 3;

    min-height: 100vh;
    padding-top: var(--header-height);

    overflow: hidden;

    background-color: #ffffff;
}


/* ==================================================
   TEAM HERO
================================================== */

.team-hero {
    position: relative;

    overflow: hidden;

    background-color: var(--navy);
    border-top: 6px solid var(--orange);

    isolation: isolate;

    transform: translateZ(0);
    backface-visibility: hidden;
}


/* ==================================================
   HERO BACKGROUND EFFECT
================================================== */

.team-hero::before {
    content: "";

    position: absolute;
    inset: 0;
    z-index: 0;

    background:
        radial-gradient(
            circle at 18% 25%,
            rgba(231, 196, 113, 0.1),
            transparent 38%
        ),
        radial-gradient(
            circle at 78% 68%,
            rgba(184, 134, 11, 0.045),
            transparent 37%
        );

    pointer-events: none;
}


/* ==================================================
   HERO GRID
================================================== */

.team-hero-grid {
    position: relative;
    z-index: 1;

    display: grid;
    grid-template-columns:
        minmax(0, 1.4fr)
        minmax(260px, 0.6fr);

    align-items: stretch;
}


/* ==================================================
   HERO COPY
================================================== */

.team-hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;

    min-width: 0;

    padding:
        68px
        70px
        68px
        0;
}

.team-hero-kicker {
    margin-bottom: 13px;

    color: var(--light-grey);

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.21em;
    line-height: 1.4;

    text-transform: uppercase;
}

.team-hero h1 {
    max-width: 680px;
    margin: 0;

    color: var(--gold);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        clamp(
            3rem,
            6vw,
            5rem
        );

    font-weight: 400;
    line-height: 1.04;
}

.team-hero-separator {
    width: 72px;
    height: 3px;

    margin: 25px 0;

    background-color: var(--orange);
}

.team-hero-copy p:not(
    .team-hero-kicker
) {
    max-width: 680px;
    margin-bottom: 13px;

    color:
        rgba(
            255,
            255,
            255,
            0.72
        );

    font-size: 16px;
    line-height: 1.75;
}

.team-hero-copy p:last-child {
    margin-bottom: 0;
}

.team-hero-copy
.team-hero-lead {
    color:
        rgba(
            255,
            255,
            255,
            0.9
        );

    font-size: 19px;
}


/* ==================================================
   HERO SIDE PANEL
================================================== */

.team-hero-panel {
    position: relative;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-height: 350px;
    padding: 40px 34px;

    overflow: hidden;

    background-color: var(--orange);
    color: var(--navy);

    text-align: center;

    isolation: isolate;
}


/* Subtle matching desktop texture */

.team-hero-panel::before {
    content: "";

    position: absolute;
    inset: 0;
    z-index: -1;

    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, 0.08),
            transparent 38%
        ),
        radial-gradient(
            circle at 50% 120%,
            rgba(0, 0, 0, 0.07),
            transparent 55%
        );

    pointer-events: none;
}

.team-hero-panel-label {
    margin-bottom: 18px;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    line-height: 1.4;

    text-transform: uppercase;
}

.team-hero-panel strong {
    display: block;

    max-width: 220px;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        clamp(
            3.4rem,
            6vw,
            5.2rem
        );

    font-weight: 700;
    line-height: 0.95;
}

.team-hero-panel-caption {
    max-width: 230px;
    margin-top: 24px;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    line-height: 1.5;

    text-transform: uppercase;
}


/* ==================================================
   TEAM MEMBERS
================================================== */

.team-members {
    position: relative;

    padding: 68px 0 78px;

    overflow: hidden;

    background-color: var(--mid-grey);

    isolation: isolate;
}


/* ==================================================
   MEMBERS BACKGROUND DETAIL
================================================== */

.team-members::before {
    content: "";

    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    z-index: 0;

    width: min(1220px, 96%);

    background:
        linear-gradient(
            135deg,
            rgba(20, 35, 57, 0.035),
            rgba(255, 255, 255, 0) 47%,
            rgba(184, 134, 11, 0.04)
        );

    pointer-events: none;

    transform: translateX(-50%);
}

.team-members
> .team-container {
    position: relative;
    z-index: 1;
}


/* ==================================================
   TEAM SECTION HEADING
================================================== */

.team-section-heading {
    width: min(700px, 100%);
    margin: 0 auto 46px;

    opacity: 1;

    filter: blur(0);

    text-align: center;

    transform:
        translateY(0)
        scale(1);

    transform-origin:
        center center;
}

.team-section-heading
> p:not(.section-eyebrow) {
    max-width: 590px;
    margin: 17px auto 0;

    color: #666666;

    font-size: 15px;
    line-height: 1.7;
}


/* ==================================================
   TEAM CARD GRID
================================================== */

.team-card-grid {
    display: grid;
    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 28px;

    width: 100%;
}


/* ==================================================
   TEAM CARD
================================================== */

.team-card {
    position: relative;

    overflow: hidden;

    min-width: 0;

    opacity: 1;

    background-color: #ffffff;

    border:
        1px solid
        rgba(0, 0, 0, 0.12);

    transform:
        translateY(0)
        scale(1);

    backface-visibility: hidden;

    will-change:
        transform,
        opacity;

    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.3s ease;
}

.team-card:hover {
    border-color:
        var(--orange);

    box-shadow:
        0 18px 38px
        rgba(0, 0, 0, 0.12);

    transform:
        translateY(-6px)
        scale(1);
}


/* ==================================================
   TEAM CARD FOCUS
================================================== */

.team-card:focus-within {
    border-color:
        var(--orange);

    box-shadow:
        0 18px 38px
        rgba(0, 0, 0, 0.1);
}


/* ==================================================
   STAFF PHOTOGRAPHS
================================================== */

.team-photo {
    position: relative;

    width: 100%;
    height: 245px;

    overflow: hidden;

    background-color:
        var(--light-grey);

    transform: translateZ(0);
}

.team-photo::after {
    content: "";

    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;

    height: 5px;

    background-color:
        var(--orange);

    pointer-events: none;
}


/* Subtle photo overlay */

.team-photo::before {
    content: "";

    position: absolute;
    inset: 0;
    z-index: 1;

    background:
        linear-gradient(
            to top,
            rgba(7, 13, 21, 0.09),
            transparent 43%
        );

    pointer-events: none;
}

.team-photo img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
    object-position: center 25%;

    transform:
        scale(1)
        translateZ(0);

    backface-visibility: hidden;

    transition:
        transform 0.55s
        cubic-bezier(
            0.22,
            1,
            0.36,
            1
        );
}

.team-card:hover
.team-photo img {
    transform:
        scale(1.04)
        translateZ(0);
}


/* ==================================================
   CARD CONTENT
================================================== */

.team-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;

    min-height: 170px;

    padding:
        25px
        25px
        28px;

    text-align: center;
}

.team-role {
    margin-bottom: 7px;

    color: var(--orange);

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    line-height: 1.4;

    text-transform: uppercase;
}

.team-card h3 {
    margin: 0 0 11px;

    color: var(--navy);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 23px;
    font-weight: 400;
    line-height: 1.25;
}

.team-card-content
p:not(.team-role) {
    margin: 0;

    color: #666666;

    font-size: 13px;
    line-height: 1.65;
}


/* ==================================================
   CONTACT PANEL
================================================== */

.team-contact-panel {
    position: relative;

    padding: 54px 0;

    overflow: hidden;

    background-color:
        var(--navy);

    isolation: isolate;
}


/* Matching hero ambience */

.team-contact-panel::before {
    content: "";

    position: absolute;
    inset: 0;
    z-index: 0;

    background:
        radial-gradient(
            circle at 18% 50%,
            rgba(231, 196, 113, 0.07),
            transparent 34%
        );

    pointer-events: none;
}

.team-contact-inner {
    position: relative;
    z-index: 1;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 45px;

    opacity: 1;

    transform:
        translateY(0)
        scale(1);
}

.team-contact-inner
> div {
    min-width: 0;
}

.team-contact-kicker {
    margin-bottom: 7px;

    color: var(--orange);

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;

    text-transform: uppercase;
}

.team-contact-panel h2 {
    margin: 0 0 8px;

    color: var(--gold);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size:
        clamp(
            1.8rem,
            4vw,
            2.55rem
        );

    font-weight: 400;
    line-height: 1.2;
}

.team-contact-inner
> div
> p:last-child {
    max-width: 700px;
    margin: 0;

    color:
        rgba(
            255,
            255,
            255,
            0.7
        );

    font-size: 14px;
    line-height: 1.6;
}


/* ==================================================
   CONTACT BUTTON
================================================== */

.team-contact-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    flex: 0 0 auto;

    min-width: 220px;

    padding:
        16px
        25px;

    border:
        2px solid
        var(--orange);

    background-color:
        var(--orange);

    color: #ffffff;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    line-height: 1.4;

    text-align: center;
    text-decoration: none;
    text-transform: uppercase;

    -webkit-tap-highlight-color:
        transparent;

    transition:
        background-color 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

.team-contact-button:hover {
    background-color:
        var(--gold);

    border-color:
        var(--gold);

    color:
        var(--navy);

    transform:
        translateY(-2px);
}

.team-contact-button:focus-visible {
    outline:
        3px solid
        var(--gold);

    outline-offset: 4px;
}


/* ==================================================
   SCROLL REVEAL — DEFAULT STATES
================================================== */

.team-section-heading,
.team-card,
.team-contact-inner {
    opacity: 1;
}


/* ==================================================
   SCROLL REVEAL — STARTING STATES
================================================== */

/*
   Hidden states only exist once JavaScript has
   successfully added .reveal-ready.

   This means the page remains fully visible if
   JavaScript is unavailable.
*/

.js-enabled
.team-section-heading.reveal-ready:not(
    .animate-in
) {
    opacity: 0;

    filter: blur(3px);

    transform:
        translateY(28px)
        scale(0.985);
}

.js-enabled
.team-card.reveal-ready:not(
    .animate-in
) {
    opacity: 0;

    transform:
        translateY(38px)
        scale(0.97);
}

.js-enabled
.team-contact-inner.reveal-ready:not(
    .animate-in
) {
    opacity: 0;

    transform:
        translateY(30px)
        scale(0.985);
}


/* ==================================================
   SCROLL REVEAL — TRANSITIONS
================================================== */

.team-section-heading.reveal-ready {
    transition:
        opacity 1.1s ease,
        filter 1.1s ease,
        transform 1.35s
        cubic-bezier(
            0.22,
            1,
            0.36,
            1
        );
}

.team-card.reveal-ready {
    transition:
        opacity 1.15s ease,
        transform 1.45s
        cubic-bezier(
            0.22,
            1,
            0.36,
            1
        ),
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.team-contact-inner.reveal-ready {
    transition:
        opacity 1.15s ease,
        transform 1.4s
        cubic-bezier(
            0.22,
            1,
            0.36,
            1
        );
}


/* ==================================================
   DESKTOP CARD REVEAL STAGGER
================================================== */

.team-card.reveal-ready:nth-child(1) {
    transition-delay: 0.08s;
}

.team-card.reveal-ready:nth-child(2) {
    transition-delay: 0.18s;
}

.team-card.reveal-ready:nth-child(3) {
    transition-delay: 0.28s;
}

.team-card.reveal-ready:nth-child(4) {
    transition-delay: 0.08s;
}

.team-card.reveal-ready:nth-child(5) {
    transition-delay: 0.18s;
}

.team-card.reveal-ready:nth-child(6) {
    transition-delay: 0.28s;
}


/* ==================================================
   SCROLL REVEAL — FINAL STATES
================================================== */

.team-section-heading.animate-in {
    opacity: 1;

    filter: blur(0);

    transform:
        translateY(0)
        scale(1);
}

.team-card.animate-in {
    opacity: 1;

    transform:
        translateY(0)
        scale(1);
}

.team-contact-inner.animate-in {
    opacity: 1;

    transform:
        translateY(0)
        scale(1);
}


/* ==================================================
   FAST CARD INTERACTION AFTER REVEAL
================================================== */

.team-card.reveal-ready.animate-in {
    transition:
        border-color 0.3s ease,
        box-shadow 0.3s ease,
        transform 0.3s ease;

    transition-delay: 0s;
}

.team-card.reveal-ready.animate-in:hover {
    border-color:
        var(--orange);

    box-shadow:
        0 18px 38px
        rgba(0, 0, 0, 0.12);

    transform:
        translateY(-6px)
        scale(1);
}


/* ==================================================
   LARGE TABLET / SMALL LAPTOP
================================================== */

@media (max-width: 1100px) {

    .team-container {
        width:
            min(
                100% - 40px,
                1040px
            );
    }

    .team-hero-grid {
        grid-template-columns:
            minmax(0, 1.3fr)
            minmax(250px, 0.7fr);
    }

    .team-hero-copy {
        padding-right: 52px;
    }

    .team-card-grid {
        gap: 24px;
    }

}


/* ==================================================
   TABLET
================================================== */

@media (max-width: 950px) {

    .team-container {
        width:
            min(
                calc(100% - 36px),
                900px
            );
    }


    /* ----------------------------------------------
       HERO
    ---------------------------------------------- */

    .team-hero-grid {
        grid-template-columns:
            minmax(0, 1.2fr)
            minmax(220px, 0.8fr);
    }

    .team-hero-copy {
        padding:
            58px
            42px
            58px
            0;
    }

    .team-hero h1 {
        font-size:
            clamp(
                2.8rem,
                7vw,
                4.35rem
            );
    }

    .team-hero-copy
    p:not(.team-hero-kicker) {
        font-size: 15px;
    }

    .team-hero-copy
    .team-hero-lead {
        font-size: 18px;
    }

    .team-hero-panel {
        min-height: 330px;

        padding:
            34px
            26px;
    }

    .team-hero-panel strong {
        font-size:
            clamp(
                3.2rem,
                7vw,
                4.5rem
            );
    }


    /* ----------------------------------------------
       TEAM MEMBERS
    ---------------------------------------------- */

    .team-members {
        padding:
            64px
            0
            70px;
    }

    .team-card-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );

        gap: 24px;
    }

    .team-card {
        width: 100%;
    }

    .team-photo {
        height: 270px;
    }

    .team-card-content {
        min-height: 168px;
    }


    /* ----------------------------------------------
       TABLET STAGGER
    ---------------------------------------------- */

    .team-card.reveal-ready:nth-child(odd) {
        transition-delay: 0.08s;
    }

    .team-card.reveal-ready:nth-child(even) {
        transition-delay: 0.2s;
    }


    /* ----------------------------------------------
       CONTACT
    ---------------------------------------------- */

    .team-contact-inner {
        gap: 34px;
    }

    .team-contact-button {
        min-width: 190px;
    }

}


/* ==================================================
   PORTRAIT TABLET
================================================== */

@media (max-width: 800px) {

    /*
       Keep the same hero composition rather than
       immediately changing it into a completely
       different mobile layout.
    */

    .team-hero-grid {
        grid-template-columns:
            minmax(0, 1fr)
            minmax(205px, 0.58fr);
    }

    .team-hero-copy {
        padding:
            52px
            32px
            52px
            0;
    }

    .team-hero h1 {
        font-size:
            clamp(
                2.6rem,
                7vw,
                3.8rem
            );
    }

    .team-hero-panel {
        padding:
            30px
            22px;
    }

    .team-hero-panel strong {
        font-size:
            clamp(
                3rem,
                7vw,
                4rem
            );
    }

    .team-contact-inner {
        align-items: flex-start;
        flex-direction: column;

        gap: 24px;
    }

    .team-contact-button {
        min-width: 220px;
    }

}


/* ==================================================
   MOBILE
================================================== */

@media (max-width: 700px) {

    /* ----------------------------------------------
       PAGE
    ---------------------------------------------- */

    .team-page {
        /*
           Continue using the shared header variable
           instead of hard-coding a separate 78px
           mobile header height.
        */

        padding-top:
            var(--header-height);
    }

    .team-container {
        width:
            calc(100% - 28px);
    }


    /* ----------------------------------------------
       HERO
    ---------------------------------------------- */

    .team-hero-grid {
        display: grid;

        grid-template-columns: 1fr;
    }

    .team-hero-copy {
        padding:
            52px
            0
            48px;

        text-align: center;
    }

    .team-hero-kicker {
        font-size: 11px;
    }

    .team-hero h1 {
        max-width: 100%;

        margin-right: auto;
        margin-left: auto;

        font-size:
            clamp(
                2.7rem,
                12vw,
                4rem
            );
    }

    .team-hero-separator {
        width: 66px;

        margin:
            22px
            auto;
    }

    .team-hero-copy
    p:not(.team-hero-kicker) {
        max-width: 560px;

        margin-right: auto;
        margin-left: auto;

        font-size: 15px;
        line-height: 1.72;
    }

    .team-hero-copy
    .team-hero-lead {
        font-size: 17px;
    }


    /* ----------------------------------------------
       MOBILE HERO PANEL
    ---------------------------------------------- */

    .team-hero-panel {
        min-height: 0;

        padding:
            34px
            24px
            36px;

        /*
           Keep the same orange hero element rather
           than removing it on mobile.
        */
    }

    .team-hero-panel-label {
        margin-bottom: 12px;
    }

    .team-hero-panel strong {
        max-width: 100%;

        font-size:
            clamp(
                3.2rem,
                16vw,
                4.6rem
            );
    }

    .team-hero-panel-caption {
        margin-top: 16px;
    }


    /* ----------------------------------------------
       TEAM MEMBERS
    ---------------------------------------------- */

    .team-members {
        padding:
            56px
            0
            62px;
    }

    .team-section-heading {
        margin-bottom: 38px;
    }

    .team-section-heading
    > p:not(.section-eyebrow) {
        font-size: 14px;
    }


    /* ----------------------------------------------
       MOBILE CARD GRID
    ---------------------------------------------- */

    .team-card-grid {
        grid-template-columns:
            1fr;

        gap: 24px;

        width:
            min(
                460px,
                100%
            );

        margin:
            0 auto;
    }


    /* ----------------------------------------------
       MOBILE CARDS
    ---------------------------------------------- */

    .team-card {
        width: 100%;
    }

    .team-photo {
        height:
            clamp(
                245px,
                74vw,
                320px
            );
    }

    .team-photo img {
        object-position:
            center 25%;
    }

    .team-card-content {
        min-height: 0;

        padding:
            24px
            22px
            27px;
    }

    .team-card h3 {
        font-size: 22px;
    }

    .team-card-content
    p:not(.team-role) {
        font-size: 13px;
    }


    /* ----------------------------------------------
       SAME SCROLL EFFECT ON MOBILE
    ---------------------------------------------- */

    .js-enabled
    .team-card.reveal-ready:not(
        .animate-in
    ) {
        opacity: 0;

        /*
           Slightly shorter physical travel because
           the viewport is smaller, but the same
           fade / rise / scale effect remains.
        */

        transform:
            translateY(32px)
            scale(0.975);
    }


    /*
       Cards now reveal individually as they enter
       the mobile viewport, so there is no artificial
       desktop-row delay.
    */

    .team-card.reveal-ready:nth-child(n) {
        transition-delay: 0s;
    }


    /* ----------------------------------------------
       CONTACT
    ---------------------------------------------- */

    .team-contact-panel {
        padding:
            48px
            0;
    }

    .team-contact-inner {
        align-items: center;
        flex-direction: column;

        gap: 27px;

        text-align: center;
    }

    .team-contact-inner
    > div {
        width: 100%;
    }

    .team-contact-inner
    > div
    > p:last-child {
        max-width: 520px;

        margin-right: auto;
        margin-left: auto;
    }

    .team-contact-button {
        align-self: center;

        width: 100%;
        max-width: 340px;
        min-width: 0;
    }

}


/* ==================================================
   SMALL MOBILE
================================================== */

@media (max-width: 480px) {

    .team-container {
        width:
            calc(100% - 24px);
    }

    .team-hero-copy {
        padding:
            46px
            0
            43px;
    }

    .team-hero h1 {
        font-size:
            clamp(
                2.45rem,
                13vw,
                3.4rem
            );
    }

    .team-hero-copy
    p:not(.team-hero-kicker) {
        font-size: 14px;
        line-height: 1.68;
    }

    .team-hero-copy
    .team-hero-lead {
        font-size: 16px;
    }

    .team-hero-panel {
        padding:
            30px
            20px
            32px;
    }

    .team-members {
        padding:
            50px
            0
            55px;
    }

    .team-card-grid {
        gap: 20px;
    }

    .team-photo {
        height:
            clamp(
                220px,
                72vw,
                280px
            );
    }

    .team-card-content {
        padding:
            22px
            18px
            25px;
    }

    .team-card h3 {
        font-size: 21px;
    }

    .team-contact-panel {
        padding:
            43px
            0;
    }

}


/* ==================================================
   VERY SMALL MOBILE
================================================== */

@media (max-width: 360px) {

    .team-container {
        width:
            calc(100% - 20px);
    }

    .team-hero-copy {
        padding-top: 42px;
        padding-bottom: 40px;
    }

    .team-hero h1 {
        font-size: 2.35rem;
    }

    .team-photo {
        height: 215px;
    }

    .team-card-content {
        padding:
            20px
            16px
            23px;
    }

}


/* ==================================================
   TOUCH DEVICES
================================================== */

@media (
    hover: none
) and (
    pointer: coarse
) {

    /*
       Phones and tablets cannot hold a conventional
       mouse hover, so the same interaction is
       available while the card is pressed/focused.
    */

    .team-card:hover,
    .team-card.reveal-ready.animate-in:hover {
        border-color:
            rgba(
                0,
                0,
                0,
                0.12
            );

        box-shadow: none;

        transform:
            translateY(0)
            scale(1);
    }

    .team-card:hover
    .team-photo img {
        transform:
            scale(1)
            translateZ(0);
    }


    /* ----------------------------------------------
       TOUCH PRESS FEEDBACK
    ---------------------------------------------- */

    .team-card:active {
        border-color:
            var(--orange);

        box-shadow:
            0 10px 26px
            rgba(
                0,
                0,
                0,
                0.1
            );

        transform:
            translateY(-2px)
            scale(1);
    }

    .team-card:active
    .team-photo img {
        transform:
            scale(1.025)
            translateZ(0);
    }


    /* ----------------------------------------------
       BUTTON TOUCH FEEDBACK
    ---------------------------------------------- */

    .team-contact-button:hover {
        background-color:
            var(--orange);

        border-color:
            var(--orange);

        color:
            #ffffff;

        transform: none;
    }

    .team-contact-button:active {
        background-color:
            var(--gold);

        border-color:
            var(--gold);

        color:
            var(--navy);

        transform:
            translateY(-1px);
    }

}


/* ==================================================
   LANDSCAPE MOBILE
================================================== */

@media (
    max-width: 900px
) and (
    orientation: landscape
) and (
    max-height: 560px
) {

    /*
       In landscape there is enough horizontal space
       to retain more of the desktop hero structure.
    */

    .team-hero-grid {
        display: grid;

        grid-template-columns:
            minmax(0, 1.4fr)
            minmax(210px, 0.6fr);
    }

    .team-hero-copy {
        padding:
            42px
            34px
            42px
            0;

        text-align: left;
    }

    .team-hero h1 {
        margin-left: 0;

        font-size:
            clamp(
                2.5rem,
                6vw,
                3.6rem
            );
    }

    .team-hero-separator {
        margin-left: 0;
    }

    .team-hero-copy
    p:not(.team-hero-kicker) {
        margin-left: 0;

        font-size: 14px;
    }

    .team-hero-panel {
        min-height: 100%;

        padding:
            28px
            20px;
    }

    .team-hero-panel strong {
        font-size:
            clamp(
                2.8rem,
                7vw,
                3.8rem
            );
    }

}


/* ==================================================
   REDUCED MOTION
================================================== */

@media (
    prefers-reduced-motion: reduce
) {

    .team-section-heading,
    .team-card,
    .team-contact-inner,

    .team-section-heading.reveal-ready:not(
        .animate-in
    ),

    .team-card.reveal-ready:not(
        .animate-in
    ),

    .team-contact-inner.reveal-ready:not(
        .animate-in
    ),

    .team-photo img {
        opacity: 1;

        filter: none;

        transform: none;

        transition: none;
        transition-delay: 0s;
    }


    .team-card:hover,
    .team-card:active,
    .team-card.reveal-ready.animate-in:hover {
        transform: none;
    }

}


/* ==================================================
   HIGH CONTRAST / KEYBOARD ACCESSIBILITY
================================================== */

.team-contact-button:focus-visible {
    outline:
        3px solid
        var(--gold);

    outline-offset: 4px;
}


/* ==================================================
   SAFE OVERFLOW
================================================== */

.team-hero,
.team-members,
.team-contact-panel,
.team-card,
.team-card-content,
.team-hero-copy {
    min-width: 0;
}


/* ==================================================
   IMAGE SAFETY
================================================== */

.team-photo img {
    max-width: none;
}