:root {
    --tm-green: #80b32c;
    --tm-green-dark: #6a9624;
    --tm-amber: #d97706;
    --tm-navy: #0a2540;
    --tm-ink: #3e4a56;
    --tm-muted: #687786;
    --tm-paper: #f6f7f2;
    --tm-line: rgba(10, 37, 64, 0.11);
    --tm-outfit: "Outfit", "Inter", sans-serif;
    --tm-inter: "Inter", sans-serif;
    --tm-hand: "Caveat", cursive;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.team-modern-body {
    margin: 0;
    overflow-x: hidden;
    background: #fff;
    color: var(--tm-ink);
    font-family: var(--tm-inter);
    -webkit-font-smoothing: antialiased;
}

.team-modern-body img {
    display: block;
    max-width: 100%;
}

.team-modern-body a {
    color: inherit;
    text-decoration: none;
}

.tm-shell {
    width: min(1240px, calc(100% - 48px));
    margin-inline: auto;
}

.tm-skip-link {
    position: fixed;
    z-index: 999;
    top: 10px;
    left: 10px;
    padding: 12px 18px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 10px 35px rgba(10, 37, 64, 0.18);
    transform: translateY(-160%);
}

.tm-skip-link:focus {
    transform: translateY(0);
}

.tm-nav {
    position: sticky;
    z-index: 100;
    top: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.68);
    background: rgba(248, 249, 245, 0.86);
    backdrop-filter: blur(18px);
}

.tm-nav-inner {
    display: flex;
    min-height: 82px;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.tm-brand {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 13px;
}

.tm-brand img {
    width: 138px;
    height: auto;
}

.tm-brand span {
    padding-left: 13px;
    border-left: 1px solid rgba(10, 37, 64, 0.14);
    color: #657483;
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.3;
}

.tm-nav-links {
    display: flex;
    align-items: center;
    gap: clamp(20px, 2.5vw, 38px);
    margin-left: auto;
}

.tm-nav-links a {
    position: relative;
    color: #33475b;
    font-size: 0.88rem;
    font-weight: 700;
}

.tm-nav-links a::after {
    position: absolute;
    right: 0;
    bottom: -9px;
    left: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--tm-green);
    content: "";
    transform: scaleX(0);
    transition: transform 180ms ease;
}

.tm-nav-links a:hover::after,
.tm-nav-links a[aria-current="page"]::after {
    transform: scaleX(1);
}

.tm-nav-cta,
.tm-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 999px;
    font-size: 0.9rem;
    font-weight: 800;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.tm-nav-cta {
    padding: 13px 19px;
    background: var(--tm-navy);
    color: #fff !important;
}

.tm-nav-cta svg,
.tm-button svg {
    width: 18px;
    height: 18px;
}

.tm-nav-cta:hover,
.tm-button:hover {
    transform: translateY(-2px);
}

.tm-nav-cta:hover {
    box-shadow: 0 13px 30px rgba(10, 37, 64, 0.2);
}

.tm-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(72px, 8vw, 118px) 0 clamp(86px, 9vw, 132px);
    background:
        radial-gradient(circle at 12% 20%, rgba(128, 179, 44, 0.11), transparent 28%),
        radial-gradient(circle at 86% 82%, rgba(217, 119, 6, 0.08), transparent 24%),
        var(--tm-paper);
}

.tm-hero::after {
    position: absolute;
    right: -100px;
    bottom: -140px;
    width: 410px;
    height: 410px;
    border: 1px solid rgba(10, 37, 64, 0.08);
    border-radius: 50%;
    box-shadow: 0 0 0 60px rgba(10, 37, 64, 0.018), 0 0 0 120px rgba(10, 37, 64, 0.012);
    content: "";
}

.tm-hero-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(1px);
    pointer-events: none;
}

.tm-hero-orb--one {
    top: 17%;
    left: -86px;
    width: 172px;
    height: 172px;
    border: 1px solid rgba(128, 179, 44, 0.28);
}

.tm-hero-orb--two {
    top: 24%;
    right: 4%;
    width: 52px;
    height: 52px;
    background: rgba(217, 119, 6, 0.13);
}

.tm-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(520px, 1.1fr);
    align-items: center;
    gap: clamp(46px, 7vw, 96px);
}

