Geophysics: Contraction and stretching in basin formation