:root {
  --chassis: #0f0f10;
  --primary: #e8e8ea;
  --focus: #a4d977;
  --action-ink: #10120d;
  --green: #9bd774;
  --green-hover: #b0e58e;
  --outline: #88888d;
  --secondary: #a5a5aa;
  --black: #000;
  --media-border: #303034;
  --caption: #9b9ba2;
  --range-surface: #070708;
  --range-copy: #aaaab0;
  --eyebrow: #a6a6ad;
  --community-surface: #19191b;
  --campaign-border: #37373b;
  --footer-border: #353539;
  --body-copy: #bbb;
  --schedule-border: #444;
  --metadata: #a9a9af;
  --schedule-label: #a4a4ab;
  --local-time: #8a8a92;
  --track-surface: #1a1a1d;
  --quiet-copy: #aaa;
  --step-border: #3b3b40;
  --button-border: #7a7a82;
  --section-border: #404046;
  --faq-border: #35353a;
  --updated-date: #999;
  --section-space: 112px;
  --page-gutter: 56px;
}
@font-face {
  font-family: JB;
  src: url('/assets/jetbrains-mono.woff2') format('woff2');
  font-display: swap;
  font-weight: 100 800;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  color-scheme: dark;
}
body {
  margin: 0;
  background: var(--chassis);
  color: var(--primary);
  font-family: JB,monospace;
  font-size: 16px;
  line-height: 1.55;
}
a {
  color: inherit;
  text-underline-offset: 5px;
}
button, a {
  -webkit-tap-highlight-color: transparent;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
a:focus-visible, button:focus-visible, audio:focus-visible, video:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 6px;
}
h1, h2, h3, p, figure {
  margin: 0;
}
h1, h2, h3 {
  line-height: 1.06;
  letter-spacing: -.055em;
  font-weight: 650;
}
h1 {
  font-size: clamp(56px,5.6vw,86px);
}
h2 {
  font-size: clamp(36px,4.3vw,64px);
}
h3 {
  font-size: 23px;
  letter-spacing: -.035em;
}
p {
  max-width: 54ch;
}
p+p {
  margin-top: 18px;
}
.wrap {
  width: calc(100% - 112px);
  max-width: 1320px;
  margin-inline: auto;
}
.section {
  padding-top: 112px;
  padding-bottom: 112px;
}
.site-header {
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(56px, calc((100% - 1320px) / 2));
  position: absolute;
  inset: 0 0 auto;
  z-index: 3;
}
.brand {
  display: block;
  width: 276px;
  max-width: 48%;
}
.brand img {
  display: block;
  width: 100%;
  height: auto;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  min-height: 58px;
  padding: 16px 24px;
  border-radius: 7px;
  text-decoration: none;
  font-size: 17px;
  line-height: 1.3;
  border: 1px solid transparent;
}
.button > .button-icon, .docs-button > .button-icon {
  display: block;
  width: 1.25em;
  height: 1.25em;
  flex: 0 0 auto;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.green {
  color: var(--action-ink);
  background: var(--green);
}
.green:hover {
  background: var(--green-hover);
}
.compact {
  font-size: 15px;
  min-height: 46px;
  padding: 12px 20px;
}
.outline {
  border-color: var(--outline);
  background: transparent;
}
.outline:hover {
  border-color: var(--primary);
}
.lead {
  font-size: 20px;
  line-height: 1.5;
}
.fine {
  font-size: 12px;
  line-height: 1.8;
  color: var(--secondary);
}
.actions {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 18px;
}
.demo-link {
  font-size: 16px;
}
.actions+.fine {
  margin-top: 25px;
}
.hero {
  position: relative;
  min-height: 820px;
  height: min(940px,100svh);
  background: var(--black);
  overflow: hidden;
}
.hero-film, .hero-poster, .hero-poster img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% center;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,var(--black) 0%,rgba(0,0,0,.97) 19%,rgba(0,0,0,.8) 32%,rgba(0,0,0,.15) 56%,transparent 75%);
}
.hero-inner {
  position: relative;
  padding-top: 166px;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.hero-copy {
  width: 530px;
  max-width: 46%;
}
.hero-copy .lead {
  margin-top: 28px;
}
.hero-copy>p:last-child {
  margin-top: 12px;
}
.hero-action {
  margin-top: 28px;
}
.film-credit {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 12px;
  margin-top: auto;
  padding-bottom: 34px;
}
.section-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
  margin-bottom: 40px;
}
.section-intro>div {
  max-width: 460px;
}
.text-link {
  display: inline-block;
  margin-top: 24px;
}
.app-recording video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1600/984;
  background: var(--black);
  border: 1px solid var(--media-border);
  border-radius: 10px;
}
.app-recording figcaption {
  font-size: 12px;
  color: var(--caption);
  margin-top: 15px;
}

