:root {
    --team-bg: #F5F7FA;
    --team-navy: #1C0B45;
    --team-purple: #7949F5;
    --team-orange: #EC562B;
    --team-card: #FFFFFF;
}

html,
body {
    background: var(--team-bg);
}

.team-page-shell {
    width: min(100%, var(--page-shell-max-width, 1440px));
    margin: 0 auto;
    padding: 0 var(--page-gutter, 20px);
    gap: 20px;
}

.team-main {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.team-hero,
.team-member {
    border-radius: 24px;
}

.team-hero {
    min-height: 339px;
    padding: 100px 30px;
    color: #FFFFFF;
    background: var(--team-navy);
}

.team-hero h1 {
    margin: 0 0 32px;
    color: #FFFFFF;
    font-family: 'Gilroy', Arial, sans-serif;
    font-size: 48px;
    font-weight: 700;
    line-height: 1.238;
    letter-spacing: 0;
}

.team-hero p {
    width: min(100%, 1340px);
    margin: 0;
    color: #FFFFFF;
    font-size: 16px;
    line-height: 24px;
}

.team-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding-bottom: var(--section-gap, 20px);
}

.team-member {
    min-height: 571px;
    padding: 32px;
    color: var(--team-navy);
    background: var(--team-card);
}

.team-member-top {
    display: grid;
    grid-template-columns: minmax(0, 953px) 320px;
    gap: 63px;
    align-items: start;
}

.team-member-copy {
    min-height: 264px;
}

.team-member h2,
.team-member h3,
.team-member p {
    margin: 0;
    color: var(--team-navy);
}

.team-member h2,
.team-member h3 {
    font-size: 16px;
    font-weight: 700;
    line-height: 28.05px;
}

.team-member h3 {
    margin-bottom: 24px;
}

.team-member-copy p {
    font-size: 16px;
    line-height: 24px;
}

.team-linkedin {
    width: max-content;
    max-width: 100%;
    margin-top: 24px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--team-navy);
    font-size: 16px;
    line-height: 24px;
    flex-wrap: wrap;
}

.linkedin-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.linkedin-icon img {
    width: 18px;
    height: 18px;
    display: block;
}

.team-linkedin-brand {
    color: var(--team-purple);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.team-link-icon {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.team-link-icon img {
    width: 18px;
    height: 18px;
    display: block;
}

.team-member-photo {
    width: 320px;
    height: 268px;
    margin-top: -4px;
    display: block;
    border-radius: 35px;
    object-fit: cover;
}

.team-member:nth-child(1) .team-member-photo {
    object-position: 50% 0%;
}

.team-member:nth-child(1) .team-cta {
    margin-top: 40px;
}

.team-member:nth-child(2) .team-member-photo {
    object-position: 56% 28%;
}

.team-member:nth-child(3) .team-member-photo {
    object-position: 49% 31%;
}

.team-member:nth-child(4) .team-member-photo {
    object-position: 50% 27%;
}

.team-member blockquote {
    min-height: auto;
    margin: 30px 0 0;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--team-bg);
    border-radius: 20px;
}

.quote-mark {
    width: 72px;
    height: 72px;
    flex: 0 0 72px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.quote-mark svg {
    width: 48px;
    height: 48px;
    display: block;
}

.quote-mark img {
    width: 72px;
    height: 72px;
    display: block;
    object-fit: contain;
}

.team-quote-copy {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: -2px 0 0 -4px;
}

.team-quote-body {
    font-size: 16.1px;
    line-height: 24px;
    letter-spacing: -0.1px;
}

.team-quote-author {
    font-size: 16.1px;
    line-height: 24px;
    font-weight: 700;
}

.team-cta {
    width: 246px;
    height: 52px;
    margin-top: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    background: var(--team-purple);
    border-radius: 15px;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    transition: all 0.2s ease;
}

.team-cta:hover {
    background-color: #3F2582;
}

@media (max-width: 1189px) {
    .team-page-shell {
        padding: 0 16px;
        gap: 16px;
    }

    .team-main,
    .team-list {
        gap: 16px;
    }

    .team-hero,
    .team-member {
        border-radius: 24px;
    }

    .team-hero {
        min-height: auto;
        padding: 56px 32px;
    }

    .team-hero h1 {
        margin-bottom: 28px;
        font-size: 44px;
    }

    .team-member {
        padding: 32px;
    }

    .team-member-top {
        gap: 40px;
    }

    .team-member h2,
    .team-member h3 {
        font-size: 26px;
        line-height: 1.24;
    }

    .team-member h3 {
        margin: 14px 0 24px;
    }

    .team-member-copy p,
    .team-linkedin,
    .team-member blockquote p {
        font-size: 18px;
        line-height: 1.45;
    }

    .team-member-photo {
        width: 100%;
        height: auto;
        aspect-ratio: 320 / 268;
        border-radius: 35px;
        transform: none !important;
    }

    .team-member blockquote {
        margin-top: 40px;
        padding: 24px;
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .quote-mark {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
        font-size: 52px;
    }

    .team-cta {
        width: 100%;
        height: 52px;
        padding: 0 24px;
        box-sizing: border-box;
    }
}

@media (max-width: 1100px) {
    .team-member-top {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .team-member-photo {
        max-width: 320px;
    }
}