← overflow: hidden breaks position: sticky. overflow: clip doesn't.
Playground

overflow: clip vs overflow: hidden — sticky playground

preview

Edits run in a sandbox in your browser — nothing is saved and nothing leaves the page.