The week before Russia attacked, a Ukrainian soldier peered through a periscope from the bottom of his trench. Mud seeped into his boots, his clothes and every crack in his gear as he walked the narrow space where he had spent his days for the past 10 months.

Zakhar Leshchyshyn was just 23. He had no memory of Ukraine as anything but a fully independent country. But now he was charged with helping to keep it that way, posted at Ukraine鈥檚 eastern front line since early last spring, when 100,000 Russian land and naval forces first encircled most of his country.

鈥淭hese wars for territory are madness,鈥 he said, 鈥渂ut probably this is human nature.鈥

Within days, Ukraine was engulfed by what the soldier in the trench saw as humanity鈥檚 dark impulse. The largest invasion Europe has seen since the Second World War has imperiled a young democracy while risking geopolitical instability far beyond the flashpoints of the new war.

In the conflict鈥檚 earliest days, each side has managed to surprise the other. Russia unleashed a broader, larger invasion than almost anyone had predicted. And Ukraine, at least by U.S. and other Western accounts, has put up a more tenacious fight than many thought possible against the neighbouring superpower. Fortunes can turn at any moment.

鈥淚t鈥檚 not apparent to us that the Russians over the last 24 hours have been able to execute their plans as they deemed that they would. But it鈥檚 a dynamic, fluid situation,鈥 Pentagon press secretary John Kirby said Friday.

And so it has been for much of the past year. Russia alternately added and subtracted troops along the border, diplomacy seemed to make progress until it didn鈥檛, Russian President Vladimir Putin seemed restrained, then not, then maybe, then not.

The path to war was convoluted 鈥 but also inexorable.

AN EARLY MARKER

It was back on March 31 of last year when the U.S. military raised an alert of a 鈥減otential imminent crisis鈥 arising from Russian drills near the Ukrainian border. Not long after, Russian troops were ordered back to their permanent bases and the sense of alarm eased.

But those orders also required Russian troops to leave their heavy weaponry in Crimea and the Voronezh region bordering Ukraine, where it would already be in place if the forces returned 鈥 which they did. The reprieve was brief for Leshchyshyn鈥檚 unit and for Ukrainian President Volodymyr Zelensky, who had tweeted that the redeployment 鈥減roportionally reduces tension.鈥

Soon afterward, U.S. President Joe Biden agreed to meet Russian President Vladimir Putin in Geneva, a summit widely seen as a reward for suspending the drills. But by the end of summer, it was clear that Putin鈥檚 military plans were just getting started 鈥 even if they hadn鈥檛 quite taken shape yet.

When Zelensky visited Washington on Sept. 1, he came away with a pledge of US$60 million in military aid.

IN THE TRENCH

Leshchyshyn鈥檚 life in the deserted frontline village of Zolote continued as before, circumscribed by the labyrinth of trenches he commanded. The monotony of four-hour shifts on guard was broken by periodic exchanges of fire with Russia-backed separatists, and by the news he caught on his mobile phone.

Roots poked out along the walls of the trench, but they were never enough to hold up the mud when a shell exploded nearby. Those not on guard duty shored up the sides with hand shovels.

When they returned to their basement barracks in a house with no roof, the same shovels scraped the congealed mud from their boots. When night fell, the village was dark and quiet enough that Leshchyshyn鈥檚 men and the separatists sometimes shouted curses at each other from their respective trenches.

By early November, the mud was back, thick enough to weigh down the soldiers鈥 boots. So were the Russian troops 鈥 90,000 of them again near the border, with more on the way from all corners of the world鈥檚 largest country.

ALARM IN WASHINGTON

The warnings from the Biden administration grew more pointed, and for the first time, U.S. intelligence officials started sharing specifics with Zelensky, European officials and eventually the public.

The White House realized that it was looking at the beginnings of what would probably turn into an enormous crisis by October. Officials were seeing a cascade of worrying intelligence strains, including troop movements, that suggested that Putin was looking to move on Ukraine.

Biden wanted Putin to know what he knew. He sent CIA Director Bill Burns to Moscow to warn Kremlin officials that the U.S. was fully aware of their troop movements. The White House made the calculation that the CIA chief鈥檚 travels, normally closely held, needed to be advertised far and wide.

鈥淲e wanted it to be known that he was there and understood by the Russians that we were starting to put them on notice and that we were going to do so publicly as well as privately,鈥 said a senior administration official, who spoke on condition of anonymity to discuss internal deliberations.

