.team-page {
  background: var(--color-bg);
  padding: 64px 48px 88px;
}

.team-intro {
  max-width: 980px;
  margin: 0 auto 42px;
}

.team-intro .section-subtext {
  max-width: 920px;
}

.team-showcase {
  max-width: 1160px;
  margin: 0 auto;
}

.team-rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
  margin-bottom: 42px;
}

.team-thumb {
  text-align: center;
}

.team-thumb__button {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  font-family: var(--font-base);
  text-align: center;
  cursor: pointer;
}

.team-thumb__photo,
.team-feature__photo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  border-radius: 50%;
  background: linear-gradient(145deg, #fff, var(--color-surface));
  border: 1px solid rgba(0, 42, 86, 0.12);
  color: var(--color-primary);
  overflow: hidden;
}

.team-thumb__photo img,
.team-feature__photo img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.team-photo--tessa {
  object-position: 34% 30%;
  transform: translateY(7%) scale(1.24);
  transform-origin: 34% 30%;
}

.team-photo--jurek {
  transform: translateY(5%) scale(1.24);
  transform-origin: 50% 34%;
  filter: saturate(0.78) brightness(1.02);
}

.team-photo--ric {
  transform: scale(1.08);
  transform-origin: 50% 32%;
}

.team-photo--charles {
  object-position: 50% 24%;
}

.team-thumb__photo {
  width: clamp(74px, 8vw, 108px);
  aspect-ratio: 1;
  margin-bottom: 12px;
  font-size: 2rem;
}

.team-thumb--active .team-thumb__photo {
  outline: 4px solid rgba(156, 206, 255, 0.45);
}

.team-thumb__button:focus-visible .team-thumb__photo {
  outline: 4px solid rgba(31, 133, 181, 0.45);
  outline-offset: 4px;
}

.team-thumb__button:hover .team-thumb__photo {
  border-color: rgba(31, 133, 181, 0.42);
}

.team-thumb h3 {
  margin-bottom: 3px;
  color: var(--color-dark);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}

.team-thumb p {
  color: #6B7280;
  font-size: 12px;
  line-height: 1.35;
}

.team-feature {
  display: grid;
  grid-template-columns: minmax(230px, 300px) minmax(0, 620px);
  gap: 42px;
  align-items: start;
  justify-content: center;
  max-width: 1000px;
  margin: 0 auto;
  padding-top: 14px;
}

.team-feature__photo {
  width: min(100%, 220px);
  aspect-ratio: 1;
  margin-bottom: 18px;
  font-size: 4.5rem;
  box-shadow: 0 12px 28px rgba(0, 42, 86, 0.08);
}

.team-feature__identity {
  text-align: center;
  padding-right: 42px;
  border-right: 1px solid rgba(0, 42, 86, 0.16);
}

.team-feature__content {
  text-align: left;
  padding-top: 16px;
}

.team-feature__eyebrow {
  margin: 8px 0 0;
  color: var(--color-primary);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.team-feature h2 {
  margin-bottom: 0;
  color: var(--color-dark);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.22;
}

.team-feature__content p:last-child {
  color: var(--color-dark);
  font-size: 16px;
  line-height: 1.68;
}

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

  .team-feature {
    grid-template-columns: 1fr;
    gap: 28px;
    text-align: center;
    padding-top: 0;
  }

  .team-feature__identity {
    padding-right: 0;
    padding-bottom: 28px;
    border-right: 0;
    border-bottom: 1px solid rgba(0, 42, 86, 0.16);
  }

  .team-feature__content {
    text-align: center;
    padding-top: 0;
  }
}

@media (max-width: 599px) {
  .team-page {
    padding: 52px 24px 72px;
  }

  .team-rail {
    grid-template-columns: 1fr;
  }

  .team-thumb__photo {
    width: 96px;
  }

  .team-feature h2 {
    font-size: 30px;
  }
}
