/* Team — was Team.module.css. The bundler's hashed class names are
   replaced by a plain c-Team_ prefix so the stylesheet stands alone. */

.c-Team_sticky {
  position: relative;
  width: 100%;
  height: 100svh;
  background-color: var(--base-1000);
}

.c-Team_sectionNav,
.c-Team_sectionFooter {
  position: absolute;
  left: 0;
  z-index: 10;
  width: 100%;
  pointer-events: none;
}

.c-Team_sectionNav {
  top: 0;
}

.c-Team_sectionFooter {
  bottom: 0;
}

.c-Team_frame {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  background-color: var(--base-200);
}

.pin-spacer:has(> [data-team-sticky]) {
  background-color: var(--base-200);
}

.c-Team_stickyHeader {
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  white-space: nowrap;
  color: var(--base-1000);
  will-change: transform, opacity;
}

.c-Team_cardContainer {
  position: relative;
  display: flex;
  width: 80%;
  transform: translateY(30px);
  perspective: 1000px;
  will-change: width;
}

.c-Team_card {
  position: relative;
  flex: 1;
  aspect-ratio: 5 / 7;
  transform-style: preserve-3d;
  transform-origin: top;
}

.c-Team_card1 {
  border-radius: 12px 0 0 12px;
}

.c-Team_card2 {
  border-radius: 0;
}

.c-Team_card3 {
  border-radius: 0 12px 12px 0;
}

.c-Team_cardFront,
.c-Team_cardBack {
  position: absolute;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: inherit;
  backface-visibility: hidden;
}

.c-Team_cardFront img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.c-Team_cardBack {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 2rem;
  text-align: center;
  transform: rotateY(180deg);
}

.c-Team_card1 .c-Team_cardBack {
  background-color: var(--base-800);
  color: var(--base-1000);
}

.c-Team_card2 .c-Team_cardBack {
  background-color: var(--base-300);
  color: var(--base-1000);
}

.c-Team_card3 .c-Team_cardBack {
  background-color: var(--base-500);
  color: var(--base-1000);
}

.c-Team_cardIndex {
  position: absolute;
  top: 1.5rem;
  left: 1.5rem;
  opacity: 0.4;
}

.c-Team_cardInfo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.c-Team_portrait {
  width: 45%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 50%;
}

.c-Team_portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.c-Team_cardInfo .c-Team_mono {
  opacity: 0.5;
}

.c-Team_cardBlock {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.c-Team_cardBlock h3 {
  font-size: clamp(1.5rem, 4vw, 4rem);
  font-size: 2rem;
}

@media (max-width: 1000px) {
  .c-Team_sticky {
    height: auto;
    overflow: visible;
  }

  .c-Team_sticky h2 {
    font-size: 2rem;
  }

  .c-Team_frame {
    gap: 2rem;
    height: auto;
    padding: 8rem 0.75rem;
    border-radius: 0;
  }

  .c-Team_stickyHeader {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    will-change: auto;
  }

  .c-Team_cardContainer {
    flex-direction: column;
    gap: 1rem;
    width: 100%;
    transform: none;
    perspective: none;
    will-change: auto;
  }

  .c-Team_card {
    flex: none;
    aspect-ratio: 1 / 1;
    border-radius: 12px;
    transform-style: flat;
    transform-origin: center;
  }

  .c-Team_card1,
  .c-Team_card2,
  .c-Team_card3 {
    border-radius: 12px;
  }

  .c-Team_cardFront {
    display: none;
  }

  .c-Team_cardBack {
    padding: 1.5rem;
    transform: none;
  }

  .c-Team_portrait {
    width: 35%;
  }

  .c-Team_cardInfo {
    gap: 1.25rem;
  }
}
