Main

Mangrove forests thrive along tropical and subtropical shorelines and their distribution extends to warm temperate regions1. They are globally recognized for the valuable ecosystem services they provide2 but are expected to be substantially influenced by climate change-related physical processes in the future3,4. Under warming winter temperatures, poleward expansion is predicted for mangroves5,6, with potential implications for ecosystem structure and functioning, as well as human livelihoods and well-being7,8. The global distribution, abundance and species richness of mangroves is governed by a broad range of biotic and environmental factors, including temperature and precipitation9 and diverse geomorphological and hydrological gradients10. Climate and aspects related to coastal geography (for example, floodplain area) determine the availability of suitable habitat for establishment11,12. However, the potential for mangroves to track changing environmental conditions and expand their distributions ultimately depends on dispersal11,13. The importance of dispersal in controlling mangrove distributions has been demonstrated by mangrove distributional responses to historical climate variability14, past mangrove (re)colonization of oceanic islands15 and from the long-term survival of mangrove seedlings planted beyond natural range limits16. As such, quantifying changes in the factors that influence dispersal is important for understanding climate-driven distributional responses of mangroves under future climate conditions.

In mangroves, dispersal is accomplished by buoyant seeds and fruits (hereafter referred to as ‘propagules’). In combination with prevailing currents, the spatial scale of this process, ranging from local retention to transoceanic dispersal over thousands of kilometres13, is determined by propagule buoyancy17, that is, the density difference between that of propagules and the surrounding water. Hence, the course of dispersal trajectories for propagules from these species depends on the interaction between spatiotemporal changes in both propagule density and that of the surrounding water, rendering this process sensitive to climate-driven changes in coastal and open-ocean water properties. The biogeographic implications of such density differences were recognized more than a century ago by Henry Brougham Guppy, who discussed18 ‘the far-reaching influence on plant-distribution and on plant-development that the relation between the specific weight of seeds and fruits and the density of sea-water must possess’.

Since the time of Guppy’s early observations, climate change from human activities has driven pronounced changes in ocean temperature and salinity, with further changes predicted throughout the twenty-first century19. Ocean density is a nonlinear function of temperature, salinity and pressure20; therefore, these changes may influence dispersal patterns of mangrove propagules by altering their buoyancy and floating orientation. As Guppy noted18, ‘[for] plants whose seeds or fruits are not much lighter than seawater […] the effect of increased density of the water is to extend the flotation period’ or ‘to increase the number that floated for a given period’. Guppy also reported that the seedlings of the widespread mangrove genera Rhizophora and Bruguiera present exceptional examples of propagules with densities somewhere between seawater and freshwater18. Previous studies of the impacts of climate change on mangroves have focused on factors such as sea level rise, altered precipitation regimes and increasing temperature and storm frequency4,21,22,23 but the potential impact of climate-driven changes in seawater properties on mangroves has not yet been examined. This is somewhat surprising, as the ocean is the primary dispersal medium of this ‘sea-faring’ coastal vegetation and dispersal is a key process that governs a species’ response to climate change by changing its geographical range. This knowledge gap contrasts with recent efforts to expose links between climate change and dispersal in other ecologically important marine taxa such as zooplankton and fish species24,25,26,27.

In this study, we investigate predicted changes in sea surface temperature (SST), sea surface salinity (SSS) and sea surface density (SSD) for coastal waters bordering mangrove forests (hereafter referred to as ‘coastal mangrove waters’), over the next century. Using a biogeographic classification system for coastal and shelf areas28, we examine spatiotemporal changes in these surface ocean properties, with a particular focus on the world’s two major mangrove diversity hotspots: (1) the Atlantic East Pacific (AEP) region, including all of the Americas, West and Central Africa and (2) the Indo West Pacific (IWP) region, extending from East Africa eastwards to the islands of the central Pacific1. Finally, we synthesize available data on the density of mangrove propagules for different mangrove species and explore the potential impact of climate-driven changes in SSD on propagule dispersal.

