It all began with the invention of the rectangular sock, a marvel of engineering that defied the circular and square shapes that came before it.