On the cusp of a demographic transition