Cubics, Integrable Systems, and Calabi-Yau Threefolds