.team-people-page {
    --team-ink: #20252b;
    --team-muted: #6d7379;
    --team-soft: #f7f7f5;
    --team-line: #e6e6e3;
    --team-red: #b72619;
    color: var(--team-ink);
}

.team-kicker {
    margin-bottom: .62rem;
    color: var(--team-red);
    font-size: .76rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.team-hero {
    padding: 1.5rem 0 3.75rem;
}

.team-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin-bottom: 1.25rem;
    color: var(--team-muted);
    font-size: .8rem;
}

.team-breadcrumb a {
    color: inherit;
    text-decoration: none;
}

.team-breadcrumb a:hover {
    color: var(--team-red);
}

.team-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
    min-height: 510px;
    overflow: hidden;
    border: 1px solid var(--team-line);
    border-radius: 16px;
    background: #fff;
}

.team-hero__content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2rem, 4.5vw, 4.25rem);
}

.team-hero h1 {
    max-width: 690px;
    margin: 0 0 1.15rem;
    font-size: clamp(2.05rem, 3.15vw, 3.45rem);
    font-weight: 800;
    line-height: 1.03;
    letter-spacing: -.04em;
}

.team-hero__lead {
    max-width: 650px;
    margin: 0;
    color: var(--team-muted);
    font-size: clamp(1rem, 1.25vw, 1.15rem);
    line-height: 1.72;
}

.team-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    margin-top: 1.8rem;
}

.team-text-link,
.team-office-group__office-link,
.team-person-card__profile-link {
    color: var(--team-ink);
    font-size: .9rem;
    font-weight: 750;
    text-decoration: none;
}

.team-text-link::after,
.team-office-group__office-link::after,
.team-person-card__profile-link::after {
    content: ' →';
    color: var(--team-red);
}

.team-text-link:hover,
.team-office-group__office-link:hover,
.team-person-card__profile-link:hover {
    color: var(--team-red);
}


.team-hero__visual {
    position: relative;
    min-height: 510px;
    overflow: hidden;
    background: #ececea;
}

.team-hero__visual::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 54%, rgba(22, 25, 28, .18) 100%);
    pointer-events: none;
}

.team-hero__visual-image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 510px;
    object-fit: cover;
    object-position: center;
}

.team-hero__visual-label {
    position: absolute;
    z-index: 1;
    right: 1.25rem;
    bottom: 1.25rem;
    left: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: .35rem .8rem;
    align-items: baseline;
    justify-content: space-between;
    padding: .9rem 1rem;
    border: 1px solid rgba(255, 255, 255, .56);
    border-radius: 12px;
    background: rgba(255, 255, 255, .90);
    box-shadow: 0 12px 32px rgba(24, 28, 31, .10);
    backdrop-filter: blur(10px);
}

.team-hero__visual-label span {
    color: var(--team-red);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.team-hero__visual-label strong {
    color: var(--team-ink);
    font-size: .92rem;
    font-weight: 800;
}

.team-intro {
    padding: .5rem 0 3.5rem;
}

.team-section-head {
    display: grid;
    grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr);
    gap: clamp(2rem, 6vw, 6rem);
    align-items: start;
}

.team-section-head h2,
.team-office-group__head h2,
.team-join h2 {
    margin: 0;
    font-size: clamp(1.7rem, 2.35vw, 2.5rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -.025em;
}

.team-section-head > p {
    max-width: 760px;
    margin: 0;
    color: var(--team-muted);
    font-size: 1rem;
    line-height: 1.78;
}

.team-office-nav {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 2rem;
    border-top: 1px solid var(--team-line);
    border-left: 1px solid var(--team-line);
}

.team-office-nav a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 68px;
    padding: 1rem 1.1rem;
    border-right: 1px solid var(--team-line);
    border-bottom: 1px solid var(--team-line);
    background: #fff;
    color: var(--team-ink);
    text-decoration: none;
}

.team-office-nav a:hover {
    background: var(--team-soft);
    color: var(--team-red);
}

