/* ==========================================================================
   SECTOR 70 · web v6 · Liquid glass for a light page
   --------------------------------------------------------------------------
   The material is painted on two pseudo-elements so the host never becomes
   a backdrop root and glass can sit inside glass:
     ::before  body of the glass   backdrop-filter + tint + sheen + inner light
     ::after   rim                 1.2px gradient ring (mask) + pointer light
   glass.js sets one mode class on <html>:
     .lg-refract   Chromium: per-element SVG displacement map in backdrop-filter
     .lg-fallback  Safari, Firefox: blur + saturate + tint, same rim and light
     .lg-solid     reduced transparency or no backdrop-filter: opaque surface
     .lg-fine      hover + fine pointer: pointer light and the lens are live
   Per-element knobs (custom properties, numbers are px):
     --lg-r radius · --lg-tint body colour · --lg-sat / --lg-bright colour
     --lg-frost centre blur inside the refraction filter (Chromium)
     --lg-bezel rim width · --lg-refraction max bend · --lg-profile falloff
     --lg-clear clear band (bezel fraction) · --lg-dispersion colour split
     --lg-dir -1 = rim pulls in what lies just outside (default), 1 = inside
   Safari / Firefox blur is a literal -webkit-backdrop-filter per component
   (older Safari drops it when it contains var()); retune both together.
   Do not put glass inside an ancestor with opacity < 1, filter, mask,
   clip-path or mix-blend-mode: that ancestor becomes the backdrop root and
   the glass sees nothing behind it.
   ========================================================================== */

:root {
  --lg-red: #FF3B1F;
  --lg-ember: #E3120B;
  --lg-deep: #7A0A05;
  --lg-ink: #0A0A0A;
  --lg-cream: #F7E9DF;
  --lg-paper: #FFF7F2;

  --lg-font-ui: "Mona Sans", "Hubot Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --lg-font-label: "Hubot Sans Condensed", "Hubot Sans", "Mona Sans", ui-sans-serif, system-ui, sans-serif;
  --lg-font-display: "Big Shoulders Display", "Big Shoulders", "Arial Narrow", Impact, sans-serif;

  --lg-ease: cubic-bezier(.22, .8, .24, 1);
  --lg-out: cubic-bezier(.16, 1, .3, 1);

  /* soft grey drop shadow, tuned for #FFF7F2. It is painted by ::before, not
     the host, so the rim refraction never pulls the glass's own shadow in. */
  --lg-shadow-rest:
    0 0 0 .5px rgb(10 10 10 / .045),
    0 1px 2px rgb(10 10 10 / .06),
    0 8px 18px -8px rgb(10 10 10 / .13),
    0 28px 52px -22px rgb(10 10 10 / .2);
  --lg-shadow-lift:
    0 0 0 .5px rgb(10 10 10 / .05),
    0 2px 4px rgb(10 10 10 / .06),
    0 14px 28px -10px rgb(10 10 10 / .17),
    0 40px 70px -26px rgb(10 10 10 / .26);
}

/* --------------------------------------------------------------------------
   1. Material
   -------------------------------------------------------------------------- */

:where(.lg, .lg-btn, .lg-card, .lg-chip, .lg-nav__bar, .lg-nav__sheet) {
  --lg-r: 24px;
  --lg-tint: rgb(255 250 246 / .42);
  --lg-solid: var(--lg-paper);
  --lg-frost: 4;
  --lg-sat: 1.75;
  --lg-bright: 1.04;
  --lg-bezel: 26;
  --lg-refraction: 18;
  --lg-profile: 2;
  --lg-clear: .3;
  --lg-frost-from: 1;
  --lg-dispersion: .08;
  --lg-rim-angle: 160deg;
  --lg-rim-hi: rgb(255 255 255 / .96);
  --lg-rim-lo: rgb(10 10 10 / .17);
  --lg-rim-w: 1.2px;
  --lg-glare: .42;
  --lx0: 24%;
  --ly0: -30%;
  --lg-shadow: var(--lg-shadow-rest);
  --lg-inner:
    inset 0 1px 0 rgb(255 255 255 / .9),
    inset 1px 0 0 rgb(255 255 255 / .28),
    inset 0 -1px 0 rgb(10 10 10 / .05),
    inset 0 -16px 22px -20px rgb(255 255 255 / .95),
    inset 0 12px 20px -18px rgb(255 255 255 / .85);
  position: relative;
  isolation: isolate;
  border-radius: var(--lg-r);
  background: transparent;
  -webkit-tap-highlight-color: transparent;
}

