
.team-hero {
  display: grid;
  /* min-height: 520px; */
  margin-bottom: 22px;
  border: 1px solid rgba(46, 84, 151, 0.18);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(46, 84, 151, 0.16), rgba(232, 166, 2, 0.08)),
    var(--card);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.14);
  isolation: isolate;
}

.team-hero::before,
.team-hero::after,
.team-hero > * {
  grid-area: 1 / 1;
}

.team-hero::before {
  content: "";
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(7, 16, 36, 0.78), rgba(7, 16, 36, 0.20) 46%, rgba(7, 16, 36, 0.08)),
    linear-gradient(0deg, rgba(7, 16, 36, 0.40), transparent 42%);
}

.team-hero::after {
  content: "";
  z-index: 3;
  pointer-events: none;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24);
}

.team-hero img {
  z-index: 1;
  width: 100%;
  height: 100%;
  /* min-height: 520px; */
  max-height: none;
  border: 0;
  object-fit: cover;
  object-position: center 44%;
  transform: scale(1.015);
}

.team-hero-copy {
  z-index: 4;
  align-self: end;
  max-width: 800px;
  padding: 0 0 35px 40px;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.28);
}

.team-hero-kicker {
  width: fit-content;
  margin: 0 0 12px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.team-hero-copy h1 {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.12;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
}

.team-hero-copy p:not(.team-hero-kicker) {
  max-width: 850px;
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.1rem;
  line-height: 1.8;
}

.team-hero-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* min-height: 42px; */
  margin-top: 22px;
  margin-right: 8px;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1.5px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.92);
  font-weight: 700;
  text-shadow: none;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
}

.team-hero-link:hover {
  color: var(--accent);
  filter: brightness(1.04);
  border-color: var(--primary);
}

.about-news {
  margin-top: 0;
}

[data-theme="dark"] .team-hero {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: 0 22px 56px rgba(0, 0, 0, 0.36);
}

@media (max-width: 1400px) {
  .team-hero {
    min-height: 470px;
  }

  .team-hero img {
    min-height: 470px;
  }
}

@media (max-width: 980px) {
  .team-hero {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .team-hero::before {
    background:
      linear-gradient(0deg, rgba(7, 16, 36, 0.82), rgba(7, 16, 36, 0.26) 54%, rgba(7, 16, 36, 0.08)),
      linear-gradient(90deg, rgba(7, 16, 36, 0.42), transparent 58%);
  }

  .team-hero img {
    min-height: 0;
    object-position: center center;
    transform: none;
  }

  .team-hero-copy {
    max-width: 100%;
    padding: 0 0 20px 25px;
  }

  .team-hero-copy p:not(.team-hero-kicker) {
    max-width: 680px;
  }
}

@media (max-width: 640px) {
  .page {
    padding-top: 92px;
  }

  .team-hero {
    aspect-ratio: auto;
    min-height: 0;
    background: var(--card);
  }

  .team-hero::before {
    background: linear-gradient(0deg, rgba(7, 16, 36, 0.86), rgba(7, 16, 36, 0.20) 62%, transparent);
  }

  .team-hero img {
    height: auto;
    min-height: 0;
    object-fit: contain;
  }

  .team-hero-copy {
    align-self: end;
    padding: 0 0 15px 13px;
  }

  .team-hero-kicker {
    display: none;
    /* margin-bottom: 8px;
    padding: 3px 5px;
    font-size: 0.65rem; */
  }
  
  .team-hero-copy h1 {
    font-size: 1.1rem;
  }

  .team-hero-copy p:not(.team-hero-kicker) {
    display: none;
    /* margin-top: 5px;
    font-size: 0.75rem; */
  }

  .team-hero-link {
    margin-top: 12px;
    margin-right: 5px;
    padding: 3px 5px;
    font-size: 0.75rem;
    border-radius: 8px;
  }
}
