/* Hexagrab: responsive studio interface with switchable neutral themes. */
:root {
  color-scheme: dark;
  --bg: #080808;
  --surface: #101010;
  --surface-2: #181818;
  --text: #f0f0f0;
  --muted: #a5a5a5;
  --accent: #f2f2f2;
  --silver: #bdbdbd;
  --line: #ffffff24;
  --line-strong: #ffffff4d;
  --violet: #969696;
  --g500: #a5a5a5;
  --rack-led: #f2f2f2;
  --max-w: 1520px;
  --page-bg: #080808;
  --panel: #101010;
  --panel-raised: #181818;
  --panel-deep: #050505;
  --foreground: #f0f0f0;
  --secondary: #c1c1c1;
  --tertiary: #858585;
  --stroke: #ffffff24;
  --stroke-strong: #ffffff4d;
  --inverse: #080808;
  --nav-glass: #080808e8;
  --scene-halo: rgba(105, 26, 47, .18);
  --scene-grid: #ffffff11;
  --object-fallback: #dadada;
  --body-muted: #a5a5a5;
  --wine: #71253d;
  --wine-deep: #3c111f;
  --wine-lit: #bd788b;
  --wine-wash: rgba(113, 37, 61, .13);
  --wine-edge: rgba(164, 68, 91, .42);
}
html[data-theme="light"] {
  color-scheme: light;
  --bg: #ededea;
  --surface: #f5f5f2;
  --surface-2: #e5e5e1;
  --text: #161616;
  --muted: #555;
  --accent: #171717;
  --silver: #545454;
  --line: #00000025;
  --line-strong: #00000055;
  --violet: #555;
  --g500: #555;
  --rack-led: #171717;
  --page-bg: #ededea;
  --panel: #f5f5f2;
  --panel-raised: #e5e5e1;
  --panel-deep: #dcdcd8;
  --foreground: #161616;
  --secondary: #363636;
  --tertiary: #737373;
  --stroke: #00000025;
  --stroke-strong: #00000055;
  --inverse: #f4f4f1;
  --nav-glass: #ededeaec;
  --scene-halo: rgba(113, 37, 61, .1);
  --scene-grid: #0000000c;
  --object-fallback: #242424;
  --body-muted: #555;
  --wine: #692238;
  --wine-deep: #411525;
  --wine-lit: #692238;
  --wine-wash: rgba(105, 34, 56, .09);
  --wine-edge: rgba(105, 34, 56, .32);
}
html { background: var(--page-bg); scroll-behavior: smooth; }
body { background: var(--page-bg); color: var(--foreground); transition: background-color .25s, color .25s; }
::selection { background: var(--foreground); color: var(--page-bg); }
:focus-visible { outline: 2px solid var(--foreground); outline-offset: 4px; }

