/* CH Media Mind — team page extensions built on the main site system */

.team-page {
  background: var(--c-grey-light);
}

.team-page .nav__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: invert(1);
}

.team-page .nav.is-on-dark .nav__logo img {
  filter: none;
}

.team-page:has(.nav__burger.is-open) .nav__logo img {
  filter: invert(1);
}

.team-page:has(.nav__burger.is-open) .nav {
  color: var(--c-black);
}

.team-page :focus-visible {
  outline: 2px solid var(--c-lime);
  outline-offset: 4px;
}

.team-statement {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--c-white);
  padding-top: calc(var(--nav-h) + clamp(4rem, 6vw, 7rem));
  padding-bottom: clamp(3rem, 4vw, 4.5rem);
}

.team-statement__cymatics {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0.94;
  pointer-events: none;
}

.team-statement .best-cases__inner {
  position: relative;
  z-index: 1;
}

.team-statement__title {
  max-width: 11ch;
  margin: 0 auto clamp(4rem, 7vw, 7rem);
  font-family: var(--font-marquee);
  font-size: clamp(4.5rem, 9vw, 11rem);
  font-weight: 400;
  line-height: 0.82;
  letter-spacing: -0.045em;
  text-align: center;
}

.team-statement .best-cases__pitch {
  max-width: 80vw;
}

/* Team directory — the black/white/lime language of the Insights screen. */

.team-roster {
  position: relative;
  min-height: 100svh;
  padding-top: clamp(3rem, 4vw, 4.5rem);
  padding-bottom: var(--section-pad-y);
  background: var(--c-black);
  color: var(--c-white);
}

.team-roster__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 clamp(2rem, 4vw, 5rem);
}

.team-member {
  min-height: 22rem;
  display: flex;
  flex-direction: column;
  padding: 1.4rem 0 clamp(4rem, 7vw, 7rem);
  border-top: 1px solid rgba(255, 255, 255, 0.45);
}

.team-member__role {
  min-height: 3.5em;
  max-width: 32ch;
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-style: italic;
  font-weight: 300;
  line-height: 1.35;
}

.team-member h3 {
  margin-top: 0;
  font-family: var(--font-marquee);
  font-size: clamp(2.8rem, 4vw, 5rem);
  font-weight: 400;
  line-height: 0.86;
  letter-spacing: -0.035em;
  transition: color var(--dur-fast) var(--ease-out);
}

.team-member:hover h3 {
  color: var(--c-lime);
}

.team-member > p:last-child {
  max-width: 34ch;
  min-height: 5.8em;
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(1rem, 0.92rem + 0.22vw, 1.125rem);
  font-style: italic;
  font-weight: 300;
  line-height: 1.45;
}

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

@media (max-width: 767px) {
  .team-statement .best-cases__pitch {
    max-width: 88vw;
  }

  .team-statement__title {
    margin-bottom: 3rem;
  }

  .team-roster__grid {
    grid-template-columns: 1fr;
  }

  .team-member {
    min-height: 18rem;
  }

  .team-member > p:last-child {
    min-height: 0;
  }
}

@media (max-width: 479px) {
  .team-statement__title {
    font-size: 4.5rem;
  }

  .team-member h3 {
    font-size: 3.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .team-member h3 {
    transition: none;
  }
}
