/* Loadout site: Patch Bay. One store routed to many clients.
   Dark by default; a light theme follows prefers-color-scheme.
   Every text color pair is checked by site/tools/contrast.mjs. */

@font-face {
  font-family: "Bricolage";
  src: url(../fonts/bricolage-grotesque-latin-standard-normal.woff2) format("woff2-variations");
  font-weight: 200 800; font-stretch: 75% 100%; font-display: swap;
}
@font-face { font-family: "Martian Mono"; src: url(../fonts/martian-mono-latin-400-normal.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Martian Mono"; src: url(../fonts/martian-mono-latin-600-normal.woff2) format("woff2"); font-weight: 600; font-display: swap; }

/* Theme tokens. contrast.mjs reads both blocks; keep one declaration per line. */
:root {
  --bg: #120d2b;
  --panel: #1c1540;
  --panel-2: #251c52;
  --rule: #3b307a;
  --rule-soft: #2f2665;
  --text: #f1edff;
  --muted: #b9b0de;
  --accent: #f28b3c;
  --accent-text: #f5a061;
  --on-accent: #1a0f05;
  --accent-hover: #ffd8b0;
  --ok-text: #5fe0a5;
  --pending-text: #ffc867;
  --focus: #ffd8b0;
  --skip-bg: #ffd8b0;
  --skip-text: #120d2b;
  --led-off: #3c3366;
  --led-on: #5fe0a5;
  --jack-ring: #5d548c;
  --vault-icon: #ffd8b0;
  --cable-1: #f28b3c;
  --cable-2: #9c8bff;
  --cable-3: #5fe0a5;
  --cable-4: #ffd8b0;
  --cable-5: #7cc7ff;
  --pulse: #f1edff;
  --shadow: 0 1px 0 rgba(0, 0, 0, 0);

  /* Code screens stay dark in both themes. */
  --scr-bg: #0b081c;
  --scr-text: #f1edff;
  --scr-muted: #b9b0de;
  --scr-str: #ffd8b0;
  --scr-key: #f5a061;
  --scr-add: #5fe0a5;
  --scr-mod: #ffc21a;
  --scr-hl-bg: #3a2530;
  --scr-hl-text: #ffd8b0;
  --scr-rule: #3b307a;
  --scr-btn: #251c52;

  --sans: "Bricolage", system-ui, sans-serif;
  --mono: "Martian Mono", ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;
  --wrap: 1240px;
  --pad: clamp(20px, 4vw, 48px);
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f7f4ff;
    --panel: #ffffff;
    --panel-2: #efebff;
    --rule: #d3cbf2;
    --rule-soft: #e3ddf8;
    --text: #19133a;
    --muted: #4d4572;
    --accent: #f28b3c;
    --accent-text: #a4460b;
    --on-accent: #1a0f05;
    --accent-hover: #f6a463;
    --ok-text: #0b6e47;
    --pending-text: #7a4a00;
    --focus: #5a3fd0;
    --skip-bg: #19133a;
    --skip-text: #ffffff;
    --led-off: #cfc8ea;
    --led-on: #13a86b;
    --jack-ring: #9d95c4;
    --vault-icon: #a4460b;
    --cable-1: #e06d1c;
    --cable-2: #6a52e6;
    --cable-3: #12976a;
    --cable-4: #c98a00;
    --cable-5: #2b8fd6;
    --pulse: #ffffff;
    --shadow: 0 1px 2px rgba(40, 24, 110, .06), 0 8px 24px rgba(40, 24, 110, .06);
    color-scheme: light;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--sans);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .18em; }
h1, h2, h3, p, figure { margin: 0; }
code, .mono { font-family: var(--mono); font-size: .8em; letter-spacing: -.01em; }
p code, li code, td code, span code { overflow-wrap: anywhere; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
[id] { scroll-margin-top: 16px; }
main:focus { outline: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

.skip { position: absolute; left: 12px; top: -80px; z-index: 10; background: var(--skip-bg); color: var(--skip-text); padding: 10px 14px; border-radius: 6px; font-weight: 650; }
.skip:focus { top: 12px; }

/* Header */
.top { max-width: var(--wrap); margin: 0 auto; padding: 20px var(--pad); display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 750; font-size: 22px; font-stretch: 85%; }
.top__nav { margin-left: auto; }
.nav { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav a { display: block; padding: 8px 12px; border-radius: 999px; text-decoration: none; font-weight: 550; font-size: 15px; color: var(--muted); }
.nav a:hover { color: var(--text); background: var(--panel); }
.nav .nav__gh { color: var(--text); box-shadow: inset 0 0 0 1.5px var(--rule); }

.readout { display: inline-flex; align-items: center; gap: 10px; font: 600 12px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.led { width: 9px; height: 9px; border-radius: 50%; background: var(--led-off); flex: none; }
.led--on { background: var(--led-on); box-shadow: 0 0 10px var(--led-on); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 12px; font: 650 16px/1.1 var(--sans); text-decoration: none; text-align: center; transition: background-color .15s; }
.btn--signal { background: var(--accent); color: var(--on-accent); }
.btn--signal:hover { background: var(--accent-hover); }
.btn--line { color: var(--text); box-shadow: inset 0 0 0 1.5px var(--rule); }
.btn--line:hover { background: var(--panel-2); }

/* Hero */
.hero { max-width: var(--wrap); margin: 0 auto; padding: 24px var(--pad) 88px; }
.hero__copy { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: "r r" "h l" "h c"; gap: 18px 56px; align-items: end; }
.hero__copy .readout { grid-area: r; }
.hero h1 { grid-area: h; font-size: clamp(46px, 7vw, 100px); line-height: .92; font-weight: 800; font-stretch: 75%; letter-spacing: -.02em; }
.hero h1 em { font-style: normal; color: var(--accent-text); }
.lede { grid-area: l; color: var(--muted); font-size: 18px; }
.cta { grid-area: c; display: grid; gap: 12px; }
.cta__row { display: flex; flex-wrap: wrap; gap: 12px; }
.cta__row .btn--signal { min-width: 220px; }
.cta__meta { color: var(--muted); font-size: 12px; line-height: 1.6; min-height: 3.2em; }

/* Patch bay */
.bay { margin: 48px 0 0; }
.bay__rack {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(48px, 2fr) minmax(0, 5fr);
  padding: 20px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 12px 12px, var(--rule) 2.5px, transparent 3px) 0 0 / 100% 100% no-repeat,
    radial-gradient(circle at calc(100% - 12px) 12px, var(--rule) 2.5px, transparent 3px) 0 0 / 100% 100% no-repeat,
    var(--panel);
  box-shadow: inset 0 0 0 1px var(--rule), var(--shadow);
}
.module { position: relative; z-index: 1; background: var(--panel-2); border-radius: 14px; box-shadow: inset 0 0 0 1px var(--rule); padding: 14px 0 10px; }
.module__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 0 18px 12px; border-bottom: 1px solid var(--rule); font-weight: 750; font-size: 15px; letter-spacing: .02em; text-transform: uppercase; font-stretch: 80%; }
.module__head .mono { color: var(--muted); text-transform: none; font-weight: 400; }
.jacks { list-style: none; margin: 0; padding: 6px 0; }
.jacks li { position: relative; display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 18px; }
.jacks li + li { border-top: 1px dashed var(--rule-soft); }
.jacks b { font-weight: 650; font-size: 17px; }
.jacks .mono { color: var(--muted); }
.jack { width: 18px; height: 18px; border-radius: 50%; flex: none; background: var(--bg); box-shadow: inset 0 0 0 3px var(--c, var(--jack-ring)), 0 0 0 2px var(--panel-2); }
.c1 { --c: var(--cable-1); } .c2 { --c: var(--cable-2); } .c3 { --c: var(--cable-3); } .c4 { --c: var(--cable-4); } .c5 { --c: var(--cable-5); }
.jacks--out li { padding-right: 0; }
.jacks--out .jack { position: absolute; right: -9px; top: 50%; margin-top: -9px; }
.jacks--out li > b { margin-right: auto; }
.jacks--out li > .mono { margin-right: 26px; }
.jacks--in li { padding-left: 26px; }
.jacks--in .jack { position: absolute; left: -9px; top: 50%; margin-top: -9px; }
.jacks--in .led { margin-left: auto; transition: background-color .3s, box-shadow .3s; }
.jacks--in li.is-live .led { background: var(--led-on); box-shadow: 0 0 10px var(--led-on); }
.chip { display: inline-block; font: 600 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--on-accent); background: var(--accent); padding: 5px 7px; border-radius: 5px; vertical-align: .15em; }
.jacks .foreign { font-size: 11px; color: var(--muted); border: 1px dashed var(--muted); border-radius: 5px; padding: 3px 6px; }
.jacks .jacks__more { padding-left: 26px; }
.jacks__more .mono { font-size: 12px; line-height: 1.6; padding: 6px 0; }
.vault { display: flex; gap: 12px; margin: 6px 12px 4px; padding: 12px; border-radius: 10px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--rule); font-size: 14px; color: var(--muted); }
.vault svg { width: 20px; height: 20px; flex: none; color: var(--vault-icon); margin-top: 2px; }
.vault b { color: var(--text); }
.vault .mono { color: var(--accent-text); font-size: 11px; }

.cables { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 2; }
.cable { fill: none; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.1s cubic-bezier(.6, 0, .2, 1) forwards; animation-delay: var(--d, 0s); }
.cable--glow { stroke-width: 10; opacity: .16; }
.pulse { fill: none; stroke-width: 4; stroke-linecap: round; stroke: var(--pulse); stroke-dasharray: .03 .97; opacity: 0; animation: pulse 2.8s linear infinite; animation-delay: var(--d, 0s); }
.bay__cap { margin-top: 14px; color: var(--muted); font-size: 12px; }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pulse { 0% { stroke-dashoffset: 1; opacity: .9; } 100% { stroke-dashoffset: 0; opacity: .9; } }

/* Sections */
.sec { max-width: var(--wrap); margin: 0 auto; padding: 72px var(--pad); border-top: 1px solid var(--rule); }
.sec-head { margin-bottom: 36px; max-width: 820px; }
.sec-head h2 { margin-top: 12px; font-size: clamp(36px, 5vw, 64px); line-height: 1; font-weight: 800; font-stretch: 78%; letter-spacing: -.015em; }
.sec-lede { margin-top: 16px; color: var(--muted); font-size: 18px; }
.aside { margin-top: 28px; max-width: 820px; color: var(--muted); font-size: 15px; }
.aside a, .sec-lede a, .note a { color: var(--text); }

/* Problem */
.files { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.files li { display: grid; gap: 4px; padding: 16px 18px; border-radius: 14px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--rule), var(--shadow); }
.files b { font-size: 18px; font-weight: 700; font-stretch: 88%; }
.files code { font-size: 12.5px; color: var(--text); overflow-wrap: anywhere; }
.files .fmt { color: var(--accent-text); font-size: 11px; letter-spacing: .04em; }
.pains { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.pains li { padding-left: 16px; border-left: 3px solid var(--accent); color: var(--muted); font-size: 16px; }
.pains b { color: var(--text); }

/* How it works */
.path { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.unit { position: relative; display: flex; flex-direction: column; gap: 14px; background: var(--panel); border-radius: 18px; padding: 20px; box-shadow: inset 0 0 0 1px var(--rule), var(--shadow); }
.unit:nth-child(even)::before { content: ""; position: absolute; left: -23px; top: 44px; width: 23px; height: 4px; background: var(--accent); border-radius: 2px; }
.unit__n { color: var(--accent-text); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.unit h3 { font-size: 23px; line-height: 1.15; font-weight: 700; font-stretch: 85%; }
.unit > p:last-child { color: var(--muted); font-size: 15.5px; }
.unit > p:last-child b { color: var(--text); }
.screen { margin: 0; padding: 14px 16px; border-radius: 10px; background: var(--scr-bg); box-shadow: inset 0 0 0 1px var(--scr-rule); overflow-x: auto; color: var(--scr-text); line-height: 1.7; min-height: 196px; }
.screen code { font-size: 12px; white-space: pre; }
.screen .c { color: var(--scr-muted); }
.screen .s { color: var(--scr-str); }
.screen .k { color: var(--scr-key); }
.screen .a { color: var(--scr-add); }
.screen .m { color: var(--scr-mod); }
.undo { display: inline-block; padding: 2px 8px; border-radius: 6px; box-shadow: inset 0 0 0 1px var(--scr-text); }

/* One entry, many dialects */
.rosetta { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 22px; align-items: start; }
.rosetta__out { display: grid; gap: 14px; }
.rosetta__src, .render { border-radius: 16px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--rule), var(--shadow); overflow: hidden; }
.rosetta__src { position: sticky; top: 16px; }
.rosetta__h { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; padding: 12px 16px; border-bottom: 1px solid var(--rule); font-size: 17px; font-weight: 700; font-stretch: 85%; }
.rosetta__h code { color: var(--muted); font-weight: 400; font-size: 12px; }
.rosetta pre { margin: 0; padding: 16px; overflow-x: auto; background: var(--scr-bg); color: var(--scr-text); line-height: 1.7; }
.rosetta pre code { font-size: 12px; white-space: pre; }
.rosetta mark { background: var(--scr-hl-bg); color: var(--scr-hl-text); border-radius: 4px; padding: 1px 3px; box-shadow: inset 0 -2px 0 var(--accent); }

/* Clients */
.tiers { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 5fr); gap: 22px; align-items: start; }
.tier { background: var(--panel); border-radius: 18px; box-shadow: inset 0 0 0 1px var(--rule), var(--shadow); padding: 18px 20px 20px; }
.tier__head { display: grid; gap: 2px; margin-bottom: 12px; }
.tier__head h3 { font-size: 22px; font-weight: 750; font-stretch: 85%; }
.tier__head .mono { color: var(--muted); font-size: 11px; }
.paths { width: 100%; border-collapse: collapse; font-size: 15px; }
.paths thead th { font: 600 11px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--muted); text-align: left; padding: 6px 0; }
.paths tbody th, .paths td { text-align: left; padding: 9px 0; border-top: 1px dashed var(--rule-soft); vertical-align: top; }
.paths tbody th { font-weight: 650; padding-right: 16px; white-space: nowrap; }
.paths td code { font-size: 12px; overflow-wrap: anywhere; }
.paths .os { display: block; color: var(--muted); font-size: 10.5px; font-weight: 400; }
.names { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.names li { padding: 6px 11px; border-radius: 999px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--rule); font-size: 15px; font-weight: 550; }
.names--dense li { font-size: 14px; padding: 4px 10px; font-weight: 500; }

/* Safety */
.mods { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.mod { background: var(--panel); border-radius: 16px; padding: 20px; box-shadow: inset 0 0 0 1px var(--rule), var(--shadow); }
.mod h3 { font-size: 20px; font-weight: 700; font-stretch: 88%; margin: 14px 0 6px; line-height: 1.2; }
.mod p { color: var(--muted); font-size: 15.5px; line-height: 1.55; }
.mod h3:first-child { margin-top: 0; }
.mod code { color: var(--text); overflow-wrap: anywhere; }
.sw { position: relative; display: block; width: 42px; height: 22px; border-radius: 999px; background: var(--led-on); }
.sw::after { content: ""; position: absolute; right: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--panel); }

/* Screens */
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.monitor { padding: 10px; border-radius: 18px; background: var(--scr-bg); box-shadow: inset 0 0 0 1px var(--rule), var(--shadow); }
.monitor img { border-radius: 10px; width: 100%; aspect-ratio: 1088 / 680; background: var(--panel-2); }
.monitor figcaption { color: var(--scr-muted); padding: 10px 4px 2px; font-size: 12px; }

/* Install */
.console { max-width: 900px; background: var(--panel); border-radius: 18px; box-shadow: inset 0 0 0 1px var(--rule), var(--shadow); overflow: hidden; }
.tabs { display: flex; gap: 4px; padding: 8px; background: var(--panel-2); border-bottom: 1px solid var(--rule); }
.tabs[hidden] { display: none; }
.tabs [role="tab"] { font: 600 15px/1 var(--sans); color: var(--muted); background: transparent; border: 0; border-radius: 10px; padding: 12px 16px; min-height: 44px; cursor: pointer; }
.tabs [role="tab"][aria-selected="true"] { color: var(--on-accent); background: var(--accent); }
.tabs [role="tab"]:hover:not([aria-selected="true"]) { color: var(--text); background: var(--panel); }
.panel { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; justify-items: start; padding: 26px; }
.panel + .panel { border-top: 1px solid var(--rule); }
.panel[hidden] { display: none; }
.js .panel + .panel { border-top: 0; }
.panel__h { font-size: 22px; font-weight: 750; font-stretch: 85%; }
.js .panel__h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.panel > p { color: var(--muted); }
.panel > p code { color: var(--text); }
.dl { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.dl__file { color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }
.term { display: flex; align-items: center; gap: 12px; width: 100%; background: var(--scr-bg); color: var(--scr-text); border-radius: 10px; padding: 8px 8px 8px 16px; min-height: 48px; box-shadow: inset 0 0 0 1px var(--scr-rule); }
.term code { flex: 1; min-width: 0; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 12.5px; line-height: 1.6; padding: 6px 0; }
.prompt { font: 600 12px/1 var(--mono); color: var(--scr-key); }
.copy { font: 600 12px/1 var(--mono); color: var(--scr-text); background: var(--scr-btn); border: 0; border-radius: 7px; padding: 10px 12px; min-height: 36px; cursor: pointer; box-shadow: inset 0 0 0 1px var(--scr-rule); min-width: 70px; }
.copy:hover { background: var(--scr-rule); }
.copy[hidden] { display: none; }
.chans { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; width: 100%; }
.chans:empty { display: none; }
.chan { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 14px; border-radius: 12px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--rule); }
.chan__head { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.chan__head b { font-weight: 650; }
.status { font: 600 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 5px 7px; border-radius: 5px; }
.status--pending { color: var(--pending-text); box-shadow: inset 0 0 0 1px currentColor; }
.status--live { color: var(--ok-text); box-shadow: inset 0 0 0 1px currentColor; }
.chan .note { color: var(--muted); font-size: 13.5px; }
.chan .note a { color: var(--text); }
.note { color: var(--muted); font-size: 14px; }
.note code { color: var(--text); }

/* Open source */
.links { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.links a { display: grid; gap: 4px; height: 100%; padding: 18px; border-radius: 14px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--rule), var(--shadow); text-decoration: none; transition: background-color .15s; }
.links a:hover { background: var(--panel-2); }
.links b { font-size: 18px; font-weight: 700; font-stretch: 88%; }
.links b::after { content: " \2192"; color: var(--accent-text); }
.links span { color: var(--muted); font-size: 14.5px; line-height: 1.45; }

/* Footer */
.foot { max-width: var(--wrap); margin: 0 auto; padding: 40px var(--pad) 56px; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; align-items: center; gap: 18px 40px; }
.foot__brand { display: flex; align-items: center; gap: 10px; font-weight: 750; font-size: 20px; font-stretch: 85%; }
.foot__links { display: flex; flex-wrap: wrap; gap: 6px 22px; list-style: none; margin: 0; padding: 0; }
.foot__links a { display: inline-block; padding: 6px 0; }
.foot__fine { flex-basis: 100%; color: var(--muted); font-size: 12px; }

/* 404 */
.lost { max-width: var(--wrap); margin: 0 auto; padding: 48px var(--pad) 120px; display: grid; gap: 22px; justify-items: start; }
.lost h1 { font-size: clamp(44px, 7vw, 92px); line-height: .95; font-weight: 800; font-stretch: 75%; letter-spacing: -.02em; }
.lost p:not(.readout) { color: var(--muted); max-width: 620px; font-size: 18px; }
.lost .cta__row { margin-top: 8px; }

/* Responsive */
@media (max-width: 1100px) {
  .tiers { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .tier--daily { grid-column: 1 / -1; }
  .links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1020px) {
  .hero__copy { grid-template-columns: minmax(0, 1fr); grid-template-areas: "r" "h" "l" "c"; }
  .rosetta { grid-template-columns: minmax(0, 1fr); }
  .rosetta__src { position: static; }
  .files, .mods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pains { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav li:not(:last-child):not(:nth-last-child(3)) { display: none; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .readout { letter-spacing: .06em; font-size: 11px; }
  .bay__rack { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 72px auto; padding: 14px; }
  .jacks .jack { display: none; }
  .bay__gap { min-height: 72px; }
  .path, .files, .mods, .gallery, .tiers, .links { grid-template-columns: minmax(0, 1fr); }
  .unit + .unit::before { content: ""; position: absolute; left: 44px; top: -23px; width: 4px; height: 23px; background: var(--accent); border-radius: 2px; }
  .tabs [role="tab"] { padding: 12px 10px; font-size: 14px; }
  .panel { padding: 18px; }
  .paths tbody th { white-space: normal; }
  .cta__row .btn { flex: 1 1 auto; }
}
@media (max-width: 480px) {
  .nav li:not(:last-child) { display: none; }
  .paths, .paths tbody, .paths tr, .paths th, .paths td { display: block; }
  .paths thead { display: none; }
  .paths tbody th { border-top: 1px dashed var(--rule-soft); padding-bottom: 0; }
  .paths td { border-top: 0; padding-top: 2px; }
  .term { flex-wrap: wrap; row-gap: 4px; }
  .term code { flex-basis: calc(100% - 30px); }
  .term .copy { margin-left: auto; }
  .panel { padding: 16px 14px; }
  .chan { padding: 12px 10px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cable { animation: none; stroke-dashoffset: 0; }
  .pulse { display: none; }
  *, *::before, *::after { transition: none !important; }
}
