.team-hero {
  padding-top: 140px;
}

.team-card {
  height: 100%;
  overflow: hidden;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.team-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-strong);
}

.team-card__photo {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(252, 186, 3, 0.25), rgba(233, 69, 96, 0.16));
}

.team-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card__photo-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  color: var(--color-secondary);
  font-size: 3rem;
}

.team-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 18px;
  padding: 24px;
  color: #fff;
  opacity: 0;
  background: linear-gradient(180deg, rgba(12, 16, 32, 0.06), rgba(12, 16, 32, 0.92));
  transition: opacity 0.28s ease;
}

.team-card:hover .team-overlay {
  opacity: 1;
}

.team-overlay p {
  margin: 0;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.84);
}

.team-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.team-socials a {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.team-socials a:hover {
  background: var(--color-primary);
  color: var(--color-secondary);
}

.team-card__body {
  padding: 22px 22px 26px;
}

.team-card__body h3 {
  margin-bottom: 8px;
  color: var(--color-secondary);
}

.team-card__body span {
  color: rgba(44, 44, 44, 0.68);
  font-weight: 600;
}
