/* Page loader and page to page transition, shared by every public page.
   The head snippet adds .pt-on (and .pt-q after the first page of a visit, for a shorter hold).
   Without JS or with reduced motion the class is never added, so nothing here applies. */
html.pt-on{--pt:1.4s;--pt-lw:clamp(150px,16vw,210px)}
html.pt-on.pt-q{--pt:.8s}
html.pt-on body::before,html.pt-on body::after{content:"";position:fixed;inset:0;pointer-events:none}
/* the dark sheet, lifted away top to bottom once the hold ends */
html.pt-on body::before{z-index:2147483646;
  background:radial-gradient(55% 42% at 50% 50%,rgba(108,92,231,.2),rgba(108,92,231,0) 70%),#07060D;
  animation:pt-reveal 1s cubic-bezier(.76,0,.24,1) var(--pt) both}
/* the wordmark, with a hairline that fills while it holds */
html.pt-on body::after{z-index:2147483647;
  background:url(/logo.png) 50% calc(50% - 10px)/var(--pt-lw) auto no-repeat,
    linear-gradient(#B3A8FF,#B3A8FF) calc(50vw - 60px) calc(50vh + 34px)/0 2px no-repeat,
    linear-gradient(rgba(255,255,255,.12),rgba(255,255,255,.12)) calc(50vw - 60px) calc(50vh + 34px)/120px 2px no-repeat;
  animation:pt-logo-in .7s cubic-bezier(.16,1,.3,1) both,
    pt-bar var(--pt) cubic-bezier(.65,0,.35,1) both,
    pt-logo-out .45s cubic-bezier(.76,0,.24,1) calc(var(--pt) - .05s) forwards}
@keyframes pt-reveal{from{clip-path:inset(0 0 0 0)}to{clip-path:inset(100% 0 0 0)}}
@keyframes pt-logo-in{from{opacity:0;transform:translateY(10px) scale(.96)}to{opacity:1;transform:none}}
@keyframes pt-bar{
  from{background-size:var(--pt-lw) auto,0 2px,120px 2px}
  to{background-size:var(--pt-lw) auto,120px 2px,120px 2px}}
@keyframes pt-logo-out{to{opacity:0;transform:translateY(-16px)}}

/* leaving: the page goes dark from the top down, then the next page loads */
.pt-x{position:fixed;inset:0;z-index:2147483647;background:#07060D;clip-path:inset(0 0 100% 0);
  transition:clip-path .6s cubic-bezier(.76,0,.24,1)}
.pt-x.go{clip-path:inset(0 0 0 0)}
