/* ROUND 17 (18 Nov 2026) · THE MOVE FROM THE LANDING INTO A CASE, three test versions. See z.js.
   On the landing these rules need the body's data-z (home-z1|z2|z3.html). On a case page they need a class
   that z.js sets on <html> only when the address carries ?z=1, ?z=2 or ?z=3. home.html and a case page with
   no ?z= are not touched. */

/* ---------- the landing: the window that leaves ----------
   A copy of the clicked mark, fixed over the page. It is laid out once, at the size the mark has at the click.
   After that only transform and opacity change. */
.z-port { position: fixed; z-index: 60; left: 0; top: 0; border-radius: 50%; background: var(--bone); pointer-events: none; contain: layout style; }
.z-port-eye { position: absolute; border-radius: 50%; overflow: hidden; background: var(--void); }
.z-port-film { position: absolute; left: 50%; top: 50%; background: var(--void); }
.z-port-film canvas, .z-port-film img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.z-port-cap { position: absolute; inset: -2px; border-radius: 50%; background: var(--c, var(--bone)); }
/* Reduced motion, and a browser with no view transitions in version 3: a short fade to the dark ground. */
.z-fade { position: fixed; z-index: 60; inset: 0; background: var(--void); opacity: 0; transition: opacity 0.16s linear; pointer-events: none; }
.z-fade.is-on { opacity: 1; }

/* ---------- a case page: what the first frame shows ----------
   The same picture as the last frame of the landing, over the whole window, until the page is measured. */
.z-cover { position: fixed; z-index: 200; inset: 0; overflow: hidden; background: #070706; }
.z-cover img { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); max-width: none; }
/* In the window: the frame the landing stopped on lies over the film until the film shows that same frame. */
.a-film .z-still, .a-film .z-soft { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.a-film .z-soft { will-change: opacity; }
html.z .a-film { will-change: transform; }

/* Reduced motion: no travel. The page comes in with a short fade. */
@keyframes z-in { from { opacity: 0; } to { opacity: 1; } }
html.z-calm body { animation: z-in 0.22s linear both; }

/* ---------- version 3: the circle travels (view transitions between the two pages) ----------
   The clicked mark and the window of the case carry the same name. The browser moves one into the other.
   The at-rule itself is in z3.css (landing) and is added by z.js on a case page with ?z=3. */
::view-transition-group(z-win) { animation-duration: 0.62s; animation-timing-function: cubic-bezier(0.62, 0, 0.16, 1); }
::view-transition-old(z-win), ::view-transition-new(z-win) { animation-duration: 0.3s; animation-timing-function: linear; height: 100%; object-fit: fill; }
/* The page behind: the landing goes first and fast, the case comes after it. */
@keyframes z-out-root { to { opacity: 0; } }
@keyframes z-in-root { from { opacity: 0; } }
html.z3-go::view-transition-old(root) { animation: z-out-root 0.22s linear both; }
html.z3-go::view-transition-new(root) { animation: z-in-root 0.34s linear 0.2s both; }
