.team-page {
    padding-bottom: 80px;
    color: var(--ink);
    overflow-x: clip;
}

.team-hero {
    position: relative;
    display: flex;
    width: 100vw;
    min-height: 640px;
    margin-left: calc(50% - 50vw);
    align-items: flex-start;
    margin-bottom: 78px;
    overflow: visible;
    background: var(--ink);
    isolation: isolate;
}

.team-hero::after {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 0;
    background: linear-gradient(90deg, rgba(8, 28, 48, .95) 0%, rgba(8, 28, 48, .8) 38%, rgba(8, 28, 48, .22) 75%, rgba(8, 28, 48, .08) 100%);
}

.team-hero__image {
    position: absolute;
    z-index: -2;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 42%;
}

.team-hero__content {
    width: min(100%, 650px);
    margin-left: max(24px, calc((100vw - 1210px) / 2));
    padding: 56px 0;
    color: var(--secondary-text-color);
}

.team-hero__eyebrow,
.team-principles__eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 10px;
    color: var(--accent-color);
    font-size: 13px;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.team-hero__eyebrow::before {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-color);
    content: '';
}

.team-hero__title,
.team-section-head h2 {
    margin: 0;
    color: var(--ink);
    font-weight: 800;
}

.team-hero__title {
    max-width: 590px;
    color: var(--secondary-text-color);
    font-size: clamp(38px, 4.4vw, 60px);
    line-height: 1.08;
}

.team-hero__lead {
    max-width: 490px;
    margin: 18px 0 30px;
    color: rgba(255, 255, 255, .86);
    font-size: 17px;
    line-height: 1.55;
}

.team-button {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 22px;
    border: 1px solid var(--secondary-bg-color);
    border-radius: 8px;
    background: var(--secondary-bg-color);
    color: var(--secondary-text-color);
    font-size: 14px;
    font-weight: 800;
    text-align: center;
    transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.team-button:hover,
.team-button:focus-visible {
    box-shadow: 0 10px 24px rgba(0, 0, 0, .2);
    transform: translateY(-2px);
}

.team-button img {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
}

.team-button--outline {
    background: var(--secondary-text-color);
    color: var(--primary);
}

.team-principles__photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-stats {
    position: absolute;
    z-index: 2;
    bottom: -42px;
    left: 50%;
    display: grid;
    width: min(calc(100% - 48px), 1040px);
    grid-template-columns: repeat(3, 1fr);
    margin: 0;
    padding: 20px 28px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--secondary-text-color);
    border-color: rgba(216, 231, 241, .8);
    box-shadow: 0 12px 30px var(--shadow);
    transform: translateX(-50%);
}

.team-stats__item {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 48px;
    padding: 0 30px;
    border-right: 1px solid var(--border);
}

.team-stats__item:first-child {
    padding-left: 0;
}

.team-stats__item:last-child {
    padding-right: 0;
    border-right: 0;
}

.team-stats__value {
    display: block;
    margin: 0;
    color: var(--ink);
    font-size: 28px;
    font-weight: 800;
}

.team-section-head p,
.team-card__description,
.team-principles__lead,
.team-principle p,
.team-cta p,
.team-empty {
    color: var(--muted);
}

.team-stats__label {
    margin: 0;
    color: var(--ink);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
}

.team-stats__detail {
    display: block;
    margin: 0;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.35;
}

.team-stats__item > img {
    width: 42px;
    height: 42px;
    filter: var(--filter);
}

.team-stats__item div {
    display: grid;
    gap: 2px;
}

.team-section-head {
    margin-bottom: 30px;
}

.team-section-head h2,
.team-principles h2 {
    font-size: clamp(30px, 3vw, 40px);
    line-height: 1.1;
}

.team-section-head p {
    margin: 9px 0 0;
    font-size: 16px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 22px;
    margin-bottom: 82px;
}

.team-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--secondary-text-color);
    box-shadow: 0 6px 18px var(--shadow);
    transition: box-shadow .2s ease, transform .2s ease;
}

.team-card:hover {
    box-shadow: 0 12px 28px var(--shadow-hover);
}

.team-card__photo {
    display: block;
    width: 100%;
    height: 380px;
    object-fit: cover;
    object-position: center top;
}

.team-card__body {
    display: flex;
    min-height: 190px;
    flex: 1;
    flex-direction: column;
    padding: 18px 18px 20px;
}

.team-card h3 {
    margin: 0;
    color: var(--ink);
    font-size: 18px;
    font-weight: 800;
}

.team-card__position {
    margin: 5px 0 14px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.35;
    font-weight: 500;
}

.team-card__experience,
.team-card__description {
    display: grid;
    grid-template-columns: 16px minmax(0, 1fr);
    align-items: start;
    gap: 18px;
    margin: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
}

.team-card__details {
    display: grid;
    gap: 14px;
    margin-top: 12px;
}

.team-card__experience img,
.team-card__description img {
    width: 24px;
    height: 24px;
    margin-top: 1px;
    filter: var(--filter);
}

