Mean-field theory of hard sphere glasses and jamming | Synapse