/* =========================================================================
   Liquid Glass design system
   Layers (back to front):
     1. .ambient   slow drifting light sources (OIII teal, Ha red, violet)
     2. stars.js   canvas starfield + meteors + rocket
     3. .glass     frosted, refracting surfaces with a specular rim and a
                   pointer-following sheen
   Glass parameters are registered custom properties so they can be
   animated by scroll (nav, scroll-driven reveals) without layout work.
   ========================================================================= */

@property --g-blur  { syntax: '<length>'; inherits: false; initial-value: 20px; }
@property --g-tint  { syntax: '<number>'; inherits: false; initial-value: 0.06; }
@property --g-dark  { syntax: '<number>'; inherits: false; initial-value: 0.22; }
@property --sheen   { syntax: '<number>'; inherits: false; initial-value: 0; }

:root {
  --bg: #040506;
  --ink: #f2f5f4;
  --ink-2: rgba(242, 245, 244, .68);
  --ink-3: rgba(242, 245, 244, .44);
  --hair: rgba(255, 255, 255, .10);

  --oiii: #2fd4c4;
  --ha: #ff5a6e;
  --violet: #8d7dff;

  --serif: "Instrument Serif", "Iowan Old Style", "Times New Roman", serif;
  --sans: "Inter Tight", "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  --r-xl: 34px;
  --r-lg: 26px;
  --r-md: 20px;
  --r-sm: 14px;
  --max: 1200px;

  --ease: cubic-bezier(.22, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.45, .55, 1);

  color-scheme: dark;
  interpolate-size: allow-keywords;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
::selection { background: rgba(47, 212, 196, .35); color: #fff; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0; }
:focus-visible { outline: 2px solid rgba(255, 255, 255, .85); outline-offset: 3px; border-radius: 10px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
@media (max-width: 720px) { .wrap { padding: 0 16px; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 1. ambient light ---------- */
.ambient { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.ambient i { position: absolute; width: 80vmax; height: 80vmax; border-radius: 50%; will-change: transform; }
.ambient i:nth-child(1) { left: -30vmax; top: -38vmax; background: radial-gradient(closest-side, rgba(47, 212, 196, .22), transparent 72%); animation: drift-a 40s ease-in-out infinite alternate; }
.ambient i:nth-child(2) { right: -36vmax; top: 6vh; background: radial-gradient(closest-side, rgba(255, 90, 110, .16), transparent 72%); animation: drift-b 52s ease-in-out infinite alternate; }
.ambient i:nth-child(3) { left: 12vw; bottom: -55vmax; background: radial-gradient(closest-side, rgba(141, 125, 255, .14), transparent 72%); animation: drift-c 60s ease-in-out infinite alternate; }
.ambient::after { content: ""; position: absolute; inset: 0; background: radial-gradient(130% 90% at 50% 0%, transparent 45%, rgba(0, 0, 0, .7) 100%); }
@keyframes drift-a { to { transform: translate3d(14vw, 10vh, 0) scale(1.1); } }
@keyframes drift-b { to { transform: translate3d(-12vw, 18vh, 0) scale(.92); } }
@keyframes drift-c { to { transform: translate3d(-10vw, -12vh, 0) scale(1.08); } }

/* film grain keeps large dark gradients from banding */
.grain { position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .05; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------- 3. glass ---------- */
.glass {
  --g-r: var(--r-lg);
  position: relative;
  isolation: isolate;
  border-radius: var(--g-r);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, calc(var(--g-tint) * 1.7)) 0%, rgba(255, 255, 255, calc(var(--g-tint) * .55)) 55%, rgba(255, 255, 255, calc(var(--g-tint) * .9)) 100%),
    linear-gradient(rgba(6, 8, 10, var(--g-dark)), rgba(6, 8, 10, var(--g-dark)));
  -webkit-backdrop-filter: blur(var(--g-blur)) saturate(185%) brightness(1.05);
  backdrop-filter: blur(var(--g-blur)) saturate(185%) brightness(1.05);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .22),          /* top specular line */
    inset 0 -1px 0 rgba(255, 255, 255, .05),
    inset 0 0 22px -10px rgba(255, 255, 255, .22),   /* inner volume */
    0 1px 1px rgba(0, 0, 0, .35),
    0 30px 70px -30px rgba(0, 0, 0, .8);             /* depth */
}
/* rim light: bright top-left and bottom-right edge, dark in between */
.glass::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .10) 28%, rgba(255, 255, 255, .03) 55%, rgba(255, 255, 255, .26) 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);
}
/* sheen that follows the pointer (set by glass.js) */
.glass::after {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background:
    radial-gradient(380px circle at var(--mx, 50%) var(--my, -30%), rgba(255, 255, 255, calc(.11 * var(--sheen))), transparent 55%),
    radial-gradient(120% 60% at 50% -10%, rgba(255, 255, 255, .07), transparent 60%);
  transition: --sheen .5s var(--ease);
}
.glass.is-lit { --sheen: 1; }

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass { --g-dark: .78; }
}

/* glass chips: inside a glass parent backdrop blur would be clipped, so
   they use tint + rim only */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font: 500 12.5px/1 var(--sans); letter-spacing: -.005em; color: var(--ink);
  padding: 7px 12px; border-radius: 999px; white-space: nowrap;
  background: linear-gradient(180deg, rgba(255, 255, 255, .13), rgba(255, 255, 255, .05));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14), inset 0 1px 0 rgba(255, 255, 255, .18), 0 4px 12px -6px rgba(0, 0, 0, .6);
  -webkit-backdrop-filter: blur(12px) saturate(160%);
  backdrop-filter: blur(12px) saturate(160%);
}
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--oiii); box-shadow: 0 0 10px var(--oiii); }
.chip .dot.ha { background: var(--ha); box-shadow: 0 0 10px var(--ha); }