To assess changes in SST and SSS throughout the global range of mangrove forests, we used present (2000–2014) and future (2090–2100) surface ocean properties from the Bio-ORACLE database29,30. SSD estimates were derived from these variables using the UNESCO EOS-80 equation of state polynomial for seawater31. Changes in SST, SSS and SSD (Fig. 1) were calculated for four representative concentration pathways (RCPs) and derived for coastal waters closest to the 583,578 polygon centroids from the 2015 Global Mangrove Watch (GMW) database32. After removing duplicates, our dataset contained 10,108 unique mangrove occurrence locations, with corresponding present conditions and predicted future changes in mean SST, SSS and SSD. Under the low-warming scenario RCP 2.6, mean SST of coastal mangrove waters is predicted to change by +0.64 (±0.11) °C and mean SSS by −0.06 (±0.25) practical salinity units (PSU). Combined, this results in an average change in mean SSD of −0.25 (±0.20) kg m−3 in coastal mangrove waters by the late twenty-first century (Supplementary Table 1). These values roughly double under RCP 4.5 (Supplementary Table 2), while under RCP 6.0, a change of +1.69 (±0.14) °C in mean SST, −0.21 (±0.42) PSU in mean SSS and −0.71 (±0.32) kg m−3 in mean SSD is predicted (Supplementary Table 3). Under RCP 8.5, our study predicts a change in SST of +2.84 (±0.21) °C (range 2.11–4.01 °C), a change in SSS of −0.30 (±0.74) PSU (−2.01–1.26 PSU) and a corresponding change in SSD of −1.17 (±0.56) kg m−3 (−2.53–0.03 kg m−3) (Supplementary Table 4).

Fig. 1: Global map showing the change in sea surface variables across mangrove bioregions under RCP 8.5.
figure 1

ac, Change in SST (a), SSS (b) and SSD (c). Changes in SST and SSS are based on present-day (2000–2014) and future (2090–2100) marine fields from the Bio-ORACLE database29,30, from which SSD data were derived. The vertical line (19° E) separates the two major mangrove bioregions: the AEP and IWP.

Spatial variability in predicted surface ocean property changes was examined by considering the two major mangrove bioregions (AEP and IWP) (Fig. 2) and using the Marine Ecoregions of the World (MEOW) biogeographic classification28 (Fig. 3). Both the range and changes in mean SST were comparable for the AEP and IWP mangrove bioregions, for all respective RCP scenarios (Fig. 2a and Supplementary Tables 14). Under RCP 8.5, mean SST in both mangrove bioregions is predicted to warm ~2.8 °C by 2100, which is roughly 4.5 times the predicted increase in mean SST under RCP 2.6 (Supplementary Tables 1 and 4). Predictions for the RCP 8.5 scenario are generally consistent with reported global ocean temperature trends33 and show that the greatest warming occurs in coastal waters near the Galapagos Islands (change in mean SST of 3.92 ± 0.06 °C). Pronounced SST increases are also predicted for Hawaii (change in mean SST of 3.36 ± 0.05 °C), the Southeast Australian Shelf (3.30 ± 0.25 °C), Northern and Southern New Zealand (3.25 ± 0.07 °C and 3.34 ± 0.02 °C, respectively), Warm Temperate Northwest Pacific (3.27 ± 0.16 °C), the Red Sea and Gulf of Aden (3.24 ± 0.08 °C), Somali/Arabian Coast (3.23 ± 0.15 °C), South China Sea (3.07 ± 0.10 °C), the Tropical East Pacific (3.09 ± 0.15 °C) and the Warm Temperate Northwest Atlantic (3.14 ± 0.13 °C) (Fig. 3b and Supplementary Tables 4).

Fig. 2: Change in surface ocean properties for coastal waters bordering mangrove forests and in the two major mangrove bioregions, the AEP and IWP, for different RCPs.
figure 2

ac, Variation in SST (a), SSS (b) and SSD (c) under various RCP scenarios. Grey indicates global distribution (n = 10,108), orange denotes AEP (n = 3,190) and green represents IWP (n = 6,918). Data for SST and SSS consist of present-day (2000–2014) and future (2090–2100) marine fields from the Bio-ORACLE database29,30, from which SSD data were derived. The cat-eye plots50 show the distribution of the data. Median and mean values are indicated with black and white circles, respectively, and the vertical lines represent the interquartile range.

Fig. 3: Global spatial variability in SST, SSS and SSD for coastal waters bordering mangrove forests under RCP 8.5.
figure 3

