Horizontal rays and vertical modes