/* ---------- type ---------- */
.display {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(52px, 9.2vw, 120px); line-height: .9; letter-spacing: -.03em;
  margin: 0; text-wrap: balance;
  background: linear-gradient(180deg, #fff 35%, rgba(255, 255, 255, .62));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-bottom: .06em;
}
.title {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(40px, 5.8vw, 76px); line-height: .95; letter-spacing: -.025em;
  margin: 0 0 18px; text-wrap: balance;
}
.title .soft, .display .soft { color: var(--ink-3); -webkit-text-fill-color: rgba(242, 245, 244, .42); }
.kicker { display: inline-block; font: 500 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 18px; }
.kicker::before { content: "// "; color: var(--oiii); }
.lead { font-size: clamp(16px, 1.35vw, 18.5px); line-height: 1.6; color: var(--ink-2); max-width: 36em; text-wrap: pretty; }
.mono { font-family: var(--mono); font-size: .88em; }
code { font-family: var(--mono); font-size: .86em; color: var(--ink); padding: 2px 7px; border-radius: 7px; background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }

/* ---------- buttons ---------- */
.btn {
  --h: 48px;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 24px; border: 0; border-radius: 999px; cursor: pointer;
  font: 600 15px/1 var(--sans); letter-spacing: -.01em; white-space: nowrap; color: var(--ink);
  transition: transform .45s var(--spring), box-shadow .4s var(--ease), background .4s var(--ease), color .3s;
  -webkit-tap-highlight-color: transparent;
}
.btn.glass { --g-r: 999px; --g-tint: .08; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.96); transition-duration: .12s; }
.btn-sm { --h: 38px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-light {
  color: #0a0c0d;
  background: linear-gradient(180deg, #ffffff 0%, #e9eeec 100%);
  box-shadow: inset 0 1px 0 #fff, inset 0 -3px 8px rgba(0, 0, 0, .08), 0 0 0 1px rgba(255, 255, 255, .5), 0 10px 30px -10px rgba(255, 255, 255, .35);
}
.btn-light:hover { box-shadow: inset 0 1px 0 #fff, inset 0 -3px 8px rgba(0, 0, 0, .08), 0 0 0 1px rgba(255, 255, 255, .7), 0 14px 40px -8px rgba(255, 255, 255, .45), 0 0 60px -10px rgba(47, 212, 196, .45); }
.btn-text { padding: 0 10px; color: var(--ink); }
.btn-text:hover { color: #fff; }
.btn .ico { width: 15px; height: 15px; flex: none; transition: transform .45s var(--spring); }
.btn:hover .ico-arrow { transform: translate(2px, -2px); }
.btn:hover .ico-play { transform: translateX(3px); }

/* ---------- header / nav (blur, tint and size follow --sp) ---------- */
.site-head { --sp: 0; position: fixed; top: 14px; left: 0; right: 0; z-index: 60; pointer-events: none; }
.site-head .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.site-head .glass { pointer-events: auto; }
.brand {
  --g-r: 999px; --g-blur: calc(10px + 14px * var(--sp)); --g-dark: calc(.10 + .35 * var(--sp));
  justify-self: start; display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 16px 0 5px;
  font: 600 15px/1 var(--sans); letter-spacing: -.01em;
}
.brand-mark { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font: italic 400 21px/1 var(--serif);
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .35), rgba(255, 255, 255, .06) 60%), rgba(255, 255, 255, .04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22), inset 0 -6px 12px rgba(47, 212, 196, .18); }
.brand b { font-weight: 600; color: var(--ink-2); }
.nav {
  --g-r: 999px;
  --g-blur: calc(10px + 16px * var(--sp));
  --g-tint: calc(.04 + .05 * var(--sp));
  --g-dark: calc(.08 + .40 * var(--sp));
  display: flex; align-items: center; gap: 2px; padding: 5px;
  transform: translateY(calc(var(--sp) * -4px)) scale(calc(1 - var(--sp) * .02));
}
.nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0 4px 0 0; }
.nav ul a { display: block; padding: 9px 15px; border-radius: 999px; font: 500 14px/1 var(--sans); color: var(--ink-2); transition: color .3s, background .3s; }
.nav ul a:hover { color: var(--ink); background: rgba(255, 255, 255, .06); }
.nav ul a[aria-current=page] { color: var(--ink); background: rgba(255, 255, 255, .10); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), inset 0 0 0 1px rgba(255, 255, 255, .06); }
.menu-btn { --g-r: 999px; justify-self: end; width: 46px; height: 46px; display: none; place-items: center; border: 0; color: var(--ink); cursor: pointer; }
.menu-btn span { position: absolute; left: 15px; right: 15px; height: 1.5px; border-radius: 2px; background: currentColor; transition: transform .45s var(--spring), top .45s var(--spring); }
.menu-btn span:nth-child(1) { top: 19px; } .menu-btn span:nth-child(2) { top: 26px; }
.menu-open .menu-btn span:nth-child(1) { top: 22.5px; transform: rotate(45deg); }
.menu-open .menu-btn span:nth-child(2) { top: 22.5px; transform: rotate(-45deg); }
.sheet {
  --g-r: var(--r-lg); --g-blur: 30px; --g-dark: .55;
  position: fixed; top: 72px; left: 12px; right: 12px; z-index: 59; padding: 10px;
  opacity: 0; transform: translateY(-10px) scale(.97); transform-origin: top center; pointer-events: none;
  transition: opacity .35s var(--ease), transform .5s var(--spring);
}
.menu-open .sheet { opacity: 1; transform: none; pointer-events: auto; }
.sheet a { display: flex; justify-content: space-between; align-items: center; padding: 16px 16px; border-radius: 16px; font: italic 400 30px/1 var(--serif); }
.sheet a:hover, .sheet a[aria-current=page] { background: rgba(255, 255, 255, .07); }
.sheet a small { font: 500 12px/1 var(--mono); color: var(--ink-3); font-style: normal; letter-spacing: .1em; text-transform: uppercase; }

@media (max-width: 820px) {
  .site-head .wrap { grid-template-columns: auto 1fr auto; }
  .nav { justify-self: end; }
  .nav ul { display: none; }
  .menu-btn { display: grid; }
  .brand b { display: none; }
}
@media (min-width: 821px) { .sheet { display: none; } }

/* ---------- layout ---------- */
section { position: relative; padding: clamp(80px, 11vw, 150px) 0; }
.section-head { max-width: 720px; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .lead { margin: 0 auto; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 960px) { .grid-3 { grid-template-columns: 1fr; } }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ---------- hero (copy fades/blurs out with --hp) ---------- */
.hero { --hp: 0; position: relative; isolation: isolate; min-height: 100svh; display: grid; align-items: center; padding: 130px 0 70px; }
.hero-copy { transform: translate3d(0, calc(var(--hp) * -70px), 0); opacity: calc(1 - var(--hp) * 1.15); filter: blur(calc(var(--hp) * 10px)); will-change: transform, opacity, filter; }
.hero.center { text-align: center; }
.hero.center .lead { margin: 22px auto 0; }
.hero .cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 34px; align-items: center; }
.hero.center .cta { justify-content: center; }

