A full-width blurred header that becomes a floating pill after you scroll past a threshold. It can hide while you scroll down, highlights the section in view and has a mobile menu panel. The menu traps focus, closes on Escape and the backdrop, and locks scroll. With reduced motion the morph and hide transitions switch instantly.
pnpm dlx shadcn@latest add "https://sunui.synvize.com/r/capsule-nav.json"