Amid life’s chaos, a meticulous mathematician finds stability