COSMIC, a next-generation X-ray beamline now operating at Berkeley Lab, brings together a unique set of capabilities to measure the properties of materials at the nanoscale. It allows scientists to probe working batteries and other active chemical reactions, and to reveal new details about magnetism and correlated electronic materials.