/* CONTEXTURE — site styles, ported 1:1 from the mockup canvas. Palette sampled from the plugin. */
:root {
  color-scheme: dark;
  --void: #0a0a0a; --panel: #0e0e0e; --card: #171717; --line: #1f1f1f; --line2: #2c2c2c;
  --hi: #ebece9; --mid: #9d9e9b; --lo: #6b6c69;
  --paper: #e9e9e7; --paper-hi: #f2f2f0; --paper-lo: #dadad8;
  --ink: #141414; --ink-mid: #5f605c; --ink-lo: #9fa09d; --hair: #cbcbc9;
  --ember: #e0692a; --ember-ink: #a8481a; --led: #87fe70;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --doto: 'Doto', 'IBM Plex Mono', ui-monospace, monospace;
  --gut: clamp(16px, 3.9vw, 56px);
  --nav-h: 64px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--void); scroll-behavior: auto; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
body { background: var(--void); color: var(--hi); font: 14px/1.6 var(--mono); -webkit-font-smoothing: antialiased; overflow-x: clip; }
::selection { background: var(--ember); color: #fff; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--ember); outline-offset: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: 1440px; margin-inline: auto; padding-inline: var(--gut); position: relative; }
.sec { position: relative; }
.dark { background-color: var(--void); background-image: radial-gradient(circle at 1px 1px, rgba(235, 236, 233, .065) 1px, transparent 1.3px); background-size: 14px 14px; color: var(--hi); }
.paper { background: var(--paper); color: var(--ink); color-scheme: light; }

/* ---------- type ---------- */
.doto { font-family: var(--doto); text-transform: uppercase; }
.h2 { font-family: var(--doto); text-transform: uppercase; font-weight: 900; line-height: .9; letter-spacing: -.01em; margin: 0; text-wrap: balance; }
.h2-74 { font-size: clamp(38px, 5.14vw, 74px); }
.h2-72 { font-size: clamp(38px, 5vw, 72px); }
.h2-64 { font-size: clamp(34px, 4.45vw, 64px); }
.h2-58 { font-size: clamp(30px, 4.03vw, 58px); }
.lede { font-size: 15px; line-height: 1.75; color: var(--mid); margin: 0; }
.paper .lede { color: var(--ink-mid); }
.eyebrow { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; font-size: 11px; letter-spacing: .2em; color: var(--lo); margin: 0; }
.eyebrow b { display: inline-flex; align-items: center; font-weight: 400; color: var(--hi); }
.paper .eyebrow { color: var(--ink-mid); }
.paper .eyebrow b { color: var(--ink); }
.word { display: inline-block; white-space: nowrap; }

/* pixel wordmark: 5x7 cells per letter, built in main.js */
.px { display: grid; width: 100%; max-width: 100%; color: inherit; line-height: 0; }
.px i { display: block; }
.px i.on { background: currentColor; border-radius: 1px; }
.px i.tw { animation: twinkle 5s ease-in-out infinite; }
.px i.lit { background: var(--ember); }
@keyframes twinkle { 0%, 70%, 100% { background: currentColor; } 78%, 86% { background: var(--ember); } }
.px-fallback { font-family: var(--doto); font-weight: 900; letter-spacing: .02em; line-height: 1; }

/* ---------- controls ---------- */
.led { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #2b2b2b; flex: none; transition: background .3s, box-shadow .3s; }
.led.on { background: var(--led); box-shadow: 0 0 8px rgba(135, 254, 112, .75); }
.chip { display: inline-flex; align-items: center; gap: 9px; padding: 8px 14px; border: 1px solid var(--line2); border-radius: 999px; background: transparent; font-size: 10.5px; letter-spacing: .2em; color: var(--lo); white-space: nowrap; transition: color .25s, border-color .25s, background .25s; }
.chip:hover { color: var(--hi); border-color: #444; }
.chip.on { color: var(--hi); border-color: #3c3c3c; background: #151515; }
.chip.on .led { background: var(--led); box-shadow: 0 0 8px rgba(135, 254, 112, .75); }
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 22px; border-radius: 999px; border: 1px solid transparent; font-size: 12px; line-height: 1; letter-spacing: .2em; white-space: nowrap; transition: transform .35s var(--ease), background .25s, color .25s, border-color .25s; }
.pill:hover { transform: translateY(-2px); }
.pill:active { transform: translateY(0) scale(.97); }
.pill-light { background: linear-gradient(#f6f6f4, #dfdfdd); color: var(--ink); box-shadow: inset 0 1px 0 #fff, 0 0 0 1px #cfcfcd, 0 8px 22px rgba(0, 0, 0, .45); }
.pill-dark { background: var(--ink); color: var(--paper-hi); border-color: #2b2b2b; }
.pill-dark:hover { background: #262626; }
.pill-ghost { background: transparent; color: var(--hi); border-color: var(--line2); }
.pill-ghost:hover { border-color: #555; }
.paper .pill-ghost { color: var(--ink); border-color: var(--hair); }
.pill-mini { padding: 10px 14px; font-size: 10.5px; background: #121212; border-color: var(--line2); color: var(--mid); }
.pill-mini:hover { color: var(--hi); }
.pill-ic { font-size: 10px; }

/* ---------- nav ---------- */
.nav { position: fixed; left: 0; right: 0; top: 0; z-index: 60; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: calc(var(--nav-h) + env(safe-area-inset-top, 0px)); padding: env(safe-area-inset-top, 0px) var(--gut) 0; background: rgba(10, 10, 10, .95); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border-bottom: 1px solid rgba(255, 255, 255, .05); }
.nav-mark { display: block; width: 135px; color: var(--hi); }
.nav-chips { display: flex; gap: 6px; }
.nav-right { display: flex; gap: 8px; align-items: center; }
.nav .pill { padding: 11px 16px; font-size: 10.5px; }
.nav .pill-light { box-shadow: inset 0 1px 0 #fff; }
.sound-toggle { min-width: 122px; justify-content: center; }
.menu-btn { display: none; width: 38px; height: 34px; border-radius: 999px; border: 1px solid var(--line2); background: transparent; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.menu-btn i { display: block; width: 14px; height: 1px; background: var(--hi); transition: transform .3s var(--ease); }
.menu-btn[aria-expanded='true'] i:first-child { transform: translateY(2.5px) rotate(45deg); }
.menu-btn[aria-expanded='true'] i:last-child { transform: translateY(-2.5px) rotate(-45deg); }
.menu { position: fixed; left: 0; right: 0; top: calc(var(--nav-h) + env(safe-area-inset-top, 0px)); z-index: 59; padding: 14px var(--gut) 20px; background: rgba(10, 10, 10, .96); border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- loader ---------- */
.loader { position: fixed; inset: 0; z-index: 100; background: var(--void); display: none; align-items: center; justify-content: center; }
.js .loader { display: flex; }
.loader.out { clip-path: inset(0 0 100% 0); transition: clip-path .9s cubic-bezier(.65, 0, .35, 1); }
.loader.gone { display: none !important; }
.loader-grid { position: absolute; inset: 0; background-image: radial-gradient(circle at 1px 1px, rgba(235, 236, 233, .08) 1px, transparent 1.3px); background-size: 14px 14px; }
.loader-mid { position: relative; width: min(460px, 80vw); }
.loader-word { color: var(--hi); }
.loader-line { display: flex; justify-content: space-between; margin-top: 22px; font-size: 11px; letter-spacing: .2em; color: var(--lo); }
.loader-count { color: var(--hi); font-variant-numeric: tabular-nums; }
.loader-bar { height: 2px; background: #1b1b1b; margin-top: 10px; }
.loader-bar i { display: block; height: 100%; width: 0; background: var(--ember); }

/* ---------- ball layer + cursors ---------- */
#orb { position: fixed; left: 0; top: 0; width: 100vw; height: 100vh; z-index: 30; pointer-events: none; }
.orb-anchor { position: absolute; inset: 0; pointer-events: none; }
.kcursor { position: fixed; left: 0; top: 0; z-index: 70; pointer-events: none; mix-blend-mode: difference; opacity: 0; transition: opacity .25s; }
.kcursor.show { opacity: 1; }
.kcursor i, .ghost i { position: absolute; left: 0; top: 0; width: 74px; height: 74px; border: 1px solid #fff; border-radius: 50%; transform: translate(-50%, -50%); transition: width .25s var(--ease), height .25s var(--ease), background .2s; }
.kcursor span, .ghost span { position: absolute; left: 46px; top: -7px; font-size: 10px; letter-spacing: .24em; color: #fff; white-space: nowrap; }
.kcursor.down i, .ghost.down i { width: 26px; height: 26px; background: #fff; }
.ghost { position: fixed; left: 0; top: 0; z-index: 69; pointer-events: none; mix-blend-mode: difference; opacity: 0; transition: opacity .4s; }
.ghost.show { opacity: 1; }

/* ---------- hero ---------- */
.hero { min-height: max(760px, 100vh); min-height: max(760px, 100svh); padding-top: var(--nav-h); padding-bottom: 58px; display: flex; flex-direction: column; }
.hero > .wrap { flex: 1; width: 100%; display: flex; align-items: center; }
.hero-grid { width: 100%; display: grid; grid-template-columns: minmax(0, 620fr) minmax(0, 700fr); gap: 24px; align-items: center; }
.hero-copy { padding-block: 40px 60px; }
.hero-word { margin: 34px 0 0; font-weight: 400; }
.hero-word .px { max-width: 608px; color: var(--hi); }
.spaced { display: block; margin-top: 18px; font-size: 12px; letter-spacing: .3em; color: var(--lo); font-weight: 400; }
.hero-title { margin: 40px 0 18px; font-size: clamp(32px, 4.3vw, 62px); line-height: .95; font-weight: 900; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.stage { position: relative; }
.hero-stage { height: min(700px, calc(100vh - 160px)); min-height: 520px; }
.hero-stage .orb-anchor { bottom: 60px; }
.hud { position: absolute; font-size: 10px; letter-spacing: .2em; color: var(--lo); line-height: 1.5; pointer-events: none; }
.hud-top { left: 50%; top: 6.3%; }
.hud-eq { left: 84.3%; top: 48.6%; }
.hud-axis { position: absolute; left: 50%; top: 13%; height: 74%; border-left: 1px dotted #2c2c2c; pointer-events: none; }
.vs { position: absolute; top: 60px; bottom: 100px; width: 64px; display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 9.5px; letter-spacing: .18em; color: var(--lo); pointer-events: none; }
.vs.l { left: -6px; } .vs.r { right: -6px; }
.vs i { flex: 1; width: 2px; position: relative; background: repeating-linear-gradient(#303030 0 1px, transparent 1px 4px); }
.vs i b { position: absolute; left: 50%; top: 40%; width: 26px; height: 5px; border-radius: 3px; background: var(--hi); transform: translate(-50%, -50%); box-shadow: 0 0 0 3px var(--void); transition: top .5s var(--ease); }
.hero-tools { position: absolute; left: 10%; top: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; z-index: 32; }
.hint { font-size: 10px; letter-spacing: .2em; color: var(--lo); margin-left: 8px; }
.readouts { position: absolute; left: 10%; right: 10%; bottom: 0; display: flex; justify-content: space-between; }
.read span { display: block; font-size: 9.5px; letter-spacing: .2em; color: var(--lo); }
.read b { display: block; font-size: 20px; font-weight: 400; letter-spacing: .06em; color: var(--hi); margin-top: 4px; font-variant-numeric: tabular-nums; }
.scroll-cue { display: flex; justify-content: center; align-items: center; gap: 14px; font-size: 10px; letter-spacing: .3em; color: var(--lo); margin-bottom: 14px; }
.seqdots { display: flex; gap: 4px; }
.seqdots i { width: 4px; height: 4px; border-radius: 50%; background: #2e2e2e; animation: seq 2.4s steps(1) infinite; }
@keyframes seq { 0% { background: var(--hi); } 12%, 100% { background: #2e2e2e; } }
.ticker { position: absolute; left: 0; right: 0; bottom: 0; height: 58px; overflow: hidden; border-top: 1px solid var(--line); display: flex; align-items: center; }
.ticker-track { display: flex; gap: 30px; align-items: center; white-space: nowrap; font-family: var(--doto); font-weight: 800; font-size: 30px; line-height: 1; color: #2f2f2e; text-transform: uppercase; will-change: transform; }
.ticker-track .w { color: var(--hi); }
.ticker-track i { width: 10px; height: 10px; border-radius: 50%; background: var(--ember); flex: none; }

/* ---------- window: 3D plugin replica ---------- */
.window { padding-top: calc(var(--nav-h) + 44px); padding-bottom: clamp(48px, 9vh, 110px); }
.win-shot { max-width: 1100px; margin: clamp(26px, 4.5vh, 52px) auto 0; padding-inline: var(--gut); }
.win-shot img { width: 100%; height: auto; display: block; border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 24px 56px rgba(0, 0, 0, .5); }
.win-head { display: grid; grid-template-columns: minmax(0, 824fr) minmax(0, 480fr); gap: 24px; align-items: end; }
.win-head .lede { max-width: 480px; padding-bottom: 8px; }
.win-head .h2 { margin-top: 18px; }
.stage3d { position: relative; margin: clamp(18px, 3vh, 34px) auto 0; width: var(--sw, 1032px); height: calc(var(--sw, 1032px) * .575); perspective: 2200px; perspective-origin: 50% 30%; }
.scale3d { position: absolute; left: 0; top: 0; width: 1200px; height: 690px; transform-origin: 0 0; transform: scale(var(--s, .86)); transform-style: preserve-3d; }
.rig { position: absolute; inset: 0; transform-style: preserve-3d; transform-origin: 50% 50%; }
.lay { transform-style: preserve-3d; }
.shadow3d { position: absolute; left: 4%; right: 4%; top: 8%; bottom: 0; background: rgba(0, 0, 0, .85); filter: blur(40px); transform: translateZ(-60px); border-radius: 40px; }
.callout { position: absolute; z-index: 5; transform: translateZ(40px); white-space: nowrap; font: 500 10px/1 var(--mono); letter-spacing: .2em; color: var(--ink); background: var(--ember); padding: 6px 9px; border-radius: 3px; opacity: 0; pointer-events: none; }
.callout::after { content: ''; position: absolute; left: 12px; top: 100%; width: 1px; height: 18px; background: var(--ember); }
.scrub { position: absolute; right: calc(var(--gut) - 40px); top: calc(var(--nav-h) + 260px); height: 42vh; width: 40px; display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 9.5px; letter-spacing: .18em; color: var(--lo); }
.scrub i { flex: 1; width: 2px; position: relative; background: repeating-linear-gradient(#303030 0 1px, transparent 1px 4px); }
.scrub b { position: absolute; left: 50%; top: 0; width: 22px; height: 5px; margin: -2px 0 0 -11px; border-radius: 3px; background: var(--ember); }
.win-note { position: absolute; left: var(--gut); bottom: 24px; margin: 0; font-size: 10px; letter-spacing: .2em; color: var(--lo); width: 150px; line-height: 1.7; }

.ui-left { position: absolute; left: 0; top: 0; width: 410px; height: 585px; padding: 26px 30px 22px; border-radius: 12px; background: linear-gradient(180deg, #efefed 0%, #e4e4e2 55%, #dadad8 100%); color: var(--ink); box-shadow: inset 0 1px 0 #fff, inset 0 0 0 1px rgba(0, 0, 0, .05), 0 24px 60px rgba(0, 0, 0, .5); }
.ul-grip { position: absolute; top: 9px; left: 14px; width: 16px; height: 8px; background: radial-gradient(circle, #b3b3b1 1px, transparent 1.4px) 0 0 / 4px 4px; }
.ul-grip.r { left: auto; right: 14px; }
.ul-head { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: start; }
.ul-word { width: 158px; color: var(--ink); }
.ul-sub { font-size: 10px; letter-spacing: .34em; color: #5d5d5b; margin-top: 10px; white-space: nowrap; }
.ul-dots { padding-top: 6px; }
.ul-dots i { display: block; height: 22px; background: radial-gradient(circle, #bdbdbb 1.1px, transparent 1.4px) 0 0 / 4px 4px; }
.ul-dots span { display: block; margin-top: 12px; font-size: 9px; letter-spacing: .14em; color: #9a9a98; }
.ui-pill { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; font-size: 10px; letter-spacing: .16em; color: var(--ink); background: linear-gradient(#f8f8f6, #e7e7e5); box-shadow: 0 0 0 1px #d0d0ce, 0 2px 4px rgba(0, 0, 0, .12), inset 0 1px 0 #fff; white-space: nowrap; }
.ul-rule { height: 1px; background: #cdcdcb; margin: 18px 0 14px; }
.ul-params { margin: 0; }
.ul-params div { display: grid; grid-template-columns: 150px 1fr; font-size: 10.5px; letter-spacing: .16em; line-height: 19px; }
.ul-params dt { color: #7d7d7b; }
.ul-params dd { color: #3b3b39; margin: 0; }
.ul-cards { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; }
.ui-card { background: #141414; border-radius: 10px; padding: 11px 12px 6px; color: var(--hi); box-shadow: inset 0 0 0 1px #242424, 0 1px 0 rgba(255, 255, 255, .6); }
.uc-h { display: flex; align-items: center; gap: 8px; font-size: 10px; letter-spacing: .18em; }
.uc-h i { width: 6px; height: 6px; border-radius: 50%; background: var(--hi); }
.uc-s { font-size: 8.5px; letter-spacing: .14em; color: #767674; margin-top: 4px; font-variant-numeric: tabular-nums; }
.uc-cv { display: block; width: 100%; height: 48px; margin-top: 4px; }
.ul-knobs { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 18px; text-align: center; }
.ul-knobs .knob { width: 60px; height: 60px; margin: 0 auto 10px; }
.ul-knobs b { display: block; font-size: 10.5px; font-weight: 500; letter-spacing: .22em; color: #2b2b29; }
.ul-knobs span { display: block; font-size: 9.5px; letter-spacing: .16em; color: #8b8b89; margin-top: 3px; }
.ul-sculpt { display: flex; align-items: center; gap: 16px; margin-top: 16px; font-size: 10px; letter-spacing: .2em; color: #858583; }
.seg { flex: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.seg b, .seg button { display: block; padding: 9px 6px; text-align: center; font-size: 10px; font-weight: 500; letter-spacing: .18em; border-radius: 3px; background: #f4f4f2; box-shadow: inset 0 0 0 1px #cdcdcb; color: #8a8a88; border: 0; }
.seg button { padding: 12px 6px; font-size: 11px; }
.seg .on { background: #151515; color: #eee; box-shadow: none; }
.ul-pills { display: flex; gap: 7px; margin-top: 16px; }
.ul-pills .ui-pill { font-size: 9.5px; padding: 9px 11px; }
.ui-right { position: absolute; left: 425px; top: 0; width: 775px; height: 585px; padding: 18px 22px; border-radius: 12px; background-color: #0e0e0e; background-image: radial-gradient(circle at 1px 1px, #1c1c1c 1px, transparent 1.3px); background-size: 12px 12px; box-shadow: inset 0 0 0 1px #1d1d1d, 0 24px 60px rgba(0, 0, 0, .55); color: var(--hi); }
.ur-top { position: relative; display: flex; gap: 9px; align-items: center; }
.ur-tab { display: inline-flex; align-items: center; gap: 9px; padding: 9px 17px; border-radius: 999px; border: 1px solid #262626; background: transparent; font-size: 10.5px; letter-spacing: .2em; color: #5e5e5c; white-space: nowrap; transition: color .25s, border-color .25s, background .25s; }
.ur-tab.on { color: var(--hi); border-color: #3a3a3a; background: #141414; }
button.ur-tab:hover { color: var(--hi); }
.ur-preset { margin-left: auto; display: flex; align-items: center; gap: 14px; padding: 9px 16px; border: 1px solid #262626; border-radius: 999px; font-size: 10.5px; letter-spacing: .2em; color: var(--mid); min-width: 270px; }
.ur-preset i { width: 1px; height: 12px; background: #3a3a3a; }
.ur-preset b { font-weight: 400; color: var(--hi); }
.ur-preset em { margin-left: auto; font-style: normal; color: #777; }
.ur-sub { display: flex; align-items: center; gap: 24px; margin: 16px 0 0 6px; font-size: 10.5px; letter-spacing: .2em; color: #5e5e5c; }
.ur-sub b { font-weight: 500; color: var(--hi); }
.ur-sub .out { border: 1px solid #333; border-radius: 999px; padding: 6px 12px; color: #8a8a88; }
.ur-body { position: relative; height: 382px; margin-top: 6px; }
.ur-vs { position: absolute; top: 34px; bottom: 6px; width: 60px; display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 9.5px; letter-spacing: .16em; color: #6b6b69; }
.ur-vs.l { left: -6px; } .ur-vs.r { right: -6px; }
.ur-vs i { flex: 1; width: 2px; position: relative; background: repeating-linear-gradient(#333 0 1px, transparent 1px 4px); }
.ur-vs b { position: absolute; left: 50%; width: 26px; height: 5px; background: #ddd; border-radius: 3px; transform: translate(-50%, -50%); }
.ur-col { position: absolute; top: 76px; display: grid; gap: 34px; }
.ur-col.l { left: 84px; } .ur-col.r { right: 84px; text-align: right; }
.ur-col span { display: block; font-size: 9.5px; letter-spacing: .2em; color: #6b6b69; }
.ur-col b { display: block; font-size: 17px; font-weight: 400; letter-spacing: .1em; color: #8d8e8b; margin-top: 6px; }
.ur-col em { display: flex; align-items: center; gap: 7px; margin-top: 12px; font-style: normal; font-size: 9.5px; letter-spacing: .16em; color: #6b6b69; }
.ur-col em i { width: 11px; height: 11px; border: 1px solid #555; border-radius: 2px; }
.ur-slot { position: absolute; left: 50%; top: 48%; width: 340px; height: 340px; margin: -170px 0 0 -170px; }
.ur-lbl { position: absolute; font-size: 9.5px; letter-spacing: .18em; color: #8a8a88; line-height: 1.5; }
.ur-bottom { position: absolute; left: 22px; right: 22px; bottom: 52px; display: flex; align-items: flex-end; gap: 28px; }
.ur-bottom span { display: block; font-size: 9.5px; letter-spacing: .2em; color: #6b6b69; white-space: nowrap; }
.ur-bottom b { display: block; font-size: 19px; font-weight: 400; letter-spacing: .06em; color: var(--hi); margin-top: 6px; white-space: nowrap; }
.ur-bottom .rt { text-align: right; }
.ur-seq { width: 220px; height: 28px; margin: 0 auto; display: block; }
.ur-drawer { position: absolute; left: 50%; bottom: 12px; width: 200px; margin-left: -100px; text-align: center; border: 1px solid #262626; border-radius: 999px; padding: 7px 0; font-size: 10px; letter-spacing: .24em; color: #6b6b69; }
.ui-keys { position: absolute; left: 0; top: 598px; width: 1200px; height: 92px; padding: 10px 14px; border-radius: 12px; display: flex; align-items: stretch; gap: 14px; color: var(--ink); background: linear-gradient(#f2f2f0, #e0e0de); box-shadow: inset 0 1px 0 #fff, 0 20px 50px rgba(0, 0, 0, .5); }
.uk-col { display: flex; flex-direction: column; align-items: center; justify-content: space-between; font-size: 8.5px; letter-spacing: .16em; color: #8a8a88; flex: none; }
.uk-glyph { font-size: 22px; line-height: 1; color: var(--ink); }
.uk-sq { width: 18px; height: 14px; border-radius: 3px; background: #f7f7f5; box-shadow: 0 0 0 1px #cfcfcd; font-style: normal; font-size: 10px; line-height: 14px; text-align: center; color: var(--ink); }
.uk-mode b, .uk-mode span { width: 52px; padding: 3px 0; text-align: center; font-size: 8px; font-weight: 400; border-radius: 3px; box-shadow: 0 0 0 1px #cfcfcd; }
.uk-mode b { background: #141414; color: #eee; box-shadow: none; }

/* knobs */
.knob { position: relative; border-radius: 50%; background: radial-gradient(circle closest-side, #1d1d1d 0 70%, #070707 71% 73%, transparent 74%), conic-gradient(from 200deg, #f2f2f0, #a9a9a7 18%, #e9e9e7 35%, #8f8f8d 55%, #f1f1ef 72%, #b2b2b0 88%, #f2f2f0); box-shadow: 0 0 0 1px rgba(0, 0, 0, .12), 0 6px 14px rgba(0, 0, 0, .28); }
.knob i { position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(#eeeeec, #eeeeec) 50% 15% / 2px 24% no-repeat; }
.knob-big i { background-size: 3px 22%; }
.knob-btn { display: block; margin: 0 auto; padding: 0; border: 0; background: transparent; border-radius: 50%; cursor: ns-resize; touch-action: none; }
.knob-btn:focus-visible { outline: 2px solid var(--ember); outline-offset: 8px; }
.ksm { position: relative; width: 42px; height: 42px; border-radius: 50%; margin: 0 auto; box-shadow: 0 0 0 1px #2a2a2a; background: #131313; }
.ksm b { position: absolute; inset: 3px; border-radius: 50%; background: #131313; }
.ksm i { position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(#e6e6e4, #e6e6e4) 50% 12% / 2px 30% no-repeat; }
button.ksm { padding: 0; border: 0; cursor: ns-resize; touch-action: none; display: block; }

/* keyboards */
.kbd { position: relative; height: 100%; user-select: none; -webkit-user-select: none; touch-action: none; }
.kw { position: absolute; top: 0; bottom: 0; background: linear-gradient(#f7f7f5, #e8e8e6); border-right: 1px solid #cdcdcb; border-radius: 0 0 4px 4px; box-shadow: inset 0 -3px 0 #d8d8d6; }
.kw.first { border-left: 1px solid #cdcdcb; }
.kb { position: absolute; top: 0; height: 60%; background: linear-gradient(#2a2a2a, #0f0f0f 85%); border-radius: 0 0 3px 3px; z-index: 2; box-shadow: inset 0 -4px 0 #000, 0 2px 3px rgba(0, 0, 0, .3); }
.kl { position: absolute; left: 0; right: 0; bottom: 8%; text-align: center; font-size: 10px; letter-spacing: .1em; color: var(--mid); pointer-events: none; }
.kb .kl { color: #8d8d8b; bottom: 10%; }
.ko { position: absolute; left: 5px; top: 5px; font-size: 9px; letter-spacing: .08em; color: #a3a3a1; pointer-events: none; }
.kbd-mini .kl { font-size: 6px; } .kbd-mini .ko { font-size: 5.5px; left: 3px; top: 3px; }
.kbd-play .kw, .kbd-play .kb { cursor: pointer; }
.kw.down { background: linear-gradient(#e2e2e0, #d4d4d2); box-shadow: inset 0 -1px 0 #cfcfcd; }
.kb.down { background: linear-gradient(#3a3a3a, #222); box-shadow: inset 0 -3px 0 var(--ember); }
.kw.down::after, .kb.down::after { content: ''; position: absolute; left: 50%; bottom: 26%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--ember); }
.wheel { position: relative; width: 30px; height: 120px; border-radius: 6px; background: repeating-linear-gradient(#303030 0 3px, #141414 3px 7px); box-shadow: inset 0 0 0 1px #000; }
.wheel b { position: absolute; left: 0; right: 0; top: 50%; height: 4px; background: #ddd; transform: translateY(-50%); }
.wheel.m b { background: var(--ember); top: 96%; }
button.wheel { padding: 0; border: 0; cursor: ns-resize; touch-action: none; }
.modes { display: flex; flex-direction: column; gap: 6px; justify-content: center; }
.modes button { width: 74px; padding: 9px 0; text-align: center; font-size: 10.5px; letter-spacing: .14em; border-radius: 4px; background: #f7f7f5; box-shadow: 0 0 0 1px #cfcfcd; color: #858583; border: 0; }
.modes button.on { background: #141414; color: #eee; box-shadow: none; }

/* ---------- engines ---------- */
.engines { height: 100vh; min-height: 720px; overflow: hidden; padding-top: var(--nav-h); }
.engines > .wrap { height: 100%; }
.eng-grid { height: 100%; display: grid; grid-template-columns: minmax(0, 580fr) minmax(0, 740fr); gap: 24px; align-items: center; transform: translateY(-32px); }
.eng-copy { position: relative; align-self: stretch; display: flex; flex-direction: column; justify-content: center; padding-bottom: 80px; }
.eng-copy .h2 { margin: 18px 0 28px; }
.eng-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; }
.eng-panels { position: relative; min-height: 250px; }
.eng-panel h3 { margin: 0 0 14px; font-size: clamp(26px, 2.36vw, 34px); font-weight: 900; line-height: 1; }
.eng-panel p { margin: 0 0 22px; font-size: 15px; line-height: 1.75; color: var(--mid); max-width: 460px; }
.spec { display: flex; flex-wrap: wrap; gap: 14px 36px; margin: 0; }
.spec dt { font-size: 10px; letter-spacing: .2em; color: var(--lo); }
.spec dd { margin: 5px 0 0; font-size: 22px; letter-spacing: .04em; color: var(--hi); font-variant-numeric: tabular-nums; }
.js .eng-panel { position: absolute; left: 0; top: 0; right: 0; opacity: 0; transform: translateY(14px); visibility: hidden; transition: opacity .45s var(--ease), transform .55s var(--ease), visibility 0s .5s; }
.js .eng-panel.on { opacity: 1; transform: none; visibility: visible; transition: opacity .45s var(--ease) .08s, transform .55s var(--ease) .08s, visibility 0s; }
.eng-progress { position: absolute; left: 0; right: 0; bottom: 40px; }
.eng-progress div { height: 2px; background: var(--line); }
.eng-progress i { display: block; height: 100%; width: 25%; background: var(--ember); transition: width .6s var(--ease); }
.eng-progress p { margin: 12px 0 0; font-size: 10px; letter-spacing: .2em; color: var(--lo); }
.eng-stage { height: min(680px, calc(100vh - 170px)); min-height: 420px; margin-top: 26px; }
.eng-meter { position: absolute; left: 0; right: 0; bottom: -44px; display: flex; align-items: center; justify-content: center; gap: 18px; font-size: 11px; letter-spacing: .24em; color: var(--mid); }
.eng-meter .n { width: 110px; text-align: right; }
.eng-meter canvas { width: 200px; height: 15px; }
.eng-meter .s { color: var(--lo); }

/* ---------- halftone edges between dark and paper ---------- */
.ht-edge { position: absolute; left: 0; width: 100%; height: 56px; z-index: 3; pointer-events: none; display: block; }
.ht-edge.top { top: -56px; }
.ht-edge.bot { bottom: -56px; }

/* ---------- mold ---------- */
.mold { z-index: 2; padding-block: 90px 110px; }
.mold-grid { display: grid; grid-template-columns: minmax(0, 620fr) minmax(0, 644fr); gap: 64px; align-items: start; }
.mold-stage { position: sticky; top: calc(var(--nav-h) + 40px); height: min(760px, calc(100vh - var(--nav-h) - 80px)); }
.mold-stage .orb-anchor { bottom: 40px; }
.mold-tag { position: absolute; left: 0; bottom: 0; font-size: 11px; letter-spacing: .22em; color: var(--ink-mid); font-variant-numeric: tabular-nums; }
.mold-tag b { color: var(--ink); font-weight: 500; }
.mold .h2 { color: var(--ink); margin: 18px 0 20px; }
.mold .lede { max-width: 560px; }
.mold-list { list-style: none; padding: 0; margin: 28px 0 0; border-top: 1px solid var(--hair); }
.mold-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 56px; align-items: baseline; gap: 16px; padding: 12px 6px 12px 24px; border: 0; border-bottom: 1px solid var(--hair); position: relative; background: transparent; width: 100%; text-align: left; color: var(--ink); transition: background .3s, padding .4s var(--ease); }
.mold-row::before { content: ''; position: absolute; left: 6px; top: 50%; width: 7px; height: 7px; margin-top: -3px; border-radius: 50%; background: var(--hair); transition: background .3s, transform .3s; }
.mold-row.on { background: rgba(20, 20, 20, .05); padding-left: 32px; }
.mold-row.on::before { background: var(--ember); transform: scale(1.2); }
.mold-row .n { font-family: var(--doto); font-weight: 900; font-size: 27px; line-height: 1; text-transform: uppercase; }
.mold-row .d { font-size: 13px; color: var(--ink-mid); }
.mold-row .v { text-align: right; font-size: 12px; font-weight: 500; color: var(--ink-mid); font-variant-numeric: tabular-nums; }
.mold-row.on .v { color: var(--ink); }
.mold-row:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }

/* ---------- macros ---------- */
.macros { padding-block: calc(var(--nav-h) + 54px) 60px; }
.mac-grid { display: grid; grid-template-columns: minmax(0, 400fr) minmax(0, 460fr) minmax(0, 400fr); gap: 34px; align-items: center; margin-top: 30px; }
.mac-stage { height: 400px; }
.card { padding: 18px 18px 10px; border-radius: 14px; background: #111; box-shadow: inset 0 0 0 1px #242424; }
.card .uc-h { font-size: 12px; }
.card .uc-s { font-size: 10.5px; margin-top: 6px; }
.card canvas { display: block; width: 100%; height: auto; aspect-ratio: 364 / 134; margin-top: 8px; }
.note { margin: 14px 0 0; font-size: 13px; line-height: 1.7; color: var(--mid); }
.plate { width: min(860px, 100%); margin: 20px auto 0; padding: 30px 30px 24px; border-radius: 20px; background: linear-gradient(#f0f0ee, #dadad8); box-shadow: inset 0 1px 0 #fff, 0 30px 70px rgba(0, 0, 0, .55); color: var(--ink); }
.plate-knobs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.mk { text-align: center; }
.mk .knob { width: 96px; height: 96px; }
.mk b { display: block; margin-top: 16px; font-size: 12px; font-weight: 500; letter-spacing: .28em; color: #2b2b29; }
.mk span { display: block; margin-top: 4px; font-size: 11px; letter-spacing: .16em; color: #7f7f7d; font-variant-numeric: tabular-nums; }
.plate-sculpt { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 22px; font-size: 11px; letter-spacing: .2em; color: #7f7f7d; }
.plate-sculpt .seg { max-width: 380px; flex: 1 1 240px; }
.plate-sculpt em { font-style: normal; letter-spacing: .04em; color: #6d6d6b; }

/* ---------- move ---------- */
.move { padding-block: calc(var(--nav-h) + 30px) 50px; }
.move-head, .pre-head { display: grid; grid-template-columns: minmax(0, 1fr) 404px; gap: 40px; align-items: center; }
.move-head .h2, .pre-head .h2 { margin: 18px 0 22px; }
.move-head .lede { max-width: 620px; }
.move-stage { height: 340px; }
.drawer { margin-top: 26px; background: #0c0c0c; border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.drawer-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.drawer-tabs { display: flex; gap: 8px; }
.dtab { padding: 11px 24px; border-radius: 999px; border: 1px solid #292929; background: transparent; font-size: 13px; letter-spacing: .22em; color: #8a8a88; transition: color .25s, background .25s, border-color .25s; }
.dtab:hover { color: var(--hi); }
.dtab.on { background: #1b1b1b; border-color: #3a3a3a; color: var(--hi); }
.caret { width: 64px; text-align: center; padding: 9px 0; border: 1px solid #292929; border-radius: 999px; font-size: 11px; color: #8a8a88; }
.drawer-hint { margin: 0; text-align: right; font-size: 12px; letter-spacing: .08em; color: var(--lo); }
.dpanel { margin-top: 18px; }
.mod { display: flex; flex-direction: column; min-height: 250px; padding: 16px; border-radius: 12px; background: #101010; border: 1px solid #222; }
.mod-h { display: flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: .24em; color: #bdbdbb; flex-wrap: wrap; padding: 0; border: 0; background: none; text-align: left; }
.mod-h em { font-style: normal; font-size: 10px; letter-spacing: .18em; color: #555553; }
button.mod-h:hover { color: var(--hi); }
.chips { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px; }
.chips b, .chips button { font-weight: 400; font-size: 10px; letter-spacing: .14em; padding: 5px 7px; border-radius: 4px; border: 1px solid #2b2b2b; color: #7a7a78; background: transparent; }
.chips button:hover { color: var(--hi); border-color: #555; }
.chips .on, .chips button.on:hover { background: #e9e9e7; color: #111; border-color: #e9e9e7; }
.mknobs { display: flex; gap: 14px; justify-content: space-around; }
.mknobs > div { text-align: center; min-width: 44px; }
.mknobs b { display: block; margin-top: 9px; font-weight: 400; font-size: 10px; letter-spacing: .18em; color: #a3a3a1; }
.mknobs span { display: block; font-size: 10px; color: #5e5e5c; margin-top: 2px; font-variant-numeric: tabular-nums; }
.mod-foot { display: flex; align-items: flex-end; gap: 18px; margin-top: auto; padding-top: 18px; }
.mod-foot .mknobs { justify-content: flex-start; }
.mod-foot canvas { margin-left: auto; width: 300px; max-width: 55%; height: auto; aspect-ratio: 2 / 1; border: 1px solid #262626; border-radius: 3px; display: block; }
.fx-chain { position: relative; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: 14px; font-size: 11px; letter-spacing: .2em; color: var(--lo); }
.fx-chain i { width: 22px; height: 1px; background: #333; }
.fx-dot { position: absolute; top: 50%; left: 0; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 10px var(--ember); }
@keyframes fxdot { from { left: 0%; } to { left: 100%; } }
.fx-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.fx-grid .mknobs { margin-top: auto; padding-top: 22px; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

/* ---------- presets ---------- */
.presets { padding-block: calc(var(--nav-h) + 40px) 40px; }
.pre-head .lede { max-width: 660px; }
.pre-stage { height: 300px; }
.pre-loaded { position: absolute; left: 0; right: 0; bottom: -4px; text-align: center; font-size: 10px; letter-spacing: .24em; color: var(--lo); }
.pre-loaded b { color: var(--hi); font-weight: 400; }
.pb { margin-top: 24px; background: #0b0b0b; border: 1px solid var(--line); border-radius: 18px; padding: 22px 28px 16px; box-shadow: 0 40px 90px rgba(0, 0, 0, .5); }
.pb-top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.pb-title { font-size: 15px; letter-spacing: .3em; }
.pb-search { flex: 0 1 520px; }
.pb-search input { width: 100%; border: 1px solid #3a3a3a; border-radius: 999px; padding: 11px 20px; font: 15px var(--mono); letter-spacing: .1em; color: var(--hi); background: transparent; outline: none; }
.pb-search input::placeholder { color: var(--lo); }
.pb-search input:focus { border-color: #777; }
.pb-count { margin-left: auto; font-size: 14px; letter-spacing: .2em; font-variant-numeric: tabular-nums; }
.pb-x { width: 64px; height: 44px; border: 1px solid var(--line2); border-radius: 999px; display: grid; place-items: center; color: var(--mid); background: transparent; }
.pb-x:hover { color: var(--hi); border-color: #555; }
.pb-body { display: grid; grid-template-columns: 230px minmax(0, 1fr); height: 440px; }
.pb-cats { list-style: none; margin: 0; padding: 12px 14px 0 0; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.cat { display: flex; justify-content: space-between; gap: 12px; padding: 11px 20px; border-radius: 10px; font-size: 14px; letter-spacing: .2em; color: #cfcfcd; background: transparent; border: 0; width: 100%; text-align: left; white-space: nowrap; }
.cat:hover { background: #151515; }
.cat.on { background: #1b1b1b; color: var(--hi); }
.cat span:last-child { color: #7a7a78; font-variant-numeric: tabular-nums; }
.cat.fav span:first-child { color: var(--ember); }
.pb-list { list-style: none; margin: 0; padding: 10px 0 0 12px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #e9e9e7 #111; outline: none; }
.pb-row { display: grid; grid-template-columns: 52px minmax(0, 1.5fr) minmax(0, .6fr) minmax(0, 1.3fr) 40px 36px; align-items: center; gap: 10px; padding: 9px 12px 9px 14px; border-radius: 8px; font-size: 14px; letter-spacing: .16em; cursor: pointer; }
.pb-row:hover { background: #151515; }
.pb-row.on { background: #1b1b1b; }
.pb-row .num { color: var(--lo); font-variant-numeric: tabular-nums; }
.pb-row .name { color: #e2e2e0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pb-row .c { color: #7a7a78; font-size: 13px; }
.pb-row canvas { width: 100%; height: 22px; display: block; }
.pb-play { display: grid; place-items: center; width: 34px; height: 30px; border-radius: 6px; font-size: 11px; color: #cfcfcd; border: 1px solid #454545; background: transparent; }
.pb-play:hover, .pb-play.on { background: var(--hi); color: var(--ink); }
.pb-star { border: 0; background: transparent; font-size: 16px; color: var(--lo); }
.pb-star.on { color: var(--ember); }
.pb-list:focus-visible .pb-row.on { box-shadow: inset 0 0 0 2px var(--ember); }
.pb-empty, .pb-more { margin: 14px 14px 6px; font-size: 12px; letter-spacing: .14em; color: var(--lo); }
.pb-foot { margin: 12px 0 0; font-size: 12.5px; letter-spacing: .05em; color: #7a7a78; }

/* ---------- play ---------- */
.play { padding-block: calc(var(--nav-h) + 40px) 60px; }
.play-top { display: grid; grid-template-columns: minmax(0, 680fr) minmax(0, 648fr); gap: 24px; align-items: start; }
.play-top .h2 { margin: 18px 0 20px; }
.play-top .lede { max-width: 560px; }
.play-right { display: flex; flex-direction: column; align-items: flex-end; padding-top: 30px; }
.loaded { display: flex; align-items: center; gap: 14px; border: 1px solid #262626; border-radius: 999px; padding: 7px 7px 7px 18px; font-size: 11px; letter-spacing: .2em; color: var(--lo); }
.loaded b { font-weight: 400; color: var(--hi); white-space: nowrap; }
.play-stage { align-self: flex-start; width: 80%; height: 380px; margin-top: -6px; }
.keystrip { margin-top: 40px; display: flex; gap: 16px; align-items: stretch; height: 230px; padding: 16px; border-radius: 18px; color: var(--ink); background: linear-gradient(#f2f2f0, #dddddb); box-shadow: inset 0 1px 0 #fff, 0 40px 90px rgba(0, 0, 0, .55); position: relative; z-index: 1; }
.ks-col { display: flex; flex-direction: column; align-items: center; justify-content: space-between; font-size: 10px; letter-spacing: .16em; color: #8a8a88; flex: none; }
.ks-col .uk-glyph { font-size: 30px; }
.oct { display: flex; gap: 4px; }
.oct button { width: 30px; height: 26px; border: 0; border-radius: 5px; background: #f7f7f5; box-shadow: 0 0 0 1px #cfcfcd; color: var(--ink); }
.wheels { display: grid; grid-template-columns: 30px 30px; gap: 8px; align-content: space-between; font-size: 10px; letter-spacing: .16em; color: #8a8a88; }
.wheels small { grid-column: 1 / -1; }
.glide { writing-mode: vertical-lr; direction: rtl; width: 22px; height: 150px; accent-color: #141414; margin: 0; cursor: pointer; }
.kbd-wrap { flex: 1; min-width: 0; position: relative; overflow-x: auto; overflow-y: hidden; border-radius: 6px; scrollbar-width: thin; }
.kbd-play { min-width: 700px; }
.out-meter { width: 10px; height: 150px; }

/* ---------- notify ---------- */
.notify { z-index: 2; padding-block: 110px 150px; }
.notify-grid { display: grid; grid-template-columns: minmax(0, 700fr) minmax(0, 584fr); gap: 44px; align-items: center; }
.notify .h2 { color: var(--ink); margin: 18px 0 22px; }
.notify .lede { max-width: 560px; }
.notify-stage { height: 560px; }
.nform { margin-top: 30px; max-width: 580px; }
.nrow { display: flex; gap: 8px; padding: 6px; border-radius: 999px; background: var(--paper-hi); box-shadow: inset 0 0 0 1px var(--hair), inset 0 2px 3px rgba(0, 0, 0, .05), 0 1px 0 #fff; transition: box-shadow .25s; }
.nrow:focus-within { box-shadow: inset 0 0 0 1px var(--ink), 0 1px 0 #fff; }
.nrow.bad { box-shadow: inset 0 0 0 1px var(--ember-ink); animation: shake .45s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.ninput { flex: 1; min-width: 0; padding: 12px 18px; font: 16px var(--mono); letter-spacing: .03em; color: var(--ink); background: transparent; border: 0; outline: none; }
.ninput::placeholder { color: var(--ink-lo); }
.nsubmit { flex: none; }
.ncheck { display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; font-size: 13px; color: var(--ink-mid); cursor: pointer; }
.ncheck input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ncheck i { width: 16px; height: 16px; border-radius: 3px; background: var(--paper-hi); box-shadow: inset 0 0 0 1px #8f8f8d; position: relative; flex: none; }
.ncheck input:checked + i { background: var(--ink); box-shadow: none; }
.ncheck input:checked + i::after { content: ''; position: absolute; left: 5px; top: 2px; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.ncheck input:focus-visible + i { outline: 2px solid var(--ember); outline-offset: 2px; }
.nmsg { min-height: 21px; margin: 12px 0 0; font-size: 13px; color: var(--ember-ink); }
.nsmall { margin: 4px 0 0; font-size: 12px; line-height: 1.7; color: var(--ink-mid); }
.proto { color: var(--ink-lo); }
.ndone { margin-top: 34px; }
.ndone .px { width: 290px; color: var(--ink); }
.ndone .lede { margin-top: 20px; }
.ndone .pill { margin-top: 22px; }

/* ---------- footer ---------- */
.foot { padding-block: 80px 34px; }
.specs { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 24px; margin: 0; padding: 22px 0; border-block: 1px solid var(--line); }
.specs dt { font-size: 10px; letter-spacing: .2em; color: var(--lo); }
.specs dd { margin: 6px 0 0; font-size: 18px; letter-spacing: .06em; color: var(--hi); }
.foot-word { margin: 50px 0 34px; }
.foot-word .px { color: #1e1e1d; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: 11px; letter-spacing: .2em; color: var(--lo); }
.foot-row a:hover { color: var(--hi); }

/* ---------- responsive ---------- */
@media (max-width: 1240px) {
  .nav-chips { display: none; }
  .menu-btn { display: flex; }
  .fx-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .scrub { display: none; }
}
@media (max-width: 1080px) {
  .hero-grid, .eng-grid, .mold-grid, .notify-grid { grid-template-columns: 1fr; }
  .hero-stage { order: -1; height: 64vw; max-height: 560px; min-height: 360px; }
  .hero-copy { padding-block: 10px 60px; }
  .win-head { grid-template-columns: 1fr; }
  .win-head .lede { margin-top: 12px; }
  .eng-grid { align-content: start; gap: 0; }
  .eng-stage { order: -1; height: 40vh; min-height: 260px; margin-top: 8px; }
  .eng-meter { display: none; }
  .eng-copy { padding-bottom: 60px; justify-content: flex-start; }
  .eng-progress { bottom: 22px; }
  .mold-stage { top: var(--nav-h); height: 40vh; z-index: 4; margin-inline: calc(-1 * var(--gut)); background: var(--paper); border-bottom: 1px solid var(--hair); }
  .mold-stage .orb-anchor { bottom: 26px; }
  .mold-tag { left: var(--gut); bottom: 10px; }
  .mac-grid { grid-template-columns: 1fr 1fr; }
  .mac-stage { grid-column: 1 / -1; grid-row: 1; height: 56vw; max-height: 420px; }
  .move-head, .pre-head { grid-template-columns: 1fr; }
  .move-stage, .pre-stage { order: -1; height: 50vw; max-height: 340px; }
  .two { grid-template-columns: 1fr; }
  .pb-body { grid-template-columns: 1fr; height: auto; }
  .pb-cats { flex-direction: row; overflow-x: auto; padding: 12px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .cat { width: auto; padding: 9px 14px; }
  .pb-list { max-height: 460px; padding-left: 0; }
  .play-top { grid-template-columns: 1fr; }
  .play-right { align-items: stretch; padding-top: 0; }
  .loaded { align-self: flex-start; }
  .play-stage { width: 100%; height: 56vw; max-height: 360px; margin-top: 0; }
  .keystrip { margin-top: 10px; }
  .notify-stage { order: -1; height: 56vw; max-height: 460px; }
}
@media (max-width: 760px) {
  :root { --nav-h: 56px; }
  .nav .pill { padding: 10px 12px; font-size: 9.5px; letter-spacing: .14em; }
  .nav-mark { width: 110px; }
  .sound-toggle { min-width: 0; padding: 8px 10px; font-size: 9.5px; letter-spacing: .12em; }
  .sound-toggle .full { display: none; }
  .nav .pill .full { display: none; }
  .hero { min-height: 0; padding-bottom: 20px; }
  .ticker, .scroll-cue { display: none; }
  .hero-stage { height: 330px; min-height: 0; margin-inline: calc(-1 * var(--gut)); }
  .hero-stage .orb-anchor { bottom: 40px; }
  .hud, .hud-axis, .vs, .hint { display: none; }
  .hero-tools { left: var(--gut); top: 8px; }
  .hero-tools .pill { padding: 8px 12px; font-size: 9.5px; }
  .readouts { left: var(--gut); right: var(--gut); }
  .readouts .read:nth-child(4) { display: none; }
  .read b { font-size: 16px; }
  .hero-word { margin-top: 18px; }
  .spaced { font-size: 10px; margin-top: 12px; }
  .hero-title { font-size: 34px; margin: 22px 0 12px; }
  .hero .lede { font-size: 14px; line-height: 1.7; }
  .hero-cta { margin-top: 22px; }
  .hero-cta > * { flex: 1; padding: 15px 10px; }
  .window { padding-top: calc(var(--nav-h) + 24px); min-height: 0; }
  .win-note { display: none; }
  .engines { min-height: 0; }
  .eng-copy .h2 { font-size: 34px; margin: 12px 0 16px; }
  .eng-tabs { gap: 6px; margin-bottom: 20px; }
  .eng-tabs .ur-tab { padding: 8px 12px; font-size: 9.5px; letter-spacing: .14em; }
  .eng-panel p { font-size: 14px; line-height: 1.7; }
  .spec { gap: 12px 22px; }
  .spec dd { font-size: 17px; }
  .eng-progress p { display: none; }
  .mold { padding-block: 70px 90px; }
  .mold-stage { height: 290px; }
  .mold-row { grid-template-columns: minmax(0, 1fr) 56px; padding-block: 10px; }
  .mold-row .d { display: none; }
  .mold-row .n { font-size: 22px; }
  .mold .h2 { font-size: 30px; }
  .mac-grid { grid-template-columns: 1fr; gap: 20px; }
  .mac-stage { height: 64vw; }
  .plate { padding: 26px 16px 20px; }
  .plate-knobs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 12px; }
  .mk .knob { width: 84px; height: 84px; }
  .drawer { padding: 14px; border-radius: 14px; }
  .drawer-bar { grid-template-columns: 1fr; }
  .caret { display: none; }
  .drawer-hint { text-align: left; }
  .dtab { padding: 9px 18px; font-size: 12px; }
  .fx-grid { grid-template-columns: 1fr 1fr; }
  .mod-foot { flex-wrap: wrap; }
  .mod-foot canvas { max-width: none; width: 100%; flex-basis: 100%; }
  .pb { padding: 16px 12px 14px; border-radius: 14px; }
  .pb-count { margin-left: 0; }
  .pb-x { display: none; }
  .pb-row { grid-template-columns: 30px minmax(0, 1fr) 36px 30px; gap: 8px; padding: 10px 6px; font-size: 13px; letter-spacing: .1em; }
  .pb-row .c, .pb-row canvas { display: none; }
  .pb-foot { display: none; }
  .play-top .h2 { font-size: 36px; }
  .loaded { width: 100%; padding-left: 14px; font-size: 10px; letter-spacing: .16em; }
  .loaded b { flex: 1; overflow: hidden; text-overflow: ellipsis; }
  .play-stage { height: 250px; margin-inline: calc(-1 * var(--gut)); width: auto; }
  .keystrip { flex-wrap: wrap; height: auto; padding: 12px; gap: 12px; border-radius: 16px; }
  .keystrip .ks-oct, .keystrip .ks-glide, .keystrip .ks-out { display: none; }
  .wheels { grid-template-columns: 26px 26px; }
  .wheel { width: 26px; height: 84px; }
  .wheels small { display: none; }
  .modes { flex-direction: row; flex: 1; justify-content: flex-end; align-items: center; }
  .modes button { width: 70px; }
  .kbd-wrap { flex-basis: 100%; height: 160px; }
  .kbd-play { min-width: 1100px; }
  .notify { padding-block: 70px 120px; }
  .notify-stage { height: 250px; }
  .notify .h2 { font-size: 38px; }
  .nrow { flex-direction: column; border-radius: 22px; }
  .nsubmit { width: 100%; }
  .specs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-row { flex-direction: column; }
}
@media (max-width: 420px) {
  .fx-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .window, .engines { height: auto; min-height: 0; padding-bottom: 60px; }
}

/* skip-link для клавиатуры/скринридеров */
.skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--hi); color: var(--void); padding: 10px 16px; border-radius: 0 0 8px 0; font-size: 12px; letter-spacing: .1em; }
.skip:focus { left: 0; }
