.team-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: clamp(12px, 1.8vw, 26px);
    color: #23342a;
}
.team-grid--compact {
    grid-template-columns: repeat(2, minmax(0, 350px));
}
.team-grid--three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.team-card {
    display: flex;
    min-width: 0;
    overflow-wrap: anywhere;
}
.team-card a.team-card__link {
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow: hidden;
    border-radius: 20px;
    color: inherit;
    background: #f0f3eb;
    text-decoration: none;
}
.team-portrait {
    position: relative;
    display: grid;
    place-items: center;
    aspect-ratio: 7 / 8;
    overflow: hidden;
    background: #e9eee4;
    color: #4e5f50;
}
.team-portrait img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
    object-position: center 35%;
}
.team-card__copy {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: clamp(14px, 1.65vw, 26px);
}
.team-card .team-card__copy :is(h2, h3) {
    margin: 0;
    font-size: clamp(18px, 1.65vw, 25px);
    font-weight: 700;
    line-height: 1.23;
    letter-spacing: -.035em;
}
.team-card__copy p {
    margin: 9px 0 16px;
    color: #4e5f50;
    font-size: clamp(13px, 1.1vw, 16px);
    line-height: 1.5;
}
.team-card__more {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #d6ded3;
    color: #284735;
    font-size: 14px;
    line-height: 1.4;
    font-weight: 700;
}
.team-card__more svg {
    flex-shrink: 0;
    width: 17px;
    height: 17px;
}
.team-card__link:focus-visible {
    outline: 2px solid #284735;
    outline-offset: 3px;
}
@media (hover: hover) {
    .team-card__link:hover .team-card__more { text-decoration: underline; text-underline-offset: 3px; }
}
.team-profile {
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
    gap: clamp(24px, 4vw, 68px);
    align-items: start;
}
.team-profile > .team-portrait { border-radius: 22px; }
.team-profile__copy {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    overflow-wrap: anywhere;
    border-radius: 22px;
    padding: clamp(24px, 4vw, 60px);
    background: #f0f3eb;
}
.team-profile h1 {
    font-size: clamp(35px, 4vw, 66px);
    line-height: 1.05;
    text-wrap: balance;
}
.team-profile__bio { margin-top: 28px; }
.team-profile__bio h2 {
    font-size: 23px;
    margin-bottom: 12px;
}
.team-profile__bio p + p { margin-top: 12px; }
.team-profile .pp-button { margin-top: 28px; }

@media (max-width: 1040px) {
    .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .team-grid--compact { grid-template-columns: repeat(2, minmax(0, 330px)); }
}
@media (max-width: 760px) {
    .team-profile { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .team-profile > .team-portrait { max-width: 460px; width: 100%; }
    .team-card a.team-card__link { border-radius: 14px; }
    .team-card__copy { padding-inline: 12px; }
    .team-card .team-card__copy :is(h2, h3) { font-size: clamp(15px, 4.1vw, 17px); }
}
@media (max-width: 360px) {
    .team-grid { grid-template-columns: minmax(0, 1fr); }
    .team-card__copy { padding: 12px; }
    .team-card .team-card__copy :is(h2, h3) { font-size: 17px; }
}
.team-grid--single {
    grid-template-columns: minmax(0, 350px);
}
