CMB in a box: causal structure and the Fourier-Bessel expansion