.team-section {
  position: relative;
  display: grid;
  min-height: calc(100svh - var(--header-height));
  grid-template-rows: auto minmax(0, 1fr);
  padding: calc(var(--header-height) + clamp(1.5rem, 3.8vh, 3rem)) var(--gutter)
    max(
      clamp(2rem, 5vh, 4rem),
      calc(var(--viewport-footer-rail-height) + var(--viewport-footer-art-gap))
    );
  border-top: 1px solid var(--hairline);
  background: var(--page);
}

main > #for-agents {
  scroll-margin-top: 0;
}

.safe-harbor.is-dissolving-to-team {
  opacity: 0;
  transition: opacity 720ms cubic-bezier(0.4, 0, 0.2, 1);
}

.safe-harbor .section-content h2 {
  max-width: 76rem;
  font-size: clamp(2.5rem, 3.5vw, 3.85rem);
  letter-spacing: -0.045em;
  line-height: 1.02;
}

@media (min-width: 801px) {
  .safe-harbor {
    min-height: calc(100svh - var(--header-height));
    grid-template-rows: auto auto;
    align-content: start;
  }

  .safe-harbor .section-content {
    padding: clamp(2rem, 5vh, 3.5rem) 0 0;
  }

  .safe-harbor blockquote {
    align-self: start;
    margin: clamp(2rem, 4vh, 3rem) 0;
  }
}

.team-section.is-dissolve-preview {
  position: fixed;
  z-index: 60;
  inset: 0;
  width: 100%;
  max-height: 100svh;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 720ms cubic-bezier(0.4, 0, 0.2, 1);
}

.team-section.is-dissolve-preview.is-visible {
  opacity: 1;
}

.team-section.is-section-handoff-source,
.faq.is-section-handoff-source,
#account-access.is-section-handoff-source {
  opacity: 0;
  transition: opacity 720ms cubic-bezier(0.4, 0, 0.2, 1);
}

.faq.is-dissolve-preview {
  position: fixed;
  z-index: 60;
  inset: 0;
  width: 100%;
  height: 100svh;
  min-height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  transition: opacity 720ms cubic-bezier(0.4, 0, 0.2, 1);
}

#account-access.is-dissolve-preview {
  visibility: visible;
  pointer-events: none;
  transform: none;
  opacity: 0;
  transition: opacity 720ms cubic-bezier(0.4, 0, 0.2, 1);
}

.faq.is-dissolve-preview.is-visible,
#account-access.is-dissolve-preview.is-visible {
  opacity: 1;
}

.team-section.is-dissolve-preview--end,
.faq.is-dissolve-preview--end {
  top: auto;
  bottom: 0;
  height: auto;
  max-height: none;
  overflow: visible;
}

.team-section__lead {
  display: grid;
  grid-template-columns: minmax(2.5rem, 0.45fr) minmax(0, 11.55fr);
  align-items: end;
}

.team-section__number {
  align-self: start;
  padding-top: 0.35rem;
  color: var(--muted);
  font-size: 0.69rem;
  font-weight: 580;
  letter-spacing: 0.19em;
  line-height: 1;
}

.team-section__heading .eyebrow {
  margin-bottom: clamp(0.8rem, 1.6vh, 1.2rem);
}

.team-section__heading h2 {
  margin: 0;
  font-size: clamp(3.25rem, 5.2vw, 6rem);
  font-weight: 420;
  letter-spacing: -0.052em;
  line-height: 0.93;
}

.team-grid {
  display: grid;
  min-height: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  margin-top: clamp(1.4rem, 3.5vh, 2.75rem);
  border-top: 1px solid var(--hairline);
  border-left: 1px solid var(--hairline);
}

.team-card {
  display: grid;
  min-width: 0;
  grid-template-rows: clamp(8.75rem, 19vh, 11.5rem) minmax(0, 1fr);
  border-right: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  background: color-mix(in srgb, var(--page-raised) 76%, transparent);
}

.team-card__portrait {
  display: flex;
  min-height: 0;
  align-items: flex-end;
  margin: 0;
  padding: clamp(0.75rem, 1.5vw, 1.25rem);
  overflow: hidden;
  border-bottom: 1px solid var(--hairline-soft);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(17, 20, 22, 0.022)),
    var(--page);
}

