/* Homepage: smoother open/close when the page scrolls (header.js adds .fh-scrollmorph for ~650ms).
   A gentle ease-out, a little longer than the hover morph; the contact details fade out first,
   then the card, photo and tabs ease into the collapsed pill (and back the other way). */
.fh-root.fh-scrollmorph{--fh-dur:440ms; --fh-ease:cubic-bezier(.22,1,.36,1)}
.fh-root.fh-scrollmorph[data-state="closed"] .fh-panel,
.fh-root.fh-scrollmorph[data-state="closed"] .fh-avatar,
.fh-root.fh-scrollmorph[data-state="closed"] .fh-tab{transition-delay:70ms}
.fh-root.fh-scrollmorph[data-state="closed"] .fh-pane{transition:opacity 90ms ease,visibility 0s linear 90ms}
.fh-root.fh-scrollmorph[data-state="closed"] .fh-rise{transition:opacity 90ms ease,transform 90ms ease}
/* Reduced motion: no morph, just a quick fade. */
@media (prefers-reduced-motion:reduce){
  .fh-root.fh-scrollmorph .fh-panel{animation:fh-fade 160ms ease}
  @keyframes fh-fade{from{opacity:.4}to{opacity:1}}
}
