Gaia: Mechanics