.team-card__portrait img {
  display: block;
  width: clamp(6.6rem, 7.6vw, 8.3rem);
  height: 100%;
  border: 0.5px solid color-mix(in srgb, var(--ink) 24%, transparent);
  object-fit: cover;
  object-position: 50% 24%;
  filter: saturate(0.82) contrast(1.025);
}

.team-card__portrait--contain img {
  object-fit: contain;
  object-position: 50% 50%;
  background: #fff;
}

.team-card:nth-child(-n + 2) .team-card__portrait img {
  object-fit: contain;
  object-position: 50% 50%;
  background: #fff;
}

.team-card__portrait--seth img {
  filter: none;
}

.team-card__body {
  display: flex;
  min-height: 0;
  flex-direction: column;
  padding: clamp(1rem, 1.7vw, 1.55rem);
}

.team-card h3 {
  margin: 0;
  font-size: clamp(1.35rem, 1.85vw, 2rem);
  font-weight: 520;
  letter-spacing: -0.035em;
  line-height: 1;
}

.team-card__role {
  margin: 0.55rem 0 0.3rem;
  color: color-mix(in srgb, var(--blue) 66%, var(--ink));
  font-family: "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
  font-size: clamp(0.66rem, 0.72vw, 0.78rem);
  font-weight: 620;
  letter-spacing: 0.1em;
  line-height: 1.25;
  text-transform: uppercase;
}

.team-card__contact {
  margin: 0 0 clamp(0.75rem, 1.5vh, 1.05rem);
  font-family: "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
  font-size: clamp(0.7rem, 0.78vw, 0.84rem);
  font-style: normal;
  letter-spacing: 0.025em;
  line-height: 1.25;
}

.team-card__contact a {
  color: var(--muted);
  text-decoration-color: color-mix(in srgb, var(--ink) 28%, transparent);
  text-decoration-thickness: 0.5px;
  text-underline-offset: 0.25em;
}

.team-card__contact a:hover,
.team-card__contact a:focus-visible {
  color: var(--ink);
}

.team-card__bio-trigger {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding: clamp(0.78rem, 1.4vh, 1rem) 0 0;
  border: 0;
  border-top: 0.5px solid var(--hairline);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font-family: "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
  font-size: clamp(0.65rem, 0.72vw, 0.76rem);
  font-weight: 620;
  letter-spacing: 0.14em;
  line-height: 1;
  text-align: left;
}

.team-card__bio-trigger-mark {
  position: relative;
  display: block;
  width: 1.15rem;
  height: 0.7rem;
  flex: 0 0 auto;
  transition: transform 180ms ease;
}

.team-card__bio-trigger-mark::before,
.team-card__bio-trigger-mark::after {
  position: absolute;
  content: "";
}

.team-card__bio-trigger-mark::before {
  top: 50%;
  right: 0;
  left: 0;
  border-top: 0.5px solid currentColor;
}

.team-card__bio-trigger-mark::after {
  top: 50%;
  right: 0.05rem;
  width: 0.34rem;
  height: 0.34rem;
  border-top: 0.5px solid currentColor;
  border-right: 0.5px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}

.team-card__bio-trigger:hover .team-card__bio-trigger-mark,
.team-card__bio-trigger:focus-visible .team-card__bio-trigger-mark {
  transform: translateX(0.18rem);
}

.team-card__bio-trigger:focus-visible {
  outline: 1px solid color-mix(in srgb, var(--blue) 58%, var(--ink));
  outline-offset: 0.35rem;
}

.team-detail {
  width: min(72rem, calc(100vw - 2rem));
  touch-action: pan-y;
}

.team-detail__lead {
  display: grid;
  grid-template-columns: minmax(8rem, 11.5rem) minmax(0, 1fr);
  align-items: end;
  gap: clamp(1.25rem, 3vw, 2.5rem);
  padding-bottom: clamp(1.25rem, 2.5vw, 2rem);
  border-bottom: 0.5px solid var(--hairline);
}

.team-detail__portrait {
  display: flex;
  min-height: 0;
  align-items: flex-end;
  justify-content: center;
  margin: 0;
  padding: 0.7rem;
  border: 0.5px solid var(--hairline);
  background: var(--page);
}