.announce {
  --g-r: 999px; --g-tint: .05;
  display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; margin-bottom: 26px;
  font: 500 13.5px/1 var(--sans); color: var(--ink-2); transition: color .3s;
}
.announce:hover { color: var(--ink); }
.announce .new { padding: 6px 10px; border-radius: 999px; background: linear-gradient(#fff, #e6ebe9); color: #0a0c0d; font-weight: 600; font-size: 12px; box-shadow: inset 0 -2px 4px rgba(0, 0, 0, .1); }
.announce .ico { width: 13px; height: 13px; transition: transform .45s var(--spring); }
.announce:hover .ico { transform: translateX(3px); }

/* glass sphere behind the home hero (reference: the floating bubble) */
.sphere-wrap { position: absolute; left: 50%; top: 66%; width: min(78vw, 720px); aspect-ratio: 1; z-index: -1; pointer-events: none;
  transform: translate3d(calc(-50% + var(--px, 0) * 24px), calc(-50% + var(--py, 0) * 24px + var(--hp) * 120px), 0) scale(calc(1 + var(--hp) * .18)); }
.sphere {
  position: absolute; inset: 0; border-radius: 50%;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, .20), transparent 16%),
    radial-gradient(circle at 74% 78%, rgba(255, 90, 110, .22), transparent 42%),
    radial-gradient(circle at 22% 72%, rgba(47, 212, 196, .22), transparent 44%),
    radial-gradient(circle at 60% 40%, rgba(141, 125, 255, .12), transparent 46%),
    radial-gradient(circle, rgba(4, 6, 8, .25) 56%, rgba(255, 255, 255, .06) 69%, transparent 71%);
  -webkit-backdrop-filter: blur(4px) brightness(1.25) saturate(1.6);
  backdrop-filter: blur(4px) brightness(1.25) saturate(1.6);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, .10),
    inset 18px 26px 70px rgba(255, 255, 255, .08),
    inset -40px -50px 110px rgba(47, 212, 196, .13),
    inset 40px -20px 110px rgba(255, 90, 110, .12),
    0 80px 200px -40px rgba(0, 0, 0, .95);
  animation: float 16s ease-in-out infinite;
}
.sphere::before { /* iridescent soap-film rim */
  content: ""; position: absolute; inset: -1px; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(47, 212, 196, .55), rgba(141, 125, 255, .45), rgba(255, 90, 110, .55), rgba(255, 196, 120, .4), rgba(47, 212, 196, .55));
  -webkit-mask: radial-gradient(circle, transparent 68.6%, #000 69.6%, #000 70.3%, transparent 71.2%);
          mask: radial-gradient(circle, transparent 68.6%, #000 69.6%, #000 70.3%, transparent 71.2%);
  filter: blur(1.5px); animation: spin 36s linear infinite;
}
.sphere::after { /* curved highlight */
  content: ""; position: absolute; inset: 9%; border-radius: 50%;
  background: radial-gradient(60% 40% at 32% 18%, rgba(255, 255, 255, .22), transparent 70%);
  -webkit-mask: radial-gradient(circle at 50% 55%, transparent 58%, #000 70%);
          mask: radial-gradient(circle at 50% 55%, transparent 58%, #000 70%);
}
@keyframes float { 50% { transform: translateY(-18px) rotate(3deg); } }
@keyframes spin { to { transform: rotate(1turn); } }

/* stat tiles */
.stats { display: flex; justify-content: center; gap: 14px; margin-top: 48px; flex-wrap: wrap; }
.stat { --g-r: var(--r-md); width: 210px; padding: 18px 18px 16px; text-align: left; transition: transform .6s var(--spring); }
.stat:hover { transform: translateY(-4px); }
.stat svg { width: 22px; height: 22px; color: var(--ink); opacity: .9; }
.stat .num { font: italic 400 40px/1 var(--serif); letter-spacing: -.02em; margin: 18px 0 6px; }
.stat .lbl { font-size: 13px; color: var(--ink-2); }

/* product-name marquee */
.marquee-label { --g-r: 999px; display: inline-block; padding: 7px 14px; font: 500 12.5px/1 var(--sans); color: var(--ink-2); }
.marquee { margin-top: 18px; overflow: hidden; -webkit-mask: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); mask: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 36s linear infinite; }
.marquee-track span { font: italic 400 34px/1.2 var(--serif); color: rgba(242, 245, 244, .7); letter-spacing: -.01em; white-space: nowrap; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- scroll reveal (native scroll-driven, JS fallback) ---------- */
@supports (animation-timeline: view()) {
  [data-reveal] { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
  .glass[data-reveal] { animation-name: reveal, glass-in; }
  [data-parallax] { animation: parallax linear both; animation-timeline: view(); animation-range: cover; }
}
@keyframes reveal { from { opacity: 0; translate: 0 48px; scale: .97; } to { opacity: 1; translate: 0 0; scale: 1; } }
@keyframes glass-in { from { --g-blur: 0px; --g-tint: 0; --g-dark: 0; } to { --g-blur: 20px; --g-tint: .06; --g-dark: .22; } }
@keyframes parallax { from { transform: translate3d(0, -6%, 0) scale(1.12); } to { transform: translate3d(0, 6%, 0) scale(1.02); } }
.no-sda [data-reveal] { opacity: 0; translate: 0 40px; transition: opacity 1s var(--ease), translate 1.1s var(--ease), --g-blur 1.2s var(--ease); --g-blur: 0px; }
.no-sda [data-reveal].is-in { opacity: 1; translate: 0 0; --g-blur: 20px; }
[data-delay="1"] { animation-range: entry 8% entry 65% !important; transition-delay: .08s !important; }
[data-delay="2"] { animation-range: entry 16% entry 75% !important; transition-delay: .16s !important; }

/* ---------- product cards (home) ---------- */
.pcard { --g-r: var(--r-xl); display: flex; flex-direction: column; padding: 10px; transition: transform .7s var(--spring); }
.pcard:hover { transform: translateY(-8px); }
.pcard .media { position: relative; overflow: hidden; border-radius: calc(var(--r-xl) - 10px); aspect-ratio: 16 / 10; background: #000; }
.pcard .media > img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.pcard:hover .media > img { transform: scale(1.06); }
.pcard .media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0, 0, 0, .55)); pointer-events: none; }
.media-chips { position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 1; display: flex; flex-wrap: wrap; gap: 6px; }
.media-tiles { position: absolute; inset: 0; display: grid; place-items: center;
  background: radial-gradient(60% 70% at 30% 30%, rgba(47, 212, 196, .22), transparent 70%), radial-gradient(60% 70% at 75% 75%, rgba(255, 90, 110, .2), transparent 70%), #07090b; }
.media-tiles > div { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; padding: 20px; }
.tile { width: 82px; height: 82px; border-radius: 24px; display: grid; place-items: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .04));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), inset 0 1px 0 rgba(255, 255, 255, .3), 0 16px 30px -12px rgba(0, 0, 0, .8);
  -webkit-backdrop-filter: blur(14px) saturate(170%); backdrop-filter: blur(14px) saturate(170%);
  transition: transform .6s var(--spring); }
