:root {
  color-scheme: light;
  --paper: #f0ece2;
  --ink: #28231d;
  --muted: #62564a;
  --rust: #8b361f;
  --rule: #cbbda9;
  --serif: Georgia, 'Times New Roman', serif;
  --mono: ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.55 system-ui, sans-serif; }
[hidden] { display: none !important; }
a { color: inherit; text-underline-offset: .22em; }
a:hover { color: var(--rust); }
button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .65; }
:focus-visible { outline: 3px solid #a84124; outline-offset: 4px; }
.wrap { width: min(1040px, calc(100% - 64px)); margin-inline: auto; }
.top, .footer { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 72px; }
.top { border-bottom: 1px solid var(--rule); }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 760; font-size: 1.15rem; text-decoration: none; }
.mark { width: 17px; height: 17px; border-radius: 50%; border: 2px solid var(--rust); background: linear-gradient(132deg, transparent 44%, var(--rust) 45% 57%, transparent 58%); }
nav { display: flex; gap: clamp(14px, 4vw, 32px); font-size: .91rem; font-weight: 650; }
nav a { text-decoration: none; }
nav a:hover { text-decoration: underline; }
.hero { max-width: 820px; margin-block: clamp(30px, 4vw, 46px) 0; }
.instrument { padding: clamp(12px, 2vw, 16px) clamp(13px, 2vw, 18px) 4px; border: 1px solid #aea08a; border-radius: 16px; background: linear-gradient(145deg, #f1e5d0, #d8c9b0); box-shadow: 0 7px 0 -2px #a89378, 0 23px 46px #63432629, inset 0 1px #fff8e9; }
.transport { display: grid; grid-template-columns: 64px minmax(150px, 1fr) minmax(228px, .95fr); gap: 13px; align-items: center; }
.play-well { display: grid; place-items: center; }
#play { --diameter: 60px; width: var(--diameter); height: var(--diameter); display: grid; place-items: center; border: 3px solid #544737; border-radius: 50%; background: radial-gradient(circle at 30% 28%, #534d43, #28231e 68%); box-shadow: 0 0 0 3px #c1ae93, 0 0 0 4px #776550, inset 0 3px 7px #15110f, 0 5px 8px #49382555; }
#play:hover:not(:disabled) { background: radial-gradient(circle at 30% 28%, #655849, #312921 70%); }
#play:active:not(:disabled) { transform: translateY(2px); box-shadow: 0 0 0 3px #c1ae93, 0 0 0 4px #776550, inset 0 5px 9px #15110f; }
.play-icon { width: 19px; height: 20px; margin-left: 3px; background: #ffd3a6; clip-path: polygon(7% 0,100% 50%,7% 100%); }
.playing .play-icon { margin: 0; clip-path: polygon(0 0,34% 0,34% 100%,0 100%,0 0,66% 0,100% 0,100% 100%,66% 100%,66% 0); }
.display { min-width: 0; overflow: hidden; min-height: 72px; padding: 12px 11px 4px; border: 1px solid #37291f; border-radius: 7px; color: #ffcd9f; background: radial-gradient(ellipse at bottom left,#3c291d,#241c17 75%); box-shadow: inset 0 2px 8px #120b08,0 1px #fff3dc; }
.display-label, .volume > div { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.display-label { font: 680 .69rem/1.3 var(--mono); text-transform: uppercase; letter-spacing: .08em; }
#status { color: #efbd95; }
#status::before { content: ''; display: inline-block; width: 6px; height: 6px; margin-right: 6px; vertical-align: .13em; background: #bc9271; border-radius: 50%; }
.playing #status::before { background: #ffa362; box-shadow: 0 0 8px #ff965a; }
#current { font: 620 clamp(1.03rem, 2.8vw, 1.6rem)/1.1 var(--mono); letter-spacing: -.065em; }
#wave { display: block; width: 100%; height: 25px; margin-top: 3px; }
.transport-settings { min-width: 0; display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); gap: 13px; align-items: start; }
.preset, .volume { min-width: 0; }
.preset label, .volume label, .room-select { font: 740 .72rem/1.2 var(--mono); text-transform: uppercase; letter-spacing: .075em; }
.preset label { display: block; }
.preset select, .room-select select { display: block; width: 100%; margin-top: 4px; padding: 5px; min-height: 32px; color: var(--ink); font: 690 .86rem/1.3 system-ui,sans-serif; background: linear-gradient(#f7edda,#d7c7ae); border: 1px solid #ab987b; border-radius: 5px; cursor: pointer; }
.preset select { appearance: none; padding-right: 25px; background: linear-gradient(135deg,transparent 46%,var(--rust) 47% 65%,transparent 66%) right 10px center / 5px 5px no-repeat, linear-gradient(45deg,transparent 36%,var(--rust) 37% 55%,transparent 56%) right 14px center / 5px 5px no-repeat, linear-gradient(#f7edda,#d7c7ae); }
output { font: 650 .74rem/1.25 var(--mono); color: #69472f; white-space: nowrap; }
input[type=range] { display: block; width: 100%; height: 27px; margin: 1px 0 0; accent-color: var(--rust); cursor: pointer; }
#volume { --level: 20%; appearance: none; background: transparent; height: 32px; margin-top: 4px; }
#volume::-webkit-slider-runnable-track { height: 5px; border-radius: 4px; background: linear-gradient(to right,#9c4024 var(--level),#43382c var(--level)); }
#volume::-moz-range-track { height: 5px; border-radius: 4px; background: linear-gradient(to right,#9c4024 var(--level),#43382c var(--level)); }
#volume::-webkit-slider-thumb { appearance: none; width: 15px; height: 16px; margin-top: -5.5px; border: 1px solid #2e271f; border-radius: 4px; background: linear-gradient(#6a6255,#423c34); box-shadow: 0 2px 4px #21191555; }
#volume::-moz-range-thumb { width: 15px; height: 16px; border: 1px solid #2e271f; border-radius: 4px; background: linear-gradient(#6a6255,#423c34); box-shadow: 0 2px 4px #21191555; }
.mix-board { margin-top: 9px; border-top: 1px solid #b3a088; }
summary { display: flex; align-items: center; justify-content: space-between; min-height: 44px; padding-inline: 2px; cursor: pointer; font-weight: 720; }
summary::-webkit-details-marker { display: none; }
summary span { width: 9px; height: 9px; border-right: 2px solid var(--rust); border-bottom: 2px solid var(--rust); transform: rotate(45deg); margin-right: 3px; }
details[open] summary span { transform: rotate(225deg); }
.board-tabs, .rack-tabs { display: flex; gap: 7px; margin: 6px 0 11px; }
.board-tabs button, .band button, .rack-tabs button { min-height: 40px; border: 1px solid #b49f84; border-radius: 6px; padding: 4px clamp(7px, 1.5vw, 19px); background: linear-gradient(#f6ead5,#d9c9b0); box-shadow: 0 2px #ac987d, inset 0 1px #fff5e4; color: #30281f; font: 700 .73rem/1.2 var(--mono); letter-spacing: .045em; text-transform: uppercase; }
.board-tabs button[aria-pressed=true], .band button[aria-pressed=true], .rack-tabs button[aria-pressed=true] { border-color: #a44e28; color: #872e16; box-shadow: 0 2px #aa8a6c, inset 0 1px 4px #a0704733; }
.board-tabs button::before { content: ''; display: inline-block; width: 5px; height: 5px; margin-right: 7px; border-radius: 50%; vertical-align: .12em; background: #918673; }
.board-tabs button[aria-pressed=true]::before { background: #a43d1e; }
.board-pane { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: 11px; }
[data-pane=space], [data-pane=motion] { grid-template-columns: repeat(2, minmax(0,1fr)); }
.board-module { min-width: 0; border: 1px solid #ad9b80; border-top-color: #f9efdd; border-radius: 9px; padding: 13px; background: linear-gradient(145deg,#efe4ce,#dbccb3); box-shadow: 0 3px 6px #543d2929; }
.module-label { display: flex; align-items: baseline; justify-content: space-between; gap: 7px; margin-bottom: 10px; text-transform: uppercase; font: 700 .76rem/1.3 var(--mono); letter-spacing: .06em; }
.module-label span { color: var(--muted); font-size: .67rem; font-weight: 550; text-align: right; }
.knob-pair { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; align-items: center; }
.split { border-top: 1px solid #c2b397; margin-top: 12px; padding-top: 10px; }
.spaced { margin: 23px 0 16px; }
.hardware-knob, .band-fader { min-width: 0; display: grid; align-items: center; justify-items: center; gap: 5px; text-align: center; color: #4a3e31; font: 700 .67rem/1.25 var(--mono); letter-spacing: .045em; text-transform: uppercase; }
.hardware-knob output, .band-fader output { color: #ffb16e; background: #211915; border: 1px solid #38251a; border-radius: 4px; padding: 3px 6px; font-size: .7rem; letter-spacing: 0; }
.knob-well, .fader-well { position: relative; display: grid; place-items: center; }
.knob-well { width: 59px; height: 59px; border-radius: 50%; background: repeating-conic-gradient(from -132deg,#967d60 0deg 1.8deg,transparent 1.8deg 13.5deg); }
.knob-cap { position: relative; width: 48px; height: 48px; border-radius: 50%; border: 1px solid #4b443d; background: radial-gradient(circle at 36% 31%, #42413d,#282724 75%); box-shadow: 0 3px 5px #231c16b5,inset 0 0 0 3px #77706351; transform: rotate(var(--angle)); transition: transform .12s ease-out; }
.knob-cap::after { position: absolute; content: ''; top: 4px; left: calc(50% - 1px); width: 2px; height: 10px; border-radius: 3px; background: #ffad66; }
.knob-well input, .fader-well input { position: absolute; inset: 0; height: 100%; margin: 0; opacity: 0; }
.knob-well input { cursor: ew-resize; }
.knob-well:focus-within, .fader-well:focus-within { outline: 3px solid #a84124; outline-offset: 1px; }
.hardware-knob:has(input:disabled), .band-fader:has(input:disabled) { opacity: .56; }
.switch { min-height: 34px; display: flex; align-items: center; gap: 5px; cursor: pointer; font: 690 .67rem/1.3 var(--mono); text-transform: uppercase; }
.knob-pair .switch { justify-content: center; }
.switch input { position: relative; appearance: none; flex: 0 0 26px; width: 26px; height: 16px; border: 1px solid #4f4233; border-radius: 12px; background: #46392c; box-shadow: inset 0 2px 3px #221b15; cursor: pointer; }
.switch input::after { content: ''; position: absolute; left: 2px; top: 2px; width: 10px; height: 10px; border-radius: 50%; background: #dac7ad; }
.switch input:checked::after { left: 12px; background: #f8b470; }
.band-bank { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 5px; }
.band { min-width: 0; text-align: center; }
.band button { width: 100%; font-size: .65rem; line-height: 1.04; padding-inline: 2px; min-height: 33px; margin-bottom: 9px; }
.fader-well { width: 36px; height: 69px; margin: 2px 0; background: repeating-linear-gradient(to bottom, transparent 0 7px,#a892763f 7px 8px); }
.fader-well::before { content: ''; width: 5px; height: 100%; border-radius: 4px; background: #3e352b; }
.fader-cap { position: absolute; width: 29px; height: 13px; max-height: 100%; border: 1px solid #29211a; border-radius: 3px; top: clamp(0%,calc(var(--position) - 6px),calc(100% - 13px)); background: linear-gradient(#72685a,#302a23 45%,#211b16 55%,#494035); box-shadow: 0 2px 4px #31241c60; }
.fader-well input { writing-mode: vertical-lr; direction: rtl; cursor: ns-resize; }
.band-tune { display: grid; grid-template-columns: minmax(40px, .8fr) 1fr 1fr; gap: 5px; align-items: center; }
.band-tune > strong { color: var(--rust); font: 740 .73rem/1.3 var(--mono); text-transform: uppercase; }
.room-select { align-self: center; }
.notice { margin-bottom: 0; color: #792f20; }
.intro { text-align: center; margin-block: clamp(42px, 4vw, 48px) clamp(34px, 6vw, 70px); }
h1, h2, h3 { font: 400 clamp(2.85rem, 7.3vw, 6rem)/1.02 var(--serif); letter-spacing: -.055em; margin: 0; }
.intro h1 { font-size: clamp(2.85rem, 7vw, 4.75rem); }
.intro p { margin: 18px auto 0; max-width: 43ch; color: var(--muted); font-size: clamp(1rem, 2vw, 1.2rem); }
.native { background: #e8dfcf; padding-block: clamp(55px, 8vw, 95px); border-block: 1px solid var(--rule); }
.section-intro { display: grid; grid-template-columns: 1.38fr .8fr; gap: 15px 40px; align-items: end; margin-bottom: 30px; }
.eyebrow { margin: 0; grid-column: 1 / -1; color: var(--rust); font: 700 .78rem/1.3 var(--mono); letter-spacing: .13em; text-transform: uppercase; }
.section-intro h2 { font-size: clamp(2.48rem,4.3vw,3.15rem); }
.section-intro > p:last-child { max-width: 36ch; color: var(--muted); margin: 0; }
.native-rack { padding: 18px; border: 1px solid #bead95; border-radius: 11px; background: #f0e5d2; }
.rack-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 12px; }
.rack-tabs { margin: 0; }
#rack-play { min-height: 36px; padding: 4px 9px; border: 1px solid #a6947d; border-radius: 5px; background: #f2e8d5; color: var(--ink); font-size: .83rem; font-weight: 650; }
.rack-shots figure { margin: 0; }
.rack-screen { position: relative; overflow: hidden; aspect-ratio: 1280 / 966; border: 1px solid #b5a386; border-radius: 7px; background: #211915; box-shadow: 0 3px 7px #543d2929; }
.rack-screen img, .rack-screen video { display: block; width: 100%; height: 100%; object-fit: contain; }
.rack-screen video { position: absolute; inset: 0; background: #211915; }
.rack-shots figcaption { margin-top: 11px; color: var(--muted); font-size: .87rem; }
.rack-shots figcaption strong { margin-right: .4em; color: var(--ink); }
.rack-status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.rollout { margin-top: clamp(50px, 8vw, 88px); border-top: 1px solid #c4b49e; padding-top: 30px; }
.rollout h2, .doc h1 { font-size: clamp(2.25rem,4.5vw,4.25rem); }
.rollout dl { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin: 22px 0 0; }
.rollout dl div { padding-top: 10px; border-top: 1px solid #c4b49e; }
dt { font-weight: 730; }
dd { margin: 1px 0 0; color: var(--muted); font-size: .91rem; }
.doc { max-width: 710px; padding-block: clamp(55px,8vw,94px); }
.doc h2 { margin-top: 30px; font: 710 1.18rem/1.4 system-ui,sans-serif; letter-spacing: -.02em; }
.doc code { overflow-wrap: anywhere; }
.doc + .footer { border-top: 1px solid var(--rule); }
img { display: block; width: 100%; height: auto; }
@media(max-width: 650px) {
  .wrap { width: calc(100% - 32px); }
  .top, .footer { min-height: 61px; }
  .transport { grid-template-columns: 56px minmax(0,1fr); gap: 10px; }
  #play { --diameter: 50px; }
  .transport-settings { grid-column: 1 / -1; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 13px; align-items: start; }
  .section-intro, .board-pane[data-pane] { grid-template-columns: minmax(0,1fr); }
  .native-rack { padding: 12px; }
  .rack-tabs button { padding-inline: 8px; }
}
@media(max-width: 365px) {
  .wrap { width: calc(100% - 24px); }
  .display { padding-inline: 8px; }
  .display-label { letter-spacing: .025em; }
  #status::before { margin-right: 3px; }
  .module-label { letter-spacing: .02em; }
  .board-module { padding: 9px; }
  .band-fader output { padding-inline: 3px; font-size: .61rem; }
  .rollout dl { grid-template-columns: 1fr; }
}
@media(prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  #play:active:not(:disabled) { transform: none; }
  .knob-cap { transition: none; }
}
