Spectroscopic and theoretical evidence for the elusive intermediate of the photoinitiated and thermal rearrangements of photochromic spiropyrans.