Describir: Long-lived polarization memory in the electronic states of lead-halide perovskites from local structural dynamics