It was the young officials at Guantánamo who dreamed up a list of new aggressive interrogation techniques, inspired by Jack Bauer from the TV series, 24. But it was the politicians and lawyers in Washington who set the ball rolling. Philippe Sands follows the torture trail right to the top