/* TEAM page - builds on site.css + home-v3.css (proof band, board-top, reach map).
   Brand tokens only: --aub, --plum, --heather, --royal, --mist, --line, --ink-soft. */

/* ---------- hero ---------- */
.tm-hero { padding-bottom: clamp(64px,8vw,104px); }
.tm-hero h1 { font-size: var(--title-size); max-width: 12ch; }
.tm-hero .eyebrow { display: flex; align-items: center; gap: 18px; }
.tm-hero .eyebrow::after { content: ""; height: 1px; width: 72px; background: var(--heather); opacity: .6; }
.tm-hero-arcs-b { position: absolute; left: -22vw; bottom: -30vw; width: 44vw; min-width: 340px; opacity: .3; pointer-events: none; }
.tm-hero .hero-split { align-items: end; }
.tm-faces { display: flex; margin-top: clamp(30px,4vw,44px); padding-left: 10px; }
.tm-faces img { width: clamp(40px,3.6vw,52px); height: clamp(40px,3.6vw,52px); border-radius: 50%; object-fit: cover; object-position: 50% 30%; border: 2px solid var(--aub); box-shadow: 0 0 0 1px rgba(199,155,232,0.55); margin-left: -10px; }
.tm-faces-l { margin-top: 14px; font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600; color: rgba(255,255,255,0.66); }

/* ---------- index band (reuses .proof) ---------- */
.tm-index .proof-item { text-decoration: none; color: inherit; position: relative; transition: background .3s ease; }
.tm-index .proof-item::after { content: "\2193"; position: absolute; right: 22px; top: 32px; color: rgba(199,155,232,0.5); font-size: 15px; transition: color .3s ease, transform .3s ease; }
.tm-index .proof-item:hover::after, .tm-index .proof-item:focus-visible::after { color: var(--heather); transform: translateY(4px); }
.tm-index .proof-item:hover .l, .tm-index .proof-item:focus-visible .l { color: var(--white); }

/* ---------- shared section head ---------- */
.tm-head { margin-bottom: clamp(40px,5vw,64px); }
.tm-head .sec-title { font-size: clamp(26px,3.4vw,46px); }
.tm-head .lede { justify-self: end; max-width: 46ch; text-wrap: balance; border-left: 2px solid var(--heather); padding-left: 20px; }
.tm-lead, .tm-analysts, .tm-board { scroll-margin-top: var(--nav-h); }

/* ---------- executive team: portrait cards ---------- */
.tm-exec { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(18px,2.4vw,32px); }
.tm-card { background: var(--mist); border-radius: 8px; overflow: hidden; transition: transform .35s ease, box-shadow .35s ease; }
.tm-card:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(38,9,43,0.12); }
.tm-ph { position: relative; aspect-ratio: 5 / 4; overflow: hidden; background: var(--aub); }
.tm-ph img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; display: block; transition: transform .8s cubic-bezier(.2,.6,.2,1); }
.tm-ph::after { content: ""; position: absolute; inset: 12px; border: 1px solid rgba(255,255,255,0.32); border-radius: 3px; pointer-events: none; transition: border-color .35s ease, inset .35s ease; }
.tm-card:hover .tm-ph img { transform: scale(1.04); }
.tm-card:hover .tm-ph::after { border-color: var(--heather); inset: 16px; }
.tm-tx { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; padding: clamp(20px,2vw,26px) clamp(20px,2vw,26px) clamp(22px,2.2vw,28px); border-top: 2px solid var(--heather); }
.tm-tx h3 { font-family: 'Rebelton','Montserrat',sans-serif; font-weight: 400; font-size: clamp(17px,1.6vw,21px); letter-spacing: 0.01em; word-spacing: -0.14em; line-height: 1.2; color: var(--aub); }
.tm-role { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; font-weight: 600; color: var(--royal); margin-top: 10px; }
.tm-tx .li-badge, .tm-an-meta .li-badge { flex-shrink: 0; width: 30px; height: 30px; margin: 0; border-radius: 50%; background: var(--white); border: 1px solid var(--line); }
.tm-tx .li-badge svg { width: 13px; height: 13px; }
.tm-tx .li-badge:hover, .tm-an-meta .li-badge:hover { background: var(--heather); border-color: var(--heather); }

