/* Site menu: a plate pane with colorway glow. Each link is numbered, and an X in the gradient
   slides in beside the link you're on while the rest step back. */
nav.navpane { position: fixed; inset: 0; z-index: 40; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto; justify-content: stretch; align-items: stretch; gap: 24px; padding-top: max(18px, env(safe-area-inset-top, 0px)); padding-bottom: max(28px, env(safe-area-inset-bottom, 0px)); overflow: hidden auto;
  background: radial-gradient(60% 70% at 100% 0%, rgba(107,75,255,.32), transparent 62%), radial-gradient(55% 60% at 0% 100%, rgba(31,91,255,.26), transparent 64%), #0b1022; color: #e6e7eb; }
nav.navpane[hidden] { display: none !important; }
nav.navpane::after { content: ""; position: absolute; right: -8vw; bottom: -10vw; width: min(62vw, 760px); aspect-ratio: 1; pointer-events: none; opacity: .07;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M4 4L36 36M4 36L36 4' stroke='white' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; }
nav.navpane .close { position: static; justify-self: start; display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; color: inherit; cursor: pointer; padding: 6px 0; font: 500 15.5px var(--text, sans-serif); }
nav.navpane .close::before { content: ""; width: 14px; height: 14px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M5 5L35 35M5 35L35 5' stroke='black' stroke-width='6' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M5 5L35 35M5 35L35 5' stroke='black' stroke-width='6' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; }
nav.navpane .np-links { align-self: center; display: flex; flex-direction: column; gap: 2px; counter-reset: np; position: relative; z-index: 1; }
nav.navpane .np-links a { position: relative; display: inline-flex; align-items: center; width: max-content; max-width: 100%; color: inherit; text-decoration: none; font: 800 clamp(46px, 8.4vw, 118px)/1 var(--display, sans-serif); letter-spacing: -.005em; counter-increment: np; transition: opacity .3s ease, transform .35s cubic-bezier(.2,.7,.2,1); }
nav.navpane .np-links a::before { content: counter(np, decimal-leading-zero); align-self: flex-start; margin: .32em .7em 0 0; font: 600 14px/1 var(--display, sans-serif); letter-spacing: .08em; color: rgba(230,231,235,.5); }
nav.navpane .np-links a i { display: inline-block; width: 0; height: .46em; margin-right: 0; opacity: 0; transform: rotate(-90deg) scale(.4); transition: width .35s cubic-bezier(.2,.7,.2,1), margin .35s cubic-bezier(.2,.7,.2,1), opacity .25s ease, transform .4s cubic-bezier(.2,.7,.2,1);
  background: linear-gradient(60deg, #1f5bff, #6b4bff, #ff3e8a); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M5 5L35 35M5 35L35 5' stroke='black' stroke-width='7' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 40'%3E%3Cpath d='M5 5L35 35M5 35L35 5' stroke='black' stroke-width='7' stroke-linecap='round'/%3E%3C/svg%3E") center / contain no-repeat; }
nav.navpane .np-links a:hover i, nav.navpane .np-links a:focus-visible i { width: .46em; margin-right: .22em; opacity: 1; transform: none; }
nav.navpane .np-links:hover a:not(:hover) { opacity: .32; }
nav.navpane .np-links a:focus-visible { outline: none; }
nav.navpane .np-foot { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; padding-top: 22px; border-top: 1px solid rgba(230,231,235,.16); font-size: 15px; color: rgba(230,231,235,.7); }
nav.navpane .np-foot a { color: #e6e7eb; text-decoration: none; font-weight: 500; font-size: 15px; }
nav.navpane .np-foot a:hover { text-decoration: underline; text-underline-offset: 5px; }
nav.navpane .np-foot .np-where { margin-left: auto; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; }
@media (max-width: 720px) { nav.navpane .np-foot .np-where { margin-left: 0; width: 100%; } nav.navpane .np-links a::before { margin-right: .5em; font-size: 12px; } }
@media (prefers-reduced-motion: reduce) { nav.navpane .np-links a, nav.navpane .np-links a i { transition: none; } }