.setup-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}
.eyebrow {
  font-size: 12px;
  color: var(--eyebrow);
  letter-spacing: .03em;
}
.setup-layout>div {
  max-width: 460px;
}
.setup-layout .lead+p {
  color: var(--green);
  margin-top: 26px;
}
.community {
  background: var(--community-surface);
}
.community-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}
.community-layout>div {
  max-width: 460px;
}
.community .button {
  margin-top: 28px;
}
.campaign {
  padding-top: 64px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--campaign-border);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
}
.campaign h2 {
  font-size: 35px;
}
.campaign>div:last-child {
  max-width: 460px;
}
.campaign .fine {
  margin-top: 16px;
}
.closing h2 {
  margin-bottom: 40px;
}
.closing .actions {
  flex-direction: row;
  align-items: center;
  gap: 32px;
}
.site-footer {
  border-top: 1px solid var(--footer-border);
  padding-top: 35px;
  padding-bottom: 44px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.site-footer .brand {
  width: 210px;
}
.site-footer nav {
  display: flex;
  gap: 28px;
  font-size: 12px;
}
.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 10;
  padding: 10px;
  background: var(--green);
  color: var(--black);
}
.skip-link:focus {
  top: 8px;
}
[hidden] {
  display: none!important;
}
.local-time {
  display: block;
  color: var(--local-time);
  font-size: 12px;
  margin-top: 3px;
}
.waveform {
  display: block;
  width: 100%;
  height: 120px;
  object-fit: contain;
}
.docs-button {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  padding: 12px 20px;
  border: 1px solid var(--button-border);
  border-radius: 6px;
  text-decoration: none;
  font-size: 14px;
  line-height: 1.45;
}
.steam-button {
  background: var(--green);
  color: var(--chassis);
  border-color: var(--green);
}
svg {
  width: 16px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  flex-shrink: 0;
}
@media(min-width:1500px) {
  .hero-shade {
    background: linear-gradient(90deg,var(--black) 0%,rgba(0,0,0,.95) 22%,transparent 62%);
  }
}
@media(max-width:1000px) {
  .wrap {
    width: calc(100% - 64px);
  }
  .site-header {
    padding-inline: 32px;
  }
  .hero-copy {
    max-width: 55%;
  }
  .hero-copy .lead {
    font-size: 17px;
  }
  .hero h1 {
    font-size: 62px;
  }
  .section {
    padding-block: 80px;
  }
  .section-intro, .setup-layout, .community-layout, .campaign {
    gap: 40px;
  }

.site-footer nav {
    gap: 16px;
  }
}
@media(max-width:700px) {
  body {
    font-size: 15px;
  }
  .wrap {
    width: calc(100% - 48px);
  }
  .site-header {
    height: 84px;
    padding-inline: 24px;
  }
  .brand {
    width: 208px;
    max-width: 57%;
  }
  .compact {
    font-size: 11px;
    gap: 12px;
    min-height: 40px;
    padding: 10px 12px;
  }
  .hero {
    height: auto;
    min-height: 0;
  }
  .hero-film, .hero-poster img {
    object-position: center center;
  }
  .hero-shade {
    background: linear-gradient(180deg,rgba(0,0,0,.8) 0%,rgba(0,0,0,.65) 29%,transparent 42%,transparent 63%,rgba(0,0,0,.9) 85%,var(--black) 100%);
  }
  .hero-inner {
    padding-top: 145px;
    padding-bottom: 30px;
  }
  .hero-copy {
    width: 100%;
    max-width: none;
  }
  .hero h1 {
    font-size: clamp(42px,8.7vw,61px);
    letter-spacing: -.06em;
  }
  .hero-copy .lead {
    font-size: 17px;
    margin-top: 24px;
    max-width: 36ch;
  }
  .hero-copy>p:last-child {
    margin-top: 13px;
  }
  .hero-action {
    width: 100%;
    margin-top: 28px;
  }
  .hero-action .button {
    font-size: 16px;
    min-height: 58px;
    gap: 20px;
    max-width: 100%;
  }
  .hero-action .fine {
    font-size: 10px;
  }
  .film-credit {
    margin-top: 28px;
    padding-bottom: 0;
    font-size: 11px;
  }
  .section {
    padding-block: 65px;
  }
  h2 {
    font-size: 36px;
  }
  .section-intro, .setup-layout, .community-layout, .campaign {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .section-intro {
    margin-bottom: 28px;
  }
  .section-intro h2 br {
    display: none;
  }
  .section-intro p {
    font-size: 14px;
  }
  .text-link {
    font-size: 13px;
    margin-top: 20px;
  }
  .app-recording video {
    border-radius: 5px;
  }
  .app-recording figcaption {
    font-size: 10px;
  }

.setup-layout .lead {
    font-size: 17px;
  }
  .community p {
    font-size: 14px;
  }
  .community .button {
    margin-top: 24px;
    font-size: 14px;
  }
  .campaign {
    padding-block: 44px;
    gap: 28px;
  }
  .campaign h2 {
    font-size: 30px;
  }
  .campaign p {
    font-size: 13px;
  }
  .campaign .eyebrow {
    font-size: 10px;
  }
  .campaign .fine {
    font-size: 11px;
  }
  .closing .actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
  }
  .closing h2 {
    margin-bottom: 28px;
  }
  .closing .fine {
    font-size: 10px;
  }
  .site-footer {
    align-items: flex-start;
    gap: 25px;
    flex-direction: column;
    padding-block: 30px;
  }
  .site-footer .brand {
    width: 190px;
    max-width: none;
  }
  .site-footer nav {
    flex-wrap: wrap;
    gap: 22px;
    font-size: 11px;
  }
}
@media(prefers-reduced-motion:reduce) {
  html {
    scroll-behavior: auto;
  }
}
.hero-action .fine, .closing .fine {
  max-width: none;
}
.hero-shade, .hero-inner {
  pointer-events: none;
}
.hero-inner a {
  pointer-events: auto;
}

