@font-face {
  font-family: 'Barlow Condensed';
  src: url('../assets/fonts/barlow-condensed-bold.woff2') format('woff2');
  font-display: swap;
  font-style: normal;
  font-weight: 700;
}
@font-face {
  font-family: 'Instrument Sans';
  src: url('../assets/fonts/instrument-sans.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}
/* Hexagrab — Sound in matter. One visual system, progressive enhancement. */
:root {
  color-scheme: dark;
  --bg: #0c0d0c;
  --surface: #0e0d10;
  --surface-2: #19171c;
  --text: #f1f1eb;
  --muted: #b7bab3;
  --accent: #f1f1e9;
  --silver: #bdbdbd;
  --line: rgba(255, 255, 255, 0.17);
  --line-strong: rgba(255, 255, 255, 0.32);
  --ff-poster: 'Barlow Condensed', 'Arial Narrow', Impact, sans-serif;
  --violet: #a88abd;
  --ff-body: 'Instrument Sans', Arial, sans-serif;
  --ff-display: var(--ff-body);
  --ff-mono: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  --nav-h: 72px;
  --max-w: 1440px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --g500: #adadad;
}
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-padding-top: calc(var(--nav-h) + 4px);
  -webkit-text-size-adjust: 100%;
}
body {
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.65 var(--ff-body);
  -webkit-font-smoothing: antialiased;
}
img,
canvas,
video {
  display: block;
  max-width: 100%;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  color: inherit;
  cursor: pointer;
  border: 0;
  background: none;
}
a {
  color: inherit;
  text-decoration: none;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
ul,
ol {
  list-style: none;
}
svg {
  display: block;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}
[hidden] {
  display: none !important;
}
::selection {
  background: var(--accent);
  color: var(--bg);
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 6px;
}
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline-offset: 3px;
}
.container {
  width: min(100%, var(--max-w));
  margin-inline: auto;
  padding-inline: clamp(24px, 5vw, 80px);
}
.mono,
.label {
  font: 500 .8125rem/1.45 var(--ff-body);
  letter-spacing: .06em;
  text-transform: uppercase;
}
.label {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
}
.label::before {
  content: '';
  width: 22px;
  height: 1px;
  background: currentColor;
  flex-shrink: 0;
}
.heading-lg, .contact__title {
  font: 550 clamp(2.25rem, 4.1vw, 4rem)/1.06 var(--ff-display);
  letter-spacing: -.045em;
  text-wrap: balance;
}
.section { padding-block: clamp(3.25rem, 6.5vw, 6.3rem); }
.section__header { margin-bottom: clamp(1.65rem, 3.2vw, 3rem); }
.section__sub { color: var(--muted); font-size: 1rem; line-height: 1.65; }
.skip-link {
  position: fixed;
  left: 20px;
  top: 15px;
  padding: 12px 20px;
  background: var(--accent);
  color: var(--bg);
  z-index: 200;
  transform: translateY(-160%);
}
.skip-link:focus {
  transform: none;
}
.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 90;
  opacity: 0.017;
  filter: grayscale(1);
  background-size: 156px 156px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23fff' filter='url(%23n)' d='M0 0h160v160H0z'/%3E%3C/svg%3E");
}
.scroll-progress {
  position: fixed;
  inset: 0 0 auto;
  height: 2px;
  z-index: 110;
  pointer-events: none;
}
.scroll-progress__bar {
  height: 100%;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  min-height: 54px;
  padding: 15px 24px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid var(--line);
  border-radius: 3px;
  transition:
    background 0.2s,
    color 0.2s,
    border-color 0.2s,
    transform 0.3s var(--ease);
}
.btn svg {
  width: 20px;
  height: 20px;
  transition: transform 0.3s var(--ease);
}
.btn:hover svg {
  transform: scale(1.06);
}
.btn:active {
  transform: scale(0.98);
}
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg);
}
.btn-primary:hover {
  background: #d9d9d9;
  border-color: #d9d9d9;
}
.btn-ghost:hover {
  background: var(--surface-2);
  border-color: var(--accent);
}
.status-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  flex-shrink: 0;
  box-shadow: 0 0 14px #e8e8e840;
}
/* Navigation */
.nav {
  height: var(--nav-h);
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 13, 12, .96);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: var(--max-w);
  height: 100%;
  margin: auto;
  padding-inline: clamp(24px, 5vw, 80px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.brand-mark {
  display: inline-block;
  flex: none;
  width: 44px;
  aspect-ratio: 236 / 149;
  background: url('../assets/images/Logo.jpg') center 43.6% / 250% auto no-repeat;
  mix-blend-mode: screen;
}
/* Both pieces come from the studio's original black-and-white lockup. */
.brand-wordmark {
  display: inline-block;
  flex: none;
  width: clamp(86px, 8.3vw, 116px);
  aspect-ratio: 7.05;
  overflow: hidden;
  background: url('../assets/images/Logo.jpg') center 64.4% / 178% auto no-repeat;
  color: transparent;
  mix-blend-mode: screen;
}
@media (forced-colors: active) {
  .brand-wordmark { width: auto; aspect-ratio: auto; background: none; color: LinkText; font-weight: 700; }
}
.nav__links {
  display: flex;
  gap: 28px;
}
.nav__link {
  font-size: .9375rem;
  color: #c5c7be;
  display: block;
  padding: 12px 0;
  position: relative;
  transition: color 0.2s;
}
.nav__link:hover,
.nav__link.active {
  color: var(--text);
}
.nav__link.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 4px;
  height: 1px;
  background: var(--accent);
}
.nav__right {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav__cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font: 550 .9375rem var(--ff-body);
  padding: 8px 17px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  transition:
    background 0.2s,
    color 0.2s;
  white-space: nowrap;
}
.nav__cta:hover {
  background: var(--accent);
  color: var(--bg);
}
.nav__burger {
  display: none;
  width: 44px;
  height: 44px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.nav__burger-line {
  width: 22px;
  height: 1px;
  background: var(--text);
}
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 105;
  background: var(--bg);
  padding: 100px 32px 40px;
  visibility: hidden;
  opacity: 0;
  transition:
    opacity 0.2s,
    visibility 0.2s;
  overflow-y: auto;
}
.mobile-nav.open {
  visibility: visible;
  opacity: 1;
}
.mobile-nav__close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 48px;
  height: 48px;
  font-size: 36px;
}
.mobile-nav nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.mobile-nav__link {
  font: 600 clamp(28px, 8vw, 48px) / 1.3 var(--ff-display);
  letter-spacing: -0.04em;
}
.mobile-nav__link[aria-current="location"] { text-decoration: underline; text-underline-offset: .15em; }
.mobile-nav__link:hover {
  color: var(--accent);
}
.mobile-nav__footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 48px;
  color: var(--muted);
  font-size: 13px;
}
/* The immersive monochrome masthead is in identity.css. */
.release-remix { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; margin-top: 14px; min-height: 44px; font: 500 .875rem var(--ff-body); color: #c9c6bc; }
.release-remix:hover { text-decoration: underline; text-underline-offset: 4px; }
/* Selected projects and the optional studio demo */
.portfolio { background: #121311; padding-top: clamp(2.6rem, 4.6vw, 4.5rem); }
.projects-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: clamp(1.75rem, 3.5vw, 3.75rem);
  align-items: stretch;
}
.record-project {
  display: grid;
  grid-template-columns: minmax(0, .96fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 2vw, 2.25rem);
  align-items: start;
}
.record-project__cover {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border: 1px solid #3d3935;
}
.project-type {
  color: #d5ad8e;
  font-size: .875rem;
  font-weight: 550;
  line-height: 1.4;
}
.project-title {
  margin: .55rem 0 0 -.035em;
  font: 550 clamp(1.85rem, 3.15vw, 3.5rem)/1.05 var(--ff-display);
  letter-spacing: -.047em;
}
.record-project__credit {
  margin-top: .55rem;
  color: #deddd6;
  font-size: .9375rem;
  font-weight: 500;
}
.project-text {
  margin-top: .9rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.55;
}
.record-project .work-link { margin-top: .7rem; }
.work-link { color: #f0eee6; text-decoration-color: #9f8069; }
.event-project { border-left: 1px solid #42423b; padding-left: clamp(1.75rem, 3.5vw, 3.75rem); }
.event-archive { margin-top: .95rem; border-top: 1px solid #47473f; }
.event-archive a {
  display: grid;
  grid-template-columns: 6.5rem 1fr;
  gap: .5rem;
  align-items: baseline;
  min-height: 44px;
  padding-block: .7rem;
  border-bottom: 1px solid #363730;
  font-size: 1rem;
  font-weight: 500;
}
.event-archive time { color: #bdc0b6; font-size: .875rem; font-weight: 400; font-variant-numeric: tabular-nums; }
.event-archive a > span { text-decoration: underline; text-decoration-color: #76786c; text-underline-offset: .2em; }
.event-archive a:hover > span { text-decoration-color: currentColor; }
.studio-sample {
  margin-top: clamp(2rem, 3.5vw, 3.5rem);
}
.about__link { margin-top: .65rem; }
@media (max-width: 1100px) and (min-width: 761px) {
  .projects-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .projects-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .record-project { grid-template-columns: minmax(0, .78fr) minmax(0, 1.2fr); gap: clamp(1.1rem, 3.5vw, 1.7rem); }
  .event-project { padding: 1.55rem 0 0; border-left: 0; border-top: 1px solid #42423b; }
  .project-text { max-width: 52ch; }
}
@media (max-width: 480px), (min-width: 761px) and (max-width: 1100px) {
  .record-project {
    grid-template-columns: clamp(4.6rem, 25vw, 7.2rem) minmax(0, 1fr);
    row-gap: .2rem;
    align-content: start;
    align-items: center;
  }
  .record-project__body { display: contents; }
  .record-project__cover { grid-column: 1; grid-row: 1 / 4; }
  .record-project .project-type, .record-project .project-title, .record-project__credit { grid-column: 2; margin: 0; }
  .record-project .project-text, .record-project .work-link { grid-column: 1 / -1; }
  .record-project .project-text { margin-top: .75rem; }
  .record-project .work-link { margin-top: .15rem; }
}
.track {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
  background: var(--surface);
}
.track__visual {
  position: relative;
  min-height: 490px;
  overflow: hidden;
  background: radial-gradient(ellipse at 35% 45%, #3e3e3e, #1e1e1e 50%, #141414);
  isolation: isolate;
}
.track__cover-label {
  position: absolute;
  top: 28px;
  left: 30px;
  font-size: 10px;
}
.track__cover-title {
  position: absolute;
  left: 28px;
  bottom: 75px;
  font: 600 clamp(44px, 5.2vw, 76px) / 0.9 var(--ff-display);
  letter-spacing: -0.06em;
}
.track__cover-title em {
  font-style: normal;
  color: var(--silver);
}
.track__cover-number {
  position: absolute;
  bottom: 28px;
  left: 30px;
  font-size: 10px;
  color: #bbbbbb;
}
.track__body {
  padding: 38px 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.track__eyebrow {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  margin-bottom: 28px;
}
.track__eyebrow .mono {
  font-size: .8125rem;
}
.track__name {
  font: 550 clamp(2.1rem, 3.7vw, 3.6rem)/1.08 var(--ff-display);
  letter-spacing: -.045em;
}
.track__artist {
  font-size: 1rem;
  margin-top: .5rem;
}
.track__description {
  max-width: 45ch;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--muted);
  margin-top: 1.1rem;
}
.track__tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.track__tags span {
  font: 500 .8125rem/1.4 var(--ff-body);
  padding: 5px 9px;
  border: 1px solid var(--line);
  color: var(--muted);
}
.track__tags span:empty { display: none; }
.track__transport {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 34px;
}
.play-btn {
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  border: 1px solid var(--accent);
  border-radius: 50%;
  color: var(--accent);
  display: grid;
  place-items: center;
  transition:
    background 0.2s,
    color 0.2s;
}
.play-btn:hover,
.play-btn.playing {
  background: var(--accent);
  color: var(--bg);
}
.play-btn svg {
  width: 20px;
  height: 20px;
}
.track__timeline {
  flex: 1;
  min-width: 0;
}
.waveform-canvas {
  height: 42px;
  width: 100%;
}
.track__progress-bar {
  position: relative;
  height: 24px;
  cursor: pointer;
}
.track__progress-bar::before {
  content: '';
  position: absolute;
  inset: 11px 0 auto;
  height: 2px;
  background: var(--line-strong);
}
.track__progress-fill {
  height: 2px;
  background: var(--accent);
  width: 0;
  position: absolute;
  left: 0;
  top: 11px;
  pointer-events: none;
}
.track__time {
  display: flex;
  justify-content: space-between;
  font: .8125rem var(--ff-mono);
  color: var(--muted);
}
.audio-feedback {
  color: var(--silver);
  font-size: 12px;
  margin-top: 8px;
  min-height: 0;
}
.audio-feedback:empty {
  display: none;
}
/* Studio services */
.services {
  --text: #21231f;
  --muted: #50554f;
  --accent: #694222;
  background: #eeefeb;
  color: var(--text);
}
.services__layout {
  display: grid;
  grid-template-columns: minmax(0, .68fr) minmax(0, 1.5fr);
  align-items: start;
  gap: clamp(2.5rem, 6vw, 6.5rem);
}
.services__intro { position: sticky; top: calc(var(--nav-h) + 2rem); }
.services__intro h2 { max-width: 9ch; }
.services__intro p { max-width: 28ch; margin-top: 1.25rem; }
.services__grid { border-top: 1px solid #92968d; }
.service {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr) auto;
  grid-template-areas: "icon title link" ". description link";
  align-items: baseline;
  gap: .4rem clamp(.85rem, 1.65vw, 1.65rem);
  padding-block: clamp(1.15rem, 2vw, 2rem);
  border-bottom: 1px solid #c7cbc2;
}
.service__icon {
  grid-area: icon;
  grid-row: 1/3;
  align-self: start;
  color: #555e50;
}
.service__icon svg { width: 100%; height: auto; }
.service__title {
  grid-area: title;
  font: 550 clamp(1.45rem, 2.1vw, 2.1rem)/1.16 var(--ff-display);
  letter-spacing: -.037em;
}
.service__desc { grid-area: description; max-width: 54ch; color: var(--muted); font-size: 1rem; line-height: 1.55; }
.service__link { grid-area: link; align-self: center; color: #333a2e; text-decoration-color: #91978b; }
.services :focus-visible { outline-color: #71502e; }

@media (max-width: 825px) {
  .services__layout { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .services__intro { position: static; }
  .services__intro h2 { max-width: none; }
  .services__intro p { max-width: 42ch; margin-top: .8rem; }
}
@media (max-width: 560px) {
  .service { grid-template-columns: 2rem minmax(0, 1fr); grid-template-areas: "icon title" ". description" ". link"; column-gap: .8rem; padding-block: 1.25rem .85rem; }
  .service__link { justify-self: start; }
}

/* Optional instruments and sound sculptures */
.experiments { padding-block: clamp(2.5rem, 4.5vw, 4.5rem); background: #131413; }
.experiments__heading { margin-bottom: 1.3rem; font: 550 clamp(1.5rem, 2.6vw, 2.25rem)/1.2 var(--ff-display); letter-spacing: -.035em; }
.experiment { border-block-start: 1px solid var(--line); }
.experiment:last-child { border-block-end: 1px solid var(--line); }
.experiment > summary {
  display: grid;
  grid-template-columns: minmax(10rem, .6fr) minmax(0, 1.4fr) auto;
  gap: .3rem 1.25rem;
  align-items: center;
  padding-block: 1.15rem;
  list-style: none;
  cursor: pointer;
}
.experiment > summary::-webkit-details-marker { display: none; }
.experiment > summary::after {
  content: '';
  grid-column: 3;
  grid-row: 1;
  width: 1rem;
  height: 1rem;
  background: linear-gradient(currentColor, currentColor) center/100% 1.5px no-repeat,
              linear-gradient(currentColor, currentColor) center/1.5px 100% no-repeat;
}
.experiment[open] > summary::after { background-size: 100% 1.5px, 0 0; }
.experiment > summary:hover .experiment__name { text-decoration: underline; text-underline-offset: .2em; }
.experiment__name { font-size: 1.12rem; font-weight: 550; }
.experiment__description { color: var(--muted); line-height: 1.5; }
.experiment__body { padding-bottom: 1.5rem; }
.pad-glyph { display: inline-grid; grid-template-columns: repeat(2, 5px); gap: 2px; }
.pad-glyph i { width: 5px; height: 5px; border: 1px solid currentColor; }
.pad-glyph i:first-child, .pad-glyph i:last-child { background: currentColor; }
@media (max-width: 560px) {
  .experiment > summary { grid-template-columns: minmax(0, 1fr) auto; gap: .2rem .75rem; }
  .experiment__description { grid-column: 1; }
  .experiment > summary::after { grid-column: 2; grid-row: 1/3; }
  .art-modes { gap: 0; }
  .art-mode { padding-inline: .35rem; }
}

/* Beat Lab */
.beat-lab {
  --inset: clamp(16px, 2.6vw, 40px);
  color: var(--text);
  background: #191919;
  border: 1px solid #242424;
  border-radius: 12px;
  box-shadow: 0 8px 22px #00000015, inset 0 1px #ffffff14;
  overflow: hidden;
  padding-bottom: 4px;
}
.beat-lab__header {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 48px);
  padding: 16px var(--inset);
  background: #202020;
  border-bottom: 1px solid #3b3b3b;
}
.preset-picker { display: flex; flex-direction: column; gap: 1px; min-width: 144px; }
.preset-picker .mono { color: #acacac; font-size: 0.75rem; }
.beat-select, .form-input:is(select) {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23bfbfbf' stroke-width='1.5'/%3E%3C/svg%3E");
  background-position: right 0.7rem center;
  background-repeat: no-repeat;
  background-size: 16px;
  padding-right: 2rem;
}
.beat-select {
  color: var(--text);
  border: 1px solid #565656;
  border-radius: 4px;
  background-color: #242424;
  min-height: 44px;
  padding-left: 11px;
  font: 500 0.94rem var(--ff-body);
  cursor: pointer;
}
.preset-picker .beat-select {
  min-height: 32px;
  padding: 0 26px 0 0;
  border: none;
  background-color: transparent;
  background-position: right 2px center;
  font-size: 1.17rem;
  font-weight: 600;
}
.beat-select option { background: #252525; color: #f2f2f2; }
.lab-monitor {
  position: relative;
  flex: 1;
  height: 43px;
  min-width: 40px;
  border-inline: 1px solid #454545;
  background: repeating-linear-gradient(90deg, transparent 0 26px, #ffffff0a 26px 27px);
}
.lab-monitor canvas { width: 100%; height: 100%; }
.beat-transport.btn { min-height: 44px; padding: 10px 19px; border-radius: 5px; gap: 9px; }
.beat-transport svg { width: 15px; height: 15px; }
.transport-stop, .beat-transport.is-active .transport-play { display: none; }
.beat-transport.is-active .transport-stop { display: block; }
.sequence-panel { padding: 22px var(--inset) 20px; }
.beat-lab__grid-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 13px; }
.beat-lab__grid-header h3 { font: 600 1.1rem var(--ff-body); letter-spacing: -0.035em; }
.grid-meter { color: #adadad; }
.grid-meter b { font-weight: normal; padding: 0 4px; }
.beat-banks { display: none; }
.beat-grid {
  --label-width: clamp(74px, 9vw, 128px);
  --pad-gap: clamp(3px, 0.48vw, 8px);
  display: grid;
  gap: 5px;
}
.beat-grid__row, .beat-grid__ruler {
  display: grid;
  grid-template-columns: var(--label-width) repeat(16, minmax(0, 1fr));
  gap: var(--pad-gap);
  align-items: center;
}
.beat-grid__ruler { font: 0.75rem/1.35 var(--ff-mono); color: #9f9f9f; text-align: center; }
.beat-grid__ruler > :first-child { text-align: left; }
.beat-grid__ruler [data-step] { padding: 2px 0; }
.beat-grid__ruler .downbeat { color: #eee; }
.beat-grid__ruler .is-current { background: #ececec; border-radius: 3px; color: #111; }
.beat-grid__row { min-height: 36px; }
.lane-mute {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 38px;
  white-space: nowrap;
  text-align: left;
  font: 500 0.94rem var(--ff-body);
}
.lane-mute svg { width: 16px; height: 16px; color: #b2b2b2; }
.lane-mute .mute-cross, .lane-mute[aria-pressed="true"] .mute-waves { display: none; }
.lane-mute[aria-pressed="true"] .mute-cross { display: block; }
.lane-mute[aria-pressed="true"] { color: #aaa; text-decoration: line-through; }
.beat-cell {
  position: relative;
  width: 100%;
  height: clamp(32px, 3vw, 45px);
  border: 1px solid #484848;
  border-radius: 4px;
  background: #292929;
  box-shadow: inset 0 1px #ffffff08;
}
.beat-cell.alt-beat { background: #353535; border-color: #505050; }
.beat-cell.is-on { background: #e2e2e2; border-color: #f1f1f1; box-shadow: inset 0 -3px #c4c4c4; }
.beat-cell.is-on::before { content: ''; position: absolute; width: 4px; height: 4px; border-radius: 50%; background: #696969; top: 6px; left: 6px; }
.beat-cell:hover { border-color: #cfcfcf; }
.beat-cell.is-current::after { content: ''; position: absolute; inset: auto 14% 3px; border-bottom: 2px solid #f3f3f3; }
.beat-cell.is-on.is-current::after { border-color: #454545; }
.beat-grid :focus-visible { outline-offset: 1px; z-index: 1; }
.grid-hint, .lab-footnote { font-size: 0.84rem; line-height: 1.5; }
.grid-hint { margin-top: 11px; color: #b2b2b2; }
.lab-footnote { margin-top: 12px; color: #555; }
.beat-lab__controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 16px clamp(18px, 3.4vw, 54px);
  padding: 18px var(--inset) 12px;
  border-top: 1px solid #383838;
}
.beat-control {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  align-content: start;
  gap: 1px 10px;
  min-width: 0;
  color: #c8c8c8;
  font-size: 0.9rem;
}
.beat-control output { grid-row: 1; grid-column: 2; color: white; font: 0.875rem var(--ff-mono); }
.beat-control input, .beat-control select { grid-column: 1 / -1; width: 100%; min-width: 0; }
.beat-control input {
  appearance: none;
  height: 32px;
  background: transparent;
  accent-color: white;
  cursor: pointer;
}
.beat-control input::-webkit-slider-runnable-track { height: 3px; background: #565656; border-radius: 2px; }
.beat-control input::-webkit-slider-thumb { appearance: none; width: 13px; height: 13px; margin-top: -5px; background: #eee; border-radius: 50%; }
.beat-control input::-moz-range-track { height: 3px; border-radius: 2px; background: #565656; }
.beat-control input::-moz-range-thumb { width: 13px; height: 13px; border: none; border-radius: 50%; background: #eee; }
.lab-advanced { border-top: 1px solid #383838; }
.lab-advanced summary { display: flex; justify-content: space-between; align-items: center; min-height: 48px; padding: 10px var(--inset); color: #d0d0d0; font-size: 0.9rem; cursor: pointer; list-style: none; }
.lab-advanced summary::-webkit-details-marker { display: none; }
.lab-advanced summary > :last-child { font: 400 19px var(--ff-mono); transition: transform 0.2s; }
.lab-advanced[open] summary > :last-child { transform: rotate(45deg); }
.lab-advanced .beat-lab__controls { padding-block: 6px 16px; border-top: none; }
.lab-advanced .beat-select { margin-top: 5px; }
.beat-lab__footer { border-top: 1px solid #383838; padding: 6px var(--inset); display: flex; align-items: center; justify-content: space-between; gap: 8px 18px; flex-wrap: wrap; }
.hero__beat-status, .beat-lab__tools { display: flex; align-items: center; gap: 6px 12px; flex-wrap: wrap; }
.hero__beat-status { color: #bebebe; font: 0.75rem/1.4 var(--ff-mono); }
.hero__beat-status .status-dot { background: #737373; box-shadow: none; }
.hero__beat-status.is-active .status-dot { background: white; }
.beat-tool { display: inline-flex; gap: 5px; align-items: center; min-height: 44px; color: #dedede; font-size: 0.875rem; }
.beat-tool:hover { text-decoration: underline; text-underline-offset: 4px; }
.beat-tool:disabled { cursor: default; opacity: 0.4; text-decoration: none; }
.tool-icon { width: 15px; height: 15px; font: 1.05rem var(--ff-mono); }
.beat-lab > .audio-feedback, .beat-share-field { margin: 8px var(--inset); }
.beat-share-field { display: grid; gap: 6px; font-size: 0.875rem; }
.beat-share-field input { width: 100%; min-width: 0; padding: 10px; border: 1px solid #555; background: #222; color: white; }
@media (max-width: 700px) {
  .beat-grid { --label-width: 72px; --pad-gap: 4px; }
  .beat-grid__row, .beat-grid__ruler { grid-template-columns: var(--label-width) repeat(8,minmax(0,1fr)); }
  .beat-grid[data-bank-view="0"] [data-step-bank="1"], .beat-grid[data-bank-view="1"] [data-step-bank="0"] { display: none; }
  .beat-banks { display: flex; gap: 2px; }
  .beat-banks button { position: relative; color: #acacac; font: 0.75rem var(--ff-mono); min-height: 40px; padding: 0 8px; }
  .beat-banks button[aria-pressed="true"] { color: white; text-decoration: underline; text-underline-offset: 5px; }
  .beat-banks .has-playhead::after { content: ''; position: absolute; top: 3px; left: calc(50% - 2px); width: 4px; height: 4px; border-radius: 50%; background: white; }
  .grid-meter { display: none; }
  .beat-lab__footer { padding-top: 12px; }
  .beat-lab__tools { gap: 2px 14px; }
}
@media (max-width: 560px) {
  .beat-lab { --inset: 14px; border-radius: 8px; }
  .beat-lab__header { flex-wrap: wrap; gap: 8px 14px; }
  .preset-picker { min-width: 120px; }
  .lab-monitor { order: 3; flex-basis: 100%; height: 25px; }
  .beat-transport { margin-left: auto; }
  .beat-transport.btn { padding-inline: 12px; }
  .beat-lab__grid-header { margin-bottom: 6px; }
  .sequence-panel { padding-block: 10px 15px; }
  .beat-grid { --label-width: 56px; --pad-gap: 3px; }
  .lane-mute { font-size: 0.875rem; gap: 5px; }
  .lane-mute svg { width: 13px; height: 13px; }
  .beat-lab__controls { grid-template-columns: 1fr; gap: 5px; }
  .lab-advanced .beat-lab__controls { grid-template-columns: 1fr 1fr; gap: 9px 16px; }
  .beat-cell { border-radius: 3px; }
}
/* Studio / process */
.about__grid {
  display: grid;
  grid-template-columns: 0.9fr 1fr;
  gap: 100px;
  align-items: center;
}
.about__visual {
  position: relative;
  aspect-ratio: 1;
  max-width: 480px;
  width: 100%;
  background: radial-gradient(ellipse, #292929, transparent 65%);
  display: grid;
  place-items: center;
  overflow: hidden;
}
.about__body {
  max-width: 54ch;
  margin-top: 1.25rem;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}
.process {
  background: #151615;
  border-block: 1px solid var(--line);
}
.process__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-strong);
}
.process__step {
  padding: 32px 28px 10px 0;
  margin-right: 28px;
  border-right: 1px solid var(--line);
}
.process__step:last-child {
  margin: 0;
  border: 0;
}
.process__step-dot {
  color: #e0b18b;
  font: 550 .875rem/1.3 var(--ff-body);
  font-variant-numeric: tabular-nums;
  margin-bottom: 1.15rem;
}
.process__title {
  font: 550 clamp(1.35rem, 1.8vw, 1.7rem)/1.2 var(--ff-display);
  letter-spacing: -.03em;
  margin-bottom: .65rem;
}
.process__desc {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--muted);
}
/* Contact */
.contact {
  background: #191a18;
  border-block: 1px solid var(--line);
}
.contact__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 90px;
}
.contact__desc {
  max-width: 40ch;
  font-size: 1rem;
  line-height: 1.65;
  margin-top: 1.25rem;
  color: var(--muted);
}
.contact__details {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.contact__item {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .9375rem;
}
.contact__item svg {
  width: 17px;
  height: 17px;
}
.contact__item a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.socials {
  display: flex;
  gap: 12px;
  margin-top: 32px;
}
.social-link {
  border: 1px solid #5c5362;
  border-radius: 50%;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  transition:
    background 0.2s,
    color 0.2s;
}
.social-link svg {
  width: 17px;
  height: 17px;
}
.social-link:hover {
  background: #271f2c;
  color: var(--accent);
}
.contact__form-wrap {
  min-width: 0;
  align-self: center;
}
.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 20px;
}
.form-group {
  min-width: 0;
}
.form-group:nth-child(n + 3) {
  grid-column: 1/-1;
}
.form-label {
  display: block;
  font-size: .9375rem;
  font-weight: 550;
  margin-bottom: .4rem;
  color: var(--text);
}
.form-input {
  display: block;
  width: 100%;
  border: 1px solid #565953;
  color: var(--text);
  background: #111210;
  border-radius: 0;
  padding: 12px 14px;
  min-height: 48px;
  outline: none;
  font-size: 1rem;
  transition: border 0.2s;
}
.form-input::placeholder {
  color: #a59dac;
  opacity: 1;
}
.form-input:focus {
  border-color: #d7b796;
  box-shadow: 0 0 0 1px #d7b796;
}
.form-input.error {
  border-color: #ce9ba9;
}
.form-select {
  appearance: none;
  color-scheme: dark;
  cursor: pointer;
}
.form-select option {
  background: #17131a;
  color: var(--text);
}
.form-textarea {
  resize: vertical;
  min-height: 110px;
  max-height: 350px;
}
.form-error {
  display: block;
  color: #e1bec9;
  font-size: 12px;
  min-height: 0;
  margin-top: 5px;
}
.form-error:empty {
  display: none;
}
.form .btn {
  grid-column: 1/-1;
  justify-content: center;
  background: var(--accent);
  color: var(--bg);
  border-color: var(--accent);
}
.form .btn:hover {
  background: #dcdcd3;
}
.form-privacy {
  grid-column: 1/-1;
  color: var(--muted);
  font-size: .875rem;
  line-height: 1.8;
}
.form-privacy a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.form-note {
  grid-column: 1/-1;
  font-size: .875rem;
  color: var(--muted);
  margin-bottom: -10px;
}
.form-note a {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.form-success {
  border: 1px solid #55485c;
  padding: 36px;
  min-height: 240px;
  display: flex;
  align-items: center;
  gap: 20px;
  font-size: 22px;
  line-height: 1.5;
}
.form-success svg {
  width: 36px;
  height: 36px;
}
.contact :focus-visible {
  outline-color: #cdb7dc;
}
#fSendError {
  grid-column: 1/-1;
  color: #e1bec9;
  font-size: 13px;
}
/* Footer / persistent audio transport */
.footer {
  padding-top: 60px;
  padding-bottom: 30px;
  background: #030303;
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.1fr 0.5fr;
  gap: 35px;
}
.footer__brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 700 21px var(--ff-display);
  letter-spacing: -0.04em;
}
.footer__brand-logo img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}
.footer__tagline {
  font-size: .875rem;
  color: var(--muted);
  line-height: 1.65;
  margin-top: 16px;
}
.footer__col-title {
  font: 600 .9375rem/1.3 var(--ff-body);
  color: var(--text);
  margin-bottom: .85rem;
}
.footer__links {
  display: flex;
  flex-direction: column;
  gap: .55rem;
  color: var(--muted);
  font-size: .9375rem;
  overflow-wrap: anywhere;
}
.footer__link:hover {
  color: var(--accent);
}
.footer__socials {
  display: flex;
  gap: 12px;
}
.footer__social-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.footer__social-icon svg {
  width: 16px;
  height: 16px;
}
.footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-top: clamp(2rem, 4vw, 4rem);
  font: .8125rem/1.5 var(--ff-body);
  color: var(--muted);
}
.sound-dock {
  position: fixed;
  z-index: 95;
  bottom: max(20px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 18px;
  width: max-content;
  max-width: calc(100% - 32px);
  padding: 12px 20px;
  border: 1px solid #818181;
  background: #141414f5;
  backdrop-filter: blur(16px);
  border-radius: 4px;
  box-shadow: 0 10px 50px #0008;
  font-size: .875rem;
}
.sound-dock__title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}
.sound-dock__signal {
  display: flex;
  gap: 3px;
  align-items: center;
  height: 20px;
  flex-shrink: 0;
}
.sound-dock__signal i {
  width: 2px;
  height: 14px;
  background: #ff815b;
  animation: signal 0.8s ease-in-out infinite alternate;
}
.sound-dock__signal i:nth-child(2) {
  animation-delay: -0.3s;
  height: 8px;
}
.sound-dock__signal i:nth-child(3) {
  animation-delay: -0.5s;
  height: 20px;
}
.sound-dock__signal i:nth-child(4) {
  animation-delay: -0.2s;
  height: 10px;
}
.sound-dock button {
  padding: 8px 0;
  min-height: 36px;
  color: var(--accent);
  white-space: nowrap;
}
.sound-dock__link {
  border-right: 1px solid var(--line);
  padding: 8px 18px 8px 0;
  color: var(--muted);
}
@keyframes signal {
  to {
    opacity: 0.5;
    transform: scaleY(0.5);
  }
}
/* Content is visible by default, including when scripts fail. */
@media (prefers-reduced-motion: no-preference) {
  [data-reveal].visible {
    animation: reveal 0.7s var(--ease) both;
  }
  @keyframes reveal {
    from {
      transform: translateY(12px);
      opacity: 0.7;
    }
    to {
      transform: none;
      opacity: 1;
    }
  }
}

@media (max-width: 1100px) {
  .nav__links {
    gap: 18px;
  }
  .nav__right {
    gap: 16px;
  }
  .nav__inner {
    gap: 22px;
  }

  .track__body {
    padding: 30px;
  }
  .track__visual {
    min-height: 450px;
  }
  .contact__grid {
    gap: 50px;
  }
  .about__grid {
    gap: 50px;
  }

}
@media (max-width: 800px) {
  :root {
    --nav-h: 72px;
  }
  .nav__links {
    display: none;
  }
  .nav__burger {
    display: flex;
  }
  .nav__right {
    gap: 16px;
  }
  .nav__cta {
    padding: 8px 12px;
  }

  .track__visual {
    min-height: 390px;
  }
  .track__body {
    padding: 26px;
  }
  .track__cover-title {
    font-size: 42px;
  }
  .track__eyebrow {
    margin-bottom: 20px;
  }
  .track__tags {
    gap: 5px;
  }
  .track__transport {
    gap: 12px;
  }
  .play-btn {
    width: 48px;
    height: 48px;
  }

  .about__grid {
    gap: 35px;
  }
  .process__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 35px 20px;
  }
  .process__step {
    margin: 0;
    padding: 24px 20px 0 0;
  }
  .process__step:nth-child(2) {
    border: 0;
  }
  .contact__grid {
    gap: 40px;
    grid-template-columns: 1fr 1fr;
  }
  .form {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .form-group:nth-child(n + 3) {
    grid-column: auto;
  }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 35px;
  }
}
@media (max-width: 560px) {
  .container,
  .nav__inner {
    padding-inline: 22px;
  }
  .nav__inner {
    gap: 12px;
  }
  .brand-wordmark { width: 86px; }
  .brand-mark {
    width: 34px;
  }
  .nav__right {
    gap: 10px;
  }
  .nav__cta {
    font-size: .875rem;
    padding: 8px 12px;
  }
  .nav__burger { width: 40px; }
  .nav__logo {
    gap: 7px;
  }

  .track {
    grid-template-columns: 1fr;
  }
  .track__visual {
    min-height: 0;
    aspect-ratio: 1.1;
  }
  .track__body {
    padding: 28px;
  }
  .track__cover-title {
    font-size: 53px;
    bottom: 65px;
  }
  .track__eyebrow {
    margin-bottom: 20px;
  }
  .track__artist {
    margin-top: 10px;
  }
  .track__transport {
    margin-top: 27px;
    gap: 18px;
  }

  .about__grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .about__visual {
    max-width: 340px;
    margin: auto;
  }
  .process__grid {
    gap: 28px 16px;
  }
  .process__step {
    padding-right: 14px;
  }
  .contact__grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .contact__details {
    margin-top: 28px;
  }
  .form {
    gap: 24px;
  }
  .footer {
    padding-top: 42px;
    padding-bottom: 85px;
  }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 30px 20px;
  }
  .footer__brand {
    grid-column: 1/-1;
  }
  .footer__grid > div:last-child {
    grid-column: 1/-1;
  }
  .footer__bottom {
    flex-wrap: wrap;
    gap: 10px 20px;
  }
  .footer__bottom > span:nth-child(2) {
    display: none;
  }
  .sound-dock {
    gap: 12px;
    padding: 8px 14px;
    font-size: .875rem;
  }
  .sound-dock__link {
    padding-right: 12px;
  }
  .sound-dock__title {
    max-width: 115px;
  }
}
@media (max-width: 360px) {
  .nav__inner, .nav__right { gap: .3rem; }
  .nav__right {
    gap: 12px;
  }

  .track__cover-title {
    font-size: 46px;
  }
}
/* Beat Lab instrument surfaces */
.beat-lab {
  --inset: clamp(16px, 2.4vw, 36px);
  --metal-rule: #38343e;
  --rack-text: #f0edf3;
  --rack-muted: #b7afc2;
  --rack-led: #ff815b;
  color: var(--rack-text);
  background: repeating-linear-gradient(0deg, #ffffff03 0 1px, transparent 1px 3px), linear-gradient(115deg,#1c1c20 0%,#242327 19%,#141316 55%,#1a171d 86%,#111013);
  border: 1px solid #454148;
  border-radius: 13px;
  box-shadow: inset 0 1px #73707685, inset 0 -1px #050507, 0 3px 0 #252328, 0 7px 0 #0c0b0d, 0 20px 46px #000a;
  padding: 0 0 7px;
}
.beat-lab :focus-visible { outline-color: #deb4f8; }
.beat-lab__header {
  position: relative;
  background: transparent;
  gap: clamp(16px,2.75vw,44px);
  padding: 23px var(--inset) 17px;
  border: none;
}
.beat-lab__header::before, .beat-lab__header::after {
  pointer-events: none; position: absolute; content: ''; width: 7px; height: 7px; border-radius: 50%; top: 6px;
  border: 1px solid #69666c; box-shadow: inset 0 1px #99909c33, 0 1px #000a;
  background: linear-gradient(142deg,transparent 40%,#0e0e10 42% 56%,transparent 59%),#373539;
}
.beat-lab__header::before { left: 7px; }
.beat-lab__header::after { right: 7px; }
.rack-id { display: inline-flex; align-items: center; gap: 7px; color: var(--rack-text); font: 700 1.85rem/1 var(--ff-poster); letter-spacing: -.035em; }
.rack-id .brand-mark { width: 33px; }
.preset-picker .mono { color: var(--rack-muted); font-size: .8125rem; }
.preset-picker .beat-select { color: var(--rack-text); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='m4 6 4 4 4-4' fill='none' stroke='%23c6bfcd' stroke-width='1.5'/%3E%3C/svg%3E"); }
.lab-monitor {
  height: 45px; border: 1px solid #45404b; border-radius: 4px;
  box-shadow: inset 0 2px 7px #000, 0 1px #74707733;
  background: repeating-linear-gradient(90deg,transparent 0 17px,#a784c61c 17px 18px), repeating-linear-gradient(0deg,transparent 0 10px,#a784c613 10px 11px),#0b090e;
}
.step-display { display: grid; grid-template-columns: auto auto; align-items: baseline; column-gap: 3px; font: .68rem/1 var(--ff-mono); }
.step-display > span { grid-column: 1/-1; text-transform: uppercase; color: var(--rack-muted); letter-spacing: .09em; margin-bottom: 4px; }
.step-display strong { font: 700 2rem/.8 var(--ff-poster); font-variant-numeric: tabular-nums; min-width: 1em; color: #c0b8c7; }
.beat-lab:has(.beat-transport.is-active) .step-display strong { color: var(--rack-led); }
.step-display small { color: var(--rack-muted); }
.beat-transport.btn { color: #ece2f3; background: linear-gradient(#38313e,#242028); border: 1px solid #786884; box-shadow: 0 3px #070609, inset 0 1px #c5afb92b; }
.beat-transport.btn:hover { background: #41324c; }
.beat-transport.btn.is-active { color: #ffe5dc; background: #45251f; border-color: #d56b4b; }
.sequence-panel {
  margin: 0 clamp(6px,1vw,16px); padding: 21px calc(var(--inset) - 9px) 16px;
  color: #f3edf5; background: linear-gradient(145deg,#0a090c,#101013 68%,#111015);
  border: 1px solid #3e3843; border-radius: 6px;
  box-shadow: inset 0 3px 8px #000d, 0 1px #56515b66;
}
.sequence-panel :focus-visible { outline-color: #eedcff; }
.beat-lab__grid-header h3, .performance-row h3 { font: 600 1.08rem/1.2 var(--ff-body); letter-spacing: -.035em; }
.grid-meter, .beat-grid__ruler, .grid-hint { color: var(--rack-muted); }
.beat-grid__ruler .is-current { background-color: var(--rack-led); color: #211529; }
.beat-cell { background: #1a191e; border-color: #68616e; box-shadow: inset 0 1px #ffffff0d, 0 1px #050406; }
.beat-cell.alt-beat { background: #242228; border-color: #716b76; }
.beat-grid__row { --voice: #a6a2ad; --voice-edge: #74717b; }
.beat-grid__row[data-voice="clap"] { --voice: #958b9f; --voice-edge: #6c6079; }
.beat-grid__row[data-voice="hat"] { --voice: #ab8abf; --voice-edge: #80668c; }
.beat-grid__row[data-voice="bass"] { --voice: #9584ae; --voice-edge: #675a7c; }
.beat-grid__row.is-muted[data-voice] { --voice: #77737f; --voice-edge: #4b4653; }
.beat-grid__row.is-muted .beat-cell.is-on::before { background: transparent; border: 1px solid #2c2631; }
.beat-cell.is-on { background: var(--voice); border-color: var(--voice); box-shadow: inset 0 1px #ffffff48, inset 0 -3px var(--voice-edge), 0 1px #070509; }
.beat-cell.is-on::before { background: #302836; }
.beat-cell:hover { border-color: #c9bbd4; }
.beat-cell.is-current::after { border-color: var(--rack-led); }
.beat-cell.is-on.is-current::after { border-color: #441c10; }
.performance-row { display: grid; grid-template-columns: minmax(160px,.68fr) minmax(0,1.65fr); align-items: center; gap: 14px 25px; padding: 20px var(--inset); }
.performance-row p { color: var(--rack-muted); font-size: .82rem; line-height: 1.45; margin-top: 5px; }
.live-pads { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 8px; }
.live-pads button {
  position: relative; display: flex; align-items: end; justify-content: space-between; gap: 4px; padding: 10px 12px 9px;
  min-height: 57px; color: #faf5fd; background: linear-gradient(160deg,#29272d,#1a181e 70%);
  border: 1px solid #776f7e; border-radius: 4px; box-shadow: inset 0 1px #81758c45, 0 3px #09080c;
  font: 600 .9rem/1.2 var(--ff-body); touch-action: manipulation; user-select: none;
}
.live-pads button::before { content: ''; position: absolute; top: 8px; left: 12px; height: 2px; width: 20px; background: #887793; }
.live-pads kbd { color: var(--rack-muted); font: .69rem/1.2 var(--ff-mono); align-self: start; }
.live-pads button:hover { background: #38313e; }
.live-pads button:active, .live-pads button.is-hit, .live-pads button.is-sequenced {
  color: #f7eafb; background: #483550; border-color: #b489c9; box-shadow: inset 0 1px #c6a7d73d, 0 1px #0d0911; transform: translateY(2px);
}
.live-pads button:is(:active,.is-hit,.is-sequenced)::before { background: var(--rack-led); box-shadow: 0 0 5px #ff764c82; }
.live-pads button:is(:active,.is-hit,.is-sequenced) kbd { color: #e2c8ec; }
.beat-lab__controls, .lab-advanced, .beat-lab__footer { border-color: var(--metal-rule); }
.beat-control, .lab-advanced summary, .beat-tool, .beat-lab > .audio-feedback, .beat-share-field { color: #cec8d5; }
.beat-control output { color: #e4d2ed; }
.beat-control input::-webkit-slider-runnable-track { background: #79717f; box-shadow: 0 1px #000c; }
.beat-control input::-moz-range-track { background: #79717f; box-shadow: 0 1px #000c; }
.beat-control input::-webkit-slider-thumb { background: #e0cdeb; border: 1px solid #18131d; box-shadow: 0 1px 2px #000a; }
.beat-control input::-moz-range-thumb { background: #e0cdeb; border: 1px solid #18131d; box-shadow: 0 1px 2px #000a; }
.lab-advanced .beat-select { background-color: #19171d; border-color: #61596a; color: var(--rack-text); }
.lab-advanced summary:hover { background: #cda3e50c; }
.beat-lab .hero__beat-status { color: var(--rack-muted); }
.beat-lab .status-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #76717c; }
.beat-lab .hero__beat-status.is-active .status-dot { background: var(--rack-led); box-shadow: 0 0 6px #ff764c80; }
.export-loop { font-weight: 650; }
.export-loop svg { width: 17px; height: 17px; }
.lab-footnote { margin-top: 19px; color: #c1bbca; }

/* Release sleeve, original service symbols and studio illustrations. */
.track { background: #161715; border-color: #383a35; }
.track__visual {
  background: radial-gradient(ellipse at 63% 19%,#332b39 0,#201b25 30%,#100e14 65%,#08070a);
  container-type: inline-size;
}
.vinyl, .track__cover-label, .track__cover-number { left: 6%; color: #bcb3c2; font-size: clamp(.49rem,1.7cqw,.72rem); }
.track__cover-label { top: 4%; font-weight: 700; }
.track__cover-number { bottom: 4%; }
.track__cover-title { left: 6%; bottom: 12%; font: 700 clamp(1.7rem,8.6cqw,5.2rem)/.82 var(--ff-poster); letter-spacing: -.037em; text-transform: uppercase; }
.track__cover-title em { color: #df936f; }
.track__artist { color: #debc9c; }
.track-native { width: 100%; margin-top: 24px; }
.track:not(.player-ready) .track__transport, .track.player-ready .track-native { display: none; }
@keyframes vinyl-play { to { transform: translateY(-50%) rotate(360deg); } }
@media (prefers-reduced-motion: no-preference) {
  .vinyl { animation: vinyl-play 7s linear infinite paused; }
  .track.is-playing .vinyl { animation-play-state: running; }
}

.about { background: var(--bg); }
.about__visual { aspect-ratio: 1.35; max-width: none; margin: 0; border: 1px solid #443b49; background: #0c0b0d; }
.about__visual #tapeCanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.about__visual figcaption { position: absolute; inset: auto 0 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 10px; padding: 32px 16px 13px; background: linear-gradient(transparent,#0e0916e0); color: #e2d8ea; font-size: .75rem; }

@media (max-width: 850px) {
  .rack-id .brand-mark { display: none; }
  .beat-lab__header { gap: 16px; }
}
@media (max-width: 700px) {
  .rack-id { display: none; }
  .performance-row { grid-template-columns: 1fr; gap: 11px; padding-block: 15px; }
  .performance-row p { margin-top: 3px; }
}
@media (max-width: 560px) {
  .beat-lab { --inset: 13px; }
  .beat-lab__header { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 11px 10px; padding-block: 16px 12px; align-items: center; }
  .lab-monitor { grid-row: 2; grid-column: 1; height: 27px; }
  .step-display { grid-row: 2; grid-column: 2; display: flex; gap: 4px; align-items: center; justify-content: end; }
  .step-display > span { margin: 0 2px 0 0; }
  .step-display strong { font-size: 1.38rem; }
  .beat-transport { grid-row: 1; grid-column: 2; }
  .sequence-panel { margin-inline: 4px; padding-inline: 8px; }
  .performance-row { gap: 9px; }
  .live-pads { gap: 5px; }
  .live-pads button { min-height: 52px; padding: 8px 6px 6px; font-size: .79rem; }
  .live-pads button::before { left: 7px; width: 12px; }
  .beat-lab__controls { gap: 3px; padding-block: 13px 8px; }
  .beat-lab__tools { gap: 0 12px; }
  .beat-tool { font-size: .80rem; }
  .track__visual { aspect-ratio: 1.44; }
  .track__cover-title { font-size: clamp(1.7rem,9.1cqw,3.1rem); }
}
@media (max-width: 365px) {
  .beat-grid { --label-width: 55px; }
  .preset-picker { min-width: 0; }
  .preset-picker .beat-select { width: 100%; font-size: 1rem; padding-right: 15px; background-size: 12px; }
  .beat-transport.btn { padding-inline: 9px; }
  .lane-mute { font-size: .80rem; gap: 3px; }
}

@media (max-width: 560px) {
  .process__grid { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .process__step, .process__step:nth-child(2), .process__step:last-child {
    display: grid;
    grid-template-columns: 1.8rem minmax(0, 1fr);
    gap: .45rem .65rem;
    padding: 1.1rem 0;
    border: 0;
    border-bottom: 1px solid var(--line);
  }
  .process__step-dot { grid-row: 1/3; margin: .3rem 0 0; }
  .process__title { margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
