Thank you for visiting nature.com. You are using a browser version with limited support for CSS. To obtain the best experience, we recommend you use a more up to date browser (or turn off compatibility mode in Internet Explorer). In the meantime, to ensure continued support, we are displaying the site without styles and JavaScript.

# Extreme temperatures compromise male and female fertility in a large desert bird

## Abstract

Temperature has a crucial influence on the places where species can survive and reproduce. Past research has primarily focused on survival, making it unclear if temperature fluctuations constrain reproductive success, and if so whether populations harbour the potential to respond to climatic shifts. Here, using two decades of data from a large experimental breeding programme of the iconic ostrich (Struthio camelus) in South Africa, we show that the number of eggs females laid and the number of sperm males produced were highly sensitive to natural temperature extremes (ranging from −5 °C to 45 °C). This resulted in reductions in reproductive success of up to 44% with 5 °C deviations from their thermal optimum. In contrast, gamete quality was largely unaffected by temperature. Extreme temperatures also did not expose trade-offs between gametic traits. Instead, some females appeared to invest more in reproducing at high temperatures, which may facilitate responses to climate change. These results show that the robustness of fertility to temperature fluctuations, and not just temperature increases, is a critical aspect of species persistence in regions predicted to undergo the greatest change in climate volatility.

## Introduction

The range of temperatures that organisms can tolerate has a crucial influence on their distributions across space and time1,2,3. Our current understanding of thermal tolerance largely comes from studies examining how high temperatures affect survival4,5,6,7. However, it has recently been argued that because reproductive failure often occurs well before death, temperature effects on fertility (thermal fertility limits) may be more important in determining species responses to environmental change8,9,10,11,12. Characterizing how natural temperature fluctuations affect investment in fertility traits, such as the number and viability of eggs and sperm, and the impact this has on reproductive success is therefore crucially important, especially as climatic variation is expected to increase globally13,14. Do extreme temperatures have damaging effects on different fertility traits and if so, is there the potential for selection to increase resilience to changing climates?

Responses to selection for coping with more extreme and unpredictable temperatures relies on individuals varying in their thermal resilience15. One factor that can influence individual variation in thermal resilience is how reproductive and somatic investment are managed under thermal stress. For example, temperature extremes may lead to high physiological demand to protect essential organismal functions that reduce investment in reproduction1,16,17. Reduced reproductive investment can in turn generate trade-offs between different fertility traits that limit responses to selection for increased resilience to temperature change. However, whether temperature extremes expose such reproductive trade-offs, and the extent to which individuals vary in their prioritization of investment across different fertility traits, is unclear.

Research on the effects of natural temperature variation on reproduction in non-domesticated endotherms has primarily been on temperate species18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33. However, temperature unpredictability is greatest in tropical and sub-tropical regions and climate modelling shows this will increase in the future13,34. The reproductive performance of species living in such regions may also be particularly sensitive to the effects of climatic fluctuations, as they often have prolonged breeding seasons that increase their risk of exposure to shifts in environmental conditions. Furthermore, because temperate species typically have short breeding seasons, timed to the seasonal appearance of food (phenology), there has been a focus on whether advancing spring temperatures reduce breeding success through phenological mismatches18,19,20,21,22,23,24,25,26,27,28,35,36. Consequently, more information is needed on the effects of ecologically relevant temperatures on investment in the traits directly related to fertility, such as the production and viability of eggs and sperm.

Here we examine how temperature fluctuations over a 20-year period affect multiple fertility traits in the world’s largest bird, the ostrich (Struthio camelus), which reproduce throughout the year in tropical and sub-tropical regions (Fig. 1)37,38,39. Individually marked birds (n = 1299, Supplementary Table 1) were studied in the Klein Karoo region of South Africa where temperatures during the reproductive cycle ranged from −5 to 45 °C. Data on the fertility of females and males was obtained by collecting eggs daily from captive pairs, and by collecting natural ejaculates from captive solitary males. All pairs and solitary males used for sperm collection were kept in separate fenced enclosures of natural Karoo scrub exposed to natural weather conditions (Fig. 1a). Data were matched with onsite temperature records to investigate: (1) how thermal fluctuations shape investment in gametic traits (number of eggs and sperm, egg mass and sperm viability) and reproductive success (hatching success and offspring numbers), (2) individual variation in the resilience of fertility to temperature change, and (3) whether extreme temperatures cause trade-offs in investment across gametic traits.

## Results

### Is fertility compromised by hot and cold temperatures?

The number of eggs females laid and the number of sperm males ejaculated were significantly reduced by both increases and decreases in ambient temperature (Fig. 2a, b). The effects of temperature were not immediate, but resulted from a critical thermal window 2–4 days before laying and ejaculation (Supplementary Figs. 1 and 2; see the subsection “Time lag effects of temperature on gametes” in “Methods” section). During this critical thermal window, egg laying rate peaked at 20 °C (Supplementary Fig. 3), dropping by 15% and 18% when temperatures increased and decreased by 5 °C, respectively (Fig. 2a; Table 1, Supplementary Table 2). Similar reductions were seen in the number of sperm males ejaculated (19% with 5 °C increases and decreases from the optimum; Fig. 2b; Table 1, Supplementary Table 3), but the thermal optimum appeared to be slightly higher than for egg laying, peaking at ~26 °C (Supplementary Fig. 4). While this may indicate there is the potential for conflict over the thermal optima of males and females, this dataset was not designed to test this (see the subsection “thermal stress index” in “Methods” section). It is also likely that both 20 and 26 °C are within the thermal neutral zone (TNZ), which although not explicitly known for ostriches, spans from 10–15 to 30 °C in the closest relative, the emu (Dromaius novaehollandiae)40.

Fluctuations in temperature had much less of an effect on gamete viability than on the number of gametes. The mass of eggs females produced only decreased by 0.7% when temperatures fell from 20 to 15 °C and were unaffected by increases in temperature (Fig. 2c; Table 1; Supplementary Table 4). Similarly, the viability of sperm (viable sperm: normal morphology, intact membrane and eosin impermeable) males produced was robust to temperature fluctuations, with no consistent change with increases or decreases in temperature (Fig. 2d; Table 1; Supplementary Table 5).

### Do changes in fertility traits matter for reproductive success?

The effect of temperature on reproductive success (number of offspring) is a product of changes in egg laying rates and the probability that eggs hatch. Hatching success is in turn influenced by the fertilizing ability of males, which depends on the numbers and viability of sperm inseminated, and egg viability, which is linked to egg mass41,42. The potential effects of ambient temperatures during incubation on hatching success were removed by artificially incubating eggs using an on-site hatchery. Hatching success was significantly affected by the temperature birds experienced prior to laying: hatching success was reduced by 4–7% with 5 °C increases and decreases from 20 °C (Fig. 2e; Theat stress (credible interval, CI) = −0.26 (−0.43, −0.09), pMCMC = 0.002; Tcold stress (CI) = −0.57 (−0.98, −0.01), pMCMC = 0.028; Supplementary Table 6). Combined with changes in egg laying rates, this resulted in the total number of offspring decreasing by 28% with 5 °C increases, and 44% with 5 °C decreases in temperature from 20 °C (Fig. 2f; Tcold stress (CI) = −2.10 (−2.57, −1.60), pMCMC = 0.001; Theat stress (CI) = −1.42 (−1.61, −1.21), pMCMC = 0.001; Supplementary Table 7). Reproductive success can also be reduced if individuals die from temperature-related stress during the breeding season, but during the 21 years of experimental breeding only six adult deaths (0.5%) related to overheating were recorded. These results suggest that the negative effects of temperature fluctuations on reproductive success arise through the cumulative, detrimental effects on egg and sperm production under both low and high temperatures. It is also worth noting that these effects may be even more pronounced in wild populations where access to food and water is likely to be more restricted.

