header {
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--bg);
}

:root {
  color-scheme: dark;
  --bg: #111310;
  --surface: #191c17;
  --line: #30352b;
  --muted: #a0a797;
  --ink: #f0f0df;
  --lime: #d4ef86;
  --orange: #dfa575;
  --blue: #95bcca;
  --purple: #b6a4cd;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'DM Sans',sans-serif;
  font-size: 14px;
}

button,input,select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,a:focus-visible,input:focus-visible {
  outline: 2px solid var(--lime);
  outline-offset: 5px;
}

button {
  color: inherit;
}

button:disabled {
  cursor: default;
}

a {
  color: inherit;
}

.shell {
  max-width: 1460px;
  margin: auto;
  padding: 0 52px 28px;
}

header {
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: 'Space Grotesk';
  font-weight: 600;
  font-size: 19px;
  letter-spacing: -.5px;
}

.mark {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 25px;
}

.mark i {
  width: 4px;
  height: 10px;
  background: var(--lime);
  border-radius: 2px;
}

.mark i:nth-child(2) {
  height: 22px;
}

.mark i:nth-child(3) {
  height: 15px;
}

.mark i:nth-child(4) {
  height: 26px;
}

.back {
  border: 0;
  background: none;
  color: var(--muted);
  padding: 10px 0;
  font-size: 12px;
}

.back span {
  margin-right: 10px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 25px;
}

.concept {
  font-size: 10px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 7px 10px;
  border-radius: 5px;
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: end;
  padding: 40px 0 32px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 10px;
  color: var(--lime);
  margin: 0 0 14px;
}

.hero h1 {
  font-family: 'Space Grotesk';
  font-weight: 500;
  font-size: clamp(34px,4.2vw,60px);
  line-height: 1.04;
  letter-spacing: -2.8px;
  margin: 0;
}

.hero h1 em {
  font-style: normal;
  color: var(--lime);
}

.hero-copy {
  max-width: 330px;
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
  margin: 0 0 4px;
}

.hero-copy strong {
  color: var(--ink);
  font-weight: 500;
}

.transport {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-bottom: 24px;
  gap: 20px;
}

.track {
  display: flex;
  gap: 16px;
  align-items: center;
}

.play {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: var(--lime);
  color: #1b2410;
  font-size: 18px;
  padding-left: 5px;
}

.track strong {
  display: block;
  font-size: 14px;
  font-weight: 500;
}

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

.transport-right {
  display: flex;
  align-items: center;
  gap: 30px;
}

.metric {
  font-family: 'Space Grotesk';
  font-size: 20px;
  font-weight: 500;
  line-height: 1.1;
}

.metric small {
  display: block;
  color: var(--muted);
  font-family: 'DM Sans';
  font-size: 9px;
  letter-spacing: 1.5px;
  margin-top: 6px;
}

.divider {
  width: 1px;
  height: 30px;
  background: var(--line);
}

input[type=range] {
  accent-color: var(--lime);
  height: 4px;
  cursor: pointer;
  width: 100%;
}

.volume {
  width: 100px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 10px;
}

.workspace {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 24px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}

.sim {
  padding: 24px;
}

.sectiontop {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.sectiontop h2 {
  font-size: 15px;
  letter-spacing: -.4px;
  font-family: 'Space Grotesk';
  margin: 0;
  font-weight: 500;
}

.step {
  font-family: 'Space Grotesk';
  font-size: 10px;
  color: var(--muted);
}

.mode-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 6px;
}

.mode {
  background: transparent;
  border: 1px solid #3b4134;
  border-radius: 6px;
  padding: 11px 4px;
  font-size: 10px;
  color: #bdc3b5;
  white-space: nowrap;
  transition: background .15s,color .15s;
}

.mode.selected {
  background: var(--lime);
  border-color: var(--lime);
  color: #202715;
}

.mode:hover:not(.selected) {
  background: #282e21;
}

.mode b {
  display: block;
  font-size: 18px;
  font-weight: 400;
  margin-bottom: 6px;
  height: 20px;
  line-height: 20px;
}

.mode-label {
  font-size: 10px;
  color: var(--muted);
  margin: 14px 0 22px;
}

.value-line {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 15px;
}

.value-line label {
  font-size: 11px;
  color: var(--muted);
}

.value-line output {
  font-family: 'Space Grotesk';
  font-size: 37px;
  line-height: 1;
  font-weight: 500;
}

.value-line output small {
  font-size: 11px;
  color: var(--muted);
  margin-left: 4px;
}

.range-labels {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 9px;
  margin-top: 10px;
}

.settings {
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 10px;
  padding-top: 20px;
  margin-top: 24px;
}

