The company will hire an lawyer specialized in immigration law. H1B visa seems appropriate. The US company will file a visa petition and among a lot of other paperwork have to prove they haven't found a US resident with the same qualification for the position, e.g. by pointing to job ads they ran and counting number of applications. There is limit of number of visas granted per country, I think the total is 60.000 these days. The short answer is it's complex, expensive and waiting period is years.
> my legal status is remote contractor, and I think essentially my employer
You are your own company. The US company is your client.