/* Local styles for the interactive sound desk. */
.sound-studio {
  --sound-energy: 0;
  --sound-turn: 0deg;
  --sound-paper: #f2eee8;
  --sound-amber: #d6a544;
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(285px, 1fr);
  isolation: isolate;
  overflow: hidden;
  min-width: 0;
  border: 1px solid rgb(242 238 232 / .16);
  background: #111112;
  color: var(--sound-paper);
  font-family: var(--sans, Manrope, sans-serif);
}
.sound-studio *, .sound-studio *::before, .sound-studio *::after { box-sizing: border-box; }
.sound-studio button, .sound-studio input { -webkit-tap-highlight-color: transparent; }
.sound-studio button { font: inherit; }
.sound-studio button:focus-visible, .sound-studio input:focus-visible { outline: 2px solid var(--sound-amber); outline-offset: 5px; }
.sound-studio button:disabled { opacity: .5; cursor: not-allowed; }
.sound-sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sound-scene {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 540px;
  overflow: hidden;
  padding: 28px 30px 32px;
  background: radial-gradient(ellipse at 75% 45%, rgb(214 165 68 / .055), transparent 65%), #101011;
}
.sound-scene::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .35;
  background-image: linear-gradient(rgb(242 238 232 / .07) 1px, transparent 1px), linear-gradient(90deg, rgb(242 238 232 / .07) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: linear-gradient(115deg, transparent, #000);
}
.sound-scene-top, .sound-scene-bottom {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: #a29c94;
  font-family: var(--ui, 'Space Grotesk', sans-serif);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: .09em;
}
.sound-scene-top > :first-child { color: var(--sound-amber); }
.sound-scene-top > :last-child { text-align: right; }
.sound-scene-bottom { font-size: 9px; letter-spacing: .045em; }
.sound-scene-state { display: inline-flex; align-items: center; gap: 8px; }
.sound-scene-state i { width: 5px; height: 5px; border-radius: 50%; background: #6f6961; }
.sound-studio--playing .sound-scene-state i { background: var(--sound-amber); box-shadow: 0 0 12px rgb(214 165 68 / .35); }
.sound-time { font-variant-numeric: tabular-nums; white-space: nowrap; }
.sound-hero-type {
  position: relative;
  z-index: 2;
  padding-block: 35px 43px;
  font-family: var(--ui, 'Space Grotesk', sans-serif);
  font-size: clamp(74px, 8.7vw, 140px);
  font-weight: 500;
  line-height: .84;
  letter-spacing: -.075em;
  pointer-events: none;
}
.sound-hero-type > span { display: block; }
.sound-hero-type > span:last-child { margin-top: .09em; }
.sound-hero-type em { color: var(--sound-amber); font-family: var(--serif, Georgia, serif); font-weight: 400; letter-spacing: -.065em; }
.sound-wave { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1; }
.sound-orbits {
  position: absolute;
  z-index: 1;
  width: 54%;
  aspect-ratio: 1;
  right: -9%;
  top: 23%;
  transform: rotate(var(--sound-turn)) scale(calc(1 + var(--sound-energy) * .09));
  pointer-events: none;
}
.sound-orbits > i { position: absolute; inset: 0; border: 1px solid rgb(214 165 68 / .33); border-radius: 50%; }
.sound-orbits > i:nth-child(2) { inset: 14%; border-color: rgb(214 165 68 / .21); }
.sound-orbits > i:nth-child(3) { inset: 28%; border-color: rgb(214 165 68 / .14); }
.sound-orbits::before, .sound-orbits::after { content: ''; position: absolute; left: -10%; right: -10%; top: 50%; height: 1px; background: rgb(214 165 68 / .18); }
.sound-orbits::after { transform: rotate(90deg); }
.sound-orbit-core { position: absolute; left: 16%; top: 12%; width: 9px; height: 9px; background: var(--sound-amber); border-radius: 50%; box-shadow: 0 0 0 5px rgb(214 165 68 / .08); }
.sound-timeline { position: absolute; inset: auto 0 0; height: 12px; border-top: 1px solid rgb(242 238 232 / .12); background: repeating-linear-gradient(90deg, transparent 0 calc(6.25% - 1px), rgb(242 238 232 / .16) calc(6.25% - 1px) 6.25%); }
.sound-timeline > span { position: absolute; inset: 0; transform: scaleX(0); transform-origin: left; background: rgb(214 165 68 / .3); border-right: 2px solid var(--sound-amber); }
.sound-desk { min-width: 0; display: flex; flex-direction: column; border-left: 1px solid rgb(242 238 232 / .14); padding: 27px 28px 23px; background: #171718; }
.sound-desk-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 15px; padding-bottom: 23px; border-bottom: 1px solid rgb(242 238 232 / .14); }
.sound-desk-heading p { margin: 0; font-family: var(--ui, 'Space Grotesk', sans-serif); font-weight: 500; font-size: 24px; letter-spacing: -.05em; }
.sound-tracks { margin-block: 4px 20px; }
.sound-track { --sound-track-color: #d6a544; padding-top: 21px; }
.sound-track--atmosphere { --sound-track-color: #4fb8ad; }
.sound-track--details { --sound-track-color: #a99cce; }
.sound-track-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sound-track-heading label { display: flex; align-items: baseline; gap: 9px; font-family: var(--ui, 'Space Grotesk', sans-serif); font-size: 14px; font-weight: 500; line-height: 1.5; cursor: pointer; }
.sound-track-heading p { margin: 1px 0 0; color: #99948d; font-size: 10px; line-height: 1.6; }
.sound-mute { display: grid; place-items: center; width: 38px; height: 38px; flex-shrink: 0; padding: 9px; border: 1px solid transparent; border-radius: 3px; background: transparent; color: #a29c94; cursor: pointer; transition: color .2s, background .2s, border-color .2s; }
.sound-mute svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.sound-speaker-cross { display: none; }
.sound-mute:hover { color: var(--sound-paper); background: rgb(242 238 232 / .05); }
.sound-mute[aria-pressed="true"] { border-color: rgb(242 238 232 / .14); color: var(--sound-paper); background: rgb(242 238 232 / .06); }
.sound-mute[aria-pressed="true"] .sound-speaker-waves { display: none; }
.sound-mute[aria-pressed="true"] .sound-speaker-cross { display: block; }
.sound-fader { display: flex; align-items: center; gap: 15px; margin-top: 9px; }
.sound-fader input { appearance: none; -webkit-appearance: none; flex: 1; width: 0; min-width: 0; height: 28px; margin: 0; border: 0; border-radius: 0; background: transparent; color: var(--sound-track-color); cursor: pointer; }
.sound-fader input::-webkit-slider-runnable-track { height: 3px; background: linear-gradient(to right, var(--sound-track-color) var(--sound-value), #3b3a37 var(--sound-value)); }
.sound-fader input::-moz-range-track { height: 3px; background: #3b3a37; }
.sound-fader input::-moz-range-progress { height: 3px; background: var(--sound-track-color); }
.sound-fader input::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 6px; height: 16px; margin-top: -6.5px; border: none; border-radius: 1px; background: var(--sound-paper); box-shadow: 0 0 0 4px #171718; }
.sound-fader input::-moz-range-thumb { width: 6px; height: 16px; border: none; border-radius: 1px; background: var(--sound-paper); box-shadow: 0 0 0 4px #171718; }
.sound-fader output { flex: 0 0 39px; text-align: right; color: var(--sound-paper); font-family: var(--ui, 'Space Grotesk', sans-serif); font-size: 12px; font-variant-numeric: tabular-nums; }
.sound-fader output span { color: #89847e; margin-left: 2px; font-size: 9px; }
.sound-level { position: relative; height: 2px; margin: 1px 54px 0 0; overflow: hidden; background: rgb(242 238 232 / .045); }
.sound-level > span { display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: left; background: var(--sound-track-color); }
.sound-track--muted .sound-fader { opacity: .45; }
.sound-track--muted .sound-track-heading label { color: #99948d; }
.sound-transport { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 20px; border-top: 1px solid rgb(242 238 232 / .14); }
.sound-play { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 8px 0 0; border: 0; background: transparent; color: var(--sound-paper); cursor: pointer; }
.sound-play > span:last-child { font-family: var(--ui, 'Space Grotesk', sans-serif); font-size: 13px; font-weight: 500; }
.sound-play-symbol { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 3px; background: var(--sound-amber); color: #16130c; transition: background .2s; }
.sound-play-symbol svg { width: 17px; height: 17px; fill: currentColor; }
.sound-play:hover .sound-play-symbol { background: #e7b956; }
.sound-play-pause { display: none; }
.sound-studio--playing .sound-play-pause { display: block; }
.sound-studio--playing .sound-play-triangle { display: none; }
.sound-reset { display: grid; place-items: center; width: 40px; height: 40px; padding: 11px; border: 0; background: transparent; color: #99948d; cursor: pointer; }
.sound-reset svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.sound-reset:hover { color: var(--sound-paper); }
.sound-status { min-height: 2.8em; margin: 13px 0 0; color: #a29c94; font-size: 10px; line-height: 1.5; }

@media (min-width: 1400px) {
  .sound-scene { min-height: 570px; padding-inline: 38px; }
  .sound-hero-type { font-size: 150px; }
  .sound-desk { padding-inline: 34px; }
}
@media (max-width: 760px) {
  .sound-studio { grid-template-columns: minmax(0, 1fr); }
  .sound-scene { min-height: 380px; padding: 22px 24px 30px; }
  .sound-hero-type { font-size: clamp(90px, 19vw, 140px); padding-block: 25px 33px; }
  .sound-orbits { width: 47%; right: 0; top: 16%; }
  .sound-desk { border-left: 0; border-top: 1px solid rgb(242 238 232 / .14); padding: 22px 24px 18px; }
  .sound-desk-heading { padding-bottom: 15px; }
  .sound-tracks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 23px; margin-bottom: 22px; }
  .sound-track { padding-top: 16px; }
  .sound-track-heading { position: relative; display: block; }
  .sound-track-heading label { font-size: 12px; gap: 6px; }
  .sound-track-heading p { margin-left: 0; min-height: 32px; margin-top: 6px; padding-right: 0; font-size: 9px; }
  .sound-mute { margin: 4px 0 -2px -9px; }
  .sound-fader { gap: 10px; margin-top: 2px; }
  .sound-fader output { flex-basis: 30px; font-size: 11px; }
  .sound-level { margin-right: 40px; }
  .sound-status { min-height: 1.5em; }
}
@media (max-width: 440px) {
  .sound-scene { min-height: 342px; padding-inline: 20px; }
  .sound-scene-top { font-size: 8px; }
  .sound-scene-bottom { font-size: 8px; gap: 10px; }
  .sound-hero-type { font-size: clamp(83px, 25vw, 110px); }
  .sound-scene-state { gap: 6px; }
  .sound-desk { padding-inline: 20px; }
  .sound-tracks { display: block; margin-top: 0; margin-bottom: 22px; }
  .sound-track { padding-top: 15px; }
  .sound-track-heading { display: flex; }
  .sound-track-heading label { font-size: 14px; gap: 9px; }
  .sound-track-heading p { min-height: auto; margin: 1px 0 0; font-size: 10px; }
  .sound-mute { margin: 0; width: 44px; height: 44px; }
  .sound-fader { margin-top: 3px; gap: 15px; }
  .sound-fader input { height: 32px; }
  .sound-fader output { flex-basis: 39px; font-size: 12px; }
  .sound-level { margin-right: 54px; }
}
/* Phones: the live status and track notes are real content, keep them readable. */
@media (max-width: 760px) {
  .sound-status { font-size: 12px; }
  .sound-track-heading p { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .sound-studio *, .sound-studio *::before, .sound-studio *::after { transition: none !important; }
  .sound-orbits { transform: none; }
  .sound-play:hover .sound-play-symbol { transform: none; }
}
