.team-section {
    padding: 8vh 0 10vh 0;
    text-align: center;
}

.team-intro {
    max-width: 620px;
    margin: 0 auto 44px auto;
    padding: 0 20px;
}

.team-intro h1 {
    font-family: var(--font-head);
    font-size: clamp(28px, 4vw, 44px);
    font-weight: 700;
    color: var(--c-text-dark);
    margin: 0 0 12px 0;
}

.team-intro p {
    color: var(--c-text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0;
}

.team-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 32px;
    padding: 0 20px;
}

.team-card {
    width: 300px;
    max-width: 84vw;
    background: #ffffff;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 300ms var(--ease), box-shadow 300ms var(--ease);
}

.team-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
}

.team-photo {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background: linear-gradient(135deg, var(--c-dark1), var(--c-dark2));
    overflow: hidden;
}

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

/* Initials fallback shown when the photo is missing */
.team-photo::after {
    content: attr(data-initials);
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    font-family: var(--font-head);
    font-size: 4rem;
    font-weight: 700;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.85);
}

.team-photo.--no-photo::after { display: flex; }

.team-caption {
    padding: 20px 18px 24px 18px;
    text-align: center;
}

.team-caption h2 {
    font-family: var(--font-head);
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--c-text-dark);
    margin: 0 0 6px 0;
}

.team-caption p {
    font-size: 0.9rem;
    color: var(--c-text-muted);
    letter-spacing: 0.3px;
    margin: 0;
}
