/* Parallax marketing site.
   The product's own dark graphite, top to bottom: screen, rack, panel, raised. Depth is coded
   in tone and in shadow: the walk through the instrument steps forward through three planes,
   far (lightest), middle and near (darkest), and a plate throws a longer shadow the nearer it is.
   Three accents, each with one job: tan is the signal (the cable, the lit wavetable frame, a
   playing clip), blue is what you press, orange is modulation. The module colours are kept as
   a functional code on the strips, the pins and the diagram, nowhere else. */

@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("assets/fonts/jost-latin.woff2") format("woff2");
}
/* A local face cut to Jost's measure, so text does not move when Jost arrives. */
@font-face {
  font-family: "Jost fallback";
  src: local("Arial"), local("Liberation Sans"), local("Arimo"), local("Helvetica Neue"), local("Helvetica");
  size-adjust: 95.7%;
  ascent-override: 111.8%;
  descent-override: 39.2%;
  line-gap-override: 0%;
}

:root {
  /* surfaces, straight from the product interface */
  --screen: #0b0d10;
  --base: #0f1114;       /* the near plane, and the page behind everything */
  --rack: #15171b;
  --panel: #1f2227;
  --raised: #26292e;
  --line: #323740;
  --line-strong: #4b5360;
  --ink: #ecf5f3;
  --soft: #b9c3cb;
  --muted: #9aa4ae;
  --dark: #0b0d10;       /* text on a light or coloured fill */
  --plate: var(--panel); /* the surface every screenshot sits on */

  --signal: #d6bfa3;     /* the product's "mix" tan: the cable, and anything that is sounding */
  --active: #62b5ff;     /* the product's active blue: what you press */
  --mod: #fb923c;        /* control-rate modulation */
  --audio: #34d399;      /* audio-rate modulation */

  /* module colours */
  --analog: #f87171;
  --wavetable: #60a5fa;
  --string: #f472b6;
  --sample: #22c55e;
  --filter: #eab308;
  --lane: #c084fc;
  --reverb: #a855f7;
  --eq: #38bdf8;
  --dist: #ef4444;

  --font: "Jost", "Jost fallback", "Futura", "Century Gothic", "Avenir Next", system-ui, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", Menlo, Consolas, monospace;

  --pad: clamp(20px, 5.5vw, 88px);
  --max: 1240px;

  /* the signal cable lives in the left page margin */
  --cx: calc(var(--pad) / 2);       /* cable, measured from the left edge of .wrap */
  --rx: calc(var(--cx) + 12px);     /* modulation rail */
  --stub-y: 34px;                   /* where a strip plugs into the cable */
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--base);
  overflow-x: clip;
}

img, svg { max-width: 100%; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; }
a { color: inherit; text-underline-offset: .18em; text-decoration-thickness: 1.5px; }
a:hover { text-decoration-color: var(--active); }

