/* playable-product — precise, minimal, technical. Greyscale + one accent with one meaning (site.json: theme).
   Colours and fonts come only from the theme variables; --c-ink / --c-paper drive the light act. */
:root {
  --g: clamp(20px, 3.2vw, 56px); --nav: 64px; --tx: var(--fg); --tx2: color-mix(in srgb, var(--fg) 66%, transparent); --tx3: color-mix(in srgb, var(--fg) 42%, transparent);
  --ln: var(--line); --glass: color-mix(in srgb, var(--bg) 46%, transparent); --ease: cubic-bezier(.2, .7, .2, 1);
  --s0: 11px; --s1: clamp(15px, 1.05vw, 17px); --s3: clamp(22px, 2.3vw, 36px); --s4: clamp(34px, 3.8vw, 58px); --s6: clamp(56px, 9vw, 128px); --s7: clamp(72px, 13.5vw, 196px);
}
html { background: var(--bg); color: var(--tx); font-family: var(--font-sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
html.act-light { --tx: var(--c-ink, #111); --tx2: color-mix(in srgb, var(--c-ink, #111) 72%, transparent); --tx3: color-mix(in srgb, var(--c-ink, #111) 50%, transparent); --ln: color-mix(in srgb, var(--c-ink, #111) 20%, transparent); --glass: color-mix(in srgb, var(--c-paper, #ddd) 50%, transparent); }
body { margin: 0; }
a { color: inherit; }
::selection { background: var(--fg); color: var(--bg); }
button { font: inherit; color: inherit; }
.mono-label, .eyebrow, .notes, .hero-sub, .hero-hint, .top, .pill, .cap b, .plate, .readouts, .deck, .twin, .knobs, .foot, .rail { font-family: var(--font-mono); }
body.is-dragging { user-select: none; -webkit-user-select: none; }
html.is-settling *, html.is-settling *::before, html.is-settling *::after { transition: none !important; }   /* captures land at rest */

/* loader: mono wordmark, a 64 px hairline with real progress */
.loader { background: var(--bg); display: grid; place-items: center; }
.loader-in { display: grid; grid-template-columns: auto auto; align-items: baseline; gap: 6px 14px; font-family: var(--font-mono); font-size: var(--s0); letter-spacing: .12em; color: var(--fg); }
.loader-name { font-family: var(--font-display); font-weight: 300; font-size: 28px; letter-spacing: -.02em; }
.loader-model { color: var(--muted); }
.loader-bar { grid-column: 1; display: block; width: 64px; height: 1px; background: color-mix(in srgb, var(--fg) 18%, transparent); position: relative; overflow: hidden; }
.loader-bar::after { content: ''; position: absolute; inset: 0; background: var(--fg); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.loader-in b { font-weight: 400; color: var(--muted); }

/* chrome: blend-mode nav that survives the light act; the buy pill is not blended */
.top { position: fixed; z-index: 30; top: 0; left: 0; right: 0; height: var(--nav); display: flex; align-items: center; gap: 28px; padding: 0 var(--g); font-size: var(--s0); letter-spacing: .06em; }
.brand, .top nav, .rail { mix-blend-mode: difference; color: #fff; }
.brand { font-family: var(--font-display); font-weight: 400; font-size: 17px; letter-spacing: -.01em; text-decoration: none; }
.rail { display: inline-flex; gap: 6px; align-items: baseline; font-size: var(--s0); letter-spacing: .08em; opacity: .8; }
.rail b { font-weight: 500; } .rail em { font-style: normal; margin-left: 8px; opacity: .7; }
.top nav { display: flex; gap: 22px; margin-left: auto; }
.top nav a { text-decoration: none; opacity: .72; transition: opacity .3s; }
.top nav a:hover, .top nav a[aria-current] { opacity: 1; }
.top-r { display: flex; gap: 10px; align-items: center; }
.sound { background: var(--glass); color: var(--tx); border: 1px solid var(--ln); border-radius: 99px; height: 30px; padding: 0 12px; font: 400 var(--s0)/1 var(--font-mono); letter-spacing: .06em; display: inline-flex; gap: 8px; align-items: center; cursor: pointer; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: color .4s, border-color .4s; }
.pill { position: relative; display: inline-flex; align-items: center; gap: 10px; height: 30px; padding: 0 14px; border-radius: 99px; text-decoration: none; font-size: var(--s0); letter-spacing: .06em; color: var(--tx); background: color-mix(in srgb, var(--tx) 5%, transparent); border: 1px solid var(--ln); overflow: hidden; transition: background .4s, color .4s, border-color .4s; }
.pill::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 30%, color-mix(in srgb, var(--tx) 22%, transparent) 50%, transparent 70%); transform: translateX(-110%); transition: transform .8s var(--ease); }
.pill:hover::after { transform: translateX(110%); }
.pill b { font-weight: 500; }
.pill-primary { background: var(--tx); color: var(--bg); border-color: var(--tx); }
html.act-light .pill-primary { color: var(--c-paper, #ddd); }

/* chapters: tall sections, a pinned 100svh stage; copy anchored to the corners, the middle belongs to the device */
main { position: relative; z-index: 2; }
.ch { position: relative; height: var(--h, 220vh); pointer-events: none; }
.stage { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.stage > * { position: absolute; pointer-events: auto; opacity: 0; transition: opacity .45s var(--ease-io); }
.ch.is-current .stage > * { opacity: 1; transition: opacity .6s var(--ease-io) .08s; }
.pos-tl { top: calc(var(--nav) + 3vh); left: var(--g); }
.pos-tr { top: calc(var(--nav) + 3vh); right: var(--g); text-align: right; }
.pos-bl { bottom: var(--g); left: var(--g); }
.pos-br { bottom: var(--g); right: var(--g); }
.copy { width: min(430px, 34vw); }
.pos-tr.copy { display: flex; flex-direction: column; align-items: flex-end; }
.eyebrow { display: flex; gap: 12px; align-items: center; margin: 0 0 18px; font-size: var(--s0); letter-spacing: .08em; color: var(--tx3); transition: color .5s; }
.eyebrow .idx { color: var(--tx); }
.ch-title { font-family: var(--font-display); font-weight: 300; font-size: var(--s4); line-height: .96; letter-spacing: -.035em; margin: 0 0 20px; text-wrap: balance; color: var(--tx); transition: color .5s; }
.body { font-size: var(--s1); line-height: 1.55; color: var(--tx2); max-width: 38ch; transition: color .5s; }
.pos-tr .body { margin-left: auto; }
.body p { margin: 0 0 .8em; }
.notes { list-style: none; margin: 18px 0 0; padding: 14px 0 0; border-top: 1px solid var(--ln); display: grid; gap: 7px; font-size: var(--s0); letter-spacing: .06em; color: var(--tx3); }
.mono-label { font-size: var(--s0); letter-spacing: .08em; color: var(--tx3); margin: 0 0 10px; }

/* hero: claim top-right in masked lines, the ultralight wordmark bottom-left, typed in when the play key lands */
.claim { font-family: var(--font-display); font-weight: 300; font-size: var(--s3); line-height: 1.12; letter-spacing: -.02em; display: grid; justify-items: end; text-align: right; }
.claim.pos-tl { justify-items: start; text-align: left; }
.cl { display: block; overflow: hidden; padding-bottom: .08em; }
.cl > span { display: block; transform: translateY(110%); transition: transform 1s var(--ease) calc(var(--j) * 90ms); }
html.film-2 .cl > span { transform: none; }
.wordmark { position: absolute; left: calc(var(--g) - .06em); bottom: calc(var(--g) + 30px); margin: 0; font-family: var(--font-display); font-weight: 200; font-size: var(--s7); line-height: .86; letter-spacing: -.045em; white-space: nowrap; }
.wordmark .u { opacity: 0; filter: blur(14px); transform: translateY(.08em); transition: opacity 1.1s var(--ease) calc(var(--i) * 55ms), filter 1.1s var(--ease) calc(var(--i) * 55ms), transform 1.1s var(--ease) calc(var(--i) * 55ms); }
html.film-typed .wordmark .u { opacity: 1; filter: none; transform: none; }
.hero-sub { position: absolute; left: var(--g); bottom: var(--g); margin: 0; font-size: var(--s0); letter-spacing: .08em; color: var(--tx3); opacity: 0; transition: opacity .8s var(--ease) .5s; }
html.film-typed .hero-sub { opacity: 1; }
.hero-hint { position: absolute; right: var(--g); bottom: var(--g); margin: 0; display: inline-flex; align-items: center; gap: 10px; font-size: var(--s0); letter-spacing: .08em; color: var(--tx2); }
.hero-hint i { width: 6px; height: 6px; border-radius: 50%; background: var(--tx); animation: blink 1.6s var(--ease-io) infinite; }
@keyframes blink { 50% { opacity: .2; } }

/* the pad twin: the device's 4×4 in the page (click, tap, keyboard) */
.twin-wrap { width: min(300px, 30vw); }
.twin { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.twin-pad { --tone: #3a3c3f; --ink: #eceae5; position: relative; aspect-ratio: 1; border: 0; border-radius: 7px; background: linear-gradient(180deg, color-mix(in srgb, var(--tone) 88%, #fff), var(--tone)); color: var(--ink); box-shadow: inset 0 1px 0 rgba(255,255,255,.14), inset 0 -2px 0 rgba(0,0,0,.25), 0 1px 0 rgba(0,0,0,.4); cursor: pointer; text-align: left; padding: 7px; display: flex; flex-direction: column; justify-content: space-between; font-size: 10px; letter-spacing: .04em; transition: transform .09s, filter .2s, box-shadow .2s; }
.twin-pad:hover { filter: brightness(1.18); }
.twin-pad:active, .twin-pad.is-hit { transform: translateY(1px) scale(.96); }
.twin-pad.is-hit { animation: padflash .5s var(--ease) both; }
@keyframes padflash { 0% { box-shadow: 0 0 0 1px #fff, 0 0 22px rgba(255,255,255,.55); filter: brightness(1.6); } 100% { box-shadow: inset 0 1px 0 rgba(255,255,255,.14), inset 0 -2px 0 rgba(0,0,0,.25); filter: none; } }
.twin-pad .tp-l i { display: block; font-style: normal; opacity: .65; font-size: 9px; }
.twin-pad kbd { align-self: flex-end; font: inherit; font-size: 9px; opacity: .55; border: 1px solid currentColor; border-radius: 3px; padding: 0 4px; line-height: 14px; }
.row-0 { --tone: var(--c-pad0, #343639); } .row-1 { --tone: var(--c-pad1, #494b4f); } .row-2 { --tone: var(--c-pad2, #76787b); } .row-3 { --tone: var(--c-pad3, #a6a7a5); --ink: #1c1d1f; }

/* the deck: the sequencer as a real, accessible instrument panel */
.deck-wrap { left: 50%; bottom: var(--g); transform: translateX(-50%); width: min(1060px, calc(100% - var(--g) * 2)); }
.deck { position: relative; border-radius: 16px; padding: 16px 18px 12px; background: linear-gradient(180deg, color-mix(in srgb, var(--surface) 92%, #fff 3%), color-mix(in srgb, var(--bg) 94%, #000)); border: 1px solid color-mix(in srgb, var(--fg) 12%, transparent); box-shadow: 0 40px 90px rgba(0,0,0,.55), inset 0 1px 0 rgba(255,255,255,.07); font-size: var(--s0); letter-spacing: .06em; color: var(--fg); }
.deck-head { display: grid; grid-template-columns: 1.2fr 1.4fr auto auto auto; gap: 18px; align-items: center; margin-bottom: 14px; }
.deck-id { display: grid; gap: 3px; } .deck-id b { font-weight: 500; font-size: 12px; } .deck-id span { color: color-mix(in srgb, var(--fg) 50%, transparent); }
.deck-scope { width: 100%; height: 36px; color: color-mix(in srgb, var(--fg) 85%, transparent); border-left: 1px solid color-mix(in srgb, var(--fg) 12%, transparent); border-right: 1px solid color-mix(in srgb, var(--fg) 12%, transparent); }
.deck-vu { display: grid; grid-template-columns: repeat(16, 4px); gap: 2px; height: 22px; align-items: end; }
.deck-vu i { height: 100%; border-radius: 1px; background: color-mix(in srgb, var(--fg) 9%, transparent); transition: background .08s; }
.deck-vu i.is-on { background: color-mix(in srgb, var(--fg) calc(30% + var(--k, 0) * 1%), transparent); }
.deck-vu i:nth-child(n+1).is-on { background: #595959; } .deck-vu i:nth-child(n+5).is-on { background: #7d7d7d; } .deck-vu i:nth-child(n+9).is-on { background: #a8a8a8; } .deck-vu i:nth-child(n+13).is-on { background: #e8e8e8; }
.deck-bpm { display: inline-flex; gap: 6px; align-items: baseline; background: color-mix(in srgb, var(--fg) 6%, transparent); border: 1px solid color-mix(in srgb, var(--fg) 14%, transparent); border-radius: 8px; padding: 6px 10px; cursor: ns-resize; touch-action: none; }
.deck-bpm b { font-weight: 500; font-size: 14px; font-variant-numeric: tabular-nums; min-width: 3ch; text-align: right; } .deck-bpm span { color: color-mix(in srgb, var(--fg) 50%, transparent); }
.deck-play { display: inline-flex; align-items: center; gap: 9px; height: 34px; padding: 0 16px 0 12px; border-radius: 99px; border: 1px solid color-mix(in srgb, var(--fg) 18%, transparent); background: color-mix(in srgb, var(--fg) 5%, transparent); cursor: pointer; letter-spacing: .08em; }
.deck-play i { width: 0; height: 0; border-left: 8px solid currentColor; border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.deck-play.is-playing { background: var(--accent); border-color: var(--accent); color: #0b0b0b; }
.deck-play.is-playing i { width: 8px; height: 8px; border: 0; background: currentColor; border-radius: 1px; }
.deck-grid { display: grid; gap: 5px; }
.deck-row { display: grid; grid-template-columns: 64px repeat(16, 1fr); gap: 4px; align-items: center; }
.deck-row .beat:not(:nth-child(2)) { margin-left: 8px; }
.deck-track { background: none; border: 0; padding: 0; text-align: left; cursor: pointer; color: color-mix(in srgb, var(--fg) 45%, transparent); letter-spacing: .06em; }
.deck-track.is-sel { color: var(--fg); }
.deck-track.is-sel::before { content: '› '; }
.cell { position: relative; height: 30px; border-radius: 5px; border: 0; cursor: pointer; background: linear-gradient(180deg, #2c2d30, #212224); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), inset 0 -2px 0 rgba(0,0,0,.4), 0 1px 1px rgba(0,0,0,.4); transition: filter .12s, transform .09s; }
.cell::after { content: ''; position: absolute; top: 5px; right: 5px; width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.1); }
.cell:hover { filter: brightness(1.25); }
.cell.is-on { background: linear-gradient(180deg, #56585c, #45474a); }
.cell.is-on::after { background: #fff; box-shadow: 0 0 6px rgba(255,255,255,.8); }
.cell.is-head { filter: brightness(1.45); }
.cell.is-head::before { content: ''; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; border-radius: 2px; background: var(--accent); }
.cell.is-fire { animation: fire .18s ease-out; }
@keyframes fire { 0% { transform: translateY(1px) scale(.95); } 100% { transform: none; } }
.deck-nums span { text-align: center; font-size: 9px; color: color-mix(in srgb, var(--fg) 35%, transparent); }
.deck-nums span:nth-child(4n + 6) { margin-left: 8px; }

/* knobs: a frosted slate with the knob twins */
.slate { width: min(440px, 36vw); padding: 22px 24px 18px; border-radius: 14px; background: var(--glass); backdrop-filter: blur(14px) saturate(1.1); -webkit-backdrop-filter: blur(14px) saturate(1.1); box-shadow: inset 0 1px 0 color-mix(in srgb, var(--fg) 10%, transparent); border: 1px solid color-mix(in srgb, var(--fg) 8%, transparent); }
.slate .ch-title { font-size: var(--s3); }
.knobs { display: grid; gap: 10px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--ln); font-size: var(--s0); letter-spacing: .06em; }
.knob-row { display: grid; grid-template-columns: 60px 1fr 78px; gap: 14px; align-items: center; color: var(--tx2); }
.knob-row output { text-align: right; color: var(--tx); font-variant-numeric: tabular-nums; }
.knob-row input { -webkit-appearance: none; appearance: none; width: 100%; height: 22px; background: transparent; cursor: ew-resize; margin: 0; }
.knob-row input::-webkit-slider-runnable-track { height: 1px; background: var(--ln); }
.knob-row input::-moz-range-track { height: 1px; background: var(--ln); }
.knob-row input::-webkit-slider-thumb { -webkit-appearance: none; width: 13px; height: 13px; margin-top: -6px; border-radius: 50%; background: var(--tx); box-shadow: 0 0 0 4px color-mix(in srgb, var(--tx) 14%, transparent); }
.knob-row input::-moz-range-thumb { width: 13px; height: 13px; border: 0; border-radius: 50%; background: var(--tx); }
.knob-row input:focus-visible { outline: 1px solid var(--tx); outline-offset: 4px; }

/* screen chapter readouts */
.readouts { margin: 26px 0 0; display: grid; gap: 8px; max-width: 300px; font-size: var(--s0); letter-spacing: .06em; }
.readouts div { display: flex; justify-content: space-between; gap: 24px; border-top: 1px solid var(--ln); padding-top: 7px; }
.readouts dt { color: var(--tx3); } .readouts dd { margin: 0; color: var(--tx); }

/* ports: a caption band along the bottom; the port nearest the camera lights up */
.captions { left: var(--g); right: var(--g); bottom: var(--g); display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); border-top: 1px solid var(--ln); }
.cap { background: none; border: 0; text-align: left; padding: 14px 16px 0 0; cursor: pointer; display: grid; gap: 6px; font-size: var(--s0); letter-spacing: .06em; color: var(--tx3); transition: color .3s; position: relative; }
.cap::before { content: ''; position: absolute; left: 0; top: -1px; height: 1px; width: 0; background: var(--tx); transition: width .6s var(--ease); }
.cap b { font-weight: 500; color: var(--tx2); font-size: 12px; } .cap span { font-family: var(--font-sans); font-size: 13px; letter-spacing: 0; line-height: 1.4; max-width: 24ch; }
.cap:hover, .cap.is-active { color: var(--tx); } .cap.is-active b { color: var(--tx); } .cap.is-active::before { width: calc(100% - 16px); }

/* specs: a mono plate with hairlines */
.plate { width: min(520px, 42vw); font-size: var(--s0); letter-spacing: .05em; }
.plate table { width: 100%; border-collapse: collapse; }
.plate th, .plate td { text-align: left; font-weight: 400; padding: 7px 0; border-top: 1px solid var(--ln); vertical-align: top; }
.plate th { color: var(--tx3); width: 34%; padding-right: 16px; } .plate td { color: var(--tx); }
.plate-note { margin: 12px 0 0; color: var(--tx3); line-height: 1.5; }

/* close: ultralight wordmark, a mono price line, two pills */
.close { left: 0; right: 0; bottom: calc(var(--g) + 7vh); display: grid; justify-items: center; text-align: center; gap: 12px; padding: 0 var(--g); }
.close-mark { margin: 0; font-family: var(--font-display); font-weight: 200; font-size: var(--s6); line-height: .86; letter-spacing: -.045em; }
.close-title { margin: 0; font-family: var(--font-display); font-weight: 300; font-size: var(--s3); letter-spacing: -.02em; color: var(--tx2); }
.close-price { margin: 0; font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; color: var(--tx2); }
.close-ctas { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.close-ctas .pill { height: 40px; padding: 0 20px; font-size: 12px; }
.close-small { margin: 4px 0 0; font-family: var(--font-mono); font-size: var(--s0); color: var(--tx3); letter-spacing: .06em; }

.foot { position: relative; z-index: 2; padding: 34px var(--g) 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: var(--s0); letter-spacing: .06em; background: var(--bg); }
.foot-row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.legal { margin: 14px 0 0; max-width: 90ch; line-height: 1.6; }

/* without WebGL the poster stands in and the light act gets its paper */
.no-webgl .act-light-sec { background: var(--c-paper, #d9d6d0); }
.no-webgl .ch.is-current .stage > * { opacity: 1; }
.reduced .stage > * { transition: none !important; }
.reduced .cl > span, .reduced .wordmark .u, .reduced .hero-sub { transform: none !important; opacity: 1 !important; filter: none !important; transition: none !important; }

@media (max-height: 760px) and (min-width: 821px) { :root { --s4: clamp(30px, 3.2vw, 46px); --s7: clamp(64px, 11vw, 150px); } .cell { height: 24px; } }
@media (max-width: 820px) {
  :root { --nav: 56px; --s4: clamp(30px, 8.4vw, 40px); --s3: clamp(20px, 5.4vw, 26px); --s7: clamp(64px, 23vw, 120px); --s6: clamp(52px, 17vw, 90px); }
  .top { gap: 12px; } .top nav, .rail { display: none; } .top-r { margin-left: auto; }
  .pill-buy b { display: none; }
  .copy, .slate, .plate, .twin-wrap { width: auto; left: var(--g); right: var(--g); }
  .pos-tr { text-align: left; }
  .copy.pos-tl { top: calc(var(--nav) + 8px); }
  .copy .body { font-size: 14px; } .copy .notes { display: none; }
  .ch-pads .copy .body, .ch-sequencer .copy .body, .ch-ports .copy .body, .ch-specs .copy .body, .ch-screen .copy .body { display: none; }
  .claim { top: auto; bottom: calc(var(--g) + 26px + var(--s7) * .86 + 22px); left: var(--g); right: var(--g); justify-items: start; text-align: left; }   /* phones: under the device, above the wordmark */
  .wordmark { bottom: calc(var(--g) + 26px); }
  .hero-hint { left: var(--g); right: auto; bottom: var(--g); } .hero-sub { display: none; }
  .twin-wrap { bottom: var(--g); width: min(300px, calc(100% - var(--g) * 2)); right: auto; } .twin { gap: 5px; } .twin-pad { font-size: 9px; padding: 5px; border-radius: 6px; }
  .deck-wrap { width: calc(100% - 20px); bottom: 10px; }
  .deck { padding: 10px 10px 8px; border-radius: 12px; }
  .deck-head { grid-template-columns: 1fr auto auto; gap: 8px; } .deck-scope, .deck-vu { display: none; }
  .deck-row { grid-template-columns: 40px repeat(16, 1fr); gap: 2px; } .deck-row .beat:not(:nth-child(2)), .deck-nums span:nth-child(4n + 6) { margin-left: 4px; }
  .cell { height: 22px; border-radius: 3px; } .cell::after { top: 3px; right: 3px; width: 3px; height: 3px; }
  .deck-track { font-size: 9px; }
  .slate { bottom: 10px; padding: 16px; } .knob-row { grid-template-columns: 52px 1fr 70px; }
  .captions { grid-template-columns: repeat(3, 1fr); row-gap: 4px; } .cap span { display: none; } .cap { padding: 10px 8px 6px 0; }
  .plate { bottom: 12px; font-size: 10px; } .plate th, .plate td { padding: 5px 0; } .plate-note { display: none; }
  .readouts { display: none; }
}
