:root {
  color-scheme: dark;
  --grotesk: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Space Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
  --bg: #151310;
  --bg-2: #1c1915;
  --panel: #28231e;
  --panel-2: #211d19;
  --inset: #171411;
  --ink: #f1ece4;
  --ink-dim: #c4b8ac;
  --ink-mut: #91877d;
  --line: rgba(241, 236, 228, .16);
  --line-2: rgba(241, 236, 228, .26);
  --accent: #d86b49;
  --accent-2: #6aa2d8;
  --meter: #74b586;
  --on-accent: #fff7f0;
  --shadow: 0 24px 70px rgba(0, 0, 0, .36);
  --radius: 18px;
  --radius-sm: 10px;
  --max: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100%;
  width: 100%;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--grotesk);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(216, 107, 73, .18);
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background:
    radial-gradient(circle at 78% 12%, rgba(106, 162, 216, .13), transparent 32rem),
    radial-gradient(circle at 18% 4%, rgba(216, 107, 73, .14), transparent 26rem),
    linear-gradient(180deg, #211d18 0%, #151310 44%, #11100e 100%);
}

body::after {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  opacity: .2;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.88' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(216, 107, 73, .46);
  outline-offset: 3px;
}

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  transform: translateY(-160%);
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--bg);
  padding: .7rem .95rem;
  text-decoration: none;
  transition: transform .15s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 72px;
  padding: 12px max(22px, env(safe-area-inset-left)) 12px max(22px, env(safe-area-inset-right));
  border-bottom: 1px solid var(--line);
  background: rgba(30, 26, 22, .9);
  backdrop-filter: blur(18px);
}

.brand-mark {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
}

.brand-reel {
  display: block;
  width: 32px;
  height: 32px;
  color: var(--accent);
}

.brand-name {
  display: block;
  color: var(--ink);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}

.brand-name span {
  color: var(--accent);
}

.brand-kicker {
  display: block;
  margin-top: 4px;
  color: var(--ink-mut);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .18em;
  line-height: 1.1;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: var(--radius-sm);
  background: var(--inset);
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border-radius: 8px;
  color: var(--ink-dim);
  padding: 8px 14px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .15s ease, color .15s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--panel);
  color: var(--ink);
}

.site-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-sm);
  background: var(--panel-2);
  color: var(--ink);
  padding: 10px 16px;
  font-weight: 700;
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .1s ease, box-shadow .15s ease;
}

.site-btn:hover {
  border-color: rgba(255, 255, 255, .38);
  background: #302a24;
}

.site-btn:active {
  transform: translateY(1px);
}

.site-btn.primary {
  border-color: rgba(216, 107, 73, .78);
  background: var(--accent);
  color: var(--on-accent);
  box-shadow: 0 16px 34px rgba(216, 107, 73, .2);
}

.site-btn.primary:hover {
  background: #e17956;
}

.site-btn.ghost {
  background: rgba(17, 16, 14, .5);
}

.header-btn {
  flex: 0 0 auto;
}

.hero-section {
  position: relative;
  display: grid;
  align-items: center;
  min-height: 680px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  padding: 96px 24px 88px;
  isolation: isolate;
}

.hero-product {
  position: absolute;
  inset: 40px -120px 24px 24%;
  z-index: -1;
  min-width: 760px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgba(33, 29, 25, .86);
  box-shadow: var(--shadow);
  transform: rotate(-1.2deg);
  transform-origin: center;
}

.hero-product::before {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  content: "";
  background: linear-gradient(90deg, rgba(21, 19, 16, .88), rgba(21, 19, 16, .42) 42%, rgba(21, 19, 16, .2));
}

.product-topbar,
.product-grid {
  position: relative;
}

.product-topbar {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 70px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}

.product-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 24px;
  font-weight: 700;
}

