.team-profile-hero {
  padding: 22px clamp(16px, 4vw, 56px) 46px;
}

.page-lena-profile .team-profile-hero {
  background: linear-gradient(115deg, var(--sdg-navy-950), var(--sdg-navy-800));
}

.team-profile-hero__inner {
  max-width: 1180px;
  margin-inline: auto;
}

.team-profile-hero__back,
.team-profile-hero__action {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  min-height: 44px;
  font: 700 .875rem/1.3 var(--font-body);
  text-decoration: none;
}

.team-profile-hero__back {
  margin-bottom: 8px;
  color: var(--sdg-blue-100);
}

.team-profile-hero__back:hover { text-decoration: underline; }
.team-profile-hero__back:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }

.team-profile-hero__panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.16fr);
  grid-template-rows: minmax(min-content, 1fr) minmax(min-content, 1fr);
  column-gap: clamp(24px, 4vw, 64px);
  row-gap: 24px;
  padding: clamp(26px, 3vw, 44px) clamp(26px, 4vw, 62px);
  border: 1px solid rgb(255 255 255 / 60%);
  border-radius: 24px;
  color: var(--sdg-navy-950);
  background: linear-gradient(115deg, #f7f9fd 4%, var(--sdg-blue-100) 93%);
}

.team-profile-hero__identity {
  grid-area: 1 / 1;
  align-self: end;
}

.team-profile-hero__identity h1 {
  margin: 0;
  color: var(--sdg-navy-950);
  font: 400 clamp(4.2rem, 7.5vw, 7rem)/.9 var(--font-display);
  text-transform: uppercase;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.team-profile-hero--provider .team-profile-hero__identity h1 {
  font-size: clamp(3.25rem, 5.5vw, 5.375rem);
}

.team-profile-hero__role {
  margin: 9px 0 0;
  color: var(--sdg-navy-800);
  font-size: clamp(1rem, 1.55vw, 1.375rem);
  font-weight: 700;
  line-height: 1.35;
}

.team-profile-hero__portrait {
  grid-area: 1 / 2 / span 2;
  align-self: center;
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid rgb(255 255 255 / 74%);
  border-radius: 16px;
  box-shadow: 0 10px 25px rgb(13 33 68 / 12%);
}

.team-profile-hero__detail {
  grid-area: 2 / 1;
  align-self: start;
}

.team-profile-hero__detail p {
  max-width: 38ch;
  margin: 0;
  font-size: 1rem;
  line-height: 1.6;
  text-wrap: pretty;
}

.team-profile-hero__action {
  gap: 18px;
  min-height: 46px;
  margin-top: 24px;
  padding: 10px 18px;
  border-radius: 8px;
  color: #fff;
  background: var(--sdg-navy-900);
}

.team-profile-hero__action:hover { background: var(--sdg-navy-800); }
.team-profile-hero__action:first-child { margin-top: 0; }
.team-profile-hero__action:focus-visible { outline: 2px solid var(--sdg-navy-950); outline-offset: 4px; }
.team-profile-hero__back span,
.team-profile-hero__action span { font-size: 1.125em; }

#team-profile-bio,
.page-lena-profile #lena-approach-title { scroll-margin-top: 110px; }
.team-profile-hero + .legacy-layout { margin-top: 0; }

@media (max-width: 760px) {
  .team-profile-hero { padding-block: 8px 26px; }
  .team-profile-hero__back { margin-bottom: 4px; }

  .team-profile-hero__panel {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto;
    grid-template-areas: "identity" "portrait" "detail";
    gap: 15px;
    padding: 20px;
    border-radius: 18px;
  }

  .team-profile-hero__identity { grid-area: identity; }
  .team-profile-hero__identity h1 { font-size: clamp(3rem, 13vw, 4.2rem); }
  .team-profile-hero--provider .team-profile-hero__identity h1 { font-size: clamp(2.625rem, 10.5vw, 3.5rem); }
  .team-profile-hero__role { margin-top: 5px; }
  .team-profile-hero__portrait { grid-area: portrait; border-radius: 11px; }
  .team-profile-hero__detail { grid-area: detail; }
  .team-profile-hero__detail p { font-size: .9375rem; }
  .team-profile-hero__action { margin-top: 13px; }
}
