Casein, a protein in milk, sticks to certain plant compounds and minerals differently depending on things like how acidic the environment is, how hot it is, or how salty the solution is — and also depends on the shape and size of the stuff it’s sticking to.
Mechanistic