.team-section {
  margin-top: 40px;
}

.team-main-container {
  max-width: 1080px;
  margin: 0 auto 140px;
  padding: 64px 88px 88px;
  background: rgba(0, 0, 0, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  box-shadow: 0 48px 160px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(14px);
}

.team-description {
  margin: 0 auto 56px;
  max-width: 680px;
  text-align: center;
  line-height: 1.9;
  font-size: 1.05rem;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.86);
}

.team-grid {
  display: flex;
  flex-direction: column;
}

.team-item {
  position: relative;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(260px, 2fr);
  align-items: center;
  column-gap: clamp(32px, 6vw, 96px);
  padding: 60px 0;
  color: rgba(255, 255, 255, 0.92);
  opacity: 0;
  transform: translateY(24px);
  --team-delay: 0s;
}

.team-item::after {
  content: "";
  position: absolute;
  left: 10%;
  width: 80%;
  height: 1px;
  background: linear-gradient(
    90deg,
    rgba(63, 121, 255, 0) 0%,
    rgba(63, 121, 255, 0.45) 25%,
    rgba(255, 71, 115, 0.45) 75%,
    rgba(255, 71, 115, 0) 100%
  );
  box-shadow:
    0 0 10px rgba(63, 121, 255, 0.4),
    0 0 18px rgba(255, 71, 115, 0.35);
  filter: drop-shadow(0 0 8px rgba(63, 121, 255, 0.35)) drop-shadow(0 0 14px rgba(255, 71, 115, 0.3));
  transform: translateY(50%);
  pointer-events: none;
}

.team-item::after {
  bottom: 0;
}

.team-role {
  margin: 0;
  text-align: right;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  letter-spacing: 0.18em;
  font-weight: 400;
  color: #f9fbff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
  opacity: 0;
  transform: translateY(18px);
}

.team-role--compact {
  font-size: clamp(0.9rem, 1.2vw, 1rem);
  letter-spacing: 0.12em;
  color: #f9fbff;
  text-shadow: 0 0 10px rgba(255, 255, 255, 0.6);
}

.team-entities {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  letter-spacing: 0.12em;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.82);
  text-align: left;
  justify-self: start;
  width: 100%;
}

.team-entities li {
  margin: 0;
  padding: 0;
  opacity: 0;
  transform: translateY(18px);
  --line-index: 0;
  overflow-wrap: anywhere;
}

.team-entities li.team-entity--multi {
  text-indent: 0;
  padding-left: 0;
  margin: 0;
}

.team-item.is-visible {
  animation: teamFade 1s ease forwards;
  animation-delay: var(--team-delay, 0s);
}

.team-item.is-visible .team-role {
  animation: roleFade 1s ease forwards;
  animation-delay: calc(var(--team-delay, 0s) + 0.05s);
}

.team-item.is-visible .team-entities li {
  animation: nameFade 1s ease forwards;
  animation-delay: calc(var(--team-delay, 0s) + 0.1s + var(--line-index, 0) * 0.04s);
}

.team-item.team-item--note {
  grid-column: 1 / -1;
  display: flex;
  justify-content: center;
  padding: 80px 0;
}

.team-notes {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  font-size: clamp(0.9rem, 1.2vw, 1rem);
  line-height: 1.9;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.8);
}

@keyframes teamFade {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes roleFade {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes nameFade {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media screen and (max-width: 1024px) {
  .team-main-container {
    padding: 52px 30px 72px 74px;
    margin-bottom: 110px;
  }

  .team-item {
    column-gap: clamp(24px, 6vw, 80px);
  }

  .team-entities {
    letter-spacing: 0.1em;
  }
}

@media screen and (max-width: 720px) {
  .team-main-container {
    padding: 40px 26px 60px;
    margin-bottom: 90px;
  }

  .team-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    row-gap: 12px;
    padding: 30px 0 32px;
  }

  .team-role {
    width: 100%;
    text-align: center;
    letter-spacing: 0.16em;
  }

  .team-entities {
    width: 100%;
    align-items: center;
    text-align: center;
    letter-spacing: 0.08em;
    gap: 6px;
  }

  .team-entities li {
    width: 100%;
  }

  .team-item.team-item--note {
    padding: 40px;
  }
}

@media screen and (max-width: 600px) {
  .team-description {
    font-size: 0.98rem;
    letter-spacing: 0.05em;
  }
}
