Fish reduce the duration and depth of cold-water excursions in larger measure the colder the water temperature below the thermal interface. (A) Fish perform cold-water excursions in which they cross the thermal interface and swim into colder water, then turn upward to return to the warmer water. Individual cold excursions were characterized by their duration, Ω, and the maximum vertical distance to the thermal interface, Dmax. (B) Fish exhibit shorter durations of cold-water excursions when encountering lower water temperatures below the interface (Tbottom). The decreasing trend was statistically significant (Mann–Kendall test: for Ω≈, p < 0.001; for D≈max, p < 0.001; Supplementary Table 6). Boxplots show the median duration of cold-water excursions for fish groups across all phases (p1, p2 and p3) within each treatment. Points represent the median of a single experiment. TR2, one outlier not shown (out of range). (C) For colder water temperatures, fish penetrate less deeply into the cold lower water. The decreasing trend was statistically significant (Mann–Kendall test: D≈max, p < 0.001; Supplementary Table 6). Underlying distributions and histograms are shown in Supplementary Fig. 18. Equivalent plots for warm treatments are shown in Supplementary Fig. 17A,B. (D and E) Probability density distributions of the durations Ω of warm- and cold-water excursions for TR1 (D) and TR3 (E), respectively. The distributions of the warm- and cold-water excursion durations become increasingly distinct over exposure time for TR3 but not TR1. Excursions at 12 °C (above the interface) are shown in black, while excursions in the lower, colder water are depicted in the respective color. Treatment phases are indicated by line type (p1–p3). Values of n indicate the total number of excursions of each type within that phase for 20 fish (as the excursions alternate, n is equal for cold and warm excursions). Underlying histograms of D and E and other treatments are shown in Supplementary Fig. 19 and 16.