.team-page {
  overflow: clip;
  background: var(--paper);
}

.team-hero {
  position: relative;
  background:
    radial-gradient(circle at top left, rgba(255, 241, 155, 0.45), transparent 28%),
    radial-gradient(circle at top right, rgba(248, 132, 63, 0.18), transparent 24%),
    var(--paper);
  padding: 92px 0 40px;
  overflow: hidden;
}

.team-hero__content {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 2;
  padding-inline: 24px;
}

.team-hero__content h1 {
  margin: 0 0 16px;
  font-size: clamp(2.8rem, 6vw, 5.2rem);
  line-height: 0.95;
  font-weight: 700;
}

.team-hero__content p {
  margin: 0 auto;
  max-width: 760px;
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  line-height: 1.65;
}

.team-hero__shape {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  opacity: 0.9;
}

.team-hero__shape--one {
  width: 180px;
  top: 44px;
  left: -48px;
}

.team-hero__shape--two {
  width: 132px;
  top: 52px;
  right: -34px;
}

.team-hero__shape--three {
  width: 108px;
  bottom: 12px;
  left: 8%;
}

.team-grid-section {
  background: linear-gradient(to bottom, var(--paper) 0%, #f7f4ff 100%);
  padding: 28px 0 96px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  align-items: start;
}

.team-card {
  position: relative;
  background: rgba(255, 255, 255, 0.84);
  border: 2px solid rgba(61, 69, 170, 0.12);
  border-radius: 30px;
  box-shadow: 0 16px 36px rgba(18, 18, 18, 0.08);
  overflow: hidden;
}

.team-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 8px;
  background: linear-gradient(
    90deg,
    var(--blue) 0%,
    var(--orange) 35%,
    var(--red) 65%,
    var(--yellow) 100%
  );
  z-index: 2;
}

.team-card__image-wrap {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: rgba(61, 69, 170, 0.05);
}

.team-card__image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-card__body {
  padding: 24px 24px 22px;
}

.team-card__body h2 {
  margin: 0 0 6px;
  font-size: clamp(1.55rem, 2.2vw, 2rem);
  line-height: 1.05;
}

.team-card__role {
  margin: 0 0 16px;
  font-weight: 700;
  color: var(--blue);
}

.team-card__bio {
  margin: 0 0 14px;
  line-height: 1.72;
  font-size: 1rem;
}

.team-card__bio:last-of-type {
  margin-bottom: 0;
}

.team-card__links {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
}

.team-card__links a {
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(61, 69, 170, 0.08);
  color: var(--blue);
  transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.team-card__links a:hover {
  transform: translateY(-2px);
  background: var(--blue);
  color: var(--white);
}

.team-card__links svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

@media (max-width: 980px) {
  .team-grid {
    grid-template-columns: 1fr;
  }

  .team-hero__content {
    max-width: 680px;
  }
}

@media (max-width: 900px) {
  .team-hero {
    padding: 72px 0 28px;
  }

  .team-hero__content {
    max-width: 620px;
    padding-inline: 20px;
  }

  .team-hero__shape--one {
    width: 120px;
    top: 34px;
    left: -26px;
    opacity: 0.72;
  }

  .team-hero__shape--two {
    width: 100px;
    top: 34px;
    right: -20px;
    opacity: 0.72;
  }

  .team-hero__shape--three {
    width: 72px;
    bottom: 12px;
    left: 4%;
    opacity: 0.68;
  }
}

@media (max-width: 640px) {
  .team-hero {
    padding: 64px 0 24px;
  }

  .team-hero__content {
    max-width: 100%;
    padding-inline: 20px;
  }

  .team-hero__content h1 {
    font-size: clamp(2.4rem, 10vw, 4rem);
    line-height: 0.96;
  }

  .team-hero__content p {
    max-width: 32ch;
    margin-inline: auto;
  }

  .team-hero__shape--one {
    width: 92px;
    top: 18px;
    left: -28px;
    opacity: 0.58;
  }

  .team-hero__shape--two {
    width: 86px;
    top: 18px;
    right: -22px;
    opacity: 0.58;
  }

  .team-hero__shape--three {
    width: 58px;
    bottom: 8px;
    left: 2%;
    opacity: 0.54;
  }

  .team-card {
    border-radius: 24px;
  }

  .team-card__body {
    padding: 22px 18px 20px;
  }
}

@media (max-height: 760px) {
  .team-hero {
    padding-top: 64px;
    padding-bottom: 24px;
  }

  .team-hero__shape--one {
    width: 110px;
    top: 22px;
    left: -20px;
    opacity: 0.65;
  }

  .team-hero__shape--two {
    width: 100px;
    top: 18px;
    right: -18px;
    opacity: 0.65;
  }

  .team-hero__shape--three {
    width: 70px;
    bottom: 8px;
    left: 6%;
    opacity: 0.6;
  }
}