.team-page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1rem 4rem;
}

.team-hero {
  position: relative;
  text-align: center;
  padding: 3.5rem 1.5rem 3rem;
  margin-bottom: 2rem;
  border-radius: 0 0 20px 20px;
  overflow: hidden;
}

.team-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.12) 0%, rgba(59, 130, 246, 0.08) 50%, rgba(236, 72, 153, 0.06) 100%);
  z-index: 0;
}
.team-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.04) 0%, transparent 70%);
}

.team-hero-content {
  position: relative;
  z-index: 1;
}

.team-hero-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: #fff;
  margin: 0 0 0.75rem;
  letter-spacing: -0.01em;
}
.team-hero-title i {
  margin-right: 0.5rem;
  opacity: 0.6;
  font-size: 0.85em;
}

.team-hero-sub {
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.95rem;
  margin: 0 0 1.25rem;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.5;
}

.team-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
}
.team-hero-badge i {
  font-size: 0.75rem;
}

.team-filters {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.25rem;
  margin-bottom: 2.5rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.team-filters::-webkit-scrollbar {
  display: none;
}

.team-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.team-pill:hover {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.8);
  border-color: rgba(255, 255, 255, 0.15);
}
.team-pill.is-active {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}
.team-pill[data-filter]:not([data-filter=all]).is-active {
  background: color-mix(in srgb, var(--pill-color) 15%, transparent);
  border-color: color-mix(in srgb, var(--pill-color) 30%, transparent);
  color: var(--pill-color);
}

.team-pill-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.team-section {
  margin-bottom: 3rem;
  padding-bottom: 1.5rem;
}
.team-section:not(:last-child) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.team-section-header {
  margin-bottom: 1.5rem;
}

.team-section-left {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.team-section-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 0.3rem;
}

.team-section-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #fff;
  margin: 0;
  line-height: 1.3;
}

.team-section-desc {
  margin: 0.4rem 0 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.35);
  line-height: 1.55;
  max-width: 680px;
}

.team-subgroup {
  margin-bottom: 1.5rem;
}
.team-subgroup:last-child {
  margin-bottom: 0;
}

.team-subgroup-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0 0 1rem;
  padding-left: 0.25rem;
}

.team-subgroup-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.team-subgroup-count {
  font-size: 0.72rem;
  font-weight: 400;
  opacity: 0.5;
  margin-left: 0.15rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 200px));
  justify-content: center;
  gap: 1rem;
}

.team-card {
  --role-color: #808080;
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
}
.team-card.is-visible {
  animation: teamReveal 0.45s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.team-card:nth-child(1).is-visible {
  animation-delay: 0s;
}
.team-card:nth-child(2).is-visible {
  animation-delay: 0.05s;
}
.team-card:nth-child(3).is-visible {
  animation-delay: 0.1s;
}
.team-card:nth-child(4).is-visible {
  animation-delay: 0.15s;
}
.team-card:nth-child(5).is-visible {
  animation-delay: 0.2s;
}
.team-card:nth-child(6).is-visible {
  animation-delay: 0.25s;
}
.team-card:nth-child(7).is-visible {
  animation-delay: 0.3s;
}
.team-card:nth-child(8).is-visible {
  animation-delay: 0.35s;
}
.team-card:nth-child(9).is-visible {
  animation-delay: 0.4s;
}
.team-card:nth-child(10).is-visible {
  animation-delay: 0.45s;
}
.team-card:nth-child(11).is-visible {
  animation-delay: 0.5s;
}
.team-card:nth-child(12).is-visible {
  animation-delay: 0.55s;
}
.team-card:nth-child(13).is-visible {
  animation-delay: 0.6s;
}
.team-card:nth-child(14).is-visible {
  animation-delay: 0.65s;
}
.team-card:nth-child(15).is-visible {
  animation-delay: 0.7s;
}
.team-card:nth-child(16).is-visible {
  animation-delay: 0.75s;
}
.team-card:hover, .team-card:focus-visible {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.25), 0 0 16px color-mix(in srgb, var(--role-color) 10%, transparent);
  border-color: color-mix(in srgb, var(--role-color) 30%, transparent);
}
.team-card:focus-visible {
  outline: 2px solid var(--role-color);
  outline-offset: 2px;
}

@keyframes teamReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.team-card-top-accent {
  height: 3px;
  background: var(--role-color);
  opacity: 0.45;
  transition: opacity 0.3s;
}

.team-card:hover .team-card-top-accent {
  opacity: 1;
}

.team-card-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.25rem 0.75rem 1rem;
  gap: 0.4rem;
}

.team-card-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  background: rgba(0, 0, 0, 0.3);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--role-color) 35%, transparent);
  transition: box-shadow 0.3s ease;
  margin-bottom: 0.2rem;
}

.team-card:hover .team-card-avatar {
  box-shadow: 0 0 0 2px var(--role-color), 0 0 12px color-mix(in srgb, var(--role-color) 25%, transparent);
}

.team-card-name {
  font-weight: 600;
  font-size: 0.92rem;
  color: #fff;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.team-card-role {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.55rem;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 999px;
  border: 1px solid;
}

.team-card-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.35);
  margin-top: 0.1rem;
}

.team-card-flag {
  width: 16px;
  height: 12px;
  object-fit: contain;
}

.team-card-activity {
  font-size: 0.65rem;
  color: rgba(255, 255, 255, 0.25);
}
.team-card-activity i {
  font-size: 0.55rem;
  margin-right: 0.2rem;
}

.team-thanks {
  margin-top: 1rem;
  padding: 2rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.team-thanks-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 0.5rem;
}

.team-thanks-intro {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.4);
  margin: 0 0 1rem;
}

.team-thanks-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.team-thanks-list li {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
  line-height: 1.5;
  padding-left: 1rem;
  position: relative;
}
.team-thanks-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}
.team-thanks-list li strong {
  color: rgba(255, 255, 255, 0.75);
  font-weight: 600;
}

.team-thanks-license {
  display: block;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.25);
  margin-top: 0.1rem;
}

.team-contact {
  margin-top: 1rem;
  padding: 1.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.6;
}
.team-contact i {
  margin-right: 0.4rem;
  opacity: 0.5;
}
.team-contact a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.team-contact a:hover {
  color: #fff;
}

.team-empty {
  text-align: center;
  padding: 5rem 1rem;
  color: rgba(255, 255, 255, 0.25);
}
.team-empty i {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
  opacity: 0.5;
}

@media (max-width: 960px) {
  .team-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 180px));
  }
}
@media (max-width: 600px) {
  .team-hero {
    padding: 2.5rem 1rem 2rem;
  }
  .team-hero-title {
    font-size: 1.6rem;
  }
  .team-hero-sub {
    font-size: 0.85rem;
  }
  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
  .team-card-body {
    padding: 1rem 0.5rem 0.75rem;
  }
  .team-card-avatar {
    width: 52px;
    height: 52px;
  }
  .team-card-name {
    font-size: 0.82rem;
  }
  .team-card-role {
    font-size: 0.58rem;
  }
  .team-section-desc {
    font-size: 0.78rem;
  }
  .team-filters {
    margin-bottom: 1.75rem;
  }
}
@media (max-width: 380px) {
  .team-grid {
    grid-template-columns: 1fr;
  }
}
