Low-energy muons have been used to probe the local motion in a thin-film sample of polystyrene as a function of depth below the free surface. The muon spin relaxation in zero magnetic field is dominated by a muoniated radical state which is formed on the polystyrene ring. The muon spin-relaxation rate is found to be highly sensitive to the dynamical state of the polymer, and provides a local probe of changes in the dynamical correlation time around the glass transition. When high-energy muons are used to study the bulk properties, the glass-transition temperature Tg is revealed as a change in the temperature dependence of . Reducing the muon implantation depth, while holding the sample a few degrees below the bulk Tg, leads to a drop in , signifying a reduction in the local Tg on approaching the surface. The width of the dynamical surface layer is found to be enhanced over previous estimates made at much lower temperatures, providing experimental evidence for critical divergence of the layer width on approaching the bulk Tg.