/* =========================================================
   OUR TEAM
   PREMIUM EDITORIAL REDESIGN
========================================================= */

.tml-team-page {
    --team-navy: #101c29;
    --team-navy-soft: #192a3b;
    --team-gold: #c79a48;
    --team-gold-dark: #9c7129;
    --team-cream: #f7f4ee;
    --team-paper: #fcfbf8;
    --team-white: #ffffff;
    --team-text: #171d24;
    --team-muted: #66717b;
    --team-border: rgba(16, 28, 41, .11);

    overflow: hidden;
}


.tml-team-page *,
.tml-team-page *::before,
.tml-team-page *::after {
    box-sizing: border-box;
}


/* =========================================================
   COMMON
========================================================= */

.tml-team-overline,
.tml-team-role {
    display: block;

    color: var(--team-gold-dark);

    font-size: 10px;

    font-weight: 800;

    letter-spacing: .11em;

    text-transform: uppercase;
}


.tml-team-overline-light {
    color: #e2ba6e;
}


.tml-team-bio p {
    margin: 0 0 15px;

    color: var(--team-muted);

    font-size: 14px;
    text-align: justify;

    line-height: 1.8;
}


.tml-team-bio p:last-child {
    margin-bottom: 0;
}


.tml-team-profile-number {
    display: inline-flex;

    width: 38px;
    height: 38px;

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

    border-radius: 50%;

    color: var(--team-gold-dark);

    background: rgba(199, 154, 72, .11);

    font-size: 9px;

    font-weight: 800;
}


/* =========================================================
   COMPACT HERO
========================================================= */

.tml-team-hero {
    --team-hero-image: none;

    position: relative;

    height: 500px;

    min-height: 330px;

    display: flex;

    align-items: flex-end;

    overflow: hidden;

    background-image:
        var(--team-hero-image);

    background-size: cover;

    background-position: center 30%;

    background-repeat: no-repeat;
}


.tml-team-hero-overlay {
    position: absolute;

    /*inset: 0;*/

    /*background:*/
    /*    linear-gradient(*/
    /*        90deg,*/
    /*        rgba(250, 248, 243, .77) 0%,*/
    /*        rgba(250, 248, 243, .53) 28%,*/
    /*        rgba(250, 248, 243, .13) 57%,*/
    /*        rgba(250, 248, 243, .03) 100%*/
    /*    );*/
}


.tml-team-hero-inner {
    position: relative;

    z-index: 2;

    width: 100%;

    padding-bottom: 42px;
}


.tml-team-hero-copy {
    max-width: 540px;
}


.tml-team-hero-copy h1 {
    margin: 10px 0 0;

    color: var(--team-navy);

    font-family: Georgia, serif;

    font-size: clamp(37px, 4vw, 53px);

    font-weight: 500;

    line-height: 1.02;

    letter-spacing: -.025em;
}


.tml-team-hero-copy h1 em {
    color: var(--team-gold-dark);

    font-style: italic;
}


.tml-team-hero-copy p {
    margin: 12px 0 0;

    color: #4e5963;

    font-size: 13px;

    line-height: 1.6;
}


/* =========================================================
   STATS
========================================================= */

.tml-team-stats {
    background: var(--team-navy);
}


.tml-team-stats-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);
}


.tml-team-stats-grid > div {
    min-height: 77px;

    display: flex;

    align-items: center;

    gap: 15px;

    padding: 14px 27px;

    border-right:
        1px solid
        rgba(255, 255, 255, .1);
}


.tml-team-stats-grid > div:last-child {
    border-right: 0;
}


.tml-team-stats strong {
    color: #e1b96c;

    font-family: Georgia, serif;

    font-size: 28px;

    font-weight: 500;
}


.tml-team-stats span {
    color: rgba(255, 255, 255, .59);

    font-size: 10px;
}


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

.tml-team-intro {
    padding: 95px 0 72px;

    background: #fff;
}


.tml-team-intro-grid {
    display: grid;

    grid-template-columns:
        1fr .75fr;

    gap: 85px;

    align-items: end;
}


