/* Leveredge — the glass layer, after Apple's "Meet Liquid Glass" (WWDC25). The rules, in our words, are in the skill
   skills/liquid-glass-web (references/rules.md, rule numbers in brackets below); every number here is ours.

   Glass goes only on what floats over the pages (D1): the header, which becomes a floating capsule once you scroll,
   and the mobile menu, which grows out of its button. Tiles, cards, forms and the worked examples are content and stay
   solid. Buttons stay flat (2D), as the founder asked on 2026-11-17, so the one primary action keeps its flat fill rather
   than a glass tint (D17 would tint it; ask before changing that). Loaded after site.css when GLASS = True in build.py;
   the moving parts are in assets/js/glass.js. Remove this file's <link> and the site is as it was. */

@property --lg-on { syntax: "<number>"; inherits: true; initial-value: 0; }        /* 0 no glass, 1 materialized */
@property --lg-glow { syntax: "<number>"; inherits: true; initial-value: 0; }
@property --lg-spread { syntax: "<percentage>"; inherits: true; initial-value: 0%; }
@property --lg-flex { syntax: "<number>"; inherits: true; initial-value: 1; }
@property --lg-angle { syntax: "<angle>"; inherits: true; initial-value: 215deg; }   /* where the rim's light falls */
@property --drop-swell { syntax: "<number>"; inherits: false; initial-value: 1; }
@property --drop-sheen { syntax: "<number>"; inherits: false; initial-value: 1; }   /* the drop's sheen, gone while held */

/* ---------- springs (node skills/liquid-glass-web/scripts/spring.mjs tokens) and the two tones ---------- */
:root {
  --spring-flex: cubic-bezier(0.3, 1.4, 0.5, 1); --spring-flex-ms: 582ms;      /* a press: instant, with a little give (M2, M3) */
  --spring-morph: cubic-bezier(0.25, 1.12, 0.4, 1); --spring-morph-ms: 667ms;  /* shape changes: bar to capsule, button to menu (M5, M6) */
  --spring-settle: cubic-bezier(0.2, 0.9, 0.3, 1); --spring-settle-ms: 747ms;  /* optics: materializing, tone and shadow (M7) */
  --lg-fill: 255 255 255; --lg-fill-a: 0.36; --lg-rim: 255 255 255; --lg-rim-a: 0.95; --lg-shade-a: 0.1;
  --lg-shadow-a: 0.14; --lg-blur: 12px; --lg-sat: 1.7; --lg-lum: 1.06; --lg-glow-a: 0.32;
}
@supports (transition-timing-function: linear(0, 1)) {
  :root {
    --spring-flex: linear(0, 0.0256, 0.0922, 0.1861, 0.2957, 0.4117, 0.5267, 0.6355, 0.7342, 0.8207, 0.8939, 0.9535, 1.0002, 1.0349, 1.059, 1.0741, 1.0818, 1.0835, 1.0806, 1.0746, 1.0665, 1.0572, 1.0475, 1.0379, 1.029, 1.0209, 1.0138, 1.0079, 1.0031, 0.9994, 0.9967, 0.9948, 0.9937, 0.9931, 0.993, 0.9933, 0.9939, 0.9946, 0.9954, 0.9962, 0.997, 0.9977, 0.9984, 0.9989, 0.9994, 0.9998, 1.0001, 1.0003, 1);
    --spring-morph: linear(0, 0.0163, 0.059, 0.1199, 0.1926, 0.2718, 0.3533, 0.434, 0.5116, 0.5845, 0.6516, 0.7123, 0.7665, 0.814, 0.8551, 0.8902, 0.9197, 0.9441, 0.9641, 0.98, 0.9925, 1.002, 1.009, 1.0139, 1.0172, 1.019, 1.0198, 1.0198, 1.0192, 1.0181, 1.0168, 1.0152, 1.0136, 1.012, 1.0104, 1.0089, 1.0075, 1.0063, 1.0051, 1.0041, 1.0033, 1.0025, 1.0019, 1.0013, 1.0009, 1.0005, 1.0003, 1, 1);
    --spring-settle: linear(0, 0.0168, 0.0591, 0.1175, 0.1847, 0.2559, 0.3275, 0.3972, 0.4633, 0.5249, 0.5816, 0.6331, 0.6796, 0.7211, 0.7579, 0.7905, 0.8191, 0.8442, 0.8661, 0.8851, 0.9016, 0.9158, 0.9281, 0.9387, 0.9478, 0.9556, 0.9623, 0.968, 0.9728, 0.977, 0.9805, 0.9835, 0.9861, 0.9882, 0.9901, 0.9916, 0.9929, 0.9941, 0.995, 0.9958, 0.9965, 0.997, 0.9975, 0.9979, 0.9982, 0.9985, 0.9988, 0.999, 1);
  }
}
/* the dark tone: the header over a dark chapter (site.js sets data-dark from the chapter's real colour), and the menu */
.site-header[data-dark], .menu {
  --lg-fill: 18 18 18; --lg-fill-a: 0.44; --lg-rim: 255 255 255; --lg-rim-a: 0.32; --lg-shade-a: 0.5;
  --lg-shadow-a: 0.4; --lg-lum: 0.92; --lg-glow-a: 0.18;
}

