.team-page {
  background: #f5f2ec;
  color: #293335;
  font-family: "Rubik", sans-serif;
  padding-top: 72px;
}

.team-hero {
  background: #5b686b;
  color: #fff;
  padding: 5.5rem 0 7.5rem;
  position: relative;
  overflow: hidden;
}

.team-hero::after {
  content: "";
  position: absolute;
  width: 28rem;
  height: 28rem;
  right: -10rem;
  bottom: -18rem;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 50%;
  box-shadow: 0 0 0 4rem rgba(255, 255, 255, .035), 0 0 0 8rem rgba(255, 255, 255, .025);
}

.team-hero .container {
  position: relative;
  z-index: 1;
  max-width: 960px;
}

.team-eyebrow {
  color: #f0c86b;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .12em;
  margin-bottom: 1rem;
  text-transform: uppercase;
}

.team-hero h1 {
  color: #fff;
  font-size: clamp(2.6rem, 6vw, 4.8rem);
  font-weight: 700;
  line-height: 1.05;
  margin: 0 0 1.5rem;
}

.team-intro {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  line-height: 1.7;
  margin: 0;
  max-width: 830px;
}

.team-members {
  margin-top: -3.5rem;
  padding: 0 0 6rem;
  position: relative;
  z-index: 2;
}

.team-card {
  background: #fff;
  border-radius: 1rem;
  box-shadow: 0 1.25rem 3.5rem rgba(36, 48, 51, .13);
  display: grid;
  grid-template-columns: minmax(260px, .82fr) minmax(0, 1.18fr);
  margin-bottom: 3rem;
  min-height: 620px;
  overflow: hidden;
}

.team-card-reverse {
  grid-template-columns: minmax(0, 1.18fr) minmax(260px, .82fr);
}

.team-card-reverse .team-photo-wrap {
  grid-column: 2;
}

.team-card-reverse .team-profile {
  grid-column: 1;
  grid-row: 1;
}

.team-photo-wrap {
  min-height: 100%;
}

.team-photo {
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  width: 100%;
}

.team-profile {
  align-self: center;
  padding: clamp(2rem, 5vw, 4.5rem);
}

.team-role {
  color: #9a6e14;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .08em;
  margin-bottom: .65rem;
  text-transform: uppercase;
}

.team-profile h2 {
  color: #293335;
  font-size: clamp(2rem, 4vw, 3.15rem);
  font-weight: 700;
  line-height: 1.1;
  margin: 0 0 .6rem;
}

.team-credentials {
  color: #667376;
  font-size: 1.08rem;
  font-weight: 500;
  margin-bottom: 1.75rem;
}

.team-profile > p:not(.team-role):not(.team-credentials),
.team-profile li {
  font-size: 1rem;
  line-height: 1.7;
}

.team-profile h3 {
  color: #3c484b;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .07em;
  margin: 1.7rem 0 .65rem;
  text-transform: uppercase;
}

.team-profile ul {
  margin: 0;
  padding-left: 1.25rem;
}

.team-profile li {
  margin-bottom: .35rem;
  padding-left: .2rem;
}

.team-profile li::marker {
  color: #c18b1d;
}

.team-profile blockquote {
  border-left: 3px solid #e3b54d;
  color: #465255;
  font-size: 1.08rem;
  font-style: italic;
  line-height: 1.65;
  margin: 2rem 0 0;
  padding: .15rem 0 .15rem 1.25rem;
}

.team-footer {
  align-content: center;
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  height: 4rem;
  justify-content: center;
  padding: 0;
  position: relative;
}

@media (max-width: 767px) {
  .team-page {
    padding-top: 56px;
  }

  .team-hero {
    padding: 4rem 0 6.5rem;
  }

  .team-card,
  .team-card-reverse {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }

  .team-card-reverse .team-photo-wrap,
  .team-card-reverse .team-profile {
    grid-column: auto;
    grid-row: auto;
  }

  .team-photo-wrap {
    height: min(125vw, 570px);
  }

  .team-profile {
    padding: 2rem 1.4rem 2.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .team-page *,
  .team-page *::before,
  .team-page *::after {
    scroll-behavior: auto !important;
  }
}
