/* ==========================================================================
   SPECTORTION — site styles
   A single dark world, taken from the plug-in and the logo artwork:
   violet UI accent, chrome/iridescent highlights, fire for what gets rejected.
   ========================================================================== */

@font-face {
  font-family: "Anybody";
  src: url("../fonts/anybody-latin-standard-normal.woff2") format("woff2-variations");
  font-weight: 100 900; font-stretch: 50% 150%; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Anybody";
  src: url("../fonts/anybody-latin-standard-italic.woff2") format("woff2-variations");
  font-weight: 100 900; font-stretch: 50% 150%; font-style: italic; font-display: swap;
}
@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900; font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/geist-mono-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900; font-display: swap;
}

:root {
  color-scheme: dark;
  --void: #08060d;
  --void-2: #0d0a15;
  --panel: #14111c;
  --panel-2: #1b1726;
  --line: #2b2538;
  --line-2: #3a3249;
  --text: #eeeaf6;
  --mute: #a39bb5;
  --dim: #6f6882;
  --violet: #b42ff5;
  --violet-2: #8c1fd0;
  --lilac: #e2b8ff;
  --ember: #ff7a2e;
  --ember-2: #ff3d4f;
  --good: #58e08c;
  --spectrum: linear-gradient(90deg, #5b5cff 0%, #29c8ff 18%, #36f0a0 36%, #f2ec45 54%, #ff9a2e 72%, #ff3d6e 88%, #c04cff 100%);
  --chrome: linear-gradient(180deg, #ffffff 0%, #d9d3e8 38%, #8e86a3 52%, #f3eefc 70%, #b9b0cc 100%);

  --f-display: "Anybody", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --gutter: clamp(16px, 4vw, 48px);
  --maxw: 1180px;
  --r: 14px;
  --bar-h: 64px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--void); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--void);
  color: var(--text);
  font: 400 1.05rem/1.62 var(--f-body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lilac); text-underline-offset: 3px; }
a:hover { color: #fff; }
:focus-visible { outline: 2px solid var(--lilac); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }
::selection { background: var(--violet); color: #fff; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--text); color: var(--void); padding: 10px 14px; border-radius: 8px; }
.skip:focus { left: 12px; }

.mono { font-family: var(--f-mono); font-feature-settings: "tnum" 1, "zero" 1; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 860px; }

/* ------------------------------------------------------------------ backdrop */
#field {
  position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh;
  z-index: 0; display: block; pointer-events: none;
}
main, .foot { position: relative; z-index: 1; }
.field-fallback {
  position: fixed; inset: 0; z-index: 0;
  background:
    radial-gradient(1200px 600px at 70% 18%, rgba(180, 47, 245, .22), transparent 60%),
    radial-gradient(900px 500px at 15% 80%, rgba(255, 122, 46, .10), transparent 60%),
    var(--void);
}
.no-webgl .field-fallback {
  background:
    linear-gradient(180deg, rgba(8, 6, 13, .55), rgba(8, 6, 13, .92) 60%),
    url("../img/hero-electric-1100.webp") center 30% / cover no-repeat,
    var(--void);
}
.grain {
  position: fixed; inset: -50%; z-index: 0; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ------------------------------------------------------------------ top bar */
.bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: calc(var(--bar-h) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) var(--gutter) 0;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  background: linear-gradient(180deg, rgba(8, 6, 13, .86), rgba(8, 6, 13, .55));
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(58, 50, 73, .55);
  transition: transform .45s var(--ease);
}
.bar.hide { transform: translateY(-110%); }
.bar-logo img { height: 40px; width: auto; }
.bar-right { display: flex; align-items: center; gap: 18px; }
.bar-status { font-size: .72rem; color: var(--mute); letter-spacing: .06em; white-space: nowrap; }
.bar-status::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--good); margin-right: 8px; box-shadow: 0 0 10px var(--good); vertical-align: 1px; }
@media (max-width: 720px) { .bar-status { display: none; } .bar-logo img { height: 32px; } }