### Do individuals vary in how resilient their fertility is to temperature change?

There was substantial variation among females in how resilient their laying rates were to temperature change. Differences between individual females explained 24% of variation in the rate of decline in egg laying when temperatures increased, and 18% of variation when temperatures decreased (Table 1). Similarly, some males were much more resilient to temperature change than others, as indicated by the number of sperm they ejaculated (Table 1). When temperatures increased, 47% of variation in the decline in sperm numbers was explained by differences between males, and 57% when temperature decreased. We examined the robustness of these results using character state models where values of a trait are correlated between different temperature categories (cold (<17.7 °C), hot (>28.7 °C) and benign): correlations lower than one indicate variation between individuals in their response to temperature change43. These analyses confirmed that there were substantial differences among males and females in their responses to temperature change (Supplementary Tables 12 and 13).

Females were extremely consistent in their egg mass, which was relatively unaffected by temperature change (PSlopeVar: 0.03, Table 1). While average egg mass ranged from 1.41 to 1.68 kg among females, the most extreme change in egg mass of a female from 20 to 25 °C was an increase of just 0.015 kg. Despite this, a relatively large proportion of the variation in egg mass change was explained by differences between females, around 50%. Such consistent differences among females is in accordance with research on other bird species where egg mass is variable in populations, but highly consistent within individuals44. For males, the pattern was similar with around 60% of variation in the change in sperm viability with temperature being explained by differences between males (Table 1). That said, character state models showed only a weak correlation between measures of sperm viability at benign versus cold and hot temperatures, suggesting that data from extreme temperatures may inflate the estimation of between individual differences (Supplementary Table 15). Taken together, these results show that when temperatures increase and decrease, individual females and males vary substantially in the number and viability of eggs and sperm they produce. The efficacy of selection to promote thermal tolerance is therefore unlikely to be limited by a lack of variation between individuals.

### Is the resilience of fertility to temperature change compromised by trade-offs between traits?

When individuals are exposed to temperature extremes, simultaneous investment in multiple traits may not be possible. The resulting trade-offs can take two forms. First, negative correlations between fertility traits may occur at extreme temperatures because physiological stress limits the resources individuals have to invest across reproductive traits. Second, there may be negative correlations in the degree of change across traits (thermal resilience) rather than absolute trait values. For example, investment in the maintenance of one trait may come at the expense of maintenance of other traits.

We found no evidence of any negative correlations between any fertility traits within or among individuals at any temperature (Fig. 3; Supplementary Table 18). This shows that the number of eggs females produce and the number of sperm males ejaculate is not traded-off against egg mass or sperm viability in either hot or cold periods. Instead, correlations between traits within females were generally significantly positive, indicating that investment in the number and mass of eggs are up and down regulated together (Fig. 3; Supplementary Table 18). Furthermore, among individuals there was a significant positive relationship between change in egg laying rates and change in egg mass as temperatures increased (Fig. 3). This is contrary to the idea that temperature stress induces trade-offs between fertility traits. Instead, this suggests that some females respond to higher temperatures by producing more eggs that are also heavier, compared to other females.

## Discussion

It has been argued that to understand how species are affected by environmental change, it is crucial to broaden the current focus on lethal limits to include thermal fertility limits9. Our results provide support for this proposition, as only six adults (0.5%) died from thermal stress, whereas there were dramatic reductions of 28–44% in reproductive success with 5 °C deviations from their thermal optimum. Although increased climatic change has brought into focus the effect of rising temperatures on survival and population persistence34, our results show that cooler, as well as hotter, temperatures may pose a challenge for species.

Much of the classical life-history research on birds has focused on the seasonal appearance of food as a factor limiting breeding success45,46, whereas the direct effects of temperature on reproduction have remained more unclear (but see Hurley et al.11). In ectotherms, extreme temperatures have been shown to reduce both the number and the quality of gametes individuals produce9,47,48 and similar effects have been found in domestic chickens, domestic mammals and laboratory mice49,50,51,52. Such concordant effects of heat stress on different gametic traits suggests that high temperatures may lead to a general degradation of reproductive function. While our results show that heat and cold stress compromise reproductive success, this was not because of consistent detrimental effects across all traits, but rather specific responses of traits to temperature change: Sperm viability and egg mass did not decline even under the most extreme thermal stress, whereas the number of gametes individuals produced was highly sensitive to temperature change.

One potential reason for why the numbers and quality of gametes differ in their response to temperature change is that they are under different mechanistic control. Reductions in sperm and oocyte production caused by heat stress have been shown in mammals to occur due to decreases in testosterone in males and changes in luteinizing hormone in females50,51. General physiological changes due to temperature stress may therefore reduce rates of gametogenesis9. In contrast, changes in sperm and follicular function have previously been linked to processes, such as DNA damage9,49,50,51, and may be somewhat shielded from physiological stress by the follicle/testes–blood barriers53. Alternatively, the limited effects of temperature on sperm viability and egg mass may be due to reduced sensitivity to physiological stress, consistent with early life-history models54, or other measures of gametic performance may be required to detect the effects of temperature on gamete quality. For example, the biochemical composition of eggs can vary independently of egg mass and can influence offspring fitness55,56. The differences in the response of gametic traits to temperature change highlights the importance of understanding reproductive mechanisms when predicting outcomes of environmental change, and has important implications for how thermal fertility limits are studied.

The evolution of increased thermal tolerance is key to the persistence of populations as environments change and become more unpredictable1,15. Our results show that ostrich populations harbour individual variation in resilience to temperature change that may facilitate responses to shifting climates. However, this raises the question of why some individuals are more susceptible to temperature change than others? Given the fitness benefits of increased thermal tolerance, why has selection not eliminated variation within populations57? One possibility is that there are alternative strategies to cope with temperature change during reproduction. If thermal tolerance is costly, tolerant individuals that reproduce across a wide range of temperatures (generalists) may have comparable fitness to individuals that only reproduce under specific thermal conditions (specialists), if they have lower reproductive success per breeding attempt1,58,59,60. We found no support for this idea, and if anything the opposite was true: Certain females appeared to specialize in reproducing at higher temperatures by increasing both the number and mass of eggs they laid, with no apparent reductions in egg mass at other times. It is possible that the ability of females to increase laying rates without compromising egg mass under extreme temperatures is facilitated by their unique life-history characteristics, including laying extremely small eggs relative to their body size. Whether certain life-history characteristics increase or decrease the vulnerability of species to climate change is unclear and clearly warrants further investigation.