/* ---------- board of advisors: dark editorial index ---------- */
.tm-board { background: var(--aub); color: var(--white); position: relative; overflow: hidden; }
.tm-board-arcs { position: absolute; left: -18vw; bottom: -24vw; width: 48vw; min-width: 380px; opacity: .3; pointer-events: none; }
.tm-board .eyebrow { color: var(--heather); }
.tm-board .lede { color: rgba(255,255,255,0.74); }
.tm-adv-list { border-top: 1px solid rgba(199,155,232,0.25); }
.tm-adv { position: relative; display: grid; grid-template-columns: 64px 176px minmax(0,1fr) minmax(0,1.25fr); gap: clamp(20px,3vw,44px); align-items: start; padding: clamp(30px,3.4vw,44px) 0; border-bottom: 1px solid rgba(199,155,232,0.25); }
.tm-adv::before { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 0; background: var(--heather); transition: width .6s cubic-bezier(.2,.6,.2,1); }
.tm-adv:hover::before { width: 100%; }
.tm-adv-no { font-family: 'Rebelton',sans-serif; font-size: clamp(20px,2.2vw,30px); line-height: 1.1; color: var(--heather); }
.tm-adv-ph { position: relative; aspect-ratio: 1 / 1; border-radius: 6px; overflow: hidden; background: var(--plum); }
.tm-adv-ph img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; transition: transform .7s cubic-bezier(.2,.6,.2,1); }
.tm-adv-ph::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(255,255,255,0.3); border-radius: 3px; pointer-events: none; transition: border-color .35s ease; }
.tm-adv:hover .tm-adv-ph img { transform: scale(1.05); }
.tm-adv:hover .tm-adv-ph::after { border-color: var(--heather); }
.tm-adv-id h3 { font-family: 'Rebelton','Montserrat',sans-serif; font-weight: 400; font-size: clamp(19px,1.9vw,26px); letter-spacing: 0.01em; word-spacing: -0.14em; line-height: 1.18; }
.tm-adv-id .li-badge { width: 26px; height: 26px; border-radius: 50%; background: rgba(199,155,232,0.14); color: var(--heather); margin-left: 10px; }
.tm-adv-id .li-badge:hover { background: var(--heather); color: var(--aub); }
.tm-adv-cred { margin-top: 14px; font-size: 15px; color: rgba(255,255,255,0.86); line-height: 1.5; max-width: 34ch; }
.tm-adv-role { margin-top: 16px; display: inline-block; font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600; color: var(--heather); border: 1px solid rgba(199,155,232,0.45); padding: 5px 10px; }
.tm-adv-bio { font-size: 15px; line-height: 1.75; color: rgba(255,255,255,0.7); margin: 0; max-width: 60ch; }

/* ---------- analysts: portrait tiles ---------- */
.tm-analysts { background: var(--mist); }
.tm-an-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: clamp(28px,3vw,40px) clamp(14px,1.8vw,24px); }
.tm-an-ph { position: relative; aspect-ratio: 4 / 5; border-radius: 4px; overflow: hidden; background: var(--line); }
.tm-an-ph img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; transition: transform .7s cubic-bezier(.2,.6,.2,1); }
.tm-an-ph::after { content: ""; position: absolute; inset: 0; border-bottom: 3px solid var(--heather); transform: scaleX(0); transform-origin: left; transition: transform .45s ease; pointer-events: none; }
.tm-an:hover .tm-an-ph img { transform: scale(1.05); }
.tm-an:hover .tm-an-ph::after { transform: scaleX(1); }
/* this source photo ships pre-masked to a circle: zoom past the mask so the tile stays square-cornered */
.tm-an:hover .tm-an h3 { margin-top: 16px; font-size: 15px; letter-spacing: 0.06em; color: var(--aub); line-height: 1.3; }
.tm-an-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 2px; }
.tm-an-meta .tm-role { margin-top: 0; }
.tm-an-meta .li-badge { width: 26px; height: 26px; }

/* ---------- reach (homepage map) ---------- */
.tm-reach-cta { margin-top: 30px; }

