/* ── page transitions ────────────────────────────────────────────────────
   Moving to a section in the nav, or to another page of the site, draws a
   curtain with the destination's name on it, then lifts it on the new view.
   curtain.js builds it; with reduced motion there is no curtain at all. */
.mc{position:fixed;inset:0;z-index:200;pointer-events:none;display:grid;place-items:center;background:#111113;color:#fff;
  transform:translateY(100%);visibility:hidden;text-align:center}
.mc::before{content:"";position:absolute;left:0;right:0;top:0;height:6px;
  background:linear-gradient(90deg,#FF6B6B 0 25%,#FDC748 25% 50%,#35C9A5 50% 75%,#6E86F0 75%)}
.mc.cover{visibility:visible;transform:none;transition:transform .55s cubic-bezier(.7,0,.25,1)}
.mc.leave{visibility:visible;transform:translateY(-100%);transition:transform .65s cubic-bezier(.7,0,.25,1)}
.mc small{display:block;margin-bottom:14px;font:500 12px/1 "Instrument Sans","Helvetica Neue",Arial,sans-serif;letter-spacing:.18em;
  text-transform:uppercase;color:rgba(255,255,255,.55)}
/* the clip has room on every side so no letter loses its top, tail or lean */
.mc b{display:block;overflow:clip;padding:.14em .12em .2em;font:400 italic clamp(52px,10vw,150px)/1.05 "Instrument Serif",Georgia,serif;letter-spacing:-.03em}
.mc b span{display:inline-block;transform:translateY(115%);transition:transform .75s cubic-bezier(.2,.8,.2,1) .1s}
.mc.cover b span{transform:none}
.mc.leave b span{transform:translateY(-40%);opacity:0;transition:transform .5s cubic-bezier(.7,0,.25,1),opacity .3s}
/* arriving from another page: hold a cover until the curtain is built */
html.mc-hold::after{content:"";position:fixed;inset:0;z-index:199;background:#111113}
@media (prefers-reduced-motion:reduce){.mc{display:none}html.mc-hold::after{display:none}}
