/* ============================================================
   Our Team — page layer. Loaded after what-we-do.css; body is
   "home wwd tm", so header, molecule, closing band and dark mode
   come from the What We Do layer. Only team layout lives here.
   ============================================================ */

.tm .leadership, .tm .advisors { padding: var(--section-y) 0; border-bottom: 1px solid var(--border); }
.tm .leadership h2, .tm .advisors h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.1; margin-bottom: clamp(40px, 5.5vw, 64px); max-width: 24ch; }
.tm .page-header h1 { max-width: 15ch; }

/* ── leadership: portrait beside the biography ── */
.tm .lead {
  display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(28px, 5vw, 80px);
  align-items: start; padding: clamp(32px, 4vw, 56px) 0; border-top: 1px solid var(--border);
}
.tm .lead-photo { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: var(--mist); }
.tm .lead-photo::after { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 100%; background: var(--alpine); }
.tm .lead-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; display: block; transition: transform .8s var(--ease); }
.tm .lead:hover .lead-photo img { transform: scale(1.03); }
.tm .lead-body { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.tm .lead-role, .tm .adv-role { margin: 0; font-size: var(--fs-label); letter-spacing: .24em; text-transform: uppercase; color: var(--alpine); }
.tm .lead-name { margin: 0 0 10px; font-family: var(--font-serif); font-weight: 400; font-size: clamp(34px, 3.6vw, 52px); line-height: 1.08; color: var(--ink); }
.tm .lead-bio { margin: 0; font-size: var(--fs-body); font-weight: 300; line-height: 1.85; color: var(--ink-65); max-width: 62ch; }

/* ── advisors: 2 x 2 hairline grid ── */
.tm .adv-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--border); }
.tm .adv {
  position: relative; display: flex; flex-direction: column; gap: 28px; padding: 40px 36px 44px 0;
  border-bottom: 1px solid var(--border);
}
.tm .adv:nth-child(even) { padding: 40px 0 44px 36px; border-left: 1px solid var(--border); }
.tm .adv:nth-last-child(-n+2) { border-bottom: 0; }
.tm .adv-photo { aspect-ratio: 16 / 10; overflow: hidden; background: var(--mist); }
.tm .adv-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 16%; display: block; transition: transform .8s var(--ease); }
.tm .adv:hover .adv-photo img { transform: scale(1.03); }
.tm .adv-photo--abraham img { object-position: center 4%; }
.tm .adv-photo--goering img { object-position: 18% center; }
.tm .adv-photo--mamta { background: #78a0a3; }
.tm .adv-photo--mamta img { width: auto; max-width: 100%; margin: 0 auto; object-fit: contain; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 84%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 16%, #000 84%, transparent 100%); }
.tm .adv-body { display: flex; flex-direction: column; gap: 12px; }
.tm .adv-name { margin: 0; font-family: var(--font-serif); font-weight: 400; font-size: clamp(26px, 2.3vw, 34px); line-height: 1.15; color: var(--ink); }
.tm .adv-bio { margin: 0; font-size: var(--fs-small); font-weight: 300; line-height: 1.8; color: var(--ink-65); }

/* ── atmosphere washes (same recipe as What We Do) ── */
.tm main > .leadership {
  background-image:
    radial-gradient(55% 70% at 80% 30%, rgba(167,196,181,.792) 0%, rgba(167,196,181,.306) 45%, rgba(167,196,181,0) 82%),
    radial-gradient(48% 60% at 15% 80%, rgba(44,90,71,.198) 0%, rgba(44,90,71,.081) 45%, rgba(44,90,71,0) 82%);
}
.tm main > .advisors {
  background-image:
    radial-gradient(55% 70% at 20% 25%, rgba(167,196,181,.756) 0%, rgba(167,196,181,.288) 45%, rgba(167,196,181,0) 82%),
    radial-gradient(55% 65% at 80% 80%, rgba(44,90,71,.234) 0%, rgba(44,90,71,.090) 45%, rgba(44,90,71,0) 82%);
}
html[data-theme="dark"] .tm main > .leadership {
  background-image:
    radial-gradient(55% 70% at 80% 30%, rgba(95,154,128,.18) 0%, rgba(95,154,128,.07) 45%, rgba(95,154,128,0) 82%),
    radial-gradient(48% 60% at 15% 80%, rgba(63,130,98,.14) 0%, rgba(63,130,98,.05) 45%, rgba(63,130,98,0) 82%);
}
html[data-theme="dark"] .tm main > .advisors {
  background-image:
    radial-gradient(55% 70% at 20% 25%, rgba(95,154,128,.17) 0%, rgba(95,154,128,.07) 45%, rgba(95,154,128,0) 82%),
    radial-gradient(55% 65% at 80% 80%, rgba(63,130,98,.17) 0%, rgba(63,130,98,.07) 45%, rgba(63,130,98,0) 82%);
}
html[data-theme="dark"] .tm .lead-photo, html[data-theme="dark"] .tm .adv-photo { background: #15251d; }
html[data-theme="dark"] .tm .adv-photo--mamta { background: #4d6f72; }

/* ── responsive ── */
@media (max-width: 820px) {
  .tm .ph-visual { order: -1; }   /* molecule leads on mobile */
  .tm .lead { grid-template-columns: minmax(0, 1fr); }
  .tm .lead-photo { max-width: 360px; }
  .tm .adv-grid { grid-template-columns: minmax(0, 1fr); }
  .tm .adv, .tm .adv:nth-child(even) { padding: 32px 0 36px; border-left: 0; }
  .tm .adv:nth-last-child(2) { border-bottom: 1px solid var(--border); }
}
