/* Shared styles for every page of the site: index.html and the synth pages (s37.html, j106.html,
   p5.html, d7.html). checkout.html and the download pages keep their own. */
.js-pending [data-price], .js-pending [data-price-each], .js-pending [data-anchor] { visibility: hidden; }
@font-face {
  font-family: "DSEG7";
  src: url("https://cdn.jsdelivr.net/npm/dseg@0.46.0/fonts/DSEG7-Classic/DSEG7Classic-Bold.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --bg: #0d0c0b;
  --panel: #161413;
  --panel-hi: #201d1a;
  --ivory: #efe7d4;
  --ink: #d5cdbb;
  --muted: #989080;
  --line: rgba(239, 231, 212, 0.12);
  --line-strong: rgba(239, 231, 212, 0.3);
  --amber: #f3a83a;
  --red: #ef4b42;
  --tan: #cfa474;
  --teal: #48bfa9;
  --violet: #a98ff0;
  --accent: var(--amber);
  --surface: var(--bg);
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --wrap: 1160px;
  --gutter: clamp(18px, 3.2vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Film grain over everything, the same trick the panels use for brushed metal. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
  opacity: 0.07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, dl, dd, ul, figure { margin: 0; }
h1, h2 { word-spacing: 0.08em; }
ul { padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }

/* ---------- shared hardware parts ---------- */

.label {
  font-size: 0.72rem;
  font-weight: 700;
  font-stretch: 105%;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ivory);
}
.led {
  display: inline-block;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: #3a1a14;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.6);
  transition: background 0.2s, box-shadow 0.2s;
  flex: none;
}
.led.on {
  background: radial-gradient(circle at 35% 30%, #fff3d6, var(--accent) 55%);
  box-shadow: 0 0 10px 2px color-mix(in srgb, var(--accent) 70%, transparent), 0 0 2px var(--accent);
}

/* Key-cap button: sits proud of the panel and travels when pressed. */
.cap {
  --cap-top: #f6eedb;
  --cap-bot: #d6cdb6;
  --cap-side: #6d6656;
  appearance: none;
  border: 0;
  border-radius: 6px;
  padding: 0.85em 1.5em;
  font-weight: 800;
  font-stretch: 108%;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: #1b1712;
  background: linear-gradient(var(--cap-top), var(--cap-bot));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -2px 0 rgba(0, 0, 0, 0.12), 0 4px 0 var(--cap-side), 0 10px 18px rgba(0, 0, 0, 0.55);
  transition: transform 0.08s, box-shadow 0.08s, filter 0.15s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6em;
  white-space: nowrap;
}
.cap:hover { filter: brightness(1.06); }
.cap:active { transform: translateY(3px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), inset 0 -1px 0 rgba(0, 0, 0, 0.12), 0 1px 0 var(--cap-side), 0 3px 6px rgba(0, 0, 0, 0.5); }
.cap[disabled] { filter: saturate(0.5) brightness(0.8); cursor: progress; }
.cap-amber { --cap-top: #ffc15c; --cap-bot: #ec9a22; --cap-side: #8a5510; }
.cap-small { padding: 0.6em 1.05em; font-size: 0.72rem; }
.cap-large { padding: 1.05em 2.2em; font-size: 0.95rem; }
.cap s { margin-right: 0.5em; font-weight: 600; opacity: 0.55; }
@media (max-width: 520px) {
  .cap-large { max-width: 100%; padding: 1em 1.1em; font-size: 0.8rem; letter-spacing: 0.08em; white-space: normal; flex-wrap: wrap; row-gap: 2px; }
  .cap-large s, .cap-large span { white-space: nowrap; }
}

/* Panel group box with the legend breaking the top rule, as on the P5. */
.group {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 26px 22px 20px;
}
.group > .legend {
  position: absolute;
  top: 0; left: 50%;
  transform: translate(-50%, -52%);
  padding: 0 0.9em;
  background: var(--surface);
  white-space: nowrap;
}

/* ---------- header ---------- */

.top {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { display: block; height: 36px; width: auto; max-width: none; margin-left: -4px; }
.top nav { display: flex; align-items: center; gap: clamp(12px, 2.4vw, 28px); }
.top nav > a:not(.cap) { font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; text-decoration: none; color: var(--muted); transition: color 0.15s; }
.top nav > a:not(.cap):hover { color: var(--ivory); }
@media (max-width: 720px) { .top nav > a:not(.cap) { display: none; } }
@media (max-width: 420px) { .brand img { height: 31px; } }

/* Products menu: a button in the nav that drops a panel listing the four synths. It opens on
   click (nav.js), and on hover where there is a mouse. */
.menu { position: relative; }
.menu-btn {
  appearance: none; border: 0; background: none; padding: 8px 0;
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted);
  transition: color 0.15s;
}
.menu-btn:hover, .menu.open .menu-btn { color: var(--ivory); }
.menu-btn svg { width: 9px; height: 9px; fill: none; stroke: currentColor; stroke-width: 1.8; transition: transform 0.2s; }
.menu.open .menu-btn svg { transform: rotate(180deg); }
.menu-panel {
  display: none;
  position: absolute; top: calc(100% + 14px); right: -120px; z-index: 60;
  width: 440px;
  padding: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  background: linear-gradient(#1f1c1a, #141211);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 30px 60px -12px rgba(0, 0, 0, 0.9);
}
/* Bridges the gap under the button, so the panel stays open on its way to the pointer. */
.menu-panel::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.menu.open .menu-panel { display: block; }
@media (hover: hover) and (min-width: 721px) { .menu:hover .menu-panel { display: block; } }
.menu-panel ul { display: grid; gap: 2px; }
.menu-panel li a {
  display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 14px;
  padding: 10px; border-radius: 8px;
  text-decoration: none; color: var(--ink);
  transition: background 0.15s;
}
.menu-panel li a:hover, .menu-panel li a:focus-visible { background: rgba(255, 255, 255, 0.05); }
.menu-panel li a[aria-current="page"] { background: rgba(255, 255, 255, 0.06); box-shadow: inset 2px 0 0 var(--accent); }
.menu-panel img { width: 92px; height: 38px; object-fit: cover; object-position: center; border-radius: 4px; border: 1px solid var(--line); }
.menu-name { display: flex; align-items: center; gap: 8px; font-size: 0.98rem; font-weight: 800; font-stretch: 110%; letter-spacing: 0.04em; color: var(--ivory); }
.menu-name .led { width: 7px; height: 7px; }
.menu-name em { font-style: normal; font-family: var(--mono); font-size: 0.62rem; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.menu-desc { display: block; margin-top: 3px; font-size: 0.82rem; line-height: 1.4; color: var(--muted); }
.menu-foot { margin-top: 6px; padding: 12px 10px 4px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 0.82rem; color: var(--muted); }
.menu-foot a { font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--amber); text-decoration: none; white-space: nowrap; }
.menu-foot a:hover { text-decoration: underline; text-underline-offset: 4px; }
@media (max-width: 720px) {
  .menu { position: static; }
  .menu-panel { position: fixed; top: 62px; left: 0; right: 0; width: auto; max-height: calc(100dvh - 62px); overflow-y: auto; border-radius: 0 0 12px 12px; border-inline: 0; }
  .menu-panel li a { grid-template-columns: 76px 1fr; }
  .menu-panel img { width: 76px; height: 34px; }
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: 0 0 clamp(40px, 6vw, 72px);
  background: var(--bg);
}
/* The top of the hero, with the background video of the four panels being played. */
.hero-top {
  position: relative;
  isolation: isolate;
  padding: clamp(48px, 8vw, 96px) 0 clamp(56px, 7vw, 96px);
  overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -1; background: #0a0908 url("video/hero-poster.jpg") center / cover no-repeat; }
.hero-bg video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.2s ease; }
.hero-bg video.on { opacity: 1; }
/* Darkens the footage where the words sit, keeps the amber glow, and fades into the page below. */
.hero-bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(900px 480px at 50% -80px, rgba(243, 168, 58, 0.18), transparent 70%),
    radial-gradient(ellipse 70% 62% at 50% 50%, rgba(10, 9, 8, 0.8), rgba(10, 9, 8, 0.5) 70%, rgba(10, 9, 8, 0.3)),
    linear-gradient(rgba(13, 12, 11, 0.55), transparent 22%, transparent 66%, var(--bg));
}
.bg-toggle {
  position: absolute; right: max(12px, calc((100% - var(--wrap)) / 2)); bottom: 18px; z-index: 1;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 11px;
  border: 1px solid var(--line); border-radius: 99px;
  background: rgba(10, 9, 8, 0.55);
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.bg-toggle:hover { color: var(--ivory); border-color: var(--line-strong); }
.bg-toggle .icon { width: 9px; height: 9px; }
.hero-copy { text-align: center; max-width: 1100px; margin-inline: auto; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.eyebrow i { font-style: normal; color: var(--line-strong); }
h1 {
  margin-top: 22px;
  font-size: clamp(1.85rem, 5.2vw, 4.3rem);
  font-weight: 800;
  font-stretch: 112%;
  line-height: 0.94;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  color: var(--ivory);
  text-wrap: balance;
}
h1 em { display: block; font-style: normal; color: var(--amber); text-shadow: 0 0 42px rgba(243, 168, 58, 0.35); }
.lede { margin: 26px auto 0; max-width: 640px; font-size: clamp(1.02rem, 1.5vw, 1.2rem); color: var(--ink); text-wrap: pretty; }
.lede strong { color: var(--ivory); font-weight: 600; }

/* ---------- buy / free ---------- */

.hero-buy { margin-top: 34px; display: grid; justify-items: center; gap: 14px; }
.hero-buy small { font-size: 0.86rem; color: var(--muted); }
.or { margin: 30px auto 0; max-width: 560px; display: flex; align-items: center; gap: 14px; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }
.hero .signup { margin-top: 18px; }
.offer { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; font-size: 0.92rem; }
.offer a:not(.cap) { color: var(--ivory); text-underline-offset: 4px; text-decoration-color: var(--line-strong); }
.offer a:not(.cap):hover { text-decoration-color: var(--accent); }
.offer .offer-note { color: var(--muted); }
.tag { padding: 0.3em 0.75em; border-radius: 4px; background: var(--accent); color: #16130f; font-size: 0.66rem; font-weight: 800; font-stretch: 108%; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; }

/* ---------- signup form ---------- */

.signup { margin: 34px auto 0; max-width: 560px; }
.signup-row {
  display: flex; gap: 10px;
  padding: 8px 8px 12px;
  border-radius: 12px;
  background: linear-gradient(#0a0908, #151311);
  border: 1px solid var(--line);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.7), 0 1px 0 rgba(255, 255, 255, 0.05);
}
.signup input[type="email"] {
  flex: 1; min-width: 0;
  padding: 0.8em 1em;
  border: 1px solid transparent;
  border-radius: 7px;
  background: #1b2420;
  color: #c8f5df;
  font-family: var(--mono);
  font-size: 0.98rem;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6);
  caret-color: var(--amber);
}
.signup input[type="email"]::placeholder { color: #6f8a7c; }
.signup input[type="email"]:focus { outline: none; border-color: var(--amber); box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6), 0 0 0 3px rgba(243, 168, 58, 0.18); }
.signup .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.signup-note { margin-top: 14px; font-size: 0.86rem; color: var(--muted); text-align: center; text-wrap: balance; }
.signup-note.error { color: #ff8b7e; }
.signup-done {
  display: none;
  align-items: center; gap: 14px;
  padding: 18px 20px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--teal) 50%, transparent);
  background: rgba(72, 191, 169, 0.08);
  text-align: left;
}
.signup-done .led { --accent: var(--teal); width: 12px; height: 12px; }
.signup-done b { display: block; color: var(--ivory); font-size: 1.05rem; }
.signup-done span { font-size: 0.92rem; color: var(--ink); overflow-wrap: anywhere; }
.signup.sent .signup-row, .signup.sent .signup-note { display: none; }
.signup.sent .signup-done { display: flex; }
@media (max-width: 560px) {
  .signup-row { flex-direction: column; padding: 10px 10px 14px; }
  .signup .cap { width: 100%; }
}

/* ---------- hero console: pick a synth ---------- */

.console { margin-top: 0; }
.console-bar {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px 28px; flex-wrap: wrap;
  padding: 16px 20px 14px;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(#211e1b, #171513);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.readout { display: flex; align-items: stretch; gap: 10px; min-width: 0; }
.seg {
  position: relative;
  width: 54px; padding: 8px 0;
  border-radius: 6px;
  background: #1a0706;
  box-shadow: inset 0 2px 8px #000;
  font-family: "DSEG7", var(--mono);
  font-weight: 700;
  font-size: 1.7rem;
  line-height: 1;
  text-align: center;
  color: #ff3b2a;
  text-shadow: 0 0 12px rgba(255, 59, 42, 0.8);
}
.seg::before { content: "8"; position: absolute; inset: 8px 0 auto; color: rgba(255, 59, 42, 0.1); text-shadow: none; }
.seg span { position: relative; }
.lcd {
  display: flex; flex-direction: column; justify-content: center;
  min-width: 0; padding: 6px 14px;
  border-radius: 6px;
  background: linear-gradient(#b9c7a4, #a4b38e);
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.55);
  font-family: var(--mono);
  color: #1c2416;
  line-height: 1.25;
}
.lcd b { font-size: 0.98rem; letter-spacing: 0.06em; }
.lcd span { font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.switches { display: flex; gap: clamp(10px, 2vw, 22px); }
.switch {
  appearance: none; border: 0; background: none; padding: 0;
  display: grid; justify-items: center; gap: 8px;
}
.switch .key {
  width: 52px; height: 40px;
  border-radius: 5px;
  background: linear-gradient(#3a3633, #26231f);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14), 0 3px 0 #0a0908, 0 6px 10px rgba(0, 0, 0, 0.6);
  transition: transform 0.08s, box-shadow 0.08s, background 0.15s;
}
.switch:hover .key { background: linear-gradient(#45403c, #2c2824); }
.switch:active .key, .switch[aria-selected="true"] .key { transform: translateY(2px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1), 0 1px 0 #0a0908, 0 2px 4px rgba(0, 0, 0, 0.6); }
.switch .label { font-size: 0.68rem; color: var(--muted); transition: color 0.15s; }
.switch[aria-selected="true"] .label { color: var(--ivory); }

.stage-scroll {
  border: 1px solid var(--line);
  border-radius: 0 0 12px 12px;
  background: #050505;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  position: relative;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9);
}
.stage { position: relative; aspect-ratio: 2.8; min-width: 680px; }
.stage img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover; object-position: top center;
  opacity: 0;
  transition: opacity 0.45s ease;
}
.stage img.on { opacity: 1; }
.console-glow {
  height: 90px; margin: -30px 6% 0;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 34%, transparent), transparent);
  filter: blur(26px);
  transition: background 0.5s;
  pointer-events: none;
}
.swipe-hint { display: none; margin-top: 10px; text-align: center; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 720px) {
  .swipe-hint { display: block; }
  .console-bar { justify-content: center; }
  .console-demos { justify-content: center; padding-inline: 14px; }
  .console-demos [data-console-now] { margin-left: 0; width: 100%; text-align: center; }
  .readout { width: 100%; }
  .lcd { flex: 1; }
  .console-glow { display: none; }
}

/* ---------- audio demos ---------- */

.tint { --cap-top: color-mix(in srgb, var(--accent) 78%, white); --cap-bot: var(--accent); --cap-side: color-mix(in srgb, var(--accent) 45%, black); }
.icon { width: 12px; height: 12px; flex: none; fill: currentColor; }
.icon-stop, [data-state="playing"] .icon-play { display: none; }
[data-state="playing"] .icon-stop { display: block; }
.console-play { align-self: center; min-width: 9.2em; }
/* Demo select: one small latching button per clip, as on a preset row. */
.picks { display: flex; flex-wrap: wrap; gap: 8px; }
.pick {
  appearance: none;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px 6px 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: linear-gradient(#2c2825, #1c1917);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 2px 0 #0a0908;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
  transition: color 0.15s, border-color 0.15s, transform 0.08s, box-shadow 0.08s;
}
.pick:hover { color: var(--ivory); }
.pick .led { width: 7px; height: 7px; }
.pick:active, .pick[aria-pressed="true"] { transform: translateY(1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06), 0 1px 0 #0a0908; }
.pick[aria-pressed="true"] { color: var(--ivory); border-color: color-mix(in srgb, var(--accent) 60%, transparent); }
.console-demos {
  display: flex; align-items: center; gap: 10px 16px; flex-wrap: wrap;
  padding: 10px 20px;
  border: 1px solid var(--line);
  border-bottom: 0;
  background: #131110;
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
}
.console-demos:empty { display: none; }
.console-demos b { font-weight: 500; letter-spacing: 0.12em; }
.console-demos [data-console-now] { margin-left: auto; color: var(--ivory); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player {
  margin-top: 26px;
  display: grid; gap: 12px;
  padding: 12px 16px 14px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(#0a0908, #141210);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.6);
}
.player:empty { display: none; }
.player-row { display: flex; align-items: center; gap: 16px; }
.player-btn { width: 46px; height: 42px; padding: 0; flex: none; }
.player-btn .icon { width: 14px; height: 14px; }
.player-main { flex: 1; min-width: 0; }
.wave { display: flex; align-items: center; gap: 2px; height: 38px; cursor: pointer; touch-action: none; }
.wave i { flex: 1; min-width: 1px; height: var(--h); border-radius: 1px; background: rgba(239, 231, 212, 0.2); transition: background 0.12s; }
.wave i.on { background: var(--accent); box-shadow: 0 0 6px color-mix(in srgb, var(--accent) 50%, transparent); }
.player-cap { margin-top: 8px; display: flex; justify-content: space-between; gap: 6px 14px; flex-wrap: wrap; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.player-cap b { font-weight: 500; color: var(--ivory); }

/* ---------- strip ---------- */

.strip { border-block: 1px solid var(--line); background: var(--panel); }
.strip ul { display: grid; grid-template-columns: repeat(4, 1fr); }
.strip li { padding: 22px 18px; text-align: center; border-left: 1px solid var(--line); }
.strip li:first-child { border-left: 0; }
.strip b { display: block; font-size: 0.95rem; font-weight: 800; font-stretch: 110%; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ivory); }
.strip span { font-size: 0.82rem; color: var(--muted); }
@media (max-width: 760px) {
  .strip ul { grid-template-columns: repeat(2, 1fr); }
  .strip li:nth-child(3) { border-left: 0; }
  .strip li:nth-child(n + 3) { border-top: 1px solid var(--line); }
}

/* ---------- the four synths ---------- */

.synth { padding: clamp(64px, 9vw, 120px) 0; border-bottom: 1px solid var(--line); }
.synth:nth-of-type(even) { --surface: var(--panel); background: var(--panel); }
.synth .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.synth:nth-of-type(even) .synth-text { order: 2; }
.synth-kicker { display: flex; align-items: center; gap: 12px; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.synth-kicker::after { content: ""; flex: 1; height: 1px; background: var(--line-strong); }
.synth h2 { margin-top: 18px; display: flex; align-items: baseline; gap: 0.35em; flex-wrap: wrap; font-size: clamp(3.2rem, 7vw, 5.4rem); font-weight: 800; font-stretch: 112%; line-height: 0.9; letter-spacing: -0.02em; color: var(--ivory); }
.synth h2 small { font-size: 0.26em; font-weight: 700; font-stretch: 105%; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.synth-pitch { margin-top: 20px; font-size: 1.1rem; color: var(--ink); text-wrap: pretty; }
.synth-pitch strong { color: var(--ivory); font-weight: 600; }
.specs { margin-top: 34px; }
.specs .legend { color: var(--accent); }
.specs dl { display: grid; grid-template-columns: auto 1fr; gap: 9px 18px; font-size: 0.9rem; }
.specs dt { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); padding-top: 0.2em; }
.specs dd { color: var(--ivory); }
.uses { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.uses li { padding: 0.3em 0.8em; border: 1px solid var(--line); border-radius: 99px; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink); }
.shot { position: relative; }
.shot button {
  appearance: none; display: block; width: 100%; padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  overflow: hidden;
  background: #050505;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.9), 0 0 0 6px rgba(255, 255, 255, 0.02);
  cursor: zoom-in;
}
.shot img { width: 100%; aspect-ratio: 1.46; object-fit: cover; transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.shot button:hover img { transform: scale(1.03); }
.shot::before {
  content: ""; position: absolute; inset: 12% 8% -6%; z-index: -1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--accent) 30%, transparent), transparent);
  filter: blur(34px);
}
.shot figcaption { margin-top: 14px; display: flex; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.shot figcaption b { font-weight: 500; color: var(--accent); }
@media (max-width: 900px) {
  .synth .wrap { grid-template-columns: 1fr; }
  .synth:nth-of-type(even) .synth-text { order: 0; }
}

/* ---------- modelling facts ---------- */

.section { padding: clamp(64px, 9vw, 120px) 0; border-bottom: 1px solid var(--line); }
.section-head { max-width: 760px; }
.section-head .label { color: var(--amber); }
.section-head h2 { margin-top: 14px; font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 800; font-stretch: 110%; line-height: 1; letter-spacing: -0.015em; text-transform: uppercase; color: var(--ivory); text-wrap: balance; }
.section-head p { margin-top: 18px; font-size: 1.08rem; text-wrap: pretty; }
.facts { margin-top: 48px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line-strong); border-radius: 12px; overflow: hidden; }
.fact { padding: 28px 24px 30px; border-left: 1px solid var(--line); background: linear-gradient(rgba(255, 255, 255, 0.025), transparent); }
.fact:first-child { border-left: 0; }
.fact .who { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; color: var(--muted); }
.fact .num { margin-top: 18px; font-family: var(--mono); font-weight: 700; font-size: clamp(1.7rem, 2.6vw, 2.3rem); line-height: 1; color: var(--accent); white-space: nowrap; }
.fact .num small { font-size: 0.5em; font-weight: 500; margin-left: 0.2em; }
.fact p { margin-top: 14px; font-size: 0.93rem; color: var(--ink); }
.facts.three { grid-template-columns: repeat(3, 1fr); }
.facts.five { grid-template-columns: repeat(5, 1fr); }
.facts.five .fact { padding-left: 20px; padding-right: 20px; }
.facts.three .num { color: var(--ivory); }
@media (max-width: 960px) {
  .facts:not(.three) { grid-template-columns: repeat(2, 1fr); }
  .facts:not(.three) .fact:nth-child(3) { border-left: 0; }
  .facts:not(.three) .fact:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .facts.five .fact:nth-child(5) { grid-column: 1 / -1; border-left: 0; }
}
@media (max-width: 760px) {
  .facts.three { grid-template-columns: 1fr; }
  .facts.three .fact { border-left: 0; }
  .facts.three .fact + .fact { border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .facts { grid-template-columns: 1fr; }
  .fact { border-left: 0; }
  .fact + .fact { border-top: 1px solid var(--line); }
}

/* ---------- patches ---------- */

.patches { --surface: var(--panel); background: var(--panel); --accent: var(--teal); }
.patches .section-head .label { color: var(--teal); }
.patches figure { margin-top: 44px; overflow-x: auto; border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.9); }
.patches figure img { width: 100%; min-width: 760px; }
.patches ul { margin-top: 30px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px 40px; }
.patches li { display: flex; gap: 14px; align-items: baseline; font-size: 0.98rem; }
.patches li code { font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.08em; color: var(--teal); flex: none; width: 3.4em; }
@media (max-width: 700px) { .patches ul { grid-template-columns: 1fr; } }

/* ---------- final call ---------- */

/* The glow is sized to the section and fades out before its edges, so no hard line shows where the FAQ starts. */
.final { padding: clamp(64px, 9vw, 120px) 0; background: radial-gradient(ellipse 75% 42% at 50% 56%, rgba(243, 168, 58, 0.13), transparent); }
.faceplate {
  position: relative;
  padding: clamp(40px, 6vw, 72px) clamp(20px, 5vw, 64px);
  border-radius: 14px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(#22201d, #151311);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 40px 80px -30px #000;
  text-align: center;
}
.screw { position: absolute; width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #8a857c, #2c2926 70%); box-shadow: 0 1px 2px #000; }
.screw::after { content: ""; position: absolute; inset: 5px 2px; background: #111; transform: rotate(var(--r, 30deg)); }
.screw:nth-child(1) { top: 12px; left: 12px; }
.screw:nth-child(2) { top: 12px; right: 12px; --r: 110deg; }
.screw:nth-child(3) { bottom: 12px; left: 12px; --r: 75deg; }
.screw:nth-child(4) { bottom: 12px; right: 12px; --r: 160deg; }
.faceplate h2 { font-size: clamp(2.1rem, 5.6vw, 4.2rem); font-weight: 800; font-stretch: 112%; line-height: 0.96; letter-spacing: -0.015em; text-transform: uppercase; color: var(--ivory); text-wrap: balance; }
.faceplate h2 em { font-style: normal; color: var(--amber); }
.faceplate > p { margin: 18px auto 0; max-width: 560px; font-size: 1.08rem; }
.offers { margin: 40px auto 0; max-width: 900px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; text-align: left; }
.offer-card { display: flex; flex-direction: column; gap: 16px; padding: 26px 24px 22px; border: 1px solid var(--line); border-radius: 10px; background: rgba(0, 0, 0, 0.28); }
.offer-main { border-color: color-mix(in srgb, var(--amber) 55%, transparent); box-shadow: 0 0 44px -12px rgba(243, 168, 58, 0.3); }
.offer-card .label { color: var(--accent); }
.price { font-size: clamp(2.2rem, 4.4vw, 3.1rem); font-weight: 800; font-stretch: 112%; line-height: 1; color: var(--ivory); }
.price s { margin-right: 0.35em; font-size: 0.45em; font-weight: 600; color: var(--muted); }
.price small { margin-left: 0.3em; font-size: 0.3em; font-weight: 700; font-stretch: 105%; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.offer-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; }
.offer-list li { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; }
.offer-list b { font-weight: 800; font-stretch: 110%; color: var(--ivory); }
.offer-list li > span:last-child { flex-basis: 100%; font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.offer-text { font-size: 0.98rem; }
.offer-card > .cap { margin-top: auto; }
.offer-card .signup { margin: auto 0 0; max-width: none; }
.offer-card .signup-row { flex-direction: column; padding: 10px 10px 14px; }
.offer-card .signup .cap { width: 100%; }
.offer-card .signup-note { margin-top: 0; text-align: left; }
.offer-card .signup .signup-note { margin-top: 12px; }
@media (max-width: 760px) { .offers { grid-template-columns: 1fr; } }

/* ---------- faq ---------- */

.faq { padding: 0 0 clamp(64px, 9vw, 110px); }
.faq .wrap { max-width: 820px; }
.faq h2 { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--amber); margin-bottom: 18px; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 0; display: flex; justify-content: space-between; gap: 20px; font-size: 1.1rem; font-weight: 600; color: var(--ivory); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--mono); color: var(--amber); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; max-width: 680px; color: var(--ink); }
.faq-cta { margin-top: 48px; text-align: center; }
.faq-cta p { font-size: 1.05rem; color: var(--ivory); text-wrap: balance; }

/* A pair of buttons: the set, and the free J106. */
.cta-row { margin-top: 36px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 18px; }
.faq-cta .cta-row { margin-top: 20px; }

/* ---------- footer ---------- */

footer { border-top: 1px solid var(--line); padding: 34px 0 48px; font-size: 0.8rem; color: var(--muted); }
footer .wrap { display: flex; justify-content: space-between; gap: 18px 40px; flex-wrap: wrap; }
footer p { max-width: 640px; }

/* ---------- lightbox ---------- */

dialog.lightbox { width: min(1500px, 96vw); max-width: none; padding: 0; border: 1px solid var(--line-strong); border-radius: 12px; background: #050505; color: var(--ink); overflow: hidden; }
dialog.lightbox::backdrop { background: rgba(0, 0, 0, 0.86); backdrop-filter: blur(4px); }
.lightbox-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 10px 10px 18px; background: var(--panel-hi); }
.lightbox-scroll { overflow-x: auto; }
.lightbox-scroll img { width: 100%; min-width: 900px; }

/* ---------- synth pages (s37.html, j106.html, p5.html, d7.html) ---------- */

.crumbs { display: flex; gap: 10px; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ivory); }
.crumbs span[aria-hidden] { color: var(--line-strong); }
.product-hero { position: relative; padding: clamp(36px, 6vw, 72px) 0 clamp(56px, 8vw, 100px); border-bottom: 1px solid var(--line); overflow: hidden; }
.product-hero::before {
  content: ""; position: absolute; inset: -40% -10% auto; height: 120%; z-index: -1;
  background: radial-gradient(ellipse 50% 50% at 70% 40%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%);
}
.product-hero .grid { margin-top: 30px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.product-hero h1 { margin-top: 18px; display: flex; align-items: baseline; gap: 0.3em; flex-wrap: wrap; font-size: clamp(3.6rem, 9vw, 6.6rem); line-height: 0.88; letter-spacing: -0.02em; }
.product-hero h1 small { flex-basis: 100%; margin-top: 0.5em; line-height: 1.3; font-size: 0.22em; font-weight: 700; font-stretch: 105%; letter-spacing: 0.14em; color: var(--muted); }
.product-hero .synth-pitch { font-size: 1.16rem; }
.product-hero .cta-row { justify-content: flex-start; margin-top: 30px; }
.product-hero .signup { margin: 28px 0 0; }
.product-hero .signup-note { text-align: left; }
.formats { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.formats i { font-style: normal; color: var(--line-strong); }
/* "Or buy the S37 on its own" under a synth page's offer: a plain link, so the set stays the main button. */
.buy-one { margin-top: 16px; font-size: 0.9rem; color: var(--muted); }
.buy-one a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
.buy-one a:hover { color: var(--ivory); text-decoration-color: var(--accent); }
@media (max-width: 900px) { .product-hero .grid { grid-template-columns: 1fr; } }

.listen { --surface: var(--panel); background: var(--panel); }
.listen .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.listen .player { margin-top: 0; }
@media (max-width: 900px) { .listen .wrap { grid-template-columns: 1fr; } }

.panel-wide { margin-top: 44px; }
.panel-wide button { appearance: none; display: block; width: 100%; padding: 0; border: 1px solid var(--line-strong); border-radius: 12px; overflow-x: auto; background: #050505; cursor: zoom-in; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.9); }
.panel-wide img { width: 100%; min-width: 760px; }
.panel-wide figcaption { margin-top: 14px; display: flex; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.panel-wide figcaption b { font-weight: 500; color: var(--accent); }

.inside .wrap { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.inside .specs { margin-top: 0; }
.inside .fact { border: 1px solid var(--line-strong); border-radius: 12px; }
.inside .fact .num { font-size: clamp(2.2rem, 4vw, 3rem); }
@media (max-width: 900px) { .inside .wrap { grid-template-columns: 1fr; } }

/* ---------- demo video (synth pages) ---------- */

.demo-video { margin-top: 44px; }
.demo-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #050505; border: 1px solid var(--line-strong); border-radius: 12px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.9); }
.demo-video figcaption { margin-top: 14px; font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

.others { margin-top: 44px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.others a { display: grid; gap: 14px; padding: 14px 14px 18px; border: 1px solid var(--line); border-radius: 12px; background: linear-gradient(rgba(255, 255, 255, 0.025), transparent); text-decoration: none; color: var(--ink); transition: border-color 0.15s, transform 0.15s; }
.others a:hover { border-color: color-mix(in srgb, var(--accent) 60%, transparent); transform: translateY(-2px); }
.others img { width: 100%; aspect-ratio: 2.6; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.others .menu-desc { font-size: 0.88rem; }
@media (max-width: 960px) { .others { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 760px) { .others { grid-template-columns: 1fr; } }

/* A link from each synth on the home page to its own page. */
.more { color: var(--ivory); font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; text-underline-offset: 4px; text-decoration-color: var(--line-strong); white-space: nowrap; }
.more:hover { text-decoration-color: var(--accent); }

/* ---------- motion ---------- */

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .stage img, .shot img, .cap { transition: none; }
}

/* Black Friday counter beside the bundle offers (countdown.js). Hidden until the script fills it. */
.sale { --accent: var(--amber); display: inline-flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 4px 9px; margin: 0; padding: 7px 14px; border: 1px solid color-mix(in srgb, var(--amber) 45%, transparent); border-radius: 999px; background: color-mix(in srgb, var(--amber) 9%, transparent); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; color: var(--ink); }
.sale[hidden] { display: none; }
.sale [data-sale-name] { font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--amber); }
.sale b { font-family: "JetBrains Mono", ui-monospace, monospace; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ivory); }
.offer-card .sale { align-self: flex-start; }
.cta-row + .sale, .signup + .sale { margin-top: 14px; }
