/* The charcoal curtain between pages (front end and admin).
   Clicking a link to another page: the page's blocks sink and blur, top first, and a charcoal curtain drops from above until it covers
   the page, showing where you are going. The next page opens covered (at the same point of the drop), the curtain keeps falling away
   off the bottom and the new blocks settle in, top first. The click navigates at once: the drop runs while the server answers, so it
   never adds a wait. Main navigation plays the full curtain, a page's own links to another page the quick one (no name card).
   Off on phones, with reduced motion and when printing. */
.zc{display:none;position:fixed;inset:0;z-index:99999;pointer-events:none;filter:drop-shadow(0 10px 18px rgba(61,255,126,.24))}
.zc__sheet{position:absolute;inset:0;clip-path:polygon(0 0,100% 0,100% -14%,0 0);
  background:radial-gradient(90% 60% at 50% 0%,rgba(61,255,126,.08),transparent 70%),repeating-linear-gradient(135deg,rgba(255,255,255,.022) 0 1px,transparent 1px 7px),#161617}
.zc__box{position:absolute;inset:0;display:grid;place-content:center;justify-items:center;gap:16px;text-align:center;opacity:0}
.zc__mark{width:58px;height:auto;display:block}
.zc__name{font-weight:700;font-size:26px;letter-spacing:.2em;text-transform:uppercase;color:#e9efe9;max-width:80vw;overflow-wrap:anywhere}
html.zc-on .zc{display:block}
html.zc-on .zc__sheet{animation:zc-cover 420ms cubic-bezier(.65,0,.35,1) var(--zc-d,120ms) both}
html.zc-on .zc__box{animation:zc-box-in 200ms ease-out calc(var(--zc-d,120ms) + 420ms) both}
html.zc-out .zc{display:block}
html.zc-out .zc__sheet{animation:zc-retreat 420ms cubic-bezier(.65,0,.35,1) both}
html.zc-out .zc__box{opacity:1;animation:zc-box-out 160ms ease-in both}
html.zc-arrive main#main,html.zc-arrive main.amain{visibility:hidden}
.zc-leave{animation:zc-leave 260ms cubic-bezier(.4,0,1,1) calc(var(--zc-i,0)*40ms) both}
.zc-enter{animation:zc-enter 380ms cubic-bezier(.2,.8,.2,1) calc(120ms + var(--zc-i,0)*50ms) both}
@keyframes zc-cover{from{clip-path:polygon(0 0,100% 0,100% -14%,0 0)}to{clip-path:polygon(0 0,100% 0,100% 100%,0 114%)}}
@keyframes zc-retreat{from{clip-path:polygon(0 0,100% 0,100% 100%,0 114%)}to{clip-path:polygon(0 114%,100% 100%,100% 100%,0 114%)}}
@keyframes zc-box-in{from{opacity:0;transform:translateY(-10px)}to{opacity:1;transform:none}}
@keyframes zc-box-out{from{opacity:1}to{opacity:0}}
@keyframes zc-leave{to{transform:translateY(18px);opacity:0;filter:blur(4px)}}
@keyframes zc-enter{from{transform:translateY(-20px);opacity:0;filter:blur(4px)}}
/* inside a section: the same curtain, quicker and without the name card */
html.zc-quick .zc__box{display:none}
html.zc-on.zc-quick .zc__sheet{animation-duration:280ms}
html.zc-out.zc-quick .zc__sheet{animation-duration:300ms}
html.zc-quick .zc-leave{animation-duration:200ms;animation-delay:calc(var(--zc-i,0)*25ms)}
html.zc-quick .zc-enter{animation-duration:300ms;animation-delay:calc(60ms + var(--zc-i,0)*35ms)}
@media (max-width:768px),(prefers-reduced-motion:reduce),print{
  .zc{display:none!important}
  .zc-leave,.zc-enter{animation:none!important}
  html.zc-arrive main#main,html.zc-arrive main.amain{visibility:visible}
}
