Extreme climate events and individual heterogeneity shape life-history traits and population dynamics