/* Zero blocks (Tilda T396 rebuilt) — base rules. Per-block geometry is generated (pages/<page>/<page>.css, shared/footer-zero.css).
   Every artboard (.zab) is laid out on the grid of the current breakpoint and zoomed to the window width, exactly like the
   live "scale" artboards: --z = window width / grid width (set by the inline script in partials/head.html).
   Breakpoints (as in Tilda zero blocks): ≥1200 → 1200 grid · 960–1199 → 960 · 640–959 → 640 · 480–639 → 480 · <480 → 320. */
.z { position: relative; overflow: hidden; }
.zab { position: relative; overflow: hidden; width: 1200px; margin: 0 auto; zoom: var(--z, 1); }
@media (max-width: 1199px) { .zab { width: 960px; } }
@media (max-width: 959px)  { .zab { width: 640px; } }
@media (max-width: 639px)  { .zab { width: 480px; } }
@media (max-width: 479px)  { .zab { width: 320px; } }

.zn { position: absolute; box-sizing: border-box; margin: 0; padding: 0; }
a.zn { color: inherit; text-decoration: none; }
.zt { font-family: Arial, sans-serif; font-weight: 400; overflow-wrap: break-word; }
.zt a { color: inherit; }
.zf { display: flex; flex-direction: column; justify-content: center; } /* fixed-size text box: text centred vertically */
.zs { overflow: hidden; }
.zn > img, .zg > img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: var(--fit, cover); object-position: var(--pos, 50% 50%); }
.zg > img { z-index: 0; }

/* animations (shared/site.js): scroll-bound moves, hover lift of link underlines, fade-in */
[data-sbs] { will-change: transform; }
.js [data-anim="fadein"] { opacity: 0; transition-property: opacity; transition-timing-function: ease-in-out; }
.js [data-anim="fadein"].is-in { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  [data-sbs] { transform: none !important; transition: none !important; }
  .js [data-anim="fadein"] { opacity: 1; transition: none; }
}