Soon after that trip, administration officials decided they needed to accelerate intelligence sharing. They also began discussions with allies about sanctions should Russia invade.

In early December, national security officials shared information from an intelligence document with the press showing at least 70,000 Russian troops had massed near the Ukraine border. Much of the information could be gleaned independently but White House officials thought it was crucial to get the information out in the open 鈥渨ith U.S. government branding.鈥

So began a name-and-shame campaign in which the White House national security officials widely distributed a series of plots they contend Putin was weighing to set a pretext for an invasion of Ukraine.

Critics of U.S. intelligence 鈥 Russian officials among them 鈥 recalled past failures like the infamously false identification of weapons of mass destruction in Iraq nearly 20 years ago and the unexpectedly swift fall of Kabul last year.

In mid-November, a senior European diplomat spoke to The Associated Press on condition of anonymity to discuss confidential briefings. The diplomat was unconvinced by U.S. intelligence findings.

鈥淲e see the military build-up, at the same time, we don鈥檛 have any intelligence that there鈥檚 something like military action, or that Russians would be trying to become militarily active, so we don鈥檛 share this opinion, even though the Americans have said so,鈥 the diplomat said. 鈥淲e don鈥檛 see that there is intention on Putin鈥檚 part so far.鈥

At NATO, Germany blocked efforts to help Ukraine acquire military equipment. France and Germany objected to launching NATO鈥檚 crisis management system, but eventually relented at a NATO foreign ministers鈥 meeting in Latvia on Dec. 1. The move was essentially symbolic. The system is used to identify whether there is a crisis and launch preliminary planning to respond.

PUTIN鈥橲 GUESSING GAME

With some satisfaction, Putin said the military buildup has caused a 鈥渃ertain stress鈥 in the West. 鈥淚t鈥檚 necessary to keep them in that condition for as long as possible鈥 to secure long-term security guarantees for Russia, he added.

He laid down his demands on Dec. 15: a ban on NATO membership for Ukraine and other ex-Soviet nations, a halt to the deployment of NATO weapons in those countries and a rollback of NATO forces from Eastern Europe. Meanwhile Russian troops kept arriving in Belarus to Ukraine鈥檚 north and on its eastern frontiers where heavy weaponry had been stockpiled since the spring.

Zelensky continued to play down the troop movements, noting that Ukraine had been facing threats from Russia and the separatists since 2014, when Russia annexed Crimea. On Jan. 10, Russia鈥檚 deputy foreign minister insisted there were 鈥渘o plans, intentions or reasons to attack Ukraine.鈥

The U.S. did not believe it.

Two days later, the United States and NATO rejected Russia鈥檚 demands, and the movement of troops and weapons accelerated. Ukrainian government websites went down en masse, many displaying a warning from the suspected Russian-linked hackers: 鈥淏e afraid and expect worse.鈥

On Jan. 20, Russia announced sweeping naval drills off the coast of Ukraine and Biden said publicly he believed Russia planned an invasion.

On Feb. 4, Putin flew to Beijing, ostensibly for the Olympic Games although Russian athletes were banned from competing under their nation鈥檚 flag because of years of doping scandals. He and Chinese President Xi Jinping reaffirmed their support for each other鈥檚 foreign policy, including Russia鈥檚 backing of China鈥檚 claim to Taiwan.

The unspoken message: These two world powers were on the same page or a similar page, and China would not stand with most of the rest of the world against Putin鈥檚 designs on Ukraine.

MACRON TRIES

By then, 150,000 Russian troops had all but surrounded Ukraine and the United States had all but abandoned hope for a diplomatic solution. French President Emmanuel Macron attempted a last-ditch intervention. Flying first to Moscow to meet Putin, where the men sat across an absurdly long marble table, then to Kyiv, Macron tried fruitlessly to stave off war.

Publicly Macron said Putin assured him that Russia would not escalate the crisis. But privately he described the Russian leader as 鈥渕ore rigid, more isolated and fundamentally lost in a sort of ideological and security drift,鈥 according to a senior French official.

The American warnings grew increasingly frantic, but life in Kyiv 鈥 Ukraine鈥檚 capital and its largest population centre 鈥 continued as usual because, Zelensky insisted, Ukrainians would not yield to panic.

On Feb. 16, a Wednesday, Ukraine held a 鈥渄ay of national unity鈥 after a date floated as the potential Russian attack failed to materialize. Russia鈥檚 ambassador to the European Union, Vladimir Chizhov, accused Westerners of 鈥渟lander鈥 for alleging an invasion was afoot and joined other Russian officials in ridiculing Biden鈥檚 prediction that it could start as soon as that Wednesday. 鈥淲ars in Europe rarely start on a Wednesday,鈥 Chizhov said sarcastically.

