Low-emissions strategy that could pay for itself helps scientists achieve high-yield hydrogen gas and high-value graphene.