/* SKAY V34 — full-page containment + coherent title morphs */
:root{--v34-ease:cubic-bezier(.16,1,.3,1)}

/* Each semantic page owns at least one complete viewport. */
main>section{min-height:100svh;position:relative;overflow:clip}
#home{height:100svh;min-height:100svh}
#vision,#tarifs,#contact{min-height:100svh}
#craft{min-height:100svh}

/* V35: hero wrapper stays native; only its children animate. */
/* Old scroll-ink no longer drives opacity. */
.statement-title .dim-word,.prices-header h2 .dim-word{opacity:1!important;transition:none!important}

/* One premium title language everywhere: focus/depth on entry, recede/blur on exit. */
.statement-title,.journey-intro h2,.prices-header h2,.contact-content h2{
  transform-origin:50% 55%;will-change:transform,filter,opacity;
}
.statement.chapter-entering .statement-title,
.journey.chapter-entering .journey-intro h2,
.prices.chapter-entering .prices-header h2,
.contact.chapter-entering .contact-content h2{
  animation:v34TitleIn 900ms var(--v34-ease) both!important;
}
.statement.chapter-leaving .statement-title,
.journey.chapter-leaving .journey-intro h2,
.prices.chapter-leaving .prices-header h2,
.contact.chapter-leaving .contact-content h2{
  animation:v34TitleOut 540ms var(--v34-ease) both!important;
}
@keyframes v34TitleIn{
  0%{opacity:.08;transform:translate3d(0,34px,0) scale(.91);filter:blur(22px) brightness(.86)}
  38%{opacity:.7;transform:translate3d(0,10px,0) scale(.975);filter:blur(7px) brightness(.96)}
  100%{opacity:1;transform:none;filter:none}
}
@keyframes v34TitleOut{
  0%{opacity:1;transform:none;filter:none}
  100%{opacity:.06;transform:translate3d(0,-24px,0) scale(.91);filter:blur(20px) brightness(.86)}
}

/* Supporting copy follows with less amplitude; visually calmer. */
.statement.chapter-entering .statement-desc,
.journey.chapter-entering .journey-intro-grid>p,
.prices.chapter-entering .prices-header>p,
.contact.chapter-entering .contact-content>p{
  animation:v34CopyIn 820ms 100ms var(--v34-ease) both!important;
}
.statement.chapter-leaving .statement-desc,
.journey.chapter-leaving .journey-intro-grid>p,
.prices.chapter-leaving .prices-header>p,
.contact.chapter-leaving .contact-content>p{
  animation:v34CopyOut 420ms var(--v34-ease) both!important;
}
@keyframes v34CopyIn{from{opacity:0;transform:translateY(20px);filter:blur(10px)}to{opacity:1;transform:none;filter:none}}
@keyframes v34CopyOut{from{opacity:1;transform:none;filter:none}to{opacity:0;transform:translateY(-12px);filter:blur(8px)}}

/* The generic chapter animation should not re-transform whole heading wrappers. */
.statement.chapter-entering .statement-inner,.statement.chapter-leaving .statement-inner,
.journey.chapter-entering .journey-intro,.journey.chapter-leaving .journey-intro,
.prices.chapter-entering .prices-header,.prices.chapter-leaving .prices-header,
.contact.chapter-entering .contact-content,.contact.chapter-leaving .contact-content{
  animation:none!important;transform:none!important;filter:none!important;
}

/* Maintain full-page ownership on short devices too. */
@media(max-height:760px){
  #vision .statement-inner{margin-top:clamp(76px,10svh,96px)!important;margin-bottom:clamp(44px,6svh,60px)!important}
  #vision .statement-title{font-size:clamp(42px,6.2vw,78px)!important}
  #vision .statement-desc{margin-top:20px!important}
  #contact .contact-content{margin-top:clamp(74px,10svh,92px)!important;margin-bottom:clamp(35px,5svh,52px)!important}
}
@media(max-width:900px){
  @keyframes v34TitleIn{0%{opacity:.1;transform:translateY(24px) scale(.94);filter:blur(14px)}100%{opacity:1;transform:none;filter:none}}
  @keyframes v34TitleOut{0%{opacity:1;transform:none;filter:none}100%{opacity:.08;transform:translateY(-18px) scale(.94);filter:blur(13px)}}
}
