Snell's Law, Wave Speeds & Confinement
Refraction & Phase Velocity: When light crosses into an optically denser medium ($n_2 > n_1$), its phase velocity decreases ($v = c/n$) and its wavelength compresses ($\lambda = \lambda_0/n$), bending the ray toward the normal: $\frac{\sin i}{\sin r} = \frac{n_2}{n_1} = \frac{v_1}{v_2}$.
Critical Angle & Guidance: When light travels from a denser to rarer medium ($n_1 > n_2$), the refracted ray bends away from the normal until reaching $90^\circ$ at $i_c = \arcsin(n_2/n_1)$. For $i > i_c$, $100\%$ of electromagnetic energy reflects back internally with zero transmission loss.