.team-card{ --team-gray: #a7afb8; }

.team-section{ padding-block: 8px 12px; }

.team-grid{
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px 32px;
}
@media (max-width: 900px){ .team-grid{ grid-template-columns: repeat(2, 1fr); gap: 36px 24px; } }
@media (max-width: 560px){ .team-grid{ grid-template-columns: 1fr; max-width: 360px; margin-inline: auto; gap: 26px; } }

.team-card{text-align:center;margin-top: -44px}

.team-visual{
  position: relative;
  aspect-ratio: 4 / 5;
  margin-bottom: 18px;
}

.team-color{
  position: absolute;
  top: 28%;
  right: 10%;
  left: 10%;
  bottom: 0;
  background: var(--team-color, var(--brand));
  transition: background-color .45s ease;
}
.team-card:nth-child(3n+1) .team-color{ border-radius: 500px 120px 0 0; }
.team-card:nth-child(3n+2) .team-color{ border-radius: 120px 500px 0 0; }
.team-card:nth-child(3n+3) .team-color{ border-radius: 70px 70px 0 0; }

.team-card:hover .team-color,
.team-card.is-active .team-color{
  background: var(--team-gray);
}

.team-photo,
.team-photo-empty{
  position: absolute;
  inset: -18% 1% 0 1%;
  width: 98%;
  height: 118%;
}
@media (max-width: 560px){
  .team-photo,
  .team-photo-empty{ inset: -4% 1% 0 1%; height: 104%; }
}
.team-photo{
  object-fit: contain;
  object-position: bottom center;
  filter: grayscale(1);
  transition: filter .45s ease;
}
.team-card:hover .team-photo,
.team-card.is-active .team-photo{
  filter: grayscale(0);
}

.team-photo-empty{
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 12%;
  color: #fff;
  font-size: 2.4rem;
  font-weight: 700;
  font-family: var(--font);
}

.team-info{
  width: 90%;
  margin-inline: auto;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 20px;
}

.team-name{ font-size: 1.15rem; font-weight: 700; color: var(--ink); margin: 0 0 2px; }
.team-role{ font-size: .78rem; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--team-color, var(--brand)); margin: 0 0 10px; }
.team-desc{ color: var(--ink-2); font-size: .92rem; line-height: 1.6; margin: 0; }

.team-rule{ height: 1px; background: var(--line); margin: 16px 0; }

.team-social{ display: flex; justify-content: center; gap: 10px; }
.team-social a{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--gray-bg);
  color: var(--ink-2);
  transition: background-color .2s ease, color .2s ease;
}
.team-social a:hover{ background: var(--team-color, var(--brand)); color: #fff; text-decoration: none; }
.team-social .icon{ width: 16px; height: 16px; }

.team-empty{
  text-align: center;
  padding: 60px 20px;
  color: var(--muted);
}
