/* =========================================================
   PersPred - About Us / Team
   ========================================================= */

:root {
    --team-primary: #00897b;
    --team-primary-dark: #00695c;
    --team-primary-soft: #e0f2f1;
    --team-card: rgba(255, 255, 255, 0.97);
    --team-text: #2c3e50;
    --team-muted: #607d8b;
    --team-border: #d7e0e3;
    --team-shadow: 0 12px 32px rgba(44, 62, 80, 0.09);
}


/* =========================================================
   Page
   ========================================================= */

.team-page {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 2rem 1.25rem 3.5rem;
    color: var(--team-text);
}


/* =========================================================
   Hero
   ========================================================= */

.team-hero {
    display: flex;
    align-items: center;
    gap: 1.25rem;

    margin-bottom: 2rem;
    padding: 1.6rem 1.8rem;

    border-radius: 16px;

    background:
        linear-gradient(
            135deg,
            #43cea2 0%,
            #185a9d 100%
        );

    color: #ffffff;
    box-shadow: var(--team-shadow);
}

.team-hero-icon {
    width: 64px;
    height: 64px;
    flex: 0 0 64px;

    display: grid;
    place-items: center;

    border-radius: 16px;
    background: rgba(255, 255, 255, 0.18);

    font-size: 2rem;
    font-family:
        "Noto Color Emoji",
        "Segoe UI Emoji",
        sans-serif;
}

.team-eyebrow {
    margin: 0 0 0.25rem;

    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;

    opacity: 0.86;
}

.team-hero h1 {
    margin: 0;

    color: #ffffff;

    font-size: clamp(1.7rem, 3vw, 2.35rem);
    line-height: 1.15;
}

.team-hero-content > p:last-child {
    max-width: 800px;

    margin: 0.45rem 0 0;

    font-size: 0.98rem;
    line-height: 1.55;

    opacity: 0.94;
}


/* =========================================================
   Team Members
   ========================================================= */

.team-members {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}


/* =========================================================
   Member Card
   ========================================================= */

.team-member {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 2rem;
    align-items: start;

    padding: 2rem;

    background: var(--team-card);
    border: 1px solid var(--team-border);
    border-radius: 16px;

    box-shadow: var(--team-shadow);

    scroll-margin-top: 1.5rem;
}


/* =========================================================
   Portrait
   ========================================================= */

.member-photo-wrapper {
    width: 190px;
    height: 190px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    border-radius: 16px;

    background:
        linear-gradient(
            145deg,
            var(--team-primary-soft),
            #ffffff
        );

    border: 1px solid rgba(0, 137, 123, 0.12);
}

.member-photo {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* =========================================================
   Member Content
   ========================================================= */

.member-content {
    min-width: 0;
}

.member-content h2 {
    margin: 0;

    color: var(--team-primary-dark);

    font-size: clamp(1.35rem, 2.2vw, 1.75rem);
    line-height: 1.25;
}

.member-role {
    margin: 0.3rem 0 1.05rem;

    color: var(--team-muted);

    font-size: 0.88rem;
    font-weight: 650;
    line-height: 1.5;
}


/* =========================================================
   Biography
   ========================================================= */

.member-bio {
    margin: 0;
}

.member-bio[hidden] {
    display: none;
}

.member-bio p {
    margin: 0 0 0.85rem;

    font-size: 0.94rem;
    line-height: 1.78;

    text-align: left;

    direction: ltr;
}

.member-bio p:last-child {
    margin-bottom: 0;
}

.member-bio strong {
    font-weight: 750;
}

.member-bio em {
    font-style: italic;
}


/* =========================================================
   External Links
   ========================================================= */

.member-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;

    margin-top: 1.1rem;
}

.member-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;

    min-height: 34px;
    padding: 0.38rem 0.7rem;

    border: 1px solid rgba(0, 137, 123, 0.16);
    border-radius: 8px;

    color: var(--team-primary-dark);
    background: var(--team-primary-soft);

    font-size: 0.8rem;
    font-weight: 650;

    text-decoration: none;

    transition:
        background-color 180ms ease,
        border-color 180ms ease,
        transform 180ms ease;
}

.member-link:hover {
    background: #ffffff;
    border-color: rgba(0, 137, 123, 0.32);

    transform: translateY(-1px);
}


/* =========================================================
   Technical Contributor
   ========================================================= */

.team-member-technical {
    border-color: rgba(0, 137, 123, 0.28);

    background:
        linear-gradient(
            135deg,
            rgba(224, 242, 241, 0.72),
            rgba(255, 255, 255, 0.98) 45%
        );
}

.team-member-technical .member-photo-wrapper {
    border-color: rgba(0, 137, 123, 0.25);
}


/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 760px) {

    .team-page {
        padding: 1.25rem 0.85rem 2.5rem;
    }

    .team-hero {
        padding: 1.25rem;
        gap: 0.9rem;
        border-radius: 13px;
    }

    .team-hero-icon {
        width: 52px;
        height: 52px;
        flex-basis: 52px;

        border-radius: 12px;

        font-size: 1.55rem;
    }

    .team-hero h1 {
        font-size: 1.55rem;
    }

    .team-hero-content > p:last-child {
        font-size: 0.85rem;
    }

    .team-member {
        grid-template-columns: 1fr;
        gap: 1.25rem;

        padding: 1.25rem;

        border-radius: 13px;
    }

    .member-photo-wrapper {
        width: 150px;
        height: 150px;

        margin: 0 auto;

        border-radius: 14px;
    }

    .member-content h2 {
        text-align: center;
    }

    .member-role {
        text-align: center;
    }

    .member-links {
        justify-content: center;
    }

    .member-bio p {
        font-size: 0.9rem;
    }
}


@media (max-width: 430px) {

    .team-hero {
        align-items: flex-start;
    }

    .team-hero-icon {
        width: 44px;
        height: 44px;
        flex-basis: 44px;

        font-size: 1.35rem;
    }

    .team-hero h1 {
        font-size: 1.4rem;
    }

    .member-photo-wrapper {
        width: 130px;
        height: 130px;
    }

    .member-content h2 {
        font-size: 1.3rem;
    }

    .member-bio p {
        font-size: 0.88rem;
        line-height: 1.72;
    }
}


/* =========================================================
   Reduced Motion
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .member-link {
        transition: none;
    }
}