/* ==========================================================
   TEAM
========================================================== */

#team{

    scroll-margin-top:var(--section-scroll-offset);

}

.team-carousel{

    position:relative;

    width:100%;

    height:430px;

    display:flex;

    justify-content:center;

    align-items:center;

    overflow:hidden;

}

.team-stage{

    position:relative;

    width:1000px;

    height:100%;

}

.team-slot{

    position:absolute;

    top:50%;

    left:50%;

    width:360px;

    height:260px;

    transform-origin:center;

    transition:
        transform .72s cubic-bezier(.16,1,.30,1),
        opacity .45s ease,
        filter .45s ease;

    will-change: transform, opacity, filter;

    backface-visibility: hidden;

    transform-style: preserve-3d;

}

/* ==========================================================
   TEAM CARD
========================================================== */

.team-card{

    width:100%;

    height:100%;

    background:var(--card-color);

    border:1px solid var(--border);

    border-radius:22px;

    backdrop-filter:blur(18px);

    display:flex;

    flex-direction:column;

    justify-content:center;

    align-items:center;

    text-align:center;

    padding:30px;

    transition:
        transform .72s cubic-bezier(.16,1,.30,1),
        box-shadow .45s ease,
        border-color .45s ease;

}

.team-card h3{

    margin-top:20px;

    font-size:1.35rem;

    color:var(--text);

}

.team-card p{

    margin-top:10px;

    color:var(--text-soft);

}

.team-avatar-placeholder{

    width:110px;

    height:110px;

    border-radius:50%;

    display:flex;

    justify-content:center;

    align-items:center;

    font-size:2rem;

    font-weight:700;

    background:rgba(255,255,255,.05);

    border:2px solid var(--primary);

    color:var(--primary);

}

.team-avatar-placeholder img{

    width:100%;

    height:100%;

    object-fit:cover;

    border-radius:50%;

}

.hidden-left{

    transform:
        translate(-195%,-44%)
        scale(.72);

    opacity:0;

    visibility:hidden;

    pointer-events:none;

    z-index:0;

}

.left{

    transform:
        translate(-135%,-46%)
        scale(.78)
        rotateY(6deg);

    opacity:.30;

    filter:blur(1.5px);

    z-index:2;

}

.left .team-card{

    box-shadow:
        0 8px 18px rgba(0,0,0,.12);

}

.center{

    transform:
        translate(-50%,-53%)
        scale(1);

    opacity:1;

    filter:blur(0);

    z-index:5;

}

.center .team-card{

    box-shadow:
        0 18px 45px rgba(0,0,0,.22),
        var(--shadow);

}

.right{

    transform:
        translate(35%,-46%)
        scale(.78)
        rotateY(-6deg);

    opacity:.30;

    filter:blur(1.5px);

    z-index:2;

}

.right .team-card{

    box-shadow:
        0 8px 18px rgba(0,0,0,.12);

}

.hidden-right{

    transform:
        translate(95%,-44%)
        scale(.72);

    opacity:0;

    visibility:hidden;

    pointer-events:none;

    z-index:0;

}

.team-arrow{

    position:absolute;

    top:50%;

    width:52px;

    height:52px;

    border:none;

    border-radius:50%;

    cursor:pointer;

    background:var(--card-color);

    color:var(--text);

    display:flex;

    justify-content:center;

    align-items:center;

    transform:translateY(-50%);

    transition:.3s;

    z-index:10;

    pointer-events:auto;

}

.team-arrow:hover{

    background:var(--primary);

    color:#fff;

}

.team-arrow-prev{

    left:0;

}

.team-arrow-next{

    right:0;

}

.team-arrow svg{

    width:24px;

    height:24px;

}