Reductions in immigration from overseas have combined with increased migration out of SF to drive population loss.