/* ---------- join us ---------- */
.tm-join { background: var(--white); border-top: 1px solid var(--line); }
.tm-join-in { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px,5vw,64px); align-items: start; }
.tm-join-in > div + div { padding-top: 38px; }
.tm-join .sec-title { margin-bottom: 0; max-width: 14ch; }
.tm-join .lede { margin: 0; }
.tm-join-cta { margin-top: 30px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .tm-adv { grid-template-columns: 48px 150px minmax(0,1fr); }
  .tm-adv-bio { grid-column: 3; }
  .tm-an-grid { grid-template-columns: repeat(4, minmax(0,1fr)); }
}
@media (max-width: 900px) {
  .tm-exec { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .tm-head .lede { justify-self: start; }
  .tm-join-in { grid-template-columns: 1fr; }
  .tm-join-in > div + div { padding-top: 0; }
  .tm-an-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
}
@media (max-width: 760px) {
  .tm-index .proof-item::after { right: 14px; top: 24px; }
  .tm-adv { grid-template-columns: 92px minmax(0,1fr); gap: 14px 18px; }
  .tm-adv-no { display: none; }
  .tm-adv-bio { grid-column: 1 / -1; font-size: 14.5px; }
  .tm-adv-id h3 { font-size: 18px; }
  .tm-adv-cred { margin-top: 8px; font-size: 14px; }
  .tm-adv-role { margin-top: 10px; }
}
@media (max-width: 600px) {
  .tm-exec { gap: 14px; }
  .tm-tx { gap: 8px; padding: 16px 12px 18px 14px; }
  .tm-tx .li-badge { width: 26px; height: 26px; }
  .tm-tx h3 { font-size: 15px; }
  .tm-role { font-size: 10px; letter-spacing: 0.14em; margin-top: 8px; }
  .tm-ph { aspect-ratio: 1 / 1; }
  .tm-ph::after { inset: 8px; }
  .tm-an-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 24px 14px; }
  .tm-an h3 { font-size: 14px; }
  .tm-faces img { width: 34px; height: 34px; margin-left: -8px; }
  .tm-faces-l { font-size: 10px; letter-spacing: 0.16em; }
}

/* ---------- RTL (ar/team) ---------- */
html[dir="rtl"] .tm-hero-arcs-b { left: auto; right: -22vw; }
html[dir="rtl"] .tm-board-arcs { left: auto; right: -18vw; }
html[dir="rtl"] .tm-faces { padding-left: 0; padding-right: 10px; }
html[dir="rtl"] .tm-faces img { margin-left: 0; margin-right: -10px; }
html[dir="rtl"] .tm-faces-l, html[dir="rtl"] .tm-role, html[dir="rtl"] .tm-adv-role { font-family: 'Tajawal','Segoe UI',Tahoma,Arial,sans-serif; font-size: 13px; }
html[dir="rtl"] .tm-head .lede { border-left: 0; padding-left: 0; border-right: 2px solid var(--heather); padding-right: 20px; }
html[dir="rtl"] .tm-index .proof-item::after { right: auto; left: 22px; }
html[dir="rtl"] .tm-adv::before { left: auto; right: 0; }
html[dir="rtl"] .tm-adv-id .li-badge { margin-left: 0; margin-right: 10px; }
html[dir="rtl"] .tm-an-ph::after { transform-origin: right; }
html[dir="rtl"] .tm-tx h3, html[dir="rtl"] .tm-adv-id h3 { font-family: 'Rebelton','Montserrat',sans-serif; font-weight: 400; direction: ltr; text-align: right; }
html[dir="rtl"] .tm-an h3 { direction: ltr; text-align: right; }
@media (max-width: 760px) { html[dir="rtl"] .tm-index .proof-item::after { left: 14px; } }
@media (max-width: 600px) { html[dir="rtl"] .tm-faces img { margin-right: -8px; } }