/* Controls */
.nav { background: var(--nav-glass); border-color: var(--stroke); backdrop-filter: blur(20px); }
.nav__link, .mobile-nav__link, .nav__cta { color: var(--secondary); }
.nav__link.active::after { background: var(--foreground); }
.nav__cta { border-color: var(--stroke-strong); border-radius: 0; }
.nav__cta:hover { background: var(--foreground); color: var(--page-bg); }
.nav__logo, .brand-wordmark, .footer__brand-logo .brand-mark { filter: grayscale(1); }
html[data-theme="light"] .nav__logo .brand-mark,
html[data-theme="light"] .nav__logo .brand-wordmark,
html[data-theme="light"] .footer__brand-logo .brand-mark,
html[data-theme="light"] .footer__brand-logo .brand-wordmark {
  filter: grayscale(1) invert(1);
  mix-blend-mode: multiply;
}
.mobile-nav { background: var(--page-bg); color: var(--foreground); }
.nav__burger-line { background: var(--foreground); }
.nav__right { gap: clamp(8px, 1.1vw, 18px); }
.language-switch { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border: 1px solid var(--stroke); }
.language-switch button {
  display: grid;
  place-items: center;
  min-width: 30px;
  min-height: 30px;
  padding: 0 5px;
  color: var(--tertiary);
  font: 550 .7rem/1 var(--ff-mono);
  letter-spacing: .025em;
}
.language-switch button[aria-pressed="true"] { background: var(--foreground); color: var(--page-bg); }
.language-switch button:hover:not([aria-pressed="true"]) { color: var(--foreground); }
.theme-toggle {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--stroke);
  color: var(--foreground);
}
.theme-toggle:hover { background: var(--panel-raised); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-icon--dark { display: none; }
html[data-theme="light"] .theme-icon--light { display: none; }
html[data-theme="light"] .theme-icon--dark { display: block; }

/* Hero: type, real-time surface, no campaign copy. */
.hero {
  position: relative;
  display: grid;
  min-height: clamp(600px, calc(100svh - var(--nav-h)), 900px);
  isolation: isolate;
  overflow: clip;
  border-bottom: 1px solid var(--stroke);
  background: radial-gradient(ellipse 46% 67% at 73% 49%, var(--scene-halo), transparent 76%), var(--page-bg);
}
.hero::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: '';
  pointer-events: none;
  opacity: .65;
  background:
    linear-gradient(90deg, transparent calc(50% - .5px), var(--scene-grid) 50%, transparent calc(50% + .5px)),
    linear-gradient(0deg, transparent calc(21% - .5px), var(--scene-grid) 21%, transparent calc(21% + .5px));
  mask-image: linear-gradient(90deg, transparent 14%, #000 50%, #000 92%);
}
.hero__visual {
  position: absolute;
  z-index: 0;
  inset: 0 0 0 31%;
  overflow: hidden;
  background: radial-gradient(ellipse 48% 58% at 58% 50%, var(--scene-halo), transparent 75%);
}
.hero__visual::before, .hero__visual::after { display: none; }
.hero__mass-fallback {
  position: absolute;
  top: 50%;
  left: 52%;
  width: clamp(16rem, 34vw, 34rem);
  aspect-ratio: 1;
  border: 1px solid var(--stroke-strong);
  border-radius: 64% 36% 31% 69% / 48% 42% 58% 52%;
  background:
    radial-gradient(ellipse at 31% 25%, #fff 0%, #dedede 7%, #9c9c9c 18%, #515151 41%, #171717 63%, transparent 74%);
  box-shadow: inset 10px 8px 26px #ffffff35, inset -26px -26px 56px #000b, 0 0 100px var(--scene-halo);
  opacity: .8;
  transform: translate(-50%, -50%);
  animation: fallback-turn 11s ease-in-out infinite alternate;
  pointer-events: none;
}
.hero__mass-fallback::before, .hero__mass-fallback::after {
  position: absolute;
  inset: 0;
  border: 1px solid var(--stroke);
  border-radius: inherit;
  content: '';
}
.hero__mass-fallback::before { inset: 8%; transform: rotate(31deg) scaleX(.86); }
.hero__mass-fallback::after { inset: -8%; transform: rotate(-26deg) scaleY(.77); }
@keyframes fallback-turn { to { transform: translate(-50%, -50%) rotate(15deg) scale(.96); } }
html.mass-ready .hero__mass-fallback { opacity: 0; animation: none; }
.hero__canvas {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  touch-action: pan-y;
  cursor: grab;
  opacity: 0;
  pointer-events: none;
  outline: 0;
}
html.mass-ready .hero__canvas { opacity: 1; pointer-events: auto; }
.hero__canvas:focus-visible { outline: 2px solid var(--wine-lit); outline-offset: -5px; }
.hero__canvas:active { cursor: grabbing; }
.hero__layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
  align-items: center;
  width: min(100%, var(--max-w));
  min-height: inherit;
  margin-inline: auto;
  padding-block: clamp(4rem, 9vh, 8rem);
  pointer-events: none;
}
.hero__content { grid-column: 1; max-width: 740px; min-width: 0; pointer-events: auto; }
.hero__title {
  max-width: 100%;
  margin: 0 0 0 -.075em;
  color: var(--foreground);
  font: 620 clamp(4.1rem, 10vw, 9.5rem)/.84 var(--ff-display);
  letter-spacing: -.095em;
  text-wrap: nowrap;
}
.hero__title span { display: block; white-space: nowrap; }
.hero__sub {
  max-width: 40ch;
  margin-top: clamp(1.5rem, 2.3vw, 2.25rem);
  color: var(--secondary);
  font-size: clamp(.94rem, 1.12vw, 1.08rem);
  line-height: 1.55;
  letter-spacing: .01em;
}
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.35rem; margin-top: 1.6rem; }
.hero__actions .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  padding: .65rem 1.05rem;
  border: 1px solid var(--foreground);
  border-radius: 0;
  background: var(--foreground);
  color: var(--page-bg);
  font-size: .84rem;
}
.hero__actions .btn:hover { border-color: var(--secondary); background: var(--secondary); }
.hero__projects {
  display: inline-flex;
  align-items: center;
  min-height: 43px;
  color: var(--foreground);
  font-size: .86rem;
  text-decoration: underline;
  text-decoration-color: var(--tertiary);
  text-underline-offset: .35em;
}