.tile img { width: 54px; height: 54px; filter: drop-shadow(0 6px 14px rgba(0, 0, 0, .6)); }
.pcard:hover .tile:nth-child(odd) { transform: translateY(-6px) rotate(-4deg); }
.pcard:hover .tile:nth-child(even) { transform: translateY(4px) rotate(4deg); }
.pcard .body { padding: 22px 18px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pcard .row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.pcard h3 { margin: 0; font: italic 400 40px/1 var(--serif); letter-spacing: -.02em; }
.pcard .kind { font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.pcard p { color: var(--ink-2); font-size: 15.5px; flex: 1; }
.pcard .go { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; margin-top: 6px; }
.pcard .go .ico { width: 15px; height: 15px; transition: transform .45s var(--spring); }
.pcard:hover .go .ico { transform: translate(3px, -3px); }
.badge { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 999px; font: 600 12px/1 var(--sans); white-space: nowrap;
  background: rgba(255, 255, 255, .07); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); }
.badge.oiii { color: #8ff0e6; box-shadow: inset 0 0 0 1px rgba(47, 212, 196, .4); background: rgba(47, 212, 196, .1); }
.badge.ha { color: #ffb0ba; box-shadow: inset 0 0 0 1px rgba(255, 90, 110, .4); background: rgba(255, 90, 110, .1); }

/* ---------- about ---------- */
.about { --g-r: var(--r-xl); display: grid; grid-template-columns: 300px 1fr; gap: clamp(24px, 4vw, 56px); padding: clamp(18px, 3vw, 36px); align-items: center; }
@media (max-width: 860px) { .about { grid-template-columns: 1fr; } }
.portrait { aspect-ratio: 4 / 5; border-radius: var(--r-lg); display: grid; place-items: center; text-align: center; color: var(--ink-3); font-size: 13px; padding: 20px;
  background: radial-gradient(70% 60% at 50% 30%, rgba(47, 212, 196, .2), transparent 70%), radial-gradient(60% 50% at 70% 90%, rgba(255, 90, 110, .18), transparent 70%), rgba(255, 255, 255, .03);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.about .lead + .lead { margin-top: 14px; }
.about strong { color: var(--ink); font-weight: 600; }
.links { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 28px; }
.shots div { aspect-ratio: 4 / 3; border-radius: var(--r-sm); display: grid; place-items: center; font-size: 12px; color: var(--ink-3); background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }

/* ---------- breadcrumbs ---------- */
.crumbs { display: inline-flex; gap: 8px; align-items: center; font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 22px; }
.crumbs a:hover { color: var(--ink); }

/* ---------- product hero (two columns) ---------- */
.hero-split { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (max-width: 960px) { .hero-split { grid-template-columns: 1fr; } }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }

/* ---------- before / after ---------- */
.frame { --g-r: var(--r-xl); padding: 9px; }
.ba { position: relative; overflow: hidden; border-radius: calc(var(--r-xl) - 9px); background: #000; user-select: none; touch-action: pan-y; }
.ba img { width: 100%; height: auto; }
.ba .after { position: absolute; inset: 0; clip-path: inset(0 0 0 50%); }
.ba .after img { width: 100%; height: 100%; object-fit: cover; }
.ba .handle { position: absolute; top: 0; bottom: 0; left: 50%; width: 2px; margin-left: -1px; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, .95) 12%, rgba(255, 255, 255, .95) 88%, transparent);
  box-shadow: 0 0 18px rgba(255, 255, 255, .6); }
.ba .knob { position: absolute; top: 78%; left: 50%; width: 54px; height: 54px; margin: -27px 0 0 -27px; border-radius: 50%; display: grid; place-items: center; pointer-events: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, .08));
  -webkit-backdrop-filter: blur(8px) saturate(180%) brightness(1.2); backdrop-filter: blur(8px) saturate(180%) brightness(1.2);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .45), inset 0 1px 0 rgba(255, 255, 255, .7), inset 0 -8px 16px rgba(0, 0, 0, .15), 0 10px 30px -6px rgba(0, 0, 0, .7);
  transition: transform .4s var(--spring); }
.ba .knob svg { width: 22px; height: 22px; color: #fff; }
.ba:hover .knob, .ba:focus-within .knob { transform: scale(1.12); }
.ba .tag { position: absolute; top: 14px; z-index: 1; pointer-events: none; }
.ba .tag.l { left: 14px; } .ba .tag.r { right: 14px; }
.ba input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; }
.caption { font-size: 13px; color: var(--ink-3); margin-top: 14px; padding: 0 6px; }

/* ---------- stage: glass panels floating over a photo (reference 2) ---------- */
.stage { overflow: hidden; }
.stage-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  -webkit-mask: linear-gradient(180deg, transparent, #000 18%, #000 78%, transparent); mask: linear-gradient(180deg, transparent, #000 18%, #000 78%, transparent); }
.stage-bg img { position: absolute; left: 50%; top: 50%; width: min(1500px, 140vw); max-width: none; translate: -50% -42%; opacity: .9; filter: saturate(1.15) contrast(1.05); }
.stage-panels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: clamp(140px, 22vw, 300px); }
@media (max-width: 960px) { .stage-panels { grid-template-columns: 1fr; margin-top: 120px; } }
.panel { --g-r: var(--r-lg); --g-blur: 26px; --g-dark: .32; padding: 18px 20px 24px; min-height: 290px; display: flex; flex-direction: column; }
.panel-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: auto; }
.icon-tile { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; flex: none;
  background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .05)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16), inset 0 1px 0 rgba(255, 255, 255, .25); }
.icon-tile svg { width: 20px; height: 20px; }
.panel-chips { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }
.panel .n { font: italic 400 15px/1 var(--serif); color: var(--ink-3); margin: 34px 0 8px; }
.panel h3 { margin: 0 0 10px; font: italic 400 30px/1.05 var(--serif); letter-spacing: -.015em; }
.panel p { color: var(--ink-2); font-size: 15px; }

/* ---------- segmented control ---------- */
.seg { --g-r: 999px; position: relative; display: inline-flex; gap: 2px; padding: 5px; max-width: 100%; overflow-x: auto; scrollbar-width: none; margin-bottom: 22px; }
.seg::-webkit-scrollbar { display: none; }
.seg button { position: relative; z-index: 1; border: 0; background: none; cursor: pointer; white-space: nowrap; padding: 10px 18px; border-radius: 999px; font: 500 14px/1 var(--sans); color: var(--ink-2); transition: color .35s var(--ease); }
.seg button:hover { color: var(--ink); }
.seg button[aria-selected=true] { color: #0a0c0d; }
.seg-ind { position: absolute; z-index: 0; top: 5px; bottom: 5px; left: 0; width: 0; border-radius: 999px; pointer-events: none;
  background: linear-gradient(180deg, #fff, #e6ebe9); box-shadow: inset 0 -2px 6px rgba(0, 0, 0, .1), 0 6px 18px -6px rgba(255, 255, 255, .4);
  transition: transform .55s var(--spring), width .55s var(--spring); }

.gallery { display: grid; grid-template-columns: 1.55fr 1fr; gap: 18px; align-items: start; }
@media (max-width: 960px) { .gallery { grid-template-columns: 1fr; } }
.art-card { --g-r: var(--r-xl); padding: 9px 9px 22px; }
.art-card img { width: 100%; border-radius: calc(var(--r-xl) - 9px); aspect-ratio: 1; object-fit: cover; background: #000; }
.art-card h3 { margin: 20px 12px 8px; font: italic 400 28px/1.05 var(--serif); }
.art-card p { margin: 0 12px; color: var(--ink-2); font-size: 14.5px; }
.fade-swap { transition: opacity .35s var(--ease), filter .35s var(--ease); }
.fade-swap.swapping { opacity: 0; filter: blur(8px); }

/* ---------- parameters ---------- */
.params { display: grid; gap: 12px; }
.param { --g-r: var(--r-lg); display: grid; grid-template-columns: 240px 1fr 260px; gap: 28px; align-items: center; padding: 22px 26px; }
@media (max-width: 960px) { .param { grid-template-columns: 1fr; gap: 12px; } }
.param .name { font: italic 400 30px/1 var(--serif); letter-spacing: -.01em; }
.param .range { font: 500 12px/1 var(--mono); color: var(--ink-3); letter-spacing: .06em; margin-top: 8px; }
.param p { color: var(--ink-2); font-size: 15px; }
.meter { position: relative; height: 34px; }
.meter .rail { position: absolute; left: 0; right: 0; top: 15px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); }
.meter .fill { position: absolute; left: 0; top: 15px; height: 4px; border-radius: 4px; width: var(--v); background: linear-gradient(90deg, var(--oiii), #9ff3ea); box-shadow: 0 0 14px rgba(47, 212, 196, .6); }
.meter .thumb { position: absolute; top: 5px; left: var(--v); width: 24px; height: 24px; margin-left: -12px; border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .95), rgba(230, 236, 234, .9)); box-shadow: inset 0 -2px 4px rgba(0, 0, 0, .12), 0 4px 12px rgba(0, 0, 0, .6); }
.meter .ticks { position: absolute; left: 0; right: 0; top: 26px; display: flex; justify-content: space-between; font: 500 10.5px/1 var(--mono); color: var(--ink-3); }
.toggle { width: 52px; height: 30px; border-radius: 999px; position: relative; background: rgba(47, 212, 196, .85); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25), 0 0 18px rgba(47, 212, 196, .35); }
.toggle::after { content: ""; position: absolute; top: 3px; right: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); }

