/* Keep the existing hero layout intact while About passes in front. */
body.home .site-main { overflow: clip; }
body.home .home-intro-stack {
  display: block;
  position: relative;
  isolation: isolate;
  --about-cover-progress: 0;
}
body.home .home-intro-stack .hero {
  position: sticky;
  top: 0;
  z-index: 0;
}
body.home .home-intro-stack .hero::before {
  content: none;
  display: none;
}
body.home .home-intro-stack #about {
  position: relative;
  z-index: 1;
  isolation: isolate;
  overflow: visible;
  min-height: 100svh;
  margin-top: 0;
  background: transparent;
}
/* A translucent surface, becoming opaque as it covers the hero. */
body.home .home-intro-stack #about::before {
  content: "";
  display: block;
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(to bottom,
    rgba(255,255,255,calc(.25 + .7 * var(--about-cover-progress))),
    rgba(255,255,255,calc(.85 + .15 * var(--about-cover-progress))) 220px,
    #fff 480px);
  filter: none;
  pointer-events: none;
}
/* Only a short, faint edge softens the incoming panel. No blur or image copy. */
body.home .home-intro-stack #about::after {
  content: "";
  display: block;
  position: absolute;
  z-index: -1;
  inset: auto;
  left: 0;
  bottom: 100%;
  width: 100%;
  height: 32px;
  background: linear-gradient(to bottom,rgba(255,255,255,0),rgba(255,255,255,calc(.25 + .7 * var(--about-cover-progress))));
  filter: none;
  pointer-events: none;
}
@media(max-width:768px) {
  body.home .home-intro-stack #about {
    height: auto;
    min-height: 0;
    padding-bottom: 48px;
    margin-bottom: 0;
  }
  /* Retain the sticky runway behind the next section, without a visible gap. */
  body.home .home-intro-stack {
    padding-bottom: var(--about-sticky-tail,0px);
    margin-bottom: calc(-1 * var(--about-sticky-tail,0px));
  }
  body.home .home-intro-stack + .problem {
    position: relative;
    z-index: 1;
    margin-top: 0;
    padding-top: 32px;
  }
}