/* body: backdrop + tint + sheen + inner light */
:where(.lg, .lg-btn, .lg-card, .lg-chip, .lg-nav__bar, .lg-nav__sheet)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  background:
    radial-gradient(170px circle at var(--lx, var(--lx0)) var(--ly, var(--ly0)),
      rgb(255 255 255 / calc(var(--lg-glare) * (var(--lh, .5) - .5) * 2.4)) 0%,
      rgb(255 255 255 / 0) 70%),
    radial-gradient(130% 120% at var(--lx, var(--lx0)) var(--ly, var(--ly0)),
      rgb(255 255 255 / calc(var(--lg-glare) * var(--lh, .5))) 0%,
      rgb(255 255 255 / 0) 58%),
    linear-gradient(180deg, rgb(255 255 255 / .26) 0%, rgb(255 255 255 / 0) 48%),
    var(--lg-tint);
  box-shadow: var(--lg-inner), var(--lg-shadow);
  /* Safari and Firefox path. Literal values on purpose: older Safari drops
     -webkit-backdrop-filter when it contains var(). Components restate it. */
  -webkit-backdrop-filter: blur(14px) saturate(1.8) brightness(1.04);
  backdrop-filter: blur(14px) saturate(1.8) brightness(1.04);
  transition: opacity .35s var(--lg-ease), box-shadow .35s var(--lg-ease);
}

/* rim: thin gradient ring cut out with a mask, plus the pointer light */
:where(.lg, .lg-btn, .lg-card, .lg-chip, .lg-nav__bar, .lg-nav__sheet)::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  padding: var(--lg-rim-w);
  background:
    radial-gradient(220px circle at var(--lx, var(--lx0)) var(--ly, var(--ly0)),
      rgb(255 255 255 / calc(var(--lh, .5) * 1.1)) 0%,
      rgb(255 255 255 / 0) 70%),
    linear-gradient(var(--la, var(--lg-rim-angle)),
      var(--lg-rim-hi) 0%,
      rgb(255 255 255 / .38) 26%,
      rgb(255 255 255 / .04) 52%,
      var(--lg-rim-lo) 100%);
  -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);
  transition: opacity .35s var(--lg-ease);
}

/* --------------------------------------------------------------------------
   2. Button  .lg-btn  ·  .lg-btn--primary (red glass)  ·  .lg-btn--ghost
   -------------------------------------------------------------------------- */

.lg-btn {
  --lg-r: 999px;
  --lg-bezel: 20;
  --lg-refraction: 11;
  --lg-frost: 2.6;
  --lg-dispersion: .07;
  --lg-tint: rgb(255 250 246 / .46);
  --lg-rim-angle: 172deg;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55em;
  min-height: 52px;
  min-width: 44px;
  padding: 0 26px;
  margin: 0;
  border: 0;
  font: 600 15.5px/1 var(--lg-font-ui);
  font-stretch: 100%;
  letter-spacing: -.005em;
  color: var(--lg-ink);
  text-shadow: 0 0 14px rgb(255 250 246 / .85), 0 0 3px rgb(255 250 246 / .6);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
  transition:
    transform .55s var(--lg-out),
    color .25s var(--lg-ease);
}
.lg-btn::before { -webkit-backdrop-filter: blur(10px) saturate(1.8) brightness(1.04); backdrop-filter: blur(10px) saturate(1.8) brightness(1.04); }
.lg-btn:is(:hover, .is-hover) {
  transform: translateY(-2px);
  --lg-shadow: var(--lg-shadow-lift);
  --lg-tint: rgb(255 250 246 / .62);
  --lg-glare: .6;
}
.lg-btn:active {
  transform: translateY(0) scale(.965, .94);
  transition-duration: .12s, .2s;
}
.lg-btn:focus { outline: none; }
.lg-btn:is(:focus-visible, .is-focus) {
  outline: 2.5px solid var(--lg-ink);
  outline-offset: 3px;
}
.lg-btn:is([disabled], [aria-disabled="true"]) {
  /* no opacity here: it would turn the button into a backdrop root */
  --lg-tint: rgb(240 236 233 / .7);
  --lg-shadow: 0 0 0 .5px rgb(10 10 10 / .06);
  color: rgb(10 10 10 / .38);
  text-shadow: none;
  cursor: not-allowed;
  transform: none;
}
.lg-btn__icon { width: 1.1em; height: 1.1em; flex: none; }

