:root {
  --black: #050505;
  --ink: #111;
  --muted: #666660;
  --line: #d6d6cf;
  --paper: #fbfbf8;
  --wash: #f2f2ed;
  --orange: #f26b28;
  --blue: #2e6cf6;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  scroll-behavior: smooth;
}

@font-face {
  font-family: "PV4Pixel";
  src: url("./assets/poxel-font.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--paper);
  font-size: 14px;
  line-height: 1.25;
  font-weight: 300;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  user-select: none;
}

button,
.button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 0 15px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 300;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

button:hover,
.button:hover {
  background: var(--ink);
  color: #fff;
  transform: translateY(-1px);
}

.primary {
  background: var(--ink);
  color: #fff;
}

.primary:hover {
  background: #fff;
  color: var(--ink);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 94px;
  display: grid;
  grid-template-columns: 220px minmax(420px, 1fr) 260px;
  gap: 12px;
  align-items: stretch;
  padding: 12px 18px;
  background: var(--black);
  color: #f8f8f2;
}

.brand-zone {
  display: grid;
  grid-template-columns: 1fr 34px;
  gap: 12px;
  align-items: center;
  border-right: 1px solid #292929;
  padding-right: 18px;
}

.brand {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  height: 100%;
  line-height: 1;
}

.brand strong {
  font-family: inherit;
  font-size: clamp(30px, 3vw, 46px);
  line-height: 0.92;
  font-weight: 400;
  letter-spacing: -0.035em;
}

.brand span {
  font-family: inherit;
  font-size: clamp(17px, 1.35vw, 24px);
  line-height: 1;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: #d7d7d0;
}

.site-nav a::after,
.cart-count {
  font-size: 10px;
  color: #aaa;
}

.sound-toggle {
  position: relative;
  width: 32px;
  height: 32px;
  min-height: 32px;
  padding: 0;
  border-color: #3a3a3a;
  color: #f8f8f2;
  background: transparent;
}

.sound-toggle:hover,
.sound-toggle.is-on {
  background: #f8f8f2;
  color: #050505;
}

.speaker-icon {
  position: relative;
  width: 18px;
  height: 16px;
  display: block;
}

.speaker-icon::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 6px;
  height: 6px;
  background: currentColor;
}

.speaker-icon::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1px;
  border-style: solid;
  border-width: 7px 10px 7px 0;
  border-color: transparent currentColor transparent transparent;
}

.sound-toggle.is-on .speaker-icon {
  box-shadow: 11px 2px 0 -8px currentColor, 15px 2px 0 -8px currentColor;
}

.sound-toggle:not(.is-on)::after {
  content: "";
  position: absolute;
  width: 24px;
  height: 1px;
  background: currentColor;
  transform: rotate(-38deg);
}

.site-nav {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-left: 1px solid #292929;
}

.site-nav a {
  position: relative;
  display: grid;
  grid-template-columns: 18px 1fr;
  grid-template-rows: auto 1fr;
  gap: 4px 10px;
  align-items: start;
  min-height: 70px;
  padding: 8px 14px 7px;
  border-right: 1px solid #292929;
  font-size: 12px;
  transition: background 160ms ease, color 160ms ease;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 0;
  height: 1px;
  background: #f8f8f2;
  opacity: 0;
  transition: opacity 160ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  background: rgba(255, 255, 255, 0.045);
}

.site-nav a.is-active::before {
  content: "";
  position: absolute;
  top: 8px;
  right: 8px;
  width: 6px;
  height: 6px;
  background: #f8f8f2;
  border-radius: 50%;
}

.site-nav a.is-active::after {
  opacity: 0.9;
}

.catalog-link i {
  grid-row: 1 / 3;
  position: relative;
  width: 14px;
  height: 14px;
  margin-top: 1px;
  border: 1px solid currentColor;
  opacity: 0.86;
}

.catalog-link i[data-icon="space"] {
  border-radius: 50%;
}

.catalog-link i[data-icon="modules"]::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid currentColor;
}

.catalog-link i[data-icon="store"] {
  border-radius: 2px;
}

.catalog-link i[data-icon="store"]::after {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  top: -4px;
  height: 5px;
  border: 1px solid currentColor;
  border-bottom: 0;
}

.catalog-link strong {
  font-size: 12px;
  font-weight: 400;
}

.catalog-link span {
  color: #9f9f99;
  font-size: 10px;
  line-height: 1.25;
}

.nav-actions {
  display: grid;
  grid-template-columns: 1fr 88px 88px;
  align-items: center;
  gap: 10px;
}

.cart-count {
  justify-self: center;
}

.buy-button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #f8f8f2;
  border-radius: 999px;
  font-size: 12px;
}

.buy-button:hover {
  background: #f8f8f2;
  color: var(--black);
}

.geo-mark {
  display: none;
}

.nav-logo-mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 100%;
  overflow: hidden;
}

.nav-logo-mark img {
  display: block;
  max-width: 64px;
  max-height: 46px;
  object-fit: contain;
  filter: invert(1);
  opacity: 0.96;
}

.assembly-hero {
  position: relative;
  height: 420vh;
  background: #fff;
}

.hero-sticky {
  position: sticky;
  top: 94px;
  min-height: calc(100vh - 94px);
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 5vw;
}

.hero-stage {
  position: relative;
  width: min(760px, 82vw);
  height: min(650px, 72vh);
}

.hero-tile {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(270px, 28vw);
  aspect-ratio: 1;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.6);
  filter: drop-shadow(0 28px 34px rgba(0, 0, 0, 0.14));
  transition: filter 180ms ease;
  will-change: transform, opacity;
  background: transparent;
  border: 0;
  outline: 0;
  overflow: visible;
}

.hero-tile img,
.product-figure img,
.product-shot img,
.mini-sequencer-shot img,
.module-grid img,
.module-detail-grid img,
.store-card img,
.sync-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 180ms ease, filter 180ms ease;
}

.hero-tile img {
  object-fit: contain;
}

.hero-tile[data-hero-tile="bass"] img,
.hero-tile[data-hero-tile="fx"] img {
  transform: translateX(8px);
}

.hero-tile:hover img,
.product-figure:hover img,
.product-shot:hover img,
.mini-sequencer-shot:hover img,
.module-grid article:hover img,
.module-detail-grid article:hover img,
.store-card:hover img,
.sync-image:hover img {
  transform: rotateX(2deg) rotateY(-3deg) scale(1.02);
  filter: drop-shadow(0 18px 16px rgba(0, 0, 0, 0.14));
}

.hero-tile[data-hero-tile="bass"]:hover img,
.hero-tile[data-hero-tile="fx"]:hover img {
  transform: translateX(8px) rotateX(2deg) rotateY(-3deg) scale(1.02);
}

.hero-tile.is-snapped {
  filter: drop-shadow(0 10px 14px rgba(0, 0, 0, 0.18));
}

.hero-tile.snap-flash::after {
  content: "";
  position: absolute;
  inset: -8px;
  border: 1px solid var(--orange);
  border-radius: 12px;
  animation: snapFlash 520ms ease-out;
}