/* ---------- install ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: s; }
.step { --g-r: var(--r-md); counter-increment: s; display: grid; grid-template-columns: 52px 1fr; gap: 16px; padding: 18px 20px; align-items: start; }
.step::marker { content: none; }
.step .num { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font: italic 400 22px/1 var(--serif);
  background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .04)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2), inset 0 1px 0 rgba(255, 255, 255, .3); }
.step .num::before { content: counter(s); }
.step b { display: block; font-weight: 600; margin: 2px 0 4px; }
.step p { color: var(--ink-2); font-size: 14.5px; }
.req { --g-r: var(--r-xl); padding: 26px 28px; }
.req h3 { margin: 0 0 8px; font: italic 400 34px/1 var(--serif); }
.req ul { list-style: none; margin: 0; padding: 0; }
.req li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--hair); font-size: 14.5px; }
.req li:last-child { border-bottom: 0; }
.req li span:first-child { color: var(--ink-3); }
.req li span:last-child { text-align: right; }
.copy { display: flex; gap: 6px; align-items: center; margin: 12px 0 2px; padding: 5px 5px 5px 14px; border-radius: 14px; background: rgba(0, 0, 0, .3); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1), inset 0 2px 6px rgba(0, 0, 0, .4); min-width: 0; }
.copy code { flex: 1; min-width: 0; background: none; box-shadow: none; padding: 0; overflow-x: auto; white-space: nowrap; font-size: 12.5px; color: #9ff3ea; scrollbar-width: none; }
.copy .btn { --h: 34px; padding: 0 14px; font-size: 13px; }

/* ---------- FAQ (smooth height via ::details-content where supported) ---------- */
.faq { display: grid; gap: 10px; max-width: 860px; }
.faq details { --g-r: var(--r-md); padding: 0 22px; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 22px 0; font-weight: 600; font-size: 16.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { position: relative; width: 30px; height: 30px; flex: none; border-radius: 50%; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .14); transition: transform .5s var(--spring), background .3s; }
.faq summary .pm::before, .faq summary .pm::after { content: ""; position: absolute; left: 9px; right: 9px; top: 14.25px; height: 1.5px; background: var(--ink); border-radius: 2px; }
.faq summary .pm::after { transform: rotate(90deg); }
.faq details[open] summary .pm { transform: rotate(45deg); background: rgba(255, 255, 255, .14); }
.faq details p { color: var(--ink-2); padding: 0 0 22px; max-width: 64em; }
.faq details::details-content { block-size: 0; overflow: hidden; opacity: 0; transition: block-size .5s var(--ease), opacity .4s var(--ease), content-visibility .5s allow-discrete; }
.faq details[open]::details-content { block-size: auto; opacity: 1; }

/* ---------- pricing ---------- */
.pricing { position: relative; display: grid; place-items: center; }
.pricing::before { content: ""; position: absolute; width: min(900px, 100%); aspect-ratio: 2 / 1; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side at 35% 50%, rgba(47, 212, 196, .28), transparent), radial-gradient(closest-side at 68% 55%, rgba(255, 90, 110, .22), transparent); filter: blur(30px); }
.price-card { --g-r: 38px; --g-blur: 30px; width: min(480px, 100%); padding: 38px 34px 30px; text-align: center; }
.price-card .tagline { display: flex; justify-content: center; margin-bottom: 18px; }
.price-card .plan { font: 500 12px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-3); }
.price-card .price { font: italic 400 96px/1 var(--serif); letter-spacing: -.04em; margin: 16px 0 4px; }
.price-card .price small { font: 500 15px/1 var(--sans); letter-spacing: 0; color: var(--ink-3); font-style: normal; margin-left: 6px; }
.price-card .sub { font-size: 13.5px; color: var(--ink-3); margin-bottom: 26px; }
.incl { list-style: none; padding: 0; margin: 0 0 28px; text-align: left; }
.incl li { display: flex; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--hair); font-size: 15px; }
.incl li:last-child { border-bottom: 0; }
.incl svg { width: 18px; height: 18px; flex: none; color: var(--oiii); filter: drop-shadow(0 0 6px rgba(47, 212, 196, .6)); }
.price-card .btn + .btn { margin-top: 10px; }
.note { font-size: 13px; color: var(--ink-3); margin-top: 18px; }
.note a { color: var(--ink); border-bottom: 1px solid var(--hair); }
.thanks { text-align: center; color: var(--ink-3); font-size: 14px; margin-top: 36px; }
.thanks b { color: var(--ink-2); font-weight: 600; }

/* ---------- kScripts ---------- */
.orbit { position: relative; aspect-ratio: 1; width: min(520px, 100%); margin: 0 auto; }
.orbit .ring { position: absolute; inset: 8%; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.orbit .ring.r2 { inset: 22%; }
.orbit .core { position: absolute; inset: 34%; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .25), transparent 40%), radial-gradient(circle at 70% 70%, rgba(255, 90, 110, .25), transparent 60%), radial-gradient(circle at 30% 75%, rgba(47, 212, 196, .3), transparent 60%), rgba(255, 255, 255, .03);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15), inset 0 -20px 40px rgba(0, 0, 0, .4), 0 30px 80px -20px rgba(0, 0, 0, .9);
  display: grid; place-items: center; font: italic 400 clamp(30px, 4vw, 46px)/1 var(--serif); }