a, Global map showing the provinces (colour code and numbers) from the MEOW database28 used to investigate spatial patterns in mangrove coastal ocean water changes by 2100. bd, Longitudinal gradient of the change in SST (b), SSS (c) and SSD (d) under RCP 8.5 in the AEP and the IWP mangrove bioregions; circles are coloured according to the MEOW province in which respective mangrove sites are located.

Predicted SSS changes exhibit an opposite trend in the AEP and IWP bioregions, with increased salinity in the AEP and reduced salinity in the IWP under global warming (RCP 2.6–RCP 8.5; Fig. 2b); this is reflected in contrasting SSD changes in both mangrove bioregions (Fig. 2c) and associated with predicted global changes in precipitation, with extensions of the rainy season over most of the monsoon domains, except for the American monsoon34. Under RCP 8.5, the spatially averaged change in mean SSS is +0.51 (±0.57) PSU in the AEP and −0.68 (±0.44) PSU in the IWP region. The maximum decrease in mean SSS (−2.01 PSU) is predicted for the Gulf of Guinea in the AEP bioregion (Fig. 3c and Supplementary Table 4). Within the IWP, the Western Indian Ocean region shows little or no changes in SSS, which contrasts with the pronounced freshening trends predicted in the eastern part of this ocean basin and the Tropical West Pacific (Figs. 1b and 3c). Increased freshening is predicted in the Bay of Bengal (SSS change: −1.17 ± 0.43 PSU), the Sunda Shelf (SSS change: −1.21 ± 0.29 PSU) and the Western Coral Triangle province (mean SSS change: −0.80 ± 0.17 PSU) (Fig. 3c and Supplementary Table 4). Within the AEP, salinity increases exceed +0.96 PSU in the Tropical Northwestern Atlantic, +0.80 in the Warm Temperate Northwest Atlantic and +0.68 in the West African Transition (Fig. 3c and Supplementary Table 4). The spatial heterogeneity in SSS across the global range of mangrove forests corresponds with observed changes in SSS35. Trends in SSD (Fig. 3d) strongly track changes in SSS (Fig. 3c) rather than SST. All RCP scenarios predict an overall decrease in SSD for both mangrove bioregions; however, the predicted decrease in SSD in the IWP region was a factor of 2 (RCP 6.0) and 2.5 (RCP 2.6, RCP 4.5 and RCP 8.5) stronger than in the AEP (Figs. 2 and 3d and Supplementary Tables 14).

Propagule density values from our literature survey range from <600 kg m−3 to >1,080 kg m−3 for different mangrove species (Fig. 4 and Supplementary Table 5). The low densities reported for Heritiera littoralis propagules provide a strong contrast with the near-seawater propagule densities reported for Avicennia and members of the Rhizophoraceae (Bruguiera, Rhizophora and Ceriops). Floating characteristics of the latter may be particularly sensitive to changes in SSD. To illustrate the potential influence of changing ocean conditions on mangrove propagule dispersal, we considered threshold water density values (1,020 and 1,022 kg m−3) that are within the range where elongated propagules of important mangrove genera tend to change floating orientation (Fig. 4a). More specifically, we determined the ocean surface area with an SSD below or equal to these thresholds under different climate change scenarios (Fig. 5). Under RCP 8.5, the ocean surface covered by mangrove coastal waters (coastal waters bordering present mangrove forests) with a density ≤1,020 kg m−3 increases ~27% by 2100, notably more so in the IWP (~37%) than in the AEP (~6%) (Supplementary Table 6). A threshold of 1,022 kg m−3 results in increases of roughly +11% (global), +12% (IWP) and +8% (AEP) (Supplementary Table 7). Similar spatial patterns are observed for open-ocean waters within the global latitudinal range of mangroves (Fig. 5 and Supplementary Figs. 1 and 2).

Fig. 4: Potential effect of future declines in SSD on mangrove propagule dispersal.
figure 4

a, Range of reported propagule density values for wide-ranging mangrove species and present and future range of SSD for coastal waters along the range of those mangrove species. Mangrove propagule data are extracted from the literature (Supplementary Table 5). H. lit, Heritiera littoralis; X. gra, Xylocarpus granatum; A. ger, Avicennia germinans; A. mar, Avicennia marina; B. gym, Bruguiera gymnorrhiza; C. tag, Ceriops tagal; R. man, Rhizophora mangle; R. muc, Rhizophora mucronata. Bottom part adapted from ref. 51. b, Conceptual figure of the potential effects of ocean warming and freshening on mangrove propagule dispersal. Ocean warming and freshening drive changes in SSD and may reduce the timeframe for opportunistic colonization. For a propagule with a specific density and floating profile under present surface ocean conditions, reduced SSD of coastal and open-ocean waters may reduce floatation time (shaded area) and hence, reduce the proportion of long-distance dispersers. For simplicity, the density of propagules is assumed to increase linearly over time, although the actual increase may be nonlinear.