/* ---------- the header: transparent over the hero at rest (D5), a floating glass capsule once the page scrolls ---------- */
.site-header {
  isolation: isolate;
  transition:
    transform var(--spring-morph-ms) var(--spring-morph),
    top var(--spring-morph-ms) var(--spring-morph), left var(--spring-morph-ms) var(--spring-morph), right var(--spring-morph-ms) var(--spring-morph),
    height var(--spring-morph-ms) var(--spring-morph), padding var(--spring-morph-ms) var(--spring-morph), border-radius var(--spring-morph-ms) var(--spring-morph),
    color 240ms ease, box-shadow var(--spring-settle-ms) var(--spring-settle),
    --lg-on var(--spring-settle-ms) var(--spring-settle), --lg-glow var(--spring-settle-ms) var(--spring-settle),
    --lg-spread var(--spring-settle-ms) var(--spring-settle), --lg-flex var(--spring-flex-ms) var(--spring-flex),
    --lg-angle var(--spring-morph-ms) var(--spring-morph);
  --lg-angle: 150deg;
}
.site-header.is-solid {
  --lg-on: 1; --lg-angle: 215deg;   /* as the capsule forms, the light travels round its rim (study §2) */
  top: 10px; left: max(10px, calc(var(--margin) - 14px)); right: max(10px, calc(var(--margin) - 14px));
  height: 64px; padding-inline: 22px 10px; border-radius: 32px;
  background: transparent;                       /* the glass has no colour of its own: the chapter shows through (D15) */
  box-shadow: 0 14px 34px -16px rgb(0 0 0 / var(--lg-shadow-a)), 0 1px 4px rgb(0 0 0 / calc(var(--lg-shadow-a) * 0.45));
}
.site-header.is-hidden { transform: translateY(calc(-100% - 16px)); }
.site-header::before, .site-header::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; transform: scale(var(--lg-flex));
}
/* the body: the chapter behind, frosted and lifted, and the light from a touch (M8) */
.site-header::before {
  z-index: -2;
  background:
    radial-gradient(circle at var(--lg-px, 50%) var(--lg-py, 50%), rgb(255 255 255 / calc(var(--lg-glow) * var(--lg-glow-a))), transparent var(--lg-spread)),
    rgb(var(--lg-fill) / calc(var(--lg-fill-a) * var(--lg-on)));
  -webkit-backdrop-filter: blur(calc(var(--lg-blur) * var(--lg-on))) saturate(calc(1 + (var(--lg-sat) - 1) * var(--lg-on))) brightness(calc(1 + (var(--lg-lum) - 1) * var(--lg-on)));
  backdrop-filter: var(--lg-lens, ) blur(calc(var(--lg-blur) * var(--lg-on))) saturate(calc(1 + (var(--lg-sat) - 1) * var(--lg-on))) brightness(calc(1 + (var(--lg-lum) - 1) * var(--lg-on)));
  box-shadow: inset 0 0 calc(12px * var(--lg-on)) rgb(255 255 255 / calc(0.18 * var(--lg-on))), inset 0 -10px 16px -12px rgb(0 0 0 / calc(var(--lg-shade-a) * var(--lg-on)));
  transition: background-color var(--spring-settle-ms) var(--spring-settle);   /* a light/dark flip crossfades (study §2) */
}
/* the rim: two opposite arcs of light, the far one weaker (the lensing cue) */
.site-header::after {
  z-index: -1; padding: 1px; opacity: var(--lg-on);
  background: conic-gradient(from var(--lg-angle), rgb(var(--lg-rim) / var(--lg-rim-a)), rgb(var(--lg-rim) / calc(var(--lg-rim-a) * 0.14)) 14%, rgb(var(--lg-rim) / calc(var(--lg-rim-a) * 0.08)) 36%, rgb(var(--lg-rim) / calc(var(--lg-rim-a) * 0.6)) 50%, rgb(var(--lg-rim) / calc(var(--lg-rim-a) * 0.08)) 64%, rgb(var(--lg-rim) / calc(var(--lg-rim-a) * 0.14)) 86%, rgb(var(--lg-rim) / var(--lg-rim-a)));
  -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);
}
/* a press fills the capsule with light from the finger, turns its light and gives a little (M2, M3, M8; study §2, §3) */
.site-header.is-solid.is-pressed { --lg-glow: 1; --lg-spread: 160%; --lg-glow-a: 0.5; --lg-flex: 1.02; --lg-angle: 245deg; }
.site-header[data-dark].is-solid.is-pressed { --lg-glow-a: 0.22; }

