/* =========================================================
   TEAM PAGE – DISTINCT FROM JOURNEY / VENTURES
========================================================= */

/* hero spacing: match ventures but slightly tighter below */
.team-page .team-hero {
    max-width: 1180px;
    margin: 0 auto 2.5rem;
    padding: 3rem 1.5rem 1.8rem;
}

.team-page .team-hero .hero-eyebrow {
    letter-spacing: 0.22em;
    font-size: 0.72rem;
    opacity: 0.9;
}

.team-page .team-hero h1 {
    margin-bottom: 0.6rem;
}

.team-page .team-hero .hero-subtitle {
    max-width: 720px;
    margin: 0.25rem auto 0;
    font-size: 1rem;
    line-height: 1.6;
    color: #4a4f63;
}

/* ---------------------------------------------
   Team section layout
---------------------------------------------- */
.team-section {
    max-width: 1180px;
    margin: 0 auto 4rem;
    padding: 0 1.5rem 0;
}

.team-section-head {
    max-width: 720px;
    margin: 0 auto 2rem;
    text-align: center;
}

.team-section-head h2 {
    font-size: 1.9rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #0b1324;
}

.team-section-head p {
    margin-top: 0.75rem;
    color: #4a4f63;
    line-height: 1.6;
}

/* founders grid */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.6rem;
}

/* card = softer, more “people”-oriented than journey cards */
.team-card {
    position: relative;
    background: #ffffff;
    border-radius: 20px;
    padding: 1.5rem 1.7rem 1.7rem;
    box-shadow: 0 18px 40px rgba(6, 13, 28, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.9);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    overflow: hidden;
    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease;
}

/* soft vertical accent on left */
.team-card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.1rem;
    bottom: 1.1rem;
    width: 3px;
    border-radius: 999px;
    background: linear-gradient(
        to bottom,
        rgba(240, 150, 75, 0.15),
        var(--lef-apricot),
        rgba(240, 150, 75, 0.05)
    );
}

/* light number in top-right */
.team-card::after {
    content: attr(data-index);
    position: absolute;
    top: 1.2rem;
    right: 1.5rem;
    font-family: "Bebas Neue", sans-serif;
    font-size: 1.8rem;
    letter-spacing: 0.12em;
    color: rgba(148, 163, 184, 0.35);
}

/* card header: avatar + name */
.team-card-header {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-bottom: 0.25rem;
}

.team-avatar {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: radial-gradient(
        circle at 30% 20%,
        #fff,
        rgba(240, 150, 75, 0.2)
    );
    border: 2px solid rgba(240, 150, 75, 0.7);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.9rem;
    color: #0b1324;
    flex-shrink: 0;
    overflow: hidden;
}

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

.team-card-titleblock h3 {
    margin: 0;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #0b1324;
}

.team-role {
    margin: 2px 0 0;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: #9ca3af;
}

/* body copy */
.team-bio {
    margin: 0.4rem 0 0.3rem;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #3c4050;
}

/* tags = small chips */
.team-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 0.15rem;
}

.team-tags span {
    padding: 0.25rem 0.6rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.4);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #64748b;
    background: rgba(248, 250, 252, 0.9);
}

/* linkedin link as subtle text button */
.team-link {
    margin-top: 0.7rem;
    align-self: flex-start;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--lef-apricot);
    text-decoration: none;
    position: relative;
    padding-bottom: 2px;
}

.team-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(
        to right,
        rgba(240, 150, 75, 0.1),
        var(--lef-apricot),
        rgba(240, 150, 75, 0.1)
    );
    transform-origin: left;
    transform: scaleX(0.7);
    transition: transform 0.18s ease;
}

.team-link:hover::after,
.team-link:focus-visible::after {
    transform: scaleX(1);
}

/* hover lift */
.team-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 22px 50px rgba(6, 13, 28, 0.12);
}

/* small-screen adjustments */
@media (max-width: 640px) {
    .team-section {
        margin-bottom: 3rem;
    }
    .team-card::after {
        right: 1.1rem;
        top: 1.1rem;
        font-size: 1.4rem;
    }
}
