/**
 * Team page — Figma desktop 213:246; mobile 213:303 (≤640, 343 artboard).
 * Layout and tokens aligned with about.css / home.css.
 */

.tf-team {
  --team-design-width: 1200px;
  --team-mobile-width: 343px;
  --team-border: 1px solid rgb(255 255 255 / 0.4);
  --team-panel-bg: rgb(0 0 0 / 0.2);

  padding-top: 0;
  padding-bottom: 64px;
}

.tf-team__scale-root {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  overflow-x: clip;
}

.tf-team__shell {
  box-sizing: border-box;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
}

@media (min-width: 641px) {
  .tf-team__shell {
    width: var(--team-design-width);
    max-width: var(--team-design-width);
    flex-shrink: 0;
    zoom: min(1, calc((100vw - 32px) / var(--team-design-width)));
  }
}

.tf-team__body {
  box-sizing: border-box;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 77px;
  padding: 48px 64px 64px;
  background: var(--team-panel-bg);
}

.tf-team__title {
  margin: 0;
  font-family: var(--font-family-headline);
  font-weight: var(--font-weight-headline);
  font-size: 80px;
  line-height: 1.08;
  text-transform: uppercase;
  color: var(--color-white);
}

.tf-team__lede {
  margin: 0;
  font-family: var(--font-family-headline);
  font-weight: 500;
  font-size: 24px;
  line-height: 1.25;
  color: var(--color-orange);
}

h2.tf-team__lede {
  font-weight: 500;
}

.tf-team__lede--desktop {
  display: none;
}

.tf-team__hero {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 0;
  width: 100%;
}

.tf-team__hero-shot {
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  margin: 0;
  aspect-ratio: 4096 / 2731;
  border-radius: 24px;
  overflow: hidden;
  background: var(--color-black);
}

.tf-team__hero-shot .tf-lightbox img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tf-team__meet {
  display: flex;
  flex-direction: column;
  gap: 40px;
  padding: 40px;
  border: var(--team-border);
  box-sizing: border-box;
  width: 100%;
}

.tf-team__meet .tf-team__lede--desktop {
  display: block;
  font-size: clamp(28px, 4.8vw, 58px);
  line-height: 1.08;
}

.tf-team__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
  width: 100%;
}

