/* Team member cards — about page */

.team-grid {
  list-style: none;
  margin: 0;
  padding: 0;
}

.team-card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 1.25rem;
  background: #fff;
  border: 1px solid #eaecf0;
  overflow: hidden;
  transition:
    transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.35s ease;
}

.team-card:hover {
  transform: translateY(-6px);
  border-color: rgb(255 122 0 / 0.28);
  box-shadow: 0 20px 40px -22px rgb(11 30 58 / 0.28);
}

.team-card__shine {
  position: absolute;
  top: 1.25rem;
  left: -80%;
  width: 40%;
  height: 6.5rem;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgb(255 255 255 / 0.45) 50%,
    transparent 100%
  );
  transform: skewX(-18deg);
  opacity: 0;
  pointer-events: none;
  z-index: 3;
}

.team-card:hover .team-card__shine {
  animation: team-card-shine 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes team-card-shine {
  0% {
    left: -80%;
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  100% {
    left: 130%;
    opacity: 0;
  }
}

.team-card__media {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 1.25rem 1.25rem 0;
  overflow: visible;
  background: transparent;
}

.team-card__media::after {
  content: none;
}

.team-card__img {
  width: 6.5rem;
  height: 6.5rem;
  border-radius: 1rem;
  border: 1px solid #eaecf0;
  object-fit: cover;
  object-position: center top;
  display: block;
  box-shadow: 0 8px 20px -12px rgb(11 30 58 / 0.25);
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
}

.team-card:hover .team-card__img {
  transform: scale(1.06);
  box-shadow: 0 12px 28px -14px rgb(11 30 58 / 0.32);
}

.team-card__avatar {
  width: 6.5rem;
  height: 6.5rem;
  border-radius: 1rem;
  border: 1px solid #eaecf0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  font-weight: 800;
  color: #0b1e3a;
  background: #f9fafb;
  box-shadow: 0 8px 20px -12px rgb(11 30 58 / 0.2);
  transition:
    transform 0.65s cubic-bezier(0.16, 1, 0.3, 1),
    background 0.4s ease,
    color 0.35s ease,
    box-shadow 0.4s ease;
}

.team-card:hover .team-card__avatar {
  transform: scale(1.06);
  color: #ff7a00;
  background: #fff8f2;
}

.team-card__content {
  display: flex;
  flex-direction: column;
  flex: 1;
  align-items: center;
  text-align: center;
  gap: 0.125rem;
  padding: 1rem 1.25rem 1.375rem;
}

.team-card--no-bio .team-card__content {
  padding-bottom: 1.625rem;
}

.team-card__name {
  margin: 0;
  font-size: 1.0625rem;
  font-weight: 800;
  line-height: 1.3;
  color: #101828;
  transition: color 0.3s ease;
}

.team-card:hover .team-card__name {
  color: #ff7a00;
}

.team-card__role {
  margin: 0.25rem 0 0;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #0b1e3a;
  opacity: 0.72;
  transition: opacity 0.3s ease, color 0.3s ease;
}

.team-card:hover .team-card__role {
  opacity: 1;
  color: #ff7a00;
}

.team-card__bio {
  margin: 0.625rem 0 0;
  padding-top: 0.625rem;
  border-top: 1px solid transparent;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: #475467;
  transition:
    opacity 0.35s ease,
    border-color 0.35s ease,
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.team-card:hover .team-card__bio {
  border-top-color: #eaecf0;
  transform: translateY(0);
}

.team-card__bio--clamp {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

@media (hover: hover) and (pointer: fine) {
  .team-card:hover .team-card__bio--clamp {
    -webkit-line-clamp: unset;
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  .team-card,
  .team-card__img,
  .team-card__avatar,
  .team-card__name,
  .team-card__role,
  .team-card__bio,
  .team-card__media::after {
    transition: none;
  }

  .team-card:hover {
    transform: none;
  }

  .team-card:hover .team-card__img,
  .team-card:hover .team-card__avatar {
    transform: none;
  }

  .team-card__shine,
  .team-card:hover .team-card__shine {
    animation: none;
    opacity: 0;
  }

  .team-card__bio--clamp {
    -webkit-line-clamp: unset;
    display: block;
  }
}