@media (max-width: 700px) {
  .fine, .hero-action .fine, .closing .fine {
    font-size: 12px;
  }
}

.app-recording { position: relative; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.patching { padding-right: var(--page-gutter); padding-left: var(--page-gutter); background: var(--range-surface); }
.patching > .wrap { width: 100%; }
.patching-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 72px; align-items: center; }
.patching-sidebar h2 { font-size: 44px; }
.patching-sidebar > p { margin-top: 28px; color: var(--range-copy); font-size: 16px; line-height: 1.7; }
/* The step list is the patch chain: modules in the patch share one green signal line. */
.patch-steps { display: flex; flex-direction: column; margin: 32px 0 0; padding: 0; list-style: none; }
.patch-steps li, .patch-steps button { display: flex; flex-direction: column; gap: 5px; min-height: 78px; padding: 16px 18px; border-left: 2px solid transparent; color: var(--secondary); transition: border-color var(--patch-fade), color var(--patch-fade), background-color var(--patch-fade); }
.patch-steps li:has(button) { display: flex; min-height: 0; padding: 0; border: 0; }
.patch-steps button { flex: 1; width: 100%; text-align: left; background: transparent; border-top: 0; border-right: 0; border-bottom: 0; }
.patch-steps button:focus-visible { outline-offset: -2px; }
.patch-steps span { font-size: 17px; }
.patch-steps small { font-size: 13px; color: var(--caption); }
.patch-steps button:hover { color: var(--primary); }
.patch-steps [data-in-patch] { border-left-color: var(--green); color: var(--primary); }
.patch-steps [aria-current="step"] { background: var(--chassis); }
.patch-stage { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: var(--black); }
.patching { --patch-fade: 400ms; }
/* One video holds all four steps stacked; the stage shows one pane, so every step shares one clock. */
.patch-stage video, .patch-poster { position: absolute; top: 0; left: 0; display: block; width: 100%; height: 400%; }
.patch-stage[data-step="2"] :is(video, .patch-poster) { transform: translateY(-25%); }
.patch-stage[data-step="3"] :is(video, .patch-poster) { transform: translateY(-50%); }
.patch-stage[data-step="4"] :is(video, .patch-poster) { transform: translateY(-75%); }
.patch-fade { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.patch-chain { margin-top: 18px; color: var(--caption); font-size: 13px; }
@media (max-width: 1100px) {
  .patching-layout { grid-template-columns: 260px minmax(0, 1fr); gap: 40px; }
  .patching-sidebar h2 { font-size: 38px; }
}
@media (max-width: 900px) {
  .patching-layout { grid-template-columns: 1fr; gap: 26px; }
  .patching-sidebar > p { max-width: 48ch; margin-top: 24px; font-size: 15px; }
  /* Four steps don't fit in a row at phone width; keep the vertical chain, label only. */
  .patch-steps { margin-top: 20px; }
  .patch-steps li, .patch-steps button { min-height: 48px; padding: 12px 16px; justify-content: center; }
  .patch-steps span { font-size: 15px; }
  .patch-steps small { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .patch-chain { line-height: 1.7; }
}
@media (max-width: 1000px) {
  :root { --page-gutter: 32px; }
}
@media (max-width: 700px) {
  :root { --page-gutter: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .patching { --patch-fade: 0ms; }
}

/* The poster remains underneath for loading, buffering and failed playback. */
.patch-stage video { opacity: 0; }
.patch-stage[data-frame-ready="true"] video { opacity: 1; }

/* Action links share the same arrow geometry and alignment as buttons. */
.text-link, .brief-link, .site-footer nav a {
  display: inline-flex;
  align-items: center;
  gap: .5em;
}
.link-icon {
  display: block;
  width: 1.25em;
  height: 1.25em;
  flex: 0 0 auto;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Videos are ambient artwork, with no native or custom player buttons. */
.hero-film, .app-recording video, .patch-stage video { pointer-events: none; }
.hero-film, .app-recording video { opacity: 0; }
.hero[data-frame-ready="true"] .hero-film,
.app-recording[data-frame-ready="true"] video { opacity: 1; }
.recording-poster { position: absolute; inset: 0; display: block; width: 100%; height: 100%; border-radius: 10px; object-fit: cover; }
video::-webkit-media-controls,
video::-webkit-media-controls-start-playback-button { display: none !important; }
@media (prefers-reduced-motion: reduce) {
  .hero .hero-film, .app-recording video, .patch-stage video { opacity: 0; }
}
