Gaia: Theory of plasticity