.team-section {
  background: #f1f5f7;
  padding-block: clamp(55px, 7vw, 95px);
  scroll-margin-top: 30px;
}

.team-section h2 {
  margin-bottom: 36px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px 20px;
}

.team-card {
  display: block;
  background: white;
}

.team-portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #e2ebf0;
}

.team-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  transition: transform 550ms ease;
}

.team-role {
  position: absolute;
  inset: auto 0 0;
  padding: 15px;
  color: white;
  background: #081c2b;
  font-size: 13px;
  line-height: 1.5;
}

.team-card h3 {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  padding: 17px 15px;
  font: 400 23px/1.2 Kelson, sans-serif;
}

.team-card h3 span {
  color: #0a537e;
  font-size: 17px;
}

@media (hover: hover) {
  .team-role {
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 220ms ease, transform 220ms ease;
  }

  .team-card:is(:hover, :focus-visible) .team-role {
    opacity: 1;
    transform: none;
  }

  .team-card:is(:hover, :focus-visible) img,
  .bio-profile .team-portrait:hover img {
    transform: scale(1.04);
  }
}

@media (prefers-reduced-motion: reduce) {
  .team-card img,
  .team-role {
    transition: none;
  }

  .team-card:is(:hover, :focus-visible) img,
  .bio-profile .team-portrait:hover img {
    transform: none;
  }
}

@media (max-width: 760px) {
  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}

.bio-profile {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: clamp(30px, 6vw, 90px);
  align-items: start;
  padding-block: clamp(55px, 8vw, 105px);
  scroll-margin-top: 30px;
}

.bio-profile .team-portrait {
  max-width: 460px;
}

.bio-profile h2 {
  margin-bottom: 12px;
}

.bio-role {
  color: #0a537e;
  font-weight: 600;
}

.bio-profile p {
  line-height: 1.8;
}

@media (max-width: 700px) {
  .bio-profile {
    grid-template-columns: 1fr;
  }
}

.bio-social { margin: 0 0 1rem; }
.bio-social a { display: inline-grid; place-items: center; width: 44px; height: 44px; background: #fff; color: #0a537e; }
.bio-social a:hover { background: #dcebf4; }
.bio-social a:focus-visible { outline: 2px solid #8cd2f6; outline-offset: 3px; }