/* the drop (desktop): one droplet that follows the pointer between the nav's links, rests on the current page,
   stretches along its speed (volume kept) and swells under a press; glass.js moves it (study §1, §3). It replaces the
   underline while the header is glass. */
.site-header .nav { position: relative; isolation: isolate; }
/* It reads as liquid on light glass too (the founder, 2026-11-23: in light mode it looked like a flat pill). White
   light vanishes on white, so a clear lens shows itself by its edge: a clear body that brightens and saturates what is
   under it, a soft grey band inside the rim where the light bends, a crisp bright line along the top, light focused
   into the bottom edge (a caustic), two arcs of light turned with the bar's own light, a small cast shadow, and the
   link under it magnified as if seen through it (study §2). On dark glass the band is light. Held, it swells into a
   clear lens with a bright rim. The shadows keep one shape (five inset, two cast) and the sheen is a number, so a
   press morphs them instead of jumping. */
.site-header .lg-drop {
  position: absolute; z-index: -1; left: 0; top: 50%; height: 40px; margin-top: -20px; width: var(--drop-w, 0px);
  border-radius: 20px; pointer-events: none;   /* concentric: the 64 px capsule's radius 32 less its 12 px inset */
  transform: translateX(var(--drop-x, 0px)) scale(calc(var(--drop-sx, 1) * var(--drop-swell)), calc(var(--drop-sy, 1) * var(--drop-swell)));
  background: linear-gradient(180deg, rgb(255 255 255 / calc(0.35 * var(--drop-sheen))), rgb(255 255 255 / 0) 50%), rgb(255 255 255 / 0.05);
  -webkit-backdrop-filter: saturate(1.6) brightness(1.05); backdrop-filter: saturate(1.6) brightness(1.05);
  box-shadow: inset 0 1px 0.5px rgb(255 255 255 / 1), inset 0 -1px 0.5px rgb(255 255 255 / 0.75), inset 0 0 0 0.5px rgb(0 0 0 / 0.16),
    inset 0 -5px 6px -4px rgb(255 255 255 / 0.9), inset 0 0 10px rgb(0 0 0 / 0.12), 0 1px 1.5px rgb(0 0 0 / 0.08), 0 6px 14px -8px rgb(0 0 0 / 0.22);
  opacity: 0;
  transition: opacity var(--spring-settle-ms) var(--spring-settle), background-color var(--spring-settle-ms) var(--spring-settle),
    box-shadow var(--spring-settle-ms) var(--spring-settle), --drop-sheen var(--spring-settle-ms) var(--spring-settle), --drop-swell var(--spring-morph-ms) var(--spring-morph);
}
.site-header .lg-drop::after {   /* the rim: two arcs of light, dark where it bends away */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: conic-gradient(from var(--lg-angle), rgb(255 255 255 / 0.95), rgb(255 255 255 / 0.1) 14%, rgb(0 0 0 / 0.07) 36%, rgb(255 255 255 / 0.6) 50%, rgb(0 0 0 / 0.07) 64%, rgb(255 255 255 / 0.1) 86%, rgb(255 255 255 / 0.95));
  -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);
}
.site-header[data-dark] .lg-drop {
  background: linear-gradient(180deg, rgb(255 255 255 / calc(0.12 * var(--drop-sheen))), rgb(255 255 255 / 0) 50%), rgb(255 255 255 / 0.04);
  box-shadow: inset 0 1px 0.5px rgb(255 255 255 / 0.5), inset 0 -1px 0.5px rgb(255 255 255 / 0.22), inset 0 0 0 0.5px rgb(255 255 255 / 0.18),
    inset 0 -5px 6px -4px rgb(255 255 255 / 0.16), inset 0 0 10px rgb(255 255 255 / 0.1), 0 1px 1.5px rgb(0 0 0 / 0.3), 0 6px 14px -8px rgb(0 0 0 / 0.55);
}
.site-header.is-solid .lg-drop.is-on { opacity: 1; }
.site-header .lg-drop.is-pressed {
  --drop-swell: 1.12; --drop-sheen: 0; background-color: rgb(255 255 255 / 0.06);
  box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 0.95), inset 0 0 0 2px rgb(0 0 0 / 0.1), inset 0 0 0 0.5px rgb(0 0 0 / 0.16),
    inset 0 -6px 8px -4px rgb(255 255 255 / 0.95), inset 0 0 14px rgb(0 0 0 / 0.14), 0 1px 1.5px rgb(0 0 0 / 0.08), 0 10px 20px -8px rgb(0 0 0 / 0.3);
}
.site-header[data-dark] .lg-drop.is-pressed {
  background-color: rgb(255 255 255 / 0.06);
  box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / 0.55), inset 0 0 0 2px rgb(0 0 0 / 0.3), inset 0 0 0 0.5px rgb(255 255 255 / 0.18),
    inset 0 -6px 8px -4px rgb(255 255 255 / 0.22), inset 0 0 14px rgb(255 255 255 / 0.12), 0 1px 1.5px rgb(0 0 0 / 0.3), 0 10px 20px -8px rgb(0 0 0 / 0.6);
}
.site-header .nav a:not(.btn) { transition: scale var(--spring-morph-ms) var(--spring-morph); }
.site-header.is-solid .nav a.is-lensed:not(.btn) { scale: 1.07; }   /* glass.js marks the link under the drop */
@media (hover: hover) and (pointer: fine) {
  .site-header.is-solid.has-drop .nav a:not(.btn)[aria-current="page"], .site-header.is-solid.has-drop .nav a:not(.btn):hover { text-decoration: none; }
}
@media (max-width: 899px) {
  .site-header.is-solid { top: 8px; left: 8px; right: 8px; height: 56px; padding-inline: 16px 6px; border-radius: 28px; }
}

