Trait variation in extreme thermal environments under constant and fluctuating temperatures