
/* ==========================================
   TERRAIFA - TEAM SECTION V2
   ========================================== */

/* ==========================================
   SECTION & BACKGROUND
   ========================================== */

.content-section.section-team {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(105px, 9vw, 135px) 0
             clamp(55px, 5vw, 75px);
    background:
        radial-gradient(
            circle at 8% 40%,
            rgba(39, 153, 164, .13),
            transparent 38%
        ),
        radial-gradient(
            circle at 90% 65%,
            rgba(64, 187, 145, .10),
            transparent 38%
        ),
        linear-gradient(
            155deg,
            #163145 0%,
            #132d40 55%,
            #13263d 100%
        );
    color: #ffffff;
    scroll-margin-top: 85px;
}

/* ==========================================
   CURVED TRANSITION
   ========================================== */

.team-transition {
    position: absolute;
    z-index: 1;
    top: -1px;
    right: 0;
    left: 0;
    height: clamp(75px, 8vw, 110px);
    pointer-events: none;
}

.team-transition svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* ==========================================
   COMPACT HEADING
   ========================================== */

.team-intro {
    max-width: 850px;
    margin: 0 auto 35px;
    text-align: center;
}

.team-intro__eyebrow {
    margin: 0 0 11px;
    color: #83dfc4;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .18em;
    line-height: 1.5;
}

.section-team .section-title {
    max-width: none;
    margin: 0;
    color: #ffffff;
    font-size: clamp(32px, 3.8vw, 49px);
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -.045em;
}

.section-team .section-title em {
    display: block;
    margin-top: 4px;
    background: linear-gradient(
        95deg,
        #76db9e,
        #4ac3ca
    );
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    font-style: normal;
}

.team-intro__description {
    max-width: 620px;
    margin: 16px auto 0;
    color: #b7ced6;
    font-size: 15px;
    line-height: 1.65;
}

/* ==========================================
   TWO PROFILE CARDS
   ========================================== */

.team-profiles {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 20px;
}

.team-profile {
    display: grid;
    grid-template-columns: 118px minmax(0, 1fr);
    align-items: center;
    gap: 22px;
    min-width: 0;
    padding: 28px;
    border: 1px solid rgba(151, 221, 204, .18);
    border-radius: 21px;
    background: rgba(255, 255, 255, .055);
    box-shadow: 0 16px 40px rgba(0, 12, 27, .11);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
    transition:
        transform .3s ease,
        border-color .3s ease,
        background .3s ease,
        box-shadow .3s ease,
        opacity .7s ease;
}

.team-profile:hover {
    transform: translateY(-4px);
    border-color: rgba(113, 222, 188, .47);
    background: rgba(255, 255, 255, .075);
    box-shadow: 0 21px 44px rgba(0, 12, 27, .18);
}

/* ==========================================
   CIRCULAR PORTRAITS
   ========================================== */

.team-profile__portrait {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 118px;
    height: 118px;
    flex-shrink: 0;
    overflow: hidden;
    border: 3px solid rgba(126, 223, 194, .7);
    border-radius: 50%;
    background:
        radial-gradient(
            circle at 40% 24%,
            rgba(128, 222, 194, .23),
            transparent 70%
        ),
        #254b59;
    color: #b9e8db;
    box-shadow:
        0 0 0 6px rgba(95, 208, 177, .07),
        0 12px 28px rgba(0, 13, 27, .17);
}

.team-profile--technology
.team-profile__portrait {
    border-color: rgba(84, 186, 211, .7);
    background:
        radial-gradient(
            circle at 40% 24%,
            rgba(96, 191, 221, .22),
            transparent 70%
        ),
        #25475d;
    color: #c2e7f0;
}

.team-profile__portrait svg {
    display: block;
    width: 74px;
    height: 74px;
}

.team-profile__portrait img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 28%;
}

/* ==========================================
   PROFILE CONTENT
   ========================================== */

.team-profile__content {
    min-width: 0;
}

.team-profile__category {
    display: block;
    margin-bottom: 7px;
    color: #82dbbf;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .10em;
    line-height: 1.5;
}

.team-profile h3 {
    margin: 0;
    color: #ffffff;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -.03em;
}

.team-profile__role {
    margin: 5px 0 12px;
    color: #7fe0c8;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
}

.team-profile__description {
    margin: 0;
    color: #c0d3db;
    font-size: 13px;
    line-height: 1.7;
}

.team-profile__skills {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 16px;
}

.team-profile__skills span {
    display: inline-flex;
    align-items: center;
    padding: 6px 9px;
    border: 1px solid rgba(130, 221, 195, .17);
    border-radius: 7px;
    background: rgba(117, 217, 186, .09);
    color: #acdccc;
    font-size: 10px;
    font-weight: 650;
    line-height: 1.35;
}

/* ==========================================
   SMALL DESKTOP / TABLET
   ========================================== */

@media (max-width: 1050px) {

    .team-profile {
        grid-template-columns: 95px minmax(0, 1fr);
        gap: 17px;
        padding: 22px;
    }

    .team-profile__portrait {
        width: 95px;
        height: 95px;
    }

    .team-profile__portrait svg {
        width: 65px;
        height: 65px;
    }

    .team-profile h3 {
        font-size: 25px;
    }
}

@media (max-width: 850px) {

    .team-profiles {
        grid-template-columns: 1fr;
        max-width: 680px;
        margin: 0 auto;
        gap: 15px;
    }

    .team-profile {
        grid-template-columns: 108px minmax(0, 1fr);
    }

    .team-profile__portrait {
        width: 108px;
        height: 108px;
    }

    .team-intro {
        margin-bottom: 26px;
    }
}

/* ==========================================
   MOBILE
   ========================================== */

@media (max-width: 620px) {

    .content-section.section-team {
        padding: 90px 0 58px;
    }

    .team-transition {
        height: 75px;
    }

    .team-intro__eyebrow {
        font-size: 10px;
    }

    .section-team .section-title {
        font-size: clamp(30px, 8vw, 40px);
    }

    .team-intro__description {
        font-size: 13px;
        line-height: 1.7;
    }

    .team-profile {
        grid-template-columns: 88px minmax(0, 1fr);
        gap: 15px;
        padding: 19px;
        border-radius: 17px;
    }

    .team-profile__portrait {
        width: 88px;
        height: 88px;
    }

    .team-profile__portrait svg {
        width: 58px;
        height: 58px;
    }

    .team-profile h3 {
        font-size: 23px;
    }

    .team-profile__category {
        font-size: 9px;
    }

    .team-profile__role {
        font-size: 12px;
    }

    .team-profile__description {
        font-size: 12px;
    }

    .team-profile__skills {
        gap: 6px;
        margin-top: 12px;
    }

    .team-profile__skills span {
        font-size: 9px;
    }
}

/* ==========================================
   VERY SMALL SCREENS
   ========================================== */

@media (max-width: 390px) {

    .team-profile {
        grid-template-columns: 1fr;
        justify-items: start;
    }

    .team-profile__portrait {
        width: 100px;
        height: 100px;
    }
}

/* ==========================================
   ACCESSIBILITY
   ========================================== */

@media (prefers-reduced-motion: reduce) {

    .team-profile {
        transition: none;
    }

    .team-profile:hover {
        transform: none;
    }
}