:focus-visible { outline: 2.5px solid currentColor; outline-offset: 3px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.defs { position: absolute; }
.phone-only { display: none; }

.skip {
  position: absolute; left: 12px; top: -80px; z-index: 20;
  padding: 10px 16px; background: var(--ink); color: var(--dark); font-weight: 600;
}
.skip:focus { top: 12px; }

.wrap { position: relative; width: 100%; max-width: calc(var(--max) + 2 * var(--pad)); margin-inline: auto; padding-inline: var(--pad); }

/* ---------- type ---------- */

h2 {
  font-size: clamp(2.375rem, 5.6vw, 4.5rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -.018em;
  text-wrap: balance;
  /* a second plane behind the letters, thrown down and right by the light */
  text-shadow: .05em .055em 0 var(--echo);
}
h3 { font-size: 1.3125rem; font-weight: 600; line-height: 1.25; letter-spacing: -.005em; text-wrap: balance; }
p { max-width: 62ch; }
code { font-family: var(--mono); font-size: .92em; }

/* ---------- buttons and fields ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 50px; padding: 0 24px;
  font: inherit; font-size: 1.0625rem; font-weight: 600; line-height: 1.1;
  text-decoration: none; white-space: nowrap;
  border: 1.5px solid transparent; border-radius: 0; cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, background-color .12s ease, color .12s ease;
}
.btn-primary {
  background: var(--active); color: #06131f;
  box-shadow: 5px 6px 0 rgba(0, 0, 0, .6);
}
.btn-primary:focus-visible { outline-color: var(--ink); }
.btn-primary:hover { background: #8ac8ff; transform: translate(-1px, -2px); box-shadow: 7px 9px 0 rgba(0, 0, 0, .6); }
.btn-primary:active { transform: translate(3px, 4px); box-shadow: 2px 2px 0 rgba(0, 0, 0, .6); }
.btn-line { background: transparent; color: inherit; border-color: currentColor; }
.btn-line:hover { background: var(--ink); color: var(--dark); border-color: var(--ink); }
.btn-big { min-height: 60px; padding: 0 32px; font-size: 1.1875rem; }

.news { display: flex; flex-wrap: wrap; gap: 10px; }
.news input {
  flex: 1 1 210px; min-width: 0; min-height: 50px; padding: 0 16px;
  font: inherit; font-size: 1.0625rem; color: var(--ink);
  background: var(--screen);
  border: 1.5px solid var(--line-strong); border-radius: 0;
}
.news input::placeholder { color: #87919c; opacity: 1; }
.news input:focus-visible { outline-offset: 2px; border-color: var(--ink); }
.news-status { flex: 1 0 100%; font-size: .9375rem; color: var(--muted); }
.news-status:empty { display: none; }

/* play control: used in the strips, the diagram readout and the now-playing chip.
   main.js un-hides the ones whose clip exists (see the clip list in index.html). */
.play {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 44px; padding: 0 16px 0 7px;
  font: inherit; font-size: 1rem; font-weight: 500; line-height: 1.2; text-align: left;
  color: var(--ink); background: var(--screen);
  border: 1.5px solid var(--line-strong); border-radius: 0; cursor: pointer;
}
.play:hover { border-color: var(--signal); }
.play-icon { position: relative; flex: none; width: 28px; height: 28px; border: 1.5px solid currentColor; border-radius: 50%; }
.play-icon::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 11px;
  transform: translate(-36%, -50%); background: currentColor; clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.play.is-playing { border-color: var(--signal); color: var(--signal); }
.play.is-playing .play-icon { background: var(--signal); border-color: var(--signal); }
.play.is-playing .play-icon::before, .now .play-icon::before { width: 9px; height: 9px; transform: translate(-50%, -50%); background: var(--dark); clip-path: none; }
.play::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: calc(var(--p, 0) * 100%); background: var(--signal); }
.plays { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.plays:not(:has(.play:not([hidden]))), .plays li:has(> .play[hidden]) { display: none; }
/* the String model's three demos get a row of their own, each with its description */
.plays--rows { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 32px; margin-top: 4px; padding-top: 24px; border-top: 1px solid var(--line); }
.plays--rows li { display: grid; gap: 10px; justify-items: start; align-content: start; }
.plays--rows .play { min-height: 50px; padding: 0 20px 0 8px; font-size: 1.0625rem; font-weight: 600; }
.plays--rows .play-icon { width: 34px; height: 34px; }
.play-desc { font-size: 1rem; line-height: 1.45; color: var(--soft); max-width: 40ch; }

.now { position: fixed; left: 16px; bottom: 16px; z-index: 30; max-width: calc(100% - 32px); }
.now-stop {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 46px; padding: 0 16px 0 8px;
  font: inherit; font-size: 1rem; font-weight: 500; line-height: 1.2;
  color: var(--dark); background: var(--signal);
  border: 0; border-radius: 0; cursor: pointer;
  box-shadow: 5px 6px 0 rgba(0, 0, 0, .6);
}
.now .play-icon { border-color: var(--dark); background: var(--dark); }
.now .play-icon::before { background: var(--signal); }
.now-stop:focus-visible { outline-color: var(--ink); }

/* ---------- hero ---------- */

.hero {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  height: max(100vh, calc(36vw + 230px));
  height: max(100svh, calc(36vw + 230px));
  color: var(--ink);
  background: linear-gradient(180deg, #0b0d10 0%, #14161a 46%, #1b1e23 100%);
}

.nav {
  position: absolute; inset: 0 0 auto 0; z-index: 6;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px var(--pad);
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 1.3125rem; font-weight: 600; letter-spacing: -.01em; text-decoration: none;
}
.brand-mark { width: 30px; height: 30px; flex: none; color: var(--active); }
.nav-links { display: flex; gap: clamp(16px, 2.2vw, 34px); list-style: none; font-size: 1.0625rem; }
.nav-links a { text-decoration: none; padding: 6px 0; white-space: nowrap; }
.nav-links a:hover { text-decoration: underline; text-decoration-color: var(--active); }

.terrain {
  --u: calc(100vw / 1440);
  position: relative; flex: 1 1 0; min-height: 0;
  max-height: 48.611vw; /* 700 / 1440: never taller than the drawing, so it only ever crops sky */
  margin-top: auto;
}
.terrain-layer { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.terrain-back { z-index: 1; }
.terrain-front { z-index: 3; }

.frame {
  /* --px: camera pan, --py: scroll, both in drawing units; --s: how near this frame is (0 far, 1 near) */
  transform: translate(calc(var(--px, 0) * var(--s) * 1px), calc(var(--py, 0) * (1 - var(--s)) * 1px));
}
.frame.is-pos { stroke: var(--signal); stroke-opacity: 1; stroke-width: 2.6; }

.wordmark {
  position: absolute; z-index: 2;
  left: calc(70 * var(--u)); bottom: calc(172 * var(--u));
  font-size: calc(352 * var(--u)); font-weight: 600; line-height: 1; letter-spacing: -.024em;
  color: var(--ink);
  /* On scroll the word drops faster than any frame, so the near ridges rise over it and it sinks. */
  transform: translate(calc(var(--px, 0) * .46 * var(--u)), calc(var(--py, 0) * 1 * var(--u)));
}

@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .wordmark {
    /* lit from the left, like the ridges */
    background: linear-gradient(96deg, #ffffff 0%, #ecf5f3 42%, #b4bec8 100%);
    -webkit-background-clip: text; background-clip: text;
    color: transparent;
  }
}

.hero-band {
  position: relative; z-index: 4; flex: none;
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 24px clamp(32px, 6vw, 96px); align-items: end;
  /* past the content width the band lines up with the column below it */
  margin-top: -1px; padding: 6px max(var(--pad), calc(50% - var(--max) / 2)) 40px;
  background: var(--base);
}
.lede { font-size: clamp(1.125rem, 1.45vw, 1.3125rem); line-height: 1.45; max-width: 56ch; }
.hero-actions { display: grid; gap: 14px; justify-items: start; }
.hero-actions .news { width: 100%; }

/* ---------- fields (the planes) ---------- */

.field {
  --fpad: clamp(76px, 10vw, 148px);
  --echo: rgba(154, 164, 174, .2); --rule: var(--line); --drop: rgba(0, 0, 0, .5);
  --lift-x: 16px; --lift-y: 19px;   /* how far a plate on this plane throws its shadow */
  --cw: 4px;                        /* how thick the cable is on this plane: nearer is thicker */
  position: relative; padding-block: var(--fpad);
}
.field-near { background: var(--base); }
.field-mid { background: linear-gradient(135deg, #1a1c21 0%, #14161a 44%, #111316 100%); --lift-x: 11px; --lift-y: 13px; --cw: 3px; }
.field-far { background: linear-gradient(135deg, #20232a 0%, #191b20 46%, #15171b 100%); --lift-x: 7px; --lift-y: 8px; --cw: 2px; }
.field-map { background: var(--screen); }
.field-far, .field-mid, .field-map, .chain-end { border-top: 1px solid var(--line); }

.head-split { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 24px clamp(32px, 6vw, 96px); align-items: end; }
.head-split > p, .head-split > div > p:not([class]) { font-size: 1.1875rem; line-height: 1.5; max-width: 50ch; }

.plane-tag { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; font-weight: 600; }
.mark { width: 40px; height: 40px; flex: none; }

/* a screenshot on its own: a plate above the field with one hard shadow down and right */
.plate picture, .plate img { display: block; }
.plate img { width: 100%; height: auto; background: var(--screen); outline: 1px solid var(--line); box-shadow: var(--lift-x) var(--lift-y) 0 var(--drop); }
.plate figcaption { margin-top: 34px; font-size: .9375rem; line-height: 1.45; color: var(--soft); max-width: 52ch; }

/* ---------- hear it ---------- */

.hear { padding-top: clamp(56px, 7vw, 104px); }
.hear-grid { display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.62fr); gap: 40px clamp(32px, 6vw, 96px); align-items: start; }
.hear-intro p { margin-top: 24px; color: var(--soft); }

.clips { list-style: none; display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; }
.clip { border-bottom: 1px solid var(--rule); }
.clip:first-child, .clip:nth-child(2) { border-top: 1px solid var(--rule); }
.clip-btn {
  display: grid; grid-template-columns: 40px minmax(0, 1fr) clamp(64px, 7.5vw, 104px) 2.4em;
  grid-template-rows: minmax(40px, auto) auto;
  grid-template-areas: "icon name env state" ". desc desc desc";
  column-gap: 16px; row-gap: 3px; align-items: center;
  width: 100%; padding: 14px 4px 17px 0;
  font: inherit; color: inherit; text-align: left;
  background: none; border: 0; border-radius: 0; cursor: pointer;
}
.clip-btn:hover .clip-icon { border-color: var(--signal); }
.clip-icon { grid-area: icon; position: relative; width: 40px; height: 40px; border: 1.5px solid rgba(236, 245, 243, .6); border-radius: 50%; }
.clip-icon::before {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 14px;
  transform: translate(-36%, -50%); background: var(--ink); clip-path: polygon(0 0, 100% 50%, 0 100%);
}
.clip-name { font-weight: 500; line-height: 1.2; }
.clip-desc { font-size: .9375rem; line-height: 1.4; color: var(--soft); }
.clip-cat { font-weight: 600; }
.clip-btn .clip-name { grid-area: name; }
.clip-btn .clip-desc { grid-area: desc; }
.clip-env { grid-area: env; width: 100%; height: 26px; }
.env-base { fill: rgba(154, 164, 174, .4); }
.env-fill { fill: var(--signal); }
.clip-state { grid-area: state; font-size: .9375rem; color: var(--soft); text-align: right; }

.clip.is-playing .clip-icon { background: var(--signal); border-color: var(--signal); }
.clip.is-playing .clip-icon::before { width: 12px; height: 12px; transform: translate(-50%, -50%); background: var(--dark); clip-path: none; }
.clip.is-playing .clip-name, .clip.is-playing .clip-state { color: var(--signal); }

/* without JS a clip is its name, its category and the browser's own player */
.clip:not(.is-ready) { display: grid; gap: 4px; padding: 14px 0; }
.clip:not(.is-ready) audio { width: 100%; height: 36px; margin-top: 6px; }
.clip.is-ready > :not(.clip-btn) { display: none; }

/* ---------- the map: one patch as a diagram you can trace ---------- */

.fig {
  --film: var(--screen); --sheet: var(--panel); --graphite: var(--muted);
  --c-ctl: var(--mod); --c-aud: var(--audio);
  --stroke: #c3ccd2;
  --hl: var(--active);
  position: relative; margin-top: clamp(44px, 6vw, 80px); min-width: 0;
}
.skip-inline { left: 0; top: 0; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-inline:focus { top: 4px; width: auto; height: auto; padding: 10px 16px; clip-path: none; background: var(--ink); color: var(--dark); }

.flow { display: block; width: 100%; height: auto; overflow: visible; }
.flow-wide { display: none; }
.flow-tall { max-width: 27rem; }
.flow text { fill: var(--ink); pointer-events: none; }
.flow .t { font-size: 14.5px; font-weight: 600; letter-spacing: -.01em; }
.flow-tall .t { font-size: 13px; }
.flow .t.g { font-size: 12.5px; fill: var(--graphite); }
.flow .s { font-size: 11.5px; fill: var(--graphite); }
.flow .s.m { font-size: 12px; }
.flow .c { font-size: 11.5px; font-weight: 500; letter-spacing: -.01em; }
.flow .fm { font-size: 10px; font-weight: 700; fill: var(--c-aud); }

.blk { cursor: pointer; transition: opacity .15s; }
.blk .box { fill: var(--sheet); stroke: var(--stroke); stroke-width: 1.25; }
.blk.is-group .box { fill: rgba(31, 34, 39, .4); stroke: var(--line-strong); stroke-width: 1.25; }
.blk.is-dashed .box { fill: none; stroke: var(--graphite); stroke-width: 1.25; stroke-dasharray: 4 3; }
.blk .halo { fill: none; stroke: var(--hl); stroke-width: 7; stroke-linejoin: round; opacity: 0; }
.blk:hover .box { stroke: var(--ink); stroke-width: 2; }
.blk:focus-visible { outline: none; }
.blk:focus-visible .box { stroke: var(--ink); stroke-width: 3.5; stroke-dasharray: none; }
.chip { fill: var(--rack); stroke: var(--line-strong); stroke-width: 1; }
.chip.is-empty { fill: none; stroke: var(--graphite); stroke-dasharray: 3 3; }
.plus, .gl { fill: none; stroke: var(--stroke); stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }
.plus { stroke: var(--graphite); }
.node { fill: var(--sheet); stroke: var(--stroke); stroke-width: 1.5; }
.deco { transition: opacity .15s; }

.wire { transition: opacity .15s; }
.wire .ink { fill: none; stroke: var(--stroke); stroke-width: 1.5; }
.wire .head { fill: var(--stroke); }
.wire .hl { fill: none; stroke: var(--hl); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0; }
.wire.k-note .ink { stroke-dasharray: .1 4.5; stroke-linecap: round; stroke-width: 2; }
.wire.k-ctl .ink { stroke: var(--c-ctl); stroke-dasharray: 5 3.5; }
.wire.k-ctl .head { fill: var(--c-ctl); }
.wire.k-aud .ink { stroke: var(--c-aud); stroke-dasharray: 3 2.5; }
.wire.k-aud .head { fill: var(--c-aud); }

/* tracing: the chosen path is drawn over with a highlighter, the rest steps back */
.tracing .blk:not(.on), .tracing .wire:not(.on), .tracing .deco:not(.on) { opacity: .34; }
.wire.on .hl {
  opacity: .55; stroke-dashoffset: 0;
  transition: stroke-dashoffset .24s ease-out calc(var(--d) * 55ms), opacity 0s calc(var(--d) * 55ms);
}
/* the traced line itself turns bright over its highlighter, so the path reads as lit */
.wire.on .ink { stroke: var(--ink); }
.wire.on .head { fill: var(--ink); }
.blk.on .halo { opacity: .55; transition: opacity .2s calc(var(--d) * 55ms); }
.blk.sel .box { fill: color-mix(in srgb, var(--hl) 26%, var(--sheet)); stroke: var(--ink); stroke-width: 2; }
/* the first time the map scrolls into view, the audio path is drawn once, notes to master */
.intro .wire.k-sig .hl, .intro .wire.k-note .hl {
  opacity: .55; stroke-dashoffset: 0;
  transition: stroke-dashoffset .3s ease-out calc(var(--d) * 95ms + 250ms), opacity 0s calc(var(--d) * 95ms + 250ms);
}

.readout {
  display: grid; gap: 10px 32px; align-items: start;
  margin-top: 16px; padding: 12px 0 14px; min-height: 9.4em;
  border-top: 1px solid var(--line-strong);
  font-size: 1rem; line-height: 1.45; color: var(--soft);
}
.readout-text { max-width: 78ch; }
.readout-text strong { font-weight: 600; margin-right: .35em; color: var(--ink); }
.readout-swatch { display: inline-block; width: .7em; height: .7em; margin-right: .5em; background: var(--hl); }
.readout-side { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.readout-link { font-weight: 600; white-space: nowrap; color: var(--ink); }
.fig figcaption { display: grid; gap: 6px 32px; margin-top: 14px; font-size: .9375rem; line-height: 1.45; color: var(--graphite); }
.fig figcaption p { max-width: 78ch; }
.line-key { list-style: none; display: flex; flex-wrap: wrap; gap: 3px 18px; }
.line-key li { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.line-key svg { width: 30px; height: 8px; overflow: visible; }
.line-key path { fill: none; stroke: var(--stroke); stroke-width: 1.5; }
.line-key .l-note { stroke-dasharray: .1 4.5; stroke-linecap: round; stroke-width: 2; }
.line-key .l-ctl { stroke: var(--c-ctl); stroke-dasharray: 5 3.5; }
.line-key .l-aud { stroke: var(--c-aud); stroke-dasharray: 3 2.5; }

@media (min-width: 1040px) {
  .flow-wide { display: block; }
  .flow-tall { display: none; }
  .readout { grid-template-columns: minmax(0, 1fr) auto; min-height: 4.6em; }
  .fig figcaption { grid-template-columns: minmax(0, 1fr) auto; }
}
/* between phone and desktop the tall drawing leaves room: the readout sits beside it */
@media (min-width: 720px) and (max-width: 1039.98px) {
  .fig { display: grid; grid-template-columns: 27rem minmax(0, 1fr); column-gap: 40px; align-items: start; }
  .flow-tall { grid-row: 1 / span 2; }
  .readout { position: sticky; top: 24px; margin-top: 0; min-height: 13em; align-content: start; }
  .fig figcaption { grid-column: 2; align-self: end; }
}

/* ---------- the breakdown: one cable, three planes ---------- */

/* the signal cable, in the page margin, running through the sections' padding */
.chain > .wrap::before {
  content: ""; position: absolute; z-index: 1;
  left: var(--cx); top: calc(-1 * var(--fpad)); bottom: calc(-1 * var(--fpad));
  width: var(--cw); margin-left: calc(var(--cw) / -2);
  background: var(--signal);
}
.chain-start > .wrap::before { top: 14px; }
/* the modulation rail beside it: it starts at the near plane and reaches back to the sources */
.chain > .wrap::after {
  content: ""; position: absolute; z-index: 1;
  left: var(--rx); top: calc(-1 * var(--fpad)); bottom: calc(-1 * var(--fpad));
  border-left: 2px dotted var(--mod);
}
.chain-start > .wrap::after { top: 96px; }
.chain-end > .wrap::after { bottom: auto; height: calc(var(--fpad) + 16px); }

.stage-head { position: relative; align-items: start; }
.stage-head > div > p + p { margin-top: 16px; }
.stage-head .plane-tag { position: relative; }
/* jack: the plane's mark sits on the cable where the plane begins */
.jack { display: contents; }
.chain-end .stage-head::after {
  content: ""; position: absolute; z-index: 2;
  left: calc(var(--rx) - var(--pad) - 4px); top: 11px;
  width: 10px; height: 10px; border-radius: 50%; background: var(--mod);
}

.key { display: flex; flex-wrap: wrap; gap: 4px 28px; font-size: .9375rem; color: var(--soft); }
.key span::before { content: ""; display: inline-block; vertical-align: middle; width: 26px; margin-right: 9px; border-top: 2px solid var(--signal); }
.key .key-mod::before { border-top: 2px dotted var(--mod); }

/* a strip: the product's strip anatomy at page scale, as a plate lifted off the plane */
.strip {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 22rem) minmax(0, 1fr);
  gap: 22px 44px; align-items: start;
  margin-top: 30px; padding: 26px 30px 28px 52px;
  color: var(--ink); background: var(--plate);
  border: 1px solid var(--line); border-left: 4px solid var(--c, var(--line-strong));
  box-shadow: var(--lift-x) var(--lift-y) 0 var(--drop);
}
.strip--stack, .strip--text, .strip--rack { grid-template-columns: minmax(0, 1fr); }
.stage-head + .strip { margin-top: clamp(44px, 6vw, 80px); }

/* stub: from the cable into the strip */
.strip::before {
  content: ""; position: absolute; z-index: 1; right: 100%; top: var(--stub-y);
  width: calc(var(--pad) - var(--cx)); height: var(--cw); margin: calc(var(--cw) / -2) 4px 0 0;
  background: var(--signal);
}
/* tap: the modulation rail feeds this strip */
.strip--mod::after {
  content: ""; position: absolute; z-index: 2;
  left: calc(var(--rx) - var(--pad) - 8px); top: calc(var(--stub-y) - 5px);
  width: 10px; height: 10px; border-radius: 50%; background: var(--mod);
  box-shadow: 0 0 0 2px var(--screen);
}

.strip-tag {
  position: absolute; left: 14px; top: 26px;
  writing-mode: vertical-rl; transform: rotate(180deg);
  font-size: .875rem; font-weight: 600; line-height: 1; letter-spacing: .02em;
  color: var(--c); white-space: nowrap;
}
.strip-text { max-width: 40rem; }
.strip-text p { font-size: 1.0625rem; color: var(--soft); }
.strip-text h3 + p, .strip-text p + p { margin-top: 8px; }
.strip-text--cols { display: grid; grid-template-columns: minmax(0, 36rem) minmax(0, 1fr); gap: 16px 44px; max-width: none; align-items: start; }

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 7px; font-size: .9375rem; }
.strip-text > .chips { margin-top: 16px; }
.chips li { padding: 3px 11px; background: var(--raised); border: 1px solid var(--line); line-height: 1.5; }
.chips li[style]::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; background: var(--d); }

/* the rack: whole strips, as an introduction to the colour code */
.rack-group + .rack-group { margin-top: 18px; }
.rack-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; max-width: none; margin-bottom: 10px; font-size: 1rem; color: var(--soft); }
.rack picture, .rack img { display: block; }
.rack img { width: 100%; height: auto; }
.rack figcaption { max-width: 60ch; font-size: .9375rem; line-height: 1.45; color: var(--soft); }
.rack figcaption { margin-top: 14px; }
.shot figcaption { padding-top: 14px; }

/* a screenshot with pins that point at actual controls */
.shot { --gap: 12px; --lab: 26px; min-width: 0; }
.shot figcaption { font-size: .9375rem; line-height: 1.45; color: var(--soft); max-width: 60ch; }
.shot figcaption:empty { display: none; }
.shot-stage { position: relative; container-type: inline-size; width: min(var(--w), 100%); }
.shot-stage picture, .shot-stage img { display: block; }
.shot-stage img { width: 100%; height: auto; outline: 1px solid var(--line); }
.pins { list-style: none; counter-reset: pin; }
.pin { counter-increment: pin; --pc: var(--c, var(--ink)); }
.pin--mod { --pc: var(--mod); }

@media (min-width: 900px) {
  .shot--t .shot-stage { margin-top: calc(var(--gap) + var(--lab)); }
  .shot--b .shot-stage { margin-bottom: calc(var(--gap) + var(--lab)); }
  .pins { position: absolute; inset: 0; }
  .pin { position: absolute; left: calc(var(--x) * 1%); width: 0; border-left: 1px solid rgba(236, 245, 243, .7); }
  .pin--up { top: calc(var(--gap) * -1); height: calc(var(--y) * 1% + var(--gap)); }
  .pin--down { top: calc(var(--y) * 1%); bottom: calc(var(--gap) * -1); }
  .pin::before {
    content: ""; position: absolute; left: -4.5px;
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--pc); box-shadow: 0 0 0 2px rgba(11, 13, 16, .9);
  }
  .pin--up::before { bottom: -4px; }
  .pin--down::before { top: -4px; }
  .pin span {
    position: absolute; left: 0; transform: translateX(-50%);
    white-space: nowrap; font-size: .9375rem; font-weight: 500; line-height: var(--lab); color: var(--ink);
  }
  .pin--up span { bottom: 100%; }
  .pin--down span { top: 100%; }
  .pin--r span { transform: none; left: -7px; }
  .pin--l span { transform: none; left: auto; right: -7px; }
}

/* the end of the cable */
.master { position: relative; margin-top: 44px; padding: 4px 0 0; }
.master::before {
  content: ""; position: absolute; z-index: 3;
  left: calc(var(--cx) - var(--pad) - 11px); top: 4px;
  width: 22px; height: 22px; border-radius: 50%;
  border: 4px solid var(--signal); background: var(--base);
}
.master::after {
  content: ""; position: absolute; z-index: 2;
  left: calc(var(--cx) - var(--pad) - 9px); top: 15px; bottom: calc(-1 * var(--fpad));
  width: 18px; background: var(--base);
}
.master p { margin-top: 6px; color: var(--soft); }
.master .master-more { margin-top: 14px; color: var(--ink); font-weight: 500; }

/* signal on the cable while a clip plays */
.is-sounding .chain > .wrap::before {
  background:
    linear-gradient(to bottom, #fff 0 10px, transparent 10px) 0 0 / 100% 44px repeat-y,
    var(--signal);
  animation: flow .9s linear infinite;
}
@keyframes flow { to { background-position: 0 44px, 0 0; } }

@media (min-width: 1100px) {
  /* room in the margin: the plane mark becomes a jack on the cable */
  .stage-head > :last-child { padding-top: 46px; }   /* level with the heading, under the plane tag */
  .jack {
    position: absolute; z-index: 2; left: calc(var(--cx) - var(--pad) - 23px); top: 50%; margin-top: -23px;
    display: grid; place-items: center; width: 46px; height: 46px;
    background: var(--screen); border: 1.5px solid var(--signal); border-radius: 50%;
  }
  .jack .mark { width: 28px; height: 28px; }
  .chain-end .stage-head::after { display: none; }   /* the rail starts at the jack itself */
}

/* ---------- presets ---------- */

.presets { padding-top: clamp(20px, 3vw, 40px); }
.cats { list-style: none; display: flex; flex-wrap: wrap; gap: 0 .7em; margin-top: clamp(40px, 5vw, 72px); font-size: clamp(1.75rem, 3.9vw, 3.05rem); font-weight: 300; line-height: 1.22; letter-spacing: -.012em; }
.cats li:nth-child(odd) { color: var(--muted); }
.plate-browser { margin-top: clamp(48px, 6vw, 84px); }

.codes { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: 32px clamp(32px, 6vw, 96px); align-items: start; margin-top: clamp(64px, 8vw, 112px); }
.codes-text p { margin-top: 10px; color: var(--soft); }
.codes-text code { color: var(--ink); }
.code { padding: 22px 24px 24px; background: var(--screen); border: 1px solid var(--line); box-shadow: 16px 18px 0 var(--drop); }
.code figcaption { font-size: .9375rem; line-height: 1.45; color: var(--soft); }
.code pre { margin: 14px 0 18px; white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--mono); font-size: 1rem; line-height: 1.7; color: var(--ink); }
.code code { font-size: inherit; }
.code code::first-line { color: inherit; }
.code-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.copy-status { font-size: .9375rem; color: var(--soft); }

/* ---------- plugin and browser ---------- */

.formats-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px clamp(32px, 6vw, 96px); align-items: center; }
.formats-text p { margin-top: 24px; }
.formats-text p + p { margin-top: 14px; color: var(--soft); }
.format-list { list-style: none; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; font-weight: 600; }
.format-list li { padding: 8px 16px; border: 1.5px solid currentColor; line-height: 1.25; }
.format-list span { font-weight: 400; }

.sight { position: relative; aspect-ratio: 5 / 4; }
.sight svg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; overflow: visible; }
.sight path { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
.sight .sight-inner { opacity: .28; }
.sight-node { position: absolute; display: grid; max-width: 46%; line-height: 1.3; }
.sight-node strong { font-weight: 600; }
.sight-node span { font-size: .9375rem; color: var(--soft); }
.sight-node::before { content: ""; position: absolute; width: 11px; height: 11px; border-radius: 50%; background: var(--ink); }
.sight-apex { left: 50%; top: 14%; transform: translate(-50%, calc(-100% - 16px)); text-align: center; max-width: 60%; }
.sight-apex::before { left: 50%; top: calc(100% + 16px); margin: -5.5px 0 0 -5.5px; background: var(--signal); }
.sight-left { left: 8%; top: 86%; transform: translate(-12px, 16px); }
.sight-left::before { left: 12px; top: -16px; margin: -5.5px 0 0 -5.5px; }
.sight-right { right: 8%; top: 86%; transform: translate(12px, 16px); text-align: right; }
.sight-right::before { right: 12px; top: -16px; margin: -5.5px -5.5px 0 0; }

/* ---------- closing ---------- */

.closing { padding-bottom: 0; }
.closing-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 40px clamp(32px, 6vw, 96px); align-items: start; }
.closing h2 { font-size: clamp(2.75rem, 7vw, 5.75rem); }
.closing-actions { display: grid; gap: 22px; justify-items: start; }
.closing-actions .news { display: grid; gap: 10px; width: 100%; max-width: 520px; margin-top: 10px; }
.closing-actions .news label { font-size: 1rem; color: var(--soft); }
.news-row { display: flex; flex-wrap: wrap; gap: 10px; }
.prerelease { font-size: .9375rem; color: var(--soft); }

/* the hero's near frames once more, to walk out through */
.echo { display: block; width: 100%; max-width: none; height: clamp(150px, 19.45vw, 420px); margin-top: clamp(28px, 4vw, 64px); }
.echo-pos { stroke: var(--signal); }

.foot { padding: 28px 0 36px; background: var(--screen); border-top: 1px solid var(--line); font-size: 1rem; color: var(--muted); }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; }
.foot-brand { display: flex; align-items: center; gap: 10px; }
.foot-brand a { color: var(--ink); margin-left: -.2em; padding-left: .2em; }
.foot .brand-mark { width: 24px; height: 24px; color: var(--ink); }

/* ---------- portrait and small screens ---------- */

@media (max-width: 1099.98px) {
  .strip, .strip-text--cols { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 900px) {
  .hero { height: auto; min-height: 100vh; min-height: 100svh; }
  .terrain {
    /* taller box: the drawing is scaled by height and cropped at the sides */
    --u: calc(100vw * 340 / 390 / 700);
    flex: none; height: calc(100vw * 340 / 390); max-height: none;
  }
  .wordmark { left: 50%; translate: -50% 0; font-size: calc(188 * var(--u)); bottom: calc(219 * var(--u)); }
  .nav-links li:not(:first-child) { display: none; }

  .hero-band, .head-split, .hear-grid, .codes, .formats-grid, .closing-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-band { align-items: start; padding-bottom: 36px; }
  .head-split { align-items: start; }
  .field { --lift-x: 10px; --lift-y: 12px; }
  .field-mid { --lift-x: 8px; --lift-y: 9px; }
  .field-far { --lift-x: 5px; --lift-y: 6px; }
  .code { box-shadow: 10px 12px 0 var(--drop); padding: 18px; }
  .sight { aspect-ratio: 1 / 1; margin-bottom: 64px; }
}

/* below 900px every figure uses its narrow crop (see the <source> elements in index.html) */
@media (max-width: 899.98px) {
  .phone-only { display: inline; }

  /* pins become numbers on the picture and a list under it */
  .shot-stage { width: min(100%, 30rem); }
  .pins { display: grid; gap: 7px; margin-top: 14px; font-size: 1rem; line-height: 1.35; }
  .pin { display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 10px; align-items: start; }
  .pin--wide { display: none; }
  .pin::before, .pin span::before {
    content: counter(pin); display: grid; place-items: center;
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--pc); color: var(--dark);
    font-size: .8125rem; font-weight: 700; line-height: 1;
  }
  .pin::before {
    position: absolute; left: calc(var(--mx) * 1%); top: calc(var(--my) * var(--mar) * 1cqw);
    margin: 3px 0 0 -11px; box-shadow: 0 0 0 2px rgba(11, 13, 16, .9);
  }
  .pin--up::before { margin-top: -25px; }
  .pin--m-side::before { margin: -11px 0 0 5px; }   /* beside the control, where below would cover the next row */
  .shot--t .shot-stage { margin-top: 24px; }
  .shot--b .pins { margin-top: 32px; }
  .pin span { display: contents; }
  .pin span::before { grid-column: 1; }
}

@media (max-width: 719.98px) {
  :root { --cx: 7px; --rx: 14px; --stub-y: 27px; }
  body { font-size: 1.0625rem; }
  .field { --cw: 3px; }
  .field-far { --cw: 2px; }
  .field-near { --cw: 4px; }

  .clips { grid-template-columns: minmax(0, 1fr); }
  .clip:nth-child(2) { border-top: 0; }
  .btn { padding-inline: 18px; }
  .hero-actions .btn-primary, .closing-actions .btn-primary { width: 100%; }

  .chain-start > .wrap::after { top: 70px; }
  .chain-end > .wrap::after { height: calc(var(--fpad) + 24px); }
  .chain-end .stage-head::after { top: 15px; }
  .strip { gap: 16px; margin-top: 22px; padding: 16px 14px 18px; }
  .strip-tag { position: static; display: block; margin-bottom: -8px; writing-mode: horizontal-tb; transform: none; }
  .strip-text p { font-size: 1rem; }
  .play { min-height: 44px; }

  .master { margin-top: 36px; }
  .master::before { left: calc(var(--cx) - var(--pad) - 8px); width: 16px; height: 16px; border-width: 3px; }
  .master::after { left: calc(var(--cx) - var(--pad) - 6px); width: 12px; top: 12px; }
  .echo { height: 140px; }

  /* the readout docks to the bottom of the screen while the tall drawing scrolls past */
  .readout {
    position: sticky; bottom: 0; z-index: 5;
    background: var(--film); box-shadow: 0 0 0 100vmax var(--film); clip-path: inset(0 -100vmax);
  }
  .plays--rows { grid-template-columns: minmax(0, 1fr); padding-top: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .frame, .wordmark { transform: none !important; }
  .btn, .blk, .wire, .wire .hl, .blk .halo, .deco { transition: none !important; }
  .is-sounding .chain > .wrap::before { animation: none; background: var(--signal); }
}