Fig. 5: Future changes in SSD.
figure 5

ad, Spatial extent of coastal and open-ocean surface waters with a density ≤1,020 kg m−3 (a,b) and 1,022 kg m−3 (c,d), for present (2000–2014) (a,c) and future (2090–2100; RCP 8.5) (b,d) scenarios. Data are shown for surface ocean waters within the global latitudinal range of mangrove forests (between 32° N and 38° S). The two density thresholds considered are within the range of densities at which mangrove propagule buoyancy and floating orientation of several mangrove genera change, as reported in available literature. Black dots along the coast represent the global mangrove extent from the 2015 GMW dataset32. Magenta-coloured circles represent SSD values <1,014 kg m−3. e,f, Ocean area with a density less than or equal to SSD (e) and future changes in the spatial extent of these regions (f) for different RCP scenarios.

Our study shows changes in the physical and chemical properties of coastal mangrove waters by the end of the twenty-first century that could affect the distribution of propagules from widespread mangrove genera (Avicennia, Bruguiera, Ceriops and Rhizophora) and probably more so within the IWP region, the primary hotspot of mangrove diversity, compared to the AEP. Propagules from these genera have densities that are close to that of seawater and experimental evidence shows that propagules in species of these genera typically become denser as they age36,37,38,39. For mangroves in large parts of the IWP, as well as the Gulf of Guinea in the AEP, declines in SSD could therefore promote local sinking rates and reduce the probability of successful long-distance dispersal due to earlier propagule sinking before reaching suitable establishment zones (Fig. 4). Indeed, future changes in surface ocean properties may impact dispersal differently at different scales. More specifically, short-distance dispersal may be promoted and successful long-distance dispersal reduced since (1) freshening of local waters near the propagule release site and associated sinking can reduce the fraction of propagules reaching open-ocean waters; and (2) older propagules that have travelled longer distances are at risk of offshore sinking due to the combined effect of increased propagule density during transport36,37,38,39 and fresher coastal waters; as such, increased ocean freshening and warming and resulting changes in SSD are likely to reduce the tail of the dispersal kernel—which captures long-distance dispersal events. Upon sinking, a propagule is at least temporarily eliminated from the dispersing cohort and prone to mortality associated with stranding in unsuitable conditions. Empirical evidence of mangrove distributions limited by sinking of propagules under increasingly fresher conditions in estuaries was shown for mangroves along the Nakara River in Japan36. Such effects are of considerable importance, since some of the most pronounced changes in SSS and SSD are near major river outlets where many of the most extensive mangrove areas in the world are found1, such as the Ganges–Brahmaputra delta. In contrast to the wide-ranging mangrove genera Avicennia, Bruguiera, Ceriops and Rhizophora, mangrove species such as H. littoralis and Xylocarpus granatum are unlikely to be affected by these ocean changes as their propagules possess very low densities13.

An additional level of complexity is that the floating orientation of propagules from several widespread mangrove genera (Rhizophora and Ceriops) could move between horizontal and vertical due to small changes in density38,40,41. Changes in floating orientation have been associated with the replacement of air in intercellular tissue by water via lenticels38; however, while the exact anatomical and physiological mechanisms underlying changes in mangrove propagule buoyancy are not yet fully understood, experimental and modelling studies showed that these changes in floating orientation can strongly alter dispersal trajectories at the landscape (102–103 m), regional (103–105 m), as well as the biogeographic scale (105–107 m), via the relative effects of ocean and wind forces on propagule transport42,43,44.

