.team-profile-page {
    --team-ink: #172f30;
    --team-muted: #687b78;
    --team-accent: #1b6b57;
    --team-line: #e2eae5;
    padding: 2rem 0 clamp(3.5rem, 7vw, 6rem);
    color: var(--team-ink);
    background:
        radial-gradient(ellipse at 86% 0%, rgba(205, 229, 215, .42), transparent 34rem),
        #f7f8f4;
}

.team-profile-breadcrumb {
    margin: 0 0 1.25rem;
}

.team-profile-breadcrumb .breadcrumb {
    margin: 0;
    color: var(--team-muted);
    font-size: .82rem;
}

.team-profile-breadcrumb a {
    color: var(--team-accent);
    text-decoration: none;
}

.team-profile-breadcrumb a:hover {
    text-decoration: underline;
}

.team-profile {
    overflow: hidden;
    border: 1px solid rgba(220, 230, 223, .95);
    border-radius: 1.5rem;
    background: #fff;
    box-shadow: 0 20px 60px rgba(27, 55, 43, .08);
}

.team-profile-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(180px, 250px) minmax(0, 1fr);
    align-items: center;
    gap: clamp(1.5rem, 4vw, 3.5rem);
    min-height: 310px;
    overflow: hidden;
    padding: clamp(2rem, 5vw, 4rem);
    background:
        radial-gradient(circle at 88% 18%, rgba(203, 224, 210, .68), transparent 17rem),
        linear-gradient(120deg, #f7f8f4 0%, #edf4ee 100%);
}

.team-profile-portrait-wrap {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 230px;
    aspect-ratio: 1;
    overflow: hidden;
    border: 6px solid rgba(255, 255, 255, .9);
    border-radius: 1.3rem;
    background: #e5ece6;
    box-shadow: 0 16px 38px rgba(28, 57, 44, .16);
}

.team-profile-portrait {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
}

.team-profile-heading {
    position: relative;
    z-index: 1;
    min-width: 0;
}

.team-profile-eyebrow,
.team-panel-heading > div > p {
    margin: 0 0 .45rem;
    color: var(--team-accent);
    font-size: .7rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
}

.team-profile-heading h1 {
    margin: 0;
    color: var(--team-ink);
    font-family: "Manrope", sans-serif;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 800;
    letter-spacing: -.055em;
    line-height: 1.1;
    overflow-wrap: anywhere;
}

.team-profile-role {
    margin: .7rem 0 0;
    color: var(--team-muted);
    font-size: clamp(1.05rem, 2vw, 1.25rem);
    font-weight: 600;
}

.team-profile-departments {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 1rem;
}

.team-profile-departments span {
    padding: .38rem .72rem;
    border: 1px solid #d5e5d9;
    border-radius: 999px;
    background: rgba(255, 255, 255, .76);
    color: #42685a;
    font-size: .75rem;
    font-weight: 650;
}

.team-back-link {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-top: 1.5rem;
    color: var(--team-accent);
    font-size: .84rem;
    font-weight: 750;
    text-decoration: none;
}

.team-back-link:hover {
    color: #124c3d;
    text-decoration: underline;
}

.team-profile-mark {
    position: absolute;
    right: 2rem;
    bottom: 1.5rem;
    color: rgba(27, 107, 87, .1);
    font-family: "Manrope", sans-serif;
    font-size: clamp(1.3rem, 3vw, 2.4rem);
    font-weight: 900;
    letter-spacing: .06em;
    line-height: 1;
    text-align: right;
    pointer-events: none;
}

.team-profile-content {
    padding: clamp(1.25rem, 4vw, 2.5rem);
}

.team-profile-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    margin-bottom: 1.5rem;
    border: 1px solid var(--team-line);
    border-radius: 1rem;
    background: var(--team-line);
}

.team-profile-stat {
    display: flex;
    align-items: center;
    gap: .85rem;
    min-width: 0;
    padding: 1.15rem;
    background: #fff;
}

.team-stat-icon,
.team-panel-icon {
    display: grid;
    flex: 0 0 auto;
    width: 2.6rem;
    height: 2.6rem;
    place-items: center;
    border-radius: .8rem;
    background: #edf5ef;
    color: var(--team-accent);
    font-size: 1.1rem;
}

.team-stat-copy {
    display: grid;
    gap: .25rem;
    min-width: 0;
}

.team-stat-copy > span {
    color: var(--team-muted);
    font-size: .72rem;
    font-weight: 650;
}

.team-stat-copy strong {
    color: var(--team-ink);
    font-size: .88rem;
    font-weight: 750;
    overflow-wrap: anywhere;
}

.team-profile-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.team-info-panel {
    min-width: 0;
    padding: clamp(1.15rem, 2vw, 1.55rem);
    border: 1px solid var(--team-line);
    border-radius: 1rem;
    background: #fff;
}