.product-dotgrid {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--accent) 0 2px, transparent 2.6px) 0 0 / 9px 9px,
    rgba(216, 107, 73, .12);
  box-shadow: inset 0 0 0 1px rgba(216, 107, 73, .4);
}

.product-tabs {
  display: flex;
  gap: 4px;
  margin-left: auto;
  padding: 4px;
  border-radius: 12px;
  background: var(--inset);
}

.product-tabs span {
  min-width: 92px;
  border-radius: 9px;
  padding: 8px 14px;
  color: var(--ink-dim);
  text-align: center;
}

.product-tabs span:first-child {
  background: var(--panel);
  color: var(--ink);
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  padding: 20px;
}

.product-panel {
  min-height: 160px;
  border: 1px solid var(--line-2);
  border-radius: 20px;
  background: rgba(40, 35, 30, .78);
  padding: 22px;
}

.panel-label,
.mono-label {
  display: block;
  color: var(--ink-mut);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.lcd {
  display: grid;
  width: 116px;
  height: 70px;
  margin-top: 18px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  place-items: center;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 32px;
  font-weight: 700;
}

.knob-row {
  display: flex;
  gap: 18px;
  margin-top: 18px;
}

.knob {
  width: 56px;
  height: 56px;
  border: 3px solid var(--line-2);
  border-radius: 50%;
  background:
    linear-gradient(90deg, transparent 48%, var(--accent) 49% 51%, transparent 52%),
    radial-gradient(circle, #6d665e 0 4px, transparent 5px),
    var(--panel-2);
  box-shadow: 0 0 0 9px rgba(255, 255, 255, .03);
}

.select-line {
  margin-top: 18px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 14px 16px;
  color: var(--ink-dim);
}

.credit-panel {
  min-height: 124px;
}

.chip {
  display: inline-flex;
  margin-top: 18px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  padding: 10px 16px;
  color: var(--ink);
  font-weight: 700;
}

.analyzer-panel {
  grid-column: 1 / -1;
  min-height: 250px;
}

.spectrum {
  display: flex;
  align-items: end;
  gap: 8px;
  height: 132px;
  margin-top: 22px;
  border-radius: 14px;
  background: linear-gradient(180deg, #11100e, #1a1714);
  padding: 18px;
  overflow: hidden;
}

.spectrum span {
  flex: 1;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(180deg, var(--accent-2), var(--accent));
  opacity: .82;
}

.spectrum span:nth-child(1) { height: 42%; }
.spectrum span:nth-child(2) { height: 78%; }
.spectrum span:nth-child(3) { height: 58%; }
.spectrum span:nth-child(4) { height: 86%; }
.spectrum span:nth-child(5) { height: 50%; }

.range-bands {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 12px;
  color: var(--ink-mut);
  font-family: var(--mono);
  font-size: 12px;
}

.hero-copy {
  width: min(620px, 100%);
  max-width: var(--max);
  margin: 0 auto;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.05;
  text-wrap: balance;
}

h1 {
  margin-bottom: 20px;
  font-size: 72px;
  font-weight: 700;
}

h2 {
  margin-bottom: 18px;
  font-size: 42px;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
}

p {
  color: var(--ink-dim);
  overflow-wrap: break-word;
  text-wrap: pretty;
}

.hero-lede {
  max-width: 620px;
  margin-bottom: 28px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.content-band,
.page-hero,
.product-section {
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 86px 0;
}

.intro-band,
.method-band,
.plugin-band,
.decisions-band,
.about-band,
.values-band {
  border-bottom: 1px solid var(--line);
}

.section-head {
  max-width: 820px;
  margin-bottom: 30px;
}

.section-head.compact {
  max-width: 680px;
}

.feature-grid {
  display: grid;
  gap: 14px;
}

.feature-grid.three {
  grid-template-columns: repeat(3, 1fr);
}

.feature-grid.four {
  grid-template-columns: repeat(4, 1fr);
}

.feature-card {
  min-height: 174px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(40, 35, 30, .68);
  padding: 24px;
}

.feature-card p {
  margin-bottom: 0;
}

.method-band {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 42px;
  align-items: start;
}

.method-copy p {
  max-width: 520px;
  font-size: 18px;
}

.method-list {
  display: grid;
  gap: 14px;
}

.method-list > div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 16, 14, .5);
  padding: 22px;
}

.step-num {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--accent-2);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
}

.plugin-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: rgba(40, 35, 30, .76);
  padding: 28px;
}

