/* Team page additions to the shared 2 St. Malo styles. */
.team-hero {
  min-height: 610px;
  height: 78vh;
  height: 78svh;
}

.team-hero .hero-image {
  object-position: center 50%;
}

.team-hero .hero-shade {
  background: none;
}

.team-hero .hero-content {
  padding-bottom: clamp(75px, 9vw, 120px);
}

.team-hero h1 {
  max-width: 900px;
  font-size: clamp(44px, 5.2vw, 76px);
  line-height: 1.08;
}

.team-hero .hero-link {
  margin-top: 34px;
}

.team-section {
  background: var(--paper);
}

.team-shell {
  max-width: 1280px;
}

.team-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.75fr);
  align-items: end;
  gap: clamp(45px, 8vw, 120px);
  padding-bottom: clamp(65px, 7vw, 100px);
  border-bottom: 1px solid var(--rule);
}

.team-intro h2 {
  font-size: clamp(40px, 4vw, 60px);
}

.team-intro > p {
  max-width: 470px;
}

.team-member {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.15fr);
  gap: clamp(45px, 8vw, 110px);
  align-items: start;
  padding-block: clamp(65px, 7vw, 100px);
  border-bottom: 1px solid var(--rule);
}

.team-portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
  background: var(--paper-deep);
}

.team-portrait figcaption {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 14px;
}

.team-member-content {
  max-width: 630px;
}

.team-member-content .eyebrow {
  margin-bottom: 22px;
}

.team-member h3 {
  font-size: clamp(36px, 3.6vw, 52px);
  line-height: 1.1;
}

.team-license {
  display: inline-block;
  margin-left: 10px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  line-height: 1.6;
  vertical-align: middle;
  white-space: nowrap;
}

.team-role {
  margin-top: 14px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.13em;
  line-height: 1.6;
}

.team-biography {
  margin-top: 30px;
}

.team-biography p + p {
  margin-top: 1.4em;
}

@media (max-width: 700px) {
  .team-hero {
    min-height: 530px;
    height: 75vh;
    height: 75svh;
  }

  .team-hero .hero-image {
    object-position: 58% center;
  }

  .team-hero .hero-content {
    padding-bottom: 70px;
  }

  .team-hero h1 {
    font-size: clamp(38px, 9.6vw, 54px);
    line-height: 1.1;
  }

  .team-hero .hero-link {
    margin-top: 27px;
  }

  .team-intro {
    grid-template-columns: minmax(0, 1fr);
    gap: 25px;
    padding-bottom: 50px;
  }

  .team-intro h2 {
    font-size: clamp(36px, 9vw, 48px);
  }

  .team-member {
    grid-template-columns: minmax(0, 1fr);
    gap: 35px;
    padding-block: 50px;
  }

  .team-portrait img {
    max-height: 600px;
  }

  .team-member h3 {
    font-size: clamp(34px, 8vw, 44px);
  }

  .team-biography {
    margin-top: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