.team-card__experience span,
.team-card__description span {
    display: block;
    margin: 0;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
}

.team-principles {
    display: grid;
    grid-template-columns: minmax(330px, .9fr) minmax(0, 1.1fr);
    gap: 0;
    overflow: hidden;
    border-radius: 14px;
    background: var(--ink);
    box-shadow: 0 10px 25px var(--shadow);
}

.team-principles__photo {
    min-height: 500px;
    border-radius: 0;
}

.team-principles__content {
    padding: 52px 56px;
}

.team-principles__lead {
    margin: 12px 0 30px;
    color: rgba(255, 255, 255, .8);
    font-size: 15px;
    line-height: 1.5;
}

.team-principles__list {
    display: grid;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.team-principles h2,
.team-principle h3 {
    margin: 0;
    color: var(--secondary-text-color);
    font-weight: 800;
}

.team-principle h3 {
    font-size: 15px;
}

.team-principle {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
}

.team-principle__number {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 50%;
    background: var(--secondary-bg-color);
}

.team-principle__number img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}

.team-principle p {
    margin: 4px 0 0;
    color: rgba(255, 255, 255, .7);
    font-size: 13px;
    line-height: 1.45;
}

.team-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    position: relative;
    margin-top: 28px;
    padding: 30px 40px;
    overflow: hidden;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(110deg, #1597a5, #0d7282);
    color: var(--secondary-text-color);
    box-shadow: none;
}

.team-cta p {
    max-width: 580px;
    margin: 9px 0 0;
    color: rgba(255, 255, 255, .84);
    font-size: 14px;
}

.team-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    flex: 0 0 auto;
}

.team-cta::after {
    position: absolute;
    top: -60px;
    right: -25px;
    width: 240px;
    height: 240px;
    border: 34px solid rgba(255, 255, 255, .09);
    border-radius: 50%;
    content: '';
}

.team-cta > * {
    position: relative;
    z-index: 1;
}

.team-cta h2 {
    margin: 0;
    color: var(--secondary-text-color);
    font-size: clamp(26px, 2.5vw, 34px);
    font-weight: 800;
}

.team-cta .team-button {
    border-color: var(--secondary-text-color);
    background: var(--secondary-text-color);
    color: var(--ink);
}

.team-cta .team-button img {
    filter: none;
}

.team-cta .team-button--outline {
    border-color: var(--secondary-text-color);
    background: transparent;
    color: var(--secondary-text-color);
}

.team-cta .team-button--outline img {
    filter: brightness(0) invert(1);
}

/* ==== MEDIA ==== */
@media (max-width: 900px) {
    .team-hero {
        min-height: 480px;
        margin-bottom: 70px;
        gap: 0;
        padding: 0;
    }

    .team-hero__content {
        margin-left: 22px;
        padding: 44px 0;
    }

    .team-stats {
        bottom: -34px;
    }

    .team-stats__item {
        gap: 11px;
        padding: 0 16px;
    }

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

    .team-principles {
        grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr);
        gap: 0;
        padding: 0;
    }

    .team-principles__content {
        padding: 40px 32px;
    }

    .team-cta {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 640px) {
    .team-hero {
        min-height: 510px;
        margin-bottom: 220px;
        gap: 0;
        padding: 0;
        border-radius: 0;
    }

    .team-hero::after {
        background: linear-gradient(90deg, rgba(8, 28, 48, .94), rgba(8, 28, 48, .6)), linear-gradient(0deg, rgba(8, 28, 48, .8), rgba(8, 28, 48, .15));
    }

    .team-hero__image {
        object-position: 62% center;
    }

    .team-hero__content {
        margin-left: 24px;
        padding: 32px 24px 32px 0;
    }

    .team-hero__title {
        font-size: 36px;
    }

    .team-hero__lead {
        font-size: 15px;
    }

    .team-stats {
        bottom: -192px;
        width: calc(100% - 24px);
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 20px;
    }

    .team-stats__item,
    .team-stats__item:first-child,
    .team-stats__item:last-child {
        min-height: 0;
        padding: 0 0 14px;
        border-right: 0;
        border-bottom: 1px solid var(--border);
    }

    .team-stats__item:last-child {
        padding-bottom: 0;
        border-bottom: 0;
    }

    .team-grid {
        grid-template-columns: 1fr;
        gap: 18px;
        margin-bottom: 20px;
    }

    .team-card__photo {
        width: 100%;
        height: 300px;
        margin: 0;
    }

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

    .team-principles {
        grid-template-columns: 1fr;
        gap: 0;
        padding: 0;
        border-radius: 10px;
    }

    .team-principles__photo {
        min-height: 300px;
    }

    .team-principles__content {
        padding: 32px 24px;
    }

    .team-cta {
        gap: 24px;
        margin-top: 20px;
        padding: 28px 24px;
        border-radius: 10px;
    }

    .team-cta__actions,
    .team-cta__actions .team-button {
        width: 100%;
    }

    .team-stats__value {
        font-size: 24px;
    }

    .team-section-head {
        margin-bottom: 10px;
    }
}
