.single-team-member__hero {
  min-height: calc(100svh - var(--theme-header-height) - var(--theme-header-height) - var(--theme-section-padding));
  display: grid;
  grid-template-columns: repeat(2, 1fr);
}

/* Sticky wrapper stays separate from the view-transition-named element
   below — Chrome doesn't reliably animate position: sticky elements in
   a cross-document view transition (their box depends on scroll state
   at navigation time), so the morph target must be a plain positioned
   element. */
.single-team-member__media-sticky {
  position: sticky;
  top: 0;
  overflow: clip;
  max-height: 100svh;
}

.single-team-member__media {
  position: relative;
  background: var(--brand-color-dark);
  height: 100%;
}

.single-team-member__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.single-team-member__body {
  padding: calc((var(--theme-header-height) * .75) + var(--theme-section-padding)) var(--theme-section-padding) var(--theme-section-padding);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--theme-space-xs);
}

.single-team-member__role {
  margin: 0;
  text-transform: uppercase;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--brand-color-sand);
}

.single-team-member__name {
  margin: 0;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  text-transform: uppercase;
}

.single-team-member__bio {
  max-width: 60rem;
  font-size: var(--theme-font-size-copy);
}

.single-team-member__bio p {
  margin: 0 0 1em;
}

.single-team-member__bio p:last-child {
  margin-bottom: 0;
}

.single-team-member__actions {
  display: flex;
  gap: 1rem;
}

@media (width <= 640px) {
  .single-team-member__hero {
    grid-template-columns: 1fr;
  }

  .single-team-member__media-sticky {
    /* Not sticky here — .single-team-member__hero stacks to a single
       column above, so a sticky image pins to the top of the viewport
       while the (now full-width, no longer side-by-side) bio content
       scrolls underneath it, eating into the space available for it. */
    position: static;
    aspect-ratio: 2 / 3;
  }

  /* Was inherited from the desktop side-by-side rule, sized to clear
     the fixed header there (body sits in the right column, top-aligned
     with the image, which starts right under the header) — no longer
     needed once the image is stacked above the body instead of beside
     it, so it just left a large empty gap between them. */
  .single-team-member__body {
    padding: calc(var(--theme-section-padding) * 2);

  }

  /* "Terug naar het team" (4 words) wraps to 3 lines in the action
     cell's narrow mobile width and was genuinely clipped by the cell's
     overflow: hidden + the CTA's fixed height (measured: label
     scrollHeight 83px vs clientHeight 73px) — not just tight, actually
     cut off. */
  .single-team-member__cta {
    height: auto;
  }

  /* Smaller/tighter so the label has a real chance of fitting in 1-2
     lines instead of 3 — height: auto above is the safety net if it
     still doesn't, not the primary fix. */
  .single-team-member__cta-cell--action .button__label {
    padding: 0 .5rem;
    font-size: .8125rem;
  }
}

/* Bottom CTA (plain in-flow, not sticky) — links back to the about
   page's team section instead of a contact prompt (this page isn't a
   contact funnel). Own scoped classes, structural markup matches the
   pattern established for every other single-page CTA (single.php,
   single-object.php). */
.single-team-member__cta {
  position: relative;
  width: calc(100% - var(--theme-section-padding) * 2);
  z-index: 11;
  height: var(--theme-header-height);
  color: var(--theme-color-text);
  box-sizing: content-box;
  margin: var(--theme-section-padding);
}

.single-team-member__cta-inner {
  display: grid;
  border-bottom: var(--theme-line-width) solid var(--theme-line-color);
  border-left: var(--theme-line-width) solid var(--theme-line-color);
  grid-template-columns: repeat(var(--theme-grid-columns), 1fr);
  height: 100%;
  border-top-width: 0;
  box-sizing: content-box;
}

.single-team-member__cta-cell {
  display: flex;
  align-items: center;
  padding: 0 var(--theme-section-padding);
  border-top: var(--theme-line-width) solid var(--theme-line-color);
}

.single-team-member__cta-cell--action {
  position: relative;
  overflow: hidden;
  background-color: var(--brand-color-dark);
  color: var(--brand-color-light);
  justify-content: center;
  padding: .2rem .3rem .2rem .2rem;
  border-left: var(--theme-line-width) solid var(--theme-line-color);
  border-top: var(--theme-line-width) solid var(--theme-line-color);
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 500;
}

.single-team-member__cta-cell--action .button__label {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 0 var(--theme-section-padding);
  transform: translateX(0);
  transition: transform 0.5s var(--theme-ease-signature);
}

.single-team-member__cta-cell--action .button__label::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 var(--theme-section-padding);
  background-color: var(--theme-color-accent);
  color: var(--theme-color-primary);
  transform: translateX(100%);
}

.single-team-member__cta-cell--action:hover .button__label {
  transform: translateX(-100%);
}

.single-team-member__cta-cell--text {
  background-color: white;
}

.single-team-member__cta-text {
  margin: 0;
}

/* Same treatment as about.css's .section-team__cta on mobile — text
   cell gone, action cell takes the full row. */
@media (width <= 768px) {
  .single-team-member__cta-cell--text {
    display: none;
  }

  .single-team-member__cta-cell--action {
    grid-column: span 6; /* was col-2 from brand-grid.css — beaten here via source order, same trick used across the rest of the site's <=768px overrides */
  }
}