Another possibility is that variation in thermal tolerance is maintained due to alternative breeding strategies. Ostriches have an extremely flexible breeding system, reproducing in both pairs and cooperative groups37,38,39. Cooperative breeding in birds has been shown to be a successful strategy for coping with high and fluctuating temperatures where breeding in pairs often fails61,62,63. In this study, it was necessary to restrict breeding opportunities to pairs to gain detailed measures of individual reproductive success. It is therefore possible that the sensitivity of individuals to temperature change may be alleviated by the buffering effects of sociality when opportunities to breed in groups arise64,65,66,67.

This study shows thermal stress is an important factor that can limit reproductive success (see also Nord and Nilsson68 and Walsh et al.9), even in species, such as the ostrich, that are well adapted to survive in extreme thermal environments. To explain the past and predict the future effects of climate change, it is crucial to quantify the effects of temperature on the fertility in species inhabiting different biogeographical zones and with different breeding biology. The extent to which the results of this study can be generalized remains to be established, given that little is known about temperature-dependent fertility in other tropical and sub-tropical species. However, the challenges faced by endotherms in arid, tropical and sub-tropical regions are clear and have already led to the collapse of entire bird communities34. A key feature of climate change highlighted by our results is that both hot and cold temperatures likely pose a challenge for species, providing an illustration of why temperature fluctuations, and not just temperature increases, are critical to study.

## Methods

### Study site and population

The study site is situated at the Oudtshoorn Research Farm in the arid Klein Karoo of South Africa (GPS: 33°38′21.5″S, 22°15′17.4″E). The ostriches used in this study are derived from 139 founding individuals, consisting of individuals classified into one of two subpopulations with the popularized names South African Blacks (S. camelus) or Zimbabwean Blues (S.c. australis). From 1998 to 2018 the reproduction of captive breeding pairs (nfemales = 756, nmales = 701) was monitored in 197 enclosures of ~0.25 ha of natural Karoo habitat69. A male and a female ostrich were assigned to each enclosure in May/June each year and kept together until the end of the breeding season in December/January. Male–female combinations were established to prevent inbreeding and where possible, generate new combinations each year. From 2008 to 2018 the fertility of males (n = 22) kept in solitary enclosures (20 m × 17 m) and trained to ejaculate into an artificial cloaca using a dummy female was monitored (method developed by Rybnik et al.70). Ostriches received a diet designed for breeding individuals (90–120 g protein, 7.5–10.5 MJ metabolizable energy, 26 g calcium and 6 g phosphorus per kg feed) and water ad libitum. Levels of dietary protein and energy were reduced across years to lower feed costs, which had negligible effects on fertility71,72. Maximum daily temperature records were obtained from a local weather station 600 m from the study site. Ethical clearance was obtained from the Western Cape Department of Agriculture (DECRA R12/48).

### Reproductive data

#### Female gametic traits

Pairs were checked twice a day and any eggs were collected and weighed using an electronic balance (Mercer). This gave us an estimate of the daily changes in quantity and mass of female gametes, that could be directly compared to daily temperatures. In two years the laying season was extended beyond February until April. All data from these months were removed to ensure data were consistent with other years. We also removed data from pairs where the male or female was replaced during the breeding season, which occurred sometimes when individuals were injured or died. Data on the rate of egg laying from these replacement pairs indicated that acclimation to enclosures and new partners takes ~45 days (Supplementary Fig. 5). Based on this information we removed data from the first 45 days from each season. Two-year-old females had substantially lower reproductive success than older breeders (Supplementary Fig. 6, see also Cloete et al.69) so these were removed from the data. Pairs that spent fewer than 200 days in their enclosure in a given year were removed so that data were consistent across pairs and years. Finally, pairs that laid fewer than 10 eggs per year were removed to avoid including incompatible pairings and individuals not in breeding condition, which reduced the total number of females in the analyses to 652.

#### Male gametic traits

For males, the ability to deliver high quantities of sperm of high quality is crucial for fertilization success73,74,75. We obtained natural ejaculates from solitary males kept in individual enclosures and estimated the number of sperm and sperm viability. Semen collections were performed three to five times a week and after periods of sexual rest the first three ejaculates collected were discarded. From the resulting set of ejaculates we kept data on the first ejaculate collected each day, typically obtained in the morning, from each individual. Sperm concentration was measured with a spectrophotometer in 20 µL semen diluted 1:400 (v/v) with a phosphate buffered saline solution containing 10% formalin. The number of sperm was estimated as the product of sperm concentration and ejaculate volume, which we estimated using an automatic pipette. Sperm viability was estimated by inspecting 500 sperm stained with nigrosin-eosin, and characterizing a sperm as viable if the morphology was normal (complete unit of tail, midpiece and slightly curved head)76, the membrane was intact and eosin impermeable77. Only males from which we were able to obtain at least five ejaculates were included in the analysis to avoid including males not accustomed to the ejaculation collection process. Subsets of these data have previously been used to test effects of season, age and collectio78,79,80.

#### Hatching success and number of offspring

Hatching success reflects the product of both male and female gametic traits as well as the quality of incubation. To control incubation effects, eggs were artificially incubated in an on-site hatchery until hatching. Eggs were stored (1–6 days) at 17 °C and 80–90% humidity with two daily rotations through a 180° angle until eggs were moved to incubators once a week. Eggs were incubated at 36.2 °C and 24% humidity with hourly rotation on their long axis through a 60° angle for the first 35 days and then switched to a hatcher set at 36 °C and 24% humidity for the remaining 7 days81. This dataset was subject to the same filtering procedure as the female egg traits.

### Statistical analyses

#### Time lag effects of temperature on gametes

