/* Team page (/team/): team_grid sections (src/components/sections/TeamGrid.astro) and the hero faces (TeamFaces.astro).
   Loaded only on pages with a team_grid section. Hand-written (not generated by sync). */
.tm-sec{padding-block:72px}
.tm-sec + .tm-sec{padding-top:0}
.tm-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.tm-grid.lg{grid-template-columns:repeat(2,minmax(0,1fr))}
.tm-b{min-width:0}
.tm{background:var(--card);border:1px solid var(--line);border-radius:24px;padding:10px;display:flex;flex-direction:column;box-shadow:var(--shadow-sm);transition:transform .3s var(--ease),box-shadow .3s var(--ease)}
.tm:hover{transform:translateY(-4px);box-shadow:var(--shadow-md)}
.tm-ph{position:relative;display:block;aspect-ratio:1/1;border-radius:18px;overflow:hidden;background:linear-gradient(160deg,var(--gold-tint),var(--bg-2) 70%)}
.tm-ph .stripes{position:absolute;inset:0;opacity:.55}
.tm-ph img{position:relative;width:100%;height:100%;object-fit:cover;display:block;transition:transform .6s var(--ease)}
.tm:hover .tm-ph img{transform:scale(1.03)}
.tm-b{padding:20px 14px 12px;display:grid;gap:10px;flex:1;align-content:start}
.tm-t{display:flex;flex-wrap:wrap;gap:4px 10px;font:600 12px/1.3 var(--f-display);letter-spacing:.1em;text-transform:uppercase;color:var(--gold-text)}
.tm-t span + span::before{content:"";display:inline-block;width:4px;height:4px;border-radius:50%;background:var(--gold);margin:0 10px 2px 0;vertical-align:middle}
.tm-n{font-size:24px;line-height:1.15;letter-spacing:-.03em;font-weight:700}
.tm-bio{color:var(--text);font-size:15.5px;line-height:1.6}
.tm-a{display:flex;align-items:center;gap:8px;margin-top:8px}
.tm-a .btn{gap:8px}
.tm-a .btn svg{width:18px;height:18px}
.tm-i{width:44px;height:44px;border-radius:10px;border:1.5px solid var(--line-2);display:grid;place-items:center;color:var(--ink);transition:background .2s,border-color .2s,color .2s}
.tm-i:hover{background:var(--ink);border-color:var(--ink);color:#fff}
.tm-i svg{width:19px;height:19px}
/* founders: photo left, words right */
.tm-lg{flex-direction:row;gap:6px}
.tm-lg .tm-ph{flex:0 0 40%;aspect-ratio:4/5}
.tm-lg .tm-b{padding:22px 18px 14px;align-content:center}
.tm-lg .tm-n{font-size:28px}
/* hero faces */
.tm-faces{display:flex;align-items:center;justify-content:center;margin-top:30px}
.tm-faces img{width:52px;height:52px;border-radius:50%;object-fit:cover;border:3px solid var(--bg);margin-left:-12px;box-shadow:var(--shadow-sm);background:var(--gold-tint)}
.tm-faces img:first-child{margin-left:0}
.tm-faces-plus{width:52px;height:52px;border-radius:50%;border:3px solid var(--bg);margin-left:-12px;display:grid;place-items:center;background:var(--ink);color:#fff;font:700 20px/1 var(--f-display);box-shadow:var(--shadow-sm)}
/* juniors and interns */
.tm-more{display:flex;align-items:center;gap:18px;margin-top:22px;padding:22px 26px;border:1.5px dashed var(--line-2);border-radius:20px;background:var(--card-2)}
.tm-more-i{width:48px;height:48px;border-radius:12px;display:grid;place-items:center;background:var(--gold-tint);color:var(--ink);flex:none}
.tm-more-i svg{width:22px;height:22px}
.tm-more h3{font-size:19px;letter-spacing:-.02em;font-weight:700}
.tm-more p{margin-top:4px;color:var(--text);font-size:15.5px;line-height:1.55}
.tm-faces-l{margin-left:14px;font:600 14px/1 var(--f-display);color:var(--muted)}
@media (max-width:980px){.tm-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.tm-grid.lg{grid-template-columns:minmax(0,1fr)}}
/* phone: small photo beside titles + name, bio and actions full width below */
@media (max-width:640px){
  .tm-grid{grid-template-columns:minmax(0,1fr);gap:16px}
  .tm,.tm-lg{display:grid;grid-template-columns:96px minmax(0,1fr);grid-template-areas:"ph t" "ph n" "bio bio" "a a";column-gap:16px;row-gap:0;padding:14px;align-items:end}
  .tm-b,.tm-lg .tm-b{display:contents}
  .tm-ph,.tm-lg .tm-ph{grid-area:ph;width:96px;aspect-ratio:1/1;border-radius:14px;align-self:center}
  .tm-t{grid-area:t;align-self:end;font-size:11px;gap:2px 8px}
  .tm-t span + span::before{margin-right:8px}
  .tm-n,.tm-lg .tm-n{grid-area:n;align-self:start;font-size:21px;margin-top:6px}
  .tm-bio{grid-area:bio;margin-top:14px;font-size:15px}
  .tm-a{grid-area:a;margin-top:14px}
  .tm-a .btn{flex:1}
  .tm-sec{padding-block:56px}
  .tm-more{align-items:flex-start;padding:18px}
  .tm-ini{font-size:28px}
}
@media (prefers-reduced-motion:reduce){.tm,.tm-ph img{transition:none}.tm:hover{transform:none}.tm:hover .tm-ph img{transform:none}}
/* no photo yet: initials */
.tm-ini{position:relative;display:grid;place-items:center;width:100%;height:100%;font:700 44px/1 var(--f-display);color:var(--gold-text)}
.tm-face-ini{width:52px;height:52px;border-radius:50%;border:3px solid var(--bg);margin-left:-12px;display:grid;place-items:center;background:var(--gold-tint);font:700 15px/1 var(--f-display);color:var(--gold-text)}
.tm-face-ini:first-child{margin-left:0}
