
.teamx-page,
.teamx-page * {
    box-sizing: border-box;
}

.teamx-page {
    --wine: #8d2531;
    --wine-dark: #721b26;

    --blue: #52788f;
    --blue-dark: #315267;

    --text: #536a78;

    --cream: #f8f3ed;

    --rose-soft: #f5e4e2;
    --blue-soft: #edf4f7;
    --green-soft: #edf1e5;

    width: 100%;
    min-height: 100vh;

    margin: 0 !important;

    padding:
        38px
        max(24px, calc((100vw - 1240px) / 2))
        78px;

    background:
        radial-gradient(
            circle at 7% 4%,
            rgba(141,37,49,.035),
            transparent 27%
        ),
        radial-gradient(
            circle at 94% 15%,
            rgba(82,120,143,.04),
            transparent 25%
        ),
        var(--cream);

    color: var(--text);

    font-family:
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;
}

.teamx-svg {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.teamx-page svg {
    display: block;
}

.teamx-page img {
    display: block;
    max-width: 100%;
}

.teamx-page h1,
.teamx-page h2,
.teamx-page h3,
.teamx-page p,
.teamx-page figure {
    margin-top: 0;
}


/* ==================================================
   HERO
   ================================================== */

.teamx-hero {
    max-width: 1180px;

    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        300px;

    gap: 55px;
    align-items: center;

    margin: 0 auto 34px;

    padding: 10px 7px 24px;
}

.teamx-kicker,
.teamx-label {
    color: #b57973;

    font-size: 11px;
    line-height: 1.25;
    font-weight: 800;

    letter-spacing: .17em;
    text-transform: uppercase;
}

.teamx-kicker {
    margin-bottom: 8px;
}

.teamx-hero h1 {
    max-width: 800px;

    margin-bottom: 13px;

    color: var(--wine-dark);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: clamp(40px, 4.4vw, 60px);
    line-height: 1.04;
    letter-spacing: -.025em;
}

.teamx-lead {
    max-width: 760px;

    margin-bottom: 25px;

    color: #5e7887;

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 20px;
    line-height: 1.48;
}

.teamx-values {
    display: flex;
    flex-wrap: wrap;
    gap: 22px;
}

.teamx-value {
    display: flex;
    align-items: center;
    gap: 10px;
}

.teamx-value-icon {
    width: 47px;
    height: 47px;

    display: grid;
    place-items: center;

    border-radius: 50%;
}

.teamx-value-icon svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.teamx-value-icon.blue {
    color: var(--blue);
    background: var(--blue-soft);
}

.teamx-value-icon.rose {
    color: #a34a53;
    background: var(--rose-soft);
}

.teamx-value-icon.green {
    color: #637947;
    background: var(--green-soft);
}

.teamx-value strong {
    display: block;
    margin-bottom: 2px;
    color: #3b5667;
    font-size: 13px;
}

.teamx-value small {
    display: block;
    color: #8697a0;
    font-size: 11px;
}

.teamx-hero-art {
    text-align: center;
}

.teamx-script {
    color: #58798d;

    font-family:
        "Brush Script MT",
        "Segoe Script",
        cursive;

    font-size: 43px;
    line-height: .96;

    transform: rotate(-6deg);
}

.teamx-script span {
    font-size: 35px;
}

.teamx-art-words {
    margin-top: 25px;

    color: #b9827d;

    font-size: 11px;
    line-height: 1.9;
    letter-spacing: .22em;
}


/* ==================================================
   SECTION
   ================================================== */

.teamx-board,
.teamx-team {
    max-width: 1180px;

    margin: 0 auto 24px;

    padding: 29px;

    border: 1px solid rgba(124,77,52,.09);
    border-radius: 22px;

    background: rgba(255,253,250,.97);

    box-shadow:
        0 11px 34px rgba(75,51,36,.055),
        0 2px 6px rgba(75,51,36,.025);
}

.teamx-section-head {
    display: flex;
    align-items: center;

    gap: 16px;

    margin-bottom: 24px;
}

.teamx-section-icon {
    flex: 0 0 57px;

    width: 57px;
    height: 57px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    color: var(--wine);

    background:
        linear-gradient(
            145deg,
            #f2d8d6,
            #f8eae7
        );
}

.teamx-section-icon svg {
    width: 26px;
    height: 26px;
    fill: currentColor;
}

.teamx-label {
    margin-bottom: 5px;
}

.teamx-section-head h2 {
    margin-bottom: 4px;

    color: var(--wine-dark);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: clamp(29px, 2.7vw, 38px);
    line-height: 1.12;
}

.teamx-section-head p {
    max-width: 720px;

    margin-bottom: 0;

    color: var(--text);

    font-size: 14px;
    line-height: 1.55;
}


/* ==================================================
   BOARD
   ================================================== */

.teamx-board-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 20px;
}

.teamx-board-card {
    min-width: 0;

    padding: 17px;

    border: 1px solid #e8e0d9;
    border-radius: 19px;

    background: #fff;

    text-align: left;
}

.teamx-board-photo {
    width: 76%;
    max-width: 270px;

    margin:
        0 auto
        17px;

    aspect-ratio: 4 / 4.5;

    overflow: hidden;

    border-radius: 17px;

    background: #ece5df;

    box-shadow:
        0 6px 18px rgba(55,40,30,.07);
}

.teamx-board-photo img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    object-position:
        center
        20%;

    border-radius: inherit;
}