The time period where different traits are influenced by fluctuations in ambient temperatures (i.e. the critical thermal window) is unknown. We therefore estimated the sensitivity of each trait to different sliding thermal windows preceding gamete production using general linear models (GLMs), where different thermal windows were entered as predictors of gametic traits at the population level. A window size of 3 days was chosen and one day steps were examined from 7 days before to 5 days after egg laying. We chose a window size of 3 days to capture immediate temperature fluctuations, while minimizing the effects of seasonal trends that occurred with larger windows. This also enabled us to avoid missing daily extreme events that occurred with smaller windows. Supplementary one-day and two-day window analyses supported this decision, as three sequential one-day windows (or two overlapping two-day windows) were particular important predictors of egg-laying (Supplementary Fig. 7). The thermal windows after egg laying served as controls, as we did not expect any predictive power apart from the autocorrelation in temperature. In each window, the average daily maximum temperature (AVG-TMAX) was modelled as a quadratic effect. To identify the critical thermal window, we compared the models using Akaike information criterion (AIC) or QAIC (Quasi-AIC) to account for the overdispersion common to logistic regressions. The maximum egg-laying rate is one egg every 2 days. We therefore modelled the probability of laying as the number of 2-day intervals with (eggs/2 days) and without eggs using a Binomial error distribution, which was necessary to correctly model the variance in successes (our response ranged from 0 to 1 whereas eggs per day ranged from 0 to 0.5). Model comparison with QAIC showed that the critical thermal window was 2–4 days before egg-laying (Supplementary Fig. 1). Interestingly 2 days is also the time it takes for eggs to travel down the oviduct82,83. Egg mass was modelled using a Gaussian error distribution and the ranking of AIC was very sensitive to small model adjustments and extreme temperatures, reflecting the generally low effect of temperature on this trait (Fig. 1 and see the section “Discussion”). Visual inspection revealed a consistent trend of increasing egg mass at extreme high temperatures but not at intermediate to high temperatures (Fig. 1). To reduce the influence of these extreme data points, without removing the entire trend of what may be a true biological signal we removed the 0.5% hottest and the 0.5% coldest records in this particular analysis. Several thermal windows prior to egg-laying appeared to predict egg mass equally well, but we proceeded with 0–2 days before egg laying as the critical window for this trait due to its proximity to day of laying (Supplementary Fig. 1). For both hatching success (Binomial error distribution: number hatched vs. number not hatched) and the number of offspring (Binomial error distribution: 2-day intervals with chicks vs. 2 days without chicks, chicks/2 days) we used 0–4 days before egg laying as the critical thermal window as this included all days used as predictors for egg mass and egg laying rate. In birds, spermatogenesis is believed to range from 11 to 15 days84, and we therefore tested thermal windows from 15 days before to 5 days after ejaculation. The critical thermal window for the number of sperm (Poisson distribution) was 2–4 days before ejaculation, and while sperm viability (Binomial error distribution: number alive vs. number dead) was also influenced by temperature during this time, the window 4–6 days before ejaculation was a better predictor (Supplementary Fig. 2). However, as results did not differ between the analyses of sperm viability detailed below (random regression and character-state models) when using 2–4 vs. 4–6 days, we used 2–4 days for consistency across traits. The critical thermal windows estimated for sperm and egg traits are specific to this study. If other species are studied it will be important to estimate these parameters using similar critical thermal window analyses from time series datasets.

#### Thermal stress index

For each trait we modelled the response to increases and decreases in temperature by creating cold and heat thermal stress indexes. This was done by first estimating the temperature at which trait values were maximized (thermal optimum), and secondly by calculating decreases (Tcold stress) and increases (Theat stress) away from this optimum. Using GLMs we modelled the change in number of sperm and eggs produced as a response to AVG-TMAX (linear and quadratic terms) of the critical thermal window, and extracted the parametric vertex as the thermal optimum (rounded to closest degree Celsius). For egg laying the optimum was estimated as AVG-TMAX = 20 °C (Supplementary Fig. 3), which also reflects the centre of the TNZ of the emu40 (unknown for the ostrich). For the number of sperm ejaculated the optimal temperature was estimated to be 26 °C (Supplementary Fig. 4). As a result, Theat stress for females was from 20 to 45 °C and for males it was from 26 to 45 °C. Tcold stress was from 20 to 10 °C for females and from 26 to 10 °C for males. The observed difference in thermal optima between sexes is intriguing, but this dataset was not designed to robustly test for sex differences: the fitness of males and females are intertwined in the pairs and we have no direct data on how solitary male sperm performance influenced female fitness. To make the intercept of the statistical models represent the most benign temperature we subtracted the minimum stress value resulting in 0 being the new minimum (no stress) of the thermal stress index. The variance of slopes (see below) depends on the scale of the environmental parameter and we therefore standardized this by dividing by the maximum of the range resulting in 1 being the maximum deviation from 0.

#### Modelling resilience to temperature change using random regression models

