Human ingenuity is impressive, but not infinite. I recommend Collapse by Jared Diamond. It's a long read, but every single society he examines thought they were doing great but ended up eating each other (literally) within a couple of generations once some vital resource dried up. Human ingenuity failed all of them.
I'll give you peak oil: our ingenuity is already finding viable alternative energy solutions. But climate change is going to destabilise so much more - food, water, land, security - that I'm pessimistic that our civilisation will last more than a few generations.
So far we've only discovered more positive feedback (e.g. methane from melting Siberia), when we desperately need strong negative feedback. A bit like Covid, where everyone assumed the ingenious new vaccines would get us back to normal in a couple of months, but mutations, politics and social dynamics mean we're still very much on the back foot.
But hey, I'm 60 and still a lefty so obviously no brain and just a bullshit doomer :) But do grab a copy of Collapse, there are a lot of "whoa!" insights and it's a fascinating read.