.team-page,
.team-profile {
    margin-inline: auto;
}

.team-page {
    max-width: 68rem;
}

.team-profile {
    max-width: 52rem;
}

.team-page__header {
    padding-block: clamp(0.5rem, 2vw, 1.4rem) clamp(1.4rem, 3vw, 2rem);
}

.team-page__header h1,
.team-profile__header h1 {
    margin: 0 0 0.55rem;
    font-size: clamp(2rem, 5vw, 3.75rem);
    line-height: 1.14;
}

.team-page__header p,
.team-profile__header p:not(.team-role) {
    max-width: 64ch;
    margin: 0;
    color: #bacdd1;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(1rem, 2vw, 1.5rem);
}

.team-card a {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    box-sizing: border-box;
    height: 100%;
    padding: clamp(1.2rem, 3vw, 2rem);
    border: 1px solid #244450;
    border-radius: 10px;
    background: radial-gradient(ellipse at top left, rgba(0, 212, 255, 0.085), transparent 70%), #0a1923;
    color: #ecf4f5;
    text-decoration: none;
}

.team-card a:hover,
.team-card a:focus-visible {
    border-color: #00d4ff;
}

.team-card a:focus-visible {
    outline: 2px solid #00d4ff;
    outline-offset: 3px;
}

.team-card img,
.team-profile__header img {
    display: block;
    height: auto;
    border-radius: 8px;
}

.team-card img {
    width: clamp(5rem, 9vw, 7rem);
    margin-bottom: 1.1rem;
}

.team-role {
    margin: 0 0 0.4rem;
    color: #f59e0b;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.075em;
    text-transform: uppercase;
}

.team-card h2 {
    margin: 0 0 0.5rem;
    font-size: clamp(1.55rem, 3vw, 2.25rem);
}

.team-card__bio {
    margin: 0 0 1rem;
    color: #bacdd1;
}

.team-card__action {
    margin-top: auto;
    color: #00d4ff;
    font-weight: 600;
}

.team-page__next,
.team-profile__links {
    margin-top: 2rem;
    padding-top: 1.35rem;
    border-top: 1px solid #244450;
}

.team-page__next h2 {
    margin: 0 0 0.7rem;
    font-size: clamp(1.4rem, 2.5vw, 2rem);
}

.team-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem 1.45rem;
    padding-inline-start: 0;
    list-style: none;
}

.team-links a {
    color: #00d4ff;
    text-underline-offset: 0.2em;
    text-decoration: underline;
}

.team-links a:hover {
    color: #f59e0b;
}

.team-profile__header {
    display: grid;
    grid-template-columns: 8.75rem minmax(0, 1fr);
    align-items: center;
    gap: clamp(1rem, 4vw, 2rem);
    padding-bottom: clamp(1.4rem, 4vw, 2.25rem);
    border-bottom: 1px solid #244450;
}

.team-profile__header img {
    width: 100%;
    max-width: 8.75rem;
}

.team-profile__body {
    max-width: 70ch;
    margin-top: 2rem;
}

@media (max-width: 650px) {
    .team-grid,
    .team-profile__header {
        grid-template-columns: minmax(0, 1fr);
    }

    .team-profile__header img {
        max-width: 6rem;
    }

    .team-links {
        flex-direction: column;
    }
}