/* Consistent surfaces across the existing sections. */
.heading-lg, .contact__title { color: var(--foreground); font-weight: 520; letter-spacing: -.055em; }
.section__index { color: var(--tertiary); }
.portfolio, .about, .experiments, .process, .contact, .footer { background: var(--page-bg); color: var(--foreground); }
.portfolio, .experiments { border-color: var(--stroke); }
.project-type, .record-project__credit, .work-link, .contact__item, .contact__item svg, .contact__item a { color: var(--secondary); }
.project-title, .service__title, .experiment__name { color: var(--foreground); }
.project-text, .event-archive time, .services__intro p, .service__desc, .process__desc, .contact__desc { color: var(--muted); }
.record-project__cover { filter: grayscale(1); border-color: var(--stroke); }
.event-project, .event-archive, .event-archive li, .event-archive a,
.services__grid, .service, .process__grid, .process__step { border-color: var(--stroke); }
.event-archive a:hover > span { color: var(--foreground); }
.track { background: var(--panel); border-color: var(--stroke); }
.track__visual { min-height: 490px; background: var(--panel-raised); }
.track__body { background: var(--panel); }
.track__artist { color: var(--secondary); }
.track__tags span { border-color: var(--stroke); color: var(--secondary); }
.play-btn { border-color: var(--foreground); background: var(--foreground); color: var(--page-bg); }
.track__progress-fill, .track__progress-bar::before { background-color: var(--foreground); }
.services { --bg: var(--page-bg); --text: var(--foreground); --muted: var(--body-muted); --accent: var(--foreground); background: var(--panel); color: var(--foreground); border-block: 1px solid var(--stroke); }
.service__icon, .process__step-dot { color: var(--tertiary); }
.service__title { font-weight: 520; }
.service__link { color: var(--foreground); text-decoration-color: var(--tertiary); }
.process { background: var(--panel); }
.contact { background: var(--page-bg); }
.form-input, .form textarea, .form select { background: var(--panel); border-color: var(--stroke-strong); color: var(--foreground); }
.form-input::placeholder, .form textarea::placeholder, .form-note { color: var(--tertiary); }
.form .btn { background: var(--foreground); border-color: var(--foreground); color: var(--page-bg); border-radius: 0; }
.form .btn:hover { background: var(--secondary); }
.form-error, .form-success { color: var(--foreground); border-color: var(--stroke-strong); }
.footer { background: var(--panel-deep); }
.footer__tagline, .footer__links, .footer__bottom { color: var(--muted); }
.footer__bottom { border-color: var(--stroke); }
.footer__social-icon { border-color: var(--stroke-strong); }
.footer__social-icon:hover { background: var(--foreground); color: var(--page-bg); }
.sound-dock { background: var(--panel-raised); border-color: var(--stroke-strong); color: var(--foreground); border-radius: 0; }
.sound-dock__signal i { background: var(--foreground); }
.sound-dock__link, .sound-dock button { color: var(--foreground); }

