.team-heading {
  display: grid;
  grid-template-columns: 1fr minmax(16rem, 26rem);
  align-items: end;
  gap: clamp(2rem, 6vw, 6rem);
  margin-bottom: clamp(2rem, 4vw, 3.75rem);
}

.team-heading #people-title {
  max-width: 18ch;
  font: 640 clamp(2.35rem, 3.4vw, 3.25rem)/1.07 NmOnest, Arial, sans-serif;
  letter-spacing: -.045em;
}

.team-heading > p {
  max-width: 42ch;
  font-size: 1rem;
  line-height: 1.6;
}

.team-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: clamp(1rem, 2vw, 2rem);
  row-gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.team-person {
  min-width: 0;
}

.team-portrait {
  width: 100%;
  height: clamp(11rem, 17vw, 15rem);
  object-fit: contain;
  object-position: center bottom;
  background: #e8e2f0;
}

.team-person:nth-child(2) .team-portrait {
  background: #eee3cf;
}

.team-person:nth-child(3) .team-portrait {
  background: #dde5ed;
}

.team-person:nth-child(4) .team-portrait {
  background: #e1e8d3;
}

.team-caption {
  padding-block: 1.15rem .2rem;
}

.team-caption h3 {
  font: 650 clamp(1.5rem, 2vw, 2rem)/1.15 NmOnest, Arial, sans-serif;
  letter-spacing: -.035em;
}

.team-role,
.team-story {
  max-width: 33ch;
  margin-top: .5rem;
  font-size: 1rem;
  line-height: 1.45;
}

.team-role {
  font-weight: 550;
}

.team-values {
  margin-top: clamp(2.1rem, 4vw, 3.75rem);
  padding-top: 1.35rem;
  border-top: 1px solid var(--line);
}

.team-values h3 {
  font: 600 1rem/1.4 NmOnest, Arial, sans-serif;
}

.team-values dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem 2.5rem;
  margin: 1.1rem 0 0;
}

.team-values dt {
  color: var(--deep-blue);
  font: italic 1.25rem/1.35 Georgia, serif;
}

.team-values dd {
  max-width: 34ch;
  margin: .35rem 0 0;
  font-size: .96875rem;
  line-height: 1.5;
}

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

  .team-portrait {
    height: 13.5rem;
  }
}

@media (max-width: 760px) {
  .team-heading {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .team-heading #people-title {
    font-size: clamp(2rem, 6vw, 2.5rem);
  }
}

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

  .team-list {
    grid-template-columns: 1fr;
    row-gap: 0;
  }

  .team-person {
    display: grid;
    grid-template-columns: minmax(5.5rem, 32%) minmax(0, 1fr);
    align-items: center;
    gap: 1.1rem;
    padding-block: 1.1rem;
    border-top: 1px solid var(--line);
  }

  .team-portrait {
    height: auto;
    aspect-ratio: 1;
  }

  .team-caption {
    padding-block: 0;
  }

  .team-role,
  .team-story {
    font-size: .96875rem;
  }
}
