/* Motion tokens: one easing family, three durations. */
:root{--bcb-ease:cubic-bezier(0.22,1,0.36,1);--bcb-fast:160ms;--bcb-base:280ms;--bcb-slow:600ms}

/* BCB motion layer v1 — scroll-driven, zero JS, additive only.
   Every effect is inside @supports + prefers-reduced-motion guards, so the
   default state in every browser is the current fully visible design. */

@keyframes bcb-seq-in{from{opacity:0;transform:translateY(14px) scale(.986)}to{opacity:1;transform:none}}
@keyframes bcb-stage-rise{to{transform:translateY(-26px)}}
@keyframes bcb-card-drift{to{transform:translateY(-58px) rotate(-1.1deg)}}

@supports (animation-timeline: view()){
  @media (prefers-reduced-motion: no-preference){
    .bcb-seq > *{animation:bcb-seq-in var(--bcb-ease) both;animation-timeline:view();animation-range:entry 0% entry 100%}
    .bcb-seq > *:nth-child(2n){animation-range:entry 0% entry 100%}
    .bcb-seq > *:nth-child(3n){animation-range:entry 0% entry 100%}
    .bcb-seq > *:nth-child(4n){animation-range:entry 0% entry 100%}
  }
}

@supports (animation-timeline: scroll()){
  @media (prefers-reduced-motion: no-preference) and (min-width: 768px){
    .bcb-ph-stage{animation:bcb-stage-rise var(--bcb-ease) both;animation-timeline:scroll(root block);animation-range:0 70vh}
    .bcb-ph-card--b{animation:bcb-card-drift var(--bcb-ease) both;animation-timeline:scroll(root block);animation-range:0 90vh}
  }
}

/* Page-to-page morph. Browsers without support simply navigate as before. */
@view-transition{navigation:auto}
::view-transition-old(root){animation-duration:var(--bcb-fast)}
::view-transition-new(root){animation-duration:var(--bcb-base)}
@media (prefers-reduced-motion: reduce){
  ::view-transition-group(*),::view-transition-old(*),::view-transition-new(*){animation:none!important}
}