.settings label {
  color: var(--muted);
  font-size: 9px;
  letter-spacing: .2px;
}

.settings input {
  display: block;
  width: 100%;
  margin-top: 8px;
  background: #12150f;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--ink);
  padding: 9px 8px;
  font-family: 'Space Grotesk';
  font-size: 14px;
}

.sim-toggle {
  width: 100%;
  border: 1px solid #576442;
  border-radius: 6px;
  background: transparent;
  padding: 12px;
  margin-top: 18px;
  color: var(--lime);
  font-size: 11px;
}

.caption {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.6;
  margin: 13px 0 0;
}

.right {
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-width: 0;
}

.graph-panel {
  padding: 22px 24px 14px;
}

.graph-panel .sectiontop {
  margin-bottom: 5px;
}

.legend {
  font-size: 9px;
  color: var(--muted);
}

.legend:before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lime);
  margin: 0 6px 1px 0;
}

.graph {
  height: 120px;
  width: 100%;
  display: block;
}

.axis {
  display: flex;
  justify-content: space-between;
  font-size: 9px;
  color: #87907e;
  margin-left: 20px;
}

.arrangement {
  padding: 22px 24px;
}

.arrangement .sectiontop {
  margin-bottom: 22px;
}

.ruler {
  display: grid;
  grid-template-columns: 130px 1fr 74px;
  color: var(--muted);
  font-size: 9px;
  margin-bottom: 13px;
}

.ticks {
  display: flex;
  justify-content: space-between;
}

.ruler>span:last-child {
  text-align: right;
}

.lane {
  display: grid;
  grid-template-columns: 130px 1fr 74px;
  align-items: center;
  min-height: 52px;
  border-top: 1px solid #2a3025;
  gap: 0;
}

.lane-title strong {
  font-size: 11px;
  display: block;
  font-weight: 500;
}

.lane-title small {
  font-size: 9px;
  color: var(--muted);
  display: block;
  margin-top: 4px;
}

.sequence {
  height: 34px;
  display: flex;
  gap: 3px;
  position: relative;
  overflow: hidden;
}

.clip {
  border-radius: 3px;
  background: color-mix(in srgb,var(--c) 12%,transparent);
  border: 1px solid color-mix(in srgb,var(--c) 28%,transparent);
  height: 100%;
  flex: 1;
  position: relative;
  overflow: hidden;
}

.clip svg {
  width: 100%;
  height: 100%;
  color: var(--c);
  opacity: .65;
}

.lane-state {
  text-align: right;
  font-family: 'Space Grotesk';
  font-size: 11px;
  color: var(--c);
}

.lane-state span {
  display: block;
  font-size: 8px;
  color: var(--muted);
  margin-top: 4px;
}

.boundary {
  padding-top: 16px;
  margin-top: 10px;
  border-top: 1px solid var(--line);
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 10px;
}

.boundary b {
  color: var(--lime);
  font-weight: 400;
}

.bottom {
  margin-top: 25px;
  display: flex;
  justify-content: space-between;
  gap: 25px;
  align-items: center;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.bottom p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
  max-width: 520px;
}

.technical {
  background: none;
  border: 0;
  font-size: 11px;
  white-space: nowrap;
  color: var(--ink);
  padding: 8px 0;
}

.technical span {
  color: var(--lime);
  margin-left: 15px;
}

.footnote {
  font-size: 9px;
  color: #858e7c;
  text-align: center;
  padding-top: 5px;
}

#how {
  padding: 20px;
  background: var(--surface);
  border-radius: 8px;
  color: var(--muted);
  line-height: 1.8;
  font-size: 12px;
  margin-bottom: 20px;
}

#how strong {
  color: var(--lime);
  font-weight: 500;
}

[hidden] {
  display: none!important;
}

.panel,.hero,.transport {
  animation: reveal .35s ease both;
}

