Wave modulation: the geometry, kinematics, and dynamics of surface-wave packets