.tf-team__card {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

.tf-team__card-photo {
  margin: 0;
  width: 100%;
  aspect-ratio: 484 / 421;
  border-radius: 24px;
  overflow: hidden;
  background: var(--color-black);
}

.tf-team__card-photo .tf-lightbox img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.tf-team__card-caption {
  margin: 0;
  padding: 0 16px;
  font-family: var(--font-family-body);
  font-size: var(--type-body-s);
  line-height: var(--type-body-leading);
  color: var(--color-white);
}

.tf-team__card-caption strong {
  font-weight: 700;
}

.tf-team__outreach {
  display: flex;
  flex-direction: column;
  gap: 77px;
  width: 100%;
}

.tf-team__outreach-head {
  margin: 0;
  font-family: var(--font-family-headline);
  font-weight: var(--font-weight-headline);
  font-size: 80px;
  line-height: 1.08;
  text-transform: uppercase;
  color: var(--color-white);
}

.tf-team__outreach-sub {
  margin: 0;
  font-family: var(--font-family-headline);
  font-weight: 500;
  font-size: clamp(28px, 4.8vw, 58px);
  line-height: 1.08;
  color: var(--color-orange);
}

.tf-team__stats {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 32px;
  width: 100%;
}

.tf-team__stat {
  flex: 1 1 0;
  min-width: 0;
  padding: 32px;
  border: var(--team-border);
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.tf-team__stat-value {
  margin: 0;
  font-family: var(--font-family-headline);
  font-weight: var(--font-weight-headline);
  font-size: 80px;
  line-height: 1.08;
  text-transform: uppercase;
  color: var(--color-white);
}

.tf-team__stat-label {
  margin: 0;
  font-family: var(--font-family-body);
  font-size: var(--type-body-xxl);
  line-height: var(--type-body-leading);
  color: var(--color-white);
}

.tf-team__outreach-photos {
  display: flex;
  flex-direction: row;
  gap: 32px;
  width: 100%;
}

.tf-team__outreach-photos figure {
  flex: 1 1 0;
  min-width: 0;
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  background: var(--color-black);
}

.tf-team__outreach-photos .tf-lightbox {
  height: auto;
}

.tf-team__outreach-photos .tf-lightbox img {
  display: block;
  width: 100%;
  height: auto;
}

.tf-team__outreach-copy {
  font-family: var(--font-family-body);
  font-size: var(--type-body-s);
  line-height: var(--type-body-leading);
  color: var(--color-white);
}

.tf-team__outreach-copy p {
  margin: 0 0 19px;
}

.tf-team__outreach-copy p:last-child {
  margin-bottom: 0;
}

.tf-team__footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
  width: 100%;
}

.tf-team__social {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 48px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.tf-team__social a {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 85px;
  height: 85px;
  border: 1px solid var(--color-white);
  border-radius: 42.5px;
  background: var(--color-black);
  transition: filter 0.15s ease;
}

.tf-team__social a:hover {
  filter: brightness(1.12);
}

.tf-team__social a:focus-visible {
  outline: 2px solid var(--color-orange);
  outline-offset: 4px;
}

.tf-team__social img {
  display: block;
  max-width: 100%;
  height: auto;
}

.tf-team__legal {
  text-align: center;
  font-family: var(--font-family-body);
  font-size: var(--type-body-s);
  line-height: var(--type-body-leading);
  color: var(--color-white);
}

.tf-team__legal p {
  margin: 0;
}

@media (max-width: 640px) {
  .tf-team__body {
    padding: 24px 16px;
    gap: 56px;
  }

  .tf-team__title {
    font-size: 42px;
    line-height: 1.1;
  }

  .tf-team__lede--mobile {
    font-size: 24px;
    line-height: 1.26;
  }

  .tf-team__lede--desktop {
    display: none !important;
  }

  .tf-team__hero {
    gap: 0;
  }

  .tf-team__hero-shot {
    border-radius: 8px;
  }

  .tf-team__meet {
    padding: 16px 16px 8px;
    gap: 0;
    border: var(--team-border);
  }

  .tf-team__meet .tf-team__lede--desktop {
    display: none !important;
  }

  .tf-team__grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .tf-team__card {
    gap: 16px;
    padding-bottom: 16px;
    max-width: 310px;
    width: 100%;
    margin: 0 auto;
  }

  .tf-team__card-photo {
    border-radius: 8px;
  }

  .tf-team__outreach-head {
    font-size: 42px;
  }

  .tf-team__outreach-sub {
    font-size: 24px;
    line-height: 1.26;
  }

  .tf-team__stats {
    gap: 8px;
  }

  .tf-team__stat {
    padding: 16px;
    border-radius: 24px;
    gap: 24px;
  }

  .tf-team__stat-value {
    font-size: 42px;
  }

  .tf-team__stat-label {
    font-size: var(--type-body-m);
  }

  .tf-team__outreach-photos {
    flex-direction: column;
    gap: 16px;
  }

  .tf-team__outreach-copy {
    font-size: var(--type-body-xs);
  }

  .tf-team__outreach {
    gap: 24px;
  }

  .tf-team__footer {
    gap: 15px;
    max-width: 343px;
    margin: 0 auto;
  }

  .tf-team__social {
    gap: 25.6px;
  }

  .tf-team__social a {
    width: 45.33px;
    height: 45.33px;
    border-radius: 22.67px;
  }

  .tf-team__legal {
    font-size: var(--type-body-xs);
  }
}

@media (min-width: 641px) {
  .tf-team__lede--mobile {
    display: none;
  }
}
