.team-page {
  min-width: 320px;
  overflow-x: hidden;
  background: var(--color-white);
}

.team-main {
  background: var(--color-white);
}

.team-hero {
  --team-hero-progress: 0;
  --team-hero-headline-top: var(--intro-content-center);

  position: relative;
  display: flex;
  height: var(--intro-screen-height);
  align-items: center;
  justify-content: center;
  padding: var(--site-header-height) 24px 0;
  text-align: center;
}

.team-hero h1 {
  position: fixed;
  top: var(--team-hero-headline-top);
  left: 50%;
  z-index: 1;
  width: min(920px, 100%);
  margin: 0;
  padding: 0 24px;
  opacity: calc(1 - var(--team-hero-progress, 0) * 0.86);
  font-size: clamp(32px, 2.8vw, 40px);
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.4px;
  transform: translate3d(-50%, -50%, 0);
  will-change: opacity;
}

.team-list-section {
  --team-list-shadow-progress: 0;

  position: relative;
  z-index: 2;
  padding: 60px 120px 120px;
  background: var(--color-white);
  box-shadow: 0 0 25px 0
    rgb(0 0 0 / calc(var(--team-list-shadow-progress, 0) * 10%));
}

.team-list-section.is-team-more-visible {
  padding-bottom: 0;
}

.team-list-section h2 {
  margin: 0;
  font-size: 48px;
  font-weight: 400;
  line-height: 1;
  text-align: center;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 64px 96px;
  margin-top: 160px;
}

.team-grid-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  cursor: pointer;
  text-align: left;
}

.team-grid-card[hidden] {
  display: none;
}

.team-grid-card__image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 0.78;
  overflow: hidden;
  background: #7e7e87;
}

.team-grid-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition:
    filter 420ms ease,
    transform 600ms var(--ease);
}

.team-grid-card:hover .team-grid-card__image img,
.team-grid-card:focus-visible .team-grid-card__image img {
  filter: grayscale(1);
  transform: scale(1.04);
}

.team-grid-card__copy {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 24px;
}

.team-grid-card__name {
  font-size: 28px;
  font-style: normal;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.28px;
}

.team-grid-card__role {
  margin-top: 0;
  font-size: 28px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.22;
}

.team-more {
  display: flex;
  height: 339px;
  align-items: center;
  justify-content: center;
}

.team-more[hidden] {
  display: none;
}

.team-more__button {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: var(--18, 18px);
  line-height: 1;
  letter-spacing: 1.62px;
  text-transform: uppercase;
}

.team-more__button > span:first-child {
  margin-bottom: 4px;
}

.team-more__icon {
  width: 40px;
  height: 40px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

@media (max-width: 767px) {
  .team-hero {
    --team-hero-headline-top: var(--intro-content-center);

    align-items: center;
    padding: var(--site-header-height) 24px 0;
  }

  .team-hero h1 {
    width: 100%;
    font-size: 32px;
    line-height: 1.2;
    letter-spacing: -0.32px;
  }

  .team-list-section {
    padding: 32px 24px 64px;
  }

  .team-list-section.is-team-more-visible {
    padding-bottom: 0;
  }

  .team-list-section h2 {
    font-size: 32px;
  }

  .team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px;
    justify-content: space-between;
    margin-top: 64px;
  }

  .team-grid-card {
    width: 100%;
    -webkit-tap-highlight-color: transparent;
  }

  .team-grid-card__image {
    width: 100%;
    height: auto;
    aspect-ratio: 71 / 91;
  }

  .team-grid-card:hover .team-grid-card__image img {
    filter: none;
    transform: none;
  }

  .team-grid-card:active .team-grid-card__image img {
    filter: grayscale(1);
    transform: scale(1.04);
  }

  .team-grid-card__copy {
    margin-top: 16px;
  }

  .team-grid-card.is-team-fade .team-grid-card__copy::after {
    position: absolute;
    inset: -2px -4px -4px;
    pointer-events: none;
    content: "";
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0) 0%,
      rgba(255, 255, 255, 0.08) 30%,
      rgba(255, 255, 255, 0.22) 62%,
      rgba(255, 255, 255, 0.42) 100%
    );
    -webkit-backdrop-filter: blur(1.6px);
    backdrop-filter: blur(1.6px);
    -webkit-mask-image: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.08) 0%,
      rgba(0, 0, 0, 0.28) 38%,
      rgba(0, 0, 0, 0.72) 100%
    );
    mask-image: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.08) 0%,
      rgba(0, 0, 0, 0.28) 38%,
      rgba(0, 0, 0, 0.72) 100%
    );
  }

  .team-grid-card__name {
    font-size: var(--24, 20px);
    font-style: normal;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.2px;
  }

  .team-grid-card__role {
    margin-top: 0;
    font-size: var(--24, 20px);
    font-style: italic;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: -0.2px;
  }

  .team-more {
    position: relative;
    z-index: 1;
    height: auto;
    margin-top: -72px;
  }

  .team-more__button {
    padding: 64px 0;
    font-size: 14px;
    letter-spacing: 1.26px;
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0) 0%,
      var(--color-white) 30%,
      var(--color-white) 100%
    );
  }

  .team-more__icon {
    width: 24px;
    height: 24px;
  }
}
