Discovery of phase transitions in photosynthetic systems