Evolution of the Kondo lattice and non-Fermi liquid excitations in a heavy-fermion metal