/* The Beat Lab stays a tool inside the studio. */
.experiments { border-top: 1px solid var(--stroke); }
.experiments__heading { color: var(--foreground); font-weight: 520; }
.experiment { border-color: var(--stroke); }
.experiment__description { color: var(--muted); }
.experiment > summary:hover .experiment__name { color: var(--foreground); }
.experiment__body { filter: grayscale(1); }
.beat-lab {
  --rack-led: var(--foreground);
  --rack-text: var(--foreground);
  --rack-muted: var(--muted);
  color: var(--foreground);
  background: repeating-linear-gradient(0deg, var(--scene-grid) 0 1px, transparent 1px 4px), var(--panel);
}
.beat-lab__header { background: var(--panel-raised); border-color: var(--stroke-strong); }
.preset-picker .mono { color: var(--secondary); }
.beat-cell, .beat-cell.alt-beat { background: var(--panel-raised); border-color: var(--stroke-strong); }
.beat-cell.is-on { background: var(--foreground); border-color: var(--foreground); color: var(--page-bg); }
.beat-cell.is-on::before { background: var(--page-bg); }
.live-pads button { background: var(--panel-raised); border-color: var(--stroke-strong); box-shadow: inset 0 1px var(--scene-grid), 0 3px var(--panel-deep); }
.live-pads button::before { background: var(--tertiary); }
.live-pads button:is(:active, .is-hit, .is-sequenced) { color: var(--page-bg); background: var(--foreground); border-color: var(--foreground); }
.live-pads button:is(:active, .is-hit, .is-sequenced) kbd { color: var(--page-bg); }
.about__visual { background: radial-gradient(ellipse, var(--panel-raised), transparent 65%); border-color: var(--stroke); }
.about__visual figcaption { color: var(--foreground); background: linear-gradient(transparent, var(--page-bg)); }
#tapeCanvas { filter: none; }

