/* ===================== Team page ===================== */
.team-grid{
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:28px;
}
.team-grid-narrow{ grid-template-columns:repeat(4, 1fr); }
@media (max-width:960px){ .team-grid{ grid-template-columns:repeat(3, 1fr); } }
@media (max-width:700px){ .team-grid{ grid-template-columns:repeat(2, 1fr); } }
@media (max-width:460px){ .team-grid{ grid-template-columns:1fr; } }

.team-card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:var(--radius);
  padding:18px 18px 22px;
  text-align:left;
  transition:transform .4s var(--ease), box-shadow .4s var(--ease);
}
.team-card:hover{
  transform:translateY(-6px);
  box-shadow:0 24px 48px -30px rgba(10,26,58,.35);
}

.team-photo{
  aspect-ratio:1/1;
  border-radius:var(--radius);
  overflow:hidden;
  background:var(--paper-dim);
  margin-bottom:16px;
  position:relative;
}
.team-photo img{
  width:100%; height:100%; object-fit:cover;
  filter:grayscale(.15);
  transition:transform .6s var(--ease), filter .4s ease;
}
.team-card:hover .team-photo img{
  transform:scale(1.05);
  filter:grayscale(0);
}
/* thin red edge that appears on hover — the one accent moment per card */
.team-photo::after{
  content:"";
  position:absolute; left:0; right:0; bottom:0; height:3px;
  background:var(--red);
  transform:scaleX(0);
  transform-origin:left;
  transition:transform .4s var(--ease);
}
.team-card:hover .team-photo::after{ transform:scaleX(1); }

.team-card h3{
  font-size:17px;
  line-height:1.25;
}
.team-role{
  display:block;
  margin-top:4px;
  font-family:var(--font-mono);
  font-size:11.5px;
  letter-spacing:.05em;
  text-transform:uppercase;
  color:var(--ink-soft);
}
.team-social{
  display:flex; gap:8px; margin-top:14px;
}
.team-social a{
  width:30px; height:30px; border-radius:50%;
  border:1px solid var(--line);
  display:flex; align-items:center; justify-content:center;
  color:var(--ink-soft);
  transition:background .25s ease, border-color .25s ease, color .25s ease;
}
.team-social a:hover{
  background:var(--navy); border-color:var(--navy); color:var(--paper);
}
.team-social svg{ width:14px; height:14px; }