Oil led to huge advancements — and vast inequities. As the planet warms, why is it so hard to turn away from fossil fuels, and can it be done in time?