.teamSection {
  position: relative;
  overflow: hidden;
  padding: 5rem 0;
  border-bottom: 1px solid var(--site-border);
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.018), transparent 42%),
    linear-gradient(180deg, #ffffff 0%, var(--site-bg-alt) 100%);
}

.teamSection::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 82% 20%, rgba(15, 23, 42, 0.045), transparent 26%),
    linear-gradient(90deg, rgba(15, 23, 42, 0.028) 1px, transparent 1px),
    linear-gradient(180deg, rgba(15, 23, 42, 0.028) 1px, transparent 1px);
  background-size: auto, 34px 34px, 34px 34px;
  opacity: 0.3;
}

.teamHeader,
.teamFooter {
  position: relative;
  z-index: 1;
}

.teamHeader {
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 0.66fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.title {
  margin: 0.8rem 0 0;
  max-width: 12ch;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 0.95;
  font-weight: 400;
  letter-spacing: -0.05em;
  color: var(--site-text);
}

.subtitle {
  max-width: 34rem;
  margin: 2.25rem 0 0;
  color: var(--site-muted-bright);
  font-size: 1rem;
  line-height: 1.7;
}

.carouselShell {
  position: relative;
  z-index: 1;
  border: 1px solid var(--site-border);
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.028), transparent 34%),
    var(--site-surface);
  overflow: hidden;
}

.carouselContainer {
  overflow: hidden;
  padding: 1.5rem 0;
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}

.carouselTrack {
  display: flex;
  gap: 1rem;
  align-items: stretch;
  will-change: transform;
}

.memberCard {
  flex: 0 0 240px;
  min-width: 240px;
  display: grid;
  align-content: start;
  gap: 0.8rem;
  padding: 1.15rem;
  border: 1px solid var(--site-border);
  background:
    linear-gradient(180deg, rgba(15, 23, 42, 0.02), transparent 36%),
    var(--site-surface-alt);
  transition:
    border-color 180ms ease,
    transform 180ms ease,
    background 180ms ease;
}

.memberCard:hover {
  transform: translateY(-2px);
  border-color: var(--site-border-strong);
  background: var(--site-surface);
}

.avatarWrapper {
  position: relative;
  display: grid;
  justify-items: start;
  gap: 0.6rem;
}

.avatar {
  width: 76px;
  height: 76px;
  border: 1px solid var(--site-border);
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.badge {
  display: inline-flex;
  width: fit-content;
  padding: 0.18rem 0.46rem;
  border: 1px solid var(--site-border);
  background: rgba(15, 23, 42, 0.045);
  color: var(--site-muted-bright);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.steering {
  background: rgba(15, 23, 42, 0.08);
  color: var(--site-text);
}

.committer {
  background: rgba(15, 23, 42, 0.05);
}

.contributor {
  background: rgba(15, 23, 42, 0.035);
}

.memberName {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--site-text);
}

.memberRole {
  margin: 0;
  color: var(--site-muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.company {
  color: var(--site-muted-bright);
}

.teamFooter {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-top: 1rem;
}

.teamFooter p {
  max-width: 36rem;
  margin: 0;
  color: var(--site-muted);
  font-size: 0.95rem;
}

@media (max-width: 996px) {
  .teamHeader {
    grid-template-columns: 1fr;
  }

  .subtitle {
    margin-top: 0;
  }

  .teamFooter {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 768px) {
  .teamSection {
    padding: 3.5rem 0;
  }

  .memberCard {
    flex-basis: 190px;
    min-width: 190px;
    padding: 1rem;
  }

  .carouselTrack {
    gap: 0.75rem;
  }

  .avatar {
    width: 64px;
    height: 64px;
  }
}

@media (max-width: 480px) {
  .carouselContainer {
    padding: 1rem 0.75rem;
    mask-image: linear-gradient(to right, black, black 92%, transparent);
    -webkit-mask-image: linear-gradient(to right, black, black 92%, transparent);
  }

  .memberCard {
    flex-basis: min(16rem, calc(100vw - 4.5rem));
    min-width: min(16rem, calc(100vw - 4.5rem));
  }
}
