Redox-triggered mixing and demixing of surfactants within assemblies formed in solution and at surfaces.