:root {
  color-scheme: dark;
  --bg: #030811;
  --panel: #06111f;
  --text: #f5f8fb;
  --muted: #94a7bb;
  --line: rgba(119,166,216,.19);
  --blue: #2f91ff;
  --cyan: #5ed6ff;
  --gutter: clamp(24px, 4.4vw, 96px);
  --header-height: clamp(62px, min(5.3vw, 10dvh), 104px);
  font: 16px/1.5 Inter, "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  background: var(--bg);
}
.site-header {
  position: sticky; top: 0; z-index: 3;
  flex: none;
  min-height: var(--header-height);
  display: grid; grid-template-columns: minmax(155px,1fr) auto minmax(110px,1fr);
  align-items: center; gap: 18px; padding: clamp(6px, 1.2dvh, 12px) var(--gutter);
  background: #050a12; border-bottom: 1px solid var(--line);
}
.brand { width: clamp(160px, 17vw, 326px); display: block; }
.brand img { display: block; width: 100%; height: auto; }
.top-nav,.languages { display: flex; align-items: center; }
.top-nav { justify-content: center; }
.top-nav a {
  color: #8ba3b9; text-decoration: none; text-transform: uppercase;
  font-size: clamp(.66rem,.78vw,.875rem); font-weight: 750; letter-spacing: .1em;
  padding: 10px clamp(7px,1vw,20px); white-space: nowrap; position: relative;
}
.top-nav a + a::before,.languages button + button::before { position: absolute; left: 0; color: #476482; }
.top-nav a + a::before { content: "|"; font-weight: 400; }
.top-nav a:hover { color: var(--text); }
.top-nav a[aria-current] { color: var(--cyan); }
.languages { justify-self: end; }
.site-header .languages button {
  position: relative; min-width: 32px; padding: 6px 9px; color: #8ba3b9;
  font-weight: 500; letter-spacing: .1em; background: transparent; border: 0;
}
.site-header .languages button[aria-pressed="true"],.site-header .languages button:hover { color: var(--text); }
.languages button + button::before { content: "·"; }
.power {
  isolation: isolate; position: relative; flex: 1;
  display: grid; grid-template-columns: minmax(0, .74fr) minmax(0, 1fr); align-items: center; align-content: center;
  gap: clamp(16px, min(4.2vw, 4.2dvh), 102px); padding: clamp(10px, 3.6dvh, 64px) var(--gutter);
  background: radial-gradient(ellipse at 14% 45%, #0b1929, transparent 66%), #060d17;
}
.studio-backdrop {
  position: absolute; inset: 0 0 0 34%; z-index: -1; overflow: hidden;
  mask-image:
    linear-gradient(90deg, transparent, #0003 13%, #000a 28%, #000 48%),
    linear-gradient(180deg, transparent, #000c 10%, #000 27%, #000 57%, #0008 79%, transparent);
  mask-composite: intersect;
}
.studio-backdrop img { width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: .68; }
.intro { min-width: 0; max-width: 700px; }
h1,h2,h3,p { margin: 0; }
.intro h1 {
  font-family: "Segoe UI Black", "Arial Black", Arial, sans-serif;
  font-size: clamp(2.65rem, min(5.15vw, 11.5dvh), 90px); line-height: .89; font-weight: 900; letter-spacing: -.05em;
}
.intro h1 .accent { color: var(--blue); display: block; }
.tagline { margin-bottom: clamp(10px, 2dvh, 20px); display: flex; align-items: center; gap: 14px; color: #a9c6e0; letter-spacing: .17em; font-size: clamp(.68rem, 1vw, .93rem); }
.tagline::before { content: ""; flex: 0 0 30px; height: 2px; background: var(--blue); }
.intro-details summary {
  width: fit-content; margin-top: 10px; padding-block: 7px;
  color: var(--cyan); font-size: .9rem; cursor: pointer;
}
.intro-details summary:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.intro-details[data-full-copy] summary { display: none; }
.intro-copy {
  margin-top: clamp(12px, 2.5dvh, 25px); display: grid; gap: clamp(5px, 1dvh, 10px);
  font-size: clamp(.93rem, min(1.15vw, 2.4dvh), 1.19rem); color: #acbed0;
  line-height: clamp(1.39em, 3.17dvh, 1.57em);
}
.intro-details:not([data-full-copy]) .intro-copy { margin-top: 6px; }
.intro-copy strong { color: var(--text); }
.intro-copy p:first-child { color: #dce8f4; }
.intro-copy p:last-child { border-top: 1px solid var(--line); margin-top: clamp(4px, .7dvh, 7px); padding-top: clamp(6px, 1.4dvh, 14px); }
.mixer {
  --action-idle: linear-gradient(180deg, #142f51, #08192e);
  --action-hover: linear-gradient(180deg, #1e4973, #102a48);
  --action-border: #459bdf;
  --action-highlight: #9edcff;
  --action-glow: #22beff60;
  --mixer-inset: clamp(7px, 1.45vw, 22px);
  --row-gap: clamp(2px, .45dvh, 5px);
  --position: 0%; min-width: 0; max-width: 1160px; scroll-margin-top: calc(var(--header-height) + 20px);
  border: 1px solid #328dde; border-radius: clamp(17px, 2.2vw, 34px); overflow: hidden;
  background: radial-gradient(ellipse at 100% 100%, #07376368, transparent 42%), #051224fa;
  box-shadow: 0 22px 64px #01050abc, 0 0 24px #268aff42, inset 0 0 25px #0c4ca052;
}
.transport {
  display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center;
  gap: clamp(6px, 1.1dvh, 12px); padding: clamp(6px, 1.3dvh, 14px) 24px clamp(6px, 1.2dvh, 12px);
  border-bottom: 1px solid #2e73b361;
  background: radial-gradient(ellipse at 74% 0%, #123b6560, transparent 72%), linear-gradient(145deg,#12315665,transparent 60%);
}
.mixer-brand { grid-column: 1/-1; display: flex; align-items: center; justify-content: center; gap: clamp(8px, 2vw, 20px); }
.mixer-brand::before,.mixer-brand::after { content: ""; flex: 1; max-width: 155px; height: 1px; background: linear-gradient(90deg, transparent, #32bafb, transparent); }
.mixer-brand img { display: block; width: clamp(108px, 12vw, 220px); height: auto; }
.track { position: relative; min-width: 0; padding-left: clamp(9px, 1vw, 16px); }
.track::before { content: ""; position: absolute; inset: 3px auto 3px 0; width: 3px; border-radius: 3px; background: #32cbfd; box-shadow: 0 0 10px #2ebcff9e; }
.track h2 { font-size: clamp(1rem, 1.65vw, 1.85rem); line-height: 1.17; letter-spacing: -.025em; overflow-wrap: anywhere; }
.track-details { display: flex; flex-wrap: wrap; align-items: center; gap: 3px 10px; margin-top: 4px; }
.track-details p { color: #a6c5e2; font-size: clamp(.76rem, 1.02vw, 1rem); line-height: 1.25; }
.track-analysis,.track-analysis div { display: flex; align-items: baseline; gap: 5px; }
.track-analysis { margin: 0; flex-wrap: wrap; }
.track-analysis div { padding: 1px 5px; border-radius: 4px; border: 1px solid #3b85b855; background: #132d456e; white-space: nowrap; font-size: .72rem; }
.track-analysis dt { color: #9dbedf; }
.track-analysis dd { margin: 0; color: #e7f6ff; font-weight: 700; }
.buy-track {
  border: 1px solid #3c92c2; border-radius: 8px; background: #113253;
  color: #b8ebff; font-size: .83rem; font-weight: 700; text-decoration: none;
}
.buy-track:hover { color: var(--text); background: #18466b; }
.controls,.stem-actions { display: flex; gap: 8px; }
button {
  font: inherit;
  font-weight: 650;
  font-size: .83rem;
  color: var(--text);
  border: 1px solid var(--line);
  background: #0d1b2e;
  border-radius: 8px;
  min-width: 50px;
  min-height: 34px;
  padding: 4px 9px;
  cursor: pointer;
}
button:focus-visible,input:focus-visible,a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
button:disabled { opacity: .55; cursor: wait; }
.mixer :is(button,input):focus-visible { outline-color: var(--action-highlight); }
.mixer button { border-color: #3f76aa; background: var(--action-idle); box-shadow: inset 0 1px #a8d6ff16; }
.mixer button[aria-pressed="true"] { color: var(--action-highlight); border-color: var(--action-border); background: var(--action-hover); }
.mixer button:hover:not(:disabled) { background: var(--action-hover); border-color: var(--action-highlight); }
.controls :is(button,.buy-track) { display: inline-flex; gap: 8px; align-items: center; justify-content: center; min-height: 42px; padding: 6px 12px; }
:is(button,.buy-track) svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#play { border-color: #4cdbff; min-width: 100px; background: linear-gradient(180deg, #079ede, #095ac3 55%, #0b3c82); font-size: .94rem; font-weight: 750; }
.mixer:not([data-playing]) #play svg { fill: currentColor; }
#play:enabled { box-shadow: 0 0 14px var(--action-glow), inset 0 1px #b3eeff99; }
#play:hover:enabled { border-color: var(--action-highlight); background: linear-gradient(180deg, #13b8ed, #0960c6 55%, #0e4d9d); }
.timeline { grid-column: 1/-1; display: flex; align-items: center; gap: 10px; font-size: .79rem; font-variant-numeric: tabular-nums; color: var(--muted); }
.timeline-track { position: relative; flex: 1; min-width: 0; margin-inline: 4px; }
.timeline-track::after { content: ""; position: absolute; left: var(--position); top: 50%; transform: translate(-50%, -50%); width: 8px; height: 8px; border-radius: 50%; background: #c5f5ff; box-shadow: 0 0 0 1px #1acaff, 0 0 8px #23baff; }
progress { display: block; width: 100%; height: 5px; border: 1px solid #407fba66; border-radius: 10px; overflow: hidden; appearance: none; background: #203d61; }
progress::-webkit-progress-bar { background: #203d61; }
progress::-webkit-progress-value { background: linear-gradient(90deg, #10c1ee, #3694f8); }
progress::-moz-progress-bar { background: linear-gradient(90deg, #10c1ee, #3694f8); }
.legend,.stem { display: grid; grid-template-columns: clamp(94px,8.5vw,144px) minmax(24px,1fr) minmax(96px,1fr) 130px; align-items: center; gap: clamp(9px,1vw,16px); padding-inline: 24px; }
.legend { margin-inline: var(--mixer-inset); padding-block: clamp(4px, 1dvh, 9px); color: #a0c1e1; font-size: .67rem; letter-spacing: .16em; text-transform: uppercase; }
.legend span:nth-child(2) { grid-column: 3; }
.legend span:last-child { text-align: right; }
#stems { display: grid; gap: var(--row-gap); padding-inline: var(--mixer-inset); }
.stem { min-height: clamp(44px, 5.9dvh, 56px); border: 1px solid #3870a754; border-radius: clamp(8px, 1.15vw, 17px); background: linear-gradient(165deg, #122e48b8, #061626ed 72%); }
.stem-actions { justify-content: flex-end; }
.stem-actions button { font-size: .76rem; }
.stem-name,.level { display: flex; align-items: center; gap: 9px; min-width: 0; }
.stem h3 { font-size: .9rem; font-weight: 700; }
.dot { width: 7px; height: 7px; flex: none; border-radius: 100%; background: linear-gradient(#64e5fc, #0aa7e6); box-shadow: 0 0 8px #1ecfff55; }
.waveform { position: relative; height: clamp(23px, 4dvh, 34px); overflow: hidden; }
.waveform canvas { display: block; width: 100%; height: 100%; filter: drop-shadow(0 0 3px #1dbdec75); }
.waveform::after { position: absolute; content: ""; top: 0; bottom: 0; left: var(--position); width: 1px; background: #b4e9ff; opacity: 0; }
.mixer[data-playing] .waveform::after { opacity: .8; }
.stem[data-silent] :is(.waveform,.dot,.level) { opacity: .44; }
.level input { flex: 1; width: 0; appearance: none; min-height: 24px; background: transparent; cursor: pointer; }
.level input::-webkit-slider-runnable-track { height: 5px; border-radius: 10px; background: linear-gradient(90deg, #16c7ee, #367ef8) 0 / var(--level, 100%) 100% no-repeat, #1b3553; }
.level input::-moz-range-track { height: 5px; border-radius: 10px; background: #1b3553; }
.level input::-moz-range-progress { height: 5px; border-radius: 10px; background: linear-gradient(90deg, #16c7ee, #367ef8); }
.level input::-webkit-slider-thumb { appearance: none; margin-top: -4px; width: 13px; height: 13px; border-radius: 50%; border: 2px solid #a7e7ff; background: #219df6; box-shadow: 0 0 8px #1caeff88; }
.level input::-moz-range-thumb { width: 9px; height: 9px; border-radius: 50%; border: 2px solid #a7e7ff; background: #219df6; box-shadow: 0 0 8px #1caeff88; }
.level output { width: 40px; text-align: right; color: var(--muted); font-size: .75rem; font-variant-numeric: tabular-nums; }
.status { display: flex; align-items: center; gap: 8px; color: #aac6df; padding: clamp(5px, 1.1dvh, 10px) calc(var(--mixer-inset) + 12px); font-size: .78rem; }
.status::before { content: "i" / ""; display: grid; place-items: center; flex: none; width: 14px; height: 14px; border-radius: 50%; border: 1px solid #4ad8fb; color: #68e1ff; font-size: .66rem; font-weight: 700; line-height: 1; }
@media (max-width: 1080px) {
  .site-header { grid-template-columns: 1fr auto; gap: 3px 12px; }
  .top-nav { grid-row: 2; grid-column: 1/-1; }
  .power { grid-template-columns: minmax(0,.78fr) minmax(0,1fr); }
  .transport,.legend,.stem,.status { padding-inline: 15px; }
}
@media (min-width: 691px) and (max-width: 1080px) {
  .legend,.stem { grid-template-columns: minmax(78px,.9fr) minmax(16px,1fr) minmax(73px,1fr) 126px; gap: 7px; padding-inline: 10px; }
}
@media (max-width: 900px) {
  .power { grid-template-columns: minmax(0,1fr); }
  .intro,.mixer { width: min(100%, 740px); margin-inline: auto; }
  .studio-backdrop {
    inset: 0 0 auto; height: min(720px, 90dvh, 100%); opacity: .42;
    mask-image: linear-gradient(90deg, #0003, #000 76%), linear-gradient(180deg, transparent, #000 17%, #000b 44%, #0004 72%, transparent);
  }
  .mixer { scroll-margin-top: 125px; }
}
@media (min-width: 800px) and (max-width: 1080px) and (orientation: landscape) {
  .site-header { grid-template-columns: minmax(115px,1fr) auto auto; gap: 10px; }
  .brand { width: clamp(115px, 15vw, 162px); }
  .top-nav { grid-row: auto; grid-column: auto; }
  .top-nav a { padding-inline: 5px; letter-spacing: .06em; }
  .power { grid-template-columns: minmax(0,.7fr) minmax(0,1fr); padding-block: 12px; }
  .intro,.mixer { width: auto; margin-inline: 0; }
  .mixer { scroll-margin-top: calc(var(--header-height) + 12px); }
}
@media (max-width: 690px) {
  :root { --gutter: 16px; }
  .site-header { position: relative; padding-block: 6px; }
  .brand { width: min(150px, 100%); }
  .top-nav { flex-wrap: wrap; justify-content: flex-start; }
  .top-nav a { letter-spacing: .035em; padding: 4px; }
  .top-nav a:first-child { padding-left: 0; }
  .power { gap: 12px; padding-block: 12px; }
  .intro h1 { font-size: clamp(1.85rem, min(8.8vw, 5.1dvh), 4.4rem); line-height: .95; }
  .tagline { letter-spacing: .1em; }
  .legend { display: none; }
  .mixer { --row-gap: 2px; }
  #stems { padding-top: 3px; }
  .stem { grid-template-columns: minmax(100px,1fr) minmax(100px,1fr) auto; padding-inline: 8px; gap: 8px; }
  .waveform { display: none; }
  .transport,.status { padding-inline: 12px; }
  .site-header .languages button,.controls :is(button,.buy-track),.stem-actions button { min-height: 44px; min-width: 44px; }
  .level input { min-height: 44px; margin: 0; }
  .mixer { scroll-margin-top: 12px; }
}
@media (min-width: 691px) and (max-height: 560px) and (pointer: fine) {
  .controls :is(button,.buy-track) { min-height: 34px; padding-block: 4px; }
}
@media (min-width: 800px) and (max-height: 560px) {
  .power { padding-block: 7px; }
  .transport { row-gap: 5px; padding-block: 5px; }
  .mixer-brand img { width: 108px; }
  .track h2 { font-size: clamp(1rem, 1.55vw, 1.25rem); }
  .track-analysis div { font-size: .67rem; }
}
@media (min-width: 800px) and (max-height: 520px) {
  .legend { display: none; }
  #stems { padding-top: 3px; }
}
@media (min-width: 800px) and (max-height: 520px) and (pointer: fine) {
  .stem { min-height: 40px; }
}
@media (pointer: coarse) {
  .controls :is(button,.buy-track),.stem-actions button,.level input { min-height: 44px; }
  .level input { margin-block: 0; }
}
@media (max-width: 480px) {
  .transport { gap: 4px 6px; padding-block: 5px; }
  .track,.controls { grid-column: 1/-1; }
  .controls { justify-content: flex-end; }
  .track h2 { font-size: .94rem; line-height: 1.2; }
  .track p { font-size: .78rem; }
  .track-analysis { gap: 4px; }
  .track-analysis div { font-size: .66rem; }
  .controls,.stem-actions { gap: 4px; }
  .controls :is(button,.buy-track) { gap: 4px; padding-inline: 6px; }
  #play { min-width: 44px; font-size: .83rem; }
  .stem { grid-template-columns: minmax(0,.9fr) minmax(0,1fr) auto; gap: 6px; }
  .stem-name,.level { gap: 4px; }
  .stem h3 { font-size: .79rem; overflow-wrap: anywhere; }
  .stem-actions button { padding-inline: 5px; }
  .level output { width: 32px; }
}
@media (max-width: 410px) and (max-height: 800px) {
  :root { --gutter: 12px; }
  .top-nav a { font-size: .625rem; padding-inline: 3px; }
  .top-nav a:first-child { padding-left: 0; }
  .tagline::before { flex-basis: 20px; }
  .intro-details summary { margin-top: 6px; padding-block: 5px; }
}
@media (max-width: 410px) and (max-height: 700px) {
  .power { gap: 8px; padding-block: 8px; }
  .intro h1 { font-size: clamp(1.85rem, 8.4vw, 2.15rem); }
  .tagline { margin-bottom: 7px; }
}
@media (max-width: 480px) and (max-height: 780px) {
  /* The header already displays the official logo on short phone screens. */
  .mixer-brand { display: none; }
  .mixer { --row-gap: 1px; }
  .stem { border: 0; box-shadow: inset 0 0 0 1px #3870a754; }
  .status { padding-block: 5px; }
  #repeat { position: relative; }
  #repeat span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}
