/* FCS Mate website. Look taken from the app: pale grey / deep blue-grey ground, blue point clouds,
   Baskerville wordmark squeezed to 70 %, letter-spaced mono labels, handwritten "thx mate".
   Light and dark design (system setting, or the toggle: data-theme on <html>). */

@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/IBMPlexSans-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/IBMPlexSans-500.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("fonts/IBMPlexSans-600.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/IBMPlexMono-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-style: normal; font-display: swap; src: url("fonts/IBMPlexMono-500.woff2") format("woff2"); }
@font-face { font-family: "Baskervville"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/Baskervville-400.woff2") format("woff2"); }
@font-face { font-family: "Caveat"; font-weight: 400; font-style: normal; font-display: swap; src: url("fonts/Caveat-400.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --bg: #f6f8fb;
  --bg2: #eaeef5;
  --panel: #ffffff;
  --panel2: #f1f4f9;
  --line: #dde2ea;
  --tx: #14161a;
  --tx2: #4a5262;
  --tx3: #667084;
  --acc: #2f6fe0;
  --acc-ink: #ffffff;
  --acc-soft: rgba(47, 111, 224, 0.10);
  --acc-line: rgba(47, 111, 224, 0.38);
  --heart: #d6425a;
  --pt: 47, 111, 224;              /* point colour, r g b */
  --sh: 24, 34, 64;                /* shadow colour, r g b */
  --sh-a: 1;                       /* shadow strength */
  --nav-bg: rgba(246, 248, 251, 0.78);
  --show-sun: none;
  --show-moon: block;

  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --serif: "Baskervville", Baskerville, "Baskerville Old Face", Georgia, "Times New Roman", serif;
  --hand: "Caveat", "Segoe Script", "Bradley Hand", cursive;
  --r: 18px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0f1217; --bg2: #141920; --panel: #1a1f27; --panel2: #20262f; --line: #2b323d;
    --tx: #eef1f6; --tx2: #aab3c2; --tx3: #8791a3;
    --heart: #ff7a8e;
    --acc: #6aa5ff; --acc-ink: #0b1220; --acc-soft: rgba(106, 165, 255, 0.14); --acc-line: rgba(106, 165, 255, 0.42);
    --pt: 106, 165, 255; --sh: 0, 0, 0; --sh-a: 1.8; --nav-bg: rgba(15, 18, 23, 0.78);
    --show-sun: block; --show-moon: none;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --heart: #ff7a8e;
  --bg: #0f1217; --bg2: #141920; --panel: #1a1f27; --panel2: #20262f; --line: #2b323d;
  --tx: #eef1f6; --tx2: #aab3c2; --tx3: #8791a3;
  --acc: #6aa5ff; --acc-ink: #0b1220; --acc-soft: rgba(106, 165, 255, 0.14); --acc-line: rgba(106, 165, 255, 0.42);
  --pt: 106, 165, 255; --sh: 0, 0, 0; --sh-a: 1.8; --nav-bg: rgba(15, 18, 23, 0.78);
  --show-sun: block; --show-moon: none;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; background: var(--bg); }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--tx);
  font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, canvas, svg { max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
.wrap { width: min(1180px, 100% - 48px); margin-inline: auto; }
h1, h2, h3, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }

/* ---------- small parts ---------- */
.wordmark { font-family: var(--serif); font-size: 22px; line-height: 1; display: inline-block; transform: scaleX(0.74); transform-origin: 0 50%; margin-right: -0.2em; white-space: nowrap; }
.eyebrow { font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--acc); margin-bottom: 14px; }
.hand { font-family: var(--hand); color: var(--acc); line-height: 1; }
.fi { width: 26px; height: 26px; flex: none; fill: none; stroke: var(--acc); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.os-ico, .btn svg, .link-arrow svg, .seg svg, .knob svg, .icon-btn svg, .dl-links svg { fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none; cursor: pointer;
  background: var(--acc); color: var(--acc-ink); border: 0; border-radius: 12px; padding: 12px 22px; font-weight: 500; font-size: 16px; line-height: 1.2;
  box-shadow: 0 10px 24px -12px rgba(var(--pt), 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 28px -12px rgba(var(--pt), 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.28); filter: brightness(1.06); }
.btn:active { transform: translateY(0); }
.btn-small { padding: 8px 16px; font-size: 14.5px; border-radius: 10px; }
.btn-big { padding: 16px 28px; font-size: 18px; border-radius: 14px; }
.btn-block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; color: var(--tx2); text-decoration: none; font-size: 16px; padding: 8px 2px; }
.link-arrow svg { transition: transform 0.2s ease; }
.link-arrow:hover { color: var(--acc); }
.link-arrow:hover svg { transform: translateX(4px); }
.icon-btn { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: transparent; cursor: pointer; color: var(--tx2); transition: color 0.2s, background 0.2s, border-color 0.2s; }
.icon-btn:hover { color: var(--acc); background: var(--acc-soft); border-color: var(--acc-line); }
.ico-sun { display: var(--show-sun); }
.ico-moon { display: var(--show-moon); }
.inline-btn { background: none; border: 0; padding: 0; color: var(--acc); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, 0 24px 48px -30px rgba(var(--sh), calc(0.35 * var(--sh-a))); }

/* ---------- navigation ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: var(--nav-bg); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid transparent; transition: border-color 0.3s; }
.nav.stuck { border-bottom-color: var(--line); }
.nav-row { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { border-radius: 9px; }
.nav-links { display: flex; gap: 26px; margin-left: 18px; }
.nav-links a { color: var(--tx2); text-decoration: none; font-size: 15px; padding: 6px 0; position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--acc); transform: scaleX(0); transform-origin: left; transition: transform 0.25s ease; border-radius: 2px; }
.nav-links a:hover, .nav-links a.on { color: var(--tx); }
.nav-links a:hover::after, .nav-links a.on::after { transform: scaleX(1); }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.donate { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--line); color: var(--tx2); text-decoration: none; font-size: 14.5px; font-weight: 500; transition: color 0.2s, background 0.2s, border-color 0.2s; }
.donate svg { fill: var(--heart); stroke: var(--heart); stroke-width: 1.4; stroke-linejoin: round; transition: transform 0.2s ease; }
.donate:hover { color: var(--tx); background: color-mix(in srgb, var(--heart) 12%, transparent); border-color: color-mix(in srgb, var(--heart) 45%, transparent); }
.donate:hover svg { transform: scale(1.18); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 56px 0 0; overflow: hidden; background:
  radial-gradient(900px 520px at 78% 8%, rgba(var(--pt), 0.10), transparent 70%),
  linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%); }
.hero canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.gate-label { position: absolute; z-index: 1; transform: translate(-50%, -50%); padding: 4px 12px; border-radius: 8px; border: 1px solid var(--acc-line); background: var(--panel); color: var(--acc); font-size: 15px; font-weight: 500; white-space: nowrap; pointer-events: none; box-shadow: 0 8px 20px -10px rgba(var(--sh), calc(0.5 * var(--sh-a))); }
.hero-grid, .hero-shot { position: relative; z-index: 2; }
.hero-copy { max-width: 600px; }
h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(72px, 11vw, 140px); line-height: 0.9; letter-spacing: -0.015em; margin-bottom: 28px; }
h1 span { display: block; transform: scaleX(0.70); transform-origin: 0 50%; }
.tagline { font-family: var(--mono); font-size: clamp(10px, 2.9vw, 14px); letter-spacing: 0.24em; text-transform: uppercase; white-space: nowrap; margin-bottom: 10px; }
.hand.hand { font-size: 32px; }
.hero-copy .hand { transform: rotate(-2deg); transform-origin: left; opacity: 0.9; margin-bottom: 24px; white-space: nowrap; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--tx2); max-width: 31em; margin-bottom: 32px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; }

.hero-shot { margin-top: 56px; padding-bottom: 0; }
.shot-tilt { perspective: 1800px; }
.compare-wrap, .compare { transform-origin: 50% 0; }
.compare {
  --rx: 9deg; --sc: 0.94;
  position: relative; user-select: none; -webkit-user-select: none; touch-action: pan-y; border-radius: 14px;
  transform: rotateX(var(--rx)) scale(var(--sc));
  filter: drop-shadow(0 46px 44px rgba(var(--sh), calc(0.26 * var(--sh-a)))) drop-shadow(0 12px 14px rgba(var(--sh), calc(0.18 * var(--sh-a))));
  will-change: transform;
}
.compare img { display: block; width: 100%; height: auto; pointer-events: none; -webkit-user-drag: none; }
.compare .c-dark { position: absolute; inset: 0; clip-path: inset(0 0 0 var(--pos)); }
.tag { position: absolute; top: 14%; z-index: 3; font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; background: rgba(20, 22, 26, 0.72); color: #fff; opacity: 0; transition: opacity 0.3s; pointer-events: none; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.tag-l { left: 3%; } .tag-r { right: 3%; }
.compare:hover .tag, .compare.drag .tag { opacity: 1; }
.handle { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 56px; margin-left: -28px; z-index: 4; cursor: ew-resize; touch-action: none; outline: none; }
.handle::before { content: ""; position: absolute; left: 27px; top: 4.5%; bottom: 4.5%; width: 2px; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18), 0 0 16px rgba(var(--pt), 0.8); border-radius: 2px; }
.knob { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 56px; height: 34px; border-radius: 999px; display: flex; align-items: center; justify-content: space-between; padding: 0 9px; background: #fff; color: #14161a; box-shadow: 0 8px 22px -6px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(0, 0, 0, 0.12); transition: transform 0.2s ease; }
.handle:hover .knob, .compare.drag .knob, .handle:focus-visible .knob { transform: translate(-50%, -50%) scale(1.1); }
.handle:focus-visible .knob { box-shadow: 0 0 0 3px var(--acc), 0 8px 22px -6px rgba(0, 0, 0, 0.5); }
.shot-note { text-align: center; margin-top: 18px; font-size: 26px; opacity: 0.85; padding-bottom: 8px; }

/* ---------- ticker ---------- */
.ticker { overflow: hidden; border-block: 1px solid var(--line); background: var(--bg); padding: 16px 0; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.ticker-track { display: flex; width: max-content; animation: tick 60s linear infinite; }
.ticker span { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--tx3); padding: 0 22px; white-space: nowrap; display: inline-flex; align-items: center; gap: 44px; }
.ticker span::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--acc); opacity: 0.55; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: clamp(72px, 10vw, 128px) 0; background: var(--bg); }
.section.alt { background: var(--bg2); }
.head { max-width: 680px; margin-bottom: clamp(36px, 5vw, 60px); }
.head.center { margin-inline: auto; text-align: center; }
h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(36px, 4.6vw, 56px); line-height: 1.08; letter-spacing: -0.01em; text-wrap: balance; margin-bottom: 18px; }
.sub { color: var(--tx2); font-size: clamp(17px, 1.6vw, 19px); max-width: 36em; }
.head.center .sub { margin-inline: auto; }
h3 { font-size: 17px; font-weight: 600; line-height: 1.3; }
.plain { margin-top: 28px; display: grid; gap: 12px; }
.plain li { position: relative; padding-left: 24px; color: var(--tx2); font-size: 16px; }
.plain li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 8px; height: 8px; border-radius: 50%; background: var(--acc); opacity: 0.8; }
.plain b { color: var(--tx); font-weight: 500; }

