/* Distinct editorial chapters: the next surface lifts over the outgoing one. */
html body.home-page.chapter-motion .chapter-panel{
  position:relative; isolation:isolate; z-index:var(--chapter-order); overflow:visible!important;
  background:var(--chapter-colour)!important;
  border-top:0!important;
}
html body.home-page.chapter-motion .chapter-panel::after{
  content:"";position:absolute;pointer-events:none;z-index:-1;
  left:0;right:0;top:calc(-1px - var(--chapter-progress,1)*78px);
  height:calc(2px + var(--chapter-progress,1)*78px);
  background:var(--chapter-colour);
  border-radius:calc((1 - var(--chapter-progress,1))*64px) calc((1 - var(--chapter-progress,1))*64px) 0 0;
  box-shadow:0 -24px 45px -38px rgba(0,0,0,.32);
}
html body.home-page.chapter-motion .selected-work::before{display:none!important}
html body.home-page.chapter-motion .chapter-title{
  transform:translate3d(0,calc((1 - var(--chapter-progress,1))*72px),0);
}
html body.home-page.chapter-motion .chapter-panel :is(.home-pricing-grid,.visual-story-grid,.starting-panels){
  transform:translate3d(0,calc((1 - var(--chapter-progress,1))*110px),0);
}
@media(max-width:620px){
 html body.home-page.chapter-motion .chapter-panel::after{top:calc(-1px - var(--chapter-progress,1)*34px);height:calc(2px + var(--chapter-progress,1)*34px)}
 html body.home-page.chapter-motion .chapter-title{transform:translate3d(0,calc((1 - var(--chapter-progress,1))*34px),0)}
 html body.home-page.chapter-motion .chapter-panel :is(.home-pricing-grid,.visual-story-grid,.starting-panels){transform:translate3d(0,calc((1 - var(--chapter-progress,1))*50px),0)}
}
@media(prefers-reduced-motion:reduce){.chapter-panel::after{display:none!important}.chapter-title{transform:none!important}}