@keyframes snapFlash {
  0% {
    opacity: 0;
    box-shadow: 0 0 0 0 rgba(242, 107, 40, 0.0);
    transform: scale(0.98);
  }
  25% {
    opacity: 1;
    box-shadow: 0 0 0 5px rgba(242, 107, 40, 0.25);
    transform: scale(1.035) translateX(1px);
  }
  60% {
    opacity: 0.72;
    transform: scale(0.995) translateX(-1px);
  }
  100% {
    opacity: 0;
    box-shadow: 0 0 0 18px rgba(242, 107, 40, 0);
    transform: scale(1);
  }
}

.magnet-field {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(520px, 58vw);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.assembly-hero.is-active .magnet-field {
  opacity: 1;
}

.hero-title-stack {
  position: absolute;
  left: 7vw;
  bottom: 7vh;
  max-width: 530px;
  pointer-events: none;
}

.hero-title-stack h1 {
  margin: 0;
  font-size: clamp(58px, 10vw, 138px);
  line-height: 0.88;
  font-weight: 300;
  letter-spacing: -0.012em;
}

.hero-title-stack h1 span {
  display: block;
}

[data-hero-line] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 420ms ease, transform 420ms ease;
}

[data-hero-line].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-phrase {
  margin: 20px 0 0;
  font-size: 24px;
  font-weight: 600;
}

.hero-sub {
  margin: 7px 0 0;
  color: var(--muted);
}

.hero-actions,
.sound-meter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
  pointer-events: auto;
}

.sound-meter {
  margin-top: 12px;
}

.sound-meter button {
  min-height: 25px;
  padding: 0 10px;
  border-color: var(--line);
  font-size: 10px;
  color: var(--muted);
}

.sound-meter button.is-on {
  border-color: var(--ink);
  color: var(--ink);
  background: #ededdf;
}

.hero-readout {
  position: absolute;
  right: 7vw;
  bottom: 7vh;
  min-width: 280px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--ink);
  font-size: 12px;
}

.hero-readout b {
  font-size: 38px;
  line-height: 0.85;
  font-weight: 500;
}

.hero-brand-logo {
  position: absolute;
  right: clamp(32px, 6vw, 96px);
  top: clamp(120px, 18vh, 220px);
  width: clamp(140px, 16vw, 280px);
  height: auto;
  object-fit: contain;
  z-index: 3;
  opacity: 0.9;
  pointer-events: none;
}

.section,
.page-hero,
.cta-band,
.buy-section {
  padding: 108px 7vw;
  border-top: 1px solid var(--line);
}

.page-hero {
  min-height: 58vh;
  display: grid;
  align-content: end;
  gap: 16px;
  background: #fff;
}

.compact-hero,
.store-hero {
  min-height: 46vh;
}

.eyebrow {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  text-transform: lowercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

.page-hero h1,
.concept h2,
.section-heading h2,
.split-feature h2,
.cta-band h2,
.keyboard-copy h2,
.buy-section h2,
.specs-grid h2 {
  margin: 0;
  font-size: clamp(38px, 6.2vw, 88px);
  line-height: 0.96;
  font-weight: 300;
  letter-spacing: -0.012em;
}

.headline-reveal {
  opacity: 0;
  transform: translateY(-96px);
  transition: opacity 860ms ease, transform 980ms cubic-bezier(0.16, 1.18, 0.26, 1);
}

.headline-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.scroll-headline {
  filter: blur(8px);
  letter-spacing: 0.018em;
  transition:
    opacity 720ms ease,
    transform 920ms cubic-bezier(0.16, 1.12, 0.28, 1),
    filter 760ms ease,
    letter-spacing 820ms ease;
}

.scroll-headline > span:not(.copy-line) {
  display: inline-block;
  opacity: 0;
  transform: translateY(-34px);
  transition:
    opacity 520ms ease,
    transform 720ms cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--i) * 16ms);
}

.scroll-headline.is-visible {
  filter: blur(0);
  letter-spacing: -0.012em;
}

.scroll-headline.is-visible > span:not(.copy-line) {
  opacity: 1;
  transform: translateY(0);
}

.object-music-copy {
  display: grid;
  gap: 0.02em;
  filter: blur(10px);
  letter-spacing: 0.014em;
}

.object-music-copy .copy-line {
  display: block;
  opacity: 0;
  transition:
    opacity 680ms ease,
    transform 900ms cubic-bezier(0.16, 1.1, 0.26, 1),
    letter-spacing 760ms ease;
}

.object-music-copy .copy-line-object {
  transform: translateY(-42px);
}

.object-music-copy .copy-line-music {
  transform: translateY(42px);
}

.object-music-copy .motion-word {
  display: inline-block;
  transform: translateY(-0.08em);
  transition: transform 820ms cubic-bezier(0.16, 1, 0.3, 1);
}

.object-music-copy.is-visible {
  filter: blur(0);
  letter-spacing: -0.012em;
}

.object-music-copy.is-visible .copy-line {
  opacity: 1;
  transform: translateY(0);
}

.object-music-copy.is-visible .motion-word {
  transform: translateY(0);
}

.route-transition-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  background: #050505;
  color: #f8f8f2;
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.route-transition-overlay.is-active {
  opacity: 1;
  pointer-events: auto;
}

.route-transition-inner {
  width: min(420px, 72vw);
  text-align: left;
}

.route-transition-label {
  margin: 0 0 16px;
  color: #f8f8f2;
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.04em;
}

.route-transition-bar {
  width: 100%;
  height: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.18);
}

.route-transition-bar span {
  display: block;
  width: 100%;
  height: 100%;
  background: #f8f8f2;
  transform: scaleX(0);
  transform-origin: left;
}

body.is-route-transitioning {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .headline-reveal {
    transform: none;
    transition: opacity 180ms ease;
  }

  .scroll-headline,
  .object-music-copy,
  .scroll-headline > span:not(.copy-line),
  .object-music-copy .copy-line,
  .object-music-copy .motion-word {
    transform: none;
    filter: none;
    transition: opacity 180ms ease;
  }
}

.page-hero p,
.concept-copy p,
.keyboard-copy p,
.buy-section p {
  max-width: 520px;
  color: var(--muted);
}

.concept {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
}

.concept-copy {
  max-width: 680px;
}

.concept-copy p {
  margin: 26px 0 0;
}

.product-shot {
  margin: 0;
  background: #f7f7f5;
  border: 1px solid rgba(17, 17, 17, 0.06);
  overflow: hidden;
}

.product-shot img,
.mini-sequencer-shot img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.concept-shot {
  justify-self: stretch;
  padding: clamp(18px, 3vw, 42px);
}

.section-heading {
  margin-bottom: 42px;
}

