IT IS, really, all about fitting together the pieces.

Nature and religion. Math and method. Passion and precision. In the experimental visions of Antoni Gaudi, it all connects — if he could just pay tribute through the architectural elegance of his puzzles.

Gaudi, “God’s architect,” Barcelona’s towering builder, knew he could not see some of his creations through to fruition during his lifetime, so he even left behind intricate plaster models so that subsequent generations — by plumbing his precision — could one day fit those pieces together.

His legacy lives with us still — like a gift that requires us to see through the assembly.

Today, Google celebrates the 161st anniversary of Gaudi’s Catalonia birth with a Doodle that, fittingly, is told in pieces (and which naturally suggest the letters in G-o-o-g-l-e, if only we visually join the parts).

For it was on this day in 1852 that Gaudi was born to a coppersmith/boilermaker in Reus, Spain, and inherited a gift for manifesting an aesthetic in physical form.

Gaudi grew up deeply observing Mediterranean nature, and he revered its ripples; his columns sometimes suggest the wavy rock drippings he saw in the hills of Montserrat. And he grew into his Catholic worship, as his cross-topped buildings increasingly reflected his faith.

Nature, in his eyes, was not about straight lines and artificially smooth surfaces. So Gaudi — the great Catalonian Modernist — created works with his distinctive undulating lines and textured surfaces. Nothing too straight, nothing too smooth.

And to fulfill these visions, Gaudi tapped his engineering genius; it took particular mathematical precision to build works that were not mere structure, but also sculpture. He exploded space — and exploded the sense of what was possible.

Eschewing buttresses, he created columns that evoked a forest. Embracing ceramics and stained glass, he built “sculptures” with rough, tinted skin.

Geometry and the Trinity — it must all fit organically together.

In the late 19th century, Gaudi impressed at World’s Fairs in Paris and Barcelona, and won key commissions from industrialist Eusebi Güell. He built parks and palaces that would last as some of Barcelona’s best architecture.

Cafe Mila. Casa Batllo. Palace Episcopal de Estorga. Ultimately, it was as if all was experience and experiment toward building his masterpiece and magnum opus.

Sagrada Família. The Barcelona basilica. Gaudi got the project in the 1880s. After 1910, the basilica became all to him; as he grew more pious, so also grew his devotion to its vision. He knew he would not live to see it completed, but he left what future generations would need — including models — to complete it.

Gaudi lived at the basilica when he was hit by a tram in 1926 and killed; in his plain attire, he was mistaken for a tramp before the celebrated master was recognized and widely mourned. He was 73, and had worked on Sagrada Familia for 43 years.

Today, its spires soaring over the city, Sagrada Família is towering landmark and point of pilgrimage — but still not complete. Barcelona hopes to finally finish Gaudi’s awe-inspiring vision in 2026 — the 100th anniversary of the great architect’s death.

If only, through solving the mysteries of his magic, we can fit together all those genius pieces.