/* ==========================================================================
   Anmol Digital — Team Compact Premium V1
   Styles only /team. No additional sections.
   ========================================================================== */

.team-page {
    background: #f3f3ef;
}

.team-page main {
    overflow: hidden;
}

.team-page .page-banner {
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}

.team-page .breadcrumb-bar {
    position: relative;
    z-index: 4;
}

/* --------------------------------------------------------------------------
   Main team section
   -------------------------------------------------------------------------- */

.team-page__content {
    padding: clamp(48px, 5.5vw, 84px) 0;
    background:
        radial-gradient(
            circle at 92% 0,
            rgba(0, 0, 0, .035),
            transparent 24%
        ),
        linear-gradient(
            180deg,
            #ffffff,
            #f2f2ee
        );
}

/* Compact heading card */

.team-page__content > .container-fluid > .section-heading {
    max-width: 1080px;
    margin: 0 auto clamp(30px, 4vw, 48px);
    padding: clamp(24px, 3vw, 38px);
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(270px, .72fr);
    align-items: center;
    gap: clamp(24px, 4.5vw, 64px);
    border: 1px solid rgba(0, 0, 0, .10);
    border-radius: 24px;
    background:
        radial-gradient(
            circle at 100% 0,
            rgba(0, 0, 0, .035),
            transparent 28%
        ),
        linear-gradient(
            145deg,
            #ffffff,
            #f7f7f3
        );
    box-shadow:
        0 1px 0 rgba(255, 255, 255, .98) inset,
        0 20px 52px rgba(0, 0, 0, .07);
    text-align: left;
}

.team-page__content .section-heading::before,
.team-page__content .section-heading::after {
    display: none;
}

.team-page__content .section-heading__eyebrow {
    width: fit-content;
    margin: 0 0 14px;
    padding: 8px 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 999px;
    background:
        linear-gradient(
            180deg,
            #202020,
            #080808
        );
    color: #ffffff;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .18em;
    text-transform: uppercase;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, .12) inset,
        0 10px 22px rgba(0, 0, 0, .15);
}

.team-page__content .section-heading__eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, .10);
}

.team-page__content .section-heading h2 {
    max-width: 700px;
    margin: 0;
    color: #111111;
    font-size: clamp(36px, 4.5vw, 60px);
    font-weight: 900;
    line-height: .98;
    letter-spacing: -.058em;
    text-wrap: balance;
}

.team-page__content .section-heading__description {
    max-width: 430px;
    margin: 0;
    padding-left: 22px;
    border-left: 1px solid rgba(0, 0, 0, .13);
    color: #656565;
    font-size: 14.5px;
    line-height: 1.7;
    text-align: left;
}

/* --------------------------------------------------------------------------
   Team grid
   -------------------------------------------------------------------------- */

.team-page__grid {
    max-width: 1120px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(
        auto-fit,
        minmax(min(100%, 270px), 340px)
    );
    justify-content: center;
    align-items: stretch;
    gap: 14px;
}

/* --------------------------------------------------------------------------
   Team cards
   -------------------------------------------------------------------------- */

.team-page .team-card--page {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, .10);
    border-radius: 20px;
    background:
        radial-gradient(
            circle at 100% 0,
            rgba(0, 0, 0, .035),
            transparent 28%
        ),
        linear-gradient(
            145deg,
            #ffffff,
            #f8f8f4
        );
    box-shadow:
        0 1px 0 rgba(255, 255, 255, .98) inset,
        0 16px 40px rgba(0, 0, 0, .055);
    transition:
        transform 220ms ease,
        border-color 220ms ease,
        box-shadow 220ms ease;
}

.team-page .team-card--page::after {
    content: "";
    position: absolute;
    right: -68px;
    bottom: -92px;
    width: 185px;
    height: 185px;
    border: 1px solid rgba(0, 0, 0, .04);
    border-radius: 50%;
    pointer-events: none;
}

.team-page .team-card--page:hover {
    border-color: rgba(0, 0, 0, .18);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, .98) inset,
        0 24px 58px rgba(0, 0, 0, .09);
    transform: translateY(-4px);
}

/* Image */

.team-page .team-card__media {
    position: relative;
    z-index: 1;
    aspect-ratio: 4 / 4.35;
    min-height: 0;
    overflow: hidden;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
    background:
        linear-gradient(
            145deg,
            #e8e8e4,
            #dcdcd7
        );
}

.team-page .team-card__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            180deg,
            transparent 54%,
            rgba(0, 0, 0, .40) 100%
        );
    pointer-events: none;
}

.team-page .team-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: none !important;
    opacity: 1 !important;
    transform: scale(1);
    transition: transform 320ms ease;
}

.team-page .team-card--page:hover .team-card__media img {
    filter: none !important;
    transform: scale(1.025);
}

.team-page .team-card__placeholder {
    width: 100%;
    height: 100%;
    min-height: 0;
    display: grid;
    place-items: center;
    background:
        radial-gradient(
            circle at 50% 35%,
            rgba(255, 255, 255, .10),
            transparent 36%
        ),
        linear-gradient(
            145deg,
            #181818,
            #080808
        );
    color: #ffffff;
}

