@view-transition{navigation:auto}
/* Real destination document slides upward. No clip-path, mask, or screenshot stand-in. */
::view-transition{background:#000}
::view-transition-group(root){animation:none}
::view-transition-image-pair(root){isolation:isolate}
::view-transition-old(root),::view-transition-new(root){mix-blend-mode:normal;animation-fill-mode:both}
html:active-view-transition-type(gallery-to-project)::view-transition-old(root){z-index:1;animation-name:gallery-project-exit-flat}
html:active-view-transition-type(gallery-to-project)::view-transition-new(root){z-index:2;animation-name:project-page-enter}
@keyframes gallery-project-exit-flat{from{transform:translateY(0);opacity:1}to{transform:translateY(-5vh);opacity:.28}}
@keyframes project-page-enter{from{transform:translateY(100vh)}to{transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){@view-transition{navigation:none}::view-transition-old(root),::view-transition-new(root){animation:none}}

/* These routes use one whole-page snapshot, not the shared delayed content layer. */
html[data-project-transition]{view-transition-name:root}
html[data-project-transition] .case-reader,html[data-project-transition] body>main,html[data-project-transition] .site-header{view-transition-name:none}
html[data-project-transition]::view-transition-old(root),html[data-project-transition]::view-transition-new(root){animation-delay:0s}

/* Never expose the opening while the settled-return layout is initialized. */
html[data-gallery-return="settled"] .square-intro,html[data-gallery-return="settled"] .number-stage{visibility:hidden}
html[data-gallery-return="settled"] .gallery-card{opacity:1!important;animation:none!important}
html[data-gallery-return="settled"] .gallery-card :is(.gallery-genre,h2,.gallery-role){clip-path:none!important}

html[data-gallery-return="settled"]:not([data-gallery-return-ready]) body{visibility:hidden}
/* Shared navigation belongs to each moving whole-page layer in both directions. */
html[data-project-transition] :is(.project-persistent-header,.landing-header){view-transition-name:none}

/* Navigation stays actionable while native snapshots travel. */
::view-transition{pointer-events:none}

:root{--spotlight-panel-ease-in:cubic-bezier(.333333,0,.666667,.333333)}

/* Every eligible route has one panel pair, regardless of direction or history. */
html:active-view-transition-type(gallery-to-project){
 --spotlight-entry-duration:750ms;
 --spotlight-lift-lead:60ms;
}
html:active-view-transition-type(gallery-to-project)::view-transition-old(root){
 animation-delay:var(--spotlight-lift-lead);
 animation-duration:calc(var(--spotlight-entry-duration) - var(--spotlight-lift-lead));
 animation-timing-function:cubic-bezier(.28,.12,.78,.72);
}
html:active-view-transition-type(gallery-to-project)::view-transition-new(root){
 animation-delay:0s;
 animation-duration:var(--spotlight-entry-duration);
 animation-timing-function:var(--spotlight-panel-ease-in);
}
@media(prefers-reduced-motion:reduce){
 html:active-view-transition-type(gallery-to-project)::view-transition-old(root),
 html:active-view-transition-type(gallery-to-project)::view-transition-new(root){animation:none}
}

/* The same rotating square reveals the real destination at every width. */
html:active-view-transition-type(archive-square)::view-transition{background:#fff}
html:active-view-transition-type(archive-square)::view-transition-old(root){
 z-index:1;animation:archive-square-white-face 930ms linear both;opacity:1;mask-image:none
}
@keyframes archive-square-white-face{
 0.0%{clip-path:var(--archive-square-hole-0)}
 6.25%{clip-path:var(--archive-square-hole-1)}
 12.5%{clip-path:var(--archive-square-hole-2)}
 18.75%{clip-path:var(--archive-square-hole-3)}
 25.0%{clip-path:var(--archive-square-hole-4)}
 31.25%{clip-path:var(--archive-square-hole-5)}
 37.5%{clip-path:var(--archive-square-hole-6)}
 43.75%{clip-path:var(--archive-square-hole-7)}
 50.0%{clip-path:var(--archive-square-hole-8)}
 56.25%{clip-path:var(--archive-square-hole-9)}
 62.5%{clip-path:var(--archive-square-hole-10)}
 68.75%{clip-path:var(--archive-square-hole-11)}
 75.0%{clip-path:var(--archive-square-hole-12)}
 81.25%{clip-path:var(--archive-square-hole-13)}
 87.5%{clip-path:var(--archive-square-hole-14)}
 93.75%{clip-path:var(--archive-square-hole-15)}
 100.0%{clip-path:var(--archive-square-hole-16)}
}
html:active-view-transition-type(archive-square)::view-transition-new(root){
 z-index:2;animation:archive-square-reveal 930ms linear both
}
@keyframes archive-square-reveal{
 0.0%{clip-path:var(--archive-square-0)}
 6.25%{clip-path:var(--archive-square-1)}
 12.5%{clip-path:var(--archive-square-2)}
 18.75%{clip-path:var(--archive-square-3)}
 25.0%{clip-path:var(--archive-square-4)}
 31.25%{clip-path:var(--archive-square-5)}
 37.5%{clip-path:var(--archive-square-6)}
 43.75%{clip-path:var(--archive-square-7)}
 50.0%{clip-path:var(--archive-square-8)}
 56.25%{clip-path:var(--archive-square-9)}
 62.5%{clip-path:var(--archive-square-10)}
 68.75%{clip-path:var(--archive-square-11)}
 75.0%{clip-path:var(--archive-square-12)}
 81.25%{clip-path:var(--archive-square-13)}
 87.5%{clip-path:var(--archive-square-14)}
 93.75%{clip-path:var(--archive-square-15)}
 100.0%{clip-path:var(--archive-square-16)}
}
