Careful and planned investment in both renewables and hydrocarbons is essential for an effective energy transition.