Besides effects of changes in SSD, propagule dispersal may also be directly impacted by SSS or SST. In Avicennia marina, propagule sinking has been associated with the shedding of the pericarp (Steinke, 1975, as cited in ref. 45) and the time required for pericarp shedding and the separation of the cotyledons increases with increasing salinity (Downton, 1982, as cited in ref. 45). As such, future ocean freshening might decrease floating periods and potentially dispersal distances in this species. Increases in SSS might also result in higher propagule mortality rates and lower germination success40, whereas lower SSS could reduce propagule viability by increasing the incidence of fungal infestation and rotting46. Finally, projected increases in SST may facilitate mangrove expansion to higher latitudes in some regions by reducing the negative effect of colder oceanic waters on propagule viability47. For example, an earlier study on the western South Atlantic latitudinal mangrove range limit reported that temperatures <20 °C may limit the viability of mangrove propagules during their dispersal along this coast and during subsequent establishment48. However, since empirical data on potential direct effects of SSS and SST on mangrove propagule dispersal are deficient, effects of these variables require further investigation.

It is important to note that changes indicated by our study are based on changes in time-mean surface ocean properties and that the actual variability in SSD around these mean values could be higher. Since mangroves thrive in a broad range of coastal settings, including estuaries, deltas, lagoons and open coast, their propagules already encounter a wide range of water densities today but our findings clearly illustrate that for important mangrove regions worldwide exposure to lower-density waters will occur more frequently in the future. While our results suggest changes in dispersal patterns following climate-driven changes in coastal and open-ocean surface-water properties, the effects also depend on adaptive capacity. Under current ocean conditions, propagule densities that are just slightly lower than that of seawater are probably adaptive, since this ensures that they sink in favourable coastal environments, that is, along coastal zones where SSS and SSD are lower due to freshwater influx from rivers. Yet, in future oceans the spatial extent of these lower-density waters may expand further offshore, altering buoyancy characteristics and the spatial distribution of propagules. The demographic costs associated with ending up in unsuitable habitat (for example, due to offshore sinking) can get balanced when populations evolve to have lower propagule densities. As such, there is a need for quantitative data for inter- and intra-population variation in the critical SSD at which mangrove propagules sink, which could reflect underlying genetic variation in propagule density that can fuel evolutionary change. Overall, our results suggest that we may be entering a density-induced transition phase as part of the Anthropocene, highlighting the importance of considering future ocean property changes in evaluating the impacts of climate change on mangrove ecosystems. Such information will complement knowledge on the effects of other impacting factors and is important for predicting how altered environmental conditions will affect these sensitive forests. Finally, while we considered mangroves as a model system in this study, our findings may be relevant also for other coastal taxa producing sea-drifted propagules, such as seagrasses49 and coastal strand communities (Terminalia catappa, Barringtonia asiatica, Thespesia populnea, Hibiscus tiliaceus, Pisonia grandis, Pandanus spp. and so on).

Methods

Ocean data

