The enterprise becomes trapped on the edge of a rift in space where alternate universes meet and Kirk finds himself having to contend with a ghost from his past and danger in the present.