Thanks to record growth in renewables, clean energy now accounts for 40 percent of global electricity generation as of 2024.