.nld-team,
.team-page-content {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  container-type: inline-size;
}

body:has(.nld-team) .content-band,
body:has(.section-inner.team-page-content) .content-band {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

.nld-team,
.section-inner.team-page-content {
  position: relative;
  isolation: isolate;
  width: 100vw !important;
  max-width: none !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  padding: clamp(56px, 6vw, 92px) max(24px, calc((100vw - 1480px) / 2 + 24px)) clamp(70px, 7vw, 108px) !important;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background:
    linear-gradient(180deg, rgba(11, 13, 18, 0.62) 0%, rgba(8, 10, 14, 0.4) 18%, rgba(8, 10, 14, 0.68) 100%),
    url("team-background.png") center / cover no-repeat;
  background-attachment: scroll;
}

.nld-team::before,
.section-inner.team-page-content::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 50% 20%, rgba(255, 202, 69, 0.25), transparent 42%),
    linear-gradient(180deg, rgba(8, 10, 14, 0.1), rgba(8, 10, 14, 0.6));
  pointer-events: none;
}

.nld-team-head,
.team-head {
  display: none !important;
  max-width: 760px;
  margin: 0 0 34px;
}

.nld-team-eyebrow {
  display: inline-flex;
  margin: 0 0 18px;
  color: var(--cyan, #23d5ff);
  font-size: 0.82rem;
  font-weight: 850;
  text-transform: uppercase;
}

.nld-team-head h2,
.team-head h2 {
  margin: 0;
  color: var(--text, #f4f7fb);
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1.06;
}

.nld-team-head p:last-child,
.team-head p:last-child {
  margin: 16px 0 0;
  color: var(--muted, #aab6c6);
  font-size: 1.08rem;
}

.nld-team-grid,
.team-grid {
  position: relative;
  width: min(100%, 1480px) !important;
  margin: 0 auto !important;
  display: grid !important;
  grid-template-columns: repeat(3, minmax(280px, 1fr)) !important;
  align-items: stretch !important;
  gap: clamp(22px, 2.6vw, 36px) !important;
}

.nld-team-card,
.nld-team-empty,
.team-card,
.team-empty {
  overflow: hidden;
  border: 1px solid var(--line, rgba(255, 255, 255, 0.12));
  border-radius: var(--radius, 8px);
  background: rgba(18, 23, 32, 0.84);
  box-shadow: var(--shadow, 0 24px 70px rgba(0, 0, 0, 0.35));
}

.nld-team-card,
.team-card {
  min-width: 0;
  height: clamp(540px, 40vw, 650px) !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
}

.nld-team-photo,
.team-photo {
  aspect-ratio: 1 / 1 !important;
  height: auto !important;
  min-height: 0 !important;
  display: grid !important;
  flex: 0 0 auto !important;
  place-items: center !important;
  padding: clamp(8px, 1.2vw, 14px) !important;
  background:
    radial-gradient(circle at 50% 42%, rgba(35, 213, 255, 0.12), transparent 58%),
    linear-gradient(135deg, rgba(8, 10, 14, 0.96), rgba(18, 23, 32, 0.96));
}

.nld-team-photo img,
.team-photo img {
  width: 100% !important;
  height: 100% !important;
  display: block !important;
  object-fit: contain !important;
  object-position: center !important;
  border-radius: calc(var(--radius, 8px) - 2px) !important;
}

.nld-team-photo span,
.team-photo span {
  color: var(--text, #f4f7fb);
  font-size: 4rem;
  font-weight: 850;
  line-height: 1;
}

.nld-team-body,
.nld-team-empty,
.team-body,
.team-empty {
  padding: clamp(22px, 2.4vw, 30px);
}

.nld-team-body,
.team-body {
  min-height: 0 !important;
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  overflow: hidden !important;
}

.nld-team-body h3,
.nld-team-empty h3,
.team-body h3,
.team-empty h3 {
  margin: 0;
  color: var(--text, #f4f7fb);
  font-size: 1.22rem;
  line-height: 1.18;
  overflow-wrap: anywhere;
  min-height: 1.45em;
}

.nld-team-role,
.team-role {
  margin: 8px 0 16px;
  color: var(--cyan, #23d5ff);
  font-weight: 850;
  line-height: 1.35;
  min-height: 2.7em !important;
  max-height: 2.7em !important;
  overflow: hidden !important;
  display: -webkit-box !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.nld-team-description,
.nld-team-empty p,
.team-description,
.team-empty p {
  color: var(--muted, #aab6c6);
  line-height: 1.55;
}

.nld-team-description,
.team-description {
  max-height: calc(1.55em * 5) !important;
  overflow: hidden !important;
}

.nld-team-description :where(p, ul, ol),
.team-description :where(p, ul, ol) {
  margin: 0;
  color: inherit;
}

.nld-team-description :where(p, ul, ol) + :where(p, ul, ol),
.team-description :where(p, ul, ol) + :where(p, ul, ol) {
  margin-top: 12px;
}

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

  .nld-team-card,
  .team-card {
    height: clamp(520px, 78vw, 650px) !important;
  }
}

@media (max-width: 680px) {
  .nld-team-grid,
  .team-grid {
    grid-template-columns: 1fr !important;
  }

  .nld-team {
    padding: 24px 16px !important;
  }

  .section-inner.team-page-content {
    padding: 24px 16px !important;
  }

  .nld-team-card,
  .team-card {
    height: auto !important;
    min-height: 0 !important;
  }

  .nld-team-photo,
  .team-photo {
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
  }

  .nld-team-body,
  .team-body {
    min-height: 0 !important;
  }
}
