How your creative engineers manage to engineer if they're starving or at the mercy of gangs? Only if they're well fed and protected in a strong community can they thrive and help back.
The first warlord to protect the nerds and solidify logistics will build the strongest army.
Sparta never became a world power. Raw brute force alone does nothing. The first move of the Great Khan was to capture bureaucrats from China to organize his army.
That's what separated the Spartans from the Great Khan, and that will be the same issue if society ever degenerates to that state again.
Guns and non perishable food aren't enough and they're not a warranty either, but they're a good start and better than nothing.