Evolution of subducting mantle lithosphere at a continental plate boundary