/* Smaller exec/analyst photos, full square so no heads are cropped */
.tm-ph, .tm-an-ph { aspect-ratio: 1 / 1; }
.tm-ph img, .tm-an-ph img { object-position: 50% 0%; }
.tm-exec { grid-template-columns: repeat(6, minmax(0,1fr)); gap: clamp(14px,1.6vw,22px); }
.tm-exec .tm-tx h3 { font-size: clamp(15px,1.25vw,18px); }
.tm-an-grid { grid-template-columns: repeat(6, minmax(0,1fr)); gap: clamp(24px,2.4vw,32px) clamp(14px,1.6vw,22px); }
@media (max-width: 1100px) { .tm-an-grid { grid-template-columns: repeat(5, minmax(0,1fr)); } }
@media (max-width: 1100px) { .tm-exec { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 900px) { .tm-an-grid { grid-template-columns: repeat(4, minmax(0,1fr)); } }
@media (max-width: 700px) { .tm-exec { grid-template-columns: repeat(2, minmax(0,1fr)); } .tm-an-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 600px) { .tm-an-grid { grid-template-columns: repeat(2, minmax(0,1fr)); } }

/* Advisors bigger, analysts smaller */
.tm-adv { grid-template-columns: 56px 260px minmax(0,1fr) minmax(0,1.2fr); align-items: center; }
.tm-an-grid { grid-template-columns: repeat(10, minmax(0,1fr)); gap: 26px 14px; }
.tm-an h3 { font-size: 12px; margin-top: 12px; }
.tm-an-meta .li-badge { width: 22px; height: 22px; }
@media (max-width: 1100px) and (min-width: 761px) { .tm-adv { grid-template-columns: 48px 200px minmax(0,1fr); } }
@media (max-width: 1100px) { .tm-an-grid { grid-template-columns: repeat(5, minmax(0,1fr)); } }
@media (max-width: 760px) { .tm-adv { grid-template-columns: 120px minmax(0,1fr); } }
@media (max-width: 700px) { .tm-an-grid { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px 10px; } }

/* Static band under hero */
.rb { background: #12051A; border-top: 1px solid rgba(199,155,232,0.14); border-bottom: 1px solid rgba(199,155,232,0.14); }
.rb-in { display: flex; align-items: center; gap: clamp(18px,3vw,44px); padding-top: 28px; padding-bottom: 28px; }
.rb-label { flex-shrink: 0; margin: 0; font-size: 11px; font-weight: 600; letter-spacing: 0.24em; text-transform: uppercase; color: var(--heather, #C79BE8); display: flex; align-items: center; gap: 14px; }
.rb-label::after { content: ""; width: 40px; height: 1px; background: rgba(199,155,232,0.5); }
.rb-items { display: flex; align-items: center; flex-wrap: wrap; row-gap: 10px; }
.rb-i { font-family: 'Rebelton','Montserrat',sans-serif; font-size: clamp(17px,1.6vw,22px); color: #fff; letter-spacing: 0.01em; word-spacing: -0.12em; }
.rb-d { width: 6px; height: 6px; margin: 0 clamp(16px,2vw,28px); background: var(--heather, #C79BE8); transform: rotate(45deg); opacity: .75; flex-shrink: 0; }
.rb-side { margin: 0 0 0 auto; font-size: 13px; letter-spacing: 0.04em; color: rgba(255,255,255,0.62); text-align: right; max-width: 34ch; }
.rb-link { flex-shrink: 0; font-size: 11px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: #fff; text-decoration: none; padding: 12px 18px; border: 1px solid rgba(199,155,232,0.5); max-width: none; transition: background .25s, border-color .25s; }
.rb-link:hover { background: var(--heather, #C79BE8); border-color: var(--heather, #C79BE8); color: #26092B; }
html[dir="rtl"] .rb-side { margin: 0 auto 0 0; text-align: left; }
@media (max-width: 900px) { .rb-in { flex-wrap: wrap; } .rb-side { margin: 0; text-align: left; flex-basis: 100%; } html[dir="rtl"] .rb-side { text-align: right; } .rb-link { flex-basis: auto; } }
@media (max-width: 600px) { .rb-in { flex-direction: column; align-items: flex-start; gap: 14px; padding-top: 22px; padding-bottom: 22px; } .rb-d { margin: 0 14px; } }

/* Mobile legibility and tap targets */
@media (max-width: 600px) {
  .tm-role, .tm-adv-role, .tm-faces-l { font-size: 11px; }
  .tm-an-meta .li-badge { width: 30px; height: 30px; }
}

/* Mobile: stack the coverage list with a leading diamond instead of trailing separators */
@media (max-width: 600px) {
  .rb-items { flex-direction: column; align-items: flex-start; }
  .rb-d { display: none; }
  .rb-i { display: inline-flex; align-items: center; gap: 14px; }
  .rb-i::before { content: ""; width: 6px; height: 6px; background: var(--heather, #C79BE8); transform: rotate(45deg); opacity: .75; flex-shrink: 0; }
}