.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s cubic-bezier(.2,.7,.2,1) var(--d, 0ms), transform 0.8s cubic-bezier(.2,.7,.2,1) var(--d, 0ms); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- plot types ---------- */
.plots { display: grid; grid-template-columns: minmax(300px, 430px) 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.tabs { display: grid; gap: 6px; }
.tab { position: relative; text-align: left; background: transparent; border: 1px solid transparent; border-radius: 14px; padding: 14px 18px; cursor: pointer; overflow: hidden; transition: background 0.25s, border-color 0.25s; }
.tab .h { font-size: 18px; color: var(--tx2); display: flex; align-items: center; gap: 10px; transition: color 0.2s; }
.tab .h .n { font-family: var(--mono); font-size: 11px; font-weight: 500; letter-spacing: 0.1em; color: var(--tx3); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.tab .d { display: block; color: var(--tx2); font-size: 15px; max-height: 0; opacity: 0; overflow: hidden; transition: max-height 0.4s ease, opacity 0.3s ease, margin 0.3s ease; }
.tab:hover .h { color: var(--tx); }
.tab[aria-selected="true"] { background: var(--panel); border-color: var(--line); box-shadow: 0 18px 36px -24px rgba(var(--sh), calc(0.4 * var(--sh-a))); }
.tab[aria-selected="true"] .h { color: var(--tx); }
.tab[aria-selected="true"] .d { max-height: 9em; opacity: 1; margin-top: 6px; }
.tab .prog { position: absolute; left: 18px; right: 18px; bottom: 0; height: 2px; background: var(--acc); transform: scaleX(0); transform-origin: left; opacity: 0; border-radius: 2px; transition: opacity 0.3s; }

.plot-stage { position: relative; display: grid; justify-items: center; align-content: center; gap: 18px; min-height: 560px; }
.glow { position: absolute; width: 80%; aspect-ratio: 1; top: 45%; left: 50%; translate: -50% -50%; background: radial-gradient(closest-side, rgba(var(--pt), 0.22), transparent 70%); filter: blur(10px); pointer-events: none; }
.plot-frame { position: relative; width: min(100%, 470px); aspect-ratio: 1500 / 1633; perspective: 1400px; z-index: 1; }
.plot-frame img { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transform: translateY(14px) scale(0.97) rotateX(var(--tx-r, 0deg)) rotateY(var(--ty-r, 0deg)); transition: opacity 0.55s ease, transform 0.7s cubic-bezier(.2,.7,.2,1); filter: drop-shadow(0 34px 30px rgba(var(--sh), calc(0.24 * var(--sh-a)))) drop-shadow(0 8px 10px rgba(var(--sh), calc(0.16 * var(--sh-a)))); will-change: transform, opacity; }
.plot-frame img.on { opacity: 1; transform: rotateX(var(--tx-r, 0deg)) rotateY(var(--ty-r, 0deg)); }
.variants { display: flex; gap: 10px; min-height: 28px; z-index: 1; }
.variants button { border: 1px solid var(--line); background: var(--panel); color: var(--tx2); font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; border-radius: 999px; padding: 5px 14px; cursor: pointer; transition: all 0.2s; }
.variants button[aria-pressed="true"] { background: var(--acc-soft); border-color: var(--acc-line); color: var(--acc); }
.variants button:hover { color: var(--acc); }

/* ---------- gating ---------- */
.gating { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 36px; align-items: start; }
.gating-main { display: grid; gap: 36px; min-width: 0; }
.demo { padding: 16px; }
.seg { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--panel2); border: 1px solid var(--line); border-radius: 12px; width: max-content; max-width: 100%; }
.seg button { display: inline-flex; align-items: center; gap: 7px; border: 0; background: transparent; color: var(--tx2); border-radius: 9px; padding: 8px 14px; font-size: 14.5px; cursor: pointer; transition: all 0.2s; }
.seg button:hover { color: var(--tx); }
.seg button[aria-selected="true"], .seg button[aria-checked="true"] { background: var(--panel); color: var(--acc); box-shadow: 0 1px 2px rgba(var(--sh), 0.18), 0 0 0 1px var(--line); }
.seg-wide { width: 100%; } .seg-wide button { flex: 1; justify-content: center; }
.seg-small button { padding: 6px 12px; font-size: 13.5px; }
.demo-canvas, .lab-canvas { margin-top: 14px; border-radius: 12px; overflow: hidden; background: var(--bg); border: 1px solid var(--line); }
.demo-canvas canvas, .lab-canvas canvas { display: block; width: 100%; aspect-ratio: 16 / 10; }
.demo-canvas, .lab-canvas { max-width: 640px; margin-left: auto; margin-right: auto; }
.demo-canvas canvas, .lab-canvas canvas { aspect-ratio: 1 / 1; }
.demo-cap { margin-top: 12px; padding: 0 4px; color: var(--tx2); font-size: 15px; min-height: 3.2em; }
.demo-cap b { color: var(--tx); font-weight: 500; }
.data-note { margin: 10px 4px 0; font-family: var(--mono); font-size: 11.5px; line-height: 1.5; letter-spacing: 0.02em; color: var(--tx3); }
.feat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 32px; }
.feat-grid li { display: flex; gap: 14px; align-items: flex-start; }
.feat-grid p { color: var(--tx2); font-size: 15px; margin-top: 3px; }
.gating-side { display: grid; gap: 22px; position: sticky; top: 92px; }
.side-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); padding: 10px 10px 14px; box-shadow: 0 30px 50px -30px rgba(var(--sh), calc(0.45 * var(--sh-a))); }
.side-img { position: relative; border-radius: 10px; overflow: hidden; background: var(--panel); }
.side-img img { display: block; width: 100%; height: auto; }
.side-card figcaption { text-align: center; padding-top: 8px; }
.side-card .hand { font-size: 23px; }
.scan { position: absolute; left: 0; right: 0; top: 5.45%; height: 6.3%; background: linear-gradient(90deg, transparent, rgba(var(--pt), 0.20) 30%, rgba(var(--pt), 0.20) 70%, transparent); border-block: 1px solid rgba(var(--pt), 0.30); animation: scan 12s steps(15, jump-none) infinite; pointer-events: none; }
@keyframes scan { from { transform: translateY(0); } to { transform: translateY(calc(14 * 100%)); } }