.team-panel-wide {
    grid-column: 1 / -1;
}

.team-panel-heading {
    display: flex;
    align-items: center;
    gap: .8rem;
    margin-bottom: 1.25rem;
}

.team-panel-heading > div > p {
    margin-bottom: .15rem;
    font-size: .64rem;
    letter-spacing: .12em;
}

.team-panel-heading h2 {
    margin: 0;
    color: var(--team-ink);
    font-family: "Manrope", sans-serif;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: -.025em;
}

.team-detail-list {
    display: grid;
    gap: 0;
    margin: 0;
}

.team-detail-list > div {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .8rem 0;
    border-top: 1px solid #edf1ed;
}

.team-detail-list dt,
.team-detail-list dd {
    margin: 0;
    font-size: .84rem;
}

.team-detail-list dt {
    color: var(--team-muted);
}

.team-detail-list dd {
    color: var(--team-ink);
    font-weight: 700;
    text-align: right;
    overflow-wrap: anywhere;
}

.team-contact-list {
    display: grid;
}

.team-contact-list > a {
    display: grid;
    grid-template-columns: 1.25rem minmax(0, 1fr) 1rem;
    align-items: center;
    gap: .75rem;
    padding: .75rem 0;
    border-top: 1px solid #edf1ed;
    color: var(--team-accent);
    text-decoration: none;
}

.team-contact-list > a > span {
    display: grid;
    gap: .15rem;
    min-width: 0;
}

.team-contact-list small {
    color: var(--team-muted);
    font-size: .7rem;
    font-weight: 600;
}

.team-contact-list strong {
    color: var(--team-ink);
    font-size: .82rem;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.team-contact-list > a:hover strong {
    color: var(--team-accent);
}

.team-contact-arrow {
    color: #91a39a;
    font-size: .75rem;
}

.team-no-details {
    margin: 0;
    color: var(--team-muted);
    font-size: .85rem;
}

.team-expertise-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.team-expertise-grid > div + div {
    padding-left: 1.5rem;
    border-left: 1px solid var(--team-line);
}

.team-expertise-grid h3 {
    margin: 0 0 .45rem;
    color: var(--team-ink);
    font-size: .84rem;
    font-weight: 750;
}

.team-expertise-grid p {
    margin: 0;
    color: var(--team-muted);
    font-size: .87rem;
    line-height: 1.8;
    overflow-wrap: anywhere;
}

.team-social-links {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
}

.team-social-links a {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    padding: .7rem .9rem;
    border: 1px solid var(--team-line);
    border-radius: .7rem;
    color: var(--team-accent);
    font-size: .83rem;
    font-weight: 700;
    text-decoration: none;
    transition: border-color .2s ease, background .2s ease;
}

.team-social-links a:hover {
    border-color: #b7d1c1;
    background: #f3f8f4;
}

.team-social-links a span {
    color: var(--team-ink);
}

.team-social-links a i:last-child {
    color: #91a39a;
    font-size: .75rem;
}

@media (max-width: 767.98px) {
    .team-profile-page {
        padding-top: 1.25rem;
    }

    .team-profile-hero {
        grid-template-columns: 130px minmax(0, 1fr);
        gap: 1.25rem;
        min-height: 0;
        padding: 1.5rem;
    }

    .team-profile-portrait-wrap {
        max-width: 130px;
        border-width: 4px;
        border-radius: 1rem;
    }

    .team-profile-heading h1 {
        font-size: clamp(1.8rem, 6vw, 2.6rem);
    }

    .team-profile-mark {
        right: 1rem;
        bottom: .7rem;
        font-size: 1rem;
    }

    .team-profile-stats {
        grid-template-columns: 1fr;
    }

    .team-profile-stat {
        padding: .9rem 1rem;
    }
}

@media (max-width: 575.98px) {
    .team-profile {
        border-radius: 1.1rem;
    }

    .team-profile-hero {
        grid-template-columns: 1fr;
        justify-items: start;
        gap: 1.15rem;
        padding: 1.35rem;
    }

    .team-profile-portrait-wrap {
        width: 118px;
        max-width: 118px;
    }

    .team-profile-mark {
        right: .8rem;
        bottom: .65rem;
        font-size: .85rem;
    }

    .team-profile-grid,
    .team-expertise-grid {
        grid-template-columns: 1fr;
    }

    .team-panel-wide {
        grid-column: auto;
    }

    .team-expertise-grid > div + div {
        padding: 1rem 0 0;
        border-top: 1px solid var(--team-line);
        border-left: 0;
    }

    .team-detail-list > div {
        flex-direction: column;
        gap: .25rem;
    }

    .team-detail-list dd {
        text-align: left;
    }
}

@media (prefers-reduced-motion: reduce) {
    .team-social-links a {
        transition: none;
    }
}