@keyframes reveal {

  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media(prefers-reduced-motion:reduce) {

  * {
    animation: none!important;
    transition: none!important;
  }
}

@media(min-width:1550px) {

  .shell {
    padding-top: 10px;
  }

  .hero {
    padding-top: 50px;
    padding-bottom: 40px;
  }

  .workspace {
    grid-template-columns: 360px 1fr;
  }

  .graph {
    height: 140px;
  }
}

@media(max-width:1000px) {

  .shell {
    padding: 0 24px 20px;
  }

  .workspace {
    grid-template-columns: 290px 1fr;
    gap: 14px;
  }

  .sim,.arrangement,.graph-panel {
    padding: 18px;
  }

  .lane,.ruler {
    grid-template-columns: 95px 1fr 54px;
  }

  .hero-copy {
    max-width: 260px;
  }

  .transport-right {
    gap: 18px;
  }
}

@media(max-width:740px) {

  .shell {
    padding: 0 18px 20px;
  }

  header {
    height: 65px;
  }

  .concept {
    font-size: 8px;
  }

  .header-right {
    gap: 10px;
  }

  .hero {
    display: block;
    padding: 30px 0 25px;
  }

  .hero h1 {
    font-size: 43px;
    letter-spacing: -2px;
  }

  .hero-copy {
    margin-top: 20px;
    max-width: 100%;
  }

  .workspace {
    grid-template-columns: 1fr;
  }

  .transport-right .divider,.volume {
    display: none;
  }

  .transport-right {
    gap: 15px;
  }

  .metric {
    font-size: 16px;
  }

  .transport {
    padding: 14px;
  }

  .track small {
    font-size: 9px;
  }

  .play {
    width: 37px;
    height: 37px;
  }

  .lane,.ruler {
    grid-template-columns: 91px 1fr 51px;
  }

  .bottom {
    display: block;
  }

  .technical {
    margin-top: 15px;
  }

  .header-right .back {
    font-size: 10px;
  }

  .graph {
    height: 135px;
  }

  .sim {
    padding: 22px;
  }

  .mode b {
    font-size: 22px;
  }

  .mode {
    font-size: 11px;
  }

  .footnote {
    text-align: left;
  }
}

.play {
  flex-shrink: 0;
}

.play:disabled {
  opacity: .5;
}

.play:hover {
  background: #e5ffa4;
}

.transport {
  margin-bottom: 8px;
}

.playback-progress {
  display: block;
  width: 100%;
  height: 3px;
  accent-color: var(--lime);
  margin: 0 0 24px;
  border: 0;
}

.playback-progress::-webkit-progress-bar {
  background: var(--line);
}

.playback-progress::-webkit-progress-value {
  background: var(--lime);
}

.playback-progress::-moz-progress-bar {
  background: var(--lime);
}

.status-error {
  color: #ffb5a6;
  background: #33201b;
  border: 1px solid #824e40;
  border-radius: 8px;
  padding: 14px;
  line-height: 1.6;
}

.status-error:empty {
  display: none;
}

.metric {
  white-space: nowrap;
}

.sequence {
  height: 34px;
}

.sequence svg {
  width: 100%;
  height: 100%;
  color: var(--c);
}

.lane {
  min-height: 54px;
  opacity: .55;
  transition: opacity .2s;
}

.lane.is-active {
  opacity: 1;
}

.lane .clip {
  flex: 1;
}

.lane.is-active .clip {
  border-color: var(--c);
  background: color-mix(in srgb,var(--c) 18%,transparent);
}

.lane-state span {
  font-family: 'DM Sans';
  letter-spacing: .4px;
}

.ruler {
  grid-template-columns: 130px 1fr 74px;
}

.ruler .ticks {
  justify-content: flex-start;
}

.graph-panel .sectiontop {
  gap: 12px;
}

.bottom a {
  color: var(--lime);
  text-underline-offset: 3px;
}

.back {
  text-decoration: none;
}

.header-right {
  flex-shrink: 0;
}

.wordmark {
  gap: 10px;
}

#how p {
  margin: 10px 0;
}

#how dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 18px;
  margin: 16px 0 0;
}

#how dt {
  color: var(--ink);
}

#how dd {
  margin: 0;
}

input[type=number] {
  min-width: 0;
}

.footnote {
  line-height: 1.6;
}

.transport .track {
  min-width: 0;
}

#audio-status {
  min-height: 1.3em;
}

#sim-toggle:disabled {
  opacity: .45;
  cursor: default;
}

@media(max-width:1000px) {

  .ruler {
    grid-template-columns: 95px 1fr 54px;
  }
}

@media(max-width:740px) {

  .concept {
    display: none;
  }

  .wordmark {
    font-size: 17px;
  }

  .ruler {
    grid-template-columns: 91px 1fr 51px;
    font-size: 8px;
  }

  .metric small {
    font-size: 8px;
    letter-spacing: .6px;
  }

  .track {
    gap: 10px;
  }

  .track strong {
    font-size: 12px;
  }

  .transport-right {
    gap: 10px;
  }

  .transport {
    gap: 12px;
  }

  .volume {
    display: flex;
    width: 100%;
    margin: 12px 0 0;
  }

  .transport {
    flex-wrap: wrap;
  }

  .transport-right {
    margin-left: auto;
  }

  .transport-right .volume {
    display: none;
  }

  .mobile-volume {
    display: flex!important;
    gap: 12px;
    align-items: center;
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 20px;
  }

  .mobile-volume input {
    flex: 1;
  }
}

.mobile-volume {
  display: none;
}