.lg-btn--primary::before { -webkit-backdrop-filter: blur(10px) saturate(1.35); backdrop-filter: blur(10px) saturate(1.35); }

/* primary: red glass. Brand red catches the light at the top; ember at the
   text line keeps white 15.5px text at about 4.6:1 on the paper background */
.lg-btn--primary {
  --lg-tint: linear-gradient(180deg, rgb(255 66 38 / .88) 0%, rgb(226 20 10 / .94) 50%, rgb(200 14 8 / .96) 100%);
  --lg-solid: linear-gradient(180deg, #FF3B1F, #E3120B 55%, #C90E08);
  --lg-sat: 1.35;
  --lg-bright: 1;
  --lg-rim-hi: rgb(255 222 210 / .95);
  --lg-rim-lo: rgb(122 10 5 / .55);
  --lg-glare: .5;
  --lg-shadow:
    0 0 0 .5px rgb(122 10 5 / .28),
    0 1px 2px rgb(122 10 5 / .22),
    0 10px 22px -10px rgb(227 18 11 / .6),
    0 26px 46px -24px rgb(227 18 11 / .5);
  --lg-inner:
    inset 0 1px 0 rgb(255 214 200 / .85),
    inset 0 -1px 0 rgb(122 10 5 / .35),
    inset 0 -14px 20px -16px rgb(255 160 130 / .9),
    inset 0 12px 18px -16px rgb(255 230 220 / .8);
  color: #fff;
  text-shadow: 0 1px 1px rgb(122 10 5 / .35);
}
.lg-btn--primary:is(:hover, .is-hover) {
  --lg-tint: linear-gradient(180deg, rgb(255 80 52 / .9) 0%, rgb(229 22 11 / .95) 50%, rgb(206 15 8 / .97) 100%);
  --lg-glare: .7;
  --lg-shadow:
    0 0 0 .5px rgb(122 10 5 / .3),
    0 2px 4px rgb(122 10 5 / .2),
    0 16px 30px -12px rgb(227 18 11 / .7),
    0 36px 60px -28px rgb(227 18 11 / .55);
}
.lg-btn--primary:is(:focus-visible, .is-focus) {
  outline-color: var(--lg-ink);
}
.lg-btn--primary:is([disabled], [aria-disabled="true"]) {
  --lg-tint: rgb(255 59 31 / .35);
  color: rgb(255 255 255 / .8);
}

/* ghost: almost clear glass for busy backgrounds */
.lg-btn--ghost {
  --lg-tint: rgb(255 250 246 / .12);
  --lg-frost: .8;
}

.lg-btn--ghost::before { -webkit-backdrop-filter: blur(6px) saturate(1.8) brightness(1.04); backdrop-filter: blur(6px) saturate(1.8) brightness(1.04); }

.lg-btn--sm { min-height: 44px; padding: 0 18px; font-size: 14px; }

/* --------------------------------------------------------------------------
   3. Chip  .lg-chip  ·  --red  ·  --dark
   -------------------------------------------------------------------------- */

.lg-chip {
  --lg-r: 999px;
  --lg-bezel: 13;
  --lg-refraction: 7;
  --lg-frost: 2;
  --lg-dispersion: 0;
  --lg-tint: rgb(255 250 246 / .5);
  --lg-rim-angle: 175deg;
  --lg-rim-w: 1px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 14px 0 12px;
  font: 500 11.5px/1 var(--lg-font-label);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--lg-ink);
  white-space: nowrap;
  --lg-shadow:
    0 0 0 .5px rgb(10 10 10 / .05),
    0 1px 2px rgb(10 10 10 / .06),
    0 8px 16px -10px rgb(10 10 10 / .22);
}
.lg-chip::before { -webkit-backdrop-filter: blur(10px) saturate(1.8) brightness(1.04); backdrop-filter: blur(10px) saturate(1.8) brightness(1.04); }
.lg-chip__dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--lg-red);
  box-shadow: 0 0 0 3px rgb(255 59 31 / .2);
}
.lg-chip--red {
  --lg-tint: linear-gradient(180deg, rgb(255 66 38 / .86), rgb(227 18 11 / .9));
  --lg-solid: var(--lg-ember);
  --lg-rim-hi: rgb(255 222 210 / .95);
  --lg-rim-lo: rgb(122 10 5 / .5);
  --lg-sat: 1.3;
  color: #fff;
}
.lg-chip--red::before { -webkit-backdrop-filter: blur(10px) saturate(1.3); backdrop-filter: blur(10px) saturate(1.3); }
.lg-chip--red .lg-chip__dot { background: #fff; box-shadow: 0 0 0 3px rgb(255 255 255 / .28); }
.lg-chip--dark {
  --lg-tint: rgb(14 12 12 / .78);
  --lg-solid: #151414;
  --lg-sat: 1.5;
  --lg-bright: .85;
  --lg-rim-hi: rgb(255 255 255 / .55);
  --lg-rim-lo: rgb(0 0 0 / .45);
  --lg-glare: .22;
  --lg-inner:
    inset 0 1px 0 rgb(255 255 255 / .28),
    inset 0 -1px 0 rgb(0 0 0 / .3),
    inset 0 -10px 16px -14px rgb(255 255 255 / .35);
  color: var(--lg-paper);
}
.lg-chip--dark::before { -webkit-backdrop-filter: blur(10px) saturate(1.5) brightness(.85); backdrop-filter: blur(10px) saturate(1.5) brightness(.85); }
a.lg-chip, button.lg-chip { min-height: 44px; cursor: pointer; text-decoration: none; border: 0; }

/* --------------------------------------------------------------------------
   4. Card  .lg-card
   -------------------------------------------------------------------------- */

.lg-card {
  --lg-r: 28px;
  --lg-bezel: 32;
  --lg-refraction: 24;
  --lg-frost: 8;
  --lg-tint: rgb(255 250 246 / .52);
  --lg-rim-angle: 150deg;
  --lg-rim-w: 1.4px;
  --lg-glare: .36;
  display: block;
  padding: clamp(22px, 2.3vw, 32px);
  color: var(--lg-ink);
  font: 400 15px/1.5 var(--lg-font-ui);
}
.lg-card::before { -webkit-backdrop-filter: blur(20px) saturate(1.8) brightness(1.04); backdrop-filter: blur(20px) saturate(1.8) brightness(1.04); }
.lg-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.lg-card__figure {
  display: block;
  margin: 18px 0 6px;
  font: 900 clamp(64px, 6.4vw, 104px)/.82 var(--lg-font-display);
  letter-spacing: -.01em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.lg-card__figure small { font-size: .42em; letter-spacing: 0; vertical-align: .95em; margin-left: .06em; color: var(--lg-red); }
.lg-card__title {
  margin: 14px 0 8px;
  font: 800 clamp(26px, 2.3vw, 36px)/.94 var(--lg-font-display);
  letter-spacing: .005em;
  text-transform: uppercase;
}
.lg-card__text { margin: 0; color: #2E2826; max-width: 42ch; }
.lg-card__meta {
  margin: 16px 0 0;
  font: 500 11px/1.3 var(--lg-font-label);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #5E5450;
}
.lg-card__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
a.lg-card { text-decoration: none; transition: transform .55s var(--lg-out); }
a.lg-card:hover { transform: translateY(-3px); --lg-shadow: var(--lg-shadow-lift); }
a.lg-card:focus-visible { outline: 2.5px solid var(--lg-ink); outline-offset: 4px; }

/* --------------------------------------------------------------------------
   5. Navigation  .lg-nav > .lg-nav__bar + .lg-nav__sheet
   -------------------------------------------------------------------------- */

.lg-nav {
  position: fixed;
  z-index: 100;
  top: max(14px, env(safe-area-inset-top));
  left: max(12px, env(safe-area-inset-left));
  right: max(12px, env(safe-area-inset-right));
  max-width: 1180px;
  margin-inline: auto;
}
.lg-nav__bar {
  --lg-r: 999px;
  --lg-bezel: 26;
  --lg-refraction: 20;
  --lg-frost: 4;
  --lg-dispersion: .08;
  --lg-tint: rgb(255 250 246 / .5);
  --lg-rim-angle: 174deg;
  --lx0: 18%;
  --ly0: -60%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  height: 66px;
  padding: 0 9px 0 26px;
}
.lg-nav__bar::before { -webkit-backdrop-filter: blur(16px) saturate(1.8) brightness(1.04); backdrop-filter: blur(16px) saturate(1.8) brightness(1.04); }
.lg-nav__logo {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--lg-ink);
  text-decoration: none;
  border-radius: 8px;
}
.lg-nav__logo svg { display: block; height: 17px; width: auto; }
.lg-nav__logo:focus-visible { outline: 2.5px solid var(--lg-ink); outline-offset: 4px; }
.lg-nav__links {
  display: flex;
  align-items: center;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.lg-nav__link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 17px;
  border-radius: 999px;
  font: 500 15px/1 var(--lg-font-ui);
  color: var(--lg-ink);
  text-decoration: none;
  transition: background-color .25s var(--lg-ease), box-shadow .25s var(--lg-ease);
}
.lg-nav__link:hover { background-color: rgb(10 10 10 / .055); }
.lg-nav__link:focus-visible { outline: 2.5px solid var(--lg-ink); outline-offset: 1px; }
.lg-nav__link[aria-current="page"] {
  background-color: rgb(255 255 255 / .62);
  box-shadow: inset 0 0 0 .5px rgb(10 10 10 / .08), 0 1px 2px rgb(10 10 10 / .07), inset 0 1px 0 #fff;
}
.lg-nav__cta { justify-self: end; min-height: 48px; padding: 0 22px; }
.lg-nav__toggle {
  display: none;
  justify-self: end;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  min-width: 46px;
  padding: 0 18px 0 16px;
  border: 0;
  border-radius: 999px;
  background: var(--lg-ink);
  color: var(--lg-paper);
  font: 500 12px/1 var(--lg-font-label);
  letter-spacing: .14em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .18), 0 4px 10px -4px rgb(10 10 10 / .4);
  -webkit-tap-highlight-color: transparent;
}
.lg-nav__toggle:focus-visible { outline: 2.5px solid var(--lg-red); outline-offset: 3px; }
.lg-nav__burger { position: relative; width: 16px; height: 10px; flex: none; }
.lg-nav__burger::before,
.lg-nav__burger::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 1.6px;
  border-radius: 2px;
  background: currentColor;
  transition: transform .4s var(--lg-out), top .4s var(--lg-out);
}
.lg-nav__burger::before { top: 0; }
.lg-nav__burger::after { top: 8.4px; }
.lg-nav[data-open] .lg-nav__burger::before { top: 4.2px; transform: rotate(45deg); }
.lg-nav[data-open] .lg-nav__burger::after { top: 4.2px; transform: rotate(-45deg); }

