.team-page {
    background: var(--color-light, #f9fcff);
    color: var(--color-primary, #151c3f);
}

.team-main {
    width: min(100% - 48px, 1280px);
    margin: 0 auto;
    padding-bottom: 80px;
}

.team-intro {
    padding: 64px 0 16px;
    text-align: center;
    animation: team-fade-in 0.24s ease-out;
}

.team-intro h1 {
    margin: 0;
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

.team-intro h1 span {
    color: var(--color-tertiary, #3c72d7);
    font-style: normal;
}

.team-intro > p {
    margin: 20px auto 28px;
    max-width: 65ch;
    color: var(--color-dorisgrey, #595959);
    font-size: 1.125rem;
    line-height: 1.6;
    text-wrap: pretty;
}

.team-jumps {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.team-jumps a {
    position: relative;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 18px;
    border: 1px solid #151c3f30;
    border-radius: 999px;
    font-weight: 700;
    text-decoration: none;
}

.team-jumps a::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--color-secondary, #9eb9ed);
    transform: scaleX(0);
    transform-origin: left;
    opacity: 0;
    transition: transform 0.14s ease-out, opacity 0.14s ease-out;
}

.team-jumps a span { position: relative; }
.team-jumps a:focus-visible::before { transform: scaleX(1); opacity: 1; }

.team-jumps a:focus-visible,
.team-linkedin:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 4px;
}

.team-section {
    display: grid;
    grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
    align-items: start;
    gap: 48px;
    margin-top: 72px;
    padding: 24px 0 40px;
    scroll-margin-top: 96px;
}

.team-section-intro { padding-top: 24px; }

.team-section h2 {
    margin: 0;
    font-size: clamp(2rem, 3.4vw, 3rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

.team-section h2 span {
    display: block;
    margin-top: 4px;
    color: var(--color-tertiary, #3c72d7);
    font-style: italic;
}

.team-section-intro p { margin: 20px 0 0; max-width: 28ch; font-size: 1rem; line-height: 1.6; color: var(--color-dorisgrey, #595959); }

.team-section:nth-of-type(even) { grid-template-columns: minmax(0, 1fr) minmax(0, 240px); }
.team-section:nth-of-type(even) .team-section-intro { grid-column: 2; grid-row: 1; }
.team-section:nth-of-type(even) .team-members { grid-column: 1; grid-row: 1; }

.team-members {
    position: relative;
    isolation: isolate;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 48px 24px;
    padding: 24px 24px 44px;
}

.team-members::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 48px -12px 0;
    background: #eaf2ff;
    clip-path: ellipse(76% 50% at 50% 50%);
    pointer-events: none;
}

.team-section:nth-of-type(even) .team-members::before { background: #fbeaee; clip-path: ellipse(90% 50% at 65% 50%); }
#board .team-members::before { background: #dce8fc; }

.team-person {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: calc((100% - 48px) / 3);
    min-width: 0;
    text-align: center;
}

.team-members--founders .team-person, #board .team-person { width: calc((100% - 24px) / 2); }

.team-portrait {
    width: min(100%, 200px);
    aspect-ratio: 1;
    flex-shrink: 0;
    overflow: hidden;
    border: 6px solid white;
    border-radius: 50%;
    background: var(--color-alert, #db2955);
    box-shadow: 4px 5px 0 #151c3f;
}

@media (hover: hover) and (pointer: fine) {
    .team-jumps a:hover::before { transform: scaleX(1); opacity: 1; }
    .team-linkedin:hover { background: var(--color-secondary, #9eb9ed); }
}

.team-members--founders .team-portrait { width: min(100%, 280px); }
.team-portrait img { display: block; width: 100%; height: 100%; object-fit: cover; }
.team-person-details { flex: 1; width: 100%; }

.team-person-name {
    margin: 20px 0 6px;
    font-size: 1.375rem;
    font-weight: 700;
    line-height: 1.3;
    text-wrap: balance;
}

.team-role { margin: 0; font-size: 1rem; line-height: 1.5; text-wrap: pretty; }
.team-group { margin: 8px 0 0; font-size: 0.875rem; line-height: 1.5; color: var(--color-dorisgrey, #595959); }

.team-linkedin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    margin-top: 12px;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: none;
    transition: background-color 0.14s ease-out;
}

.team-linkedin svg { display: block; width: 20px; height: 20px; }
.team-linkedin:focus-visible { background: var(--color-secondary, #9eb9ed); }

#advisors { display: block; }
#advisors .team-section-intro {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    padding: 0 24px;
    margin-bottom: 32px;
}
#advisors h2 { max-width: 18ch; }
#advisors .team-section-intro p { margin: 0; }
#advisors .team-members { padding: 16px 24px 24px; }
#advisors .team-members::before { content: none; }
#advisors .team-person { width: calc((100% - 48px) / 3); max-width: 320px; }
.team-advisory-groups {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 32px;
    padding: 36px 0 24px;
}
.team-advisory-groups::before {
    content: '';
    position: absolute;
    z-index: -1;
    inset: 0 -12px;
    border-radius: 50% 50% 40px 40px / 36px 36px 40px 40px;
    background: #eaf2ff;
    pointer-events: none;
}
.team-country { display: flex; flex-direction: column; grid-column: 1 / -1; min-width: 0; }
.team-country > .team-members { flex: 1; }
.team-country-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: fit-content;
    margin: 0 auto;
    font-size: clamp(1.375rem, 1.125rem + 0.5vw, 1.625rem);
    font-weight: 800;
    letter-spacing: -0.015em;
    line-height: 1.3;
}
.team-country-heading img { flex-shrink: 0; width: 32px; height: 24px; object-fit: contain; border-radius: 2px; }
#parent-champions .team-person { width: 100%; max-width: 320px; }

@media (max-width: 959px) {
    .team-section, .team-section:nth-of-type(even) { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 56px; padding-bottom: 24px; }
    .team-section-intro, .team-section:nth-of-type(even) .team-section-intro { grid-column: auto; grid-row: auto; padding: 0; text-align: center; }
    .team-section:nth-of-type(even) .team-members { grid-column: auto; grid-row: auto; }
    .team-section h2 span { display: inline; }
    .team-section-intro p { max-width: 48ch; margin: 12px auto 0; }
    #advisors .team-section-intro { display: block; padding: 0; }
    #advisors h2 { max-width: none; }
    #advisors .team-section-intro p { max-width: 48ch; margin: 12px auto 0; }
    .team-person, #advisors .team-person { width: calc((100% - 24px) / 2); }
}

@media (max-width: 539px) {
    .team-main { width: calc(100% - 40px); padding-bottom: 32px; }
    .team-intro { padding: 40px 0 8px; }
    .team-intro > p { font-size: 1rem; }
    .team-jumps a { padding: 10px 14px; font-size: 0.875rem; }
    .team-section, .team-section:nth-of-type(even) { margin-top: 48px; padding: 0 0 24px; }
    .team-section h2 { font-size: 2rem; }
    .team-members { gap: 40px; padding: 16px 16px 40px; }
    .team-members::before, .team-section:nth-of-type(even) .team-members::before, #advisors .team-members::before { inset: 56px 0 0; clip-path: ellipse(110% 50% at 50% 50%); }
    .team-person, .team-members--founders .team-person, #board .team-person, #advisors .team-person { width: 100%; max-width: 320px; }
    .team-members--founders .team-portrait { width: 220px; }
    .team-advisory-groups { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .team-advisory-groups::before { inset-inline: 0; }
    #advisors .team-members { padding: 16px 16px 24px; }
}

@keyframes team-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
    .team-intro { animation: none; }
    .team-jumps a::before, .team-linkedin { transition: none; }
}