.tml-team-intro h2 {
    margin: 12px 0 0;

    color: var(--team-navy);

    font-family: Georgia, serif;

    font-size: clamp(42px, 4.4vw, 61px);

    font-weight: 500;

    line-height: 1.05;
}


.tml-team-intro h2 em {
    display: block;

    color: var(--team-gold-dark);

    font-style: italic;
}


.tml-team-intro-grid > p {
    margin: 0;

    color: var(--team-muted);

    font-size: 14px;

    line-height: 1.8;
}


/* =========================================================
   FOUNDER
========================================================= */

.tml-team-founder {
    padding: 35px 0 105px;

    background: #fff;
}


.tml-team-founder-card {
    display: grid;

    grid-template-columns:
        330px 1fr;

    gap: 54px;

    align-items: center;

    padding: 31px;

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

    border-radius: 24px;

    background:
        linear-gradient(
            135deg,
            #fbfaf6,
            #fff
        );

    box-shadow:
        0 24px 65px
        rgba(16, 28, 41, .055);
}


.tml-team-founder-photo {
    position: relative;
}


.tml-team-founder-image {
    width: 330px;

    aspect-ratio: 4 / 5;

    overflow: hidden;

    border-radius: 17px;

    background: #eceae6;
}


.tml-team-founder-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    object-position: center 25%;
}


.tml-team-founder-photo
.tml-team-profile-number {
    position: absolute;

    right: -17px;

    bottom: 25px;

    color: #fff;

    background: var(--team-navy);
}


.tml-team-founder-content {
    padding-right: 14px;
}


.tml-team-founder-content h2 {
    margin: 9px 0 24px;

    color: var(--team-navy);

    font-family: Georgia, serif;

    font-size: 43px;

    font-weight: 500;

    line-height: 1.08;
}


/* =========================================================
   SENIOR PARTNER
========================================================= */

.tml-team-senior {
    position: relative;

    padding: 92px 0;

    overflow: hidden;

    background: var(--team-navy);
}


.tml-team-senior::after {
    content: "02";

    position: absolute;

    right: -15px;

    bottom: -105px;

    color: rgba(255, 255, 255, .025);

    font-family: Georgia, serif;

    font-size: 250px;

    line-height: 1;
}


.tml-team-senior-layout {
    position: relative;

    z-index: 2;

    display: grid;

    grid-template-columns:
        .8fr 210px 1.2fr;

    gap: 50px;

    align-items: center;
}


.tml-team-senior-heading h2 {
    margin: 12px 0 0;

    color: white !important;

    font-family: Georgia, serif;

    font-size: 48px;

    font-weight: 500;

    line-height: 1.03;
}


.tml-team-senior-heading h2 em {
    display: block;

    color: #e1b96c;

    font-style: italic;
}


.tml-team-senior-image {
    position: relative;

    width: 270px;
}


.tml-team-senior-image img {
    width: 270px;

    aspect-ratio: 4 / 5;

    display: block;

    object-fit: cover;

    object-position: center top;

    border-radius: 16px;
}


.tml-team-senior-image > span {
    position: absolute;

    right: -15px;

    bottom: 18px;

    width: 40px;
    height: 40px;

    display: flex;

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

    border-radius: 50%;

    color: var(--team-navy);

    background: #e1b96c;

    font-size: 10px;
}


.tml-team-senior-bio p {
    margin: 0 40px 15px;
    text-align: justify;

    color: rgba(255, 255, 255, .64);

    font-size: 14px;

    line-height: 1.78;
}


.tml-team-senior-bio p:last-child {
    margin-bottom: 0;
}


/* =========================================================
   SECTION HEAD
========================================================= */

.tml-team-section-head {
    max-width: 760px;
}


.tml-team-section-head h2 {
    margin: 12px 0 0;

    color: var(--team-navy);

    font-family: Georgia, serif;

    font-size: clamp(42px, 4.2vw, 60px);

    font-weight: 500;

    line-height: 1.05;
}


.tml-team-section-head h2 em {
    display: block;

    color: var(--team-gold-dark);

    font-style: italic;
}


/* =========================================================
   ASSOCIATES
========================================================= */

.tml-team-associates {
    padding: 105px 0;

    background: var(--team-cream);
}