/* ------------------------------------------------------------------ buttons */
.btn {
  --bg: var(--panel-2);
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 26px; border-radius: 999px;
  font: 600 .98rem/1 var(--f-body); letter-spacing: .01em; color: var(--text);
  text-decoration: none; cursor: pointer; border: 1px solid var(--line-2); background: var(--bg);
  transition: transform .25s var(--ease), box-shadow .3s var(--ease), background .3s;
}
.btn:hover { color: #fff; transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-small { min-height: 40px; padding: 0 18px; font-size: .88rem; }
.btn-hot {
  border: 0;
  background: linear-gradient(135deg, #c43dff 0%, #8e1fd6 55%, #5f14a8 100%);
  box-shadow: 0 10px 40px -10px rgba(180, 47, 245, .75), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn-hot::before {
  content: ""; position: absolute; inset: -2px; z-index: -1; border-radius: inherit;
  background: var(--spectrum); filter: blur(10px); opacity: 0; transition: opacity .35s;
}
.btn-hot:hover::before { opacity: .85; }
.btn-ghost { background: rgba(20, 17, 28, .55); backdrop-filter: blur(8px); }
.btn-ghost:hover { border-color: var(--lilac); }
.bar .btn-small { background: linear-gradient(135deg, #c43dff, #7a18c0); border: 0; }

.chip {
  display: inline-flex; align-items: center; min-height: 34px; padding: 0 14px; border-radius: 999px;
  font: 500 .78rem/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase;
  color: var(--mute); background: var(--panel); border: 1px solid var(--line-2); cursor: pointer;
  transition: color .2s, border-color .2s, background .2s;
}
.chip:hover { color: var(--text); border-color: var(--lilac); }
.chip[aria-pressed="true"] { color: #fff; background: rgba(180, 47, 245, .28); border-color: var(--violet); }

/* ------------------------------------------------------------------ type */
.eyebrow { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--lilac); margin: 0 0 18px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
h2 {
  font-family: var(--f-display); font-weight: 780; font-stretch: 112%;
  font-size: clamp(2.05rem, 4.6vw, 3.9rem); line-height: 1.02; letter-spacing: -.015em;
  margin-bottom: 26px;
}
h3 { font: 620 1.14rem/1.3 var(--f-body); letter-spacing: -.005em; margin-bottom: 8px; }
p { margin: 0 0 1.05em; max-width: 64ch; }
.copy p { color: #d8d2e4; }
.aside { font-family: var(--f-display); font-style: italic; font-weight: 520; font-stretch: 96%; color: var(--lilac); font-size: 1.12rem; }
.fineprint { font-size: .8rem; color: var(--dim); margin-top: 18px; }
.figure-note { font-size: .86rem; color: var(--mute); margin-top: 14px; }
.stretch { font-variation-settings: "wdth" var(--wdth, 112); transition: font-variation-settings .9s var(--ease); contain: layout; }
.measuring .stretch { transition: none !important; }

/* ------------------------------------------------------------------ hero */
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(90deg, rgba(8, 6, 13, .88) 0%, rgba(8, 6, 13, .55) 42%, rgba(8, 6, 13, 0) 75%); }
.hero { position: relative; isolation: isolate; padding-top: calc(var(--bar-h) + clamp(40px, 9vh, 110px)); padding-bottom: clamp(70px, 12vh, 140px); min-height: min(100svh, 980px); display: flex; align-items: center; }
.hero-grid { display: grid; justify-items: start; }
.hero-logo { margin: 4px 0 6px -1.5%; width: min(1000px, 100%); }
.hero-logo img { width: 100%; filter: drop-shadow(0 20px 60px rgba(180, 47, 245, .35)); }
.tagline {
  font-family: var(--f-display); font-weight: 820; font-stretch: 118%;
  font-size: clamp(2rem, 5.2vw, 4.5rem); line-height: 1.0; letter-spacing: -.02em;
  margin: 10px 0 24px; max-width: 16ch;
  background: var(--chrome); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .35));
}
.lede { font-size: clamp(1.05rem, 1.5vw, 1.24rem); color: #ded8ea; max-width: 58ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin: 12px 0 44px; }
.hero-stats {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 0; width: 100%; max-width: 980px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
}
.hero-stats > div { background: rgba(13, 10, 21, .78); backdrop-filter: blur(10px); padding: 18px 20px; }
.hero-stats dt { font-size: .68rem; color: var(--mute); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.hero-stats dd { margin: 0; font-size: 1rem; color: var(--mute); }
.hero-stats .num { font-family: var(--f-display); font-weight: 800; font-stretch: 120%; font-size: 2.1rem; color: var(--text); margin-right: 4px; font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.scroll-cue { position: absolute; left: 50%; bottom: 22px; translate: -50% 0; color: var(--mute); text-decoration: none; font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; display: grid; justify-items: center; gap: 10px; }
.scroll-cue span { width: 1px; height: 44px; background: linear-gradient(var(--lilac), transparent); animation: cue 2.4s var(--ease) infinite; transform-origin: top; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
@media (max-height: 760px) { .scroll-cue { display: none; } }

/* ------------------------------------------------------------------ sections */
.band { position: relative; padding-block: clamp(90px, 14vh, 170px); }
.band::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(8, 6, 13, 0) 0%, rgba(8, 6, 13, .72) 18%, rgba(8, 6, 13, .72) 82%, rgba(8, 6, 13, 0) 100%);
}
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 90px); align-items: center; }
.split.flip > :first-child { order: 2; }
@media (max-width: 920px) { .split { grid-template-columns: minmax(0, 1fr); } .split.flip > :first-child { order: 0; } }
.section-head { max-width: 780px; margin-bottom: clamp(36px, 6vh, 64px); }
.section-head p:not(.eyebrow) { color: #d8d2e4; }

/* tables */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: rgba(13, 10, 21, .82); backdrop-filter: blur(10px); }
table { border-collapse: collapse; width: 100%; font: 400 .92rem/1.4 var(--f-mono); font-variant-numeric: tabular-nums; min-width: 460px; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); font-weight: 500; }
tbody tr:last-child td { border-bottom: 0; }
td.r, th.r { text-align: right; }
.bad { color: var(--ember); }
.hot { color: var(--good); font-weight: 600; }
figure { margin: 0; }
figcaption { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); margin-bottom: 12px; }

/* formula */
.formula {
  margin: 28px 0 0; padding: 20px 22px; overflow-x: auto; font-size: .86rem; line-height: 1.7; color: var(--lilac);
  background: rgba(13, 10, 21, .82); border: 1px solid var(--line); border-left: 2px solid var(--violet); border-radius: 10px;
}

/* the loop steps: a real sequence, so it is numbered */
.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 2px; }
.steps li {
  counter-increment: s; position: relative; padding: 18px 20px 16px 74px;
  background: rgba(13, 10, 21, .78); backdrop-filter: blur(8px); border: 1px solid var(--line); border-radius: 12px;
  transition: border-color .4s, transform .5s var(--ease);
}
.steps li::before {
  content: counter(s, decimal-leading-zero); position: absolute; left: 20px; top: 16px;
  font: 600 1.25rem/1 var(--f-mono); color: var(--violet);
}
.steps li:last-child::before { content: "↺"; font-size: 1.5rem; }
.steps li.lit { border-color: var(--violet); transform: translateX(-6px); }
.steps h3 { font-size: 1.02rem; margin-bottom: 4px; }
.steps p { margin: 0; color: var(--mute); font-size: .95rem; }

/* ------------------------------------------------------------------ loop */
.loop { position: relative; height: 290vh; }
.loop-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; padding-top: var(--bar-h); }
.loop-sticky::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(ellipse at 30% 50%, rgba(8, 6, 13, .82), rgba(8, 6, 13, .35) 70%); }
.loop-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(36px, 6vw, 90px); align-items: center; }
@media (max-width: 920px) { .loop { height: auto; } .loop-sticky { position: relative; height: auto; padding-block: 110px; } .loop-grid { grid-template-columns: minmax(0, 1fr); } }
.loop-meter { padding: 26px; border: 1px solid var(--line); border-radius: 18px; background: rgba(13, 10, 21, .8); backdrop-filter: blur(12px); }
.pass { display: flex; align-items: baseline; gap: 12px; color: var(--mute); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.pass strong { font: 800 clamp(3.4rem, 8vw, 6.4rem)/1 var(--f-display); font-stretch: 125%; color: var(--text); letter-spacing: -.03em; font-variant-numeric: tabular-nums; min-width: 3.3ch; }
.meter-row { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; margin: 22px 0 34px; align-items: end; }
.meter-row .meter { grid-column: 1 / -1; grid-row: 2; }
.meter-row .lab { font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.meter-row .val { font-size: 1.1rem; color: var(--ember); }
.meter { position: relative; height: 14px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); overflow: visible; }
.meter-fill { position: absolute; inset: 0 auto 0 0; width: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--ember), var(--ember-2)); box-shadow: 0 0 18px rgba(255, 90, 60, .5); }
.meter-mark { position: absolute; left: calc(var(--at) * 100%); top: -8px; bottom: -8px; width: 2px; background: var(--lilac); }
.meter-mark span { position: absolute; top: 26px; left: 0; white-space: nowrap; font-size: .66rem; color: var(--lilac); letter-spacing: .06em; }
.stems { height: 150px; margin-top: 34px; display: flex; align-items: flex-end; gap: 3px; }
.stems i { flex: 1; display: block; border-radius: 2px 2px 0 0; background: var(--c, var(--violet)); min-height: 2px; }