.tm-eyebrow {
    display: flex;
    margin: 0 0 22px;
    align-items: center;
    gap: 10px;
    color: var(--tm-green-dark);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.tm-eyebrow > span {
    width: 28px;
    height: 2px;
    background: currentColor;
}

.tm-hero h1,
.tm-section-head h2,
.tm-contact h2 {
    margin: 0;
    color: var(--tm-ink);
    font-family: var(--tm-outfit);
    font-weight: 800;
    letter-spacing: -0.055em;
}

.tm-hero h1 {
    max-width: 660px;
    font-size: clamp(3.5rem, 6.6vw, 6.65rem);
    line-height: 0.91;
}

.tm-hero h1 span,
.tm-section-head h2 span {
    background: linear-gradient(112deg, var(--tm-green) 0%, var(--tm-green) 42%, var(--tm-amber) 96%);
    background-clip: text;
    color: transparent;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.tm-hero-lead {
    max-width: 610px;
    margin: 30px 0 0;
    color: #5f6f7e;
    font-size: clamp(1rem, 1.25vw, 1.15rem);
    line-height: 1.75;
}

.tm-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 34px;
}

.tm-button {
    min-height: 50px;
    padding: 0 23px;
}

.tm-button--primary {
    background: var(--tm-navy);
    box-shadow: 0 15px 34px rgba(10, 37, 64, 0.18);
    color: #fff !important;
}

.tm-button--primary:hover {
    box-shadow: 0 19px 40px rgba(10, 37, 64, 0.25);
}

.tm-button--ghost {
    border: 1px solid var(--tm-line);
    background: rgba(255, 255, 255, 0.58);
    color: var(--tm-ink);
}

.tm-button--ghost:hover {
    border-color: rgba(10, 37, 64, 0.24);
    background: #fff;
}

.tm-hand-note {
    width: max-content;
    margin: 24px 0 0 32px;
    color: var(--tm-amber);
    font-family: var(--tm-hand);
    font-size: 1.55rem;
    font-weight: 700;
    transform: rotate(-2deg);
}

.tm-collage {
    position: relative;
    min-height: 620px;
}

.tm-collage-photo {
    position: absolute;
    overflow: hidden;
    margin: 0;
    border: 7px solid #fff;
    border-radius: 26px;
    background: #eef1ec;
    box-shadow: 0 24px 65px rgba(10, 37, 64, 0.16);
}

.tm-collage-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tm-collage-photo--one {
    z-index: 2;
    top: 76px;
    left: 0;
    width: 54%;
    height: 55%;
    transform: rotate(-4deg);
}

.tm-collage-photo--two {
    z-index: 1;
    top: 0;
    right: 1%;
    width: 47%;
    height: 43%;
    transform: rotate(3.2deg);
}

.tm-collage-photo--three {
    z-index: 3;
    right: 3%;
    bottom: 10px;
    width: 51%;
    height: 49%;
    transform: rotate(-2.3deg);
}

.tm-collage-photo--four {
    z-index: 1;
    bottom: 0;
    left: 7%;
    width: 42%;
    height: 37%;
    transform: rotate(4deg);
}

.tm-collage-sticker {
    position: absolute;
    z-index: 5;
    top: 45%;
    left: 45%;
    display: grid;
    width: 150px;
    height: 150px;
    padding: 19px;
    place-content: center;
    border: 7px solid #fff;
    border-radius: 50%;
    background: var(--tm-green);
    box-shadow: 0 18px 40px rgba(10, 37, 64, 0.2);
    color: #fff;
    text-align: center;
    transform: translate(-50%, -50%) rotate(6deg);
}

.tm-collage-sticker strong {
    font-family: var(--tm-outfit);
    font-size: 2.6rem;
    line-height: 0.8;
}

.tm-collage-sticker span {
    margin-top: 9px;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.35;
    text-transform: uppercase;
}

.tm-values {
    position: relative;
    z-index: 2;
    background: var(--tm-navy);
    color: #fff;
}

.tm-values-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tm-values article {
    display: flex;
    min-height: 190px;
    padding: 46px clamp(24px, 3vw, 44px);
    align-items: flex-start;
    gap: 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.tm-values article:first-child {
    padding-left: 0;
}

.tm-values article:last-child {
    padding-right: 0;
    border-right: 0;
}

.tm-value-number {
    flex: 0 0 auto;
    margin-top: 3px;
    color: var(--tm-green);
    font-family: var(--tm-outfit);
    font-size: 0.75rem;
    font-weight: 800;
}

.tm-values h2 {
    margin: 0 0 10px;
    font-family: var(--tm-outfit);
    font-size: 1.18rem;
    letter-spacing: -0.02em;
}

.tm-values p {
    margin: 0;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.88rem;
    line-height: 1.65;
}

.tm-directory {
    padding: clamp(90px, 10vw, 150px) 0 clamp(100px, 11vw, 160px);
    background:
        radial-gradient(circle at 90% 16%, rgba(128, 179, 44, 0.08), transparent 23%),
        #fff;
}

.tm-section-head {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.6fr);
    align-items: end;
    gap: 70px;
    margin-bottom: 58px;
}

.tm-section-head h2 {
    font-size: clamp(2.65rem, 5vw, 5rem);
    line-height: 0.98;
}

.tm-section-head > p {
    margin: 0 0 4px;
    color: var(--tm-muted);
    font-size: 1rem;
    line-height: 1.75;
}

.tm-team-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 22px;
}