.teamx-board-body {
    width: 76%;
    max-width: 270px;

    margin: 0 auto;

    padding:
        0
        2px
        4px;
}

.teamx-board-mark {
    margin-bottom: 6px;

    color: #b57973;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: .15em;
}

.teamx-board-body h3 {
    margin-bottom: 5px;

    color: var(--wine-dark);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 21px;
    line-height: 1.25;
}

.teamx-board-body p {
    margin-bottom: 0;

    color: var(--blue);

    font-size: 13px;
    font-weight: 600;
}


/* ==================================================
   TEAM LIST - NO INITIALS
   ================================================== */

.teamx-team-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 13px;
}

.teamx-person {
    position: relative;

    min-width: 0;

    padding:
        17px
        18px
        17px
        21px;

    border: 1px solid #ebe3dc;
    border-radius: 14px;

    background:
        rgba(255,255,255,.74);
}

.teamx-person::before {
    content: "";

    position: absolute;

    left: 0;
    top: 15px;
    bottom: 15px;

    width: 3px;

    border-radius:
        0
        3px
        3px
        0;

    background: rgba(141,37,49,.28);
}

.teamx-person-copy {
    min-width: 0;
}

.teamx-person h3 {
    margin-bottom: 4px;

    color: var(--blue-dark);

    font-size: 15.5px;
    line-height: 1.3;
}

.teamx-person p {
    margin-bottom: 0;

    color: var(--text);

    font-size: 12.5px;
    line-height: 1.42;
}


/* ==================================================
   CONTACT
   ================================================== */

.teamx-contact {
    max-width: 1180px;

    display: grid;

    grid-template-columns:
        64px
        minmax(0,1fr)
        auto;

    gap: 20px;

    align-items: center;

    margin: 0 auto;

    padding: 26px 30px;

    border: 1px solid #e8ddd3;
    border-radius: 21px;

    background:
        linear-gradient(
            120deg,
            #f0e6dc,
            #f8f2eb
        );
}

.teamx-contact-icon {
    width: 58px;
    height: 58px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: #fff8f2;

    color: var(--wine);
}

.teamx-contact-icon svg {
    width: 27px;
    height: 27px;
    fill: currentColor;
}

.teamx-contact h2 {
    margin: 4px 0 5px;

    color: var(--wine-dark);

    font-family:
        Georgia,
        "Times New Roman",
        serif;

    font-size: 29px;
}

.teamx-contact p {
    margin: 0;
    color: var(--text);
    font-size: 14px;
}

.teamx-contact-button {
    display: inline-block;

    padding: 10px 18px;

    border-radius: 999px;

    background: var(--wine);

    color: #fff !important;

    font-size: 13px;
    font-weight: 700;

    text-decoration: none !important;
}


/* ==================================================
   TABLET
   ================================================== */

@media (max-width: 1000px) {

    .teamx-page {
        padding-left: 22px;
        padding-right: 22px;
    }

    .teamx-hero {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .teamx-hero-art {
        display: none;
    }

    .teamx-board-photo,
    .teamx-board-body {
        width: 86%;
    }

    .teamx-team-grid {
        grid-template-columns:
            repeat(2, minmax(0,1fr));
    }

}


/* ==================================================
   SMALL TABLET
   ================================================== */

@media (max-width: 760px) {

    .teamx-board-grid {
        grid-template-columns:
            repeat(2, minmax(0,1fr));
    }

    .teamx-board-photo,
    .teamx-board-body {
        width: 88%;
    }

    .teamx-contact {
        grid-template-columns:
            58px
            minmax(0,1fr);
    }

    .teamx-contact-button {
        grid-column: 2;

        width: fit-content;
    }

}


/* ==================================================
   MOBILE
   ================================================== */

@media (max-width: 620px) {

    .teamx-page {
        padding:
            24px
            14px
            52px;
    }

    .teamx-hero {
        margin-bottom: 18px;
        padding: 2px;
    }

    .teamx-hero h1 {
        font-size: 35px;
    }

    .teamx-lead {
        font-size: 17px;
    }

    .teamx-values {
        display: grid;

        grid-template-columns:
            1fr
            1fr;

        gap: 13px 8px;
    }

    .teamx-value-icon {
        width: 42px;
        height: 42px;
    }

    .teamx-value-icon svg {
        width: 19px;
        height: 19px;
    }

    .teamx-board,
    .teamx-team {
        padding:
            18px
            15px;

        border-radius: 17px;
    }

    .teamx-section-head {
        align-items: flex-start;

        gap: 12px;
    }

    .teamx-section-icon {
        flex-basis: 48px;

        width: 48px;
        height: 48px;
    }

    .teamx-section-icon svg {
        width: 22px;
        height: 22px;
    }

    .teamx-board-grid,
    .teamx-team-grid {
        grid-template-columns: 1fr;
    }

    .teamx-board-card {
        padding: 16px;
    }

    .teamx-board-photo {
        width: 72%;
        max-width: 260px;

        aspect-ratio: 4 / 4.3;

        border-radius: 16px;
    }

    .teamx-board-body {
        width: 72%;
        max-width: 260px;
    }

    .teamx-person {
        padding:
            15px
            16px
            15px
            19px;
    }

    .teamx-contact {
        display: block;

        padding:
            20px
            17px;
    }

    .teamx-contact-icon {
        margin-bottom: 13px;
    }

    .teamx-contact-button {
        margin-top: 16px;
    }

}