.tml-team-associate-grid {
    display: grid;

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

    gap: 22px;

    margin-top: 47px;
}


.tml-team-associate-card {
    padding: 24px;

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

    border-radius: 21px;

    background: #fff;

    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}


.tml-team-associate-card:hover {
    transform:
        translateY(-5px);

    border-color:
        rgba(199, 154, 72, .31);

    box-shadow:
        0 24px 55px
        rgba(16, 28, 41, .07);
}


/*
 * KEY CHANGE:
 * small portrait only.
 * Never enlarges Yuvika or Ojas to full section width.
 */

.tml-team-associate-top {
    display: grid;

    grid-template-columns:
        145px 1fr;

    gap: 22px;

    align-items: center;
}


.tml-team-associate-image {
    width: 145px;

    aspect-ratio: 4 / 5;

    overflow: hidden;

    border-radius: 14px;

    background: #eeece8;
}


.tml-team-associate-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    object-position: center top;
}


.tml-team-associate-name {
    position: relative;

    min-height: 140px;

    display: flex;

    flex-direction: column;

    justify-content: center;
}


.tml-team-associate-name h3 {
    margin: 7px 0 0;

    padding-right: 38px;

    color: var(--team-navy);

    font-family: Georgia, serif;

    font-size: 25px;

    font-weight: 500;

    line-height: 1.13;
}


.tml-team-associate-name
.tml-team-profile-number {
    position: absolute;

    right: 0;

    top: 0;
}


.tml-team-associate-divider {
    height: 1px;

    margin: 24px 0;

    background:
        var(--team-border);
}


.tml-team-associate-card
.tml-team-bio p {
    font-size: 13px;

    line-height: 1.7;
}


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

.tml-team-support {
    padding: 105px 0;

    background: #fff;
}


.tml-team-support-grid {
    display: grid;

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

    gap: 22px;

    margin-top: 47px;
}


.tml-team-support-card {
    display: grid;

    grid-template-columns:
        180px 1fr;

    gap: 25px;

    padding: 21px;

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

    border-radius: 21px;

    background: var(--team-paper);

    transition:
        transform .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}


.tml-team-support-card:hover {
    transform:
        translateY(-5px);

    border-color:
        rgba(199, 154, 72, .31);

    box-shadow:
        0 24px 55px
        rgba(16, 28, 41, .07);
}


.tml-team-support-image {
    width: 180px;

    aspect-ratio: 4 / 5;

    overflow: hidden;

    border-radius: 15px;

    background: #eeece8;
}


.tml-team-support-image img {
    width: 100%;
    height: 100%;

    display: block;

    object-fit: cover;

    object-position: center top;
}


.tml-team-support-content {
    padding:
        7px 4px 7px 0;
}


.tml-team-support-content h3 {
    margin: 7px 0 17px;

    color: var(--team-navy);

    font-family: Georgia, serif;

    font-size: 25px;

    font-weight: 500;
}


.tml-team-support-card
.tml-team-bio p {
    font-size: 12.5px;

    line-height: 1.68;
}


/* =========================================================
   PRACTICE AREAS
========================================================= */

.tml-team-practice {
    padding: 87px 0;

    background: var(--team-navy);
}


.tml-team-practice-head h2 {
    margin: 10px 0 0;

    color: white !important;

    font-family: Georgia, serif;

    font-size: 42px;

    font-weight: 500;
}


.tml-team-practice-links {
    display: flex;

    flex-wrap: wrap;

    gap: 9px;

    margin-top: 28px;
}


.tml-team-practice-links a {
    padding:
        10px 15px;

    border:
        1px solid
        rgba(255, 255, 255, .11);

    border-radius: 999px;

    color:
        rgba(255, 255, 255, .69);

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

    font-size: 11px;

    text-decoration: none;

    transition:
        transform .25s ease,
        background .25s ease,
        color .25s ease;
}


.tml-team-practice-links a:hover {
    transform:
        translateY(-2px);

    color: var(--team-navy);

    background: #e1b96c;
}


/* =========================================================
   TESTIMONIAL
========================================================= */

.tml-team-testimonial {
    padding: 95px 0;

    background: #fff;
}


