/* Team section — home page bottom */
.nxs-team-row {
  margin-top: 1.75rem;
  margin-bottom: 0.5rem;
}

.nxs-team-section {
  width: 100%;
  padding: 1.25rem 1.35rem 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--br-16, 16px);
  background: rgb(13 17 24 / 75%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 12px 40px rgba(0, 0, 0, 0.24);
  box-sizing: border-box;
}

.nxs-team-head {
  margin-bottom: 1.1rem;
}

.nxs-team-eyebrow {
  display: inline-block;
  margin-bottom: 0.35rem;
  padding: 0.2rem 0.65rem;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f0d84a;
  background: rgba(240, 216, 74, 0.12);
  border: 1px solid rgba(240, 216, 74, 0.28);
  border-radius: 999px;
}

.nxs-team-title {
  margin: 0 0 0.35rem;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 800;
  color: var(--text-custom, #fff);
  letter-spacing: -0.02em;
}

.nxs-team-desc {
  margin: 0;
  max-width: 36rem;
  font-size: 0.85rem;
  line-height: 1.45;
  color: rgba(255, 255, 255, 0.55);
}

.nxs-team-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.nxs-team-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: center;
  padding: 0;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(165deg, rgba(22, 26, 34, 0.95) 0%, rgba(12, 14, 18, 0.92) 100%);
  box-shadow:
    0 10px 32px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}

.nxs-team-card__car-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: rgb(10 12 16);
}

.nxs-team-card__car-img,
.nxs-team-card__car-img--video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.nxs-team-card__car-photo--empty {
  background: linear-gradient(135deg, rgba(30, 34, 44, 1) 0%, rgba(14, 16, 22, 1) 100%);
}

.nxs-team-card:hover .nxs-team-card__car-img,
.nxs-team-card:hover .nxs-team-card__car-img--video {
  transform: scale(1.05);
}

.nxs-team-card__car-photo-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(12, 14, 18, 0.92) 100%);
  pointer-events: none;
}

.nxs-team-card__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 1rem 1.1rem;
  margin-top: -2.1rem;
  position: relative;
  z-index: 2;
}

.nxs-team-card__glow {
  position: absolute;
  top: -40%;
  left: 50%;
  width: 120%;
  height: 80%;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at center, rgba(240, 216, 74, 0.12), transparent 65%);
  pointer-events: none;
  opacity: 0.6;
  transition: opacity 0.3s ease;
}

.nxs-team-card:hover {
  transform: translateY(-4px);
  border-color: rgba(240, 216, 74, 0.28);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(240, 216, 74, 0.1);
}

.nxs-team-card:hover .nxs-team-card__glow {
  opacity: 1;
}

.nxs-team-card__avatar-wrap {
  position: relative;
  z-index: 1;
  display: block;
  width: 80px;
  height: 80px;
  margin-bottom: 0.65rem;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, #f0d84a 0%, #e8a64c 55%, rgba(255, 255, 255, 0.15) 100%);
  box-shadow: 0 6px 20px rgba(240, 216, 74, 0.25);
  text-decoration: none;
}

.nxs-team-card__avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: rgb(20 24 32);
  display: block;
}

.nxs-team-card__name {
  position: relative;
  z-index: 1;
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.nxs-team-card__name a {
  color: #fff;
  text-decoration: none;
  transition: color 0.2s ease;
}

.nxs-team-card__name a:hover {
  color: #f0d84a;
}

.nxs-team-card__role {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  width: 100%;
  padding: 0.55rem 0.65rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.nxs-team-card__role-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
}

.nxs-team-card__role-name {
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.3;
  color: rgba(255, 255, 255, 0.88);
}

html.nxs-home-motion .nxs-team-row.is-revealed .nxs-team-card {
  animation: nxs-team-card-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

html.nxs-home-motion .nxs-team-row.is-revealed .nxs-team-card:nth-child(1) { animation-delay: 0.05s; }
html.nxs-home-motion .nxs-team-row.is-revealed .nxs-team-card:nth-child(2) { animation-delay: 0.1s; }
html.nxs-home-motion .nxs-team-row.is-revealed .nxs-team-card:nth-child(3) { animation-delay: 0.15s; }
html.nxs-home-motion .nxs-team-row.is-revealed .nxs-team-card:nth-child(4) { animation-delay: 0.2s; }

@keyframes nxs-team-card-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1100px) {
  .nxs-team-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .nxs-team-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .nxs-team-card__car-photo {
    aspect-ratio: 16 / 9;
  }

  .nxs-team-card__body {
    margin-top: -1.75rem;
    padding: 0 0.85rem 1rem;
  }

  .nxs-team-card__avatar-wrap {
    width: 64px;
    height: 64px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nxs-team-card,
  html.nxs-home-motion .nxs-team-row.is-revealed .nxs-team-card {
    animation: none;
    transition: none;
  }

  .nxs-team-card:hover {
    transform: none;
  }
}
