Levers, pulleys, screws — and a steam engine eighteen centuries early.