.orbit .tile { position: absolute; width: 96px; height: 96px; border-radius: 28px; animation: bob 7s ease-in-out infinite; }
.orbit .tile img { width: 62px; height: 62px; }
.orbit .t1 { left: 4%; top: 12%; }
.orbit .t2 { right: 4%; top: 6%; animation-delay: -2s; }
.orbit .t3 { left: 10%; bottom: 4%; animation-delay: -4s; }
.orbit .t4 { right: 2%; bottom: 14%; animation-delay: -5.5s; }
@keyframes bob { 50% { transform: translateY(-14px) rotate(-3deg); } }
@media (max-width: 520px) { .orbit .tile { width: 72px; height: 72px; border-radius: 22px; } .orbit .tile img { width: 46px; height: 46px; } }

.scripts { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 860px) { .scripts { grid-template-columns: 1fr; } }
.script { --g-r: var(--r-xl); padding: 26px 26px 22px; display: flex; flex-direction: column; transition: transform .7s var(--spring); }
.script:hover { transform: translateY(-6px); }
.script-head { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.script-head .tile { width: 64px; height: 64px; border-radius: 19px; }
.script-head .tile img { width: 44px; height: 44px; }
.script-head h3 { margin: 0; font: italic 400 32px/1 var(--serif); letter-spacing: -.015em; }
.script-head .ver { font: 500 11.5px/1 var(--mono); letter-spacing: .1em; color: var(--ink-3); margin-top: 6px; display: block; }
.script > p { color: var(--ink-2); margin-bottom: 16px; }
.script ul { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 8px; }
.script li { position: relative; padding-left: 20px; font-size: 14.5px; color: var(--ink-2); }
.script li::before { content: ""; position: absolute; left: 2px; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--oiii); box-shadow: 0 0 8px var(--oiii); }
.script .foot { margin-top: auto; display: flex; flex-wrap: wrap; gap: 6px; padding-top: 16px; border-top: 1px solid var(--hair); }

.timeline { --g-r: var(--r-xl); padding: 10px 28px; max-width: 900px; }
.timeline .item { display: grid; grid-template-columns: 200px 1fr; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--hair); }
.timeline .item:last-child { border-bottom: 0; }
.timeline .item b { font: italic 400 24px/1.1 var(--serif); font-weight: 400; }
.timeline .item p { color: var(--ink-2); font-size: 15px; }
@media (max-width: 640px) { .timeline .item { grid-template-columns: 1fr; gap: 6px; } }

.cta-band { --g-r: 40px; padding: clamp(36px, 6vw, 72px) clamp(22px, 5vw, 64px); text-align: center; overflow: hidden; }
.cta-band::after { background: radial-gradient(380px circle at var(--mx, 50%) var(--my, -30%), rgba(255, 255, 255, calc(.11 * var(--sheen))), transparent 55%), radial-gradient(60% 80% at 20% 0%, rgba(47, 212, 196, .16), transparent 70%), radial-gradient(60% 80% at 85% 100%, rgba(255, 90, 110, .14), transparent 70%); }
.cta-band .lead { margin: 0 auto 30px; }

/* ---------- footer ---------- */
footer { padding: 30px 0 34px; }
.footbar { --g-r: 999px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 14px 22px; font-size: 13.5px; color: var(--ink-3); }
.footbar nav { display: flex; gap: 18px; }
.footbar nav a { color: var(--ink-2); transition: color .3s; }
.footbar nav a:hover { color: var(--ink); }
@media (max-width: 720px) { .footbar { --g-r: var(--r-lg); flex-direction: column; text-align: center; padding: 20px; } }

/* ---------- small screens: cheaper blur, tighter type ---------- */
@media (max-width: 720px) {
  .glass { --g-blur: 16px; }
  .hero { padding-top: 110px; min-height: auto; }
  .stat { width: calc(50% - 7px); padding: 14px; }
  .stat .num { font-size: 32px; margin-top: 12px; }
  .marquee-track span { font-size: 26px; }
  .param .name { font-size: 26px; }
  .price-card .price { font-size: 76px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  [data-reveal] { animation: none !important; opacity: 1 !important; translate: none !important; }
  .hero-copy { transform: none; opacity: 1; filter: none; }
  .marquee-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; }
}

/* late additions */
.art-card img { aspect-ratio: auto; }
.toggle.off { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.toggle.off::after { right: auto; left: 3px; }
.stage-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, var(--bg) 0%, rgba(4, 5, 6, .82) 22%, rgba(4, 5, 6, .35) 42%, transparent 58%); }
.nav { --g-dark: calc(.08 + .50 * var(--sp)); }
.brand { --g-dark: calc(.10 + .45 * var(--sp)); }
/* grid children must be allowed to shrink below their content (marquee, long URLs) */
.hero > .wrap, .split > *, .hero-split > *, .gallery > *, .step > div { min-width: 0; }
.hero > .wrap { width: 100%; }
.footbar > span a { color: var(--ink-2); text-decoration: underline; text-decoration-color: rgba(255,255,255,.25); text-underline-offset: 3px; transition: color .3s, text-decoration-color .3s; }
.footbar > span a:hover { color: var(--ink); text-decoration-color: currentColor; }

/* ---------- header account pill (state set by glass.js) ---------- */
.account-pill {
  --g-r: 999px; --g-blur: calc(10px + 14px * var(--sp)); --g-dark: calc(.10 + .40 * var(--sp));
  justify-self: end; display: inline-flex; align-items: center; gap: 9px; height: 46px; padding: 0 16px 0 6px;
  font: 500 14px/1 var(--sans); color: var(--ink-2); transition: color .3s;
}
.account-pill:hover { color: var(--ink); }
.account-pill .av { width: 34px; height: 34px; }
@media (max-width: 820px) { .account-pill { display: none; } }
.av {
  width: 38px; height: 38px; border-radius: 50%; flex: none; display: grid; place-items: center;
  font: italic 400 18px/1 var(--serif); color: var(--ink);
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, .32), rgba(255, 255, 255, .05) 62%),
              conic-gradient(from 200deg, rgba(47, 212, 196, .35), rgba(141, 125, 255, .3), rgba(255, 90, 110, .3), rgba(47, 212, 196, .35));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25);
}
.av svg { width: 16px; height: 16px; opacity: .8; }

/* =========================================================================
   ANALYTICS THEME (current look)
   Flat charcoal surfaces, hairline borders, one sans family, a lavender
   accent, and green / amber / red reserved for status. Supersedes the
   earlier Liquid Glass rules above (class names such as .glass are kept so
   markup does not change; they now mean "card").
   ========================================================================= */
