/* ==========================================================================
   VILLA — liquid glass, the dressing around the lens
   Its own file because BOTH the public site and /admin need these rules: the
   admin preview runs the real engine, so it needs the real styles. One copy
   means the preview can never drift away from the live site.
   The bend itself is a backdrop-filter set by js/glass.js. If that never runs,
   none of this appears and the original frosted bar is exactly as it was.
   ========================================================================== */
.vglass {
  position: absolute; inset: 0; z-index: -1;
  border-radius: inherit; overflow: hidden;
  opacity: 0; transition: opacity 0.4s var(--ease, ease);
  pointer-events: none;
  /* backdrop-filter is written here by glass.js: the plain frosted value
     first, then the one carrying the lens. A browser that cannot parse the
     lens keeps the frost. */
}
.vglass-tint {
  position: absolute; inset: 0;
  background: linear-gradient(150deg,
    rgba(255,255,255,calc(var(--vg-tint, 0.12) * 0.85)),
    rgba(255,255,255,0) 45%,
    rgba(0,0,0,calc(var(--vg-tint, 0.12) * 1)));
}
.vglass-rim {
  position: absolute; inset: 0; border-radius: inherit; padding: 1.2px;
  background: conic-gradient(from 120deg,
    rgba(255,255,255,0) 0deg,
    rgba(255,255,255,calc(var(--vg-spec, 0.5) * 1.00)) 60deg,
    rgba(255,255,255,calc(var(--vg-spec, 0.5) * 0.08)) 150deg,
    rgba(255,255,255,calc(var(--vg-spec, 0.5) * 0.76)) 245deg,
    rgba(255,255,255,calc(var(--vg-spec, 0.5) * 0.06)) 320deg,
    rgba(255,255,255,0) 360deg);
  -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, linear-gradient(#000 0 0);
  mask-composite: exclude;
}
/* The glass layer does its own frosting, so stand the original one down
   rather than blurring the same pixels twice. */
.header-inner.vglass-live::before {
  -webkit-backdrop-filter: none; backdrop-filter: none;
  background: rgba(22, 16, 13, 0.10);
}
