The team clawed its way back up from fifth place after dressage to take the victory – a first on home turf.