Thermodynamics of prime movers: energy from first principles?

A highlight of 2023 has been going back to first principles, to explain the underpinnings of prime movers in the global energy system. If you understand the thermodynamics of prime movers, you will inevitably conclude that the world is evolving towards solar, semi-conductors, electro-magnetic motors, lithium batteries and high-grade gas turbines.