@media (max-width: 900px) {
  .hero { min-height: clamp(570px, calc(100svh - var(--nav-h)), 780px); }
  .hero__title { font-size: clamp(4.4rem, 10.5vw, 7.8rem); }
}
@media (max-width: 800px) {
  .nav__links { display: none; }
  .nav__burger { display: flex; }
}
@media (max-width: 760px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(245px, 40svh) auto;
    min-height: unset;
  }
  .hero__layout {
    grid-column: 1;
    grid-row: 1;
    grid-template-columns: minmax(0, 1fr);
    min-height: unset;
    padding: clamp(3.3rem, 9vw, 4.4rem) 22px 1rem;
  }
  .hero__content { grid-column: 1; }
  .hero__visual {
    position: relative;
    inset: auto;
    grid-column: 1;
    grid-row: 2;
    min-height: 0;
  }
  .hero__mass-fallback { left: 50%; width: min(74vw, 24rem); }
  .hero__title { font-size: clamp(3.7rem, 12vw, 5.5rem); }
  .hero__sub { max-width: 34ch; margin-top: 1.25rem; }
  .hero__actions { margin-top: 1.2rem; }
  .track__visual { min-height: 390px; }
}
@media (max-width: 560px) {
  .nav__inner { gap: 7px; padding-inline: 16px; }
  .nav__right { gap: 5px; }
  .nav__cta { display: none; }
  .nav__burger { width: 36px; }
  .nav__logo { gap: 6px; }
  .brand-wordmark { width: 78px; }
  .brand-mark { width: 31px; }
  .language-switch { gap: 1px; padding: 2px; }
  .language-switch button { min-width: 25px; min-height: 28px; padding-inline: 3px; font-size: .64rem; }
  .theme-toggle { width: 32px; height: 32px; }
  .hero__title { font-size: clamp(3.45rem, 12vw, 4.6rem); }
  .hero__actions { gap: 1rem; }
  .hero__actions .btn { min-height: 40px; padding-inline: .9rem; }
  .hero__visual { min-height: 0; }
  .track { grid-template-columns: 1fr; }
  .track__visual { min-height: 0; aspect-ratio: 1.1; }
  .track__body { padding: 28px; }
}
@media (max-width: 360px) {
  .nav__inner { gap: 4px; }
  .nav__right { gap: 3px; }
  .brand-wordmark { width: 69px; }
  .language-switch button { min-width: 23px; }
  .theme-toggle { width: 30px; height: 30px; }
  .hero__title { font-size: clamp(3.2rem, 11.5vw, 3.7rem); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Darkroom signal: a restrained wine red runs through the interactive details. */
@font-face {
  font-family: 'Instrument Serif';
  src: url('../assets/fonts/instrument-serif-italic.woff2') format('woff2');
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

::selection { background: var(--wine); color: #fff; }
:focus-visible { outline-color: var(--wine-lit); }
.scroll-progress__bar { background: var(--wine); }

.nav { box-shadow: 0 1px 0 var(--wine-wash); }
.nav__link.active::after { background: var(--wine-lit); height: 2px; }
.nav__cta { transition: color .22s, background .22s, border-color .22s, box-shadow .22s; }
.nav__cta:hover { border-color: var(--wine); background: var(--wine); color: #fff; box-shadow: 0 5px 24px var(--wine-wash); }
.language-switch button[aria-pressed="true"] { background: var(--wine); color: #fff; }
.language-switch button:hover:not([aria-pressed="true"]) { color: var(--wine-lit); }
.theme-toggle:hover { border-color: var(--wine-edge); color: var(--wine-lit); }

.hero {
  background:
    radial-gradient(ellipse 25% 55% at 74% 48%, var(--wine-wash), transparent 100%),
    radial-gradient(ellipse 48% 67% at 73% 49%, var(--scene-halo), transparent 76%),
    var(--page-bg);
}
.hero::before {
  background:
    linear-gradient(90deg, transparent calc(50% - .5px), var(--scene-grid) 50%, transparent calc(50% + .5px)),
    linear-gradient(0deg, transparent calc(21% - .5px), var(--scene-grid) 21%, transparent calc(21% + .5px)),
    radial-gradient(ellipse 20% 46% at 76% 52%, var(--wine-wash), transparent 100%);
}
.hero__visual { isolation: isolate; }
.hero__visual::before,
.hero__visual::after {
  display: block;
  position: absolute;
  top: 50%;
  left: 53%;
  width: min(61vw, 46rem);
  aspect-ratio: 1;
  border: 1px solid var(--wine-edge);
  border-radius: 50%;
  content: '';
  pointer-events: none;
  z-index: 0;
  transform: translate(-50%, -50%) scaleX(.62) rotate(-24deg);
  opacity: .72;
}
.hero__visual::after {
  width: min(50vw, 38rem);
  border-color: var(--stroke);
  border-left-color: var(--wine-lit);
  border-right-color: transparent;
  transform: translate(-50%, -50%) scaleX(.76) rotate(34deg);
  opacity: .5;
  display: none;
}
.hero__mass-fallback {
  z-index: 0;
  background:
    radial-gradient(ellipse at 73% 78%, rgba(89, 25, 44, .68) 0%, transparent 35%),
    radial-gradient(ellipse at 31% 25%, #fff 0%, #dedede 7%, #9c9c9c 18%, #515151 41%, #171717 63%, transparent 74%);
}
.hero__title {
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: clamp(6rem, 11.5vw, 11.2rem);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -.07em;
  line-height: .78;
  text-shadow: 0 8px 40px rgba(91, 20, 41, .18);
}
.hero__sub {
  display: flex;
  align-items: center;
  gap: 13px;
  max-width: 42ch;
  font-size: .84rem;
  letter-spacing: .075em;
  text-transform: uppercase;
}
.hero__sub::before { content: ''; flex: 0 0 24px; height: 1px; background: var(--wine-lit); }
.hero__actions .btn {
  border-color: var(--wine);
  background: var(--wine);
  color: #fff;
  box-shadow: 0 8px 26px rgba(68, 13, 30, .25);
}
.hero__actions .btn:hover { border-color: var(--wine-lit); background: var(--wine-deep); color: #fff; }
.hero__projects { text-decoration-color: var(--wine-lit); text-decoration-thickness: 1px; }
.hero__projects:hover { color: var(--wine-lit); }
.hero__sound {
  position: absolute;
  right: max(5vw, calc((100% - var(--max-w)) / 2 + 4rem));
  bottom: clamp(1.5rem, 4vh, 3rem);
  z-index: 3;
  width: min(19rem, 36vw);
  border: 1px solid var(--stroke);
  border-left: 2px solid var(--wine);
  background: var(--nav-glass);
}
.hero__transport {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .75rem;
  padding-right: .85rem;
}
.hero__listen { display: grid; place-items: center; width: 48px; height: 48px; border-right: 1px solid var(--stroke); color: var(--wine-lit); }
.hero__listen svg { width: 20px; height: 20px; }
.hero__listen:is(:hover, [aria-pressed="true"]) { background: var(--wine-wash); }
.hero__listen .listen-pause, .hero__listen[aria-pressed="true"] .listen-play { display: none; }
.hero__listen[aria-pressed="true"] .listen-pause { display: inline; }
.hero__track { display: flex; align-items: center; min-height: 44px; font-size: .9rem; font-weight: 550; }
.hero__track:hover { text-decoration: underline; text-decoration-color: var(--wine-lit); text-underline-offset: .24em; }
.hero__track-length { color: var(--secondary); font: .78rem var(--ff-mono); }
.hero__sound .audio-feedback { margin: 0; padding: .35rem .75rem .6rem; }
.hero.is-listening .hero__visual::before { opacity: 1; box-shadow: 0 0 54px var(--wine-wash); }

.section__index {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--wine-lit);
}
.section__index::before { content: ''; width: 22px; height: 1px; background: currentColor; }
.heading-lg, .contact__title { text-wrap: balance; }
.project-type { color: var(--wine-lit); }
.work-link, .service__link, .about__link { text-decoration-color: var(--wine-lit); text-underline-offset: .28em; }
.work-link:hover, .service__link:hover, .about__link:hover, .contact__item a:hover { color: var(--wine-lit); }
.event-archive a:hover > span { color: var(--wine-lit); }
.event-archive a > span { text-decoration-color: var(--wine-edge); }
.event-archive { position: relative; border-top-color: var(--wine-edge); }
.event-archive::before { position: absolute; top: 0; bottom: 0; left: 1px; width: 1px; background: linear-gradient(transparent, var(--wine-edge) 12%, var(--wine-edge) 88%, transparent); content: ''; }
.event-archive li { position: relative; }
.event-archive li::before { position: absolute; z-index: 1; top: 50%; left: -1px; width: 4px; height: 4px; border-radius: 50%; background: var(--wine-lit); content: ''; transform: translate(-50%, -50%); }
.event-archive a { padding-left: 14px; }

.record-project__cover { filter: grayscale(.76) contrast(1.06); border-color: var(--wine-edge); box-shadow: 0 14px 42px rgba(0, 0, 0, .35); }
.event-project { border-left-color: var(--wine-edge); }
.track__visual {
  background:
    radial-gradient(ellipse at 62% 36%, #452433, transparent 65%),
    radial-gradient(ellipse at 18% 83%, #22141a, transparent 50%),
    #0b0a0b;
}
.track__visual::after {
  position: absolute;
  inset: 0;
  content: '';
  pointer-events: none;
  background: linear-gradient(0deg, #0b0a0bf2, transparent 46%);
}
.track__grooves {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  visibility: hidden;
}
.track__visual.has-grooves .track__grooves { visibility: visible; }
.track__visual.has-grooves .vinyl { visibility: hidden; animation: none; }
.track__cover-label, .track__cover-number, .track__cover-title {
  z-index: 1;
  left: 7%;
}
.track__cover-label, .track__cover-number { color: #d2c4c8; }
.track__cover-label { top: 6%; }
.track__cover-number { bottom: 5%; }
.track__cover-title {
  color: #f5f0f1;
  bottom: 13%;
  font-size: clamp(1.7rem, 9.4cqw, 5.25rem);
}
.vinyl {
  left: 30%;
  top: 44%;
  width: 54%;
  background:
    repeating-radial-gradient(circle, transparent 0 1px, #d0a1ad19 1.3px 1.6px, transparent 1.9px 2.5px),
    conic-gradient(from 14deg, #171417, #30202a 25deg, #684453 48deg, #282027 66deg, #141114 103deg, #39212d 141deg, #49313b 181deg, #1b171b 221deg, #674956 253deg, #282027 280deg, #171417);
}
.vinyl span { background: radial-gradient(circle, #1b1418 0 3%, #bd788b 3.5% 5%, #713246 5.5% 37%, #48232f 38% 38.7%, #875161 39% 100%); }
.track__cover-title em { color: #b77487; }
.track { border-color: var(--wine-edge); box-shadow: inset 0 1px var(--scene-grid), 0 18px 50px rgba(0, 0, 0, .18); }
.play-btn, .form .btn { background: var(--wine); border-color: var(--wine); color: #fff; }
.play-btn:hover, .form .btn:hover { background: var(--wine-deep); border-color: var(--wine-lit); color: #fff; }
.track__progress-fill, .track__progress-bar::before { background-color: var(--wine); }

.services { --accent: var(--wine); }
.service { position: relative; transition: border-color .2s, background .2s; }
.service::before {
  position: absolute;
  top: -1px;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--wine);
  content: '';
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.service:hover::before { transform: scaleX(1); }
.service__icon, .process__step-dot { color: var(--wine-lit); }
.service__link { color: var(--foreground); }
.service__link:hover { color: var(--wine-lit); }
.form-input:focus, .form textarea:focus, .form select:focus { border-color: var(--wine-lit); box-shadow: 0 0 0 1px var(--wine); }
.form-error, .form-success { border-color: var(--wine-edge); }
.form-error { color: var(--wine-lit); }
.form .btn { box-shadow: 0 8px 28px rgba(66, 13, 29, .22); }
.form .btn:hover { background: var(--wine-deep); }

.experiments { border-top-color: var(--wine-edge); }
.experiment > summary:hover .experiment__name { color: var(--wine-lit); }
.experiment[open] > summary .experiment__name { color: var(--wine-lit); }
.experiment__body { filter: none; }
.beat-lab {
  --rack-led: var(--wine-lit);
  --rack-muted: #aaa0a2;
  --rack-text: #f2edef;
  --metal-rule: #3b252c;
  border-color: var(--wine-edge);
  background: repeating-linear-gradient(0deg, #ffffff03 0 1px, transparent 1px 3px), linear-gradient(115deg, #191416 0%, #21191c 22%, #111011 57%, #1c1518 88%, #100e0f);
  box-shadow: inset 0 1px #7b626a55, inset 0 -1px #050405, 0 3px 0 #24191d, 0 7px 0 #0c090a, 0 20px 46px #000a;
}
.beat-lab :focus-visible, .sequence-panel :focus-visible { outline-color: var(--wine-lit); }
.lab-monitor {
  background: repeating-linear-gradient(90deg, transparent 0 17px, #70243a22 17px 18px), repeating-linear-gradient(0deg, transparent 0 10px, #70243a18 10px 11px), #0b090a;
}
.step-display strong { color: #c1b7ba; }
.beat-lab:has(.beat-transport.is-active) .step-display strong { color: var(--wine-lit); }
.beat-transport.btn { color: #f2eaed; background: linear-gradient(#35252c, #21191d); border-color: #76515e; }
.beat-transport.btn:hover { background: #422531; }
.beat-transport.btn.is-active { color: #fff; background: var(--wine); border-color: var(--wine-lit); }
.sequence-panel { border-color: #49323a; background: linear-gradient(145deg, #0a090a, #100d0f 68%, #110d0f); }
.beat-grid__ruler .is-current { background-color: var(--wine); color: #fff; }
.beat-grid__row { --voice: #713047; --voice-edge: #451c2b; }
.beat-grid__row[data-voice="clap"] { --voice: #a6959a; --voice-edge: #695b60; }
.beat-grid__row[data-voice="hat"] { --voice: #805365; --voice-edge: #4f3440; }
.beat-grid__row[data-voice="bass"] { --voice: #542033; --voice-edge: #351321; }
.beat-grid__row.is-muted[data-voice] { --voice: #71666a; --voice-edge: #443c3f; }
.beat-cell.is-on { background: var(--wine); border-color: var(--wine); color: #fff; box-shadow: inset 0 1px #ffffff38, inset 0 -3px var(--wine-deep), 0 1px #070509; }
.beat-cell.is-on::before { background: #27151c; }
.beat-cell:hover { border-color: var(--wine-lit); }
.beat-cell.is-current::after { border-color: var(--wine-lit); }
.beat-cell.is-on.is-current::after { border-color: #421526; }
.live-pads button::before { background: #835166; }
.live-pads button:hover { background: #35232a; }
.live-pads button:active, .live-pads button.is-hit, .live-pads button.is-sequenced { color: #fff; background: #65243a; border-color: #b36a80; box-shadow: inset 0 1px #d8a4b333, 0 1px #0d0911; }
.live-pads button:is(:active, .is-hit, .is-sequenced)::before { background: #e0a1b2; box-shadow: 0 0 6px #b74c6b88; }
.live-pads button:is(:active, .is-hit, .is-sequenced) kbd { color: #f2dce2; }
.beat-control input { accent-color: var(--wine-lit); }
.beat-control input::-webkit-slider-thumb { background: #d2a4b0; border-color: #321720; }
.beat-control input::-moz-range-thumb { background: #d2a4b0; border-color: #321720; }
.beat-control output, .beat-lab .hero__beat-status.is-active .status-dot { color: var(--wine-lit); }
.beat-lab .hero__beat-status.is-active .status-dot { background: var(--wine-lit); box-shadow: 0 0 7px #a8445d88; }
.lab-advanced summary:hover { background: var(--wine-wash); }

.sound-dock { border-color: var(--wine-edge); box-shadow: 0 10px 50px #0008, 0 0 28px rgba(76, 20, 38, .16); }
.sound-dock__signal i { background: var(--wine-lit); }
.footer__social-icon:hover { background: var(--wine); color: #fff; border-color: var(--wine); }
.footer__bottom { border-color: var(--wine-edge); }

html[data-theme="light"] .hero__title { text-shadow: 0 8px 32px rgba(105, 34, 56, .1); }
html[data-theme="light"] .beat-lab {
  --rack-muted: #62585b;
  --rack-text: #241a1e;
  background: repeating-linear-gradient(0deg, #241a1e06 0 1px, transparent 1px 3px), linear-gradient(115deg, #ece7e7 0%, #f5f1f1 24%, #e8e3e4 60%, #f1ebed 90%);
  border-color: #9e7f88;
  box-shadow: inset 0 1px #fff, inset 0 -1px #c4b7bb, 0 3px 0 #d0c4c7, 0 7px 0 #e3dcde, 0 20px 46px #2a151b18;
}
html[data-theme="light"] .sequence-panel { color: #241a1e; background: linear-gradient(145deg, #faf8f8, #f0ebed 68%, #ebe5e7); border-color: #c7b5bb; box-shadow: inset 0 2px 8px #8c777d22, 0 1px #fff; }
html[data-theme="light"] .beat-cell { background: #e4dfe0; border-color: #a99b9f; box-shadow: inset 0 1px #ffffffa6, 0 1px #c9bfc1; }
html[data-theme="light"] .beat-cell.alt-beat { background: #d8d0d2; }
html[data-theme="light"] .live-pads button { color: #291e22; background: linear-gradient(160deg, #f7f2f3, #e4dcde 70%); border-color: #9d858c; box-shadow: inset 0 1px #fff, 0 3px #c6babe; }
html[data-theme="light"] .live-pads kbd { color: #62585b; }
html[data-theme="light"] .beat-transport.btn { color: #2c2024; background: linear-gradient(#f8f3f4, #ded5d8); border-color: #9d7f88; box-shadow: 0 3px #c3b3b8, inset 0 1px #fff; }
html[data-theme="light"] .beat-transport.btn:hover { background: #eadde1; }
html[data-theme="light"] .beat-transport.btn.is-active { color: #fff; background: var(--wine); border-color: var(--wine-lit); }
html[data-theme="light"] .lab-advanced .beat-select { background-color: #f8f4f5; border-color: #ac969d; color: #241a1e; }
html[data-theme="light"] .beat-cell.is-on { color: #fff; }

@media (max-width: 900px) {
  .hero__title { font-size: clamp(5.7rem, 12.5vw, 9rem); }
}
@media (max-width: 760px) {
  .hero__title { font-size: clamp(4.7rem, 16vw, 7rem); }
  .hero__visual::before { width: min(90vw, 34rem); }
  .hero__visual::after { width: min(76vw, 29rem); }
  .hero__sub { font-size: .76rem; letter-spacing: .045em; }
  .hero__sound {
    position: relative;
    inset: auto;
    grid-column: 1;
    grid-row: 3;
    justify-self: center;
    width: min(24rem, calc(100% - 44px));
    margin-bottom: 1.4rem;
  }
}
@media (max-width: 560px) {
  .hero__title { font-size: clamp(4.35rem, 17.8vw, 5.8rem); }
  .hero__sub { align-items: flex-start; gap: 9px; max-width: 34ch; }
  .hero__sub::before { flex-basis: 16px; margin-top: .7em; }
}
@media (max-width: 360px) {
  .hero__title { font-size: 4.05rem; }
}
