Instead, the firm recently evolved into one of Ferrari’s worst nightmares. Here’s how it rose above its peers and transferred the lessons it learned on the track to a growing line-up of world-beating supercars.