.tml-team-testimonial-card {
    position: relative;

    max-width: 940px;

    margin: 0 auto;

    padding:
        43px 57px;

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

    border-radius: 22px;

    background:
        var(--team-paper);
}


.tml-team-quote {
    position: absolute;

    left: 26px;

    top: 13px;

    color:
        rgba(199, 154, 72, .3);

    font-family:
        Georgia,
        serif;

    font-size: 85px;

    line-height: 1;
}


.tml-team-testimonial blockquote {
    position: relative;

    z-index: 2;

    margin: 0;

    color: var(--team-navy);

    font-family: Georgia, serif;

    font-size: clamp(23px, 2.4vw, 32px);

    line-height: 1.46;
}


.tml-team-testimonial-card > div {
    margin-top: 24px;
}


.tml-team-testimonial-card strong {
    display: block;

    color: var(--team-navy);

    font-size: 12px;
}


.tml-team-testimonial-card > div span {
    display: block;

    margin-top: 4px;

    color: var(--team-muted);

    font-size: 10px;
}


/* =========================================================
   CTA
========================================================= */

.tml-team-cta {
    padding: 95px 0;

    background:
        linear-gradient(
            135deg,
            #f7f3ea,
            #fff
        );
}


.tml-team-cta-heading {
    display: grid;

    grid-template-columns:
        1fr .72fr;

    gap: 75px;

    align-items: end;
}


.tml-team-cta-heading h2 {
    margin: 11px 0 0;

    color: var(--team-navy);

    font-family: Georgia, serif;

    font-size:
        clamp(
            41px,
            4.2vw,
            59px
        );

    font-weight: 500;

    line-height: 1.05;
}


.tml-team-cta-heading h2 em {
    display: block;

    color: var(--team-gold-dark);

    font-style: italic;
}


.tml-team-cta-heading > p {
    margin: 0;

    color: var(--team-muted);

    font-size: 14px;

    line-height: 1.75;
}


.tml-team-contact-grid {
    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 1px;

    margin-top: 38px;

    overflow: hidden;

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

    border-radius: 15px;

    background:
        var(--team-border);
}


.tml-team-contact-grid > a {
    min-height: 92px;

    display: grid;

    grid-template-columns:
        41px 1fr;

    gap: 12px;

    align-items: center;

    padding: 18px;

    color: var(--team-navy);

    background: #fff;

    text-decoration: none;
}


.tml-team-contact-icon {
    width: 39px;
    height: 39px;

    display: flex;

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

    border-radius: 11px;

    color: var(--team-gold-dark);

    background:
        rgba(199, 154, 72, .1);
}


.tml-team-contact-icon svg {
    width: 19px;
    height: 19px;

    fill: none;

    stroke: currentColor;

    stroke-width: 1.6;

    stroke-linecap: round;

    stroke-linejoin: round;
}


.tml-team-contact-grid small {
    display: block;

    color: var(--team-muted);

    font-size: 8px;

    font-weight: 800;

    text-transform: uppercase;
}


.tml-team-contact-grid strong {
    display: block;

    margin-top: 4px;

    color: var(--team-navy);

    font-size: 11px;

    font-weight: 600;

    overflow-wrap: anywhere;
}


.tml-team-consult-button {
    width: fit-content;

    display: inline-flex;

    align-items: center;

    gap: 17px;

    margin-top: 24px;

    padding:
        14px 19px;

    border-radius: 7px;

    color: #fff;

    background: var(--team-navy);

    font-size: 11px;

    font-weight: 700;

    text-decoration: none;

    transition:
        transform .25s ease,
        background .25s ease;
}


.tml-team-consult-button:hover {
    transform:
        translateY(-2px);

    background: var(--team-gold-dark);
}


/* =========================================================
   REVEAL
========================================================= */

.tml-team-reveal {
    opacity: 0;

    transform:
        translateY(18px);

    transition:
        opacity .65s ease,
        transform .65s
        cubic-bezier(.2, .7, .2, 1);
}


.tml-team-reveal.is-visible {
    opacity: 1;

    transform: none;
}


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

