/* ==========================================================================
   Anmol Digital — Team Editorial Showcase Final V3

   Premium connected layout:
   - Intro panel on the left
   - Horizontal 2 × 2 member cards on desktop
   - Balanced tablet and mobile stacking
   ========================================================================== */

.home-page .home-team-showcase-v3 {
    position: relative;
    padding-block: clamp(52px, 5.8vw, 82px) !important;
    overflow: hidden;
    background:
        radial-gradient(
            circle at 12% 15%,
            rgba(0, 0, 0, .038),
            transparent 25%
        ),
        linear-gradient(
            180deg,
            #f6f6f2,
            #ecece8
        );
}

.home-page
    .home-team-showcase-v3
    > .container-fluid {
    width: min(
        calc(100% - 48px),
        1380px
    ) !important;
    max-width: none !important;
    margin-inline: auto;
}

.home-team-showcase-v3__shell {
    position: relative;
    width: 100%;
    padding: clamp(26px, 3.3vw, 42px);
    display: grid;
    grid-template-columns:
        minmax(290px, .72fr)
        minmax(0, 1.58fr);
    align-items: stretch;
    gap: clamp(26px, 3.6vw, 48px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .08);
    border-radius: 28px;
    background:
        radial-gradient(
            circle at 94% 5%,
            rgba(255, 255, 255, .075),
            transparent 26%
        ),
        linear-gradient(
            145deg,
            #070707,
            #171717 58%,
            #090909
        );
    box-shadow:
        0 1px 0 rgba(255, 255, 255, .055) inset,
        0 28px 72px rgba(0, 0, 0, .14);
}

.home-team-showcase-v3__shell::before,
.home-team-showcase-v3__shell::after {
    content: "";
    position: absolute;
    border: 1px solid rgba(255, 255, 255, .045);
    border-radius: 50%;
    pointer-events: none;
}

.home-team-showcase-v3__shell::before {
    top: -170px;
    left: -130px;
    width: 360px;
    height: 360px;
}

.home-team-showcase-v3__shell::after {
    right: -180px;
    bottom: -210px;
    width: 440px;
    height: 440px;
}

/* --------------------------------------------------------------------------
   Intro
   -------------------------------------------------------------------------- */

.home-team-showcase-v3__intro {
    position: relative;
    z-index: 1;
    min-width: 0;
    padding: 6px 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.home-team-showcase-v3__eyebrow {
    width: fit-content;
    margin: 0 0 17px;
    padding: 8px 12px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1px solid rgba(255, 255, 255, .13);
    border-radius: 999px;
    background: rgba(255, 255, 255, .055);
    color: rgba(255, 255, 255, .82);
    font-size: 8.5px;
    font-weight: 850;
    line-height: 1;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.home-team-showcase-v3__eyebrow::before {
    content: "";
    width: 6px;
    height: 6px;
    flex: 0 0 6px;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, .08);
}

.home-team-showcase-v3__intro h2 {
    max-width: 420px;
    margin: 0;
    color: #ffffff;
    font-size: clamp(42px, 4.2vw, 62px);
    font-weight: 900;
    line-height: .96;
    letter-spacing: -.055em;
    text-wrap: balance;
}

.home-team-showcase-v3__description {
    max-width: 400px;
    margin: 17px 0 0;
    color: rgba(255, 255, 255, .58);
    font-size: 13.5px;
    line-height: 1.72;
}

.home-team-showcase-v3__button {
    min-height: 47px;
    margin-top: 24px;
    padding-inline: 18px;
    border-radius: 12px;
}

/* --------------------------------------------------------------------------
   Member cards
   -------------------------------------------------------------------------- */

.home-team-showcase-v3__grid {
    position: relative;
    z-index: 1;
    min-width: 0;
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    align-content: center;
    gap: 13px;
}

.home-team-showcase-v3__card {
    min-width: 0;
    min-height: 216px;
    display: grid;
    grid-template-columns:
        minmax(120px, .43fr)
        minmax(0, .57fr);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .10);
    border-radius: 17px;
    background:
        linear-gradient(
            145deg,
            rgba(255, 255, 255, .97),
            rgba(245, 245, 241, .96)
        );
    box-shadow:
        0 1px 0 rgba(255, 255, 255, .98) inset,
        0 18px 42px rgba(0, 0, 0, .17);
    transition:
        transform 180ms ease,
        box-shadow 180ms ease,
        border-color 180ms ease;
}

.home-team-showcase-v3__card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    width: calc(50% - 6.5px);
    justify-self: center;
}

.home-team-showcase-v3__card:hover,
.home-team-showcase-v3__card:focus-within {
    border-color: rgba(255, 255, 255, .19);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, .98) inset,
        0 24px 54px rgba(0, 0, 0, .23);
    transform: translateY(-3px);
}