.lg-nav__sheet {
  --lg-r: 30px;
  --lg-bezel: 30;
  --lg-refraction: 22;
  --lg-frost: 10;
  --lg-tint: rgb(255 250 246 / .62);
  --lg-rim-angle: 160deg;
  display: none;
}

.lg-nav__sheet::before { -webkit-backdrop-filter: blur(22px) saturate(1.8) brightness(1.04); backdrop-filter: blur(22px) saturate(1.8) brightness(1.04); }

@media (max-width: 880px) {
  .lg-nav__bar {
    grid-template-columns: 1fr auto;
    height: 62px;
    padding: 0 8px 0 20px;
  }
  .lg-nav__bar > .lg-nav__links,
  .lg-nav__bar > .lg-nav__cta { display: none; }
  .lg-nav__toggle { display: inline-flex; }
  .lg-nav__sheet {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 10px;
    visibility: hidden;
    transform: translateY(-10px) scale(.97);
    transform-origin: 50% 0;
    transition: transform .45s var(--lg-out), visibility 0s linear .45s;
  }
  .lg-nav__sheet::before,
  .lg-nav__sheet::after { opacity: 0; }
  .lg-nav__sheet > * { opacity: 0; transition: opacity .2s var(--lg-ease); }
  .lg-nav[data-open] .lg-nav__sheet {
    visibility: visible;
    transform: none;
    transition: transform .5s var(--lg-out), visibility 0s;
  }
  .lg-nav[data-open] .lg-nav__sheet::before,
  .lg-nav[data-open] .lg-nav__sheet::after { opacity: 1; }
  .lg-nav[data-open] .lg-nav__sheet > * { opacity: 1; transition: opacity .3s var(--lg-ease) .06s; }
  .lg-nav__sheet .lg-nav__link {
    min-height: 54px;
    padding: 0 18px;
    border-radius: 20px;
    font-size: 19px;
    font-weight: 600;
    letter-spacing: -.01em;
  }
  .lg-nav__sheet .lg-btn { margin-top: 8px; min-height: 54px; width: 100%; }
}
@media (max-width: 360px) {
  .lg-nav__bar { padding-left: 16px; }
  .lg-nav__logo svg { height: 14px; }
  .lg-nav__toggle { padding: 0 14px; }
}