.module-grid,
.product-grid,
.module-detail-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.module-grid article,
.module-detail-grid article,
.store-card {
  border: 1px solid rgba(17, 17, 17, 0.055);
  background: #f2f2ee;
  padding: 22px;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.module-grid article:hover,
.module-detail-grid article:hover,
.store-card:hover {
  border-color: var(--ink);
  box-shadow: 0 10px 16px rgba(0, 0, 0, 0.045);
  transform: translateY(-2px);
}

.module-grid img,
.module-detail-grid img {
  width: min(210px, 100%);
  aspect-ratio: 1;
  margin: 0 auto 24px;
}

.module-grid h3,
.module-detail-grid h3,
.store-card h2 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.module-grid p,
.module-detail-grid p,
.store-card p,
.feature-row em {
  color: var(--muted);
}

.product-angle-pair {
  margin-top: clamp(34px, 5vw, 72px);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.product-angle-pair .product-shot {
  min-height: clamp(240px, 30vw, 430px);
  display: grid;
  place-items: center;
  padding: clamp(16px, 3vw, 44px);
}

.product-angle-pair img {
  max-height: 390px;
}

.split-feature,
.demo-page,
.keyboard-section,
.exploded-section,
.buy-section {
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(360px, 1.05fr);
  gap: 58px;
  align-items: center;
}

.product-figure {
  justify-self: center;
  width: min(520px, 100%);
  aspect-ratio: 1;
}

.ways-shot-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-self: stretch;
}

.ways-shot-stack .product-shot {
  min-height: clamp(220px, 28vw, 390px);
  display: grid;
  place-items: center;
  padding: clamp(16px, 2.5vw, 34px);
}

.ways-shot-stack img {
  max-height: 360px;
}

.feature-list {
  margin-top: 34px;
  border-top: 1px solid var(--ink);
}

.feature-row {
  min-height: 74px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 26px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  transition: background 160ms ease, padding 160ms ease;
}

.feature-row:hover {
  background: #eeeeea;
  padding-left: 12px;
}

.feature-row span {
  font-weight: 400;
}

.cta-band {
  min-height: 360px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 16px;
  text-align: center;
  background: #fff;
}

.cta-band p {
  color: var(--muted);
}

.mini-sequencer-block {
  width: min(760px, 100%);
  display: grid;
  justify-items: center;
  gap: 24px;
}

.mini-sequencer-shot {
  width: min(520px, 100%);
  margin: 0;
}

.patch-playground {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.patch-playground .demo-panel {
  width: 100%;
}

.demo-stage {
  position: relative;
  width: 100%;
  min-height: clamp(640px, 72vh, 900px);
  overflow: hidden;
  border: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.48)),
    var(--workbench-image, linear-gradient(#f4f4f0, #ededeb));
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.045);
  touch-action: none;
}

.demo-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(17, 17, 17, 0.09) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 17, 17, 0.09) 1px, transparent 1px);
  background-size: var(--tile-size, 132px) var(--tile-size, 132px);
  background-position: var(--grid-origin-x, 0px) var(--grid-origin-y, 0px);
  opacity: 0.28;
}

.demo-stage .route-line {
  position: absolute;
  left: 0;
  top: 0;
  height: 1px;
  width: var(--route-width, 120px);
  background: repeating-linear-gradient(90deg, rgba(17, 17, 17, 0.45) 0 6px, transparent 6px 10px);
  transform: translate(var(--route-x, 0), var(--route-y, 0)) rotate(var(--route-rot, 0deg));
  transform-origin: left center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
  z-index: 2;
}

.demo-stage .route-line.is-visible {
  opacity: 1;
  animation: routeFlow 340ms ease-out;
}

@keyframes routeFlow {
  from { clip-path: inset(0 100% 0 0); }
  to { clip-path: inset(0 0 0 0); }
}

.demo-stage::after {
  content: "recording not required";
  position: absolute;
  right: 14px;
  bottom: 12px;
  color: var(--muted);
  font-size: 10px;
  z-index: 2;
}

.workbench-label {
  position: absolute;
  left: 18px;
  top: 18px;
  z-index: 1;
  pointer-events: none;
}

.workbench-label strong {
  display: block;
  margin-top: 5px;
  font-weight: 300;
}

.playhead {
  position: absolute;
  left: 50%;
  top: calc(50% + 58px);
  width: 344px;
  max-width: 70%;
  height: 2px;
  transform: translateX(-50%);
  opacity: 0;
  background: linear-gradient(90deg, transparent 0 2%, var(--blue) 2% 8%, transparent 8% 100%);
  pointer-events: none;
  z-index: 2;
}

.demo-stage.is-bar .playhead {
  opacity: 0.75;
  animation: barPlayhead 1.1s steps(4, end) infinite;
}

@keyframes barPlayhead {
  to { background-position: 344px 0; }
}

.demo-tile {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--tile-size, 132px);
  height: var(--tile-size, 132px);
  min-height: 0;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  touch-action: none;
  user-select: none;
  z-index: 3;
  cursor: grab;
  overflow: visible;
  outline: 0;
  isolation: isolate;
}

.demo-tile:active {
  cursor: grabbing;
}

.demo-tile::before {
  content: "";
  position: absolute;
  inset: -10px;
  z-index: -1;
  border-radius: 18px;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(
    circle at center,
    rgba(0, 170, 255, 0.32) 0%,
    rgba(0, 170, 255, 0.18) 40%,
    rgba(0, 170, 255, 0.06) 70%,
    rgba(0, 170, 255, 0) 100%
  );
  filter: blur(16px);
  transform: scale(1);
  transition: opacity 180ms ease, transform 180ms ease, filter 180ms ease;
}

.demo-tile:hover::before {
  opacity: 1;
  transform: scale(1.015);
  filter: blur(17px);
}

.demo-tile:focus,
.demo-tile:focus-visible {
  outline: 0;
}

.demo-tile:focus-visible::before {
  opacity: 0.75;
}

.demo-tile img,
.demo-tile .fallback-tile {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  padding: 0;
  margin: 0;
  filter: none;
  transition: filter 160ms ease, transform 160ms ease;
}

.demo-tile img,
.demo-tile .fallback-tile {
  pointer-events: none;
}

.demo-tile:not(.is-muted):hover img,
.demo-tile:not(.is-muted):hover .fallback-tile {
  transform: rotateX(2deg) rotateY(-2deg) translateY(-1px);
  filter: none;
}

.tile-oled-preview {
  position: absolute;
  right: 15.4%;
  top: 30.5%;
  width: 24%;
  height: 26%;
  z-index: 4;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.12em;
  color: #fff;
  font-family: "PV4Pixel", monospace;
  font-size: clamp(7px, calc(var(--tile-size, 132px) * 0.064), 12px);
  line-height: 0.86;
  text-align: left;
  pointer-events: none;
  text-transform: uppercase;
}

.tile-oled-preview .oled-copy {
  display: grid;
  gap: 1px;
}

.tile-oled-preview b,
.tile-oled-preview em {
  display: block;
  font: inherit;
  letter-spacing: 0.02em;
  font-style: normal;
  font-weight: 400;
}

