Self Leveling Light Mount from B&M
https://www.bumm.de/en/products/kurv...365cla%20.html
Levels the light when leaning, and it turns the light when going into a curve. Aimed at e-bikes, but since its effectively just a light gimbal it probably doesn't use much power.