/* --------------------------------------------------------------------------
   6. Lens  .lg-lens  (desktop, fine pointer only)
   Markup: <div class="lg-lens" data-lg-lens-for="#title"></div> as a sibling
   of the target inside a positioned container. glass.js clones the target,
   scales it under the cursor and bends the rim with an SVG filter.
   -------------------------------------------------------------------------- */

.lg-lens {
  --lg-lens-d: 240px;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 3;
  display: none;
  width: var(--lg-lens-d);
  height: var(--lg-lens-d);
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  will-change: transform, opacity;
  box-shadow:
    0 1px 2px rgb(10 10 10 / .1),
    0 18px 34px -14px rgb(10 10 10 / .38),
    0 46px 80px -34px rgb(10 10 10 / .3);
}
.lg-fine .lg-lens[data-lg-ready] { display: block; }
.lg-lens__view {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 50%;
  background: var(--lg-lens-bg, var(--lg-paper));
}
.lg-lens__fx { position: absolute; inset: 0; }
.lg-lens__clone {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  margin: 0 !important;
  max-width: none !important;
  box-sizing: border-box;
  transform-origin: 0 0;
  pointer-events: none;
  user-select: none;
  animation: none !important;
  transition: none !important;
}
/* thick glass shading: edge falloff, specular crescent, bottom caustic */
.lg-lens::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  background:
    radial-gradient(14% 7% at 31% 13%, rgb(255 255 255 / .9), rgb(255 255 255 / 0) 100%),
    radial-gradient(closest-side, rgb(255 255 255 / 0) 80%, rgb(10 10 10 / .05) 92%, rgb(10 10 10 / .14) 100%);
  box-shadow:
    inset 3px 4px 2px -2px rgb(255 255 255 / .95),
    inset 0 0 0 1px rgb(255 255 255 / .55),
    inset -3px -4px 4px -2px rgb(10 10 10 / .22),
    inset 0 -18px 26px -18px rgb(255 255 255 / .9),
    inset 0 0 0 .5px rgb(10 10 10 / .14);
}
.lg-lens::before {
  content: "";
  position: absolute;
  inset: -1px;
  z-index: 1;
  border-radius: 50%;
  pointer-events: none;
  padding: 1.4px;
  background: linear-gradient(160deg, #fff 0%, rgb(255 255 255 / .3) 30%, rgb(255 255 255 / 0) 55%, rgb(10 10 10 / .28) 100%);
  -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);
}