@media (max-width: 1050px) {

    .tml-team-senior-layout {
        grid-template-columns:
            .8fr 190px 1.2fr;

        gap: 34px;
    }


    .tml-team-senior-image,
    .tml-team-senior-image img {
        width: 190px;
    }


    .tml-team-associate-grid,
    .tml-team-support-grid {
        grid-template-columns: 1fr;
    }


    .tml-team-support-card {
        grid-template-columns:
            190px 1fr;
    }


    .tml-team-support-image {
        width: 190px;
    }

}


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

@media (max-width: 850px) {

    .tml-team-hero {
        height: 300px;

        min-height: 300px;
    }


    .tml-team-intro-grid,
    .tml-team-cta-heading {
        grid-template-columns: 1fr;

        gap: 22px;
    }


    .tml-team-founder-card {
        grid-template-columns:
            260px 1fr;

        gap: 35px;
    }


    .tml-team-founder-image {
        width: 260px;
    }


    .tml-team-senior-layout {
        grid-template-columns:
            180px 1fr;

        gap: 28px;
    }


    .tml-team-senior-heading {
        grid-column:
            1 / -1;
    }


    .tml-team-senior-image,
    .tml-team-senior-image img {
        width: 180px;
    }


    .tml-team-contact-grid {
        grid-template-columns: 1fr;
    }

}


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

@media (max-width: 650px) {

    .tml-team-hero {
        height: 260px;

        min-height: 260px;

        background-position:
            center top;
    }


    .tml-team-hero-overlay {
        background:
            linear-gradient(
                180deg,
                rgba(250, 248, 243, .04) 0%,
                rgba(250, 248, 243, .2) 45%,
                rgba(250, 248, 243, .86) 100%
            );
    }


    .tml-team-hero-inner {
        padding-bottom: 24px;
    }


    .tml-team-hero-copy {
        max-width: 420px;
    }


    .tml-team-hero-copy .tml-team-overline {
        display: none;
    }


    .tml-team-hero-copy h1 {
        font-size: 31px;

        max-width: 400px;
    }


    .tml-team-hero-copy p {
        margin-top: 7px;

        font-size: 11px;
    }


    .tml-team-stats-grid {
        grid-template-columns: 1fr;
    }


    .tml-team-stats-grid > div {
        min-height: 56px;

        justify-content: space-between;

        padding:
            10px 14px;

        border-right: 0;

        border-bottom:
            1px solid
            rgba(255, 255, 255, .1);
    }


    .tml-team-intro,
    .tml-team-associates,
    .tml-team-support,
    .tml-team-testimonial,
    .tml-team-cta {
        padding:
            72px 0;
    }


    .tml-team-founder {
        padding:
            15px 0 72px;
    }


    .tml-team-intro h2,
    .tml-team-section-head h2,
    .tml-team-cta-heading h2 {
        font-size: 36px;
    }


    .tml-team-founder-card {
        grid-template-columns: 1fr;

        padding: 17px;
    }


    .tml-team-founder-image {
        width: 100%;

        max-width: 300px;
    }


    .tml-team-founder-content {
        padding:
            5px 3px 8px;
    }


    .tml-team-founder-content h2 {
        font-size: 35px;
    }


    .tml-team-senior {
        padding:
            72px 0;
    }


    .tml-team-senior-layout {
        grid-template-columns: 1fr;
    }


    .tml-team-senior-heading {
        grid-column: auto;
    }


    .tml-team-senior-heading h2 {
        font-size: 38px;
    }


    .tml-team-senior-image,
    .tml-team-senior-image img {
        width: 185px;
    }


    .tml-team-associate-top {
        grid-template-columns:
            112px 1fr;

        gap: 17px;
    }


    .tml-team-associate-image {
        width: 112px;
    }


    .tml-team-associate-name h3 {
        font-size: 21px;
    }


    .tml-team-support-card {
        grid-template-columns: 1fr;
    }


    .tml-team-support-image {
        width: 170px;
    }


    .tml-team-practice {
        padding:
            70px 0;
    }


    .tml-team-practice-head h2 {
        font-size: 35px;
    }


    .tml-team-testimonial-card {
        padding:
            38px 25px;
    }

}


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

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

    .tml-team-reveal {
        opacity: 1;

        transform: none;

        transition: none;
    }

}