Is anybody still mining bitcoin?

BitcoinBitcoin
$20,001.76
‑1.63%
self.Bitcoin7d ago
I was once told that bitcoins value is roughly equal to the energy cost of mining it and because the hash puzzles are increasingly more complex the cost of mining will keep increasing. Energy costs have increased dramatically in the last 6 months but Bitcoins value has halved. Surely that means mining is no longer economically viable. Or have I missed something?