/* Native sticky cards keep the team readable without JavaScript. */
html .promo-page > .mentor.team-stack {
  padding: clamp(24px, 4vw, 70px);
  overflow: visible;
  content-visibility: visible;
  contain: none;
  height: auto;
}
.team-stack__cards { padding-bottom: 48px; }
.team-stack__card {
  position: sticky;
  top: calc(82px + var(--card-index) * 30px);
  z-index: calc(1 + var(--card-index));
  background: #e4e9e7;
  color: #202b2c;
  border: 1px solid #ffffff9c;
  border-radius: 22px;
  box-shadow: 0 -12px 40px #122d3c14;
  margin-bottom: 80px;
  overflow: hidden;
}
.team-stack__card:nth-child(2) { background: #dce7eb; }
.team-stack__card:nth-child(3) { background: #eae7e1; }
.team-stack__card:last-child { margin-bottom: 0; }
.team-stack__body { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(24px, 5vw, 80px); padding: clamp(24px, 3vw, 48px); align-items: center; }
.team-stack__body figure { margin: 0; }
.team-stack__body img { width: 100%; height: min(48vh, 470px); object-fit: cover; object-position: center 25%; display: block; border-radius: 12px; }
.team-stack__role { font-size: 14px; margin: 0 0 16px; }
.team-stack__copy h3 { font-size: clamp(34px, 3.5vw, 56px); line-height: 1.1; font-weight: 500; }
.team-stack__copy h3 span { display: block; font-size: 16px; margin-top: 12px; font-weight: 400; letter-spacing: .04em; }
.team-stack__bio { font-size: clamp(14px, 1.1vw, 18px); line-height: 1.85; margin: 24px 0; }
@media (max-width: 700px) {
  html .promo-page > .mentor.team-stack { padding: 20px 14px; }
  .team-stack__body { grid-template-columns: 1fr; gap: 20px; padding: 20px; }
  .team-stack__body img { height: 220px; object-position: center 22%; }
  .team-stack__bio { font-size: 13px; margin: 16px 0; }
  .team-stack__role { margin-bottom: 10px; font-size: 12px; }
  .team-stack__copy h3 { font-size: 30px; }
  .team-stack__copy h3 span { font-size: 13px; }
  .team-stack__card { top: calc(72px + var(--card-index) * 16px); margin-bottom: 44px; }
}
@media (prefers-reduced-motion: reduce), (max-height: 760px) {
  .team-stack__card { position: relative; top: auto; }
}
/* Avoid a non-scrolling body container intercepting sticky positioning. */
body:has(.team-stack) { overflow-x: clip; }
/* Restore the original three-column mentor composition. */
.team-stack__body { grid-template-columns: .9fr 1fr 1.1fr; gap: 3vw; align-items: center; }
.team-stack__tags { align-self: end; padding-bottom: 24px; }
.team-stack__tags ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; font-size: clamp(12px, 1.1vw, 17px); }
.team-stack__copy h3 { font-size: clamp(24px, 2.5vw, 40px); }
.team-stack__copy h3 span { display: none; }
.team-stack__copy .team-stack__role { border-left: 3px solid var(--accent); padding-left: 15px; margin-bottom: 24px; }
.team-stack__card, .team-stack__card:nth-child(2), .team-stack__card:nth-child(3) { background: linear-gradient(135deg,#cbdde8f5,#9db4c7fa); border-radius: 30px; }
.team-stack__footer { margin: 0 3vw; padding: 28px 0; border-top: 1px solid #263b3d30; display: grid; gap: 20px; }
.team-stack__footer strong { font-size: clamp(25px, 3vw, 42px); font-weight: 500; }
.team-stack__footer span { color: var(--accent); font-size: 18px; }
@media(max-width:700px) {
 .team-stack__body { grid-template-columns: 1fr 1.2fr; gap: 18px; }
 .team-stack__tags { grid-column: 1 / -1; padding: 0; }
 .team-stack__tags ul { display: flex; flex-wrap: wrap; gap: 8px 12px; font-size: 11px; }
 .team-stack__body img { height: 260px; }
 .team-stack__copy h3 { font-size: 22px; line-height: 1.4; }
 .team-stack__copy .team-stack__role { font-size: 11px; padding-left: 8px; margin-bottom: 12px; }
 .team-stack__bio { font-size: 12px; line-height: 1.7; }
 .team-stack__footer { padding: 22px 0; gap: 12px; }
}
