Reefs seem utterly beautiful and incredibly fragile ecosystems susceptible to the ravages of the tides and the weather. Yet they have survived for millions of years. So what's their survival strategy? It's all to do with the full moon and a radical approach to sex.