/* =========================================================
   DOCTATECH
   TEAM PREVIEW
   ========================================================= */

.team-preview {
    padding: 64px 0 72px;

    background: #ffffff;

    overflow: hidden;
}

.team-preview__container {
    width: min(1200px, calc(100% - 48px));

    margin: 0 auto;
}


/* =========================================================
   INTRO
   ========================================================= */

.team-preview__intro {
    max-width: 720px;

    margin: 0 auto 42px;

    text-align: center;
}

.team-preview__eyebrow {
    margin: 0 0 10px;

    color: #4a004b;

    font-size: 11px;
    font-weight: 700;

    letter-spacing: 0.16em;

    text-transform: uppercase;
}

.team-preview__title {
    margin: 0;

    color: #171717;

    font-family: var(--font-display);

    font-size: clamp(42px, 4vw, 56px);
    font-weight: 600;

    line-height: 1;

    letter-spacing: -0.055em;
}

.team-preview__title span {
    color: #4a004b;
}

.team-preview__description {
    max-width: 620px;

    margin: 15px auto 0;

    color: #57525a;

    font-size: 15px;

    line-height: 1.6;
}


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

.team-preview__grid {
    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 18px;

    align-items: stretch;
}


/* =========================================================
   PROFILE
   ========================================================= */

.team-profile {
    width: 100%;

    min-width: 0;

    display: flex;

    flex-direction: column;

    text-align: center;

    transition:
        transform 320ms cubic-bezier(0.16, 1, 0.3, 1);
}

.team-profile:hover {
    transform: translateY(-5px);
}


/* =========================================================
   PORTRAIT
   ========================================================= */

.team-profile__portrait {
    width: 100%;

    height: 205px;

    flex-shrink: 0;

    overflow: hidden;

    background: #f5f3f5;

    border: 1px solid #dedade;

    position: relative;
}

.team-profile__portrait::after {
    content: "";

    position: absolute;

    inset: 0;

    background:
        linear-gradient(
            135deg,
            rgba(74, 0, 75, 0.06),
            transparent 45%
        );

    opacity: 0;

    transition:
        opacity 350ms ease;

    pointer-events: none;
}

.team-profile:hover .team-profile__portrait::after {
    opacity: 1;
}

.team-profile__portrait img {
    width: 100%;

    height: 100%;

    display: block;

    object-fit: cover;

    object-position: center 18%;

    transform: scale(1.08);

    transition:
        transform 650ms cubic-bezier(0.16, 1, 0.3, 1);
}

.team-profile:hover .team-profile__portrait img {
    transform: scale(1.13);
}


/* =========================================================
   FUTURE MEMBER PLACEHOLDER
   ========================================================= */

.team-profile__portrait--placeholder {
    display: flex;

    align-items: center;

    justify-content: center;

    background: #f6f4f6;

    color: #cfc8d0;

    transition:
        background-color 350ms ease,
        color 350ms ease;
}

.team-profile:hover .team-profile__portrait--placeholder {
    background: #f2edf2;

    color: #4a004b;
}

.team-profile__portrait--placeholder i {
    font-size: 42px;

    transition:
        transform 400ms cubic-bezier(0.16, 1, 0.3, 1);
}

.team-profile:hover .team-profile__portrait--placeholder i {
    transform:
        scale(1.08)
        translateY(-2px);
}


/* =========================================================
   INFORMATION AREA
   ========================================================= */

.team-profile__content {
    flex: 1;

    min-height: 205px;

    display: flex;

    flex-direction: column;

    align-items: center;

    padding: 17px 14px 18px;

    background: #ffffff;

    border: 1px solid #dedade;

    border-top: 3px solid transparent;

    text-align: center;

    transition:
        border-color 280ms ease,
        box-shadow 320ms ease;
}

.team-profile--featured .team-profile__content {
    border-top-color: #4a004b;
}

.team-profile:hover .team-profile__content {
    border-color: #d4ced5;

    border-top-color: #4a004b;

    box-shadow:
        0 14px 28px rgba(0, 0, 0, 0.06);
}


/* =========================================================
   NUMBER
   ========================================================= */