But Zelensky ordered Ukrainian soldiers to be restrained and give Russia no excuses to attack. Shelling and gunfire at the front lines with the separatists increased exponentially, according to international monitors, but Ukrainian troops were told not to return fire.

BLINKEN: 鈥業T鈥橲 UNFOLDING鈥

On Feb. 17, U.S. Secretary of State Antony Blinken laid out 鈥渨hat the world can expect to see unfold. In fact, it鈥檚 unfolding right now.鈥

First, he said, there would be a staged provocation. Then would come a theatrical high-level meeting of the Russian government, followed by a proclamation that Russia must defend ethnic Russians in Ukraine. Then, he said, the attack would begin, with Kyiv a main target. Events would largely, perhaps fully, prove him right.

鈥淲e鈥檝e been warning the Ukrainian government of all that is coming,鈥 Blinken said, looking directly at the camera. 鈥淎nd here today, we are laying it out in great detail, with the hope that by sharing what we know with the world, we can influence Russia to abandon the path of war and choose a different path while there鈥檚 still time.鈥

On the night of Feb. 19, the separatist leaders released near-simultaneous videos announcing a general evacuation of women, children and the elderly. One of those pro-Russia separatists showed video of what he said was a car bomb exploding his personal vehicle 鈥 ostensibly, proof that Ukrainian troops were provoking a war.

The destroyed 4X4, however, was a suspiciously older model and metadata showed the videos were actually filmed three days earlier.

Putin summoned his top security officials and, in a dramatic pre-recorded meeting televised nationwide, asked them to explain one by one whether Russia should recognize the separatists and help them. One by one they agreed; there was little prospect that they would not.

Hours later, the Kremlin released yet another pre-recorded video, this time of Putin alone, cataloging Russian grievances against Ukraine, NATO, the United States and Europe. An independent Ukrainian nation, he said, was a fiction. Without evidence, he accused Ukraine of genocide and of seeking nuclear weapons. Russia, he insisted, had every right to attack such a country.

鈥淚 would now like to say something very important for those who may be tempted to interfere in these developments from the outside,鈥 he added. 鈥淭hey must know that Russia will respond immediately, and the consequences will be such as you have never seen in your entire history.鈥

GLOBAL SUPPORT BUT NO TROOPS

The attack began before dawn on Feb. 24 鈥 Thursday in Ukraine but, as it happens, still Wednesday in Washington.

It opened with the firing of more than 100 land- and sea-based missiles in the first hours, said a senior U.S. official who was not authorized to be identified and spoke on condition of anonymity. The official said the main targets of the air assault were barracks, ammunition warehouses, and 10 airfields. Russian ground forces began moving in from Belarus around noon.

Sanctions from the U.S. and Europe came down with hours, but Zelensky, in hiding in the besieged capital on Friday, pleaded for more.

He spoke by phone with many foreign leaders. They expressed solidarity and offered help. None offered what he most wanted 鈥 troops to come to his country鈥檚 aid and a no-fly zone to protect Ukraine鈥檚 skies.

He told several of them these phone calls might be his last.

鈥淭he Ukrainian president started by saying he鈥檚 reporting from a country where he doesn鈥檛 know how long it鈥檚 going to exist,鈥 Austrian Chancellor Karl Nehammer related from his call. 鈥淎nd he鈥檚 reporting as president without knowing how long he鈥檚 going to be alive.鈥

In an impassioned speech, Zelensky implored his people to be firm in their resistance.

鈥淭his morning we are defending our state alone, as we did yesterday,鈥 he said. 鈥淭he world鈥檚 most powerful forces are watching from afar. Did yesterday鈥檚 sanctions convince Russia? We hear in our sky and see on our earth that this is not enough.鈥

Did Leshchyshyn, the young soldier, hear Zelensky鈥檚 cry? Did he survive the first days of the war? It cannot be determined. He spoke to the AP in the trenches a week ago; he has not responded to messages since.

___

Chernov reported from Zolote, Ukraine, Hinnant from Paris, and Madhani and Woodward from Washington. Contributors included Associated Press writers Lorne Cook in Brussels; Nomaan Merchant and Lolita C. Baldor in Washington; Vladimir Isachenkov in Moscow and Yuras Karmanau in Kyiv, Ukraine.