Strong resonance transitions in the (rest-frame) near-ultraviolet bandpass provide a sensitive probe of the gas kinematics in galaxies and the surrounding circumgalactic medium. To investigate the demographics and properties of gas flows into and out of galaxies over the period when the cosmic star formation rate plummeted, we obtained NUV spectra of several hundred star-forming galaxies at redshifts between 0.4 and 2.2 using Keck Observatory spectrographs. We identify galactic winds from both blueshifted absorption troughs and scattered, resonance emission in these spectra and discover metal-enriched inflows in a small fraction of sightlines. The talk will compare the gas-kinematic properties of gas outflows and inflows to the previously measured masses, luminosities, colors, and star formation rates of their host galaxies. I will also discuss the role these flows play in the dynamic interplay between star-forming regions and the intergalactic medium.