Shining light on electrons under extreme conditions