A conical intersection controls the deactivation of the bacterial luciferase fluorophore.