.team {
  --portrait-width: clamp(100px, 11.5vw, 165px);
}

.team-leads {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 64px);
}

.team-lead {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.lead-header {
  display: grid;
  grid-template-columns: var(--portrait-width) minmax(0, 1fr);
  align-items: center;
  gap: clamp(14px, 2.1vw, 32px);
  width: 100%;
}

.person-portrait {
  display: block;
  width: var(--portrait-width);
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 4px;
  background-color: var(--soft);
}

.portrait-pending {
  display: grid;
  place-items: center;
  color: #62729f;
  background: #ebedf2;
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 400;
  line-height: 1;
}

.lead-heading,
.researcher-heading {
  min-width: 0;
}

.person-role {
  display: block;
  color: var(--blue);
  font-size: 12px;
  line-height: 1.45;
  font-weight: 600;
}

.person-name {
  display: block;
  font-size: clamp(20px, 1.85vw, 30px);
  font-weight: 550;
  line-height: 1.2;
  letter-spacing: -.04em;
  overflow-wrap: break-word;
}

.lead-heading .person-name {
  margin-top: 7px;
}

.person-bio {
  margin: 0;
  padding-left: 15px;
  border-left: 2px solid #bdcaeb;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.person-bio a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: .16em;
}

.team-lead .person-bio {
  margin-top: 22px;
  max-width: 60ch;
}

.person-quote {
  margin: 0;
  color: #273b74;
  background: #edf1fa;
  padding: 16px 18px;
  font-size: 15px;
  font-style: italic;
  font-weight: 450;
  line-height: 1.65;
  letter-spacing: -.015em;
}

.team-lead .person-quote {
  max-width: 40ch;
  margin-top: 19px;
  padding: clamp(17px, 2.2vw, 29px);
  font-size: clamp(17px, 1.5vw, 22px);
  line-height: 1.55;
}

.team summary {
  cursor: pointer;
  list-style: none;
}

.team summary::-webkit-details-marker {
  display: none;
}

.person-toggle {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex: none;
  color: var(--blue);
  border: 1px solid #b4bedf;
  border-radius: 50%;
}

.person-toggle::before,
.person-toggle::after {
  content: "";
  grid-area: 1 / 1;
  width: 10px;
  height: 1.5px;
  background-color: currentColor;
}

.person-toggle::after {
  transform: rotate(90deg);
}

.team details[open] > summary .person-toggle {
  color: white;
  border-color: var(--blue);
  background: var(--blue);
}

.team details[open] > summary .person-toggle::after {
  display: none;
}

.team-researchers {
  --portrait-width: clamp(80px, 7.7vw, 116px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 0 clamp(18px, 2.5vw, 36px);
  margin-top: clamp(38px, 5vw, 80px);
}

.team-researcher {
  min-width: 0;
  border-top: 1px solid var(--line);
}

.team-researcher > summary {
  display: grid;
  grid-template-columns: var(--portrait-width) minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(9px, 1vw, 16px);
  padding: 17px 0;
}

.team-researcher .person-name {
  font-size: clamp(15px, 1.16vw, 18px);
  font-weight: 650;
  line-height: 1.3;
  letter-spacing: -.025em;
}

.team-researcher .person-role {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.researcher-details {
  display: grid;
  gap: 14px;
  padding-bottom: 20px;
}

.quote-selection {
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
}

@media (hover: hover) {
  .team summary:hover .person-toggle {
    color: white;
    background: var(--blue);
    border-color: var(--blue);
  }
}

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

@media (max-width: 680px) {
  .team {
    --portrait-width: clamp(86px, 25vw, 138px);
  }

  .team-leads {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .team-lead .person-bio,
  .team-lead .person-quote {
    margin-top: 15px;
  }

  .team-researchers {
    --portrait-width: clamp(72px, 22vw, 96px);
    grid-template-columns: 1fr;
  }

  .team-researcher > summary {
    gap: 13px;
    padding: 13px 0;
  }
}
