/* /team page */
.tm-hero { position: relative; overflow: hidden; padding: 8.5rem 0 4.5rem; }
.tm-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 3.5rem; align-items: center; }
.tm-hero h1 { font-size: clamp(2.4rem, 5vw, 3.75rem); line-height: 1.08; font-weight: 600; letter-spacing: -.02em; color: #101828; margin: .75rem 0 1.25rem; }
.tm-hero h1 em { font-style: normal; color: #0096EE; }
.tm-hero p.tm-lead { font-size: 1.15rem; line-height: 1.65; color: #475467; max-width: 34rem; margin: 0 0 2rem; }
.tm-hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; }

/* Photo cluster in the hero */
.tm-cluster { position: relative; height: 27rem; }
.tm-cluster::before { content: ""; position: absolute; inset: 8% 6% 4% 10%; border-radius: 2rem; background: linear-gradient(135deg, #0078BE 0%, #0096EE 55%, #4DBFF8 100%); transform: rotate(-4deg); }
.tm-cluster::after { content: ""; position: absolute; inset: 8% 6% 4% 10%; border-radius: 2rem; background-image: radial-gradient(rgba(255, 255, 255, .3) 1.2px, transparent 1.2px); background-size: 16px 16px; transform: rotate(-4deg); }
.tm-face { position: absolute; z-index: 1; margin: 0; border-radius: 1.5rem; overflow: hidden; background: #E6F5FE; border: 5px solid #fff; box-shadow: 0 24px 50px -20px rgba(16, 24, 40, .55); }
.tm-face img { display: block; width: 100%; height: 100%; object-fit: cover; }
.tm-face figcaption { position: absolute; left: .6rem; bottom: .6rem; right: .6rem; padding: .45rem .7rem; border-radius: .7rem; background: rgba(255, 255, 255, .94); font-size: .78rem; line-height: 1.25; color: #475467; }
.tm-face figcaption b { display: block; font-size: .9rem; color: #101828; }
.tm-face--1 { width: 46%; height: 62%; left: 27%; top: 0; z-index: 3; }
.tm-face--2 { width: 40%; height: 52%; left: 0; bottom: 2%; z-index: 2; }
.tm-face--3 { width: 40%; height: 52%; right: 0; bottom: 6%; z-index: 2; }

/* Numbers band */
.tm-stats { background: linear-gradient(120deg, #005A8F 0%, #0078BE 45%, #0096EE 100%); color: #fff; padding: 3rem 0; }
.tm-stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.tm-stat b { display: block; font-size: clamp(2.25rem, 4.5vw, 3.25rem); line-height: 1; font-weight: 600; letter-spacing: -.02em; }
.tm-stat span { display: block; margin-top: .6rem; font-size: .95rem; color: rgba(255, 255, 255, .88); }
.tm-stat + .tm-stat { border-left: 1px solid rgba(255, 255, 255, .22); }

/* Section headings */
.tm-head { max-width: 42rem; margin: 0 auto 3.5rem; text-align: center; }
.tm-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); line-height: 1.15; font-weight: 600; letter-spacing: -.02em; color: #101828; margin: .6rem 0 .9rem; }
.tm-head p { font-size: 1.1rem; line-height: 1.6; color: #475467; margin: 0; }

/* Leadership profiles: photo on one side, details on the other, alternating */
.tm-people { display: grid; gap: 2.25rem; max-width: 1040px; margin: 0 auto; }
.tm-person { display: grid; grid-template-columns: 20rem 1fr; background: #fff; border: 1px solid #E4E9F0; border-radius: 1.5rem; overflow: hidden; box-shadow: 0 18px 45px -28px rgba(16, 24, 40, .35); transition: transform .25s ease, box-shadow .25s ease; }
.tm-person:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(0, 120, 190, .5); }
.tm-person:nth-child(even) { grid-template-columns: 1fr 20rem; }
.tm-person:nth-child(even) .tm-pic { order: 2; }
.tm-pic { position: relative; min-height: 20rem; background: linear-gradient(135deg, #0078BE, #4DBFF8); display: flex; align-items: center; justify-content: center; font-size: 4.5rem; font-weight: 600; color: #fff; }
.tm-pic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tm-num { position: absolute; top: 1rem; left: 1rem; z-index: 1; padding: .3rem .7rem; border-radius: 99px; background: rgba(16, 24, 40, .55); color: #fff; font-size: .75rem; font-weight: 600; letter-spacing: .06em; }
.tm-info { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding: 2.5rem 2.75rem; }
.tm-role { display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .9rem; border-radius: 99px; background: #E6F5FE; color: #0078BE; font-size: .82rem; font-weight: 600; }
.tm-role::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: #0096EE; }
.tm-info h3 { font-size: 2rem; line-height: 1.15; font-weight: 600; letter-spacing: -.01em; color: #101828; margin: 1rem 0 .9rem; }
.tm-info p { font-size: 1.02rem; line-height: 1.7; color: #475467; margin: 0; }
.tm-focus { width: 100%; margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid #E4E9F0; }
.tm-focus > span { display: block; margin-bottom: .6rem; font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #667085; }
.tm-focus ul { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; padding: 0; list-style: none; }
.tm-focus li { padding: .35rem .85rem; border: 1px solid #D0D5DD; border-radius: .5rem; font-size: .85rem; font-weight: 500; color: #344054; }
.tm-in { display: inline-flex; align-items: center; gap: .5rem; margin-top: 1.5rem; padding: .6rem 1.1rem; border-radius: .65rem; background: #0A66C2; color: #fff; font-size: .88rem; font-weight: 600; transition: background .15s; }
.tm-in:hover { background: #084d93; color: #fff; }
.tm-in svg { width: 1rem; height: 1rem; }

/* How the team is organised */
.tm-groups { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.tm-group { padding: 1.75rem 1.5rem; background: #fff; border: 1px solid #E4E9F0; border-radius: 1.1rem; transition: border-color .2s, box-shadow .2s; }
.tm-group:hover { border-color: #80D1FA; box-shadow: 0 16px 36px -24px rgba(0, 120, 190, .5); }
.tm-group-ico { width: 3rem; height: 3rem; border-radius: .85rem; display: flex; align-items: center; justify-content: center; margin-bottom: 1.1rem; background: linear-gradient(135deg, #0078BE, #0096EE); color: #fff; }
.tm-group-ico svg { width: 1.4rem; height: 1.4rem; }
.tm-group h3 { font-size: 1.12rem; font-weight: 600; color: #101828; margin: 0 0 .5rem; }
.tm-group p { font-size: .95rem; line-height: 1.6; color: #475467; margin: 0; }

/* How we work */
.tm-ways { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.25rem 2.5rem; max-width: 1000px; margin: 0 auto; counter-reset: way; }
.tm-way { position: relative; padding: 1.5rem 1.5rem 1.5rem 5rem; background: #fff; border-radius: 1.1rem; border: 1px solid #E4E9F0; counter-increment: way; }
.tm-way::before { content: "0" counter(way); position: absolute; left: 1.4rem; top: 1.35rem; font-size: 1.9rem; line-height: 1; font-weight: 600; color: #80D1FA; }
.tm-way h3 { font-size: 1.1rem; font-weight: 600; color: #101828; margin: 0 0 .4rem; }
.tm-way p { font-size: .95rem; line-height: 1.6; color: #475467; margin: 0; }

/* Join / meet */
.tm-join { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.tm-join a { display: block; padding: 1.75rem; border: 1px solid #E4E9F0; border-radius: 1.1rem; background: #fff; transition: transform .2s, box-shadow .2s, border-color .2s; }
.tm-join a:hover { transform: translateY(-3px); border-color: #80D1FA; box-shadow: 0 16px 36px -24px rgba(0, 120, 190, .5); }
.tm-join h3 { font-size: 1.15rem; font-weight: 600; color: #101828; margin: 0 0 .4rem; }
.tm-join p { font-size: .95rem; line-height: 1.55; color: #475467; margin: 0 0 .9rem; }
.tm-join span { font-size: .9rem; font-weight: 600; color: #0078BE; }

@media (max-width: 1020px) {
    .tm-hero-grid { grid-template-columns: 1fr; gap: 3rem; }
    .tm-cluster { height: 24rem; max-width: 30rem; width: 100%; margin: 0 auto; }
    .tm-groups { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
    .tm-hero { padding: 7rem 0 3rem; }
    .tm-cluster { height: 20rem; }
    .tm-face figcaption { font-size: .68rem; padding: .35rem .5rem; }
    .tm-face figcaption b { font-size: .76rem; }
    .tm-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem 1rem; }
    .tm-stat + .tm-stat { border-left: 0; }
    .tm-person, .tm-person:nth-child(even) { grid-template-columns: 1fr; }
    .tm-person:nth-child(even) .tm-pic { order: 0; }
    .tm-pic { min-height: 0; aspect-ratio: 1 / 1; }
    .tm-info { padding: 1.75rem 1.5rem; }
    .tm-info h3 { font-size: 1.6rem; }
    .tm-ways, .tm-join { grid-template-columns: 1fr; }
}
@media (max-width: 520px) { .tm-groups { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .tm-person, .tm-join a { transition: none; } }
