/* ═══════════════════════════════════════════════
   TEAM PAGE
   ═══════════════════════════════════════════════ */

.section-team {
    padding: var(--section-pad) 0;
    padding-top: clamp(100px, 12vw, 160px);
    background: var(--bg-primary);
}

.section-team .section-intro {
    max-width: 720px;
    margin-bottom: 48px;
}

/* ─── Grid: 3 per row ─── */
.team-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

/* ─── Card ─── */
.team-card {
    background: var(--white);
    border: 1px solid var(--grey-100);
    border-radius: 20px;
    overflow: hidden;
    transition: transform var(--speed) var(--ease-out),
                border-color var(--speed) var(--ease-out),
                box-shadow var(--speed) var(--ease-out);
}

.team-card:hover {
    transform: translateY(-4px);
    border-color: var(--lime);
    box-shadow: 0 12px 36px rgba(194, 213, 48, 0.12);
}

/* ─── Photo ─── */
.team-photo {
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
}

.team-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
    transition: transform 0.5s var(--ease-out);
}

.team-card:hover .team-photo img {
    transform: scale(1.03);
}

/* ─── Info ─── */
.team-info {
    padding: 24px 24px 28px;
    position: relative;
}

.team-name {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 500;
    color: var(--navy);
    margin: 0 0 8px;
    line-height: 1.3;
}

.team-bio {
    font-size: 14px;
    line-height: 1.7;
    color: var(--text-body);
    margin: 0 0 16px;
}

/* ─── LinkedIn icon ─── */
.team-linkedin {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: none;
    border-radius: 50%;
    color: var(--navy);
    background: transparent;
    transition: color var(--speed) var(--ease-out);
}

.team-linkedin:hover {
    color: var(--lime);
}

.team-linkedin svg {
    width: 28px;
    height: 28px;
}

/* ─── Stagger animation ─── */
.team-grid [data-animate]:nth-child(1) { transition-delay: 0.05s; }
.team-grid [data-animate]:nth-child(2) { transition-delay: 0.1s; }
.team-grid [data-animate]:nth-child(3) { transition-delay: 0.15s; }
.team-grid [data-animate]:nth-child(4) { transition-delay: 0.2s; }
.team-grid [data-animate]:nth-child(5) { transition-delay: 0.25s; }
.team-grid [data-animate]:nth-child(6) { transition-delay: 0.3s; }

/* ─── Responsive ─── */
@media (max-width: 900px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 600px) {
    .team-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .team-photo {
        aspect-ratio: 3 / 4;
    }
}