.team-page .team-card__placeholder span {
    font-size: clamp(54px, 7vw, 78px);
    font-weight: 900;
    letter-spacing: -.09em;
}

/* Social links */

.team-page .team-card__socials {
    position: absolute;
    right: 13px;
    bottom: 13px;
    left: auto;
    z-index: 3;
    display: flex;
    align-items: center;
    gap: 6px;
    opacity: 1;
    transform: none;
}

.team-page .team-card__socials a {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 50%;
    background: rgba(8, 8, 8, .72);
    color: #ffffff;
    font-size: 11px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, .18);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition:
        background-color 180ms ease,
        transform 180ms ease;
}

.team-page .team-card__socials a:hover {
    background: #ffffff;
    color: #111111;
    transform: translateY(-2px);
}

/* Card content */

.team-page .team-card__content {
    position: relative;
    z-index: 1;
    padding: 20px;
}

.team-page .team-card__content h3 {
    margin: 0;
    color: #111111;
    font-size: clamp(22px, 2.4vw, 30px);
    font-weight: 900;
    line-height: 1.02;
    letter-spacing: -.045em;
}

.team-page .team-card__designation {
    margin: 7px 0 0;
    color: #707070;
    font-size: 10px;
    font-weight: 830;
    letter-spacing: .10em;
    line-height: 1.45;
    text-transform: uppercase;
}

.team-page .team-card--page .team-card__bio {
    margin: 14px 0 0;
    color: #666666;
    font-size: 12.5px;
    line-height: 1.65;
}

.team-page .team-card__email {
    max-width: 100%;
    margin-top: 15px;
    padding-top: 14px;
    display: block;
    overflow: hidden;
    border-top: 1px solid rgba(0, 0, 0, .09);
    color: #111111;
    font-size: 11px;
    font-weight: 780;
    line-height: 1.45;
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.team-page .team-card__email:hover {
    color: #666666;
}

/* Empty state */

.team-page .empty-state {
    max-width: 700px;
    margin: 0 auto;
    padding: 28px 22px;
    border: 1px solid rgba(0, 0, 0, .09);
    border-radius: 18px;
    background: rgba(255, 255, 255, .74);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, .96) inset,
        0 14px 34px rgba(0, 0, 0, .045);
}

/* --------------------------------------------------------------------------
   Existing CTA
   -------------------------------------------------------------------------- */

.team-page .page-cta {
    padding: 44px 0 62px;
    background: #efefeb;
}

.team-page .page-cta__panel {
    padding: clamp(28px, 3.8vw, 46px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 23px;
    background:
        radial-gradient(
            circle at 88% 10%,
            rgba(255, 255, 255, .09),
            transparent 24%
        ),
        linear-gradient(
            145deg,
            #090909,
            #1d1d1d 58%,
            #080808
        );
    box-shadow:
        0 1px 0 rgba(255, 255, 255, .07) inset,
        0 25px 64px rgba(0, 0, 0, .15);
    text-align: left;
}

.team-page .page-cta__panel > div {
    max-width: 760px;
}

.team-page .page-cta__eyebrow {
    margin: 0 0 8px;
    color: rgba(255, 255, 255, .48);
    font-size: 9px;
    font-weight: 850;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.team-page .page-cta h2 {
    max-width: 760px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(30px, 3.6vw, 48px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -.052em;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 820px) {
    .team-page__content > .container-fluid > .section-heading {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .team-page__content .section-heading__description {
        max-width: 680px;
    }

    .team-page__grid {
        grid-template-columns: repeat(
            2,
            minmax(0, 320px)
        );
    }

    .team-page .page-cta__panel {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (max-width: 620px) {
    .team-page__content {
        padding: 32px 0 58px;
    }

    .team-page__content > .container-fluid > .section-heading {
        padding: 21px 18px;
        border-radius: 20px;
    }

    .team-page__content .section-heading h2 {
        font-size: clamp(33px, 10vw, 43px);
    }

    .team-page__content .section-heading__description {
        padding-left: 14px;
        font-size: 14px;
    }

    .team-page__grid {
        grid-template-columns: minmax(0, 1fr);
        max-width: 420px;
        gap: 12px;
    }

    .team-page .team-card--page {
        border-radius: 18px;
    }

    .team-page .team-card__media {
        aspect-ratio: 4 / 4.1;
    }

    .team-page .team-card__socials {
        right: 11px;
        bottom: 11px;
    }

    .team-page .team-card__socials a {
        width: 30px;
        height: 30px;
        font-size: 10px;
    }

    .team-page .team-card__content {
        padding: 18px 16px;
    }

    .team-page .team-card__content h3 {
        font-size: 25px;
    }

    .team-page .team-card--page .team-card__bio {
        font-size: 12.5px;
    }

    .team-page .page-cta {
        padding: 38px 0 50px;
    }

    .team-page .page-cta__panel {
        padding: 23px 18px;
        border-radius: 19px;
    }

    .team-page .page-cta h2 {
        font-size: clamp(28px, 8.8vw, 38px);
    }
}
