/* About page — team showcase (2+3 layout) */
.our-team.team-showcase {
  --team-card-radius: 20px;
  --team-card-gap: clamp(1rem, 2.5vw, 1.75rem);
  --team-card-max: 320px;
}

.team-showcase-grid {
  display: flex;
  flex-direction: column;
  gap: var(--team-card-gap);
  max-width: 1080px;
  margin: 0 auto;
}

.team-showcase-row {
  display: grid;
  gap: var(--team-card-gap);
  justify-content: center;
  width: 100%;
}

.team-showcase-row--pair {
  grid-template-columns: repeat(2, minmax(0, var(--team-card-max)));
}

.team-showcase-row--trio {
  grid-template-columns: repeat(3, minmax(0, var(--team-card-max)));
}

.team-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--team-card-radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(0, 2, 4, 0.08);
  box-shadow:
    0 1px 2px rgba(0, 2, 4, 0.04),
    0 12px 32px rgba(0, 2, 4, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.35s ease;
}

.team-card__glow {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(196, 241, 18, 0.55),
    rgba(0, 2, 4, 0.06) 40%,
    rgba(16, 95, 174, 0.35)
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
  z-index: 2;
}

.team-card:hover {
  transform: translateY(-8px) scale(1.02);
  border-color: rgba(196, 241, 18, 0.35);
  box-shadow:
    0 4px 8px rgba(0, 2, 4, 0.06),
    0 24px 48px rgba(0, 2, 4, 0.12),
    0 0 0 1px rgba(196, 241, 18, 0.15);
}

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

.team-card__media {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: linear-gradient(160deg, #f4f6f8 0%, #e8ecf0 100%);
}

.team-card__image {
  object-fit: cover;
  object-position: top center;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.team-card:hover .team-card__image {
  transform: scale(1.06);
}

.team-card__info {
  padding: 1.125rem 1.25rem 1.25rem;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.85) 0%,
    rgba(255, 255, 255, 0.95) 100%
  );
  border-top: 1px solid rgba(0, 2, 4, 0.06);
}

.team-card__name {
  margin: 0 0 0.25rem;
  font-size: 1.125rem;
  font-weight: 600;
  font-family: var(--secondary-font);
  color: var(--primary-color);
  line-height: 1.2;
}

.team-card__role {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  line-height: 1.4;
  color: rgba(0, 2, 4, 0.62);
  letter-spacing: 0.01em;
}

@media (max-width: 991.98px) {
  .our-team.team-showcase {
    --team-card-max: 280px;
  }

  .team-showcase-row--pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 620px;
    margin-inline: auto;
  }

  .team-showcase-row--trio {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 620px;
    margin-inline: auto;
  }

  .team-showcase-row--trio .team-card:last-child {
    grid-column: 1 / -1;
    justify-self: center;
    width: min(100%, var(--team-card-max));
  }
}

@media (max-width: 575.98px) {
  .our-team.team-showcase {
    --team-card-max: 100%;
  }

  .team-showcase-row--pair,
  .team-showcase-row--trio {
    grid-template-columns: 1fr;
    max-width: 340px;
  }

  .team-showcase-row--trio .team-card:last-child {
    grid-column: auto;
    width: 100%;
  }

  .team-card:hover {
    transform: translateY(-4px);
  }
}
