/* Yve — the palette is lifted from the mark: a void, and light in four colours. */
:root {
  --void: #06040d;
  --pearl: #f3effc;
  --haze: #a49db9;
  --dim: #6f6888;
  --cyan: #2ce8ff;
  --blue: #5a86ff;
  --violet: #9a6bff;
  --magenta: #ff48e4;
  --line: rgba(243, 239, 252, 0.14);
  --panel: rgba(8, 6, 18, 0.72);

  --display: 'Unbounded', 'Avenir Next', 'Segoe UI', sans-serif;
  --text: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif;

  --step--1: clamp(0.8rem, 0.78rem + 0.1vw, 0.875rem);
  --step-0: clamp(1rem, 0.96rem + 0.2vw, 1.125rem);
  --step-1: clamp(1.2rem, 1.1rem + 0.5vw, 1.5rem);
  --step-2: clamp(1.6rem, 1.3rem + 1.5vw, 2.5rem);
  --step-3: clamp(2.1rem, 1.5rem + 3vw, 4rem);
  --gutter: clamp(1.25rem, 5vw, 5rem);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; background: var(--void); }

body {
  margin: 0;
  background: var(--void);
  color: var(--pearl);
  font: 400 var(--step-0) / 1.6 var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { display: block; max-width: 100%; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap;
}

/* ───────── the field ───────── */
#field {
  position: fixed; inset: 0; width: 100%; height: 100%;
  z-index: 0; display: block;
}
.no-webgl #field {
  background:
    url(../assets/mark.webp) center 12vh / min(70vw, 46rem) auto no-repeat,
    radial-gradient(60% 50% at 30% 40%, rgba(44, 232, 255, 0.12), transparent 70%),
    radial-gradient(60% 50% at 70% 40%, rgba(255, 72, 228, 0.12), transparent 70%),
    var(--void);
}

main, .masthead, .colophon { position: relative; z-index: 1; }

/* ───────── masthead ───────── */
.masthead {
  position: fixed; inset: 0 0 auto 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding: 1.25rem var(--gutter);
  background: linear-gradient(rgba(6, 4, 13, 0.85), rgba(6, 4, 13, 0));
  pointer-events: none;
}
.masthead > * { pointer-events: auto; }
.masthead__maker img { width: clamp(150px, 17vw, 230px); height: auto; }
.masthead nav ul { display: flex; gap: clamp(1rem, 2.2vw, 2.25rem); }
.masthead nav a {
  font-size: var(--step--1); text-decoration: none; color: var(--haze);
  padding: 0.4rem 0; transition: color 0.2s;
}
.masthead nav a:hover, .masthead nav a[aria-current='true'] { color: var(--pearl); }
@media (max-width: 720px) { .masthead nav { display: none; } }

/* ───────── scenes ───────── */
.scene {
  min-height: 115vh;
  padding: 22vh var(--gutter) 18vh;
  display: flex; flex-direction: column; justify-content: center;
}
.scene__copy { max-width: 33rem; }
.scene__copy--wide { max-width: 68rem; }

/* A soft pool of dark behind copy, so text never fights the light. */
.scene__copy, .engines, .signal { position: relative; }
.scene__copy::before {
  content: ''; position: absolute; inset: -5rem -7rem; z-index: -1;
  background: radial-gradient(closest-side, rgba(6, 4, 13, 0.82), rgba(6, 4, 13, 0.55) 60%, transparent);
  pointer-events: none;
}

h2 {
  font: 300 var(--step-3) / 1.08 var(--display);
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin-bottom: 1.75rem;
}
h3 { font: 400 var(--step-0) / 1.3 var(--display); letter-spacing: 0.01em; }
.lede { font-size: var(--step-1); line-height: 1.5; color: var(--pearl); text-wrap: pretty; }
p + p { margin-top: 1.1rem; }
.scene p:not(.lede) { color: var(--haze); max-width: 62ch; }

