Scientists replace costly membranes with durable diaphragms that turn waste carbon into energy-rich compounds.