.plugin-strip div {
  max-width: 780px;
}

.plugin-strip p {
  margin-bottom: 0;
}

.page-hero {
  padding-top: 104px;
  padding-bottom: 58px;
}

.page-hero h1 {
  max-width: 820px;
  font-size: 58px;
}

.page-hero p:not(.eyebrow) {
  max-width: 720px;
  color: var(--ink);
  font-size: 20px;
}

.compact-hero {
  border-bottom: 1px solid var(--line);
}

.product-section {
  scroll-margin-top: 96px;
}

.product-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}

.product-heading h2 {
  margin-bottom: 0;
}

.product-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.download-note {
  flex-basis: 100%;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: .04em;
  text-transform: uppercase;
  opacity: .6;
  text-align: right;
}

@media (max-width: 720px) {
  .download-note { text-align: left; }
}

.product-story {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, .6fr);
  gap: 18px;
  margin-bottom: 18px;
}

.story-main,
.story-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(40, 35, 30, .7);
  padding: 28px;
}

.story-main p:last-child,
.story-panel p:last-child {
  margin-bottom: 0;
}

.story-panel {
  background: rgba(17, 16, 14, .55);
}

.decision-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.decision-list div {
  min-height: 92px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 16, 14, .5);
  padding: 18px;
  color: var(--ink-dim);
  font-weight: 600;
}

.demo-section {
  margin-top: 28px;
  scroll-margin-top: 96px;
}

.demo-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 250px);
  gap: 18px;
  align-items: stretch;
  margin-top: 26px;
}

.demo-heading h3 {
  margin-bottom: 12px;
  font-size: 30px;
}

.demo-heading p {
  max-width: 780px;
  margin-bottom: 0;
}

.demo-score {
  display: grid;
  min-height: 150px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: rgba(17, 16, 14, .62);
  padding: 20px;
}

.demo-score strong {
  align-self: center;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 46px;
  line-height: 1;
}

.demo-score span:last-child {
  color: var(--ink-dim);
  font-size: 14px;
}

.demo-section[data-demo-state="ready"] .demo-score {
  border-color: rgba(116, 181, 134, .42);
}

.demo-section[data-demo-state="missing"] .demo-score {
  border-color: rgba(216, 107, 73, .55);
}

.demo-shell {
  margin-top: 18px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: rgba(33, 29, 25, .86);
  box-shadow: 0 20px 58px rgba(0, 0, 0, .28);
  padding: 18px;
}

.demo-strip,
.demo-transport,
.demo-canvas-panel,
.demo-module,
.demo-meter-module {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 16, 14, .52);
}

.demo-tracks {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  overflow: hidden;
  background: var(--line);
}

.demo-tracks > div {
  display: grid;
  gap: 6px;
  min-width: 0;
  background: rgba(33, 29, 25, .92);
  padding: 16px;
}

.demo-tracks strong,
.demo-tracks span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.demo-tracks strong {
  color: var(--ink);
  font-size: 18px;
}

.demo-tracks span:last-child {
  color: var(--ink-mut);
  font-family: var(--mono);
  font-size: 12px;
}

.demo-upload-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, .42fr) minmax(180px, .42fr);
  gap: 12px;
  align-items: end;
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(17, 16, 14, .52);
  padding: 14px;
}

.demo-upload-panel p {
  max-width: 620px;
  margin: 4px 0 0;
  color: var(--ink-dim);
  font-size: 14px;
}

