I feel like this is either very dumb or very clever. Either way, I blogged about it:

Using CSS animations as state machines to remember focus or hover states in CSS only.

https://patrickbrosset.com/articles/2026-03-09-using-css-animations-as-state-machines-to-remember-focus-and-hover-states-with-css-only/