.oled-waveform {
  width: 100%;
  height: 30%;
  min-height: 5px;
  display: flex;
  align-items: flex-end;
  gap: 1px;
  margin-top: 2px;
  pointer-events: none;
}

.oled-waveform i {
  display: block;
  width: 1.5px;
  height: 18%;
  min-height: 1px;
  background: rgba(232, 255, 252, 0.88);
  opacity: 0.92;
  transform-origin: bottom;
  transition: height 80ms linear, opacity 160ms ease;
}

.demo-tile.is-muted .oled-waveform i {
  height: 10%;
  opacity: 0.32;
}

.module-control-focus {
  display: grid;
  grid-template-columns: minmax(220px, 0.75fr) minmax(240px, 1fr);
  gap: 24px;
  align-items: center;
  margin-bottom: 24px;
  padding: 22px;
  background: #f3f3ee;
}

.module-control-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 18px;
}

.module-control-tabs button {
  min-width: 104px;
  min-height: 48px;
  padding: 14px 22px;
  border: 1px solid rgba(17, 17, 17, 0.16);
  background: #fff;
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}

.module-control-tabs button.is-selected {
  background: #111;
  color: #fff;
}

.module-control-focus > div > .eyebrow {
  font-size: clamp(18px, 2vw, 28px);
  font-weight: 400;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.module-bottom-label {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 0 10px;
  background: #050505;
  color: #f8f8f2;
  font: 12px/1.1 "PV4Pixel", "Courier New", monospace;
  text-transform: uppercase;
}

.module-control-svg {
  position: relative;
  width: min(340px, 100%);
  justify-self: center;
  aspect-ratio: 1;
  overflow: visible;
}

.module-control-svg svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.module-control-svg.has-fallback {
  display: grid;
  place-items: center;
}

.module-control-svg.has-fallback .module-control-oled-wave {
  right: 14.5%;
  top: 47.2%;
}

.module-control-fallback-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.module-control-oled-overlay {
  position: absolute;
  right: 18%;
  top: 34%;
  width: 22%;
  height: 18%;
  z-index: 8;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  padding: 3px;
  overflow: hidden;
  background: transparent !important;
  box-shadow: none !important;
  color: #fff;
  font-family: "PV4Pixel", monospace;
  line-height: 0.92;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  pointer-events: none;
}

.module-control-oled-overlay .oled-line {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: #fff;
  font-size: clamp(6px, 0.76vw, 10px);
  white-space: nowrap;
  text-overflow: clip;
}

.module-control-oled-overlay .oled-waveform {
  height: 25%;
  min-height: 3px;
  max-height: 8px;
  margin-top: 1px;
  overflow: hidden;
  justify-content: flex-start;
}

.module-control-oled-overlay .oled-waveform i {
  width: 1.5px;
  background: rgba(232, 255, 252, 0.9);
}

.module-control-svg [id^="knob"],
.module-control-svg [id$="-knob"],
.module-control-svg [id^="knob-body"],
.module-control-svg [id$="-knob-body"],
.module-control-svg [data-original-id="knob"],
.module-control-svg [data-original-id="knob-body"],
.module-control-svg [data-name="knob"],
.module-control-svg [data-name="knob-body"],
.module-control-svg .svg-knob {
  transform-box: fill-box;
  transform-origin: center;
}

.module-control-svg [id^="knob"],
.module-control-svg [id$="-knob"],
.module-control-svg [id^="knob-body"],
.module-control-svg [id$="-knob-body"],
.module-control-svg [data-original-id="knob"],
.module-control-svg [data-original-id="knob-body"],
.module-control-svg [data-name="knob"],
.module-control-svg [data-name="knob-body"],
.module-control-svg .svg-knob {
  cursor: ns-resize;
}

.module-control-svg [id^="knob"]:active,
.module-control-svg [id$="-knob"]:active,
.module-control-svg [data-original-id="knob"]:active,
.module-control-svg [data-name="knob"]:active,
.module-control-svg .svg-knob.is-dragging {
  cursor: ns-resize;
}

.module-control-svg [data-original-id="knob-indicator"],
.module-control-svg [data-name="knob-indicator"],
.module-control-svg [id^="knob-indicator"],
.module-control-svg [id$="-knob-indicator"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.module-control-svg .web-knob-indicator {
  pointer-events: stroke;
  cursor: ns-resize;
}

.module-control-svg .web-knob-indicator.is-dragging {
  cursor: ns-resize;
}

body.is-vertical-knob-dragging,
body.is-vertical-knob-dragging * {
  cursor: ns-resize !important;
}

.module-control-svg .svg-knob,
.module-control-svg .svg-knob:hover,
.module-control-svg [data-original-id="knob"]:hover,
.module-control-svg [data-original-id="knob-body"]:hover,
.module-control-svg [data-name="knob"]:hover,
.module-control-svg [data-name="knob-body"]:hover {
  background: transparent !important;
  filter: none !important;
  box-shadow: none !important;
  outline: none !important;
}

.module-control-svg [id^="menu-button"],
.module-control-svg [id^="trigger-button"],
.module-control-svg [id$="-menu-button"],
.module-control-svg [id$="-trigger-button"],
.module-control-svg [data-original-id="menu-button"],
.module-control-svg [data-original-id="trigger-button"],
.module-control-svg [data-name="menu-button"],
.module-control-svg [data-name="trigger-button"] {
  cursor: pointer;
}

.module-control-svg .pv4-oled-text {
  font-family: "PV4Pixel", monospace;
  letter-spacing: 0.02em;
  fill: #ffffff;
  pointer-events: none;
}

.module-control-svg .pv4-oled-bar {
  fill: #d9fff8;
  opacity: 0.86;
  transition: height 160ms ease, y 160ms ease, opacity 160ms ease;
}

.module-control-svg.is-muted .pv4-oled-bar {
  opacity: 0.28;
}

.module-control-oled-wave {
  position: absolute;
  right: 14.5%;
  top: 47.2%;
  width: 24.5%;
  height: 6.8%;
  z-index: 8;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  pointer-events: none;
}

.module-control-oled-wave .oled-waveform {
  height: 100%;
  margin-top: 0;
  justify-content: center;
  gap: 2px;
}

.module-control-oled-wave .oled-waveform i {
  width: 2px;
  background: rgba(160, 255, 246, 0.96);
  box-shadow: 0 0 4px rgba(128, 255, 240, 0.22);
}

.demo-tile.snap-flash {
  animation: tileImpulse 360ms ease-out;
}

.demo-tile.is-repulsed {
  animation: tileRepulse 340ms cubic-bezier(.16, 1, .3, 1);
}

.demo-tile.snap-flash::before {
  animation: snapGlow 380ms ease-out;
}

.demo-tile.is-repulsed::before {
  animation: snapGlow 340ms ease-out;
}

@keyframes tileImpulse {
  0% { transform: var(--snap-transform) scale(1); }
  35% { transform: var(--snap-transform) scale(1.045) translateX(1px); }
  70% { transform: var(--snap-transform) scale(0.995) translateX(-1px); }
  100% { transform: var(--snap-transform) scale(1); }
}

@keyframes tileRepulse {
  0% { transform: var(--snap-transform) scale(1); }
  30% { transform: var(--snap-transform) translateX(var(--repulse-x, -8px)) translateY(var(--repulse-y, -4px)) scale(1.025); }
  100% { transform: var(--snap-transform) scale(1); }
}

@keyframes snapGlow {
  0% {
    opacity: 0;
    transform: scale(0.96);
    filter: blur(4px);
  }
  42% {
    opacity: 1;
    transform: scale(1.05);
    filter: blur(13px);
  }
  100% {
    opacity: 0;
    transform: scale(1.01);
    filter: blur(16px);
  }
}

.demo-tile span {
  position: absolute;
  left: 10px;
  top: 9px;
  font-size: 11px;
  opacity: 0;
}

.demo-tile .fallback-tile span {
  opacity: 1;
}

.demo-tile i {
  display: none;
}

.demo-tile.is-muted {
  opacity: 1;
  filter: none;
}

.demo-tile.is-muted img {
  filter: grayscale(1) contrast(0.9) opacity(0.55);
}

.demo-tile,
.demo-tile:hover,
.demo-tile.is-active,
.demo-tile.is-selected,
.demo-tile.dragging,
.demo-tile.is-muted,
.tile-inner,
.tile-inner:hover,
.grid-cell,
.grid-cell:hover,
.grid-cell.is-active {
  background: transparent !important;
  outline: none !important;
  border-color: transparent;
  mix-blend-mode: normal !important;
}

.demo-panel {
  align-self: stretch;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 26px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  background: #fff;
}

.demo-panel > .eyebrow {
  grid-column: 1 / -1;
  order: 2;
  margin-top: 10px;
}

.demo-panel > .micro {
  grid-column: 1 / -1;
  order: 5;
}

.status-row {
  display: block;
  min-height: 54px;
  padding: 10px 0 0;
  border-top: 1px solid rgba(17, 17, 17, 0.18);
  border-bottom: 0;
  order: 3;
}

.status-row span,
.micro {
  color: var(--muted);
  font-size: 11px;
}

.status-row strong {
  display: block;
  margin-top: 4px;
  text-align: left;
  font-weight: 400;
  font-size: 14px;
}

.button-grid {
  grid-column: 1 / -1;
  order: 1;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin-top: 0;
  margin-bottom: 6px;
}

.button-grid button.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.patch-status {
  grid-column: 1 / -1;
  order: 6;
  margin-top: 24px;
  padding: 14px;
  border: 1px solid rgba(17, 17, 17, 0.1);
  background: #f7f7f3;
}

.patch-status strong {
  display: block;
  margin-bottom: 9px;
  font-size: 18px;
  font-weight: 400;
}

.patch-status pre {
  margin: 0;
  white-space: pre-wrap;
  color: var(--muted);
  font: 11px/1.55 "Courier New", monospace;
}

.snap-log {
  grid-column: 1 / -1;
  order: 7;
  min-height: 42px;
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.snap-log span {
  min-height: 22px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 8px;
  color: var(--muted);
  font-size: 10px;
}

.recipe-section {
  background: #fff;
}

.recipe-grid,
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.recipe-grid {
  grid-template-columns: repeat(2, minmax(140px, 220px));
  justify-content: center;
  gap: 14px;
  border-top: 0;
}

.gallery-card {
  position: relative;
  min-height: 230px;
  display: grid;
  align-content: space-between;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(17, 17, 17, 0.055);
  background: #f3f3ef;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.gallery-card:hover {
  transform: translateY(-2px);
  background: #eeeeea;
}

.recipe-card {
  position: relative;
  min-height: 160px;
  max-width: 220px;
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px;
  border: 1px solid transparent;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
  text-align: center;
  color: var(--ink);
  cursor: pointer;
  transition: color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.recipe-card:hover {
  background: transparent !important;
  color: var(--ink);
  transform: translateY(-2px);
  border-color: transparent;
  box-shadow: none;
}

.recipe-card.is-active {
  border-color: transparent;
  box-shadow: inset 0 -1px 0 var(--recipe-color, var(--blue));
}

.recipe-icon {
  position: relative;
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  color: var(--recipe-color, var(--blue));
  border: 1px solid currentColor;
  border-radius: 50%;
}

.recipe-icon::before,
.recipe-icon::after {
  content: "";
  position: absolute;
  inset: 17px;
  border-top: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  opacity: 0.78;
}

.recipe-icon::after {
  inset: 23px 15px;
  border: 0;
  border-left: 1px solid currentColor;
  border-right: 1px solid currentColor;
  opacity: 0.88;
}

.recipe-text {
  display: grid;
  gap: 6px;
  justify-items: center;
}

.recipe-name,
.gallery-card h3 {
  margin: 0;
  font-weight: 400;
  font-size: 13px;
  line-height: 1.1;
}

.recipe-card p,
.gallery-card p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
  max-width: 160px;
}

.recipe-apply {
  margin-left: 0;
  color: var(--muted);
  font-size: 10px;
}

.recipe-card:hover .recipe-apply,
.recipe-card:hover .recipe-name {
  color: var(--recipe-color, var(--blue));
}

.recipe-card:nth-child(1) { --recipe-color: #7fd8ff; }
.recipe-card:nth-child(2) { --recipe-color: #ff6a1a; }
.recipe-card:nth-child(3) { --recipe-color: #007cff; }
.recipe-card:nth-child(4) { --recipe-color: #111111; }

.gallery-card button {
  justify-self: start;
}

.receipt-gallery {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(360px, 1.28fr);
  gap: 20px;
  align-items: start;
}

.patch-receipt,
.recommend-card {
  padding: 20px;
  border: 1px solid rgba(17, 17, 17, 0.12);
  background: #fff;
}

.patch-receipt pre,
.recommend-card pre {
  margin: 18px 0;
  white-space: pre-wrap;
  font: 11px/1.7 "Courier New", monospace;
  color: #444;
}

.receipt-actions,
.gallery-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.receipt-feedback {
  min-height: 18px;
  display: block;
  margin-top: 10px;
  color: var(--blue);
  font-size: 11px;
}

.gallery-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: start;
  margin-bottom: 14px;
}

.gallery-heading h2 {
  margin: 0;
  font-size: clamp(32px, 4.8vw, 64px);
  line-height: 0.98;
  font-weight: 300;
  letter-spacing: -0.012em;
}

.gallery-card {
  min-height: 205px;
}

.module-console {
  background: #fff;
}

.control-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.console-note {
  max-width: 520px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.control-card {
  position: relative;
  min-height: 330px;
  padding: 14px;
  border: 1px solid rgba(17, 17, 17, 0.07);
  background: #f3f3ef;
}

.control-card header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.control-card header span {
  font-size: 13px;
  font-weight: 400;
}

.menu-button {
  width: 30px;
  height: 30px;
  min-height: 30px;
  display: grid;
  gap: 3px;
  place-content: center;
  padding: 0;
  border-radius: 50%;
}

.menu-button i {
  width: 12px;
  height: 1px;
  background: currentColor;
}

.oled {
  min-height: 45px;
  display: grid;
  align-content: center;
  margin-bottom: 12px;
  padding: 10px;
  border: 1px solid #111;
  background: #151515;
  color: #f8f8f2;
  font: 12px/1.2 "PV4Pixel", "Courier New", monospace;
  text-transform: uppercase;
}

.option-menu {
  position: relative;
  z-index: 4;
  display: none;
  margin: -2px 0 12px;
  padding: 6px;
  border: 1px solid rgba(17, 17, 17, 0.14);
  background: #fff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
}

.option-menu.is-open {
  display: grid;
  gap: 4px;
}

.option-menu button {
  justify-content: flex-start;
  min-height: 28px;
  border-radius: 0;
  border-color: var(--line);
  font-size: 11px;
}

.option-menu button.is-selected {
  background: var(--ink);
  color: #fff;
}

.knob-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.knob-control {
  min-height: 98px;
  display: grid;
  place-items: center;
  gap: 6px;
  border: 1px solid var(--line);
  background: #fff;
  cursor: ns-resize;
  user-select: none;
}

.knob-dial {
  position: relative;
  width: 42px;
  height: 42px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  transform: rotate(var(--knob-rot, -120deg));
}

.knob-dial::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 5px;
  width: 1px;
  height: 13px;
  background: var(--ink);
}

.knob-control span,
.knob-control strong {
  font-size: 10px;
}

.knob-control strong {
  font-weight: 400;
}

.keyboard-visual {
  display: grid;
  gap: 28px;
}

.keyboard-strip {
  height: 112px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--ink);
  background: #f0f0eb;
}

.keyboard-strip i {
  border: 1px solid var(--ink);
  background: #fff;
}

.keyboard-strip .black-key {
  height: 66%;
  background: var(--ink);
}

.sync-image {
  width: min(320px, 80vw);
  aspect-ratio: 1;
  transition: transform 160ms ease, filter 160ms ease;
}

.sync-image.is-flashing {
  transform: scale(1.045) rotate(1deg);
  filter: drop-shadow(0 14px 18px rgba(242, 107, 40, 0.32));
}

.sync-image.root-pulse,
.control-card.root-pulse .oled {
  filter: drop-shadow(0 14px 18px rgba(46, 108, 246, 0.28));
}

.control-card.root-pulse .oled {
  border-color: var(--blue);
  color: #dce8ff;
}

.root-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.root-follow-toggle.is-on {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}

.midi-readout {
  margin: 22px 0 14px;
  padding: 13px 0;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
}

.root-readout strong {
  color: var(--blue);
}

.midi-readout span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
}

.virtual-keys {
  display: grid;
  grid-template-columns: repeat(13, minmax(28px, 1fr));
  gap: 4px;
  max-width: 620px;
}

.virtual-keys button {
  min-height: 86px;
  border-radius: 0 0 5px 5px;
  background: #fff;
  line-height: 1.45;
  font-size: 11px;
}

.virtual-keys button.black-note {
  min-height: 62px;
  align-self: start;
  background: #111;
  color: #fff;
}

.virtual-keys button.is-held {
  background: var(--blue);
  color: #fff;
  transform: translateY(2px);
}

.key-route-section {
  display: block;
  background: #f7f7f5;
}

.key-route-heading {
  max-width: 760px;
  margin-bottom: clamp(34px, 5vw, 70px);
}

.key-route-heading p:last-child {
  max-width: 520px;
  margin-top: 20px;
  color: var(--muted);
  font-size: clamp(20px, 2.6vw, 34px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.key-route-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1.12fr) minmax(220px, 0.65fr) minmax(320px, 1fr);
  gap: clamp(24px, 4vw, 58px);
  align-items: stretch;
}

.key-input-panel,
.signal-route-panel,
.pv4-reaction-panel,
.patch-route-receipt {
  border-top: 1px solid var(--ink);
  padding-top: 18px;
}

.key-input-panel > p:not(.eyebrow),
.signal-route-panel > p:not(.eyebrow) {
  max-width: 520px;
  color: var(--muted);
}

.signal-route-panel {
  display: grid;
  align-content: start;
  gap: 22px;
}

.signal-lane {
  position: relative;
  min-height: 164px;
  display: grid;
  align-content: center;
  gap: 16px;
  color: var(--muted);
  font-size: 10px;
  text-transform: lowercase;
}

.signal-lane::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 1px;
  background: rgba(0, 160, 255, 0.28);
}

.signal-lane > i {
  position: relative;
  height: 1px;
  background: rgba(0, 160, 255, 0.52);
}

.signal-lane span:last-child {
  justify-self: end;
}

.signal-pulse {
  position: absolute;
  left: 0;
  top: calc(50% - 4px);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 170, 255, 0.92);
  box-shadow: 0 0 16px rgba(0, 170, 255, 0.42);
  animation: signalMove 720ms ease-out forwards;
  pointer-events: none;
}

@keyframes signalMove {
  from { transform: translateX(0) scale(0.88); opacity: 0; }
  14% { opacity: 1; }
  to { transform: translateX(calc(100% - 8px)) scale(1); opacity: 0; }
}

.route-branches {
  display: grid;
  gap: 8px;
}

.route-branches span {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  transition: color 160ms ease, padding 160ms ease, border-color 160ms ease;
}

.route-branches span.is-active {
  padding-left: 10px;
  border-color: rgba(0, 160, 255, 0.42);
  color: var(--blue);
}

.route-module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.route-module-card {
  position: relative;
  min-height: 230px;
  padding: 16px;
  background: #efefea;
  overflow: hidden;
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.route-module-card img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: contain;
  display: block;
}

.route-module-card.is-reacting,
.route-module-card.is-pulsing {
  background: #f5f8fa;
  box-shadow: inset 0 0 0 1px rgba(0, 160, 255, 0.18);
}

.route-module-card.root-pulse,
.route-module-grid.root-pulse {
  filter: drop-shadow(0 12px 18px rgba(0, 160, 255, 0.18));
}

.route-module-grid.is-flashing {
  filter: drop-shadow(0 14px 18px rgba(0, 160, 255, 0.22));
}

.route-module-card.fx-flash {
  transform: translateY(-2px);
  box-shadow: 0 12px 18px rgba(0, 160, 255, 0.16);
}

.route-oled {
  position: absolute;
  right: 16px;
  top: 16px;
  min-width: 72px;
  padding: 8px;
  background: #050505;
  color: #fff;
  font-family: "PV4Pixel", monospace;
  font-size: 10px;
  line-height: 1;
  text-align: center;
  letter-spacing: 0.02em;
  display: grid;
  gap: 4px;
  justify-items: stretch;
  overflow: hidden;
  box-sizing: border-box;
  pointer-events: none;
}

.route-oled span {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.route-oled .oled-waveform {
  height: 13px;
  max-height: 13px;
  justify-content: center;
  margin-top: 0;
  overflow: hidden;
}

.route-oled .oled-waveform i {
  width: 2px;
}

.route-module-card p {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.bass-sequencer-section {
  display: block;
  background: #f7f7f5;
}

.bass-sequencer-heading {
  max-width: 820px;
  margin-bottom: clamp(34px, 5vw, 70px);
}

.bass-sequencer-heading > p:nth-of-type(2) {
  max-width: 540px;
  margin-top: 20px;
  color: var(--muted);
  font-size: clamp(20px, 2.6vw, 34px);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.bass-sequencer-layout {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.bass-sequencer-screen {
  width: min(100%, 1280px);
  margin: 0 auto;
  min-height: 260px;
}

.bass-sequencer-lower {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: 32px;
  align-items: center;
}

.sequencer-panel,
.bass-tile-panel {
  border-top: 1px solid var(--ink);
  padding-top: 18px;
}

.sequencer-panel {
  background: #f0f0ec;
  padding: clamp(18px, 2.4vw, 32px);
  box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.055);
}

.step-grid {
  display: grid;
  gap: 12px;
  padding: 18px 0;
  border-top: 1px solid rgba(17, 17, 17, 0.16);
  border-bottom: 1px solid rgba(17, 17, 17, 0.16);
}

.seq-bar {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 10px;
  align-items: stretch;
}

.seq-bar-label {
  display: grid;
  align-items: center;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.seq-bar-steps {
  display: grid;
  grid-template-columns: repeat(16, minmax(20px, 1fr));
  gap: 4px;
}

.seq-step {
  min-width: 0;
  min-height: clamp(54px, 5vw, 82px);
  display: grid;
  grid-template-rows: auto 1fr auto;
  justify-items: center;
  align-items: center;
  gap: 6px;
  padding: 8px 2px;
  border: 1px solid transparent;
  background: transparent;
  color: #222;
  font-size: 10px;
}

.seq-step span {
  color: var(--muted);
  font-size: 9px;
}

.seq-step i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(17, 17, 17, 0.16);
}

.seq-step.is-active i {
  background: #111;
}

.seq-step.is-current {
  border-color: rgba(245, 210, 82, 0.9);
  background: rgba(245, 210, 82, 0.11);
}

.seq-step em {
  min-height: 10px;
  color: var(--muted);
  font-style: normal;
  font-size: 8px;
  letter-spacing: -0.02em;
}

.sequencer-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 12px;
  font-size: 10px;
  color: var(--muted);
}

.sequencer-metrics strong {
  display: block;
  margin-top: 4px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 300;
}

.step-length-buttons,
.sequencer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.step-length-buttons button.is-active,
.sequencer-actions button.is-active,
[data-bass-record].is-active,
[data-metronome-toggle].is-active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.bass-tile-panel .route-module-card {
  min-height: 320px;
}

.bass-tile-panel .route-oled {
  right: 18.8%;
  top: 36.2%;
  width: 21.5%;
  height: 15.5%;
  min-width: 0;
  padding: 2px 3px;
  align-content: stretch;
  gap: 1px;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  font-size: clamp(5.5px, 0.62vw, 8.5px);
  line-height: 0.88;
  text-align: left;
  overflow: hidden;
  border-radius: 0;
}

.bass-tile-panel .route-oled span {
  display: grid;
  gap: 1px;
  max-width: 100%;
  overflow: hidden;
  white-space: normal;
  text-overflow: clip;
}

.bass-tile-panel .route-oled b,
.bass-tile-panel .route-oled em {
  display: block;
  max-width: 100%;
  overflow: hidden;
  color: #fff;
  font: inherit;
  font-style: normal;
  font-weight: 400;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.bass-tile-panel .route-oled .oled-waveform {
  height: 22%;
  min-height: 2px;
  max-height: 5px;
  margin-top: 0;
  overflow: hidden;
  justify-content: flex-start;
}

.bass-tile-panel .route-oled .oled-waveform i {
  width: 1px;
}

.patch-route-receipt {
  margin-top: clamp(28px, 5vw, 64px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
}

.patch-route-receipt pre {
  margin: 12px 0 0;
  padding: 18px;
  border: 1px solid var(--line);
  background: #fff;
  color: #222;
  font-size: 11px;
  line-height: 1.55;
  white-space: pre-wrap;
}

.cart-box {
  width: min(360px, 100%);
  padding: 15px;
  border: 1px solid var(--ink);
  background: var(--paper);
}

.cart-box strong,
.cart-box span {
  display: block;
}

.cart-box span {
  color: var(--muted);
}

.recommendation-panel {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(280px, 0.72fr);
  gap: 28px;
  align-items: start;
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.recommendation-panel h2 {
  margin: 0 0 14px;
  font-size: clamp(34px, 4.8vw, 68px);
  line-height: 0.98;
  font-weight: 300;
  letter-spacing: -0.012em;
}

.recommend-pill {
  position: absolute;
  left: 14px;
  top: 14px;
  display: none;
  min-height: 22px;
  align-items: center;
  padding: 0 8px;
  border: 1px solid var(--blue);
  border-radius: 999px;
  color: var(--blue);
  font-size: 10px;
  background: #fff;
}

.store-card.is-recommended .recommend-pill {
  display: inline-flex;
}

.store-card {
  position: relative;
  min-height: 410px;
  display: grid;
  grid-template-rows: minmax(190px, 1fr) auto auto auto auto;
  gap: 9px;
  overflow: hidden;
}

.store-card > div:first-child {
  display: grid;
  place-items: center;
  min-width: 0;
}

.store-card img {
  width: min(220px, 92%);
  height: auto;
  object-fit: contain;
}

.store-card img.store-accessory-img {
  width: min(300px, 100%);
  max-height: 230px;
}

.store-card img.cable-img {
  width: min(340px, 100%);
  max-height: 190px;
}

.store-card strong {
  margin-top: 8px;
  font-size: 18px;
  font-weight: 400;
}

.store-card button {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  justify-self: stretch;
  align-self: end;
}

.buy-section {
  background: #fff;
}

.included-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 20px;
  max-width: 440px;
  margin: 28px 0;
  padding: 0;
  list-style: none;
}

.included-list li {
  padding-top: 8px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.price {
  display: block;
  margin: 0 0 18px;
  font-size: 30px;
  font-weight: 400;
}

.exploded-view {
  position: relative;
  min-height: 520px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--wash);
}

.exploded-view span {
  position: absolute;
  width: min(330px, 68%);
  min-height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  background: #fff;
  font-size: 11px;
  opacity: 0;
  transform: translate(var(--snap-x, 0), calc(var(--snap-y, 0) - 80px));
  transition:
    opacity 520ms ease,
    transform 720ms cubic-bezier(0.16, 1, 0.3, 1),
    background 180ms ease,
    color 180ms ease,
    box-shadow 180ms ease;
  transition-delay: calc(var(--i, 0) * 90ms);
}

.exploded-view span:nth-child(1) { --snap-x: -38px; --snap-y: -164px; }
.exploded-view span:nth-child(2) { --snap-x: 36px; --snap-y: -118px; }
.exploded-view span:nth-child(3) { --snap-x: -22px; --snap-y: -72px; }
.exploded-view span:nth-child(4) { --snap-x: 30px; --snap-y: -26px; }
.exploded-view span:nth-child(5) { --snap-x: -36px; --snap-y: 20px; }
.exploded-view span:nth-child(6) { --snap-x: 24px; --snap-y: 66px; }
.exploded-view span:nth-child(7) { --snap-x: -30px; --snap-y: 112px; }
.exploded-view span:nth-child(8) { --snap-x: 34px; --snap-y: 158px; }

.built-snap.is-visible:not(.is-leaving) .snap-layer {
  opacity: 1;
  transform: translate(var(--snap-x, 0), var(--snap-y, 0));
}

.built-snap.is-leaving .snap-layer {
  opacity: 0;
  transform: translate(var(--snap-x, 0), calc(var(--snap-y, 0) + 80px));
  transition-delay: calc((7 - var(--i, 0)) * 55ms);
}

.exploded-view span.is-active {
  background: var(--orange);
  box-shadow: 0 12px 22px rgba(242, 107, 40, 0.22), 0 0 0 1px rgba(46, 108, 246, 0.22);
}

.exploded-view span:hover {
  box-shadow: 0 13px 25px rgba(46, 108, 246, 0.18);
}

.part-list {
  display: grid;
  gap: 8px;
}

.part-list button {
  min-height: 52px;
  justify-content: flex-start;
  border-radius: 0;
}

.snap-list-item {
  opacity: 0;
  transform: translateY(-80px);
  transition:
    opacity 520ms ease,
    transform 720ms cubic-bezier(0.16, 1, 0.3, 1),
    background 180ms ease,
    color 180ms ease;
  transition-delay: calc(var(--i, 0) * 90ms);
}

.built-snap.is-visible:not(.is-leaving) .snap-list-item {
  opacity: 1;
  transform: translateY(0);
}

.built-snap.is-leaving .snap-list-item {
  opacity: 0;
  transform: translateY(80px);
  transition-delay: calc((7 - var(--i, 0)) * 55ms);
}

.part-list button.is-active {
  background: var(--ink);
  color: #fff;
}

.part-desc {
  min-height: 70px;
  margin: 12px 0 0;
  padding: 16px;
  border: 1px solid var(--ink);
  background: #fff;
}

.specs-grid {
  display: grid;
  border-top: 1px solid var(--ink);
}

.specs-grid h2 {
  margin-bottom: 32px;
}

.spec-row {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.spec-row span {
  color: var(--muted);
}

.spec-row strong {
  font-weight: 400;
}

.fallback-tile {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: var(--fallback-color, #eee);
  color: var(--ink);
}

.fallback-tile span {
  position: absolute;
  left: 12px;
  top: 10px;
  font-size: 11px;
}

.fallback-tile i {
  width: 34%;
  aspect-ratio: 1;
  border: 8px solid var(--fallback-accent, #111);
  border-radius: 50%;
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 620ms ease, transform 620ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding: 38px 7vw;
  background: var(--black);
  color: #f8f8f2;
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer a {
  color: #f8f8f2;
  font-size: 12px;
}

.footer p {
  max-width: 430px;
  margin: 0;
  color: #aaa;
  font-size: 11px;
}

@media (max-width: 980px) {
  .topbar {
    height: auto;
    grid-template-columns: 1fr;
  }

  .brand {
    min-height: 54px;
    border-right: 0;
  }

  .brand-zone {
    min-height: 54px;
    border-right: 0;
  }

  .site-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .nav-actions {
    grid-template-columns: 1fr 100px 74px;
  }

  .hero-sticky {
    top: 190px;
    min-height: calc(100vh - 190px);
  }

  .hero-tile {
    width: min(220px, 36vw);
  }

  .hero-title-stack {
    left: 28px;
    right: 28px;
    bottom: 110px;
  }

  .hero-brand-logo {
    right: 28px;
    top: 220px;
    width: clamp(110px, 30vw, 180px);
  }

  .hero-readout {
    left: 28px;
    right: 28px;
    bottom: 42px;
  }

  .concept,
  .split-feature,
  .demo-page,
  .keyboard-section,
  .exploded-section,
  .buy-section,
  .receipt-gallery,
  .recommendation-panel,
  .module-control-focus {
    grid-template-columns: 1fr;
  }

  .key-route-grid,
  .bass-sequencer-lower,
  .patch-route-receipt {
    grid-template-columns: 1fr;
  }

  .seq-bar {
    grid-template-columns: 1fr;
  }

  .seq-bar-steps {
    grid-template-columns: repeat(8, minmax(24px, 1fr));
  }

  .module-grid,
  .product-grid,
  .module-detail-grid,
  .control-grid,
  .recipe-grid,
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .demo-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .demo-panel .button-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .topbar {
    position: relative;
    padding: 10px;
  }

  .site-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-nav a {
    min-height: 50px;
  }

  .nav-actions {
    grid-template-columns: 1fr 94px 58px;
  }

  .nav-logo-mark {
    width: 58px;
  }

  .nav-logo-mark img {
    max-width: 48px;
    max-height: 34px;
  }

  .assembly-hero {
    height: 320vh;
  }

  .hero-sticky {
    top: 0;
    min-height: 100vh;
  }

  .hero-stage {
    width: 100%;
    height: 48vh;
  }

  .hero-tile {
    width: 120px;
  }

  .hero-title-stack {
    bottom: 112px;
  }

  .hero-title-stack h1 {
    font-size: 58px;
  }

  .hero-brand-logo {
    top: 62vh;
    right: 24px;
    width: 118px;
  }

  .section,
  .page-hero,
  .cta-band,
  .buy-section {
    padding: 72px 20px;
  }

  .module-grid,
  .product-grid,
  .module-detail-grid,
  .control-grid,
  .recipe-grid,
  .gallery-grid,
  .product-angle-pair,
  .button-grid,
  .included-list {
    grid-template-columns: 1fr;
  }

  .feature-row,
  .spec-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 18px 0;
  }

  .demo-panel {
    grid-template-columns: 1fr;
  }

  .demo-panel .button-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .module-control-tabs button {
    min-width: 0;
    min-height: 44px;
    padding: 12px 16px;
    font-size: 14px;
  }

  .virtual-keys {
    grid-template-columns: repeat(13, 34px);
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .demo-stage {
    min-height: 520px;
  }

  .demo-tile {
    width: var(--tile-size, 92px);
    height: var(--tile-size, 92px);
  }

  .module-control-focus {
    padding: 16px;
  }

  .module-control-svg {
    width: min(280px, 100%);
  }

  .footer {
    display: grid;
    padding: 34px 20px;
  }
}
