.team-directory {
    --team-ink: #172f30;
    --team-muted: #687b78;
    --team-accent: #1b6b57;
    --team-line: #e2eae5;
    padding: clamp(2.5rem, 6vw, 5rem) 0;
    color: var(--team-ink);
    background:
        radial-gradient(ellipse at 82% 0%, rgba(205, 229, 215, .44), transparent 34rem),
        #f7f8f4;
}

.team-directory-hero {
    position: relative;
    max-width: 760px;
    margin: 0 auto clamp(2rem, 4vw, 3rem);
    text-align: center;
}

.team-eyebrow {
    margin: 0 0 .85rem;
    color: var(--team-accent);
    font-size: .75rem;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.team-directory-hero h1 {
    margin: 0;
    color: var(--team-ink);
    font-family: "Manrope", sans-serif;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -.055em;
    line-height: 1.08;
}

.team-directory-intro {
    max-width: 560px;
    margin: 1.15rem auto 1.5rem;
    color: var(--team-muted);
    font-size: clamp(1rem, 2vw, 1.15rem);
    line-height: 1.75;
}

.team-member-count {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .5rem .85rem;
    border: 1px solid var(--team-line);
    border-radius: 999px;
    background: rgba(255, 255, 255, .75);
    color: var(--team-muted);
    font-size: .8rem;
    font-weight: 600;
}

.team-count-number {
    color: var(--team-accent);
    font-size: .95rem;
    font-weight: 800;
}

.team-directory-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.team-person-card {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(220, 230, 223, .9);
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 8px 26px rgba(27, 55, 43, .05);
    transition: transform .22s ease, box-shadow .22s ease;
}

.team-person-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 46px rgba(27, 55, 43, .12);
}

.team-person-photo-link {
    position: relative;
    display: block;
    overflow: hidden;
    min-height: 100%;
    background: #e7eee8;
}

.team-person-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
    transition: transform .4s ease;
}

.team-person-card:hover .team-person-photo {
    transform: scale(1.035);
}

.team-photo-arrow {
    position: absolute;
    right: .5rem;
    bottom: .5rem;
    display: grid;
    width: 1.8rem;
    height: 1.8rem;
    place-items: center;
    border-radius: 50%;
    background: #fff;
    color: var(--team-accent);
    font-size: 1rem;
    box-shadow: 0 5px 16px rgba(0, 0, 0, .12);
    transition: color .2s ease, background .2s ease;
}

.team-person-card:hover .team-photo-arrow {
    background: var(--team-accent);
    color: #fff;
}

.team-person-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    padding: .8rem .85rem;
}

.team-person-role {
    margin: 0 0 .25rem;
    color: var(--team-accent);
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.team-person-content h2 {
    margin: 0;
    color: var(--team-ink);
    font-family: "Manrope", sans-serif;
    font-size: 1rem;
    font-weight: 750;
    letter-spacing: -.035em;
    line-height: 1.25;
}

.team-person-content h2 a {
    color: inherit;
    text-decoration: none;
}

.team-person-content h2 a:hover {
    color: var(--team-accent);
}

.team-person-departments {
    display: flex;
    flex-wrap: wrap;
    gap: .3rem;
    margin-top: .55rem;
}

.team-person-departments span {
    display: inline-flex;
    align-items: center;
    padding: .22rem .45rem;
    border-radius: 999px;
    background: #f0f5f1;
    color: #49675c;
    font-size: .6rem;
    font-weight: 650;
}

.team-person-departments .team-department-more {
    background: #f4f5f2;
    color: var(--team-muted);
}

.team-person-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: .5rem;
    margin-top: auto;
    padding-top: .6rem;
    border-top: 1px solid #edf1ed;
}

.team-person-footer > span {
    display: grid;
    gap: .15rem;
}

.team-footer-label {
    color: var(--team-muted);
    font-size: .58rem;
    font-weight: 650;
}

.team-person-footer strong {
    color: var(--team-ink);
    font-size: .68rem;
    font-weight: 750;
}

.team-profile-link {
    color: var(--team-accent);
    font-size: .68rem;
    font-weight: 750;
    text-decoration: none;
    white-space: nowrap;
}

.team-profile-link span {
    padding-left: .15rem;
    transition: padding .2s ease;
}

.team-profile-link:hover span {
    padding-left: .4rem;
}

.team-directory-empty {
    padding: 3rem 1.5rem;
    border: 1px solid var(--team-line);
    border-radius: 1.25rem;
    background: #fff;
    text-align: center;
}

.team-directory-empty h2 {
    color: var(--team-ink);
    font-family: "Manrope", sans-serif;
    font-size: 1.35rem;
    font-weight: 750;
}

.team-directory-empty p {
    margin: .5rem 0 0;
    color: var(--team-muted);
}

@media (max-width: 991.98px) {
    .team-directory-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: .85rem;
    }
}

@media (max-width: 575.98px) {
    .team-directory {
        padding: 2.5rem 0 3.5rem;
    }

    .team-directory-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin: 0 auto;
    }

    .team-person-card {
        grid-template-columns: 88px minmax(0, 1fr);
    }
}

@media (prefers-reduced-motion: reduce) {
    .team-person-card,
    .team-person-photo,
    .team-photo-arrow,
    .team-profile-link span {
        transition: none;
    }
}