In this study we examine changes in SST, SSS and SSD over the next century. SSD has been largely overlooked in studies that examine the response of marine organisms to climate-driven ocean changes, despite its potential influence on the dispersal patterns and colonization potential of passive propagules with near-seawater densities. We calculated changes in mean SST and SSS over the next century using present (2000–2014) and future (2090–2100) data from Bio-ORACLE29,30, a database of GIS rasters providing geophysical, biotic and environmental data for surface and benthic marine realms (https://www.bio-oracle.org/). These data consist of uniformly constructed rasters provided at a spatial resolution of 5 arcmin (~0.08° or ~9.2 km at the Equator). Present layers were generated with climate data describing monthly means for the period 2000–2014, acquired from preprocessed global ocean ARMOR reanalyses that combine remotely sensed and in situ observations, while future data were produced by averaging output from atmosphere–ocean general circulation models provided by the Coupled Model Intercomparison Project Phase 5 (CMIP5)30. We are aware of the limitations of remotely sensed coastal ocean data and climate change projections of fine-scale near-shore circulation patterns, which may deviate from in situ observations52. However, using time-averaged SST and SSS data and considering spatially averaged patterns ensures that we are capturing general trends in coastal ocean changes. SSD was derived from these variables using the UNESCO EOS-80 equation of state polynomial for seawater31. Changes were calculated for four RCP scenarios: RCP 2.6 (490 CO2e before 2100 and then decline), RCP 4.5 (650 CO2e at stabilization after 2100), RCP 6.0 (850 CO2e at stabilization after 2100) and RCP 8.5 (>1,370 CO2e in 2100) (see ref. 53 for more details about RCPs).

Global mangrove range data

The GMW provides high-resolution (0.8 arcsec or ~25 m) global mangrove extent baseline maps based on Landsat sensor spectral composite data and Advanced Land Observing Satellite (ALOS) Phased Arrayed L-band Synthetic Aperture Radar (PALSAR) data for the years 1996, 2007, 2008, 2009, 2010, 2015 and 2016 (ref. 32). For this study, we used the 2015 mangrove extent baseline map since it most closely matches the end year of the period (2000–2014) considered for generating the Bio-ORACLE raster data of present-day marine environmental conditions30. Using the QGIS 3.10.10 software, centroids were computed for each GMW 2015 polygon (n = 583,578) and considered as our global mangrove occurrence dataset. Global mangrove occurrence points were assigned to the nearest grid cell (Euclidean distance) in the Bio-ORACLE fields. Since multiple occurrence points might have been assigned to the same grid cell, duplicates were removed, resulting in unique grid cell records for the GMW 2015 mangrove range (n = 10,108). Each of these steps was performed using the MATLAB 2020b programming software.

Mangrove species-specific data

A literature survey was conducted to collect data on mangrove propagule density values that were interpreted against the range of present and future SSD values within the range of Avicennia germinans (AEP), Avicennia marina (IWP), Bruguiera gymnorrhiza (IWP), Ceriops tagal (IWP), Heritiera littoralis (IWP), Rhizophora mangle (AEP), Rhizophora mucronata (IWP) and Xylocarpus granatum (IWP). This selection of mangrove species in our literature survey is based on the availability of propagule density data. Such data are surprisingly limited but nevertheless allow for a first assessment of species-specific differences in the sensitivity to SSD changes. Additionally, propagules of the selected species are representative for the variety of propagule morphotypes found among mangrove species globally and include the most widely distributed mangrove species (Avicennia spp. and Rhizophora spp.) for which distributional changes have been reported and predicted5,54,55. In the case that specific gravity values were reported36,56, we multiplied these values by 999.97 kg m−3 (the density of water at 4 °C, which is the standard density used to compute specific gravity) to obtain density values.

The 2015 GMW database used for our global analysis does not contain coordinates for species-specific mangrove distributions. Hence, data for different species were generated using vector layers obtained from the IUCN Red List website (https://www.iucnredlist.org/). The IUCN data for each species consist of a single polygon feature that was intersected with a 1:10 m global coastline downloaded from the Natural Earth database (https://www.naturalearthdata.com/) in QGIS 3.10.10. Before this intersection, we buffered the species distribution polygons using a buffer distance equal to the spatial resolution of the Bio-ORACLE marine data layers (0.5 arcmin) to avoid losing data where the original IUCN species distribution polygons did not overlap with the global coastline data. Point features were generated at 1 km distance for each line feature representing a species range, using the QChainage plugin in QGIS 3.10.10 and longitude and latitude information was added to each point for A. germinans (n = 4,610), A. marina (n = 11,231), B. gymnorrhiza (n = 9,665), C. tagal (n = 9,134), H. littoralis (n = 7,984), R. mangle (n = 3,431), R. mucronata (n = 9,519) and X. granatum (n = 8,890). Since the IUCN data show mangrove presence along vast stretches of coast (for example, Somalia and East Madagascar) where mangroves are absent in the 2015 GMW data, we extracted ocean data for the IUCN coordinates that correspond with a 2015 GMW occurrence point (the centroids of each 2015 GMW polygon feature). The resulting coordinates for A. germinans (n = 2,964), A. marina (n = 6,419), B. gymnorrhiza (n = 6,040), C. tagal (n = 5,653), H. littoralis (n = 5,100), R. mangle (n = 2,345), R. mucronata (n = 5,348) and X. granatum (n = 5,891) can be viewed as species-specific GMW data. Each of these computations was performed using the MATLAB 2020b programming software.

Spatial analyses

Spatial patterns in projected ocean property changes over the next century were explored by considering bioregion- and province-levels to subset our GMW 2015 data. Bioregion subsetting consists of coastal Bio-ORACLE cells in the AEP (between −180° and 19° longitude) and IWP (between 19° and 180° longitude) bioregion, whereas the province-level waters consist of a subsetting using the provinces provided by the MEOW dataset28.

Reporting summary

Further information on research design is available in the Nature Research Reporting Summary linked to this article.