.tm-person {
    position: relative;
    grid-column: span 4;
    overflow: hidden;
    min-width: 0;
    border-radius: 28px;
    background: #e9eee7;
    box-shadow: 0 18px 48px rgba(10, 37, 64, 0.09);
    isolation: isolate;
}

.tm-person--lead {
    grid-column: span 6;
}

.tm-person::after {
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(4, 21, 35, 0.12) 60%, rgba(4, 21, 35, 0.92) 100%);
    content: "";
    pointer-events: none;
}

.tm-person-media {
    aspect-ratio: 4 / 5;
    margin: 0;
}

.tm-person--lead .tm-person-media {
    aspect-ratio: 16 / 11;
}

.tm-person-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 550ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.tm-person:nth-child(5) .tm-person-media img {
    object-position: center 35%;
}

.tm-person:hover .tm-person-media img {
    transform: scale(1.035);
}

.tm-person-number {
    position: absolute;
    z-index: 3;
    top: 18px;
    left: 18px;
    display: grid;
    width: 40px;
    height: 40px;
    place-content: center;
    border: 1px solid rgba(255, 255, 255, 0.58);
    border-radius: 50%;
    background: rgba(10, 37, 64, 0.3);
    backdrop-filter: blur(12px);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
}

.tm-person-copy {
    position: absolute;
    z-index: 3;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 26px 27px 25px;
    color: #fff;
}

.tm-person-copy p {
    margin: 0 0 6px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    line-height: 1.45;
    text-transform: uppercase;
}

.tm-person-copy p span {
    text-transform: none;
}

.tm-person-copy h3 {
    margin: 0;
    font-family: var(--tm-outfit);
    font-size: clamp(1.35rem, 2vw, 1.85rem);
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.tm-contact {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 92% 18%, rgba(128, 179, 44, 0.19), transparent 25%),
        linear-gradient(135deg, #0a2540 0%, #0d2d4b 58%, #123a5c 100%);
    color: #fff;
}

.tm-contact::before {
    position: absolute;
    top: -160px;
    right: -80px;
    width: 420px;
    height: 420px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    box-shadow: 0 0 0 65px rgba(255, 255, 255, 0.02), 0 0 0 130px rgba(255, 255, 255, 0.014);
    content: "";
}

.tm-contact-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(330px, 0.9fr);
    align-items: end;
    gap: 90px;
    padding-top: clamp(86px, 9vw, 130px);
    padding-bottom: clamp(86px, 9vw, 130px);
}

.tm-eyebrow--light {
    color: #a7d153;
}

.tm-contact h2 {
    color: #fff;
    font-size: clamp(2.8rem, 5.5vw, 5.45rem);
    line-height: 0.98;
}

.tm-contact h2 em {
    color: #a7d153;
    font-style: normal;
}

.tm-contact-copy > p {
    max-width: 520px;
    margin: 0 0 28px;
    color: rgba(255, 255, 255, 0.68);
    line-height: 1.75;
}

.tm-contact-copy > a {
    display: flex;
    width: 100%;
    padding: 19px 0;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    color: #fff;
    font-family: var(--tm-outfit);
    font-size: clamp(1.2rem, 2vw, 1.6rem);
    font-weight: 700;
}

.tm-contact-copy > a svg {
    flex: 0 0 auto;
    width: 25px;
    height: 25px;
    color: #a7d153;
    transition: transform 180ms ease;
}

.tm-contact-copy > a:hover svg {
    transform: translateX(5px);
}

.tm-contact-copy .tm-contact-meta {
    margin: 17px 0 0;
    font-size: 0.78rem;
}

.tm-footer {
    padding: 70px 0 28px;
    background: #071b2e;
    color: #fff;
}

.tm-footer-grid {
    display: grid;
    grid-template-columns: 1.7fr 0.7fr 0.7fr 1fr;
    gap: clamp(35px, 5vw, 75px);
    padding-bottom: 60px;
}

.tm-footer-brand img {
    width: 150px;
    max-height: 55px;
    object-fit: contain;
    object-position: left center;
}

.tm-footer-brand p {
    max-width: 340px;
    margin: 20px 0 0;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.85rem;
    line-height: 1.65;
}

.tm-footer nav,
.tm-footer address {
    display: flex;
    flex-direction: column;
    gap: 11px;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.82rem;
    font-style: normal;
    line-height: 1.6;
}

.tm-footer nav strong,
.tm-footer address strong {
    margin-bottom: 4px;
    color: #fff;
    font-family: var(--tm-outfit);
    font-size: 0.86rem;
}

.tm-footer nav a:hover {
    color: #a7d153;
}

.tm-footer-bottom {
    display: flex;
    padding-top: 24px;
    justify-content: space-between;
    gap: 25px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.4);
    font-size: 0.72rem;
}