/* --------------------------------------------------------------------------
   7. Modes (after the components so they win the cascade)
   -------------------------------------------------------------------------- */

/* Chromium: real refraction. glass.js sets --lg-filter per element; the blur
   lives inside that filter (centre frosted, rim crystal clear), so the CSS
   chain only adds colour. */
html.lg-refract :is(.lg, .lg-btn, .lg-card, .lg-chip, .lg-nav__bar, .lg-nav__sheet)::before {
  -webkit-backdrop-filter: var(--lg-filter, url(#lg-refract)) saturate(var(--lg-sat)) brightness(var(--lg-bright));
  backdrop-filter: var(--lg-filter, url(#lg-refract)) saturate(var(--lg-sat)) brightness(var(--lg-bright));
}

/* Reduced transparency or no backdrop-filter: opaque, still dimensional */
html.lg-solid :is(.lg, .lg-btn, .lg-card, .lg-chip, .lg-nav__bar, .lg-nav__sheet)::before {
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background:
    linear-gradient(180deg, rgb(255 255 255 / .22), rgb(255 255 255 / 0) 50%),
    var(--lg-solid);
}
@media (prefers-reduced-transparency: reduce) {
  html :is(.lg, .lg-btn, .lg-card, .lg-chip, .lg-nav__bar, .lg-nav__sheet)::before,
  html.lg-refract :is(.lg, .lg-btn, .lg-card, .lg-chip, .lg-nav__bar, .lg-nav__sheet)::before {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background:
      linear-gradient(180deg, rgb(255 255 255 / .22), rgb(255 255 255 / 0) 50%),
      var(--lg-solid);
  }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  html :is(.lg, .lg-btn, .lg-card, .lg-chip, .lg-nav__bar, .lg-nav__sheet)::before {
    background:
      linear-gradient(180deg, rgb(255 255 255 / .22), rgb(255 255 255 / 0) 50%),
      var(--lg-solid);
  }
}

/* --------------------------------------------------------------------------
   8. Preferences
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .lg-btn,
  a.lg-card,
  .lg-nav__sheet,
  .lg-nav__sheet > *,
  .lg-nav__burger::before,
  .lg-nav__burger::after,
  .lg-nav__link { transition: none !important; }
  .lg-btn:is(:hover, .is-hover),
  a.lg-card:hover { transform: none; }
  .lg-btn:active { transform: none; }
  .lg-nav__sheet { transform: none !important; }
}

@media (forced-colors: active) {
  :where(.lg, .lg-btn, .lg-card, .lg-chip, .lg-nav__bar, .lg-nav__sheet) {
    border: 1px solid CanvasText;
    forced-color-adjust: auto;
  }
  :where(.lg, .lg-btn, .lg-card, .lg-chip, .lg-nav__bar, .lg-nav__sheet)::before,
  :where(.lg, .lg-btn, .lg-card, .lg-chip, .lg-nav__bar, .lg-nav__sheet)::after,
  .lg-lens { display: none; }
}

@media print {
  .lg-nav, .lg-lens { display: none; }
  html :is(.lg, .lg-btn, .lg-card, .lg-chip, .lg-nav__bar, .lg-nav__sheet)::before { -webkit-backdrop-filter: none; backdrop-filter: none; background: #fff; }
}
