/* Pin at the top when a card fits; taller cards pin at the bottom after all content scrolls past. */
.feature-stories .feature-story,
.feature-stories .feature-story.stack-too-tall,
.demo-stack .software-demo-card{
 position:sticky;
 top:var(--card-stack-top,100px);
 transform:none;
 translate:none;
}
.feature-stories{isolation:isolate;padding-bottom:12vh}
.feature-stories .feature-story{margin-bottom:clamp(32px,10vh,100px)}
.feature-stories .feature-story:last-child{margin-bottom:0}
.demo-stack{gap:clamp(44px,14vh,160px);padding-bottom:12vh}
@media(max-width:767px),(max-height:650px){
 .demo-stack .software-demo-card{height:auto;min-height:0}
 .feature-stories{padding-bottom:10vh}
 .feature-stories .feature-story{margin-bottom:48px}
 .feature-stories .feature-story:last-child{margin-bottom:0}
}
@media(prefers-reduced-motion:reduce){
 .feature-stories .feature-story,
 .feature-stories .feature-story.stack-too-tall,
 .demo-stack .software-demo-card{position:relative;top:auto}
}
