/* DMV Launch glass kit (2026-11-23): the liquid-glass capsule nav, glass pills and the liquid-chrome logo, shared by every page
   except the homepage (which carries its own inline copy of the same thing). Pair with /ui/glass.js.

   Markup:
     <header class="lgnav"><div class="lgbar lg" data-lg data-lg-band="top"> brand, links, buttons </div></header>
     <a class="lgbrand"><span class="mk" data-chrome="mark"><svg viewBox="0 0 64 64">chevron path + blue rect</svg></span>DMV LAUNCH</a>
     any floating pill/button:  class="lg" data-lg           (add data-lg-band="bottom" if it floats at the bottom)
     footer lockup (optional):  <a class="fmark" data-chrome="lockup" href="/"><img src="/img/lockup-plain.png" width="1949" height="300" alt="" loading="lazy"></a>
   Light pages: add class "on-light" to the .lg element (the script also flips it while a .light section is under it).
   Chromium gets true refraction (script sets backdrop-filter:url(#...) and html.lg-on); Safari and Firefox keep the frosted look. */
:root{--lgt:10px;--lgh:52px;--lgg:clamp(10px,2.4vw,28px);--lg-ease:cubic-bezier(.22,.8,.24,1);--lg-blue:#2f7bff}
.lg{position:relative;background:rgba(17,17,20,.6);-webkit-backdrop-filter:saturate(180%) blur(22px);backdrop-filter:saturate(180%) blur(22px);box-shadow:inset 0 0 0 1px rgba(255,255,255,.07),0 14px 44px -16px rgba(0,0,0,.8);transition:background-color .4s var(--lg-ease),color .4s var(--lg-ease)}
.lg::before{content:"";position:absolute;inset:0;border-radius:inherit;padding:1px;background:linear-gradient(140deg,rgba(255,255,255,.5),rgba(255,255,255,.07) 26%,rgba(255,255,255,.03) 64%,rgba(255,255,255,.3));-webkit-mask:linear-gradient(#000 0 0) content-box,linear-gradient(#000 0 0);-webkit-mask-composite:xor;mask:linear-gradient(#000 0 0) content-box exclude,linear-gradient(#000 0 0);pointer-events:none}
html.lg-on .lg[data-lg]{background:rgba(14,14,17,.58)}
.lg.on-light{background:rgba(255,255,255,.62);color:#0b0b0d;box-shadow:inset 0 0 0 1px rgba(0,0,0,.06),0 14px 44px -18px rgba(0,0,0,.35)}
html.lg-on .lg[data-lg].on-light{background:rgba(255,255,255,.66)}

/* the capsule nav */
.lgnav{position:fixed;inset:0 0 auto;z-index:50;height:0;padding-top:var(--lgt);pointer-events:none}
.lgbar{pointer-events:auto;height:var(--lgh);display:flex;align-items:center;gap:20px;width:min(1240px,100% - 2*var(--lgg));margin-inline:auto;padding:0 9px 0 20px;border-radius:999px}
@media (max-width:960px){.lgbar{padding:0 9px 0 16px;gap:12px}}
.lgbrand{display:flex;align-items:center;gap:9px;font-weight:700;font-size:15px;line-height:1;letter-spacing:.04em;white-space:nowrap;flex:none;color:inherit;text-decoration:none}

/* the mark: a plain SVG first, then liquid chrome painted over the chevron once the shader is ready (the blue bar stays) */
.mk{position:relative;display:block;width:28px;height:28px;flex:none;margin:0 -2px}
.mk svg{display:block;width:100%;height:100%}
.mk path{transition:opacity .6s var(--lg-ease)}
.mk-c{position:absolute;inset:0;pointer-events:none;opacity:0;transition:opacity .6s var(--lg-ease)}
.mk.on .mk-c,.fmark.on .mk-c{opacity:1}
.mk.on path{opacity:0}
/* footer sign-off: the whole lockup in liquid chrome; a faint plain lockup shows until (or unless) the shader runs */
.fmark{position:relative;display:block;aspect-ratio:1949/300;margin:0 0 clamp(36px,5vw,60px)}
.fmark img{display:block;width:100%;height:100%;opacity:.16;transition:opacity .8s var(--lg-ease)}
.fmark.on img{opacity:0}
.on-light .fmark img,.fmark.dark img{filter:invert(1)}
@media (max-width:360px){.lgbrand{font-size:14px;gap:7px}.mk{width:25px;height:25px}}