.team-profile__number {
    margin: 0 0 8px;

    color: #4a004b;

    font-size: 10px;

    font-weight: 700;

    letter-spacing: 0.08em;

    line-height: 1;

    transition:
        transform 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

.team-profile:hover .team-profile__number {
    transform: translateY(-2px);
}


/* =========================================================
   NAME
   ========================================================= */

.team-profile__content h3 {
    margin: 0;

    color: #171717;

    font-family: var(--font-display);

    font-size: 19px;

    font-weight: 600;

    line-height: 1.2;

    letter-spacing: -0.03em;

    transition:
        color 220ms ease;
}

.team-profile:hover .team-profile__content h3 {
    color: #4a004b;
}


/* =========================================================
   ROLE
   ========================================================= */

.team-profile__role {
    margin: 7px 0 0;

    color: #4a004b;

    font-size: 13px;

    font-weight: 600;

    line-height: 1.35;
}

.team-profile__specialty {
    margin: 5px 0 0;

    color: #555057;

    font-size: 12px;

    line-height: 1.4;
}


/* =========================================================
   BIO
   ========================================================= */

.team-profile__bio {
    max-width: 235px;

    margin: 10px auto 0;

    color: #666169;

    font-size: 12px;

    line-height: 1.5;
}


/* =========================================================
   SOCIAL
   ========================================================= */

.team-profile__social {
    min-height: 34px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 9px;

    margin-top: -15px;

    position: relative;

    z-index: 5;
}

.team-profile__social a,
.team-profile__social span {
    width: 28px;
    height: 28px;

    display: flex;

    align-items: center;
    justify-content: center;

    box-sizing: content-box;

    border: 2px solid #ffffff;

    border-radius: 50%;

    background: #171717;

    color: #ffffff;

    font-size: 11px;

    transition:
        transform 280ms cubic-bezier(0.16, 1, 0.3, 1),
        background-color 220ms ease,
        box-shadow 280ms ease;
}

.team-profile__social span {
    background: #ddd9de;
}

.team-profile__social a {
    text-decoration: none;
}

.team-profile__social a:hover {
    background: #4a004b;

    transform:
        translateY(-3px)
        scale(1.05);

    box-shadow:
        0 7px 15px rgba(74, 0, 75, 0.18);
}


/* =========================================================
   FULL TEAM LINK
   ========================================================= */

.team-preview__action {
    display: flex;

    justify-content: center;

    margin-top: 24px;
}

.team-preview__link {
    display: inline-flex;

    align-items: center;

    gap: 8px;

    color: #4a004b;

    font-size: 13px;

    font-weight: 700;

    text-decoration: none;

    transition:
        gap 280ms cubic-bezier(0.16, 1, 0.3, 1),
        color 220ms ease;
}

.team-preview__link span {
    color: #ffc600;

    transition:
        transform 280ms cubic-bezier(0.16, 1, 0.3, 1);
}

.team-preview__link:hover {
    gap: 13px;

    color: #5d075e;
}

.team-preview__link:hover span {
    transform:
        translate(2px, -2px);
}


/* =========================================================
   REMOVE OLD LINE DECORATION
   ========================================================= */

.team-profile__line {
    display: none;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1000px) {

    .team-preview__grid {
        gap: 14px;
    }

    .team-profile__portrait {
        height: 190px;
    }

    .team-profile__content {
        min-height: 210px;

        padding-left: 10px;
        padding-right: 10px;
    }

    .team-profile__content h3 {
        font-size: 17px;
    }

    .team-profile__role {
        font-size: 12px;
    }

    .team-profile__specialty,
    .team-profile__bio {
        font-size: 11px;
    }

}


/* =========================================================
   MOBILE / TABLET STACK
   ========================================================= */

@media (max-width: 700px) {

    .team-preview {
        padding: 56px 0 64px;
    }

    .team-preview__container {
        width: min(100% - 32px, 600px);
    }

    .team-preview__intro {
        margin-bottom: 34px;
    }

    .team-preview__title {
        font-size: 40px;
    }

    .team-preview__description {
        font-size: 14px;
    }

    .team-preview__grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 20px;
    }

    .team-profile__portrait {
        height: 210px;
    }

    .team-profile__content {
        min-height: 205px;
    }

    .team-profile__content h3 {
        font-size: 18px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 480px) {

    .team-preview__grid {
        grid-template-columns: 1fr;

        gap: 36px;
    }

    .team-profile {
        max-width: 360px;

        margin: 0 auto;
    }

    .team-profile__portrait {
        height: 230px;
    }

    .team-profile__content {
        min-height: 190px;

        padding: 18px 20px;
    }

    .team-profile__content h3 {
        font-size: 21px;
    }

    .team-profile__role {
        font-size: 13px;
    }

    .team-profile__specialty,
    .team-profile__bio {
        font-size: 12px;
    }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .team-profile,
    .team-profile__portrait img,
    .team-profile__portrait--placeholder,
    .team-profile__portrait--placeholder i,
    .team-profile__content,
    .team-profile__number,
    .team-profile__content h3,
    .team-profile__social a,
    .team-preview__link,
    .team-preview__link span {

        transition: none;
    }

}