/* ==========================================================================
   TEAM — founder block and staff grid. Sharp edges.
   ========================================================================== */
.team-lead{display:grid;gap:1px;background:var(--border);border:1px solid var(--border)}
.team-grid{display:grid;gap:1px;background:var(--border);border:1px solid var(--border);
  grid-template-columns:repeat(auto-fill,minmax(min(100%,240px),1fr))}

.tm{background:var(--white);display:flex;flex-direction:column;transition:background .16s ease}
.tm:hover{background:var(--light-gray)}
.tm-photo{position:relative;aspect-ratio:1/1;overflow:hidden;background:var(--accent-soft)}
.tm-photo img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .4s ease}
.tm:hover .tm-photo img{transform:scale(1.03)}
.tm-initials{
  position:absolute;inset:0;display:grid;place-items:center;
  font-family:var(--f-display);font-size:2.6rem;font-weight:700;color:var(--primary);opacity:.5;
}
.tm-body{padding:16px 18px 20px;display:flex;flex-direction:column;gap:6px;flex:1}
.tm-body h3{font-size:1.02rem;font-weight:650;margin:0;color:var(--ink)}
.tm-role{margin:0;font-family:var(--f-mono);font-size:.68rem;letter-spacing:.09em;
  text-transform:uppercase;color:var(--primary)}
.tm-bio{margin:6px 0 0;font-size:.87rem;color:var(--muted);line-height:1.65}
.tm-links{display:flex;gap:8px;margin-top:auto;padding-top:12px}
.tm-links a{
  width:32px;height:32px;display:grid;place-items:center;
  border:1px solid var(--border);color:var(--muted);transition:all .15s ease;
}
.tm-links a:hover{background:var(--primary);border-color:var(--primary);color:#fff}
.tm-links svg{width:15px;height:15px}

/* the founder card runs wide with the photo beside the text */
@media (min-width:720px){
  .tm-lead{display:grid;grid-template-columns:260px 1fr;align-items:stretch}
  .tm-lead .tm-photo{aspect-ratio:auto;height:100%;min-height:260px}
  .tm-lead .tm-body{padding:28px 30px;justify-content:center}
  .tm-lead .tm-body h3{font-size:1.4rem}
  .tm-lead .tm-bio{font-size:.95rem;max-width:60ch}
}
