Scientists have long been puzzled by a process that is crucial to much of the life in Earth’s oceans: Why does calcium carbonate, the tough material of seashells and corals, sometimes take the form of calcite, and at other times form a chemically identical form of the mineral called aragonite?