.team-page-header {
  overflow: visible;
}
.team-profile {
  width: min(78%, 100rem);
  margin-inline: auto;
  padding-block: 1.9rem;
  display: grid;
  grid-template-columns: minmax(0, 39fr) minmax(0, 55fr);
  grid-template-rows: auto auto auto;
  gap: 2.75rem clamp(1.5rem, 2.4vw, 3rem);
  align-items: start;
  color: #141414;
}
.profile-intro {
  grid-area: 1 / 2;
  text-align: center;
  padding-top: 1.55rem;
  font-size: clamp(1.1rem, 1.2vw, 1.5rem);
  font-weight: 700;
}
.profile-intro h1 {
  font-size: clamp(2rem, 2.95vw, 3.75rem);
  margin-bottom: 1.75rem;
}
.profile-intro p:last-child {
  margin-bottom: 0;
}
.profile-photo {
  grid-area: 1 / 1 / 3 / 2;
  width: 100%;
  height: auto;
}
.profile-story {
  grid-area: 2 / 2 / 4 / 3;
  font-size: clamp(1rem, 1.05vw, 1.35rem);
  line-height: 1.68;
}
.profile-story section + section {
  margin-top: 1.45rem;
}
.profile-fact {
  grid-area: 3 / 1;
  font-size: clamp(1rem, .95vw, 1.2rem);
  padding-inline: .6rem;
}
.profile-story h2, .profile-fact h2 {
  font-size: clamp(1.2rem, 1.25vw, 1.6rem);
  line-height: 1.3;
  margin-bottom: 1.45rem;
}
.profile-fact p {
  margin-bottom: .65rem;
}
@media (max-width: 900px) {
  .team-profile {
    width: calc(100% - 3rem);
  }
}
@media (max-width: 700px) {
  .team-profile {
    width: calc(100% - 2rem);
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 1.5rem;
  }
  .profile-intro, .profile-photo, .profile-story, .profile-fact {
    grid-area: auto;
  }
  .profile-intro, .profile-fact {
    padding: 0;
  }
  .profile-photo {
    max-width: 32rem;
    margin-inline: auto;
  }
}

.profile-photo-column {
  grid-area: 1 / 1 / 4 / 2;
  display: grid;
  gap: 1rem;
}

.profile-photo-column > .profile-photo,
.profile-photo-column > .profile-fact {
  grid-area: auto;
}

@media (max-width: 700px) {
  .profile-photo-column {
    display: contents;
  }

  .profile-story {
    grid-row: 3;
  }

  .profile-photo-column > .profile-fact {
    grid-row: 4;
  }
}