We constructed random regression models in R v.3.6.085 using the Bayesian framework implemented in the R-package MCMCglmm v.2.2986. For both residual and random terms we used the weakly informative inverse-Gamma distribution (scale = 0.001, shape = 0.001, i.e. V = n, nu = (n−1 + 0.002 with n being the dimension of the matrix) as priors. For female gametic traits, models were run for 10,000,000 iterations of which the initial 100,000 were discarded and only every 10,000th iteration was used for estimating posterior probabilities. For male gametic traits, models were run for 3,000,000 iterations, of which the initial 30,000 were discarded and only every 3000th iteration was used for estimating posterior probabilities. The number of iterations was based on inspection of autocorrelation among posterior samples in preliminary runs. Convergence of the estimates was checked by running the model three times and inspecting the overlap of estimates in trace plots and the level of autocorrelation among posterior samples. Posterior mode and 95% credible intervals are reported for random effects, correlations and repeatability measures. Models included the fixed effects of thermal stress (ranging from 0 to 1) and stress type (cold or heat). The interaction between thermal stress and stress type was modelled with a common intercept for cold stress and heat stress, as the construction of the thermal stress index dictated that these intercepts are identical.

For the three traits modelled with Binomial error distributions (egg laying, hatching success and number of offspring) data were grouped into four hot and three cold thermal stress classes, each representing the number of observations with success (e.g. 2-day intervals with egg) and the number of observations with failure (e.g. 2-day intervals without egg). For female gametic traits we included the additional fixed effects of female subpopulation (South African Blacks: 476 females, Zimbabwean Blues: 68 females or crosses: 108 females) and its interaction with the thermal stress and stress type, as well as female age and the subpopulation of the pair male. Results were highly consistent across subpopulations and we therefore report fixed effect estimates from the most numerous subpopulation (South African Blacks) for brevity. Population-specific estimates are available in the results tables provided in the supplementary information. The mass of eggs decreased with the number of days since the previous egg (Supplementary Fig. 8). This was accounted for by including days since previous egg (linear and quadratic terms, log-transformed) as a fixed effect in the egg mass model. Several sperm-characteristics may peak at an intermediate age78, and therefore linear and quadratics effects of age were included as fixed effects in models. We accounted for environmental effects that differed across years, such as diet, by including year as a random effect. For egg-laying rates, egg mass, hatching success and offspring number, enclosure was also added as a random effect, since they were used repeatedly across years and varied in size and vegetation cover. The males used for sperm collection were kept in the same enclosures across years and therefore we did not have enclosure as random effect in analyses of sperm traits (not possible to separate individual from enclosure effects). The enclosures where males were kept for sperm collection are, however, extremely similar making it unlikely that this was a significant source of error variance.

#### Quantifying individual variation in resilience to temperature change

In all models the thermal stress index and type of stress (cold versus heat) was allowed to interact with ostrich ID to model the individual variance (id). This was modelled as 3 × 3 unstructured variance–covariance matrix composed of the intercept (idint), slope during cold stress (idsl-cold) and slope during heat stress (idsl-heat). Individual repeatability (R) of trait values at the optimum temperature (Tstress = 0, 20 °C for females and 26 °C for males) was then estimated as the proportion of intercept variance that is explained by the individual variance in intercepts:

$$R_{{\mathrm{{int}}}} = \frac{{\sigma _{{\mathrm{{id}}}_{{\mathrm{{int}}}}}^2}}{{\sigma _{{\mathrm{{id}}}_{{\mathrm{{int}}}}}^2 + \sigma _{{\mathrm{{year}}}}^2 + \sigma _{{\mathrm{{enclosure}}}}^2 + \sigma _{{\mathrm{{res}}}}^2}}.$$
(1)

Individual variation in the cold and heat stress slopes was used as an estimate of variation in resilience to increasing and decreasing temperatures, i.e. phenotypic plasticity. However, to estimate the repeatability of slopes for individuals (consistency of individual by environment interaction; I × E), we constructed a second set of models. In these models a second 3 × 3 unstructured variance–covariance matrix of individual by year (id-yr) combinations was added, allowing the repeatability of thermal plasticity within individuals across different breeding years to be calculated. Variance in individual slopes is on a different scale to that of intercepts, and also dependent on the scaling of the temperature index. For these reasons we followed a recently introduced practice87,88 and estimated the repeatability of thermal slopes as the proportion of slope variance attributable to between individual variance:

$$R_{{\mathrm{{sl}}}} = \frac{{\sigma _{{\mathrm{{id}}}_{{\mathrm{{sl}}}}}^2}}{{\sigma _{{\mathrm{{id}}}_{{\mathrm{{sl}}}}}^2 + \sigma _{{\mathrm{{id}}} - {\mathrm{{yr}}}_{{\mathrm{{sl}}}}}^2}}.$$
(2)

To quantify how much variation in each trait was explained by responses to temperature we transformed the between individual and within individual slope variance to the same scale as the intercept variances using $$\sigma _{\mathrm{{E}}}^2 = \sigma _{{\mathrm{{sl}}}}^2 \ast {\mathrm{{var}}}(x)$$, where var(x) is the variance of the environmental variable, the temperature index89. We then expressed this variation as a ratio of the total variance, including between individual and within individual intercept variance as well as year, enclosure and residual variance:

$${\mathrm{{PSlopeVar}}} = \frac{{\sigma _{{\mathrm{{id}}}_{{\mathrm{{Ehot}}}}}^2 + \sigma _{{\mathrm{{id}}} - {\mathrm{{yr}}}_{{\mathrm{{Ehot}}}}}^2 + \sigma _{{\mathrm{{id}}}_{{\mathrm{{Ecold}}}}}^2 + \sigma _{{\mathrm{{id - yr}}}_{{\mathrm{{Ecold}}}}}^2}}{{\sigma _{{\mathrm{{id}}}_{{\mathrm{{Ehot}}}}}^2 + \sigma _{{\mathrm{{id - yr}}}_{{\mathrm{{Ehot}}}}}^2 + \sigma _{{\mathrm{{id}}}_{{\mathrm{{Ecold}}}}}^2 + \sigma _{{\mathrm{{id - yr}}}_{{\mathrm{{Ecold}}}}}^2 + \sigma _{{\mathrm{{id}}}_{{\mathrm{{int}}}}}^2 + \sigma _{{\mathrm{{id - yr}}}_{{\mathrm{{int}}}}}^2\sigma _{{\mathrm{{year}}}}^2 + \sigma _{{\mathrm{{enclosure}}}}^2 + \sigma _{{\mathrm{{residual}}}}^2}}.$$
(3)

It has recently been debated if the fixed effect variance ($$\sigma _{\mathrm{{f}}}^2$$) should be included in the denominator when estimating R90. There are arguments for including fixed effect variance if it captures natural variation and excluding it if it represents experimental variance91. For full transparency we chose to report estimates of $$\sigma _{\mathrm{{f}}}^2$$ excluding variance from the thermal index ($$\sigma _{{\mathrm{{f}}}_{ - {\mathrm{{thermal}}}\,{\mathrm{{stress}}}}}^2$$) as this parameter has already been accounted for by the interaction with the random terms. We estimated fixed effect variance of all terms ($$\sigma _{{\mathrm{{f}}}_{{\mathrm{{all}}}}}^2$$) and of thermal stress separately ($$\sigma _{{\mathrm{{f}}}_{{\mathrm{{thermal}}}\,{\mathrm{{stress}}}}}^2$$) following de Villemereuil et al. 91, such that $$\sigma _{{\mathrm{{f}}}_{ - {\mathrm{{thermal}}}\,{\mathrm{{stress}}}}}^2 = \sigma _{{\mathrm{{f}}}_{{\mathrm{{all}}}}}^2 - \sigma _{{\mathrm{{f}}}_{{\mathrm{{thermal}}}\,{\mathrm{{stress}}}}}^2$$.

As egg laying, hatching success and number of offspring are modelled via a logit link function, estimates of R are calculated on the latent scale. While this scale has the benefit of fulfilling the typical assumptions of parametric analyses, it may not reflect the scale at which selection is working. Methods have therefore been developed to make inferences on the observed scale92. There are currently no methods to perform this transformation for a model using a logit-link function and where the number of trials varies between data points. Instead it is possible to calculate estimates of repeatability on the expected scale (corresponding to the liability scale in a threshold model) according to equations in de Villemereuil et al. 92 using the R-package QGglmm92. Similar methods are not available for the slope variance parameters presented below, and all estimates presented in the main document are therefore on the latent scale for consistency. Where possible, we also provide estimates on the expected scale in the supplementary material (Supplementary Tables 210).

#### Modelling resilience to temperature change using character-state models

As an alternative modelling approach to random regression, we modelled changes in each trait across three temperature categories (cold, benign and hot), using character-state models. For egg-related traits the ranges for these categories were limited by the lower number of cold compared to hot days, according to the thermal optimum cut-off used in the random regression analysis (20 °C). To avoid low replication in the cold category relative to hot days we assigned the lowest 50% of days classified as Tcold stress as cold (<17.7 °C, neggs = 10,483), and the highest 30% of days classified as Theat stress as hot (>28.7 °C, neggs = 14,759), with the remainder being classified as benign (neggs = 56,297). Data on sperm traits had higher temperature values. We therefore increased the temperature cut-offs (cold: <18.7 °C, nejaculations = 319; hot: >29.7 °C, nejaculations = 392 and benign nejaculations = 1174). The models were constructed in MCMCglmm v.2.2986 and followed the same general approach as the random regression models described above. The major difference was that temperature category was included as a fixed factor and the interaction between the random effect ostrich ID and temperature category was modelled as a 3 × 3 unstructured variance–covariance matrix composed of the cold, benign and hot temperature categories. We also estimated the residual variance separately for each temperature category (see Supplementary Tables 1217 for further details on the model components).

To quantify correlations between female gametic traits (egg mass vs. number of eggs with 0–4 days before egg laying as the critical thermal window) and between male gametic traits (sperm viability vs. number of sperm with 2–4 days before ejaculation as the critical thermal window) two-trait models were used. These were setup using MCMCglmm v.2.2986 with the same error distributions as the single-trait models. For female gametic traits, models were run for 5,000,000 iterations of which the initial 100,000 were discarded and only every 2000th iteration was used for estimating posterior probabilities. For male gametic traits, models were run for 3,000,000 iterations, of which the initial 30,000 were discarded and only every 3000th iteration was used for estimating posterior probabilities. Each trait comparison was analysed with both random regression models and with character-state models, containing the same fixed effects as the single-trait models, but with the reserved term “trait” interacted with all fixed effect components. Models also contained the same basic random effects as the single trait models, but with the random effects and residuals estimated separately for each trait. In the random regression models the interaction between ostrich ID and thermal stress was modelled by constructing two 4 × 4 unstructured variance–covariance matrices, one for Theat stress and one for Tcold stress, composed of the intercept and slope for both traits. Two similar matrices were constructed for the interaction between individual by year (id-yr) records and thermal stress. Using these matrices, we extracted covariance between traits in the response to heat or cold stress among and within individuals, which was then used to estimate correlations (correlation = covariancetrait1,trait2/sqrt(vartrait1*vartrait2)). In the character-state models the interaction between ostrich ID and temperature category was modelled by constructing three 2 × 2 unstructured variance–covariance matrices composed of either the cold, benign or hot thermal category for both traits. These matrices were used to extract covariance components between traits among individuals for a given thermal category, and use these to estimate correlations. Similar matrices were also used to model the residual variance (within individuals) in the character-state models.

### Reporting summary

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

## Data availability

The data that support the findings of this study are available from the Western Cape Department of Agriculture in South Africa (WCDA). Restrictions apply to the use of these data, and so are not publicly available. Data are however available from the WCDA upon request. Source data are provided with this paper.

## Code availability

The code used in this study is available as an R-file (Supplementary Code 1).

## References

1. Angilletta, M. J. Thermal Adaptation: A Theoretical And Empirical Analysis (Oxford University Press, 2009).

2. Chown, S. L., Sinclair, B. J., Leinaas, H. P. & Gaston, K. J. Hemispheric asymmetries in biodiversity—a serious matter for ecology. PLoS Biol. 2, e406 (2004).

3. Sunday, J. M., Bates, A. E. & Dulvy, N. K. Thermal tolerance and the global redistribution of animals. Nat. Clim. Change 2, 686–690 (2012).

4. Kellermann, V., van Heerwaarden, B., Sgrò, C. M. & Hoffmann, A. A. Fundamental evolutionary limits in ecological traits drive Drosophila species distributions. Science 325, 1244–1246 (2009).

5. Araújo, M. B. et al. Heat freezes niche evolution. Ecol. Lett. 16, 1206–1219 (2013).

6. García-Robledo, C., Kuprewicz, E. K., Staines, C. L., Erwin, T. L. & Kress, W. J. Limited tolerance by insects to high temperatures across tropical elevational gradients and the implications of global warming for extinction. Proc. Natl Acad. Sci. USA 113, 680–685 (2016).

7. Geerts, A. N. et al. Rapid evolution of thermal tolerance in the water flea, Daphnia. Nat. Clim. Change 5, 665–668 (2015).

8. Iossa, G. Sex-specific differences in thermal fertility limits. Trends Ecol. Evol. 34, 490–492 (2019).

9. Walsh, B. S. et al. The impact of climate change on fertility. Trends Ecol. Evol. 34, 249–259 (2019).

10. Vasudeva, R. et al. Adaptive thermal plasticity enhances sperm and egg performance in a model insect. eLife 8, e49452 (2019).

11. Hurley, L. L., McDiarmid, C. S., Friesen, C. R., Griffith, S. C. & Rowe, M. Experimental heatwaves negatively impact sperm quality in the zebra finch. Proc. R. Soc. B 285, 20172547 (2018).

12. Dahlke, F., Wohlrab, S., Butzin, M. & Pörtner, H. Thermal bottlenecks in the lifecycle define climate vulnerability of fish. Science 369, 65–70 (2020).

13. Bathiany, S., Dakos, V., Scheffer, M. & Lenton, T. M. Climate models predict increasing temperature variability in poor countries. Sci. Adv. 4, 1–11 (2018).

14. Vázquez, D. P., Gianoli, E., Morris, W. F. & Bozinovic, F. Ecological and evolutionary impacts of changing climatic variability. Biol. Rev. 92, 22–42 (2017).

15. Chevin, L.-M., Lande, R. & Mace, G. M. Adaptation, plasticity, and extinction in a changing environment: towards a predictive theory. PLoS Biol. 8, e1000357 (2010).

16. Sgrò, C. M. & Hoffmann, A. A. Genetic correlations, tradeoffs and environmental variation. Heredity 93, 241–248 (2004).

17. Wood, C. W. & Brodie, E. D. Environmental effects on the structure of the G-matrix. Evolution 69, 2927–2940 (2015).

18. Brommer, J. E., Merila, J., Sheldon, B. C. & Gustavsson, L. Natural selection and genetic variation for reproductive reaction norms in a wild bird population. Evolution 59, 1362–1371 (2005).

19. Brommer, J. E., Rattiste, K. & Wilson, A. J. Exploring plasticity in the wild: laying date–temperature reaction norms in the common gull Larus canus. Proc. R. Soc. B 275, 687–693 (2008).

20. Nussey, D. H., Postma, E., Gienapp, P., Visser, M. E. & Gienapp, P. Selection on heritable phenotypic plasticity in a wild bird population. Science 310, 304–306 (2005).

21. Charmantier, A. et al. Adaptive phenotypic plasticity in response to climate change in a wild bird population. Science 320, 800–803 (2008).

22. Matthysen, E., Adriaensen, F. & Dhondt, A. A. Multiple responses to increasing spring temperatures in the breeding cycle of blue and great tits (Cyanistes caeruleus, Parus major). Glob. Change Biol. 17, 1–16 (2011).

23. Both, C. & Visser, M. E. Adjustment to climate change is constrained by arrival date in a long-distance migrant bird. Nature 411, 296–298 (2001).

24. Schiegg, K., Pasinelli, G., Walters, J. R. & Daniels, S. J. Inbreeding and experience affect response to climate change by endangered woodpeckers. Proc. R. Soc. B 269, 1153–1159 (2002).

25. Wilson, S., Norris, D. R., Wilson, A. G. & Arcese, P. Breeding experience and population density affect the ability of a songbird to respond to future climate variation. Proc. R. Soc. B 274, 2539–2545 (2007).

26. Dunn, P. O. & Winkler, D. W. Climate change has affected the breeding date of tree swallows throughout North America. Proc. R. Soc. B 266, 2487–2490 (1999).

27. Hällfors, M. H. et al. Shifts in timing and duration of breeding for 73 boreal bird species over four decades. Proc. Natl Acad. Sci. USA 117, 18557–18565 (2020).

28. Gienapp, P., Postma, E. & Visser, M. E. Why breeding time has not responded to selection for earlier breeding in a songbird population. Evolution 60, 2381 (2006).

29. Jàrvinen, A. Global warming and egg size of birds. Ecography 17, 108–110 (1994).

30. Kitaysky, A. S. & Golubova, E. G. Climate change causes contrasting trends in reproductive performance of planktivorous and piscivorous alcids. J. Anim. Ecol. 69, 248–262 (2000).

31. Julliard, R., Clavel, J., Devictor, V., Jiguet, F. & Couvet, D. Spatial segregation of specialists and generalists in bird communities. Ecol. Lett. 9, 1237–1244 (2006).

32. Weatherhead, P. J. Effects of climate variation on timing of nesting, reproductive success, and offspring sex ratios of red-winged blackbirds. Oecologia 144, 168–175 (2005).

33. Auer, S. K. & Martin, T. E. Climate change has indirect effects on resource use and overlap among coexisting bird species with negative consequences for their reproductive success. Glob. Change Biol. 19, 411–419 (2013).

34. Riddell, E. A., Iknayan, K. J., Wolf, B. O., Sinervo, B. & Beissinger, S. R. Cooling requirements fueled the collapse of a desert bird community from climate change. Proc. Natl Acad. Sci. USA116, 21609–21615 (2019).

35. Visser, M. E., Van Noordwijk, A. J., Tinbergen, J. M. & Lessells, C. M. Warmer springs lead to mistimed reproduction in great tits (Parus major). Proc. R. Soc. B 265, 1867–1870 (1998).

36. Both, C., Bouwhuis, S., Lessells, C. M. & Visser, M. E. Climate change and population declines in a long-distance migratory bird. Nature 441, 81–83 (2006).

37. Magige, F. J., Stokke, B. G., Sortland, R. & Røskaft, E. Breeding biology of ostriches (Struthio camelus) in the Serengeti ecosystem, Tanzania. Afr. J. Ecol. 47, 400–408 (2009).

38. Bertram, B. C. R. The Ostrich Communal Nesting System (Princeton University Press, New Jersey, 1992).

39. Kimwele, C. N. & Graves, J. A. A molecular genetic analysis of the communal nesting of the ostrich (Struthio camelus). Mol. Ecol. 12, 229–236 (2003).

40. Maloney, S. K. Thermoregulation in ratites: a review. Aust. J. Exp. Agric. 48, 1293–1301 (2008).

41. Hassan, S. M., Siam, A. A., Mady, M. E. & Cartwright, A. L. Egg storage period and weight effects on hatchability of ostrich (Struthio camelus) eggs. Poult. Sci. 84, 1908–1912 (2005).

42. Gonzalez, A., Satterlee, D. G., Moharer, F. & Cadd, G. G. Factors affecting ostrich egg hatchability. Poult. Sci. 78, 1257–1262 (1999).

43. Roff, D. A. & Wilson, A. J. Quantifying genotype-by-environment interactions in laboratory systems. In Genotype‐by‐Environment Interactions and Sexual Selection (eds. Hunt, J. & Hosken, D.) 100–136 (John Wiley & Sons, Ltd, 2014).

44. Christians, J. K. Avian egg size: variation within species and inflexibility within individuals. Biol. Rev. Camb. Philos. Soc. 77, 1–26 (2002).

45. Lack, D. The Natural Regulation of Animal Numbers (Clarendon Press, 1954).

46. Perrins, C. M. The timing of birds‘ breeding seasons. Ibis 112, 242–255 (1970).

47. Sales, K. et al. Experimental heatwaves compromise sperm function and cause transgenerational damage in a model insect. Nat. Commun. 9, 1–11 (2018).

48. McAfee, A. et al. Vulnerability of honey bee queens to heat-induced loss of fertility. Nat. Sustain 3, 367–376 (2020).

49. Pérez-Crespo, M., Pintado, B. & Gutiérrez-Adán, A. Scrotal heat stress effects on sperm viability, sperm DNA integrity, and the offspring sex ratio in mice. Mol. Reprod. Dev. 75, 40–47 (2008).

50. Hansen, P. J. Effects of heat stress on mammalian reproduction. Philos. Trans. R. Soc. B 364, 3341–3350 (2009).

51. Moreno, R. D., Lagos-Cabre, R., Bunay, J., Urzua, N. & Bustamante-Marin, X. Molecular basis of heat stress damage in mammalian testis. In Testis: Anatomy, Physiology and Pathology (eds. Nemoto, Y. & Inaba, N.) 127–155 (Nova Science, 2012).

52. Karaca, A. G., Parker, H. M., Yeatman, J. B. & McDaniel, C. D. The effects of heat stress and sperm quality classification on broiler breeder male fertility and semen ion concentrations. Br. Poult. Sci. 43, 621–628 (2002).

53. Mita, P., Hinton, B. T. & Dufour, J. M. The blood–testis and blood–epididymis barriers are more than just their tight junctions. Biol. Reprod. 84, 851–858 (2011).

54. Smith, C. C. & Fretwell, S. D. The optimal balance between size and number of offspring. Am. Nat. 108, 499–506 (1974).

55. Ojanen, M. Composition of the eggs of the great tit (Parus major) and pied flycatcher (Ficedula hypoleuca). Ann. Zool. Fenn. 20, 57–63 (1983).

56. Krist, M. Egg size and offspring quality: a meta-analysis in birds. Biol. Rev. 86, 692–716 (2011).

57. Falconer, D. S. & Mackay, T. F. C. Introduction to Quantitative Genetics (Pearson, 1996).

58. Lynch, M. & Gabriel, W. Environmental tolerance. Am. Nat. 129, 283–303 (1987).

59. Gilchrist, G. W. Specialists and generalists in changing environments. I. Fitness landscapes of thermal sensitivity. Am. Nat. 146, 252–270 (1995).

60. Whitlock, M. C. The red queen beats the jack-of-all-trades: the limitations on the evolution of phenotypic plasticity and niche breadth. Am. Nat. 148, S65 (1996).

61. Pen, I. & Weissing, F. J. Towards a unified theory of cooperative breeding: the role of ecology and life history re-examined. Proc. R. Soc. B 267, 2411–2418 (2000).

62. Emlen, S. T. The evolution of helping. I. An ecological constraints model. Am. Nat. 119, 29–39 (1982).

63. Rubenstein, D. R. Spatiotemporal environmental variation, risk aversion, and the evolution of cooperative breeding as a bet-hedging strategy. Proc. Natl Acad. Sci. USA 108, 10816–10822 (2011).

64. Cornwallis, C. K. et al. Cooperation facilitates the colonization of harsh environments. Nat. Ecol. Evol. 1, 0057 (2017).

65. Rubenstein, D. R. & Lovette, I. J. Temporal environmental variability drives the evolution of cooperative breeding in birds. Curr. Biol. 17, 1414–1419 (2007).

66. Albright, T. P. et al. Mapping evaporative water loss in desert passerines reveals an expanding threat of lethal dehydration. Proc. Natl Acad. Sci. USA 114, 201613625 (2017).

67. Vincze, O. et al. Parental cooperation in a changing climate: fluctuating environments predict shifts in care division. Glob. Ecol. Biogeogr. 26, 347–358 (2017).

68. Nord, A. & Nilsson, J. Å. Heat dissipation rate constrains reproductive investment in a wild bird. Funct. Ecol. 33, 250–259 (2019).

69. Cloete, S. W. P. et al. Variance components for live weight, body measurements and reproductive traits of pair-mated ostrich females. Br. Poult. Sci. 47, 147–158 (2006).

70. Rybnik, P. K., Horbanczuk, J. O., Naranowicz, H., Lukaszewicz, E. & Malecki, I. A. Semen collection in the ostrich (Struthio camelus) using a dummy or a teaser female. Br. Poult. Sci. 48, 635–643 (2007).

71. Brand, T. S., Olivier, T. R. & Gous, R. M. The response in food intake and reproductive parameters of breeding ostriches to increasing dietary energy. South Afr. J. Anim. Sci. 40, 434–437 (2010).

72. Brand, T. S., Olivier, T. R. & Gous, R. M. The reproductive response of female ostriches to dietary protein. Br. Poult. Sci. 56, 232–238 (2015).

73. Martin, P. A., Reimers, T. J., Lodge, J. R. & Dziuk, P. J. The effect of ratios and numbers of spermatozoa mixed from two males on proportions of offspring. J. Reprod. Fertil. 39, 251–258 (1974).

74. Birkhead, T. R. & Møller, A. P. Sperm Competition and Sexual Selection (Academic Press, 1998).

75. Birkhead, T. R. & Biggins, J. D. Sperm competition mechanisms in birds: models and data. Behav. Ecol. 9, 253–260 (1998).

76. Soley, J. T. & Roberts, J. C. Ultrastructure of ostrich (Struthio camelus) spermatozoa. II. Scanning electron microscopy. Onderstepoort J. Vet. Res. 61, 239–246 (1994).

77. Lake, P. E. & Stewart, J. M. Artificial Insemination in Poultry. Ministry of Agriculture Fisheries and Food, Bulletin 213 (Her Majesty’s Stationery Office, 1978).

78. Bonato, M., Malecki, I. A., Rybnik-Trzaskowska, P. K., Cornwallis, C. K. & Cloete, S. W. P. Predicting ejaculate quality and libido in male ostriches: effect of season and age. Anim. Reprod. Sci. 151, 49–55 (2014).

79. Bonato, M., Rybnik, P. K., Malecki, I. A., Cornwallis, C. K. & Cloete, S. W. P. Twice daily collection yields greater semen output and does not affect male libido in the ostrich. Anim. Reprod. Sci. 123, 258–264 (2011).

80. Muvhali, P. T. et al. Ostrich ejaculate characteristics and male libido around equinox and solstice dates. Trop. Anim. Health and Prod. 52, 2609–2619 (2020).

81. Brand, Z., Cloete, S. W. P., Brown, C. R. & Malecki, I. A. Systematic factors that affect ostrich egg incubation traits. South Afr. J. Anim. Sci. 38, 315–325 (2008).

82. Bronneberg, R. G. G. et al. The relation between ultrasonographic observations in the oviduct and plasma progesterone, luteinizing hormone and estradiol during the egg laying cycle in ostriches. Domest. Anim. Endocrinol. 32, 15–28 (2007).

83. Van Schalkwyk, S. J., Cloete, S. W. P. & De Kock, J. A. Repeatability and phenotypic correlations for body weight and reproduction in commercial ostrich breeding pairs. Br. Poult. Sci. 37, 953–962 (1996).

84. Jones, R. C. & Lin, M. Spermatogenesis in birds. In Oxford Reviews of Reproductive Biology, Vol. 15 (ed. Milligan, S. R.) (Oxford University Press, 1993).

85. R Core Team. R: A Language and Environment for Statistical Computing (R Core Team, 2020).

86. Hadfield, J. D. MCMC methods for multi-response generalized linear mixed models: the MCMCglmm R package. J. Stat. Softw. 33, 1–22 (2010).

87. Araya-Ajoy, Y. G. & Dingemanse, N. J. Repeatability, heritability, and age-dependence of seasonal plasticity in aggressiveness in a wild passerine bird. J. Anim. Ecol. 86, 227–238 (2017).

88. Araya-Ajoy, Y. G., Mathot, K. J. & Dingemanse, N. J. An approach to estimate short-term, long-term and reaction norm repeatability. Methods Ecol. Evol. 6, 1462–1473 (2015).

89. Scheiner, S. M. Genetics and evolution of phenotypic plasticity. Annu. Rev. Ecol. Syst. 24, 35–68 (1993).

90. Wilson, A. J. Why h2 does not always equal VA/VP. J. Evol. Biol. 21, 647–650 (2008).

91. de Villemereuil, P., Morrissey, M. B., Nakagawa, S. & Schielzeth, H. Fixed-effect variance and the estimation of repeatabilities and heritabilities: Issues and solutions. J. Evol. Biol. 31, 621–632 (2018).

92. de Villemereuil, P., Schielzeth, H., Nakagawa, S. & Morrissey, M. General methods for evolutionary quantitative genetic inference from generalized mixed models. Genetics 204, 1281–1294 (2016).

93. BirdLife International. BirdLife International and Handbook of the Birds of the World. Bird Species Distribution Maps of the World (BirdLife International, 2019).

94. Fick, S. E. & Hijmans, R. J. WorldClim 2: new 1-km spatial resolution climate surfaces for global land areas. Int. J. Climatol. 37, 4302–4315 (2017).

## Acknowledgements

We are thankful to all the staff and workers at Oudtshoorn Research Farm for assistance with data collection and maintenance of the birds and to the Western Cape Government for use of their resources. Special thanks to Naomi Oosthuizen for assistance with semen collections. The computations were performed on resources provided by SNIC through Uppsala Multidisciplinary Center for Advanced Computational Science (UPPMAX) under Project SNIC 2018/8-359. This research was funded by a stipend from the Carlsberg Foundation to M.F.S. and by the Swedish Research Council (grant number 2017-03880), the Knut and Alice Wallenberg Foundation (Wallenberg Academy fellowship number 2018.0138), Carl Tryggers (grant numbers 12: 92 and 19: 71) and an Oppenheimer travel exchange fund to C.K.C. E.I.S. was financially supported by a grant from the Swedish Research Council (grant number 2016-03356). The maintenance and development of the ostrich populations used in this study was funded by the Western Cape Department of Agriculture and supported by grants from the Western Cape Agricultural Research Trust (Grant number 0070/000VOLSTRUISE: (Cloete)) as well as the Technology and Human Resources for Industry programme (THRIP—Grant number TP14081390585) of the South African National Research Foundation to S.W.P.C.

## Funding

Open Access funding provided by Lund University.

## Author information

Authors

### Contributions

Conceptualization: M.F.S., C.K.C.; Data curation: M.F.S., C.K.C., M.B., A.E., Z.B., P.T.M., S.W.P.C.; Formal analysis: M.F.S.; Funding acquisition: M.F.S., S.W.P.C., C.K.C.; Investigation: M.F.S., M.B., A.E., Z.B., J.M., P.T.M., S.W.P.C., C.K.C.; Methodology: M.F.S., E.I.S., C.K.C.; Project administration: M.F.S., M.B., C.K.C.; Writing—original draft: M.F.S., C.K.C.; Writing—reviewing and editing: M.F.S., M.B., A.E., Z.B., E.I.S., J.M., P.T.M., S.W.P.C., C.K.C.

## Ethics declarations

### Competing interests

The authors declare no competing interests.

Peer review information Nature Communications thanks Nicola Hemmings, Sheri Johnson, Tom Price and the other, anonymous, reviewer(s) for their contribution to the peer review of this work. Peer reviewer reports are available.

Publisher’s note Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.

## Rights and permissions

Reprints and Permissions

Schou, M.F., Bonato, M., Engelbrecht, A. et al. Extreme temperatures compromise male and female fertility in a large desert bird. Nat Commun 12, 666 (2021). https://doi.org/10.1038/s41467-021-20937-7

• Accepted:

• Published:

• DOI: https://doi.org/10.1038/s41467-021-20937-7

• ### Egg-laying increases body temperature to an annual maximum in a wild bird

• Magella Guillemette
• David Pelletier

Scientific Reports (2022)