.demo-file-picker {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: var(--ink-mut);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.demo-file-picker input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--inset);
  color: var(--ink-dim);
  padding: 8px;
  text-transform: none;
}

.demo-file-picker input::file-selector-button {
  min-height: 32px;
  margin-right: 10px;
  border: 1px solid rgba(216, 107, 73, .64);
  border-radius: 7px;
  background: rgba(216, 107, 73, .88);
  color: var(--on-accent);
  cursor: pointer;
  font: 700 13px var(--grotesk);
}

.demo-transport {
  display: grid;
  grid-template-columns: auto minmax(210px, .72fr) auto minmax(92px, .34fr) repeat(2, minmax(86px, .34fr)) minmax(220px, 1fr);
  gap: 12px;
  align-items: end;
  margin-top: 12px;
  padding: 14px;
}

.demo-play,
.demo-small-btn,
.demo-segmented button {
  min-height: 44px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: rgba(40, 35, 30, .9);
  color: var(--ink);
  cursor: pointer;
  font-weight: 700;
  transition: background-color .15s ease, border-color .15s ease, transform .1s ease;
}

.demo-play {
  min-width: 92px;
  border-color: rgba(216, 107, 73, .72);
  background: var(--accent);
  color: var(--on-accent);
}

.demo-play:disabled,
.demo-small-btn:disabled {
  cursor: not-allowed;
  opacity: .48;
}

.demo-play:not(:disabled):active,
.demo-small-btn:not(:disabled):active,
.demo-segmented button:active {
  transform: translateY(1px);
}

.demo-segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-width: 210px;
  border: 1px solid rgba(255, 255, 255, .06);
  border-radius: 8px;
  background: var(--inset);
  padding: 4px;
}

.demo-segmented button {
  border-color: transparent;
  background: transparent;
  color: var(--ink-dim);
}

.demo-segmented button[aria-pressed="true"] {
  border-color: var(--line-2);
  background: var(--panel);
  color: var(--ink);
}

.demo-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: rgba(40, 35, 30, .7);
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 700;
}

.demo-toggle input,
.demo-slider input,
.demo-eq-band input {
  accent-color: var(--accent);
}

.demo-field,
.demo-slider {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: var(--ink-mut);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.demo-field input,
.demo-field select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--inset);
  color: var(--ink);
  padding: 8px 10px;
}

.demo-slider span {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.demo-slider output,
.demo-eq-band output {
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
}

.demo-slider input {
  width: 100%;
  min-height: 32px;
}

.demo-visuals {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.demo-canvas-panel {
  position: relative;
  overflow: hidden;
}

.demo-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 48px;
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
  color: var(--ink-mut);
  font-family: var(--mono);
  font-size: 12px;
}

.demo-canvas-panel canvas {
  display: block;
  width: 100%;
  background: var(--inset);
}

#demo-waveform {
  height: 220px;
}

#demo-spectrum {
  height: 300px;
  cursor: pointer;
}

.demo-loop-overlay {
  position: absolute;
  inset: 49px 0 0;
  pointer-events: none;
}

.demo-loop-region {
  position: absolute;
  top: 0;
  bottom: 0;
  min-width: 14px;
  border: 0;
  border-left: 1px solid rgba(216, 107, 73, .62);
  border-right: 1px solid rgba(216, 107, 73, .62);
  background: rgba(216, 107, 73, .12);
  cursor: grab;
  pointer-events: auto;
}

.demo-loop-region:active {
  cursor: grabbing;
}

.demo-loop-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 44px;
  min-height: 44px;
  transform: translateX(-50%);
  border: 0;
  background: transparent;
  cursor: ew-resize;
  pointer-events: auto;
}

.demo-loop-handle::before {
  position: absolute;
  inset: 0 auto 0 50%;
  width: 2px;
  content: "";
  background: rgba(216, 107, 73, .82);
}

