Déjà vu—the eerie feeling that a new moment has happened before—has puzzled scientists and philosophers for centuries.