I assume current technology requires significant fossil fuels to be used to manufacture and transport the type of batteries that can replace the heavy lifting that fossil fuels do.
We have electric cars and whatnot, but they're still far more expensive than fossil fuel cars with less bang for the buck in terms of power and portability. I doubt we will see cost effective construction vehicles, ships, planes, etc. powered via batteries anytime soon, at least not on a timescale that makes a material difference.
https://www.iea.org/world/energy-mix
22.9% natural gas + 30% oil + 27.6% coal = 80.5% of the world's energy coming from fossil fuels today.
Fossil fuels are still a very powerful, cost effective, and versatile battery compared to electric batteries.
The BYD Seagull costs $10,150. If there wasn't tarrifs on China EVs would be significantly cheaper. The cost of batteries has been decreasing exponentially just like the cost of solar. Electric tractor trailers are already on the road. Your pessimism about electric heavy machinery is misplaced.
From my perspective it's like you're looking at the market for telephones in 2004 and remarking that most phones are landlines and most portable phones are flip phones and therefore you don't see a future for smartphones.
Solar and wind are cheaper than any other form of electricity in history. (Often even when paired with a storage facility) The fact that it doesn't always shine or blow when needed is driving massive investment into storage technology. The world is changing rapidly. You're not paying attention.