/* ---------- axes / compensation ---------- */
.axes-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 84px); align-items: center; }
.lab { padding: 16px; }
.lab-controls { margin-top: 16px; display: grid; gap: 12px; padding: 0 4px 4px; }
.lab-controls .seg { width: max-content; }
.range { display: grid; gap: 6px; color: var(--tx2); font-size: 14.5px; }
.range span { display: flex; justify-content: space-between; }
.range output { font-family: var(--mono); color: var(--acc); font-size: 14px; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: var(--line); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: var(--line); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--acc); margin-top: -8px; border: 3px solid var(--panel); box-shadow: 0 0 0 1px var(--acc-line), 0 4px 10px rgba(var(--sh), 0.35); transition: transform 0.15s; }
input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--acc); border: 3px solid var(--panel); box-shadow: 0 0 0 1px var(--acc-line); }
input[type="range"]:hover::-webkit-slider-thumb { transform: scale(1.15); }
.lab-note { font-size: 14.5px; color: var(--tx2); min-height: 2.9em; }
.lab-note b { color: var(--tx); font-weight: 500; }
.lab-note .ok { color: #1c9a54; font-weight: 500; }
:root[data-theme="dark"] .lab-note .ok { color: #46d68a; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .lab-note .ok { color: #46d68a; } }

/* ---------- workflow ---------- */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-bottom: 22px; }
.b-card { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; }
.b-card p { color: var(--tx2); font-size: 15px; }
.b-vis { position: relative; height: 150px; margin: -4px -6px 8px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); overflow: hidden; font-size: 13px; }
/* tabs */
.v-tabs .t { position: absolute; top: 20px; padding: 7px 12px; border: 1px solid var(--line); background: var(--panel); border-radius: 9px 9px 0 0; font-family: var(--mono); font-size: 12px; color: var(--tx2); white-space: nowrap; }
.v-tabs .t1 { left: 14px; color: var(--acc); border-color: var(--acc-line); animation: t-sel 9s infinite; }
.v-tabs .t2 { left: 118px; animation: t-in 9s infinite; }
.v-tabs .t3 { left: 222px; animation: t-in3 9s infinite; }
.v-tabs .plus { left: 326px; padding: 7px 11px; animation: t-plus 9s infinite; }
.v-tabs::after { content: ""; position: absolute; left: 0; right: 0; top: 55px; bottom: 0; background: repeating-linear-gradient(0deg, transparent 0 22px, rgba(var(--pt), 0.06) 22px 23px); }
@keyframes t-sel { 0%, 30% { color: var(--acc); } 34%, 100% { color: var(--tx2); border-color: var(--line); } }
@keyframes t-in { 0%, 8% { opacity: 0; transform: translateY(8px); } 14%, 100% { opacity: 1; transform: none; } }
@keyframes t-in3 { 0%, 22% { opacity: 0; transform: translateY(8px); } 28%, 100% { opacity: 1; transform: none; } }
@keyframes t-plus { 0%, 36% { transform: none; } 42% { transform: scale(1.12); color: var(--acc); } 48%, 100% { transform: none; } }
/* merge */
.v-merge .f { position: absolute; left: 14px; padding: 6px 12px; border: 1px solid var(--line); background: var(--panel); border-radius: 8px; font-family: var(--mono); font-size: 12px; color: var(--tx2); animation: f-move 6s ease-in-out infinite; }
.v-merge .f1 { top: 14px; } .v-merge .f2 { top: 56px; animation-delay: 0.12s; } .v-merge .f3 { top: 98px; animation-delay: 0.24s; }
.v-merge .out { position: absolute; right: 16px; top: 50%; translate: 0 -50%; padding: 10px 14px; border: 1px solid var(--acc-line); background: var(--acc-soft); border-radius: 10px; font-family: var(--mono); font-size: 13px; color: var(--acc); display: grid; gap: 1px; animation: out-pop 6s ease-in-out infinite; }
.v-merge .out small { font-size: 11px; color: var(--tx3); }
@keyframes f-move { 0%, 20% { transform: none; opacity: 1; } 55% { transform: translate(calc(100% + 70px), calc(var(--dy, 0px))); opacity: 1; } 70%, 100% { transform: translate(calc(100% + 150px), var(--dy, 0px)) scale(0.6); opacity: 0; } }
.v-merge .f1 { --dy: 36px; } .v-merge .f2 { --dy: 0px; } .v-merge .f3 { --dy: -36px; }
@keyframes out-pop { 0%, 50% { opacity: 0.35; transform: scale(0.96); } 62%, 90% { opacity: 1; transform: scale(1); } 100% { opacity: 0.35; transform: scale(0.96); } }
/* anonymize */
.v-anon { padding: 18px 18px; display: grid; align-content: center; gap: 12px; }
.v-anon .row { display: flex; align-items: baseline; gap: 12px; font-family: var(--mono); font-size: 13px; position: relative; }
.v-anon i { font-style: normal; color: var(--tx3); width: 58px; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; }
.v-anon b { font-weight: 500; position: relative; }
.v-anon .name::after, .v-anon .file::after { content: ""; position: absolute; inset: -2px -4px; background: var(--tx); border-radius: 3px; transform: scaleX(0); transform-origin: left; animation: redact 7s ease-in-out infinite; }
.v-anon .file::after { animation-delay: 0.25s; }
.v-anon .name, .v-anon .file { animation: unmask 7s steps(1) infinite; }
.v-anon .file { animation-delay: 0.25s; }
@keyframes redact { 0%, 22% { transform: scaleX(0); } 32%, 78% { transform: scaleX(1); } 90%, 100% { transform: scaleX(0); } }
@keyframes unmask { 0%, 100% { color: var(--tx); } }
.v-anon .bar { height: 4px; border-radius: 4px; background: var(--line); position: relative; overflow: hidden; }
.v-anon .bar::after { content: ""; position: absolute; inset: 0; background: var(--acc); transform: scaleX(0); transform-origin: left; animation: redact 7s ease-in-out infinite; }

