in the sea beside us the galleon careened along the reef until something huge , green , and reptilian rose from the depths to grab its masts , pulling it over on its side , flinging riders into the sea .