/* the scroll edge under the capsule (glass.js places it): content dissolves into its own chapter's colour, and turns
   into a soft dimming when the capsule is dark (D14) */
.lg-edge {
  position: fixed; inset: 0 0 auto; z-index: 59; height: 96px; pointer-events: none;
  background: linear-gradient(color-mix(in srgb, var(--edge, #e7e7e7) 82%, transparent), transparent);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  -webkit-mask-image: linear-gradient(#000 45%, transparent); mask-image: linear-gradient(#000 45%, transparent);
  opacity: 0; transition: opacity var(--spring-settle-ms) var(--spring-settle);
}
.lg-edge.is-on { opacity: 1; }
.lg-edge.is-dim { background: linear-gradient(rgb(0 0 0 / 0.44), transparent); }
@media (max-width: 899px) { .lg-edge { height: 80px; } }

/* ---------- the mobile menu: large dark glass that grows out of the Menu button and goes back into it (M6, M7) ---------- */
.menu {
  inset: 8px; padding: 12px 18px 24px; border-radius: 32px;
  background: transparent; isolation: isolate; opacity: 1;
  transform-origin: var(--lg-ox, calc(100% - 48px)) var(--lg-oy, 28px);
  transition: visibility 0s linear 280ms;
}
/* it bursts out on the fast spring; its content waits a beat, then comes into focus (study §3) */
.menu.is-open { opacity: 1; transition: none; animation: lg-in var(--spring-flex-ms) var(--spring-flex) both; }
.menu:not(.is-open) { animation: lg-out 260ms cubic-bezier(0.4, 0, 1, 1) both; }
.menu.is-open > * { animation: lg-content-in var(--spring-settle-ms) var(--spring-settle) 130ms both; }
.menu::before, .menu::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; }
/* large glass is thicker: more frost, more substance, a deeper shadow, and it keeps its tone (D10, D11) */
.menu::before {
  z-index: -2;
  background: rgb(var(--lg-fill) / calc(0.7 * var(--lg-on)));
  -webkit-backdrop-filter: blur(calc(30px * var(--lg-on))) saturate(calc(1 + 0.5 * var(--lg-on)));
  backdrop-filter: blur(calc(30px * var(--lg-on))) saturate(calc(1 + 0.5 * var(--lg-on)));
  box-shadow: 0 30px 80px -24px rgb(0 0 0 / calc(0.6 * var(--lg-on))), inset 0 0 18px rgb(255 255 255 / calc(0.06 * var(--lg-on)));
}
.menu::after {
  z-index: -1; padding: 1px; opacity: var(--lg-on);
  background: conic-gradient(from 215deg, rgb(255 255 255 / 0.38), rgb(255 255 255 / 0.08) 24%, rgb(255 255 255 / 0.04) 50%, rgb(255 255 255 / 0.1) 76%, rgb(255 255 255 / 0.38));
  -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);
}
/* things on glass are fills, not panes (D2) */
.menu .theme-switch { background: rgb(255 255 255 / 0.1); }

@keyframes lg-in { from { --lg-on: 0; transform: scale(0.86); } to { --lg-on: 1; } }
@keyframes lg-out { from { --lg-on: 1; } to { --lg-on: 0; transform: scale(0.92); } }
@keyframes lg-content-in { from { opacity: 0; filter: blur(6px); } 40% { opacity: 1; } }   /* focus, not a fade */

/* ---------- the dotted wave behind the worked examples (content, not glass): drawn on the GPU by lv-glass.js ---------- */
.stages__ui > canvas[data-lv-glass] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 600ms ease; }
.stages__ui.is-lit > canvas[data-lv-glass] { opacity: 1; }
.stages__ui > .stage-panel { position: relative; z-index: 1; }

