medieval city standing on a giant gear