/* Shared navigation and the Our Team page. */
.site-nav a[aria-current="page"] {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 6px;
}

.team-hero {
  position: relative;
  overflow: hidden;
  padding: 54px 0 76px;
  background: var(--navy);
  color: #fff;
}

.team-hero-inner {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 45px;
}

.team-back {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 42px;
  color: #cbd8e4;
  font-size: 11px;
  font-weight: 700;
}

.team-back:hover {
  color: #fff;
}

.team-hero h1 {
  margin-bottom: 24px;
  font-size: clamp(56px, 7vw, 92px);
}

.team-lede {
  max-width: 540px;
  margin: 0;
  color: #d8e1ea;
  font-size: 18px;
  line-height: 1.75;
}

.team-history {
  min-width: 180px;
  padding: 4px 0 4px 28px;
  border-left: 1px solid rgba(183, 193, 204, .55);
}

.team-history strong {
  color: var(--silver-light);
  font-family: var(--serif);
  font-size: 64px;
  letter-spacing: -.07em;
  line-height: 1;
}

.team-history strong span {
  color: var(--silver);
  font-size: 32px;
}

.team-history p {
  margin: 12px 0 0;
  color: #cbd8e4;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.team-section {
  padding: 94px 0 105px;
  background: var(--paper);
}

.team-layout {
  display: block;
}

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

.team-intro h2 {
  margin: 0 0 26px;
  color: var(--navy);
  font-size: clamp(38px, 4.3vw, 55px);
}

.team-intro h2 em,
.team-contact h2 em {
  color: var(--blue);
}

.team-intro > p:not(.eyebrow) {
  color: #607185;
  font-size: 15px;
  line-height: 1.8;
}

.team-company-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--silver-deep);
  color: var(--navy);
  font-size: 11px;
  font-weight: 800;
}

.team-roster {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.team-roster li {
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
}

.team-photo {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  background: var(--silver-light);
  border-bottom: 1px solid var(--line);
}

.team-photo::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid #c5d0da;
  pointer-events: none;
}

.team-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-photo-label {
  color: #53677b;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.team-member-info {
  padding: 24px;
}

.team-number {
  position: absolute;
  top: 23px;
  left: 24px;
  color: #53677b;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .07em;
}

.team-roster h3 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: clamp(25px, 2.5vw, 32px);
  letter-spacing: -.04em;
}

.team-role {
  margin: 0;
  color: var(--blue);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.7;
}

.team-contact {
  padding: 62px 0;
  background: var(--silver-light);
}

.team-contact-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 45px;
}

.team-contact h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(34px, 3.8vw, 49px);
}

.team-contact p:not(.eyebrow) {
  margin: 18px 0 0;
  color: #566a7e;
  font-size: 14px;
}

.team-contact .hero-actions {
  align-items: center;
  justify-content: flex-end;
  gap: 20px;
}

.team-phone {
  color: var(--navy);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

/* The extra navigation link needs the mobile menu at tablet widths. */
@media (min-width: 901px) and (max-width: 1100px) {
  .site-nav {
    position: fixed;
    inset: 119px 0 auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 18px 28px 24px;
    background: #fff;
    box-shadow: 0 15px 28px rgba(11, 31, 58, .13);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: .2s;
  }

  .site-nav.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .site-nav > a:not(.nav-cta) {
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  .nav-cta {
    margin-top: 15px;
    text-align: center;
  }

  .menu-toggle {
    display: block;
  }

  .menu-toggle.active span:nth-child(2) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle.active span:nth-child(3) {
    opacity: 0;
  }

  .menu-toggle.active span:nth-child(4) {
    transform: translateY(-7px) rotate(-45deg);
  }
}

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

  .team-contact-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 28px;
  }

  .team-contact .hero-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .team-hero {
    padding: 34px 0 50px;
  }

  .team-hero-inner {
    display: block;
  }

  .team-back {
    margin-bottom: 32px;
  }

  .team-hero h1 {
    font-size: 58px;
  }

  .team-lede {
    font-size: 16px;
  }

  .team-history {
    margin-top: 30px;
    padding-left: 18px;
  }

  .team-history strong {
    font-size: 43px;
  }

  .team-history strong span {
    font-size: 23px;
  }

  .team-section {
    padding: 62px 0 70px;
  }

  .team-layout {
    display: block;
  }

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

  .team-roster {
    grid-template-columns: minmax(0, 1fr);
  }

  .team-member-info {
    padding: 22px;
  }

  .team-roster h3 {
    font-size: 28px;
  }

  .team-role {
    font-size: 13px;
  }

  .team-contact {
    padding: 49px 0;
  }
}
