.team-members-section {
  position: relative;
  overflow: hidden;
  padding: 110px 0;
  background:
    radial-gradient(circle at 8% 10%, rgba(255, 170, 13, 0.13), transparent 28%),
    radial-gradient(circle at 92% 90%, rgba(6, 97, 104, 0.13), transparent 30%),
    #f7fbfb;
}

.team-members-section::before,
.team-members-section::after {
  position: absolute;
  content: "";
  border: 1px solid rgba(6, 97, 104, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

.team-members-section::before {
  width: 260px;
  height: 260px;
  top: -130px;
  left: -80px;
}

.team-members-section::after {
  width: 340px;
  height: 340px;
  right: -180px;
  bottom: -180px;
}

.team-members-heading {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto 54px;
  text-align: center;
}

.team-members-kicker {
  display: inline-block;
  margin-bottom: 10px;
  color: #e6781f;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.team-members-heading h2 {
  margin-bottom: 10px;
  color: #066168;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.15;
}

.team-members-heading h2 span {
  color: #e6781f;
}

.team-members-heading p {
  max-width: 620px;
  margin: 0 auto;
  color: #346065;
  font-size: 16px;
  line-height: 1.75;
}

.team-members-heading img {
  display: block;
  width: min(470px, 90%);
  height: auto;
  margin: -14px auto 0;
}

.team-members-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

.team-member-card {
  overflow: hidden;
  min-width: 0;
  border: 1px solid rgba(6, 97, 104, 0.12);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(24, 86, 91, 0.12);
  transition: transform 250ms ease, box-shadow 250ms ease, border-color 250ms ease;
}

.team-member-card:hover {
  transform: translateY(-8px);
  border-color: rgba(230, 120, 31, 0.45);
  box-shadow: 0 24px 52px rgba(24, 86, 91, 0.2);
}

.team-member-photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 5 / 6;
  background: linear-gradient(145deg, #dbeeee, #eff8f8);
}

.team-member-photo::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 25%;
  content: "";
  background: linear-gradient(to top, rgba(0, 47, 54, 0.2), transparent);
  pointer-events: none;
}

.team-member-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 450ms ease;
}

.team-member-card:hover .team-member-photo img {
  transform: scale(1.045);
}

.team-member-photo-placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: rgba(6, 97, 104, 0.4);
  font-size: 74px;
}

.team-member-content {
  padding: 25px 24px 27px;
  text-align: center;
}

.team-member-content h3 {
  margin: 0 0 5px;
  color: #066168;
  font-size: 25px;
  line-height: 1.25;
}

.team-member-position {
  min-height: 24px;
  margin: 0 0 14px;
  color: #e6781f;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.team-member-bio {
  margin: 0;
  color: #567579;
  font-size: 15px;
  line-height: 1.7;
}

.team-member-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 9px;
  margin-top: 20px;
}

.team-member-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(6, 97, 104, 0.18);
  border-radius: 50%;
  background: #f4fafa;
  color: #066168;
  transition: color 200ms ease, background-color 200ms ease, border-color 200ms ease, transform 200ms ease;
}

.team-member-links a:hover,
.team-member-links a:focus-visible {
  transform: translateY(-2px);
  border-color: #e6781f;
  background: #e6781f;
  color: #fff;
}

.team-member-links a:focus-visible {
  outline: 3px solid rgba(230, 120, 31, 0.3);
  outline-offset: 3px;
}

@media (max-width: 1199px) {
  .team-members-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 991px) {
  .team-members-section {
    padding: 76px 0;
  }

  .team-members-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 575px) {
  .team-members-section {
    padding: 54px 0;
  }

  .team-members-heading {
    margin-bottom: 34px;
  }

  .team-members-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }

  .team-member-card {
    width: min(100%, 390px);
    margin: 0 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .team-member-card,
  .team-member-photo img,
  .team-member-links a {
    transition: none;
  }
}
