Spectral classification of projections