:root {
  --bg: #141416;
  --card: #1b1b1e;
  --card-2: #232327;
  --card-3: #2c2c31;
  --line: rgba(255, 255, 255, .075);
  --line-2: rgba(255, 255, 255, .14);
  --hair: var(--line);
  --ink: #ececef;
  --ink-2: rgba(236, 236, 239, .66);
  --ink-3: rgba(236, 236, 239, .42);
  --accent: #a99cf2;
  --accent-ink: #cfc7ff;
  --accent-bg: rgba(169, 156, 242, .14);
  --oiii: #6fd09a;   /* positive / healthy */
  --ha: #ef6a62;     /* negative / at risk */
  --amber: #e8a95c;  /* watch */
  --violet: var(--accent);
  --serif: var(--sans);
  --r-xl: 20px; --r-lg: 16px; --r-md: 14px; --r-sm: 10px;
}
body { background: var(--bg); }
body *:not(i):not(em) { font-style: normal !important; }
::selection { background: rgba(169, 156, 242, .4); }
:focus-visible { outline-color: var(--accent); }
body > canvas { opacity: .55; }

/* background: a whisper of colour, no grain */
.grain { display: none; }
.ambient::after { background: none; }
.ambient i:nth-child(1) { background: radial-gradient(closest-side, rgba(169, 156, 242, .10), transparent 72%); }
.ambient i:nth-child(2) { background: radial-gradient(closest-side, rgba(111, 208, 154, .045), transparent 72%); }
.ambient i:nth-child(3) { background: radial-gradient(closest-side, rgba(239, 106, 98, .05), transparent 72%); }

/* surfaces */
.glass {
  background: var(--card);
  -webkit-backdrop-filter: none; backdrop-filter: none;
  box-shadow: inset 0 0 0 1px var(--line);
}
.glass::before, .glass::after { display: none; }
.glass[data-reveal] { animation-name: reveal; }
.no-sda [data-reveal] { transition: opacity .7s var(--ease), translate .8s var(--ease); }

/* header pills stay translucent so content can scroll beneath (blur follows --sp) */
.brand, .nav, .account-pill, .menu-btn {
  background: rgba(27, 27, 30, calc(.72 + .24 * var(--sp)));
  -webkit-backdrop-filter: blur(calc(8px + 14px * var(--sp))) saturate(140%);
  backdrop-filter: blur(calc(8px + 14px * var(--sp))) saturate(140%);
  box-shadow: inset 0 0 0 1px var(--line-2);
}
.sheet { background: rgba(27, 27, 30, .94); -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px); box-shadow: inset 0 0 0 1px var(--line-2); }
.brand-mark { background: var(--accent-bg); color: var(--accent-ink); box-shadow: none; font: 700 13px/1 var(--sans); }
.nav ul a[aria-current=page] { color: var(--accent-ink); background: var(--accent-bg); box-shadow: none; }
.sheet a { font: 600 22px/1 var(--sans); letter-spacing: -.02em; }
.av { font: 600 15px/1 var(--sans); color: var(--accent-ink); background: var(--accent-bg); box-shadow: inset 0 0 0 1px rgba(169, 156, 242, .3); }

/* type */
.display { font: 600 clamp(40px, 6.4vw, 84px)/1.02 var(--sans); letter-spacing: -.04em; }
.title { font: 600 clamp(30px, 4vw, 48px)/1.08 var(--sans); letter-spacing: -.035em; }
.kicker { font: 600 12px/1 var(--sans); letter-spacing: .08em; color: var(--accent-ink); }
.kicker::before { content: none; }
.crumbs { font: 500 12.5px/1 var(--sans); letter-spacing: .02em; text-transform: none; }
code { background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--line); }