.mini-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.mini-grid li { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 20px 20px 22px; display: grid; gap: 8px; align-content: start; transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.mini-grid li:hover { transform: translateY(-4px); border-color: var(--acc-line); box-shadow: 0 22px 36px -24px rgba(var(--sh), calc(0.5 * var(--sh-a))); }
.mini-grid .fi { width: 28px; height: 28px; margin-bottom: 4px; transition: transform 0.3s ease; }
.mini-grid li:hover .fi { transform: scale(1.12) rotate(-6deg); }
.mini-grid p { color: var(--tx2); font-size: 14.5px; }

/* ---------- export ---------- */
.export-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 84px); align-items: center; }
.export-demo { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; }
.dialog { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 22px 22px 18px; width: 318px; box-shadow: 0 40px 60px -34px rgba(var(--sh), calc(0.55 * var(--sh-a))), 0 0 0 1px rgba(255, 255, 255, 0.03) inset; }
.dialog h3 { font-size: 20px; font-weight: 400; margin-bottom: 14px; }
.lbl { font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--tx3); margin: 12px 0 8px; }
.chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.chips.four { grid-template-columns: repeat(4, 1fr); }
.chips button { border: 1px solid var(--line); background: transparent; color: var(--tx2); border-radius: 8px; padding: 7px 4px; font-size: 13px; cursor: pointer; white-space: nowrap; transition: all 0.18s; }
.chips button:hover { color: var(--tx); background: var(--panel2); }
.chips button[aria-checked="true"] { background: var(--acc-soft); color: var(--acc); border-color: var(--acc-line); }
.size { margin-top: 16px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--panel2); font-size: 14px; color: var(--tx2); }
.size b { color: var(--tx); font-weight: 500; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.fmt-note { font-size: 13px; color: var(--tx3); margin-top: 10px; min-height: 2.6em; }
.dlg-btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.dlg-btns span { border-radius: 8px; padding: 7px 16px; font-size: 14px; border: 1px solid var(--line); color: var(--tx2); }
.dlg-btns .solid { background: var(--acc); color: var(--acc-ink); border-color: var(--acc); }
.zoom-card canvas { display: block; width: 100%; max-width: 360px; aspect-ratio: 1 / 1; border-radius: 12px; background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 44px -28px rgba(var(--sh), calc(0.5 * var(--sh-a))); image-rendering: auto; }
.zoom-card figcaption { margin-top: 8px; text-align: center; }
.zoom-card .hand { font-size: 24px; }

/* ---------- download ---------- */
.dl { background: var(--bg2); position: relative; overflow: hidden; }
.dl::before { content: ""; position: absolute; inset: auto 0 0 0; height: 60%; background: radial-gradient(60% 100% at 50% 100%, rgba(var(--pt), 0.12), transparent 70%); pointer-events: none; }
.dl .wrap { position: relative; }
.os-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.os-card { position: relative; display: flex; flex-direction: column; gap: 10px; text-decoration: none; padding: 30px 26px 26px; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; transition: transform 0.3s cubic-bezier(.2,.7,.2,1), box-shadow 0.3s ease, border-color 0.3s; }
.os-card:hover { transform: translateY(-6px); border-color: var(--acc-line); box-shadow: 0 34px 50px -30px rgba(var(--sh), calc(0.55 * var(--sh-a))); }
.os-card .os-ico { color: var(--acc); margin-bottom: 8px; }
.os-card h3 { font-family: var(--serif); font-weight: 400; font-size: 30px; }
.os-card p { color: var(--tx2); font-size: 15px; flex: 1; margin-bottom: 14px; }
.os-card .btn { pointer-events: none; }
.badge { position: absolute; top: 18px; right: 18px; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--acc); background: var(--acc-soft); border: 1px solid var(--acc-line); border-radius: 999px; padding: 3px 10px; display: none; }
.os-card.mine { border-color: var(--acc); box-shadow: 0 0 0 1px var(--acc), 0 34px 50px -30px rgba(var(--pt), 0.6); }
.os-card.mine .badge { display: inline-block; }
.dl-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 16px; margin-top: 34px; color: var(--tx3); }
.dl-links a { color: var(--tx2); display: inline-flex; align-items: center; gap: 6px; text-underline-offset: 4px; }
.dl-links a:hover { color: var(--acc); }
.notice-text { max-width: 46em; margin: 22px auto 0; text-align: center; color: var(--tx3); font-size: 13px; line-height: 1.6; }

