/* Liquid glass + shader effect layers (see tools/fx/ and DESIGN notes in README).
   Glass = frosted blur + specular rim; Chromium also gets SVG refraction (html.lg-refract, set in main.js).
   Look follows dashersw/liquid-glass-js, but in CSS: that lib refracts an html2canvas snapshot, which can't show the hero video. */
:root { --lg-bg: linear-gradient(135deg, rgba(255,255,255,.11), rgba(255,255,255,.03) 45%, rgba(255,255,255,.06)); }
.nav.scrolled,
.hero-stats > div,
.btn-ghost,
.ai-section .auto-item,
.cta-box,
.field input, .field textarea, .field select {
  background: var(--lg-bg);
  -webkit-backdrop-filter: blur(14px) saturate(170%);
  backdrop-filter: blur(14px) saturate(170%);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.28), inset 0 -1px 0 rgba(255,255,255,.05), 0 12px 32px -12px rgba(0,0,0,.55);
}
.nav.scrolled { background: linear-gradient(135deg, rgba(14,18,26,.62), rgba(14,18,26,.42)); }
.hero-stats { background: transparent; border-color: transparent; gap: 12px; overflow: visible; }
.hero-stats > div { border-radius: var(--radius); }
.cta-box { background: rgba(10,13,20,.35); }
.cta-box::before { display: none; }
.field input, .field textarea, .field select { background: rgba(8,11,16,.55); }
html.lg-refract .hero-stats > div,
html.lg-refract .nav.scrolled,
html.lg-refract .ai-section .auto-item { backdrop-filter: url(#lg-refract) blur(10px) saturate(170%); }
.lg-svg { position: absolute; width: 0; height: 0; }

/* ShaderGradient layer (tools/fx) */
[data-fx-gradient] { isolation: isolate; }
.fx-gradient { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 1.6s; }
.fx-on > .fx-gradient { opacity: 1; }
.ai-section > .fx-gradient { bottom: auto; height: min(1100px, 100%); -webkit-mask-image: linear-gradient(180deg, transparent, #000 14%, #000 70%, transparent); mask-image: linear-gradient(180deg, transparent, #000 14%, #000 70%, transparent); }
.ai-section > .fx-gradient::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,8,12,.72), rgba(6,8,12,.25) 55%, rgba(6,8,12,.1)); }
.cta-box > .fx-gradient { opacity: 0; }
.cta-box.fx-on > .fx-gradient { opacity: .85; }
.cta-box > .fx-gradient::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,8,12,.55), rgba(6,8,12,.2)); }

/* Hero logo mark: white chrome via CSS (instant, works on iOS). The WebGL liquid-metal shader was dropped:
   dark on iPhone, ~1-4 s late, edge artefacts on desktop (Felix 2026-10-26). Old version: git show 31af7cb */
.hb-mark { position: relative; display: block; width: 1.2em; aspect-ratio: 234 / 207; flex: none; }
.hero-brand .hb-mark img { width: 100%; height: 100%; }
.hb-mark::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  -webkit-mask: url(../logo-mark.svg) center / contain no-repeat; mask: url(../logo-mark.svg) center / contain no-repeat;
  background: linear-gradient(115deg, #fff 0%, #fff 34%, #d4e3f0 42%, #fff 48%, #9fb3c4 53%, #fff 60%, #fff 100%) 0 0 / 300% 100%;
  filter: drop-shadow(0 0 14px rgba(46,230,197,.35));
  animation: hbSheen 4.5s ease-in-out infinite; }
@keyframes hbSheen { 0% { background-position: 100% 0; } 60%, 100% { background-position: 0 0; } }
@supports ((-webkit-mask-image: url(x)) or (mask-image: url(x))) { .hero-brand .hb-mark img { opacity: 0; } }
/* Hero logo is brush-drawn on load (assets/js/logo-brush.js, Felix 2026-11-13): an animated image that plays once, then the static mark fades in.
   <html class="brush"> is set in the page head unless the visitor prefers reduced motion; "brush-done" ends or skips the intro. */
.hero-brand .hb-mark img.brush-img { display: none; }
html.brush .hero-brand .hb-mark img.brush-img { display: block; position: absolute; inset: 0; width: 100%; height: 100%; opacity: 1; pointer-events: none;
  filter: drop-shadow(0 0 14px rgba(46,230,197,.35)); transition: opacity .3s; }
html.brush .hb-mark[data-brush]::after { opacity: 0; }
html.brush.brush-done .hb-mark[data-brush]::after { opacity: 1; transition: opacity .3s; }
html.brush.brush-done .hero-brand .hb-mark img.brush-img { opacity: 0; }
@media (prefers-reduced-motion: reduce) { .hb-mark::after { animation: none; background-position: 50% 0; } }

@media (max-width: 760px) {
  .hero-stats { gap: 8px; }
  .ai-section > .fx-gradient::after { background: rgba(6,8,12,.55); }
}
@media (prefers-reduced-transparency: reduce) {
  .nav.scrolled, .hero-stats > div, .btn-ghost, .ai-section .auto-item, .cta-box { -webkit-backdrop-filter: none; backdrop-filter: none; background: var(--surface); }
}
