.team-page {
    --team-ink: #10243a;
    --team-copy: #42566b;
    --team-muted: #72849a;
    --team-line: #d9e3ec;
    --team-soft: #f4f7fa;
    --team-rainbow: linear-gradient(90deg,#06b6d4 0%,#3b82f6 20%,#8b5cf6 42%,#ec4899 63%,#fb7185 76%,#f59e0b 100%);
    color: var(--team-ink);
    background: #f7f9fb;
    overflow: hidden;
}

.team-page *, .team-page *::before, .team-page *::after { box-sizing: border-box; }
.team-page img { display: block; max-width: 100%; }
.team-page h1, .team-page h2, .team-page h3, .team-page p { margin-top: 0; }
.team-shell { width: min(1240px, calc(100% - 40px)); margin: 0 auto; }
.team-eyebrow { margin-bottom: 12px; font-size: 12px; font-weight: 800; letter-spacing: .16em; color: #55708a; }
.team-rainbow {
    background: var(--team-rainbow);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.team-hero { padding: 62px 0 70px; background: radial-gradient(circle at 14% 18%,rgba(6,182,212,.09),transparent 28%), radial-gradient(circle at 90% 5%,rgba(236,72,153,.08),transparent 25%), #f7f9fb; }
.team-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(420px, .9fr); gap: 54px; align-items: center; }
.team-hero-copy h1 { max-width: 760px; margin-bottom: 22px; font-size: clamp(46px, 6vw, 78px); line-height: .98; letter-spacing: -.045em; }
.team-lead { max-width: 720px; margin-bottom: 28px; color: var(--team-copy); font-size: clamp(18px, 2vw, 22px); line-height: 1.65; }
.team-hero-actions, .team-leadership-actions, .team-cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.team-hero-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 26px; }
.team-hero-facts span { padding: 15px 17px; border: 1px solid var(--team-line); border-radius: 16px; background: rgba(255,255,255,.8); color: var(--team-copy); font-size: 13px; line-height: 1.4; }
.team-hero-facts strong { display: block; margin-bottom: 3px; color: var(--team-ink); font-size: 14px; }
.team-hero-media { position: relative; min-height: 560px; margin: 0; border-radius: 34px; overflow: hidden; box-shadow: 0 28px 70px rgba(16,36,58,.14); background: #dfe7ed; }
.team-hero-media::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg,transparent 52%,rgba(10,28,48,.64)); pointer-events: none; }
.team-hero-media img { width: 100%; height: 100%; min-height: 560px; object-fit: cover; object-position: center; }
.team-hero-media figcaption { position: absolute; z-index: 2; left: 24px; right: 24px; bottom: 22px; display: flex; justify-content: space-between; gap: 18px; align-items: end; color: #fff; }
.team-hero-media figcaption strong { font-size: 20px; }
.team-hero-media figcaption span { font-size: 13px; opacity: .9; text-align: right; }

.team-roles, .team-directory, .team-faq { padding: 82px 0; }
.team-section-heading { max-width: 780px; margin-bottom: 34px; }
.team-section-heading h2 { margin-bottom: 14px; font-size: clamp(34px, 4.2vw, 54px); line-height: 1.05; letter-spacing: -.035em; }
.team-section-heading > p:last-child { color: var(--team-copy); font-size: 17px; line-height: 1.7; }
.team-role-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 18px; }
.team-role-card { position: relative; min-height: 270px; padding: 26px; border: 1px solid var(--team-line); border-radius: 22px; background: #fff; box-shadow: 0 12px 34px rgba(16,36,58,.06); overflow: hidden; }
.team-role-card::before, .team-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; background: var(--team-rainbow); }
.team-role-icon { width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: 24px; border-radius: 16px; background: #f7fafc; box-shadow: inset 0 0 0 1px #e1e8ef; }
.team-role-icon svg { width: 30px; height: 30px; stroke: #0f6f94; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.team-role-kicker { margin-bottom: 8px; color: #687e93; font-size: 11px; font-weight: 800; letter-spacing: .13em; }
.team-role-card h3 { margin-bottom: 10px; font-size: 21px; line-height: 1.2; }
.team-role-card p:last-child { margin-bottom: 0; color: var(--team-copy); line-height: 1.65; }

.team-leadership { padding: 82px 0; background: #eef3f7; }
.team-leadership-grid { display: grid; grid-template-columns: 360px minmax(0,1fr); gap: 54px; align-items: center; }
.team-leadership-photo { position: relative; overflow: hidden; border-radius: 28px; background: #dfe7ed; box-shadow: 0 24px 55px rgba(16,36,58,.12); }
.team-leadership-photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: center top; }
.team-leadership-photo span { position: absolute; left: 18px; bottom: 18px; padding: 9px 13px; border-radius: 999px; color: #fff; background: rgba(16,36,58,.82); font-size: 12px; font-weight: 800; }
.team-leadership-copy h2 { margin-bottom: 18px; font-size: clamp(38px, 5vw, 60px); line-height: 1.02; letter-spacing: -.04em; }
.team-leadership-intro { max-width: 780px; color: var(--team-copy); font-size: 18px; line-height: 1.75; }
.team-leadership-points { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 28px 0; }
.team-leadership-points div { padding: 18px; border: 1px solid #d4e0e8; border-radius: 18px; background: rgba(255,255,255,.75); }
.team-leadership-points strong { display: block; margin-bottom: 4px; font-size: 18px; }
.team-leadership-points span { display: block; color: var(--team-copy); font-size: 13px; line-height: 1.45; }

.team-directory { background: #fff; }
.team-filters { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 28px; }
.team-filter { appearance: none; border: 1px solid #cbd8e3; border-radius: 999px; padding: 10px 15px; background: #fff; color: #294159; font: inherit; font-size: 13px; font-weight: 750; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.team-filter:hover { transform: translateY(-1px); border-color: #8fb5cd; box-shadow: 0 8px 20px rgba(16,36,58,.08); }
.team-filter.is-active { color: #fff; border-color: transparent; background: linear-gradient(90deg,#0ea5c6,#4f7df3 35%,#9b5df0 65%,#ed5fa1); }
.team-filter:focus-visible { outline: 3px solid rgba(14,165,198,.25); outline-offset: 2px; }
.team-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 20px; align-items: start; }
.team-card { position: relative; overflow: hidden; border: 1px solid var(--team-line); border-radius: 22px; background: #fff; box-shadow: 0 12px 30px rgba(16,36,58,.065); transition: transform .24s ease, box-shadow .24s ease; }
.team-card:hover { transform: translateY(-4px); box-shadow: 0 20px 42px rgba(16,36,58,.11); }
.team-card[hidden] { display: none !important; }
.team-card-photo { position: relative; overflow: hidden; background: #e8edf2; }
.team-card-photo img { width: 100%; aspect-ratio: 4/5; object-fit: cover; object-position: center top; transition: transform .35s ease; }
.team-card:hover .team-card-photo img { transform: scale(1.025); }
.team-card-badge { position: absolute; left: 14px; bottom: 14px; padding: 8px 11px; border-radius: 999px; color: #fff; background: rgba(16,36,58,.84); font-size: 11px; font-weight: 800; }
.team-card-body { padding: 20px; }
.team-card-location { margin-bottom: 7px; color: #157194; font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.team-card h3 { margin-bottom: 4px; font-size: 22px; line-height: 1.15; }
.team-card-role { margin-bottom: 13px; color: #6a7e91; font-size: 13px; font-weight: 700; line-height: 1.45; }
.team-card-body > p:not(.team-card-location):not(.team-card-role) { color: var(--team-copy); font-size: 14px; line-height: 1.65; }
.team-profile-details { margin-top: 16px; border-top: 1px solid #e3eaf0; padding-top: 12px; }
.team-profile-details summary { list-style: none; cursor: pointer; color: #163b5a; font-weight: 800; font-size: 13px; }
.team-profile-details summary::-webkit-details-marker { display: none; }
.team-profile-details summary::after { content: "+"; float: right; font-size: 18px; line-height: 1; }
.team-profile-details[open] summary::after { content: "−"; }
.team-profile-details div { padding-top: 12px; color: var(--team-copy); font-size: 13px; line-height: 1.6; }
.team-profile-details ul { margin: 0 0 10px 18px; padding: 0; }
.team-profile-details p { margin-bottom: 0; }
.team-filter-empty { padding: 26px; border: 1px dashed #cbd8e3; border-radius: 18px; text-align: center; color: var(--team-copy); }

.team-pathway { padding: 82px 0; background: linear-gradient(180deg,#eff4f8,#f7f9fb); }
.team-pathway-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.team-pathway-list li { display: grid; grid-template-columns: 72px minmax(0,1fr); gap: 22px; align-items: start; padding: 22px 24px; border: 1px solid #d6e1e9; border-radius: 20px; background: rgba(255,255,255,.86); }
.team-pathway-list > li > span { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 18px; color: #fff; background: linear-gradient(135deg,#06aeca,#6178ed 50%,#ca58d0); font-weight: 900; }
.team-pathway-list h3 { margin: 2px 0 5px; font-size: 20px; }
.team-pathway-list p { margin-bottom: 0; color: var(--team-copy); line-height: 1.65; }

.team-faq-grid { display: grid; grid-template-columns: .75fr 1.25fr; gap: 48px; align-items: start; }
.team-faq-grid .team-section-heading { position: sticky; top: 30px; margin-bottom: 0; }
.team-faq-list { display: grid; gap: 10px; }
.team-faq-list details { border: 1px solid var(--team-line); border-radius: 18px; background: #fff; overflow: hidden; }
.team-faq-list summary { position: relative; list-style: none; cursor: pointer; padding: 19px 54px 19px 20px; font-weight: 800; line-height: 1.35; }
.team-faq-list summary::-webkit-details-marker { display: none; }
.team-faq-list summary::after { content: "+"; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-size: 21px; color: #2a7392; }
.team-faq-list details[open] summary::after { content: "−"; }
.team-faq-list p { padding: 0 20px 20px; margin: 0; color: var(--team-copy); line-height: 1.7; }

.team-cta { padding: 0 0 88px; }
.team-cta-card { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 34px; align-items: center; padding: 38px; border: 1px solid #d6e2ea; border-radius: 28px; background: #fff; box-shadow: 0 18px 48px rgba(16,36,58,.08); overflow: hidden; }
.team-cta-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--team-rainbow); }
.team-cta-card h2 { margin-bottom: 10px; font-size: clamp(32px,4vw,48px); letter-spacing: -.035em; }
.team-cta-card p:last-child { max-width: 760px; margin-bottom: 0; color: var(--team-copy); line-height: 1.7; }
.team-cta-actions { justify-content: flex-end; max-width: 360px; }

[data-reveal] { opacity: 1; transform: none; }
.js .team-page [data-reveal] { opacity: 0; transform: translateY(32px); transition: opacity .65s ease, transform .65s cubic-bezier(.2,.75,.2,1); }
.js .team-page [data-reveal].is-visible { opacity: 1; transform: none; }

@media (max-width: 1100px) {
    .team-hero-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
    .team-role-grid, .team-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .team-leadership-grid { grid-template-columns: 300px minmax(0,1fr); gap: 38px; }
    .team-cta-card { grid-template-columns: 1fr; }
    .team-cta-actions { max-width: none; justify-content: flex-start; }
}

@media (max-width: 820px) {
    .team-shell { width: min(100% - 28px, 1240px); }
    .team-hero { padding-top: 34px; }
    .team-hero-grid, .team-leadership-grid, .team-faq-grid { grid-template-columns: 1fr; }
    .team-hero-media { min-height: 420px; order: -1; }
    .team-hero-media img { min-height: 420px; }
    .team-hero-copy h1 { font-size: clamp(42px,12vw,64px); }
    .team-leadership-photo { max-width: 420px; }
    .team-faq-grid .team-section-heading { position: static; }
}

@media (max-width: 580px) {
    .team-roles, .team-directory, .team-faq, .team-leadership, .team-pathway { padding: 62px 0; }
    .team-hero-facts, .team-role-grid, .team-grid, .team-leadership-points { grid-template-columns: 1fr; }
    .team-hero-actions, .team-leadership-actions, .team-cta-actions { flex-direction: column; align-items: stretch; }
    .team-hero-actions .button, .team-leadership-actions .button, .team-cta-actions .button { justify-content: center; text-align: center; }
    .team-hero-media { min-height: 340px; border-radius: 24px; }
    .team-hero-media img { min-height: 340px; }
    .team-hero-media figcaption { display: block; }
    .team-hero-media figcaption span { display: block; margin-top: 4px; text-align: left; }
    .team-pathway-list li { grid-template-columns: 54px 1fr; gap: 14px; padding: 18px; }
    .team-pathway-list > li > span { width: 48px; height: 48px; border-radius: 15px; font-size: 13px; }
    .team-cta-card { padding: 28px 22px; }
}

@media (prefers-reduced-motion: reduce) {
    .js .team-page [data-reveal] { opacity: 1; transform: none; transition: none; }
    .team-card, .team-card-photo img, .team-filter { transition: none; }
}
