/* ──────────────────────────────────────────────────────────────────────
   /team — page-specific rules (redesign 2026-11-01). Loads after about.css,
   which holds the shared .co design system (tokens, headings, hero, cards,
   CTA). Everything here is scoped to .co--team / tm-*.
   ────────────────────────────────────────────────────────────────────── */

/* hero side card: who to contact */
.tm-reach{display:grid}
.tm-reach li{display:grid;gap:2px;padding:13px 0;border-top:1px solid var(--co-rule)}
.tm-reach li:first-child{border-top:0}
/* a dir=ltr link (phone) inside an RTL grid row would stretch and sit on the left; keep it at the start edge */
.tm-reach li > a{justify-self:start}
.tm-reach__label{font-size:15px;font-weight:600;color:var(--co-mute)}
.co--team .tm-reach a.co-link{font-size:17px;overflow-wrap:anywhere}
.tm-reach__hours{margin-top:8px !important;padding-top:14px;border-top:1px solid var(--co-rule);font-size:15px;line-height:1.5;color:var(--co-mute)}

/* leadership grid — only rendered when config/team.php has people */
.tm-people{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}
@media (max-width:1024px){.tm-people{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:520px){.tm-people{grid-template-columns:minmax(0,1fr)}}
.tm-person{display:flex;flex-direction:column;border:1px solid var(--co-rule);border-radius:18px;background:#fff;overflow:hidden}
.tm-person__photo{display:block;width:100%;aspect-ratio:1/1;object-fit:cover;background:var(--co-paper)}
.tm-person__initials{display:flex;align-items:center;justify-content:center;width:100%;aspect-ratio:1/1;max-height:240px;
  background:linear-gradient(135deg,var(--co-navy) 0%,var(--co-navy-2) 100%);color:#fff;font-size:56px;font-weight:700;letter-spacing:.02em}
.tm-person__body{padding:20px 22px 22px}
.tm-person__role{font-size:16px;line-height:1.5;color:var(--co-mute)}
.co a.tm-person__in{display:inline-flex;align-items:center;gap:8px;margin-top:12px;font-size:15.5px;font-weight:600;color:var(--co-link)}
.co a.tm-person__in:hover{text-decoration:underline;text-underline-offset:3px}

/* practice teams */
.tm-teams{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}
@media (max-width:1024px){.tm-teams{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:640px){.tm-teams{grid-template-columns:minmax(0,1fr)}}
.tm-team{display:flex;flex-direction:column;background:#fff;border:1px solid var(--co-rule);border-radius:18px;padding:26px 28px 24px;transition:border-color .2s,box-shadow .2s}
.tm-team:hover{border-color:#B8C7D9;box-shadow:0 10px 30px rgba(11,31,58,.07)}
.tm-team__head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.tm-team__n{font-size:15px;font-weight:700;color:var(--co-mute);font-variant-numeric:tabular-nums;padding-top:4px}
.tm-team .co-body{flex:1 0 auto}
.co a.tm-team__talk{margin-top:20px;padding-top:18px;border-top:1px solid var(--co-rule)}

/* availability map component inside the company page: keep its own look, align the width */
.co--team .am{border-top:1px solid var(--co-rule)}

/* who to contact for what */
.tm-routes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
@media (max-width:860px){.tm-routes{grid-template-columns:minmax(0,1fr)}}
.tm-route{display:flex;gap:18px;align-items:flex-start;padding:24px;border:1px solid var(--co-rule);border-radius:18px;background:#fff}
.tm-route__ic{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:46px;height:46px;border-radius:14px;background:var(--co-tint);color:var(--co-blue)}
.tm-route__ic .co-ic{width:22px;height:22px}
.tm-route__body{min-width:0}
.tm-route__links{display:flex;flex-wrap:wrap;gap:8px 20px;margin-top:12px !important;font-size:16.5px}
.tm-route__links a{overflow-wrap:anywhere}
@media (max-width:440px){.tm-route{flex-direction:column;gap:12px;padding:20px}}

/* careers */
.tm-careers{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:48px;align-items:center}
@media (max-width:900px){.tm-careers{grid-template-columns:minmax(0,1fr);gap:28px}}
.tm-careers__card{padding:28px;border:1px solid var(--co-rule);border-radius:20px;background:var(--co-paper)}
.tm-careers__title{margin:0 0 14px !important;font-size:19px;font-weight:700;color:var(--co-ink)}
.tm-steps{display:grid;gap:14px}
.tm-steps li{display:flex;gap:14px;align-items:flex-start;font-size:17px;line-height:1.6;color:var(--co-ink)}
.tm-steps__n{display:inline-flex;align-items:center;justify-content:center;flex:0 0 auto;width:32px;height:32px;border-radius:50%;
  background:var(--co-navy);color:#fff;font-size:15px;font-weight:700;margin-top:-1px}

/* ══════════════════════════════════════════════════════════════════════
   Pictures + motion pass (2026-11-01). Shared card/media/motion rules are
   in about.css; this block covers the /team hero mosaic, the reach strip
   and the picture on each practice-team card.
   ══════════════════════════════════════════════════════════════════════ */

/* hero mosaic of work photos (no people's faces) */
.tm-mosaic{position:relative;display:grid;grid-template-columns:minmax(0,1.08fr) minmax(0,1fr);grid-template-rows:1fr 1fr;gap:14px;height:min(560px,58vw)}
.tm-tile{position:relative;margin:0;border-radius:20px;overflow:hidden;background:#1b3155;box-shadow:0 24px 60px rgba(2,10,24,.4)}
.tm-tile--tall{grid-row:1 / span 2}
.tm-tile img{display:block;width:100%;height:100%;object-fit:cover}
.tm-mosaic__badge{position:absolute;z-index:2;inset-inline-start:-28px;bottom:26px;display:flex;gap:6px;padding:10px;border-radius:16px;
  background:rgba(255,255,255,.97);box-shadow:0 18px 40px rgba(2,10,24,.35)}
.tm-mosaic__badge > span{display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:12px;background:var(--co-tint);color:var(--co-blue)}
.tm-mosaic__badge .co-ic{width:21px;height:21px}
@media (max-width:980px){
  .tm-mosaic{height:auto;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:none}
  .tm-tile--tall{grid-row:auto;grid-column:1 / span 2;aspect-ratio:16/9}
  .tm-tile{aspect-ratio:4/3}
  .tm-mosaic__badge{inset-inline-start:12px;bottom:auto;top:12px}
}
@media (max-width:420px){.tm-mosaic__badge > span{width:34px;height:34px}.tm-mosaic__badge{gap:4px;padding:8px}}

/* reach-the-right-people strip (moved out of the hero) */
.tm-reachstrip{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,3fr);align-items:stretch}
.tm-reachstrip__title{display:flex;flex-direction:column;justify-content:center;gap:4px;margin:0 !important;padding:20px 24px;
  background:var(--co-navy);color:#fff;font-size:18px;font-weight:700;line-height:1.35}
.tm-reachstrip__title span{font-size:14.5px;font-weight:500;color:var(--co-on-dark-2);line-height:1.5}
.tm-reachstrip .tm-reach{display:grid;grid-template-columns:repeat(4,minmax(0,1fr))}
.tm-reachstrip .tm-reach li{padding:18px 22px;border-top:0;border-inline-start:1px solid var(--co-rule)}
.tm-reachstrip .tm-reach li:first-child{border-inline-start:0}
@media (max-width:1024px){
  .tm-reachstrip{grid-template-columns:minmax(0,1fr)}
  .tm-reachstrip .tm-reach{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tm-reachstrip .tm-reach li:nth-child(odd){border-inline-start:0}
  .tm-reachstrip .tm-reach li:nth-child(n+3){border-top:1px solid var(--co-rule)}
}
@media (max-width:520px){
  .tm-reachstrip .tm-reach{grid-template-columns:minmax(0,1fr)}
  .tm-reachstrip .tm-reach li{border-inline-start:0 !important}
  .tm-reachstrip .tm-reach li + li{border-top:1px solid var(--co-rule)}
}

/* practice-team cards with a picture */
.tm-team{padding:0;overflow:hidden}
.tm-team__body{display:flex;flex-direction:column;flex:1 0 auto;padding:22px 26px 24px}
.tm-team__body .co-body{flex:1 0 auto}
.tm-team .tm-team__n{position:absolute;top:12px;inset-inline-end:12px;padding:3px 10px;border-radius:999px;background:rgba(11,31,58,.78);
  color:#fff;font-size:14px;font-weight:700;font-variant-numeric:tabular-nums}

/* motion: tiles rise in sequence, the icon badge pops icon by icon */
@media (prefers-reduced-motion:no-preference){
  @keyframes tm-tile{from{transform:translateY(28px) scale(.97)}to{transform:none}}
  @keyframes tm-tile-fade{from{opacity:0;transform:translateY(28px) scale(.97)}to{opacity:1;transform:none}}
  @keyframes tm-zoom{from{transform:scale(1.1)}to{transform:none}}
  @keyframes tm-icon{0%{transform:scale(0)}70%{transform:scale(1.18)}100%{transform:scale(1)}}
  .tm-tile--tall{animation:tm-tile 1s cubic-bezier(.2,.7,.2,1) both}
  .tm-tile:not(.tm-tile--tall){animation:tm-tile-fade .9s cubic-bezier(.2,.7,.2,1) both;animation-delay:calc(.15s + var(--t) * .18s)}
  .tm-tile img{animation:tm-zoom 1.8s cubic-bezier(.2,.7,.2,1) both}
  .tm-mosaic__badge{animation:co-fade-rise .7s .6s cubic-bezier(.2,.7,.2,1) both}
  .tm-mosaic__badge > span{animation:tm-icon .45s cubic-bezier(.3,1.5,.5,1) both;animation-delay:calc(.8s + var(--b) * .12s)}
}
