/* =====================================================================
   Team archive
   ===================================================================== */
.team-hero {
    position: relative;
    height: 480px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    margin-top: var(--header-h);
}
.team-hero__bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
}
.team-hero__overlay { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.45); }
.team-hero__content { position: relative; z-index: 2; padding-bottom: 40px; color: #fff; }
.team-hero__eyebrow {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 8px;
}
.team-hero__title { font-size: clamp(24px, 4vw, 48px); }
.team-hero__title span { color: rgba(255, 255, 255, 0.65); }

/* When solid header is used, team hero already offsets; reset main offset */
.site-main--offset .team-hero { margin-top: 0; }

.team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
}
.team-member__btn {
    display: flex;
    flex-direction: column;
    width: 100%;
    background: transparent;
    border: 0;
    padding: 0;
    text-align: left;
}
.team-member__photo {
    display: block;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    margin-bottom: 16px;
}
.team-member__photo img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.team-member__btn:hover .team-member__photo img { filter: grayscale(0%); transform: scale(1.04); }
.team-member__name { font-size: 20px; }
.team-member__position {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--c-text-2);
    margin-top: 6px;
}
.team-member__exp { font-size: 12px; color: var(--c-text-2); margin-top: 4px; }
.team-member__quote {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--c-line);
    font-size: 15px;
    font-style: italic;
    color: var(--c-text-3);
    line-height: 1.7;
}

@media (min-width: 768px) {
    .team-archive.section { padding: 96px 0; }
    .team-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
}
@media (min-width: 1024px) {
    .team-grid { grid-template-columns: repeat(3, 1fr); }
}

/* Note: the team member modal (.team-modal*) is styled in the global
   stylesheet because it is shared with the home page. */
