Photonics and coherence of spin