.tm-footer-bottom p {
    margin: 0;
}

@media (max-width: 1050px) {
    .tm-nav-links {
        display: none;
    }

    .tm-hero-grid {
        grid-template-columns: minmax(0, 0.88fr) minmax(440px, 1.12fr);
        gap: 34px;
    }

    .tm-hero h1 {
        font-size: clamp(3.15rem, 6.7vw, 5rem);
    }

    .tm-collage {
        min-height: 540px;
    }

    .tm-section-head {
        gap: 42px;
    }

    .tm-person {
        grid-column: span 6;
    }

    .tm-person--lead .tm-person-media,
    .tm-person-media {
        aspect-ratio: 4 / 4.35;
    }

    .tm-footer-grid {
        grid-template-columns: 1.5fr repeat(3, 1fr);
        gap: 34px;
    }
}

@media (max-width: 820px) {
    .tm-shell {
        width: min(100% - 36px, 680px);
    }

    .tm-nav-inner {
        min-height: 70px;
    }

    .tm-brand img {
        width: 120px;
    }

    .tm-brand span {
        display: none;
    }

    .tm-nav-cta {
        padding: 11px 16px;
        font-size: 0.8rem;
    }

    .tm-hero {
        padding-top: 68px;
    }

    .tm-hero-grid {
        grid-template-columns: 1fr;
    }

    .tm-hero-copy {
        max-width: 650px;
    }

    .tm-hero h1 {
        font-size: clamp(3.5rem, 13vw, 5.8rem);
    }

    .tm-collage {
        width: min(100%, 610px);
        min-height: 600px;
        margin: 18px auto 0;
    }

    .tm-values-grid {
        grid-template-columns: 1fr;
    }

    .tm-values article,
    .tm-values article:first-child,
    .tm-values article:last-child {
        min-height: 0;
        padding: 30px 0;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    }

    .tm-values article:last-child {
        border-bottom: 0;
    }

    .tm-section-head,
    .tm-contact-inner {
        grid-template-columns: 1fr;
    }

    .tm-section-head {
        gap: 24px;
    }

    .tm-section-head > p {
        max-width: 560px;
    }

    .tm-contact-inner {
        gap: 44px;
    }

    .tm-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tm-footer-brand {
        grid-column: 1 / -1;
    }
}

@media (max-width: 560px) {
    .tm-shell {
        width: calc(100% - 28px);
    }

    .tm-nav-cta svg {
        display: none;
    }

    .tm-hero {
        padding-top: 52px;
        padding-bottom: 76px;
    }

    .tm-hero h1 {
        font-size: clamp(3.2rem, 16vw, 4.8rem);
    }

    .tm-hero-lead {
        margin-top: 24px;
        font-size: 0.98rem;
        line-height: 1.65;
    }

    .tm-hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .tm-button {
        width: 100%;
    }

    .tm-hand-note {
        margin-left: 16px;
    }

    .tm-collage {
        min-height: 450px;
    }

    .tm-collage-photo {
        border-width: 5px;
        border-radius: 18px;
    }

    .tm-collage-photo--one {
        top: 58px;
        width: 55%;
        height: 55%;
    }

    .tm-collage-photo--two {
        width: 48%;
        height: 42%;
    }

    .tm-collage-photo--three {
        width: 53%;
        height: 48%;
    }

    .tm-collage-photo--four {
        width: 44%;
        height: 36%;
    }

    .tm-collage-sticker {
        width: 112px;
        height: 112px;
        padding: 12px;
        border-width: 5px;
    }

    .tm-collage-sticker strong {
        font-size: 2rem;
    }

    .tm-collage-sticker span {
        margin-top: 6px;
        font-size: 0.55rem;
    }

    .tm-directory {
        padding: 80px 0 92px;
    }

    .tm-section-head {
        margin-bottom: 38px;
    }

    .tm-section-head h2 {
        font-size: clamp(2.45rem, 12vw, 3.7rem);
    }

    .tm-team-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .tm-person,
    .tm-person--lead {
        grid-column: auto;
    }

    .tm-person--lead .tm-person-media,
    .tm-person-media {
        aspect-ratio: 4 / 4.65;
    }

    .tm-person-copy {
        padding: 23px 21px 21px;
    }

    .tm-contact-copy > a {
        overflow-wrap: anywhere;
        font-size: 1.08rem;
    }

    .tm-footer-grid {
        grid-template-columns: 1fr 1fr;
    }

    .tm-footer address {
        grid-column: 1 / -1;
    }

    .tm-footer-bottom {
        align-items: flex-start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    .tm-person-media img,
    .tm-nav-links a::after,
    .tm-nav-cta,
    .tm-button,
    .tm-contact-copy > a svg {
        transition: none;
    }
}