.demo-loop-handle::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 42px;
  transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 247, 240, .76);
  border-radius: 999px;
  content: "";
  background: var(--accent);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .3);
}

.demo-band-handles {
  position: absolute;
  inset: 49px 0 0;
  pointer-events: none;
}

.demo-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 44px;
  min-height: 44px;
  transform: translateX(-50%);
  border: 0;
  background: transparent;
  cursor: ew-resize;
  pointer-events: auto;
}

.demo-handle::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  content: "";
  background: rgba(241, 236, 228, .42);
}

.demo-handle::after {
  position: absolute;
  top: 14px;
  left: 50%;
  width: 14px;
  height: 28px;
  transform: translateX(-50%);
  border: 1px solid rgba(241, 236, 228, .46);
  border-radius: 999px;
  content: "";
  background: var(--accent);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .26);
}

.demo-controls-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 12px;
  margin-top: 12px;
}

.demo-module,
.demo-meter-module {
  min-width: 0;
  padding: 16px;
}

.demo-module-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.demo-module-head h4 {
  margin: 4px 0 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.2;
}

.demo-module-head p {
  max-width: 520px;
  margin: 2px 0 0;
  color: var(--ink-dim);
}

.demo-small-btn {
  flex: 0 0 auto;
  padding: 8px 12px;
}

.demo-inline-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.demo-eq {
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 10px;
}

.demo-eq-band {
  display: grid;
  gap: 8px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(40, 35, 30, .58);
  padding: 12px;
}

.demo-eq-band span {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

.demo-eq-band input {
  width: 100%;
  min-height: 40px;
}

.demo-eq-stepper {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) 40px;
  gap: 6px;
  align-items: center;
}

.demo-eq-stepper button {
  min-height: 40px;
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--inset);
  color: var(--ink);
  cursor: pointer;
  font-weight: 700;
}

.demo-eq-stepper input {
  border: 1px solid var(--line-2);
  border-radius: 8px;
  background: var(--inset);
  color: var(--ink);
  padding: 6px;
  text-align: center;
}

.demo-meter-module {
  margin-top: 12px;
}

.demo-meters {
  display: grid;
  grid-template-columns: minmax(78px, .75fr) repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 13px;
}

.demo-meters > div {
  min-width: 0;
  background: rgba(33, 29, 25, .94);
  padding: 12px;
  overflow-wrap: anywhere;
}

.demo-meter-head,
.demo-meter-label {
  color: var(--ink-mut);
  font-weight: 700;
  text-transform: uppercase;
}

.demo-meter-head {
  text-align: right;
}

.demo-meter-value {
  display: grid;
  gap: 2px;
  text-align: right;
}

.demo-meter-max {
  min-height: 14px;
  color: var(--meter);
  font-size: 11px;
}

.about-copy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.about-copy p {
  margin-bottom: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(40, 35, 30, .65);
  padding: 24px;
  font-size: 18px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: min(var(--max), calc(100% - 48px));
  margin: 0 auto;
  padding: 36px 0 48px;
  color: var(--ink-dim);
}