/* buttons */
.btn, .btn.glass { --g-r: 12px; border-radius: 12px; }
.btn { transition: transform .25s var(--ease), background .25s, box-shadow .25s, color .25s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.97); }
.btn-sm { border-radius: 10px; }
.btn.glass { background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn.glass:hover { background: var(--card-3); }
.btn-light { color: #17141f; background: var(--accent); box-shadow: none; }
.btn-light:hover { background: #b9aef6; box-shadow: 0 10px 26px -12px rgba(169, 156, 242, .7); }
.btn-text:hover { color: var(--accent-ink); }

/* chips and badges */
.chip { background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--line); -webkit-backdrop-filter: none; backdrop-filter: none; }
.chip .dot { box-shadow: none; }
.badge { background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--line); }
.badge.oiii { color: #86dcab; background: rgba(111, 208, 154, .12); box-shadow: inset 0 0 0 1px rgba(111, 208, 154, .28); }
.badge.ha { color: #f59a94; background: rgba(239, 106, 98, .12); box-shadow: inset 0 0 0 1px rgba(239, 106, 98, .3); }

/* home hero */
.announce .new { background: var(--accent); color: #17141f; box-shadow: none; }
.sphere { background: radial-gradient(circle, rgba(169, 156, 242, .16), transparent 64%); -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none; }
.sphere::before, .sphere::after { display: none; }
.stat svg { width: 36px; height: 36px; padding: 8px; border-radius: 10px; color: var(--accent-ink); background: var(--accent-bg); opacity: 1; }
.stat:nth-child(2) svg { color: #86dcab; background: rgba(111, 208, 154, .13); }
.stat .num { font: 600 28px/1 var(--sans); letter-spacing: -.03em; margin: 16px 0 6px; }
.stat:hover { transform: translateY(-2px); }
.marquee-label { font-weight: 600; }
.marquee-track span { font: 600 22px/1.2 var(--sans); letter-spacing: -.02em; color: var(--ink-3); }

/* product cards */
.pcard { padding: 8px; }
.pcard:hover { transform: translateY(-3px); }
.pcard .media { border-radius: calc(var(--r-xl) - 8px); }
.pcard .media > img { transition-duration: 1s; }
.pcard:hover .media > img { transform: scale(1.03); }
.pcard h3 { font: 600 26px/1.1 var(--sans); letter-spacing: -.03em; }
.pcard .kind, .param .range, .script-head .ver { font-family: var(--sans); letter-spacing: .04em; text-transform: none; font-size: 12.5px; }
.pcard:hover .tile:nth-child(odd), .pcard:hover .tile:nth-child(even) { transform: translateY(-3px); }
.tile { border-radius: 18px; background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line-2); -webkit-backdrop-filter: none; backdrop-filter: none; }
.tile img { filter: none; }
.media-tiles { background: radial-gradient(60% 70% at 30% 30%, rgba(169, 156, 242, .16), transparent 70%), radial-gradient(60% 70% at 75% 75%, rgba(111, 208, 154, .08), transparent 70%), #101012; }
.icon-tile { border-radius: 12px; background: var(--accent-bg); color: var(--accent-ink); box-shadow: none; }

/* about */
.portrait { background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line); }
.shots div { background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line); }

/* before / after */
.frame { padding: 8px; }
.ba { border-radius: calc(var(--r-xl) - 8px); }
.ba .handle { background: #fff; box-shadow: none; }
.ba .knob { background: rgba(20, 20, 22, .7); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .5), 0 8px 20px -6px rgba(0, 0, 0, .7); }

/* stage: panels over the photo keep a little blur for legibility */
.stage-bg::after { background: linear-gradient(180deg, var(--bg) 0%, rgba(20, 20, 22, .82) 22%, rgba(20, 20, 22, .35) 42%, transparent 58%); }
.panel { background: rgba(27, 27, 30, .78); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.panel .n { font: 600 13px/1 var(--sans); color: var(--accent-ink); }
.panel h3 { font: 600 22px/1.15 var(--sans); letter-spacing: -.025em; }

/* segmented control */
.seg { --g-r: 12px; padding: 4px; }
.seg button { border-radius: 9px; }
.seg button[aria-selected=true] { color: var(--accent-ink); }
.seg-ind { top: 4px; bottom: 4px; border-radius: 9px; background: var(--accent-bg); box-shadow: inset 0 0 0 1px rgba(169, 156, 242, .32); }
.art-card { padding: 8px 8px 22px; }
.art-card img { border-radius: calc(var(--r-xl) - 8px); }
.art-card h3 { font: 600 19px/1.2 var(--sans); letter-spacing: -.02em; }

/* parameters */
.param .name { font: 600 20px/1.2 var(--sans); letter-spacing: -.025em; }
.meter .rail { background: rgba(255, 255, 255, .08); box-shadow: none; }
.meter .fill { background: var(--accent); box-shadow: none; }
.meter .thumb { background: #fff; box-shadow: 0 0 0 4px rgba(169, 156, 242, .28); }
.toggle { background: var(--accent); box-shadow: none; }
.toggle.off { background: var(--card-3); box-shadow: inset 0 0 0 1px var(--line-2); }

/* install */
.step .num { font: 600 16px/1 var(--sans); color: var(--accent-ink); background: var(--accent-bg); box-shadow: none; border-radius: 12px; width: 40px; height: 40px; }
.req h3 { font: 600 20px/1.2 var(--sans); letter-spacing: -.02em; }
.copy { background: #101012; box-shadow: inset 0 0 0 1px var(--line); border-radius: 12px; }
.copy code { color: var(--accent-ink); }
.faq details { --g-r: 14px; }
.faq summary .pm { background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--line); }
.faq details[open] summary .pm { background: var(--accent-bg); }

/* pricing */
.pricing::before { display: none; }
.price-card { --g-r: 22px; }
.price-card .plan { font-family: var(--sans); letter-spacing: .08em; }
.price-card .price { font: 600 64px/1 var(--sans); letter-spacing: -.05em; }
.incl svg { color: var(--oiii); filter: none; }

/* kScripts */
.orbit .core { background: radial-gradient(circle at 50% 35%, rgba(169, 156, 242, .24), transparent 70%), var(--card); box-shadow: inset 0 0 0 1px var(--line-2); font: 600 clamp(24px, 3.4vw, 34px)/1 var(--sans); letter-spacing: -.03em; }
.script:hover { transform: translateY(-3px); }
.script-head h3 { font: 600 22px/1.15 var(--sans); letter-spacing: -.025em; }
.script li::before { background: var(--accent); box-shadow: none; }
.timeline .item b { font: 600 17px/1.25 var(--sans); letter-spacing: -.015em; }
.cta-band { --g-r: 24px; background: radial-gradient(60% 120% at 50% 0%, rgba(169, 156, 242, .13), transparent 70%), var(--card); }

/* footer */
.footbar { --g-r: 14px; }
@media (max-width: 720px) {
  .footbar { --g-r: var(--r-lg); }
  .stat .num { font-size: 24px; }
  .marquee-track span { font-size: 18px; }
  .param .name { font-size: 18px; }
  .price-card .price { font-size: 52px; }
}
.media-chips .chip { background: rgba(20, 20, 22, .72); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }

/* ---------- MultiPointCrop page ---------- */
.badge.violet { color: var(--accent-ink); background: var(--accent-bg); box-shadow: inset 0 0 0 1px rgba(169, 156, 242, .34); }
.badge.warn { color: #f0c07f; background: rgba(232, 169, 92, .12); box-shadow: inset 0 0 0 1px rgba(232, 169, 92, .32); }

.mesh-demo { padding: 10px 10px 14px; }
.mesh-demo svg { display: block; width: 100%; height: auto; border-radius: calc(var(--r-xl) - 10px); background: #101012; }
.mesh-ctl { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 14px 8px 0; font: 500 12.5px/1 var(--sans); color: var(--ink-3); }
.mesh-ctl input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: ew-resize; margin: 0; }
.mesh-ctl input[type=range]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .12); }
.mesh-ctl input[type=range]::-moz-range-track { height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .12); }
.mesh-ctl input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(169, 156, 242, .3); }
.mesh-ctl input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border: 0; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px rgba(169, 156, 242, .3); }

kbd { font: 500 12px/1 var(--mono); padding: 4px 7px; border-radius: 7px; color: var(--ink); background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line-2); white-space: nowrap; }
.req li > span:first-child { display: inline-flex; gap: 6px; align-items: center; flex-wrap: wrap; }

.modes { align-items: start; }
.modes-list { display: grid; gap: 12px; }
.mode { --g-r: var(--r-lg); padding: 20px 22px; }
.mode-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.mode-head b { font-weight: 600; font-size: 16.5px; letter-spacing: -.015em; }
.mode p { color: var(--ink-2); font-size: 14.5px; }
.mode p i { color: var(--ink); }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 960px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .kpis { grid-template-columns: 1fr; } }
.kpi { --g-r: var(--r-lg); padding: 20px 22px; }
.kpi .lbl { font: 500 13px/1 var(--sans); color: var(--ink-2); }
.kpi .val { font: 600 38px/1 var(--sans); letter-spacing: -.04em; margin: 16px 0 8px; font-variant-numeric: tabular-nums; }
.kpi .val small { font: 500 15px/1 var(--sans); letter-spacing: 0; color: var(--ink-3); margin-left: 4px; }
.kpi .note { font-size: 13px; color: var(--ink-3); }

.compare { --g-r: var(--r-xl); display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 4vw, 48px); padding: clamp(20px, 3vw, 30px); margin-top: 16px; }
@media (max-width: 860px) { .compare { grid-template-columns: 1fr; } }
.bars-title { font: 600 14px/1.3 var(--sans); margin-bottom: 10px; }
.bar-row { display: grid; grid-template-columns: minmax(110px, 150px) 1fr 52px; gap: 14px; align-items: center; padding: 9px 0; font-size: 13.5px; color: var(--ink-2); }
.bar-row b { text-align: right; color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.bar-track { height: 8px; border-radius: 8px; background: rgba(255, 255, 255, .07); overflow: hidden; }
.bar-fill { display: block; height: 100%; width: var(--w); border-radius: inherit; background: var(--accent); }
.bar-fill.muted { background: rgba(255, 255, 255, .3); }
.bar-fill.good { background: var(--oiii); }
@media (max-width: 480px) { .bar-row { grid-template-columns: 1fr 52px; } .bar-row span { grid-column: 1 / -1; } .bar-row .bar-track { grid-column: 1; } }
