/* SKAY V30 — section morphing without overlays. */
:root{--skay-chapter-ease:cubic-bezier(.16,1,.3,1)}
html{scroll-behavior:auto!important}
body{overscroll-behavior-y:none}

/* Remove all legacy inter-page overlays / separators. */
main>section::before,main>section::after,.hero::before,.v25-travel{display:none!important;content:none!important}
html.v25-travelling .v25-travel{display:none!important;animation:none!important}

main>section{isolation:isolate}

/* Only meaningful content moves. Section backgrounds remain stable at all times. */
.statement.chapter-entering .statement-inner,
.statement.chapter-entering .horizontal-rule,
.prices.chapter-entering .prices-header,
.prices.chapter-entering .price-layout,
.prices.chapter-entering .price-disclaimer,
.contact.chapter-entering .contact-content,
.contact.chapter-entering footer,
.journey.chapter-entering .journey-intro,
.hero.chapter-entering .hero-copy,
.hero.chapter-entering .hero-bottom{
  animation:skayChapterIn 840ms var(--skay-chapter-ease) both;
}
.statement.chapter-leaving .statement-inner,
.prices.chapter-leaving .prices-header,
.prices.chapter-leaving .price-layout,
.contact.chapter-leaving .contact-content,
.contact.chapter-leaving footer,
.journey.chapter-leaving .journey-intro,
.hero.chapter-leaving .hero-copy,
.hero.chapter-leaving .hero-bottom{
  animation:skayChapterOut 520ms var(--skay-chapter-ease) both;
}

/* The pinned five-step scene gets a restrained whole-stage exit only when leaving the process. */
#craft.chapter-leaving .simple-steps{
  animation:skayStoryOut 560ms var(--skay-chapter-ease) both;
}
#craft.chapter-entering .simple-steps{animation:none!important}

@keyframes skayChapterIn{
  0%{opacity:.18;transform:translate3d(0,calc(var(--chapter-dir,1)*52px),0) scale(.965);filter:blur(16px) brightness(.9);clip-path:inset(11% 2.5% 11% 2.5% round 34px)}
  42%{opacity:.83;transform:translate3d(0,calc(var(--chapter-dir,1)*13px),0) scale(.992);filter:blur(4px) brightness(.98);clip-path:inset(2% .6% 2% .6% round 18px)}
  100%{opacity:1;transform:none;filter:none;clip-path:inset(0 round 0)}
}
@keyframes skayChapterOut{
  0%{opacity:1;transform:none;filter:none}
  100%{opacity:.58;transform:translate3d(0,calc(var(--chapter-dir,1)*-22px),0) scale(.982);filter:blur(7px) brightness(.9)}
}
@keyframes skayStoryOut{
  0%{opacity:1;transform:none;filter:none}
  100%{opacity:.5;transform:translate3d(0,-18px,0) scale(.986);filter:blur(6px) brightness(.9)}
}

/* A tiny light response belongs to the page itself, never to an overlay. */
.statement.chapter-entering,.prices.chapter-entering{animation:skayLightSurface 820ms var(--skay-chapter-ease) both}
.journey.chapter-entering,.contact.chapter-entering,.hero.chapter-entering{animation:skayDarkSurface 820ms var(--skay-chapter-ease) both}
@keyframes skayLightSurface{0%{box-shadow:inset 0 60px 110px rgba(34,48,67,.09)}100%{box-shadow:inset 0 0 0 rgba(34,48,67,0)}}
@keyframes skayDarkSurface{0%{box-shadow:inset 0 65px 130px rgba(194,215,245,.055)}100%{box-shadow:inset 0 0 0 rgba(194,215,245,0)}}

/* While the Scroll Director owns the viewport, user input is visually quiet and deterministic. */
html.skay-scroll-locked{scroll-behavior:auto!important}
html.skay-scroll-locked body{user-select:none}

@media(max-width:800px){
  @keyframes skayChapterIn{0%{opacity:.35;transform:translateY(calc(var(--chapter-dir,1)*34px)) scale(.978);filter:blur(9px)}100%{opacity:1;transform:none;filter:none}}
  @keyframes skayChapterOut{0%{opacity:1}100%{opacity:.72;transform:translateY(calc(var(--chapter-dir,1)*-14px));filter:blur(4px)}}
}
