Pakistan's energy system has been transformed by a solar boom that pushed electricity demand up 21% in just two years, bringing the country's electrification rate to 21.7% — nearly matching the 22% global average.