.home-team-showcase-v3__media {
    position: relative;
    min-width: 0;
    min-height: 216px;
    overflow: hidden;
    background: #050505;
}

.home-team-showcase-v3__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            90deg,
            transparent 74%,
            rgba(0, 0, 0, .16)
        );
    pointer-events: none;
}

.home-team-showcase-v3__media img,
.home-team-showcase-v3__placeholder {
    width: 100%;
    height: 100%;
}

.home-team-showcase-v3__media img {
    display: block;
    object-fit: cover;
    object-position: center top;
    filter: none !important;
    opacity: 1 !important;
}

.home-team-showcase-v3__placeholder {
    display: grid;
    place-items: center;
    background:
        linear-gradient(
            145deg,
            #1b1b1b,
            #050505
        );
    color: #ffffff;
}

.home-team-showcase-v3__placeholder span {
    font-size: 48px;
    font-weight: 900;
    letter-spacing: -.08em;
}

.home-team-showcase-v3__content {
    min-width: 0;
    padding: 18px 17px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.home-team-showcase-v3__designation {
    width: fit-content;
    max-width: 100%;
    margin: 0 0 10px;
    padding: 6px 9px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(17, 17, 17, .065);
    color: rgba(17, 17, 17, .69);
    font-size: 8px;
    font-weight: 850;
    line-height: 1.2;
    letter-spacing: .11em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.home-team-showcase-v3__content h3 {
    margin: 0;
    color: #111111;
    font-size: clamp(23px, 2vw, 30px);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -.047em;
    overflow-wrap: anywhere;
}

.home-team-showcase-v3__bio {
    margin: 10px 0 0;
    display: -webkit-box;
    overflow: hidden;
    color: #686868;
    font-size: 11.5px;
    line-height: 1.58;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.home-team-showcase-v3__socials {
    margin-top: 15px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.home-team-showcase-v3__socials a {
    width: 31px;
    height: 31px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(0, 0, 0, .09);
    border-radius: 9px;
    background: #ffffff;
    color: #333333;
    font-size: 10px;
    text-decoration: none;
    transition:
        background-color 180ms ease,
        color 180ms ease,
        transform 180ms ease;
}

.home-team-showcase-v3__socials a:hover,
.home-team-showcase-v3__socials a:focus-visible {
    background: #111111;
    color: #ffffff;
    outline: none;
    transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   Tablet
   -------------------------------------------------------------------------- */

@media (max-width: 1080px) {
    .home-team-showcase-v3__shell {
        grid-template-columns: 1fr;
    }

    .home-team-showcase-v3__intro {
        max-width: 760px;
        align-items: center;
        margin-inline: auto;
        text-align: center;
    }

    .home-team-showcase-v3__intro h2,
    .home-team-showcase-v3__description {
        max-width: 700px;
    }

    .home-team-showcase-v3__grid {
        width: 100%;
        max-width: 900px;
        margin-inline: auto;
    }
}

/* --------------------------------------------------------------------------
   Mobile
   -------------------------------------------------------------------------- */

@media (max-width: 720px) {
    .home-page
        .home-team-showcase-v3
        > .container-fluid {
        width: calc(100% - 24px) !important;
    }

    .home-team-showcase-v3__shell {
        padding: 22px 16px;
        border-radius: 21px;
    }

    .home-team-showcase-v3__intro h2 {
        font-size: clamp(36px, 10vw, 49px);
    }

    .home-team-showcase-v3__description {
        font-size: 13px;
    }

    .home-team-showcase-v3__button {
        width: 100%;
        justify-content: center;
    }

    .home-team-showcase-v3__grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .home-team-showcase-v3__card,
    .home-team-showcase-v3__card:last-child:nth-child(odd) {
        width: 100%;
        grid-column: auto;
        justify-self: stretch;
    }
}

@media (max-width: 500px) {
    .home-team-showcase-v3__card {
        grid-template-columns: 1fr;
    }

    .home-team-showcase-v3__media {
        min-height: 0;
        aspect-ratio: 4 / 3.35;
    }

    .home-team-showcase-v3__media::after {
        background:
            linear-gradient(
                180deg,
                transparent 72%,
                rgba(0, 0, 0, .20)
            );
    }

    .home-team-showcase-v3__content {
        padding: 17px 15px 16px;
    }
}

@media (max-width: 390px) {
    .home-page
        .home-team-showcase-v3
        > .container-fluid {
        width: calc(100% - 20px) !important;
    }
}

@media (hover: none) {
    .home-team-showcase-v3__card:hover,
    .home-team-showcase-v3__socials a:hover {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-team-showcase-v3__card,
    .home-team-showcase-v3__socials a {
        transition: none !important;
        transform: none !important;
    }
}