.team-office-nav span {
    font-size: .93rem;
    font-weight: 750;
}

.team-office-nav small {
    display: inline-grid;
    place-items: center;
    min-width: 28px;
    height: 28px;
    padding: 0 .45rem;
    border-radius: 999px;
    background: var(--team-soft);
    color: var(--team-muted);
    font-size: .72rem;
    font-weight: 800;
}

.team-directory {
    padding: 1rem 0 4rem;
    background:
        linear-gradient(180deg, #fafaf9 0%, var(--team-soft) 100%);
}

.team-office-group {
    padding: 3rem 0;
    scroll-margin-top: 110px;
}

.team-office-group + .team-office-group {
    border-top: 1px solid var(--team-line);
}

.team-office-group__head {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2rem;
    align-items: end;
    margin-bottom: 1.5rem;
}

.team-office-group__head p {
    margin: .6rem 0 0;
    color: var(--team-muted);
    font-size: .9rem;
    line-height: 1.55;
}

.team-office-group__office-link {
    margin-bottom: .15rem;
    white-space: nowrap;
}

.team-people-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.team-person-card {
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--team-line);
    border-radius: 14px;
    background: linear-gradient(180deg, #fff 0%, #fcfcfb 100%);
    box-shadow: 0 8px 24px rgba(31, 34, 38, .04);
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.team-person-card__photo {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    isolation: isolate;
    background:
        radial-gradient(115% 94% at 10% 111%, transparent 0 48%, rgba(215, 216, 214, .62) 48.5% 57%, transparent 57.5% 67%, rgba(230, 230, 228, .74) 67.5% 74%, transparent 74.5%),
        linear-gradient(140deg, #fafaf9 0%, #f4f4f2 58%, #fff 100%);
}

.team-person-card__photo::before {
    content: '';
    position: absolute;
    z-index: 0;
    left: -33%;
    bottom: -42%;
    width: 112%;
    aspect-ratio: 1;
    border: 23px solid rgba(207, 209, 206, .30);
    border-radius: 50%;
    transform: rotate(-18deg);
    pointer-events: none;
}

.team-person-card__photo::after {
    content: '';
    position: absolute;
    z-index: 0;
    left: 0;
    bottom: 0;
    width: 35%;
    height: 30%;
    background:
        linear-gradient(66deg, rgba(146, 31, 24, .88) 0 20%, transparent 20.5%),
        linear-gradient(58deg, rgba(183, 38, 25, .92) 0 31%, transparent 31.5%);
    clip-path: polygon(0 100%, 0 18%, 20% 56%, 37% 25%, 72% 100%);
    pointer-events: none;
}

.team-person-card__photo img {
    position: relative;
    z-index: 1;
    display: block;
    width: 91%;
    height: 96%;
    object-fit: contain;
    object-position: center bottom;
    transition: transform .35s ease;
    filter: drop-shadow(0 10px 16px rgba(28, 31, 33, .05));
}

.team-person-card:hover .team-person-card__photo img {
    transform: translateY(-2px) scale(1.018);
}

.team-person-card__body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.2rem;
}

.team-person-card:hover {
    border-color: #ddd7d2;
    box-shadow: 0 14px 30px rgba(31, 34, 38, .08);
    transform: translateY(-2px);
}

.team-person-card__office {
    min-height: 18px;
    margin-bottom: .45rem;
    color: var(--team-red);
    font-size: .69rem;
    font-weight: 800;
    letter-spacing: .065em;
    text-transform: uppercase;
}

.team-person-card h3 {
    margin: 0;
    font-size: 1.08rem;
    font-weight: 800;
    line-height: 1.2;
}

.team-person-card h3 a {
    color: var(--team-ink);
    text-decoration: none;
}

.team-person-card h3 a:hover {
    color: var(--team-red);
}

.team-person-card__role {
    min-height: 42px;
    margin: .45rem 0 1rem;
    color: var(--team-muted);
    font-size: .84rem;
    line-height: 1.55;
}

.team-person-card__footer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: .9rem;
    margin-top: auto;
    padding-top: .95rem;
    border-top: 1px solid var(--team-line);
}

.team-person-card__profile-link {
    font-size: .82rem;
}

.team-person-card__actions {
    display: grid;
    gap: .55rem;
}

.team-person-card__action {
    display: flex;
    align-items: center;
    gap: .55rem;
    min-height: 42px;
    padding: .7rem .8rem;
    border: 1px solid #eee4e1;
    border-radius: 10px;
    background: #fff;
    color: var(--team-ink);
    font-size: .8rem;
    font-weight: 700;
    line-height: 1.25;
    text-decoration: none;
    transition: border-color .18s ease, background-color .18s ease, color .18s ease, transform .18s ease;
}

.team-person-card__action:hover {
    border-color: rgba(183, 38, 25, .35);
    background: #fff7f5;
    color: var(--team-red);
    transform: translateY(-1px);
}

.team-person-card__action-icon {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 18px;
    color: var(--team-red);
}

.team-person-card__action-text {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.team-join {
    padding: 1.25rem 0 5rem;
}

.team-join__box {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2.5rem;
    align-items: center;
    padding: clamp(2rem, 4vw, 3.5rem);
    border-radius: 16px;
    background: #342c34;
    color: #fff;
}

.team-join .team-kicker {
    color: rgba(255, 255, 255, .65);
}

.team-join h2 {
    color: #fff;
}

.team-join p {
    max-width: 760px;
    margin: 1rem 0 0;
    color: rgba(255, 255, 255, .8);
    line-height: 1.7;
}

.team-join__button {
    white-space: nowrap;
}

@media (max-width: 1199.98px) {
    .team-people-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

@media (max-width: 991.98px) {
    .team-hero__grid,
    .team-section-head {
        grid-template-columns: minmax(0, 1fr);
    }

    .team-hero__grid {
        min-height: 0;
    }

    .team-hero__visual {
        min-height: 380px;
        order: -1;
    }

    .team-hero__visual-image {
        min-height: 380px;
    }

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

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

    .team-join__button {
        justify-self: start;
    }
}

@media (max-width: 767.98px) {
    .team-hero {
        padding-top: .75rem;
        padding-bottom: 3rem;
    }

    .team-hero__content {
        padding: 1.45rem;
    }

    .team-hero h1 {
        font-size: clamp(1.95rem, 8vw, 2.55rem);
        letter-spacing: -.03em;
    }

    .team-hero__visual,
    .team-hero__visual-image {
        min-height: 320px;
    }

    .team-hero__actions .btn {
        width: 100%;
    }

    .team-office-group__head {
        grid-template-columns: minmax(0, 1fr);
        gap: .75rem;
        align-items: start;
    }

    .team-office-group__office-link {
        justify-self: start;
    }

    .team-people-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .75rem;
    }

    .team-person-card__body {
        padding: 1rem;
    }

    .team-person-card__footer {
        align-items: stretch;
    }

    .team-person-card__action {
        min-height: 40px;
        padding: .65rem .72rem;
        font-size: .77rem;
    }

    .team-person-card__action-text {
        white-space: normal;
        word-break: break-word;
    }
}

@media (max-width: 575.98px) {
    .team-hero__visual,
    .team-hero__visual-image {
        min-height: 250px;
    }

    .team-hero__visual-label {
        right: .75rem;
        bottom: .75rem;
        left: .75rem;
        padding: .7rem .8rem;
    }

    .team-office-nav,
    .team-people-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .team-person-card__photo {
        aspect-ratio: 4 / 4.6;
    }
}

@media (max-width: 575.98px) {
    .team-person-card__photo::before {
        border-width: 18px;
    }

    .team-person-card__photo::after {
        width: 39%;
        height: 27%;
        opacity: .9;
    }
}