/* ------------------------------------------------------------------ demo */
.demo-shell { display: grid; gap: 16px; }
.demo-screen { position: relative; border: 1px solid var(--line-2); border-radius: 18px; overflow: hidden; background: #0c0a12; box-shadow: 0 40px 120px -40px rgba(180, 47, 245, .45); }
.demo-screen canvas { width: 100%; height: auto; aspect-ratio: 1200 / 420; display: block; max-width: 100%; }
.demo-readout { display: flex; flex-wrap: wrap; gap: 8px 26px; padding: 12px 18px; border-top: 1px solid var(--line); font-size: .74rem; letter-spacing: .06em; color: var(--mute); text-transform: uppercase; }
.demo-readout b { color: var(--text); font-weight: 600; margin-left: 6px; }
.demo-controls { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 22px; padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: rgba(13, 10, 21, .82); }
@media (max-width: 980px) { .demo-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .demo-controls { grid-template-columns: 1fr; } }
.ctl { display: grid; gap: 8px; }
.ctl > span { display: flex; justify-content: space-between; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); }
.ctl output { color: var(--text); font-variant-numeric: tabular-nums; }
.ctl-toggles, .ctl-audio { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ctl-audio { grid-column: span 2; }
@media (max-width: 520px) { .ctl-audio { grid-column: auto; } }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--violet) var(--fill, 50%), var(--line-2) var(--fill, 50%)); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: var(--line-2); }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--violet); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -7px; border-radius: 50%; background: #f1ecfa; border: 3px solid var(--violet); box-shadow: 0 0 14px rgba(180, 47, 245, .7); }
input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #f1ecfa; border: 3px solid var(--violet); }
.seg { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden; }
.seg-b { font: 500 .74rem/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; padding: 0 14px; min-height: 38px; color: var(--mute); background: var(--panel); border: 0; cursor: pointer; }
.seg-b + .seg-b { border-left: 1px solid var(--line-2); }
.seg-b[aria-pressed="true"] { color: #fff; background: rgba(180, 47, 245, .35); }
#bListen[aria-pressed="true"] { background: var(--good); color: #06110a; border: 0; }

.demo-keys { position: relative; height: 118px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line-2); background: #0c0a12; display: flex; user-select: none; touch-action: manipulation; }
.demo-keys .w { flex: 1; position: relative; border: 0; border-right: 1px solid #9aa3ae; background: linear-gradient(#e7ebf0, #c8ced6); cursor: pointer; padding: 0; }
.demo-keys .w:last-child { border-right: 0; }
.demo-keys .w span { position: absolute; bottom: 8px; left: 0; right: 0; text-align: center; font: 500 .62rem/1 var(--f-mono); color: #5d6570; }
.demo-keys .b { position: absolute; top: 0; height: 62%; z-index: 2; border: 0; border-radius: 0 0 5px 5px; background: linear-gradient(#2a2f37, #14171c); cursor: pointer; padding: 0; }
.demo-keys [aria-pressed="true"].w { background: linear-gradient(#9ff0b8, #58e08c); }
.demo-keys [aria-pressed="true"].b { background: linear-gradient(#6aa7ff, #3b6fd6); }
.demo-keys button:focus-visible { outline-offset: -3px; }

/* ------------------------------------------------------------------ tour */
.tour { position: relative; height: 240vh; }
.tour-sticky { position: sticky; top: 0; min-height: 100vh; min-height: 100svh; padding-top: calc(var(--bar-h) + 40px); padding-bottom: 40px; display: flex; flex-direction: column; justify-content: center; }
.tour .section-head { margin-bottom: 26px; }
.device-stage { perspective: 1600px; perspective-origin: 50% 20%; }
.device {
  position: relative; width: min(1100px, 100%); margin-inline: auto; border-radius: 14px;
  transform-style: preserve-3d; transform: rotateX(var(--rx, 34deg)) rotateZ(var(--rz, -4deg)) scale(var(--sc, .92)) translateY(var(--ty, 30px));
  box-shadow: 0 60px 120px -30px rgba(0, 0, 0, .9), 0 0 0 1px rgba(226, 184, 255, .12), 0 30px 120px -20px rgba(180, 47, 245, .5);
  will-change: transform;
}
.device img { border-radius: 14px; }
.pins { position: absolute; inset: 0; }
.pin {
  position: absolute; left: var(--x); top: var(--y); translate: -50% -50%;
  width: 30px; height: 30px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  background: rgba(8, 6, 13, .55); box-shadow: inset 0 0 0 2px var(--lilac), 0 0 0 6px rgba(180, 47, 245, .22);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.pin::after { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: var(--lilac); }
.pin:hover, .pin[aria-pressed="true"] { transform: scale(1.18); box-shadow: inset 0 0 0 2px #fff, 0 0 0 10px rgba(180, 47, 245, .35), 0 0 30px rgba(180, 47, 245, .9); }
.pin .lbl { position: absolute; left: 50%; bottom: calc(100% + 8px); translate: -50% 0; white-space: nowrap; font: 500 .66rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: #fff; background: rgba(8, 6, 13, .8); padding: 5px 8px; border-radius: 6px; opacity: 0; transition: opacity .2s; pointer-events: none; }
.pin:hover .lbl, .pin[aria-pressed="true"] .lbl { opacity: 1; }
.pin-card { max-width: 620px; margin: 28px auto 0; padding: 16px 20px; border: 1px solid var(--line-2); border-radius: 14px; background: rgba(13, 10, 21, .86); backdrop-filter: blur(10px); min-height: 104px; }
.pin-card strong { font-family: var(--f-display); font-stretch: 115%; font-size: 1.2rem; font-weight: 750; }
.pin-card p { margin: 6px 0 0; color: var(--mute); font-size: .95rem; }
@media (max-width: 720px) { .tour { height: auto; } .tour-sticky { position: relative; } .pin { width: 22px; height: 22px; } .pin::after { inset: 6px; } .pin .lbl { display: none; } }

/* ------------------------------------------------------------------ six pages ribbon */
.pages { position: relative; height: 420vh; }
.pages-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding-top: var(--bar-h); }
.pages-head { margin-bottom: 20px; }
.pages-head h2 { max-width: 20ch; }
.ribbon { display: flex; gap: clamp(20px, 3vw, 40px); padding-inline: max(var(--gutter), calc((100vw - var(--maxw)) / 2 + var(--gutter))); transform: translate3d(var(--tx, 0px), 0, 0); will-change: transform; perspective: 1400px; }
.page-card {
  flex: 0 0 min(560px, 78vw); display: grid; gap: 18px; padding: 16px 16px 20px;
  border: 1px solid var(--line); border-radius: 18px; background: #0d0a15;
  position: relative; transform: rotateY(var(--ry, 0deg)); transition: border-color .3s, box-shadow .3s;
}
.page-card::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; background: #08060d; opacity: var(--dim, 0); pointer-events: none; }
.page-card.focus { border-color: var(--violet); box-shadow: 0 30px 90px -30px rgba(180, 47, 245, .6); }
.page-card img { border-radius: 10px; border: 1px solid var(--line); }
.page-card .tag { font-size: .7rem; letter-spacing: .14em; color: var(--lilac); margin-bottom: 8px; }
.page-card h3 { font-family: var(--f-display); font-weight: 760; font-stretch: 112%; font-size: 1.45rem; line-height: 1.1; }
.page-card p:not(.tag) { color: var(--mute); font-size: .95rem; margin: 0; }
@media (max-width: 720px), (prefers-reduced-motion: reduce) {
  .pages { height: auto; padding-block: 100px; }
  .pages-sticky { position: relative; height: auto; overflow: visible; }
  .ribbon { transform: none !important; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 16px; padding-inline: var(--gutter); }
  .page-card { scroll-snap-align: center; transform: none !important; }
  .page-card::after { display: none; }
}

/* ------------------------------------------------------------------ features */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.feat { background: rgba(13, 10, 21, .9); padding: 26px 24px 24px; transition: background .3s; }
.feat:hover { background: rgba(27, 23, 38, .95); }
.feat .unit { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--violet); margin-bottom: 18px; }
.feat p:not(.unit) { color: var(--mute); font-size: .95rem; margin: 0; }

/* ------------------------------------------------------------------ stills */
.stills { position: relative; padding-block: clamp(90px, 14vh, 160px); overflow: hidden; }
.stills-track { display: flex; gap: 18px; padding-inline: var(--gutter); transform: translate3d(var(--sx, 0px), 0, 0); will-change: transform; }
.stills figure { flex: 0 0 clamp(200px, 22vw, 300px); position: relative; }
.stills img { border-radius: 14px; aspect-ratio: 9 / 16; object-fit: cover; width: 100%; border: 1px solid var(--line); }
.stills figure:nth-child(even) { margin-top: 60px; }
.stills figcaption { margin: 12px 2px 0; font-size: .68rem; }
@media (max-width: 720px) { .stills-track { overflow-x: auto; scroll-snap-type: x mandatory; transform: none !important; } .stills figure { scroll-snap-align: start; flex-basis: 62vw; } .stills figure:nth-child(even) { margin-top: 0; } }

/* ------------------------------------------------------------------ recipes */
.recipe-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 18px; }
@media (max-width: 420px) { .recipe-list { grid-template-columns: 1fr; } }
.recipe { padding: 24px; border-radius: 16px; background: rgba(13, 10, 21, .86); border: 1px solid var(--line); display: grid; align-content: start; }
.recipe h3 { font-family: var(--f-display); font-stretch: 112%; font-weight: 740; font-size: 1.35rem; }
.recipe p { color: var(--mute); font-size: .96rem; }
.patch { margin: 6px 0 0; padding-top: 14px; border-top: 1px dashed var(--line-2); font-size: .76rem !important; line-height: 1.7; color: var(--lilac) !important; letter-spacing: .02em; }

/* ------------------------------------------------------------------ presets */
.preset-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 26px 20px; }
.pg p { font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--violet); margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.pg ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pg li { font-family: var(--f-display); font-stretch: 108%; font-weight: 600; font-size: 1.08rem; transition: color .2s, letter-spacing .4s var(--ease); cursor: default; }
.pg li:hover { color: var(--lilac); letter-spacing: .02em; }

/* ------------------------------------------------------------------ principles */
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 40px; }
@media (max-width: 900px) { .principles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .principles { grid-template-columns: 1fr; } }
.principles > div { padding-top: 18px; border-top: 1px solid var(--line-2); }
.principles p { color: var(--mute); font-size: .96rem; margin: 0; }

/* ------------------------------------------------------------------ specs */
.spec-list { margin: 0; display: grid; border-top: 1px solid var(--line); }
.spec-list > div { display: grid; grid-template-columns: 130px 1fr; gap: 20px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.spec-list dt { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); padding-top: 3px; }
.spec-list dd { margin: 0; }
@media (max-width: 480px) { .spec-list > div { grid-template-columns: 1fr; gap: 4px; } }

/* ------------------------------------------------------------------ get */
.get-card {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(30px, 5vw, 70px);
  padding: clamp(28px, 5vw, 60px); border-radius: 26px; overflow: hidden;
  background: linear-gradient(160deg, rgba(34, 18, 52, .92), rgba(13, 10, 21, .95) 55%);
  border: 1px solid var(--line-2);
}
.get-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--spectrum); }
@media (max-width: 860px) { .get-card { grid-template-columns: minmax(0, 1fr); } }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.ticks li { padding-left: 30px; position: relative; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 14px; height: 7px; border-left: 2px solid var(--good); border-bottom: 2px solid var(--good); transform: rotate(-45deg); }
.get-buy { display: grid; align-content: center; gap: 6px; }
.price { font-family: var(--f-display); font-weight: 820; font-stretch: 120%; font-size: clamp(2rem, 4vw, 3.2rem); line-height: 1; margin: 0; }
.price.soon { font-size: clamp(1.4rem, 2.6vw, 2rem); }
.price-note { color: var(--mute); font-size: .92rem; }
.cta-col { display: grid; gap: 12px; margin: 14px 0 12px; }
.shops { display: flex; flex-wrap: wrap; gap: 8px; }
.shops a { font: 500 .76rem/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; color: var(--text); padding: 10px 14px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(8, 6, 13, .5); }
.shops a:hover { border-color: var(--lilac); }
.shops a::after, .socials a::after { content: " ↗"; color: var(--mute); }

/* ------------------------------------------------------------------ faq */
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: rgba(13, 10, 21, .86); transition: border-color .3s; }
.faq details[open] { border-color: var(--violet-2); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--lilac); border-bottom: 2px solid var(--lilac); transform: translateY(-70%) rotate(45deg); transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq details p { padding: 0 22px 20px; margin: 0; color: var(--mute); }

/* ------------------------------------------------------------------ contact */
.contact .split { align-items: start; }
.contact-direct { margin: 26px 0 30px; display: grid; gap: 8px; }
.lab { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); margin: 10px 0 0; }
.email-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0; }
.email { font-size: 1.15rem; color: var(--text); word-break: break-all; }
.socials { display: flex; flex-wrap: wrap; gap: 8px; }
.socials a { font: 500 .76rem/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; color: var(--text); padding: 10px 14px; border: 1px solid var(--line-2); border-radius: 999px; }
.socials a:hover { border-color: var(--lilac); }
.socials:empty::before { content: "Profiles coming soon"; font: 400 .8rem var(--f-mono); color: var(--dim); }

.contact-form, .news { display: grid; gap: 16px; }
.contact-form { padding: clamp(22px, 3.4vw, 36px); border-radius: 22px; border: 1px solid var(--line-2); background: rgba(13, 10, 21, .9); backdrop-filter: blur(12px); }
.field { display: grid; gap: 7px; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.field label { font-size: .78rem; letter-spacing: .06em; text-transform: uppercase; color: var(--mute); font-family: var(--f-mono); }
.opt { text-transform: none; color: var(--dim); }
input, select, textarea {
  width: 100%; font: 400 1rem/1.4 var(--f-body); color: var(--text); background: var(--void-2);
  border: 1px solid var(--line-2); border-radius: 10px; padding: 12px 14px; transition: border-color .2s, box-shadow .2s;
}
textarea { resize: vertical; min-height: 140px; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--lilac) 50%), linear-gradient(135deg, var(--lilac) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(180, 47, 245, .25); }
input[aria-invalid="true"], textarea[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--ember); }
.field .err { font-size: .82rem; color: var(--ember); }
.check { grid-template-columns: 22px 1fr; align-items: start; gap: 12px; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--violet); }
.check label { text-transform: none; letter-spacing: 0; font-family: var(--f-body); font-size: .92rem; color: var(--mute); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.news-row { display: flex; gap: 10px; flex-wrap: wrap; }
.news-row input { flex: 1 1 220px; }
.form-msg { margin: 0; font-size: .92rem; min-height: 1.4em; }
.form-msg.ok { color: var(--good); }
.form-msg.warn { color: var(--lilac); }
.form-msg.bad { color: var(--ember); }
.contact-form .btn { justify-self: start; }

/* ------------------------------------------------------------------ footer */
.foot { position: relative; padding-block: 70px 50px; border-top: 1px solid var(--line); background: rgba(8, 6, 13, .92); }
.foot-grid { display: grid; gap: 22px; justify-items: start; }
.foot-logo { width: 240px; }
.small { font-size: .74rem; color: var(--dim); margin: 0; max-width: none; }
.small a { color: var(--mute); }

/* ------------------------------------------------------------------ frequency rail */
.rail { position: fixed; right: 18px; top: calc(var(--bar-h) + 40px); bottom: 40px; width: 70px; z-index: 40; pointer-events: none; }
.rail-axis { position: absolute; inset: 0; border-right: 1px solid rgba(58, 50, 73, .8); }
.rail-axis span { position: absolute; right: 8px; top: calc(var(--y) * 100%); translate: 0 -50%; font-size: .56rem; color: var(--dim); letter-spacing: .04em; }
.rail-axis span::after { content: ""; position: absolute; right: -9px; top: 50%; width: 5px; height: 1px; background: var(--line-2); }
.rail-stops { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; }
.rail-stops li { position: absolute; right: -6px; top: calc(var(--y) * 100%); translate: 0 -50%; pointer-events: auto; }
.rail-stops a { display: block; width: 11px; height: 11px; border-radius: 50%; background: var(--void); border: 1px solid var(--line-2); position: relative; }
.rail-stops a span { position: absolute; right: 20px; top: 50%; translate: 0 -50%; white-space: nowrap; font: 500 .62rem/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text); background: rgba(8, 6, 13, .85); padding: 5px 8px; border-radius: 6px; opacity: 0; pointer-events: none; transition: opacity .2s; }
.rail-stops a:hover span, .rail-stops a:focus-visible span { opacity: 1; }
.rail-stops a.on { background: var(--violet); border-color: var(--lilac); box-shadow: 0 0 12px var(--violet); }
.rail-marker { position: absolute; right: -2px; top: calc(var(--m, 0) * 100%); translate: 0 -50%; width: 26px; height: 2px; background: var(--spectrum); }
.rail-marker span { position: absolute; right: 32px; top: 50%; translate: 0 -50%; font-size: .62rem; color: var(--lilac); white-space: nowrap; }
@media (max-width: 1280px) { .rail { display: none; } }

/* ------------------------------------------------------------------ reveal (visible at rest) */
.reveal { transform: translateY(18px); transition: transform .9s var(--ease); }
.reveal.in { transform: none; }

/* ------------------------------------------------------------------ motion preferences */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .loop { height: auto; } .loop-sticky { position: relative; height: auto; padding-block: 110px; }
  .tour { height: auto; } .tour-sticky { position: relative; }
  .device { transform: none !important; }
  .stills-track { overflow-x: auto; transform: none !important; }
  .reveal { transform: none; }
}
