Diffusion, percolation, and trapping in the Lorentz gas via variational kinetic theory