While the universe may be indifferent to the outcome of the human experiment, I'm not! I want my contributions and descendants to live on in a form that recognizes who I was and what I did. I want technological civilization to last for millennia. That can't happen if IQ we let average IQ decay by fifteen points century over century.
Which isn't to say that nonfunctional selection criteria cannot be at play (the peacock's tail is a common example). Just that when push comes to shove, traits with practical survival characteristics matter.
One instance in humans that I'm aware of that operates differently from what might be expected is a recent (< 5,000 years) adaptation in much of the Tibetan population that distinguishes them from their ancestral cousin Han Chinese. This is a mutation which gives them enhanced survival capabilities at high altitudes. But it isn't (as I understand) a trait which increases the body's capacity to absorb or hold oxygen, but one which allows it to do better with lower blood oxygen levels. Leading to among other things, greater fecundity in those circumstances.
I'm also aware of other adaptations elsewhere, particularly of highland Inca/Andes populations with generally shorter stature (lower overall metabolic demands) and increased lung capacity. Again, somewhat distantly recalled stories.
Point being that the path to greater levels of adaptation may not be the one you'd think.
Evolution and selective pressure is a thing. I've no doubt it's continuing to happen for humans, though to what result remains an interesting question.
I've got my own views on what the world going forward is likely to face, and much of it isn't pretty. What I don't bring to bear on that though is any preconceived notion of who is likely to survive or gain proportionately (though I've got some ideas of winners and losers to some regards).
The question of how intelligence tracks as selective pressures change is an open one. As is the question of what types of intelligence are most advantageous. As I commented below, evolution isn't teleological. There isn't some ideal life form we're purposefully evolving toward. It's chance variation, selective pressures, and, occasionally, a vast slate-clearing and general reset, much of which is up to chance as much as anything.
What's beneficially adaptive can change exceptionally quickly.
Recent research on the Chicxulub meteor impact suggests, for example, that the event created a global firestorm as debris from the impact re-entered around the globe. Surviving lifeforms were those which could shelter underground or under water. Adaptations to large size of dinosaurs were, for the period of that firestorm, exceptionally maladaptive. Following the event, though, new lifeforms evolved into empty niches and formerly small mammals increased in size. Until humans spread around the globe and began pressuring and hunting megafauna into extinction.
Round and round it goes.