/* PAGE TRANSITION (2026-11-15). Homepage to project page.
   1. On the homepage, the clicked project's number (01, 02...) rushes at the screen until the screen is its grey.
   2. The project page opens from that grey like a shutter: two panes slide apart, up and down, revealing the page.
   Only plays when arriving from a homepage click; visiting a project page directly shows it normally.
   TUNE: rush speed in page-transition.js (RUSH); opening speed and delay in the html.pt-in rule below.
   To remove: delete the page-transition lines from index.html and the five project pages. */
.pt-veil{position:fixed;inset:0;z-index:9998;pointer-events:none;background:var(--pt);opacity:0;transition:opacity calc(var(--ptd)*.35) cubic-bezier(.7,0,.84,0) calc(var(--ptd)*.65)}
.pt-num{position:fixed;z-index:9999;margin:0;pointer-events:none;white-space:nowrap;color:var(--pt);will-change:transform;
  transition:transform var(--ptd) cubic-bezier(.55,0,.85,.25)}
html.pt-go .pt-veil{opacity:1}
html.pt-in::before,html.pt-in::after{content:"";position:fixed;left:0;right:0;height:50.5vh;z-index:9999;pointer-events:none;background:var(--pt,#d9d6d0);
  animation:ptOpen .98s cubic-bezier(.83,0,.17,1) .4s forwards}
html.pt-in::before{top:0;--ptTo:-100%}
html.pt-in::after{bottom:0;--ptTo:100%;animation-delay:.44s}
@keyframes ptOpen{to{transform:translateY(var(--ptTo))}}
@media (prefers-reduced-motion:reduce){html.pt-in::before,html.pt-in::after{animation-duration:.01s}}

/* Pause: the panes hold the grey for 0.4s before opening (the .4s and .44s delays above), to build a moment of anticipation.
   Shutter motion: an exponential ease-in-out (slow to start, fast through the middle, a long soft settle), with the
   lower pane leaving a few hundredths of a second after the upper one so the opening feels hand-made, not mechanical. */