/* ───────── hero ───────── */
.hero {
  min-height: 100vh; min-height: 100svh;
  padding: 0 var(--gutter) 7vh;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  text-align: center;
}
.hero__name {
  font: 300 clamp(3.2rem, 9.5vw, 8rem) / 1 var(--display);
  letter-spacing: 0.42em; margin-right: -0.42em;
}
.hero__full {
  margin-top: 1rem;
  font: 300 var(--step--1) / 1 var(--display);
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: #d9b8f5;
  display: flex; align-items: center; gap: 1.5em;
}
.hero__full::before, .hero__full::after {
  content: ''; width: clamp(2rem, 6vw, 5rem); height: 1px;
  background: linear-gradient(90deg, transparent, #c9a2ee);
}
.hero__full::after { transform: scaleX(-1); margin-left: -0.5em; }
.hero__line {
  margin-top: 2.25rem; max-width: 34ch;
  font-size: var(--step-1); line-height: 1.45; color: var(--pearl); text-wrap: balance;
}
.hero__actions { margin-top: 2rem; display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; justify-content: center; }

.hero__name, .hero__full, .hero__line, .hero__actions {
  opacity: 0; transform: translateY(14px);
  animation: arrive 1.1s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.hero__name { animation-delay: 0.7s; }
.hero__full { animation-delay: 0.95s; }
.hero__line { animation-delay: 1.2s; }
.hero__actions { animation-delay: 1.4s; }
@keyframes arrive { to { opacity: 1; transform: none; } }

/* ───────── listen buttons ───────── */
.listen {
  display: inline-flex; align-items: center; gap: 0.75rem;
  padding: 0.55rem 1.15rem 0.55rem 0.6rem;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(10, 8, 22, 0.55);
  font-size: var(--step--1); color: var(--pearl); text-align: left;
  transition: border-color 0.2s, background 0.2s;
}
.listen:hover { border-color: rgba(243, 239, 252, 0.45); }
.listen__dot {
  flex: none; width: 2rem; height: 2rem; border-radius: 50%;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--cyan), var(--violet) 55%, var(--magenta));
  color: var(--void);
}
.listen__dot svg { width: 0.8rem; height: 0.8rem; fill: currentColor; }
.listen .icon-pause, .listen[aria-pressed='true'] .icon-play { display: none; }
.listen[aria-pressed='true'] .icon-pause { display: block; }
.listen[aria-pressed='true'] { border-color: var(--magenta); }
.listen--lead { padding: 0.7rem 1.5rem 0.7rem 0.7rem; font-size: var(--step-0); }
.listen--lead .listen__dot { width: 2.6rem; height: 2.6rem; }
.listen small { display: block; color: var(--haze); font-size: 0.78em; line-height: 1.2; }
.listens { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.75rem; }
.text-link { font-size: var(--step--1); color: var(--haze); text-underline-offset: 0.3em; }
.text-link:hover { color: var(--pearl); }

