/* v0.3.7 | Transição cinematográfica exclusivamente visual, sem áudio. */
@media (prefers-reduced-motion: no-preference){
  @view-transition{navigation:auto;}
  ::view-transition-group(root){animation-duration:1.18s;}
  ::view-transition-image-pair(root){isolation:auto;}
  ::view-transition-new(root){animation:none!important;mix-blend-mode:normal;z-index:0;}
  ::view-transition-old(root){
    animation:flh-page-descend 1.18s both!important;
    transform-origin:center top;mix-blend-mode:normal;z-index:1;
    box-shadow:0 -16px 60px rgba(0,0,0,.30);
  }
  html:active-view-transition-type(flh-return)::view-transition-old(root){
    animation-name:flh-page-ascend!important;
  }
  @keyframes flh-page-descend{
     0%{transform:translate3d(0,0,0);}
     39%{transform:translate3d(0,47%,0);animation-timing-function:cubic-bezier(.2,0,.2,1);}
     48%{transform:translate3d(0,49.2%,0);animation-timing-function:cubic-bezier(.25,.2,.3,1);}
     55%{transform:translate3d(0,47.2%,0);animation-timing-function:cubic-bezier(.55,0,.7,1);}
     61%{transform:translate3d(0,48%,0);animation-timing-function:cubic-bezier(.6,0,.9,1);}
     100%{transform:translate3d(0,106%,0);}
  }
  @keyframes flh-page-ascend{
     0%{transform:translate3d(0,0,0);}
     39%{transform:translate3d(0,-47%,0);animation-timing-function:cubic-bezier(.2,0,.2,1);}
     48%{transform:translate3d(0,-49.2%,0);animation-timing-function:cubic-bezier(.25,.2,.3,1);}
     55%{transform:translate3d(0,-47.2%,0);animation-timing-function:cubic-bezier(.55,0,.7,1);}
     61%{transform:translate3d(0,-48%,0);animation-timing-function:cubic-bezier(.6,0,.9,1);}
     100%{transform:translate3d(0,-106%,0);}
  }
  /* 130ms de preparação, sem congelar a navegação: somem texto e botões. */
  body.flh-journey-leaving :is(.flh-center,.flh-ident,.flh-home-header,.flh-projects-controls,.flh-return-presentation,
    .flh-global-toggle,.flh-page-top,.flh-work-head,.flc-hero-heading,.flc-nav,.flc-scroll-cue,
    .flh-global-panel){opacity:0!important;pointer-events:none!important;transition:opacity .11s ease!important;}
  /* Fallback: saída por transform, sem camadas de blur ou sobreposição falsa. */
  body:is(.flh-journey-fallback-enter,.flh-journey-fallback-back) :is(#flh-app,.flh-page-shell,.flc-case-shell){
    will-change:transform;animation:flh-page-descend .78s both;
  }
  body.flh-journey-fallback-back :is(#flh-app,.flh-page-shell,.flc-case-shell){animation-name:flh-page-ascend;}
  body.flh-journey-arriving :is(#flh-app,.flh-page-shell,.flc-case-shell){
    animation:flh-page-arrive .27s ease-out both;
  }
  @keyframes flh-page-arrive{from{opacity:.70;transform:translate3d(0,-10px,0)}to{opacity:1;transform:translate3d(0,0,0)}}
}
@media(prefers-reduced-motion:reduce){
 ::view-transition-old(root),::view-transition-new(root){animation-duration:0s!important;}
 body.flh-journey-leaving :is(.flh-center,.flh-ident,.flh-global-toggle){transition:none!important}
}
