.member-team {
  --team-photo-width: 400px;
  padding: 96px 0 112px;
  background: #faf8f4;
}

.member-team .container {
  max-width: 1168px;
}

.team-eyebrow {
  font-family: 'Cormorant Garamond', serif;
  font-size: .875rem;
  font-weight: 600;
  letter-spacing: .14em;
  color: var(--main-dark);
  line-height: 1.6;
}

.team-intro {
  margin-bottom: 64px;
  text-align: center;
}

.team-intro h2 {
  margin: 16px 0 20px;
  font-size: clamp(1.625rem, 3vw, 2.25rem);
  letter-spacing: .06em;
}

.team-intro > p:last-child {
  color: var(--text-light);
  font-size: .9375rem;
  line-height: 2;
}

.team-leader {
  display: grid;
  grid-template-columns: minmax(0, var(--team-photo-width)) minmax(0, 1fr);
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
  padding-bottom: 80px;
  margin-bottom: 80px;
  border-bottom: 1px solid #dce4de;
}

.team-portrait {
  display: block;
  overflow: hidden;
  border-radius: 16px;
  background: #e6ecdf;
}

.team-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center top;
}

.team-leader .team-photo {
  aspect-ratio: 1200 / 1666;
}

.team-leader-title {
  margin: 20px 0 24px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  line-height: 1.8;
  letter-spacing: .06em;
}

.team-leader-signature {
  margin-top: 28px;
}

.team-message-link {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  margin-top: 28px;
  padding: 8px 0;
  border-bottom: 1px solid var(--main-dark);
  color: var(--main-dark);
  font-size: .875rem;
  transition: color .2s;
}

.team-message-link:hover {
  color: var(--heading);
}

.team-message-link:focus-visible {
  outline: 2px solid var(--main-dark);
  outline-offset: 6px;
}

.team-group + .team-group {
  margin-top: 80px;
}

.team-group-heading {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 36px;
  padding-left: 20px;
  border-left: 3px solid var(--main);
}

.team-group-heading h2 {
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  line-height: 1.8;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, var(--team-photo-width)));
  justify-content: space-between;
  column-gap: 56px;
  row-gap: 52px;
}

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

.team-info {
  padding: 24px 4px 0;
}

.team-role {
  color: var(--main-dark);
  font-size: .8125rem;
  font-weight: 500;
  line-height: 1.8;
}

.team-info .team-role {
  min-height: 2.925rem;
}

.team-name {
  margin: 8px 0 16px;
  font-size: 1.625rem;
  letter-spacing: .08em;
}

.team-msg {
  font-size: .9375rem;
  color: var(--text-light);
  line-height: 2;
}

.team-mobile-break {
  display: none;
}

@media (min-width: 641px) {
  .team-card .team-photo {
    aspect-ratio: 1200 / 1666;
  }
}

@media (max-width: 900px) {
  .member-team {
    --team-photo-width: 320px;
  }

  .team-leader {
    gap: 32px;
  }

  .team-grid {
    column-gap: 24px;
    row-gap: 40px;
  }

  .team-info {
    padding: 20px 0 0;
  }

  .team-name {
    font-size: 1.375rem;
  }
}

@media (max-width: 640px) {
  .member-team {
    padding: 56px 0 64px;
  }

  .member-team .container {
    padding: 0 20px;
  }

  .team-intro {
    margin-bottom: 36px;
  }

  .team-leader {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    padding-bottom: 48px;
    margin-bottom: 48px;
  }

  .team-leader-title {
    margin: 12px 0 20px;
  }

  .team-group + .team-group {
    margin-top: 56px;
  }

  .team-group-heading {
    padding-left: 16px;
    margin-bottom: 28px;
  }

  .team-grid {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 40px;
  }

  .team-info .team-role {
    min-height: 0;
  }

  .team-name {
    font-size: 1.5rem;
    margin: 8px 0 12px;
  }

  .team-mobile-break {
    display: inline;
  }
}