/* ---------- access: the settings change layers, the glass stays glass (D19) ---------- */
html.lg-inactive .site-header { --lg-rim-a: 0.4; --lg-sat: 1.15; --lg-shadow-a: 0.06; }   /* the window lost focus (D13) */
@media (prefers-reduced-transparency: reduce) {
  .site-header { --lg-fill-a: 0.88; --lg-blur: 30px; }
  .site-header[data-dark] { --lg-fill-a: 0.9; }
  .menu::before { background: rgb(var(--lg-fill) / calc(0.94 * var(--lg-on))); }
}
@media (prefers-contrast: more) {
  .site-header.is-solid { box-shadow: none; }
  .site-header::before { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgb(var(--lg-fill) / var(--lg-on)); box-shadow: none; }
  .site-header::after { padding: 2px; background: currentColor; }
  .menu::before { -webkit-backdrop-filter: none; backdrop-filter: none; background: #000; }
  .menu::after { padding: 2px; background: #fff; }
  .lg-edge { -webkit-mask-image: none; mask-image: none; }
  .site-header .lg-drop, .site-header .lg-drop.is-pressed, .site-header[data-dark] .lg-drop, .site-header[data-dark] .lg-drop.is-pressed {
    -webkit-backdrop-filter: none; backdrop-filter: none; background: none; box-shadow: inset 0 0 0 2px currentColor; }
  .site-header .lg-drop::after { display: none; }
}
@media (forced-colors: active) {
  .site-header::before, .menu::before { -webkit-backdrop-filter: none; backdrop-filter: none; background: Canvas; }
  .site-header::after, .menu::after { background: CanvasText; }
  .site-header .lg-drop { outline: 2px solid CanvasText; outline-offset: -2px; }
}
@media (prefers-reduced-motion: reduce) {
  :root { --spring-flex: var(--spring-settle); --spring-morph: var(--spring-settle); --spring-flex-ms: 300ms; --spring-morph-ms: 300ms; --spring-settle-ms: 300ms; }
  .site-header.is-solid.is-pressed { --lg-flex: 1; }                                  /* the light, without the give (M10) */
  .site-header .lg-drop.is-pressed { --drop-swell: 1; }
  .site-header.is-solid .nav a.is-lensed:not(.btn) { scale: 1; }
  @keyframes lg-in { from { --lg-on: 0; } to { --lg-on: 1; } }                        /* the optics come and go, nothing grows */
  @keyframes lg-out { from { --lg-on: 1; } to { --lg-on: 0; } }
  .stages__ui > canvas[data-lv-glass] { transition: none !important; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .site-header { --lg-fill-a: 0.92; }
  .menu::before { background: rgb(var(--lg-fill) / calc(0.96 * var(--lg-on))); }
}
@media print { .site-header::before, .site-header::after, .lg-edge { display: none; } }

/* ---------- the EDGE Snapshot's step bar and action bar: small floating glass, like the header capsule ----------
   They float over the steps' paper sheets and the chapter, so each reads what is under it (glass.js sets data-dark from
   the real backdrop, D8) and carries its own ink: black on light glass, white on dark. The steps themselves stay solid
   (D1). The current step wears the drop, which follows the pointer between steps and swells under a press. */
.eg-bar {
  isolation: isolate; --lg-on: 1; --lg-angle: 215deg; --eg-ink: #000; --eg-soft: #555;
  background: transparent;
  box-shadow: 0 14px 34px -16px rgb(0 0 0 / var(--lg-shadow-a)), 0 1px 4px rgb(0 0 0 / calc(var(--lg-shadow-a) * 0.45));
  transition: top var(--spring-morph-ms) var(--spring-morph), box-shadow var(--spring-settle-ms) var(--spring-settle),
    --lg-glow var(--spring-settle-ms) var(--spring-settle), --lg-spread var(--spring-settle-ms) var(--spring-settle),
    --lg-flex var(--spring-flex-ms) var(--spring-flex), --lg-angle var(--spring-morph-ms) var(--spring-morph);
}
.eg-bar[data-dark] {
  --lg-fill: 18 18 18; --lg-fill-a: 0.44; --lg-rim-a: 0.32; --lg-shade-a: 0.5; --lg-shadow-a: 0.4; --lg-lum: 0.92; --lg-glow-a: 0.18;
  --eg-ink: #fff; --eg-soft: var(--silver);
}
.eg-bar::before, .eg-bar::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; transform: scale(var(--lg-flex)); }
.eg-bar::before {
  z-index: -2;
  background:
    radial-gradient(circle at var(--lg-px, 50%) var(--lg-py, 50%), rgb(255 255 255 / calc(var(--lg-glow) * var(--lg-glow-a))), transparent var(--lg-spread)),
    rgb(var(--lg-fill) / var(--lg-fill-a));
  -webkit-backdrop-filter: blur(var(--lg-blur)) saturate(var(--lg-sat)) brightness(var(--lg-lum));
  backdrop-filter: blur(var(--lg-blur)) saturate(var(--lg-sat)) brightness(var(--lg-lum));
  box-shadow: inset 0 0 12px rgb(255 255 255 / 0.18), inset 0 -10px 16px -12px rgb(0 0 0 / var(--lg-shade-a));
  transition: background-color var(--spring-settle-ms) var(--spring-settle);
}
.eg-bar::after {
  z-index: -1; padding: 1px;
  background: conic-gradient(from var(--lg-angle), rgb(var(--lg-rim) / var(--lg-rim-a)), rgb(var(--lg-rim) / calc(var(--lg-rim-a) * 0.14)) 14%, rgb(var(--lg-rim) / calc(var(--lg-rim-a) * 0.08)) 36%, rgb(var(--lg-rim) / calc(var(--lg-rim-a) * 0.6)) 50%, rgb(var(--lg-rim) / calc(var(--lg-rim-a) * 0.08)) 64%, rgb(var(--lg-rim) / calc(var(--lg-rim-a) * 0.14)) 86%, rgb(var(--lg-rim) / var(--lg-rim-a)));
  -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);
}
.eg-bar.is-pressed { --lg-glow: 1; --lg-spread: 160%; --lg-glow-a: 0.5; --lg-flex: 1.02; --lg-angle: 245deg; }
.eg-bar[data-dark].is-pressed { --lg-glow-a: 0.22; }
/* things on glass are fills, not panes (D2): the Back button is a light fill, Continue keeps the flat primary */
.eg-bar .eg-back { background: rgb(255 255 255 / 0.42); box-shadow: none; }
.eg-bar[data-dark] .eg-back { background: rgb(255 255 255 / 0.12); }
.eg-steps .lg-drop {
  position: absolute; z-index: 0; left: 0; top: 50%; height: 44px; margin-top: -22px; width: var(--drop-w, 0px); border-radius: 22px; pointer-events: none;
  transform: translateX(var(--drop-x, 0px)) scale(calc(var(--drop-sx, 1) * var(--drop-swell)), calc(var(--drop-sy, 1) * var(--drop-swell)));
  background: linear-gradient(180deg, rgb(255 255 255 / calc(0.35 * var(--drop-sheen))), rgb(255 255 255 / 0) 50%), rgb(255 255 255 / 0.05);
  -webkit-backdrop-filter: saturate(1.6) brightness(1.05); backdrop-filter: saturate(1.6) brightness(1.05);
  box-shadow: inset 0 1px 0.5px rgb(255 255 255 / 1), inset 0 -1px 0.5px rgb(255 255 255 / 0.75), inset 0 0 0 0.5px rgb(0 0 0 / 0.16),
    inset 0 -5px 6px -4px rgb(255 255 255 / 0.9), inset 0 0 10px rgb(0 0 0 / 0.12), 0 1px 1.5px rgb(0 0 0 / 0.08), 0 6px 14px -8px rgb(0 0 0 / 0.22);
  opacity: 0;
  transition: opacity var(--spring-settle-ms) var(--spring-settle), box-shadow var(--spring-settle-ms) var(--spring-settle),
    --drop-sheen var(--spring-settle-ms) var(--spring-settle), --drop-swell var(--spring-morph-ms) var(--spring-morph);
}
.eg-steps .lg-drop.is-on { opacity: 1; }
.eg-steps[data-dark] .lg-drop {
  background: linear-gradient(180deg, rgb(255 255 255 / calc(0.12 * var(--drop-sheen))), rgb(255 255 255 / 0) 50%), rgb(255 255 255 / 0.06);
  box-shadow: inset 0 1px 0.5px rgb(255 255 255 / 0.5), inset 0 -1px 0.5px rgb(255 255 255 / 0.22), inset 0 0 0 0.5px rgb(255 255 255 / 0.18),
    inset 0 -5px 6px -4px rgb(255 255 255 / 0.16), inset 0 0 10px rgb(255 255 255 / 0.1), 0 1px 1.5px rgb(0 0 0 / 0.3), 0 6px 14px -8px rgb(0 0 0 / 0.55);
}
.eg-steps .lg-drop.is-pressed { --drop-swell: 1.1; --drop-sheen: 0; }
.eg-steps .eg-steps__item { z-index: 1; }
html.lg-inactive .eg-bar { --lg-rim-a: 0.4; --lg-sat: 1.15; --lg-shadow-a: 0.06; }
@media (prefers-reduced-transparency: reduce) { .eg-bar { --lg-fill-a: 0.88; --lg-blur: 30px; } .eg-bar[data-dark] { --lg-fill-a: 0.9; } }
@media (prefers-contrast: more) {
  .eg-bar { box-shadow: none; }
  .eg-bar::before { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgb(var(--lg-fill)); box-shadow: none; }
  .eg-bar::after { padding: 2px; background: var(--eg-ink); }
  .eg-steps .lg-drop { -webkit-backdrop-filter: none; backdrop-filter: none; background: none; box-shadow: inset 0 0 0 2px var(--eg-ink); }
}
@media (forced-colors: active) {
  .eg-bar::before { -webkit-backdrop-filter: none; backdrop-filter: none; background: Canvas; }
  .eg-bar::after { background: CanvasText; }
  .eg-steps .lg-drop { outline: 2px solid CanvasText; outline-offset: -2px; }
}
@media (prefers-reduced-motion: reduce) { .eg-bar.is-pressed { --lg-flex: 1; } .eg-steps .lg-drop.is-pressed { --drop-swell: 1; } }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .eg-bar { --lg-fill-a: 0.92; } }

/* Buttons, the WhatsApp button and the scrubber's knob keep the site's own flat look (site.css): Liquid Glass is optics
   (it bends, tints, blurs and lights what is behind it), never a 3D object (the founder, 2026-11-24, removing the 3D
   buttons of 2026-11-23). Glass stays on what floats over the content: the header capsule, its drop and the menu. */