.site-footer p {
  margin: 4px 0 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-links a {
  color: var(--ink);
}

@media (max-width: 980px) {
  .site-header {
    flex-wrap: wrap;
  }

  .site-nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    overflow-x: auto;
  }

  .hero-product {
    inset: 130px -300px 24px 12px;
    opacity: .8;
  }

  h1 {
    font-size: 56px;
  }

  h2,
  .page-hero h1 {
    font-size: 38px;
  }

  .feature-grid.three,
  .feature-grid.four,
  .method-band,
  .product-story,
  .decision-list,
  .about-copy {
    grid-template-columns: 1fr 1fr;
  }

  .plugin-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .demo-heading,
  .demo-controls-grid,
  .demo-upload-panel {
    grid-template-columns: 1fr;
  }

  .demo-transport {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .demo-play,
  .demo-segmented,
  .demo-toggle,
  .demo-ref-gain {
    grid-column: span 1;
  }

  .demo-eq {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  html,
  body {
    width: 100vw;
    max-width: 100%;
  }

  main,
  .hero-section,
  .content-band,
  .page-hero,
  .product-section,
  .site-footer {
    max-width: 100vw;
    overflow-x: hidden;
  }

  .site-header {
    width: 100vw;
    max-width: 100vw;
    padding-right: 14px;
    padding-left: 14px;
  }

  .header-btn {
    display: none;
  }

  .site-nav a {
    min-width: max-content;
    padding-right: 12px;
    padding-left: 12px;
  }

  .hero-section {
    align-items: start;
    min-height: 700px;
    padding: 44px 18px 64px;
  }

  .hero-product {
    inset: 270px -520px 20px -96px;
    min-width: 780px;
    opacity: .84;
    transform: rotate(-2deg) scale(.86);
  }

  .hero-product::before {
    background: linear-gradient(180deg, rgba(21, 19, 16, .98), rgba(21, 19, 16, .72) 42%, rgba(21, 19, 16, .38));
  }

  .hero-copy {
    position: relative;
    z-index: 1;
    width: calc(100vw - 36px);
    max-width: calc(100vw - 36px);
    margin: 0;
  }

  h1 {
    font-size: 44px;
  }

  h2,
  .page-hero h1 {
    font-size: 32px;
  }

  .hero-lede,
  .page-hero p:not(.eyebrow) {
    font-size: 18px;
  }

  .content-band,
  .page-hero,
  .product-section,
  .site-footer {
    width: calc(100vw - 32px);
    margin-right: 16px;
    margin-left: 16px;
  }

  .section-head,
  .page-hero h1,
  .page-hero p,
  .story-main,
  .story-panel,
  .feature-card,
  .about-copy p,
  .decision-list div {
    min-width: 0;
    max-width: 100%;
  }

  .hero-lede,
  .method-copy > p,
  .page-hero > p:not(.eyebrow) {
    inline-size: 28ch;
    max-width: calc(100vw - 36px);
    overflow-wrap: anywhere;
    white-space: normal;
    text-wrap: wrap;
  }

  .feature-card p,
  .method-list p,
  .story-main p,
  .story-panel p,
  .plugin-strip p,
  .about-copy p {
    inline-size: 24ch;
    max-width: calc(100vw - 72px);
    overflow-wrap: anywhere;
    white-space: normal;
    text-wrap: wrap;
  }

  .content-band,
  .product-section {
    padding: 60px 0;
  }

  .feature-grid.three,
  .feature-grid.four,
  .method-band,
  .product-story,
  .decision-list,
  .about-copy {
    grid-template-columns: 1fr;
  }

  .product-heading,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .feature-card,
  .method-list > div,
  .story-main,
  .story-panel,
  .plugin-strip,
  .about-copy p {
    padding: 20px;
  }

  .demo-heading {
    gap: 12px;
  }

  .demo-heading h3 {
    font-size: 25px;
  }

  .demo-shell,
  .demo-module,
  .demo-meter-module {
    padding: 12px;
  }

  .demo-tracks,
  .demo-upload-panel,
  .demo-transport,
  .demo-inline-controls {
    grid-template-columns: 1fr;
  }

  .demo-transport {
    gap: 10px;
  }

  .demo-segmented {
    min-width: 0;
  }

  #demo-waveform {
    height: 190px;
  }

  #demo-spectrum {
    height: 250px;
  }

  .demo-module-head {
    flex-direction: column;
  }

  .demo-small-btn {
    width: 100%;
  }

  .demo-eq {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .demo-meters {
    grid-template-columns: minmax(54px, .8fr) repeat(3, minmax(0, 1fr));
    font-size: 11px;
  }

  .demo-meters > div {
    padding: 9px 7px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: .001ms !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
  }
}