/* ---------- footer ---------- */
.foot { background: var(--bg); border-top: 1px solid var(--line); padding: 36px 0 44px; color: var(--tx3); font-size: 14px; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 36px; }
.foot-brand { display: flex; align-items: center; gap: 12px; }
.foot-brand img { border-radius: 8px; }
.foot-brand p { font-size: 13px; }
.foot-row .hand { font-size: 28px; opacity: 0.85; transform: rotate(-2deg); }
.foot-links { margin-left: auto; display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot-links a { color: var(--tx2); text-decoration: none; }
.foot-links a:hover { color: var(--acc); text-decoration: underline; text-underline-offset: 4px; }

/* ---------- imprint and privacy ---------- */
.page { padding: 56px 0 96px; background: var(--bg); }
.page .wrap { max-width: 720px; }
.page h1 { font-size: clamp(40px, 6vw, 60px); line-height: 1.05; margin-bottom: 32px; }
.page h1 span { display: inline; transform: none; }
.page h2 { font-family: var(--sans); font-weight: 600; font-size: 20px; margin: 40px 0 10px; letter-spacing: 0; }
.page p, .page li { color: var(--tx2); }
.todo { background: var(--acc-soft); border-left: 3px solid var(--acc); padding: 12px 16px; border-radius: 0 8px 8px 0; color: var(--tx) !important; }

/* ---------- smaller screens ---------- */
@media (max-width: 1020px) {
  .nav-links { display: none; }
  .plots { grid-template-columns: 1fr; }
  .plot-stage { min-height: 0; }
  .gating { grid-template-columns: 1fr; }
  .gating-side { position: static; grid-template-columns: 1fr 1fr; align-items: start; }
  .axes-grid, .export-grid { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .os-grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
}
@media (max-width: 700px) {
  body { font-size: 16px; }
  .wrap { width: min(1180px, 100% - 32px); }
  .nav-row { height: 60px; gap: 14px; }
  .nav-end { gap: 8px; }
  .nav-end .btn-small { padding: 8px 13px; }
  .donate { flex-direction: column; justify-content: center; gap: 1px; width: 52px; padding: 0; font-size: 11.5px; line-height: 1.1; }
  .donate svg { width: 21px; height: 21px; }
  .hero { padding-top: 36px; }
  .tagline { letter-spacing: 0.16em; }
  .hero-shot { margin-top: 36px; }
  .tag { display: none; }
  .gate-label { display: none; }
  .knob { width: 46px; height: 30px; padding: 0 7px; }
  .shot-note { font-size: 22px; }
  .feat-grid { grid-template-columns: 1fr; }
  .gating-side { grid-template-columns: 1fr; }
  .export-demo { grid-template-columns: 1fr; justify-items: center; }
  .dialog { width: min(330px, 100%); }
  .mini-grid { grid-template-columns: 1fr; }
  .seg { width: 100%; } .seg button { flex: 1 1 40%; justify-content: center; }
  .foot-links { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .ticker-track, .scan, .v-tabs .t, .v-merge .f, .v-merge .out, .v-anon .name::after, .v-anon .file::after, .v-anon .bar::after { animation: none !important; }
  .v-anon .bar::after { transform: scaleX(1); }
  .compare { transform: none; }
  .tab .prog { display: none; }
}