.team-detail__portrait img {
  display: block;
  width: 100%;
  max-height: 13.5rem;
  object-fit: contain;
  object-position: 50% 50%;
}

.team-detail__portrait-crop {
  display: block;
  width: 100%;
  max-height: 13.5rem;
  aspect-ratio: 769 / 1024;
  overflow: hidden;
}

.team-detail__portrait-crop img {
  width: 112%;
  height: auto;
  max-width: none;
  max-height: none;
}

.team-detail__lead .eyebrow {
  margin: 0 0 0.8rem;
}

.team-detail__contact {
  margin: 1rem 0 0;
  font-family: "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
  font-size: clamp(0.72rem, 0.9vw, 0.86rem);
  font-style: normal;
  letter-spacing: 0.035em;
}

.team-detail__contact a,
.team-detail__source a {
  color: var(--muted);
  text-decoration-color: color-mix(in srgb, var(--ink) 30%, transparent);
  text-decoration-thickness: 0.5px;
  text-underline-offset: 0.25em;
}

.team-detail__contact a:hover,
.team-detail__contact a:focus-visible,
.team-detail__source a:hover,
.team-detail__source a:focus-visible {
  color: var(--ink);
}

.team-detail__bio {
  max-width: 74ch;
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.16rem);
  line-height: 1.62;
}

.team-detail__bio p {
  margin: 0;
}

.team-detail__bio p + p {
  margin-top: 1.15em;
}

.team-detail__source {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  padding-top: 0.85rem;
  border-top: 0.5px solid var(--hairline);
  color: var(--muted);
  font-family: "SFMono-Regular", Menlo, Monaco, Consolas, monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  line-height: 1.4;
}

.team-detail__source span {
  font-weight: 650;
}

@media (min-width: 900px) and (max-height: 880px) {
  .team-section {
    padding-top: calc(var(--header-height) + 1rem);
    padding-bottom: calc(var(--viewport-footer-rail-height) + var(--viewport-footer-art-gap));
  }

  .team-section__heading h2 {
    font-size: clamp(3rem, 4.5vw, 4.8rem);
  }

  .team-grid {
    margin-top: 1rem;
  }

  .team-card {
    grid-template-rows: 8.3rem minmax(0, 1fr);
  }

  .team-card__body {
    padding: 0.9rem 1rem;
  }

  .team-card__role {
    margin-bottom: 0.25rem;
  }

  .team-card__contact {
    margin-bottom: 0.55rem;
  }

  .team-card__bio-trigger {
    padding-top: 0.7rem;
  }
}

@media (max-width: 800px) and (hover: none), (max-width: 800px) and (pointer: coarse) {
  .team-section {
    min-height: auto;
    grid-template-rows: auto;
    padding: calc(var(--header-height) + 2rem) 1rem
      max(4rem, calc(var(--viewport-footer-rail-height) + var(--viewport-footer-art-gap)));
    background: var(--page);
  }

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

  .team-section__heading h2 {
    font-size: clamp(2.75rem, 13vw, 4.5rem);
  }

  .team-grid {
    grid-template-columns: 1fr;
    margin-top: 2rem;
  }

  .team-card {
    grid-template-rows: 10rem auto;
  }

  .team-card__portrait img {
    width: 7.5rem;
  }

  .team-card__body {
    min-height: 10.5rem;
  }

  .team-detail {
    width: calc(100vw - 1rem);
    max-height: calc(100svh - 1rem);
  }

  .team-detail__lead {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .team-detail__portrait {
    width: 8.5rem;
  }

  .team-detail__portrait img {
    max-height: 9.5rem;
  }

  .team-detail__portrait-crop {
    max-height: 9.5rem;
  }

  .team-detail__source {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.35rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .safe-harbor.is-dissolving-to-team,
  .team-section.is-dissolve-preview,
  .team-section.is-section-handoff-source,
  .faq.is-section-handoff-source,
  #account-access.is-section-handoff-source,
  .faq.is-dissolve-preview,
  #account-access.is-dissolve-preview {
    transition-duration: 0ms;
  }
}
