BEIJING (BLOOMBERG) - The surprise arrest of Ms Meng Wanzhou, chief financial officer of Huawei Technologies, has thrust the company into a political firestorm and deepened a core threat: That more and more countries will blacklist its switches, routers and phones out of growing concern that they could be hijacked by foreign spies.
Yet, inside Huawei's Shenzhen headquarters, a secretive group of engineers toil away, heedless of such risks.
They are working on what's next - a raft of artificial intelligence, cloud-computing and chip technology crucial to China's national priorities and Huawei's future.
As the trade war drags on, China's government has pushed for the creation of an industry that is less dependent on cutting-edge United States semiconductors and software.
Ms Meng's detention, far from slowing these ambitions, will instead speed the fall of this "silicon curtain", when the US and China will no longer provide chips to each other, Mr Gus Richard, a Northland Capital Markets analyst, wrote in a recent report.
"Huawei is the icon of the rise of China's industrial power," he wrote.
Though Ms Meng was granted bail by a Canadian court, she must remain in the Vancouver area as she awaits possible extradition to the US on fraud charges.
The company is investing massive resources in next-generation technology, seeking to replicate the success it has had in other areas.
Over the past decade, the closely held Huawei quietly emerged as a titan in networking and telecom gear, now second only to San Jose, California-based Cisco Systems. Then, it entered the smartphone market and, in a surprise to most observers, toppled Apple in market share earlier this year.
Huawei's technical expertise, combined with its ties to China's blue-chip firms and government, could let it engineer another surprise in what many see as the critical backbone of future technology. Those ambitions are consistent with the government's goals.
President Xi Jinping wants China to be a self-sustaining leader in semiconductors - Huawei is showing that it can.
Mr Xi wants China to have a global footprint - Huawei has one. Mr Xi wants China to move from basic manufacturing to more lucrative industries, with the country capturing the benefits - and Huawei does that, too.
A sprawling room at its Shenzhen campus is filled with digital mock-ups of how banks, retail stores and city streets would look like with Huawei's technological capabilities. That tech is created a short drive away, inside a research lab nicknamed the "White House". Visitors there are rare.
Yet the mock-up room, called the "vertical industries exhibition hall", welcomes guests and imagines a future where companies and governments use Huawei's cloud and AI to crunch data, spur sales and make cities see and hear everything.
Huawei's Enterprise Business Group, which trails networking and smartphones in sales, sells components and services for Internet-connected devices, smart cities and cloud products.
It will net more than US$10 billion (S$13.7 billion) in revenue this year, about a 10th of the company's overall total, said Mr Qiu Heng, the division's chief marketing officer, in an interview in November.
The company expects enterprise sales to double every two years. That means the business would lap US$100 billion in 2025, the year China's government has set to reach independence in technological production. And those projections are without an American business - Mr Qiu said estimates for his division exclude the US, where Huawei is a political pariah.
In one area, Huawei has a head start. In the past two years, the largest Internet companies formed semiconductor units to improve their cloud offerings and AI applications, such as image recognition and voice assistance.
Huawei's chip design unit, HiSilicon, has been around since 2004. It started working on customised chips to handle complex algorithms on hardware before the cloud companies did.
Research firm Alliance Bernstein estimates that HiSilicon is on pace for US$7.6 billion in sales this year, more than doubling its size since 2015.
"Huawei was way ahead of the curve," said Mr Richard, the analyst.
Yet, in terms of sales and operations, Huawei's cloud business is meagre next to its larger rivals. The company spent about US$13 billion on research and development in 2017, up more than 17 per cent from the previous year. Its rivals in the cloud market have cut similarly sized cheques.
"Huawei has concluded that if it does not offer future solutions via the cloud, where its customers are migrating, someone else will," said Mr Soh Siow Meng, a research manager for GlobalData.
By some measures, Huawei is lagging in software, too.
In AI fields, such as deep learning and computer-vision systems, the company is "feverishly seeking to catch up" to US titans, said Mr Oren Etzioni, head of the Allen Institute for Artificial Intelligence.
"Huawei has data and government support, but are at a substantial disadvantage when it comes to AI," he added.
Still, if any company could erase that hindrance quickly, it would be Huawei.
Recent research from computer scientists in Zurich looked at the processing chops of Android phones and put the chips from HiSilicon at the top.
Like its rivals, Huawei is throwing everything into its cloud package. It recently debuted a set of AI software tools, and in October released a new specialised chip, called the Ascend.
"No other chip set has this kind of capability of processing," Mr Qiu said.
Few chip-makers have such easy access to customers ready to invest deeply in AI. In Huawei's case, that customer is the Chinese government.
The company sees a massive opening in the national ambition to plug every city street, camera and piece of infrastructure into a digital grid.
Huawei's aim, said analyst Soh, is to become the "nerve centre" for smart cities.
Police in Shenzhen, which is just across the border from Hong Kong, are using Huawei's chips for several traffic cameras. Mr Qiu said a single chip set can process video footage for as many as 16 cameras, a fourfold jump in computing power.
The cloud business allows Huawei to rely on its home market.
While its overall sales are split about evenly inside and outside of China, close to 60 per cent of the enterprise business comes from China, Mr Qiu said.
In the US, Huawei's size makes it a ready target for national security hawks; it loomed behind President Donald Trump's decision to block a US$117 billion merger.
Mr Qiu said the company's products are compliant with Europe's General Data Protection Regulation, meaning that its clients, not Huawei, own and store data used in the applications.
Huawei must tread carefully in Europe, where it has cloud partnerships with several carrier clients including Germany's Deutsche Telekom.
In the months before the CFO's arrest, US officials have reportedly asked counterparts in Germany and several European nations to drop Huawei equipment for 5G networks over security concerns. A Deutsche Telekom representative declined to comment.
In a statement, a Huawei spokesman said the company operates in more than 170 countries, and criticised the reported moves by US officials.
"If a government's behaviour extends beyond its jurisdiction, such activity should not be encouraged," the spokesman said.
GlobalData's Soh suggested that Huawei should turn to more welcoming markets across Latin America and Africa for its enterprise business, particularly after Ms Meng's arrest in Canada.
"As long as they stick to the game plan, they still have a lot of room to grow," he said. "Unless the US manages to get their allies to stop buying them."