/* Each complete dark chapter rises over the chapter pinned behind it. */
.dark-stack{position:relative;isolation:isolate;background:#17181a;overflow:visible}
.dark-chapter{position:relative;margin:0;overflow:clip}
.dark-chapter:nth-child(1){z-index:1;background:#17181a}
.dark-chapter:nth-child(2){z-index:2;background:#222426;color:#f5f3ef}
.dark-chapter:nth-child(3){z-index:3;background:#151719;color:#f5f3ef}
.dark-stack>.memory-section{padding-bottom:clamp(128px,18vh,180px)}
.dark-stack>.memory-section .capability{transform:none}
.why-panel .why-section{min-height:0}
@media(min-width:961px) and (prefers-reduced-motion:no-preference){
  .dark-stack.stack-enabled>.dark-chapter{position:sticky;top:var(--chapter-pin,88px);min-height:calc(100svh - var(--nav-h));border-radius:32px 32px 0 0;border-top:1px solid #d8c3a035;box-shadow:0 -22px 70px #0005;transform-origin:50% 90%;transform:translateY(calc(var(--chapter-covered,0)*-14px)) scale(calc(1 - var(--chapter-covered,0)*.028));filter:brightness(calc(1 - var(--chapter-covered,0)*.25))}
  .dark-stack.stack-enabled>.memory-section{border-top:0;box-shadow:none}
  .dark-stack.stack-enabled>.why-panel{display:grid;align-items:center}
  .dark-stack.stack-enabled>.why-panel .why-section{padding-block:100px;min-height:0}
  .dark-stack.stack-enabled>.platform-section{padding-top:85px}
  /* The full chapter supplies the perspective; keep the product frame stable. */
  .dark-stack .platform-showcase{translate:0 0;transform:none}
}
@media(max-width:960px){.dark-stack>.dark-chapter{border-radius:24px 24px 0 0;border-top:1px solid #c8ad8426}.why-panel .why-section{padding-block:85px}}
@media(prefers-reduced-motion:reduce){.dark-stack>.dark-chapter{position:relative!important;top:auto!important;transform:none!important;filter:none!important}}