/* ───────── layers + morph pad ───────── */
.layers { display: grid; gap: 3rem; grid-template-columns: minmax(0, 33rem); }
.layer-list { margin-top: 2rem; display: grid; gap: 0.9rem; }
.layer-list li { display: grid; grid-template-columns: 1.1rem 1fr; gap: 0.9rem; align-items: baseline; color: var(--haze); }
.layer-list b { color: var(--pearl); font-weight: 500; }
.swatch { width: 1.1rem; height: 0.2rem; border-radius: 2px; transform: translateY(-0.3em); }
.swatch--0 { background: linear-gradient(90deg, #7b42ff, #2ce8ff); }
.swatch--1 { background: linear-gradient(90deg, #5a3cff, #2b8dff); }
.swatch--2 { background: linear-gradient(90deg, #ff3ae6, #8f62ff); }
.swatch--3 { background: linear-gradient(90deg, #ff2fcf, #c154ff); }

.pad-wrap { margin-top: 2.5rem; display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.pad {
  position: relative; width: 11rem; aspect-ratio: 1; flex: none;
  border: 1px solid var(--line); border-radius: 1.1rem;
  background:
    radial-gradient(circle at 0 0, rgba(44, 232, 255, 0.28), transparent 60%),
    radial-gradient(circle at 0 100%, rgba(43, 141, 255, 0.28), transparent 60%),
    radial-gradient(circle at 100% 0, rgba(255, 58, 230, 0.26), transparent 60%),
    radial-gradient(circle at 100% 100%, rgba(193, 84, 255, 0.28), transparent 60%),
    rgba(8, 6, 18, 0.7);
  touch-action: none; cursor: grab;
}
.pad:active { cursor: grabbing; }
.pad__puck {
  position: absolute; left: 50%; top: 50%; width: 1.5rem; height: 1.5rem;
  margin: -0.75rem 0 0 -0.75rem; border-radius: 50%;
  background: var(--pearl);
  box-shadow: 0 0 0 5px rgba(243, 239, 252, 0.16), 0 0 26px rgba(255, 255, 255, 0.7);
  pointer-events: none;
}
.pad-note { max-width: 17rem; font-size: var(--step--1); color: var(--haze); }

/* ───────── engines ───────── */
.engines {
  margin-top: 3.5rem;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(15.5rem, 1fr));
  border-bottom: 1px solid var(--line);
  background: linear-gradient(rgba(6, 4, 13, 0.7), rgba(6, 4, 13, 0.5));
}
.engines > div { padding: 1.4rem 1.5rem 1.5rem 0; border-top: 1px solid var(--line); }
.engines dt { font: 400 var(--step-1) / 1.2 var(--display); letter-spacing: -0.01em; }
.engines dd { margin-top: 0.5rem; color: var(--haze); font-size: var(--step--1); line-height: 1.55; max-width: 34ch; }

/* ───────── signal path (finish) ───────── */
.signal { margin-top: 3rem; display: grid; gap: 0; counter-reset: stage; max-width: 60rem; }
.signal li {
  display: grid; grid-template-columns: minmax(8rem, 13rem) 1fr; gap: 1.5rem;
  padding: 1.15rem 0; border-top: 1px solid var(--line);
}
.signal li:last-child { border-bottom: 1px solid var(--line); }
.signal h3 { color: var(--pearl); }
.signal p { color: var(--haze); font-size: var(--step--1); margin: 0; }
@media (max-width: 560px) { .signal li { grid-template-columns: 1fr; gap: 0.35rem; } }

/* ───────── facts ───────── */
.facts { margin-top: 2.5rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: 1.75rem 2.5rem; max-width: 46rem; }
.facts dt { font-size: var(--step--1); color: var(--haze); order: 2; }
.facts dd { font: 300 var(--step-2) / 1 var(--display); letter-spacing: -0.02em; }
.facts > div { display: flex; flex-direction: column; gap: 0.5rem; }

/* ───────── library ───────── */
.library { padding-bottom: 30vh; }
.library__head { display: grid; gap: 1.25rem; max-width: 46rem; }
.browser {
  margin-top: 2.75rem;
  border: 1px solid var(--line); border-radius: 1.25rem;
  background: var(--panel);
  -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px);
  overflow: hidden;
}
.browser__bar {
  display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; justify-content: space-between;
  padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--line);
}
.tabs { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.tab {
  padding: 0.5rem 1rem; border-radius: 999px; font-size: var(--step--1); color: var(--haze);
  border: 1px solid transparent;
}
.tab:hover { color: var(--pearl); }
.tab[aria-pressed='true'] { color: var(--void); background: var(--pearl); }
.tab span { opacity: 0.6; margin-left: 0.35rem; font-variant-numeric: tabular-nums; }
.search {
  flex: 1 1 13rem; max-width: 20rem;
  padding: 0.55rem 1rem; border-radius: 999px;
  border: 1px solid var(--line); background: rgba(243, 239, 252, 0.05);
  color: var(--pearl); font: inherit; font-size: var(--step--1);
}
.search::placeholder { color: var(--dim); }
.groups { display: flex; gap: 0.4rem; flex-wrap: wrap; padding: 0.85rem 1.25rem; border-bottom: 1px solid var(--line); }
.groups:empty { display: none; }
.group {
  padding: 0.3rem 0.8rem; border-radius: 999px; font-size: 0.8rem; color: var(--haze);
  border: 1px solid var(--line);
}
.group[aria-pressed='true'] { color: var(--pearl); border-color: var(--violet); background: rgba(154, 107, 255, 0.18); }

.rows { max-height: min(64vh, 40rem); overflow-y: auto; overscroll-behavior: contain; scrollbar-color: #3a3355 transparent; }
.row {
  width: 100%; display: grid; align-items: center; gap: 1rem;
  grid-template-columns: 2rem minmax(9rem, 1.3fr) minmax(0, 1fr) minmax(6rem, 14rem) 2.6rem;
  padding: 0.6rem 1.25rem; text-align: left;
  border-bottom: 1px solid rgba(243, 239, 252, 0.06);
}
.row:hover, .row:focus-visible { background: rgba(243, 239, 252, 0.05); outline-offset: -2px; }
.row__play {
  width: 2rem; height: 2rem; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line); color: var(--pearl);
}
.row__play svg { width: 0.7rem; height: 0.7rem; fill: currentColor; }
.row .icon-pause, .row[aria-pressed='true'] .icon-play { display: none; }
.row[aria-pressed='true'] .icon-pause { display: block; }
.row[aria-pressed='true'] .row__play { background: var(--pearl); color: var(--void); border-color: var(--pearl); }
.row[aria-pressed='true'] { background: rgba(154, 107, 255, 0.12); }
.row__name { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row__desc { color: var(--haze); font-size: var(--step--1); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row__time { color: var(--dim); font-size: 0.8rem; font-variant-numeric: tabular-nums; text-align: right; }
.wave { position: relative; height: 1.75rem; --p: 0%; }
.wave svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.wave path { fill: none; stroke: rgba(243, 239, 252, 0.3); stroke-width: 1.4; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.wave .wave__lit { clip-path: inset(0 calc(100% - var(--p)) 0 0); }
.wave .wave__lit path { stroke: url(#wave-light); }
.rows__empty { padding: 2.5rem 1.25rem; color: var(--haze); }
@media (max-width: 760px) {
  .row { grid-template-columns: 2rem minmax(0, 1fr) 3.75rem 2.2rem; gap: 0.75rem; padding-inline: 1rem; }
  .row__desc { display: none; }
}

/* ───────── now playing ───────── */
.dock {
  position: fixed; left: 50%; bottom: 1.25rem; z-index: 6;
  width: min(34rem, calc(100vw - 2rem));
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem;
  padding: 0.65rem 1.1rem 0.65rem 0.65rem;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(10, 8, 22, 0.86);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  transform: translate(-50%, 160%); transition: transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.dock[data-open='true'] { transform: translate(-50%, 0); }
.dock__toggle {
  width: 2.6rem; height: 2.6rem; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--cyan), var(--violet) 55%, var(--magenta)); color: var(--void);
}
.dock__toggle svg { width: 0.9rem; height: 0.9rem; fill: currentColor; }
.dock__toggle .icon-pause, .dock[data-playing='true'] .icon-play { display: none; }
.dock[data-playing='true'] .icon-pause { display: block; }
.dock__meta { min-width: 0; }
.dock__name { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.25; }
.dock__where { color: var(--haze); font-size: 0.8rem; line-height: 1.25; }
.dock__bar { margin-top: 0.4rem; height: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.dock__bar i { display: block; height: 100%; width: var(--p, 0%); background: linear-gradient(90deg, var(--cyan), var(--magenta)); }
.dock__skip { display: flex; gap: 0.25rem; }
.dock__skip button { width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center; color: var(--haze); }
.dock__skip button:hover { color: var(--pearl); background: rgba(243, 239, 252, 0.08); }
.dock__skip svg { width: 0.95rem; height: 0.95rem; fill: currentColor; }

/* ───────── outro + colophon ───────── */
.outro { min-height: 100vh; align-items: center; justify-content: flex-end; text-align: center; padding-bottom: 12vh; }
.outro .scene__copy { max-width: 40rem; }
.outro p:not(.lede) { margin-inline: auto; }
.colophon {
  padding: 3rem var(--gutter) 6.5rem; border-top: 1px solid var(--line);
  background: rgba(6, 4, 13, 0.9);
  display: grid; gap: 2rem; justify-items: center; text-align: center;
  color: var(--dim); font-size: var(--step--1);
}
.colophon img { width: min(30rem, 78vw); height: auto; }
.colophon p { max-width: 60ch; }

@media (max-width: 900px) {
  .scene { padding-top: 16vh; }
  .scene__copy::before { inset: -3rem -1.25rem; background: rgba(6, 4, 13, 0.66); filter: blur(24px); }
}

.still { scroll-behavior: auto; }
.still .hero__name, .still .hero__full, .still .hero__line, .still .hero__actions { animation: none; opacity: 1; transform: none; }
.still .dock { transition: none; }

/* ───────── additions ───────── */
.engines-note { margin-top: 2rem; }
.signal--plain { margin-top: 2.25rem; }
.outro .listens { justify-content: center; }
.scene__copy--wide::before { inset: -4rem -3rem; background: radial-gradient(closest-side, rgba(6, 4, 13, 0.86), rgba(6, 4, 13, 0.7) 70%, transparent); }

/* ───────── the instrument, as captured ───────── */
.instrument { align-items: center; }
.instrument__head { max-width: 44rem; text-align: center; }
.instrument__head .lede { margin-inline: auto; }
.viewer { width: min(100%, 66rem); margin-top: 3rem; }
.viewer__tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; }
.viewer__tab {
  padding: 0.5rem 1.1rem; border-radius: 999px; font-size: var(--step--1); color: var(--haze);
  border: 1px solid var(--line); background: rgba(8, 6, 18, 0.6);
  transition: color 0.2s, border-color 0.2s;
}
.viewer__tab:hover { color: var(--pearl); border-color: rgba(243, 239, 252, 0.4); }
.viewer__tab[aria-pressed='true'] { color: var(--void); background: var(--pearl); border-color: var(--pearl); }
.viewer__stage { margin-top: 2rem; perspective: 1800px; }
.viewer__glass {
  position: relative; border-radius: clamp(8px, 1.2vw, 18px); overflow: hidden;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
  box-shadow:
    0 0 0 1px rgba(243, 239, 252, 0.28),
    0 2px 0 1px rgba(255, 255, 255, 0.08) inset,
    -30px 30px 110px rgba(44, 232, 255, 0.2),
    30px 30px 110px rgba(255, 72, 228, 0.22),
    0 60px 140px rgba(0, 0, 0, 0.7);
  background: #1a1626;
}
.viewer__glass::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(60% 80% at var(--gx, 30%) var(--gy, 0%), rgba(255, 255, 255, 0.16), transparent 60%);
  mix-blend-mode: screen;
}
.viewer__img { width: 100%; height: auto; transition: opacity 0.25s; }
.viewer__img[data-swapping] { opacity: 0; }
.viewer__caption { margin: 1.5rem auto 0; max-width: 46ch; text-align: center; color: var(--haze); font-size: var(--step-0); min-height: 3.2em; }
.still .viewer__glass, .still .viewer__img { transition: none; }
@media (max-width: 520px) {
  .hero__full { letter-spacing: 0.3em; gap: 0.9em; font-size: 0.68rem; white-space: nowrap; }
  .hero__full::before, .hero__full::after { width: 1.25rem; }
  .hero__full::after { margin-left: -0.3em; }
}

/* ───────── deep pages ───────── */
h1 { font: 300 clamp(2.4rem, 1.4rem + 4.4vw, 5.2rem) / 1.04 var(--display); letter-spacing: -0.025em; text-wrap: balance; margin-bottom: 1.75rem; }
.masthead nav a[aria-current='page'] { color: var(--pearl); }
.page-hero { min-height: 92vh; justify-content: flex-end; padding-bottom: 12vh; }
.chips { margin-top: 2.25rem; display: flex; flex-wrap: wrap; gap: 0.5rem; padding: 0; }
.chip, .chips--static li {
  padding: 0.45rem 1rem; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(8, 6, 18, 0.6); color: var(--haze); font-size: var(--step--1); text-decoration: none;
}
.chip:hover { color: var(--pearl); border-color: rgba(243, 239, 252, 0.45); }
.chips--static { margin-top: 1rem; }
.chips--static li { color: var(--pearl); }
.more { margin-top: 2rem; }
.more a { color: var(--pearl); text-underline-offset: 0.35em; text-decoration-color: var(--violet); }

/* engines index */
.family { min-height: 0; padding-block: 14vh; }
.family__head { max-width: 40rem; }
.engine-grid { margin-top: 3rem; display: grid; gap: clamp(1rem, 2vw, 1.75rem); grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.engine-card { display: grid; gap: 0.35rem; text-decoration: none; color: var(--pearl); }
.engine-card canvas {
  width: 100%; aspect-ratio: 1; display: block; border-radius: 14px; background: #08061a;
  box-shadow: 0 0 0 1px var(--line), 0 20px 60px rgba(0, 0, 0, 0.5);
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.35s;
}
.engine-card:hover canvas, .engine-card:focus-visible canvas {
  transform: translateY(-4px) scale(1.015);
  box-shadow: 0 0 0 1px rgba(243, 239, 252, 0.5), 0 0 50px rgba(154, 107, 255, 0.4), 0 26px 70px rgba(0, 0, 0, 0.6);
}
.engine-card__name { margin-top: 0.6rem; font: 400 var(--step-0) / 1.25 var(--display); }
.engine-card__tag { color: var(--haze); font-size: var(--step--1); line-height: 1.45; }
.still .engine-card canvas { transition: none; }

/* one engine */
.engine { padding-top: 18vh; justify-content: flex-start; }
.engine__hero { display: grid; gap: clamp(2rem, 5vw, 5rem); grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; }
.engine__scope canvas {
  width: 100%; aspect-ratio: 1; display: block; border-radius: 22px; background: #08061a;
  box-shadow: 0 0 0 1px rgba(243, 239, 252, 0.22), -30px 30px 120px rgba(44, 232, 255, 0.16), 30px 30px 120px rgba(255, 72, 228, 0.18), 0 50px 120px rgba(0, 0, 0, 0.7);
}
.engine__intro h1 { margin-bottom: 1rem; }
.engine__intro .lede { margin-bottom: 1.5rem; }
.crumb { font-size: var(--step--1); margin-bottom: 1.25rem; }
.crumb a { color: var(--haze); text-decoration: none; }
.crumb a:hover { color: var(--pearl); }
.facts-line { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; padding: 0; color: var(--pearl); font: 400 var(--step--1) / 1.4 var(--display); }
.engine__body { margin-top: 12vh; display: grid; gap: 4.5rem; max-width: 60rem; }
.engine__block h2 { font-size: var(--step-2); margin-bottom: 0.75rem; }
.engine__bank { color: var(--haze); }
.engine__pager { margin-top: 14vh; display: grid; grid-template-columns: minmax(0, 12rem) 1fr minmax(0, 12rem); align-items: center; justify-items: center; gap: 1.5rem; }
.engine-card--small .engine-card__tag { margin-top: 0.6rem; }
.engine-card--small .engine-card__name { margin-top: 0; }
@media (max-width: 820px) {
  .engine__hero { grid-template-columns: 1fr; }
  .engine__scope { max-width: 26rem; }
}

/* feature areas */
.area { min-height: 0; padding-block: 16vh; align-items: stretch; }
.area__head { max-width: 46rem; }
.area__name { font: 400 var(--step--1) / 1 var(--display); color: #d9b8f5; margin-bottom: 1.25rem; }
.area .viewer { margin-inline: auto; margin-top: 3.5rem; }
.features { margin-top: 3.5rem; border-bottom: 1px solid var(--line); background: linear-gradient(rgba(6, 4, 13, 0.72), rgba(6, 4, 13, 0.55)); }
.feature { display: grid; grid-template-columns: minmax(10rem, 17rem) minmax(0, 1fr); gap: 1rem 2.5rem; padding: 1.75rem 0; border-top: 1px solid var(--line); scroll-margin-top: 6rem; }
.feature h3 { font-size: var(--step-1); line-height: 1.2; }
.feature__summary { color: var(--pearl) !important; font-size: var(--step-0); max-width: 62ch; }
.feature__details { margin-top: 1rem; display: grid; gap: 0.55rem; color: var(--haze); font-size: var(--step--1); max-width: 72ch; }
.feature__details li { padding-left: 1.1rem; position: relative; }
.feature__details li::before { content: ''; position: absolute; left: 0; top: 0.62em; width: 0.4rem; height: 1px; background: var(--violet); }
.feature__note { margin-top: 1rem !important; font-size: var(--step--1); }
.feature__note b { color: var(--pearl); font-weight: 500; margin-right: 0.4em; }
.tag { display: inline-block; margin-left: 0.75rem; padding: 0.2rem 0.6rem; border-radius: 999px; border: 1px solid var(--magenta); color: var(--magenta); font: 500 0.7rem/1.2 var(--text); vertical-align: middle; }
@media (max-width: 720px) { .feature { grid-template-columns: 1fr; } }
.engine-grid--tiles { grid-template-columns: repeat(auto-fill, minmax(min(45%, 8.5rem), 1fr)); gap: 1rem; }
.engine-grid--tiles .engine-card__name { font-size: 0.78rem; margin-top: 0.45rem; }
.engine-grid--tiles canvas { border-radius: 10px; }

/* ───────── pieces ───────── */
.pieces { margin-top: 3rem; display: grid; gap: 1.25rem; }
.piece { border: 1px solid var(--line); border-radius: 1.25rem; background: var(--panel); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); padding: 0.5rem 0.5rem 1.4rem; }
.piece__play { grid-template-columns: 2.6rem minmax(8rem, 16rem) minmax(0, 1fr) 2.6rem; border: 0; border-radius: 0.9rem; padding: 0.9rem 1rem; }
.piece__play .row__play { width: 2.6rem; height: 2.6rem; background: linear-gradient(135deg, var(--cyan), var(--violet) 55%, var(--magenta)); color: var(--void); border: 0; }
.piece__play .wave { height: 3rem; }
.piece__title { font: 400 var(--step-1) / 1.2 var(--display); }
.piece__blurb { margin: 0.6rem 1.1rem 0 !important; color: var(--pearl) !important; max-width: 62ch; }
.piece__parts { margin: 1rem 1.1rem 0; display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; color: var(--haze); font-size: var(--step--1); }
.piece__parts b { color: var(--pearl); font-weight: 500; margin-right: 0.35em; }
@media (max-width: 640px) { .piece__play { grid-template-columns: 2.6rem minmax(0, 1fr) 2.4rem; } .piece__play .wave { grid-column: 1 / -1; order: 5; } }

/* ───────── keyboard ───────── */
.keys { margin-top: 2.5rem; border: 1px solid var(--line); border-radius: 1.25rem; background: var(--panel); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); padding: 1.25rem; }
.keys__picker { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; }
.keys__choice { cursor: pointer; }
.keys__choice[aria-pressed='true'] { color: var(--void); background: var(--pearl); border-color: var(--pearl); }
.keys__about { margin: 0.9rem 0 1.1rem !important; font-size: var(--step--1); }
.keys__board { position: relative; display: grid; grid-template-columns: repeat(var(--whites), 1fr); height: clamp(8rem, 22vw, 13rem); touch-action: none; user-select: none; -webkit-user-select: none; }
.key { border-radius: 0 0 7px 7px; cursor: pointer; }
.key--white { grid-column: var(--w); grid-row: 1; background: linear-gradient(#efe9f7, #cfc6e4); border: 1px solid #1a1626; }
.key--black { position: absolute; top: 0; height: 62%; width: calc(100% / var(--whites) * 0.62); left: calc(100% / var(--whites) * var(--w) - 100% / var(--whites) * 0.31); background: linear-gradient(#2a2440, #0d0a18); border: 1px solid #000; z-index: 2; }
.key.is-down.key--white { background: linear-gradient(var(--cyan), var(--violet)); }
.key.is-down.key--black { background: linear-gradient(var(--magenta), var(--violet)); }
.keys__foot { margin-top: 1rem; display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: center; justify-content: space-between; }
.keys__status { margin: 0 !important; font-size: var(--step--1); }
.keys__midi { cursor: pointer; }

/* ───────── morph and stage demos ───────── */
.pad-note p { margin-top: 0.9rem; font-size: var(--step--1); color: var(--haze); }
.stage { margin: 3.5rem auto 0; display: grid; grid-template-columns: minmax(14rem, 22rem) minmax(0, 28rem); gap: clamp(1.5rem, 5vw, 4rem); align-items: center; justify-content: center; }
.stage__pad { position: relative; aspect-ratio: 1; border-radius: 50%; border: 1px solid var(--line); background: radial-gradient(circle, rgba(154, 107, 255, 0.16), rgba(8, 6, 18, 0.8) 70%); touch-action: none; cursor: grab; }
.stage__ring { position: absolute; inset: 4%; border-radius: 50%; border: 1px dashed rgba(243, 239, 252, 0.2); pointer-events: none; }
.stage__ring--inner { inset: 30%; }
.stage__head { position: absolute; left: 50%; top: 50%; width: 15%; aspect-ratio: 0.85; transform: translate(-50%, -50%); border-radius: 50%; background: #d8cfe9; pointer-events: none; }
.stage__head::before { content: ''; position: absolute; left: 50%; top: -14%; width: 22%; aspect-ratio: 1; transform: translateX(-50%) rotate(45deg); background: #d8cfe9; }
.stage__dot { position: absolute; width: 1.5rem; height: 1.5rem; margin: -0.75rem 0 0 -0.75rem; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 5px rgba(44, 232, 255, 0.18), 0 0 30px var(--cyan); pointer-events: none; }
.stage__orbit { cursor: pointer; }
.stage__orbit[aria-pressed='true'] { color: var(--void); background: var(--pearl); border-color: var(--pearl); }
@media (max-width: 720px) { .stage { grid-template-columns: minmax(0, 20rem); } }

/* ───────── feature copy ───────── */
.feature__points { margin-top: 0.9rem; display: flex; flex-wrap: wrap; gap: 0.45rem; padding: 0; }
.feature__points li { padding: 0.3rem 0.8rem; border-radius: 999px; border: 1px solid var(--line); color: var(--pearl); font-size: var(--step--1); background: rgba(8, 6, 18, 0.5); }
.feature__more { margin-top: 1rem; }
.feature__more summary { cursor: pointer; color: var(--haze); font-size: var(--step--1); width: fit-content; }
.feature__more summary:hover { color: var(--pearl); }
.feature__more[open] summary { color: var(--pearl); }
.stage { padding: clamp(1.25rem, 3vw, 2.5rem); border: 1px solid var(--line); border-radius: 1.5rem; background: var(--panel); -webkit-backdrop-filter: blur(22px); backdrop-filter: blur(22px); max-width: 62rem; }
.viewer__caption { text-shadow: 0 0 18px var(--void), 0 0 6px var(--void); color: var(--pearl); }
.area__head, .family__head, .instrument__head { text-shadow: 0 0 30px rgba(6, 4, 13, 0.9); }
.engine__intro { position: relative; }
.engine__intro::before { content: ''; position: absolute; inset: -2.5rem -3rem; z-index: -1; border-radius: 2rem; background: rgba(6, 4, 13, 0.72); filter: blur(22px); pointer-events: none; }
.engine__body { position: relative; }
.engine__body::before { content: ''; position: absolute; inset: -3rem; z-index: -1; background: rgba(6, 4, 13, 0.6); filter: blur(30px); pointer-events: none; }
