At a recent math conference, Rouslan Krechetnikov watched his colleagues gingerly carry cups of coffee. Why, he wondered, did the coffee sometimes spill and sometimes not? A research project was born.