/* Home page. Loaded after site.css, so it reuses its
   tokens (surfaces, text, accent, per-pedal colours, elevations). Only three
   tokens are new: --control-edge, --lock and --ease. Direction: "dark
   instrument panel" from docs/WEBSITE_DESIGN_IDEAS.md. Colour only where it
   means something: orange = the one action, focus and the active block; amber
   = readouts; a pedal-kind colour = that kind of block. No inline styles, no
   external requests; motion only on transform and opacity. */

:root {
  --control-edge: #707378; /* 3.18:1 or more on every surface, hover (surface-3) included: edge of a control */
  --lock: #8a8d92;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --pad: 16px;
  --band: 48px;
}
@media (min-width: 641px) {
  :root {
    --pad: 24px;
    --band: 64px;
  }
}
@media (min-width: 1001px) {
  :root {
    --band: 96px;
  }
}

/* Keyboard focus and in-page jumps stop below the sticky header (57px on a phone, more where it wraps) */
html {
  scroll-padding-top: 72px;
}
/* the header wrapped onto two rows (home.js sets hdr-2, 104px tall): anchor jumps still land below it */
html.hdr-2 {
  scroll-padding-top: 120px;
}

/* ---------- Page frame: full-width bands inside the shared shell ---------- */
body.page-index {
  padding-inline: 0;
}
.page-index .site-header {
  margin-inline: 0;
  padding-inline: var(--pad);
}
.page-index main.page {
  max-width: none;
  margin: 0;
  padding-block: 0;
}
.page-index .site-footer {
  max-width: calc(var(--page) + 2 * var(--pad));
  padding-inline: var(--pad);
}
.page-index .asio-notice {
  max-width: calc(var(--page) + 2 * var(--pad));
  margin: 0 auto;
  padding: 24px var(--pad);
  border-top: 0;
}
.hn-wrap {
  max-width: calc(var(--page) + 2 * var(--pad));
  margin-inline: auto;
  padding-inline: var(--pad);
}
.hn-narrow {
  max-width: calc(68ch + 2 * var(--pad));
}
.hn-band {
  padding-block: var(--band);
  scroll-margin-top: 0; /* html's scroll-padding-top keeps the header clear */
}
.hn-alt {
  background: var(--surface-1);
  border-block: 1px solid var(--border);
}

/* Shared small parts */
.hn-eyebrow {
  font: 700 12px/1.2 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 12px;
}
.hn-kicker {
  font: 700 12px/1.2 var(--mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--k, var(--muted));
  margin: 0 0 8px;
}
.hn-tag {
  display: inline-block;
  font: 700 11px/1 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--control-edge);
  border-radius: 999px;
  padding: 5px 9px;
  white-space: nowrap;
}
.hn h2 {
  font-family: var(--display);
  font-variation-settings: "wdth" 112;
  font-weight: 800;
  font-size: clamp(30px, 3.8vw, 44px);
  line-height: 1.08;
  margin: 0 0 14px;
  text-wrap: balance;
}
.hn h3 {
  font-family: var(--display);
  font-variation-settings: "wdth" 104;
  font-weight: 750;
  font-size: 22px;
  line-height: 1.25;
  margin: 0 0 10px;
}
.hn-lead {
  font-size: 20px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 60ch;
  margin: 0 0 18px;
}
.hn-fine {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 68ch;
  margin: 16px 0 0;
}
.hn-head {
  margin-bottom: 32px;
}
.hn-more {
  margin: 28px 0 0;
  font-weight: 700;
}
.hn-status {
  margin: 0 0 20px;
  font-size: 15px;
  color: var(--muted);
}
.hn-status a {
  margin-inline-start: 6px;
  color: var(--amber);
}

/* Headings that take focus after an in-page jump (keyboard and screen reader users land on them) */
.hn [tabindex="-1"]:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 6px;
  border-radius: 4px;
}

/* Kind colours: --k label/LED, --kb fill, --ke edge */
.k-compressor {
  --k: var(--ca-compressor);
  --kb: var(--ca-compressor-bg);
  --ke: var(--ca-compressor-edge);
}
.k-drive {
  --k: var(--ca-drive);
  --kb: var(--ca-drive-bg);
  --ke: var(--ca-drive-edge);
}
.k-modulation {
  --k: var(--ca-modulation);
  --kb: var(--ca-modulation-bg);
  --ke: var(--ca-modulation-edge);
}
.k-delay {
  --k: var(--ca-delay);
  --kb: var(--ca-delay-bg);
  --ke: var(--ca-delay-edge);
}
.k-reverb {
  --k: var(--ca-reverb);
  --kb: var(--ca-reverb-bg);
  --ke: var(--ca-reverb-edge);
}
.k-cabinet {
  --k: var(--ca-cabinet);
  --kb: var(--ca-cabinet-bg);
  --ke: var(--ca-cabinet-edge);
}
.k-amp {
  --k: var(--ca-amp);
  --kb: var(--ca-amp-bg);
  --ke: var(--ca-amp-edge);
}
.k-neutral {
  --k: var(--muted);
  --kb: var(--surface-2);
  --ke: var(--line-strong);
}

/* ---------- Buttons ---------- */
.hn-btn {
  min-height: 52px;
  padding-inline: 24px;
  font-size: 17px;
  border-radius: var(--radius-s);
  transition:
    background 120ms var(--ease),
    transform 120ms var(--ease);
}
.hn-btn:active {
  transform: translateY(1px);
}
.hn-arrow,
.hn-lock {
  width: 16px;
  height: 16px;
  flex: none;
}
.hn-textlink {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-inline: 4px;
  font-weight: 700;
  color: var(--text);
  text-decoration-color: var(--control-edge);
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
}
.hn-textlink:hover {
  text-decoration-color: var(--accent);
}
.hn-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 20px;
  margin-top: 24px;
}
/* The headline block carries the button plus two quiet links ("Request an invite", "See how it works"). Without the
   side padding a link that wraps to a second line lines up with the button's edge instead of sitting 4px in. */
.sc-final .hn-textlink,
.sc-open-act .hn-textlink {
  padding-inline: 0;
}

/* Window frame around a real screenshot */
.hn-window {
  margin: 0;
  border-radius: var(--radius-l);
  background: var(--bg);
  box-shadow: var(--elev-3);
  overflow: hidden;
}
.hn-window-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: var(--surface-1);
  border-bottom: 1px solid var(--border);
}
.hn-dots {
  display: inline-flex;
  gap: 6px;
}
.hn-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--surface-3);
  box-shadow: inset 0 0 0 1px var(--control-edge);
}
.hn-window img {
  display: block;
  width: 100%;
  height: auto;
}
.hn-window figcaption {
  max-width: none;
  margin: 0;
  padding: 10px 14px 12px;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
  background: var(--surface-1);
  border-top: 1px solid var(--border);
}

/* ---------- Signal chain ---------- */
.hn-chainbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-bottom: 20px;
}
.hn-chainbar .hn-status {
  margin: 0;
}
.chain-stage {
  position: relative;
  display: grid;
  gap: 24px;
}
.chain-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}
.chain-tab {
  position: relative;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 2px;
  height: 92px;
  padding: 12px 14px;
  text-align: left;
  font: inherit;
  color: var(--text);
  background: var(--surface-2);
  border: 1px solid var(--control-edge);
  border-radius: var(--radius-m);
  box-shadow: var(--elev-1);
  cursor: pointer;
  transition:
    background 120ms var(--ease),
    border-color 120ms var(--ease);
}
.chain-tab::before {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  top: 0;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--k);
}
.chain-tab:hover {
  background: var(--surface-3);
}
.chain-tab[aria-selected="true"] {
  background: var(--surface-3);
  border: 2px solid var(--accent);
  padding: 11px 13px;
}
/* A notch under the selected block points at its panel (not colour alone). */
.chain-tab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -9px;
  width: 14px;
  height: 14px;
  margin-left: -7px;
  background: var(--accent);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}
.chain-idx {
  font: 700 11px/1 var(--mono);
  letter-spacing: 0.14em;
  color: var(--amber);
}
.chain-name {
  font-family: var(--display);
  font-variation-settings: "wdth" 104;
  font-weight: 750;
  font-size: 20px;
  line-height: 1.15;
}
.chain-sub {
  font: 600 12px/1.2 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

/* The signal line runs behind the blocks, from the first block's centre to
   the last block's centre. Its coloured part reaches the selected block
   (static), and a small pulse travels along it while the section is on
   screen. */
.chain-track {
  position: absolute;
  z-index: 0;
  left: 10%;
  right: 10%;
  top: 46px;
  height: 2px;
  overflow: hidden;
  background: var(--control-edge);
  pointer-events: none;
}
.chain-tabs {
  position: relative;
  z-index: 1;
}
.chain-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: var(--accent);
  transition: width 240ms var(--ease);
}
[data-active="1"] .chain-fill {
  width: 25%;
}
[data-active="2"] .chain-fill {
  width: 50%;
}
[data-active="3"] .chain-fill {
  width: 75%;
}
[data-active="4"] .chain-fill {
  width: 100%;
}
.chain-pulse {
  position: absolute;
  top: 0;
  left: 0;
  width: 14%;
  height: 100%;
  background: linear-gradient(90deg, transparent, var(--accent-hover));
  box-shadow: 0 0 10px 2px rgb(255 143 61 / 0.6);
  opacity: 0;
  transform: translateX(-100%);
}
.hn-chain.is-running .chain-pulse {
  opacity: 1;
  animation: hn-pulse 3.2s linear infinite;
}
@keyframes hn-pulse {
  to {
    transform: translateX(715%);
  }
}

.chain-panel,
.tour-panel {
  background: var(--surface-2);
  box-shadow: var(--elev-2);
  border-radius: var(--radius-m);
  padding: 24px;
}
.chain-panel {
  position: relative;
  z-index: 1;
}
.chain-panel[hidden],
.tour-panel[hidden] {
  display: none;
}
.chain-panel > p,
.tour-panel > p {
  max-width: 62ch;
}
.chain-panel:focus-visible,
.tour-panel:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
@media (min-width: 641px) {
  .chain-panel,
  .tour-panel {
    padding: 32px;
  }
}
.hn-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}
.hn-controls li {
  font: 500 13px/1 var(--mono);
  color: var(--amber);
  background: var(--bg);
  border-radius: var(--radius-s);
  padding: 8px 11px;
}
.hn-inrig {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin: 0 0 4px;
  font-size: 16px;
}
.hn-shot {
  margin: 24px 0 0;
}
.hn-shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius-m);
  background: var(--bg);
}
.hn-shot-small {
  max-width: 340px;
}
.hn-shot figcaption {
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
}

/* Pedal chips (a diagram only) */
.hn-pedals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin: 20px 0 12px;
}
.hn-pedal {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 14px;
  font: 700 15px/1 var(--body);
  color: var(--text);
  text-align: left;
  background: var(--surface-1);
  border: 1px solid var(--control-edge);
  border-radius: var(--radius-s);
  cursor: pointer;
  transition:
    background 120ms var(--ease),
    border-color 120ms var(--ease);
}
.hn-pedal:hover {
  background: var(--surface-3);
}
.hn-pedal .led {
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: inset 0 0 0 2px var(--control-edge);
}
.hn-pedal-name {
  flex: 1;
}
.hn-pedal-state {
  font: 700 11px/1 var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.hn-pedal[aria-pressed="true"] {
  background: var(--kb);
  border-color: var(--k);
}
.hn-pedal[aria-pressed="true"] .led {
  background: var(--k);
  box-shadow: 0 0 8px 1px var(--k);
}
.hn-pedal[aria-pressed="true"] .hn-pedal-state {
  color: var(--text);
}
.hn-pedal-note {
  margin: 0 0 6px;
  font: 500 14px/1.4 var(--mono);
  color: var(--amber);
}

/* ---------- Rig picker ---------- */
.hn-rigbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 16px;
  margin-bottom: 14px;
}
.hn-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.hn-filters button {
  min-height: 44px;
  padding: 0 14px;
  font: 700 14px/1 var(--body);
  color: var(--text);
  background: var(--surface-1);
  border: 1px solid var(--control-edge);
  border-radius: 999px;
  cursor: pointer;
  transition: background 120ms var(--ease);
}
.hn-filters button:hover {
  background: var(--surface-3);
}
.hn-filters button[aria-pressed="true"] {
  background: var(--amber-soft);
  border-color: var(--amber);
  color: var(--amber);
}
.hn-filters .n {
  margin-inline-start: 4px;
  font: 500 12px/1 var(--mono);
  color: var(--muted);
}
.hn-filters button[aria-pressed="true"] .n {
  color: var(--amber);
}
.rigs {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (min-width: 480px) {
  .rigs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1001px) {
  .rigs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
  }
}
.rig {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--surface-2);
  border-radius: var(--radius-m);
  box-shadow: var(--elev-1);
  transition: background 120ms var(--ease);
}
.rig[hidden] {
  display: none;
}
.rig:hover {
  background: var(--surface-3);
}
.rig-art {
  padding: 18px 18px 6px;
  background: linear-gradient(180deg, var(--kb), var(--surface-2));
}
.rig-art img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 12px 14px rgba(0, 0, 0, 0.45));
}
.rig-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px 18px 18px;
}
.rig-body h3 {
  margin-bottom: 6px;
}
.rig-desc {
  font-size: 15.5px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 12px;
}
.hn-rigchain {
  font: 500 12.5px/1.5 var(--mono);
  color: var(--text);
  margin: 0 0 10px;
}
.hn-rigscenes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin: 0 0 16px;
  font-size: 14.5px;
}
.hn-rigscenes .hn-tag {
  padding: 4px 8px;
}
.rig-load {
  position: static;
  margin-top: auto;
  min-height: 46px;
  padding: 0 16px;
  font: 700 15px/1 var(--body);
  color: var(--text);
  background: var(--surface-1);
  border: 1px solid var(--control-edge);
  border-radius: var(--radius-s);
  cursor: pointer;
}
/* The whole card is the click target. */
.rig-load::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-m);
}
.rig-load:focus-visible {
  outline: none;
}
.rig-load:focus-visible::after {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}
.rig-load[aria-pressed="true"] {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.rig:has(.rig-load[aria-pressed="true"]) {
  box-shadow:
    0 0 0 2px var(--accent),
    var(--elev-2);
}
/* Without JS the cards stay as plain examples. */
html:not(.hn-js) .rig-load,
html:not(.hn-js) .hn-filters,
html:not(.hn-js) [data-rig-statusline],
html:not(.hn-js) .chain-tabs,
html:not(.hn-js) .chain-track,
html:not(.hn-js) .tour-tabs {
  display: none;
}

/* ---------- Tour ---------- */
.tour {
  display: grid;
  gap: 20px;
}
.tour-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.tour-tab {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 8px 12px;
  font: 700 15px/1.2 var(--body);
  color: var(--text);
  text-align: left;
  background: var(--surface-2);
  border: 1px solid var(--control-edge);
  border-radius: var(--radius-s);
  cursor: pointer;
  transition: background 120ms var(--ease);
}
.tour-tab:hover {
  background: var(--surface-3);
}
.tour-num {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  font: 700 13px/1 var(--mono);
  color: var(--amber);
  border: 1px solid var(--control-edge);
  border-radius: 50%;
}
.tour-tab[aria-selected="true"] {
  background: var(--surface-3);
  border: 2px solid var(--accent);
  padding: 7px 11px;
}
.tour-tab[aria-selected="true"] .tour-num {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.tour-panel .hn-window {
  margin-top: 24px;
}
html:not(.hn-js) .tour-panel + .tour-panel {
  margin-top: 24px;
}
html:not(.hn-js) .tour-panels {
  display: grid;
  gap: 24px;
}
@media (max-width: 480px) {
  .tour-tab span:last-child {
    font-size: 14px;
  }
  .tour-num {
    display: none;
  }
}
@media (min-width: 1001px) {
  .tour {
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 32px;
    align-items: start;
  }
  .tour-tabs {
    grid-template-columns: minmax(0, 1fr);
  }
  .tour-tab {
    min-height: 60px;
    font-size: 17px;
  }
}

/* ---------- Closing band ---------- */
.hn-ctaband {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  padding: 28px 24px;
  background: var(--surface-2);
  border-radius: var(--radius-l);
  box-shadow: var(--elev-3);
}
.hn-ctaband h2 {
  margin: 0 0 4px;
}
.hn-ctaband p {
  margin: 0;
  color: var(--muted);
}
.hn-ctaband .hn-actions {
  margin-top: 0;
}
@media (min-width: 641px) {
  .hn-ctaband {
    padding: 40px 48px;
  }
}
.hn-final {
  padding-top: var(--band);
}

/* ---------- Mobile: the chain becomes a vertical list; the panel opens under its block ---------- */
@media (max-width: 640px) {
  .chain-stage {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .chain-tabs {
    display: contents;
  }
  .chain-track {
    left: 21px;
    right: auto;
    top: 28px;
    bottom: 28px;
    width: 2px;
    height: auto;
  }
  .chain-fill {
    display: none;
  }
  .chain-pulse {
    width: 100%;
    height: 14%;
    background: linear-gradient(180deg, transparent, var(--accent-hover));
  }
  .hn-chain.is-running .chain-pulse {
    animation-name: hn-pulse-v;
  }
  @keyframes hn-pulse-v {
    to {
      transform: translateY(715%);
    }
  }
  .chain-tab {
    flex: none;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    column-gap: 10px;
    height: auto;
    min-height: 56px;
    margin: 12px 0 0 44px;
    padding: 10px 14px;
  }
  .chain-tab[aria-selected="true"] {
    padding: 9px 13px;
  }
  .chain-tab::before {
    left: -34px;
    right: auto;
    top: 50%;
    width: 14px;
    height: 14px;
    margin-top: -7px;
    border-radius: 50%;
    background: var(--surface-0);
    box-shadow: inset 0 0 0 2px var(--control-edge);
  }
  .chain-tab[aria-selected="true"]::before {
    background: var(--accent);
    box-shadow: inset 0 0 0 2px var(--accent);
  }
  .chain-tab[aria-selected="true"]::after {
    display: none;
  }
  .chain-name {
    font-size: 18px;
  }
  .chain-panel {
    flex: none;
    margin: 12px 0 0 44px;
    padding: 20px 18px;
  }
  .hn-js .chain-panel > h3 {
    display: none;
  }
  .chain-tab[data-i="0"] {
    order: 0;
  }
  .chain-panel[data-i="0"] {
    order: 1;
  }
  .chain-tab[data-i="1"] {
    order: 2;
  }
  .chain-panel[data-i="1"] {
    order: 3;
  }
  .chain-tab[data-i="2"] {
    order: 4;
  }
  .chain-panel[data-i="2"] {
    order: 5;
  }
  .chain-tab[data-i="3"] {
    order: 6;
  }
  .chain-panel[data-i="3"] {
    order: 7;
  }
  .chain-tab[data-i="4"] {
    order: 8;
  }
  .chain-panel[data-i="4"] {
    order: 9;
  }
}
/* Without JS: every block's panel is visible, one after the other, with its title. */
html:not(.hn-js) .chain-stage {
  gap: 16px;
}

/* ---------- Reveal (once, on entering the screen; never hides content without JS) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .hn-js .reveal {
    opacity: 0;
    transform: translateY(12px);
    transition:
      opacity 480ms var(--ease),
      transform 480ms var(--ease);
  }
  .hn-js .reveal.in {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Reduced motion and forced colours ---------- */
@media (prefers-reduced-motion: reduce) {
  .hn-chain.is-running .chain-pulse {
    animation: none;
    opacity: 0;
  }
  .chain-fill,
  .chain-tab,
  .hn-pedal,
  .hn-btn,
  .rig,
  .hn-filters button,
  .tour-tab {
    transition: none;
  }
}
@media (forced-colors: active) {
  .chain-tab,
  .hn-pedal,
  .rig,
  .hn-filters button,
  .tour-tab,
  .rig-load,
  .chain-panel,
  .tour-panel,
  .hn-window,
  .hn-ctaband {
    border: 1px solid CanvasText;
  }
  .chain-tab[aria-selected="true"],
  .tour-tab[aria-selected="true"],
  .hn-pedal[aria-pressed="true"],
  .hn-filters button[aria-pressed="true"],
  .rig-load[aria-pressed="true"] {
    border: 3px solid Highlight;
  }
  .chain-track {
    background: CanvasText;
  }
}

/* ================= The app-window illustration (paint) =================
   One inline SVG, decorative, used by the scroll story. This block only paints
   its parts; the story section below decides which are lit and when. */

.hh-art {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 640 / 430; /* the space is reserved: nothing moves when it draws */
  background: var(--bg);
}
.hh-art text {
  font-family: var(--mono);
  fill: var(--muted);
}
.hh-art .ha-t2 {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.hh-art .ha-t3 {
  font-size: 6.4px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.hh-art .ha-title {
  font: 800 15px var(--display);
  font-variation-settings: "wdth" 108;
  fill: var(--text);
}
.hh-art .ha-name {
  font: 800 16px var(--display);
  font-variation-settings: "wdth" 108;
  fill: var(--text);
}
.hh-art .ha-k {
  font-size: 7.6px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  fill: var(--k);
}
.hh-art .ha-kamp {
  fill: var(--ca-amp);
}
.hh-art .ha-amber {
  fill: var(--amber);
}
.hh-art .k-signal {
  --k: var(--accent);
  --kb: var(--surface-2);
  --ke: var(--line-strong);
}
.hh-art .ha-line {
  stroke: var(--muted);
  stroke-width: 1.6;
}
.hh-art .ha-pill {
  fill: var(--surface-2);
  stroke: var(--line-strong);
}
.hh-art .ha-scene {
  fill: var(--surface-1);
  stroke: var(--line-strong);
}
.hh-art .ha-scene.on {
  fill: var(--amber-soft);
  stroke: var(--amber);
}
.hh-art .ha-mtrack {
  fill: var(--surface-0);
  stroke: var(--border);
}
.hh-art .ha-mfill {
  fill: url(#st-meterfill);
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transform: scaleY(0.45);
}
.hh-art .ha-mfill.m2 {
  transform: scaleY(0.5);
}
.hh-art .ha-panel {
  fill: var(--kb);
  stroke: var(--ke);
}
.hh-art .ha-card {
  fill: var(--kb);
  stroke: var(--ke);
}
.hh-art .ha-edge {
  fill: none;
  stroke: var(--k);
  stroke-width: 1.4;
  opacity: 0.75;
}
.hh-art .ha-halo {
  fill: var(--k);
  opacity: 0;
}
.hh-art .ha-glow {
  opacity: 0.5;
}
.hh-art .ha-grilleglow {
  fill: var(--accent);
  opacity: 0.12;
}
.hh-art .ha-pilot {
  fill: var(--accent);
}
.hh-art .ha-led {
  fill: var(--k);
}
.hh-art .ha-ledoff {
  fill: var(--bg);
  stroke: var(--line-strong);
}
.hh-art .ha-kb {
  fill: var(--surface-3);
  stroke: var(--control-edge);
}
.hh-art .ha-trk {
  fill: none;
  stroke: var(--surface-3);
  stroke-width: 2.2;
}
.hh-art .ha-val {
  fill: none;
  stroke: var(--amber);
  stroke-width: 2.2;
  stroke-linecap: round;
}
.hh-art .ha-strip {
  fill: var(--surface-1);
  stroke: var(--border);
}
.hh-art .ha-wire {
  fill: var(--control-edge);
}
.hh-art .ha-wirelit {
  fill: var(--accent);
  opacity: 0.55;
  transform-box: fill-box;
  transform-origin: 0 50%;
}
.hh-art .ha-node {
  fill: var(--surface-2);
  stroke: var(--control-edge);
}
.hh-art .ha-ic {
  fill: none;
  stroke: var(--k);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hh-art .ha-head {
  fill: #fff;
}
.hh-art .ha-headglow {
  fill: var(--accent);
}

/* ================= Hero and scroll story: "Follow the signal" =================
   The page opens on this section. The illustrated app window is pinned and starts
   empty (with a cue to scroll); five captions scroll past while it assembles itself;
   at the end the finished rig stays pinned and the headline, the lead and the
   buttons arrive beside it. Progressive enhancement:
   - Without JavaScript, with prefers-reduced-motion or on a screen under 240px
     tall, home.js never adds .sc-live, so this is plain stacked content: the
     headline, lead and buttons first, then the window in its finished state,
     then the five captions. Nothing is pinned, hidden or animated.
   - With .sc-live one screen (.sc-pin: the rail, the stage, the caption slot and
     the headline slot) is position: sticky under the site header and exactly as
     tall as the rest of the viewport, at every size and zoom. Under it, empty
     beats (.sc-beats) give the scroll length: one beat per step and one to hold
     the end. home.js reads how far the beats have moved under the pinned screen
     and sets classes on the section: is-step-N (the current step), has-N (every
     step reached so far) and is-end. Native scrolling only, nothing takes over
     the wheel or touch. All the drawing is driven from those classes through
     --lit (0 or 1) on each block, so the picture, the rail and the caption
     always agree. A block not placed yet is a faint ghost in the drawing (--ghost);
     nothing of a later step is drawn on the rail or in the captions before it is reached.
   No inline styles: classes, custom properties set here, and data attributes. */

.sc {
  padding-block: 32px var(--band);
}
.sc-body {
  display: grid;
  gap: 32px;
}
.sc-pin {
  display: grid;
  gap: 32px;
}
/* the headline block (stacked: plain content, first in the page) */
.sc-open,
.sc-beats {
  display: none;
}
.sc-final h1 {
  font-family: var(--display);
  font-variation-settings: "wdth" 118;
  font-weight: 850;
  font-size: clamp(40px, 6vw, 68px);
  line-height: 1;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
  text-wrap: balance;
}
.sc-final h1 .w {
  display: inline-block;
}
.sc-final h1 .w1 {
  --i: 0;
}
.sc-final h1 .w2 {
  --i: 1;
}
.sc-final h1 .w3 {
  --i: 2;
}
.sc-final h1 .w4 {
  --i: 3;
}
.sc-final h1 .w5 {
  --i: 4;
}
.sc-final h1 .w6 {
  --i: 5;
}
.sc-final h1 .w7 {
  --i: 6;
}
.sc-final h1 .w8 {
  --i: 7;
}
.sc-final h1 .w9 {
  --i: 8;
}
.sc-final .hn-lead {
  margin-bottom: 0;
}
@media (min-width: 1001px) {
  .sc {
    padding-top: 56px;
  }
  /* stacked on a wide screen: the headline beside the finished window, the captions below */
  .sc-pin {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 40px 48px;
    align-items: center;
  }
  .sc-hero {
    grid-column: 1;
    grid-row: 1;
  }
  .sc-stage {
    grid-column: 2;
    grid-row: 1;
  }
  .sc-text {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}
.sc-window {
  max-width: 760px;
  margin-inline: auto;
}
.sc-steps {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.sc-step {
  display: block;
}
/* two columns only where the stacked captions have the full page width (tablets get one even column) */
@media (min-width: 1001px) {
  .sc-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sc-step:last-child {
    grid-column: 1 / -1;
  }
}
.sc-card {
  height: 100%;
  padding: 20px 22px 22px;
  background: var(--surface-2);
  border-radius: var(--radius-m);
  box-shadow: var(--elev-1);
  border-inline-start: 3px solid var(--k);
}
.sc-card p:not(.hn-kicker) {
  margin: 0 0 8px;
  color: var(--text);
  max-width: 52ch;
}
.sc-card .hn-kicker {
  margin-bottom: 6px;
}
.sc-card h3 {
  margin-bottom: 8px;
}
.sc-step.k-neutral {
  --k: var(--text);
}
.sc-more {
  margin-top: 10px !important;
}
.sc-rail {
  display: none;
  --rail-btn: 0; /* 1 only in the wide layout (see its media query): the rail's circles are buttons there */
}

/* ---- drawing paint (the rest comes from the hero's .hh-art rules) ---- */
.st-art .st-val {
  fill: none;
  stroke: var(--amber);
  stroke-width: 2.2;
  stroke-linecap: round;
}
.st-art .st-ind {
  transform: rotate(calc(-135deg + var(--v) * var(--lit, 1) * 2.7deg));
}
.st-art .st-val {
  stroke-dasharray: calc(var(--v) * var(--lit, 1)) 100; /* unitless: user units, not CSS px (page zoom) */
}
.st-art .st-knob {
  --v: var(--v1, 50);
}
.st-art .ha-saved {
  fill: var(--amber-soft);
  stroke: var(--amber);
}
.st-art .ha-tick {
  fill: none;
  stroke: var(--amber);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.st-art .st-sc rect {
  fill: var(--surface-1);
  stroke: var(--line-strong);
}
.st-art .st-sc text {
  fill: var(--muted);
}
.st-art .st-sc1 rect {
  fill: var(--amber-soft);
  stroke: var(--amber);
}
.st-art .st-sc1 text {
  fill: var(--amber);
}
.is-lead .st-art .st-sc1 rect {
  fill: var(--surface-1);
  stroke: var(--line-strong);
}
.is-lead .st-art .st-sc1 text {
  fill: var(--muted);
}
.is-lead .st-art .st-sc2 rect {
  fill: var(--amber-soft);
  stroke: var(--amber);
}
.is-lead .st-art .st-sc2 text {
  fill: var(--amber);
}
.is-lead .st-art .sn {
  --v: var(--v2);
}
/* the finished rig is drawn from the start as a ghost: a block that is not placed yet shows only its shape, at --ghost
   of full strength (its card, its title and its icon; no knobs and no small labels, which would read as content);
   placed (--lit 1) it is at full strength. Without .sc-live --lit stays at its default of 1, so everything is full. */
.st-art {
  --ghost: 0.28;
}
.st-art .st-g {
  opacity: calc(var(--ghost) + (1 - var(--ghost)) * var(--lit, 1));
  transform: scale(calc(0.96 + 0.04 * var(--lit, 1)));
  transform-box: fill-box;
  transform-origin: 50% 50%;
}
/* what a ghost block would only fake: knobs and small labels are absent until the block is placed */
.st-art .st-g .st-knob,
.st-art .st-g .ha-t3 {
  opacity: var(--lit, 1);
}
.st-art .st-h {
  opacity: var(--lit, 1);
}
.st-art .st-inv {
  opacity: calc(1 - var(--lit, 1));
}
.st-art .st-lit {
  opacity: var(--lit, 1);
}
.st-art .ha-edge.st-lit {
  opacity: calc(0.75 * var(--lit, 1));
}
.st-art .ha-grilleglow.st-lit {
  opacity: calc(0.12 * var(--lit, 1));
}
.st-art .st-glow {
  opacity: calc(0.5 * var(--lit, 1));
}
.st-art .st-head {
  opacity: 0;
}
.st-art .a28 {
  --v1: 28;
}
.st-art .a30 {
  --v1: 30;
}
.st-art .a38 {
  --v1: 38;
}
.st-art .a42 {
  --v1: 42;
}
.st-art .a48 {
  --v1: 48;
}
.st-art .a50 {
  --v1: 50;
}
.st-art .a52 {
  --v1: 52;
}
.st-art .a55 {
  --v1: 55;
}
.st-art .a56 {
  --v1: 56;
}
.st-art .a60 {
  --v1: 60;
}
.st-art .a62 {
  --v1: 62;
}
.st-art .a70 {
  --v1: 70;
}
.st-art .a78 {
  --v1: 78;
}
.st-art .b44 {
  --v2: 44;
}
.st-art .b66 {
  --v2: 66;
}
.st-art .b72 {
  --v2: 72;
}
.st-art .b80 {
  --v2: 80;
}
.st-art .b88 {
  --v2: 88;
}
.st-art .d1 {
  --td: 0ms;
}
.st-art .d2 {
  --td: 90ms;
}
.st-art .d3 {
  --td: 180ms;
}
.st-art .d4 {
  --td: 270ms;
}
.st-art .d5 {
  --td: 360ms;
}

/* ---- live: one pinned screen, one caption at a time, step states ---- */
/* Before home.js has run (the script is deferred) a visitor who will get the pinned story would first see the stacked
   headline and finished drawing and then watch them change. On a screen where the story will be live those two are
   held back (they stay in the page and the layout) until the script has set .hn-js, which is in the same step as
   .sc-live. If the script never arrives they show after a second. Browsers without the scripting media feature skip this.
   The conditions are the same as home.js's gate: motion allowed and at least 240px of height. */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) and (min-height: 240px) {
  html:not(.hn-js) .sc-hero,
  html:not(.hn-js) .sc-stage {
    opacity: 0;
    animation: sc-failsafe 0s 1s forwards;
  }
  @keyframes sc-failsafe {
    to {
      opacity: 1;
    }
  }
}
.sc-live {
  /* viewport units: the small viewport where it exists (iOS Safari shows its toolbars at load, and 100vh is the
     height without them), so the pinned screen and its buttons are never under the toolbar */
  --vh: 1vh;
  /* the sticky site header's height. Measured on 2026-11-10 at 360 to 1440px wide, English and Spanish: 57px at
     every width once site.js has run (one row: below 1000px with the menu button, above it with the nav). If it
     ever wraps, home.js sees it (ResizeObserver) and sets html.hdr-2. */
  --hdr: 57px;
  --pin-top: calc(env(safe-area-inset-top, 0px) + var(--hdr));
  /* the pinned screen: everything under the header, at every size and zoom */
  --pin-h: calc(100 * var(--vh) - var(--pin-top));
  --pin-pad: 10px;
  /* scroll before step 1: the opening panel fades out over it (see the scroll-driven block), so the first wheel
     tick already changes the screen */
  --sc-zone: 110px;
  /* the scroll for one step, a share of the screen with a floor so a short screen still gets a deliberate step */
  --beat: max(60 * var(--vh), 240px);
  /* the calm stretch after step 5 (its own beat, before the end beat): the finished rig and the last caption stay on
     screen for about half a screen of scrolling before the headline replaces them. A share of --beat, so it scales
     with it at every size and zoom. */
  --beat-exit: calc(var(--beat) * 0.85);
  /* the parts of the stage that are not the drawing: the rail above the window and the window's bar */
  --sc-rail-h: 46px;
  --sc-bar-h: 36px;
  /* the drawing's height budget (the window's width follows it through the drawing's aspect, 640 / 430) */
  --sc-art-h: calc(var(--pin-h) * 0.56 - var(--sc-rail-h) - var(--sc-bar-h));
  --p: 0;
  --rp: 0; /* the rail's fill: nothing until a step is reached */
}
@supports (height: 1svh) {
  .sc-live {
    --vh: 1svh;
  }
}
html.hdr-2 .sc-live {
  --hdr: 104px;
}
.sc.sc-live {
  padding-top: 0; /* the pinned screen starts where it stays pinned */
}
.sc-live .sc-body {
  display: block;
}
/* The pinned screen. The beats are pulled up under it (their negative margin: a negative margin on the sticky pin
   itself would keep it stuck for one more screen, as sticky uses the margin box), so the section is exactly as long
   as the beats and the pin is released when the last beat (the end hold) has scrolled past. */
.sc-live .sc-pin {
  position: sticky;
  top: var(--pin-top);
  z-index: 4;
  box-sizing: border-box;
  height: var(--pin-h);
  padding-block: var(--pin-pad);
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  overflow: hidden; /* nothing drawn outside the screen it owns */
}
.sc-live .sc-beats {
  display: block;
  margin-top: calc(-1 * var(--pin-h));
  padding-block: var(--sc-zone) var(--pin-h);
  pointer-events: none;
}
.sc-live .sc-beats i {
  display: block;
  height: var(--beat);
}
.sc-live .sc-beats i[data-story-exit] {
  height: var(--beat-exit);
}
/* one column (phones, portrait tablets): the stage on top, the caption or the headline under it */
.sc-live .sc-stage {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  /* the window and the rail share one width: the column's, or less when the height is the limit */
  --win-w: min(100%, 820px, calc(var(--sc-art-h) * 640 / 430));
}
.sc-live .sc-stage > * {
  max-width: var(--win-w);
  margin-inline: auto;
}
.sc-live .sc-hero,
.sc-live .sc-text {
  grid-column: 1;
  grid-row: 2;
  min-width: 0;
  min-height: 0;
  align-self: start;
}
.sc-live .sc-window .hn-window-bar {
  box-sizing: border-box;
  height: var(--sc-bar-h);
  padding-block: 0;
}
/* the captions: a stack of cards that are all in the flow all the time, so nothing is added to or taken out of the layout
   when the story moves on. A card not reached yet (or folded away) has a zero-height row (grid-template-rows 0fr, clipped)
   and no opacity; the current card has its full row (this is the layout below the wide one: on the wide layout the cards are
   stacked in one cell instead, see the end of this file). A card changes state by animating its row, its padding, its opacity
   and a small rise, so the column moves smoothly instead of jumping. Cards not reached yet stay in the page for screen
   readers (their links leave the tab order, see home.js). The new card starts a little after the old one starts leaving (90ms). */
.sc-live .sc-steps {
  position: relative;
  display: block;
}
.sc-live .sc-step {
  display: grid;
  grid-template-rows: 0fr;
  padding-bottom: 0;
  pointer-events: none;
  transition:
    grid-template-rows 500ms var(--ease),
    padding-bottom 500ms var(--ease);
}
.sc-live .sc-step.is-on {
  grid-template-rows: 1fr;
  padding-bottom: 8px;
  pointer-events: auto;
  transition-delay: 90ms;
}
.sc-live .sc-card {
  --cp-x: 22px;
  --cp-t: 20px;
  --cp-b: 22px;
  display: grid;
  grid-template-rows: auto 1fr;
  height: auto;
  min-height: 0;
  overflow: hidden; /* the folded part of the card is clipped, not removed */
  padding: 0 var(--cp-x);
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 240ms var(--ease),
    transform 500ms var(--ease),
    padding 500ms var(--ease),
    grid-template-rows 500ms var(--ease),
    background-color 400ms var(--ease),
    box-shadow 400ms var(--ease);
}
.sc-live .sc-step.is-on .sc-card {
  opacity: 1;
  transform: none;
  padding: var(--cp-t) var(--cp-x) var(--cp-b);
  transition:
    opacity 500ms var(--ease) 90ms,
    transform 500ms var(--ease) 90ms,
    padding 500ms var(--ease) 90ms,
    grid-template-rows 500ms var(--ease) 90ms,
    background-color 400ms var(--ease) 90ms,
    box-shadow 400ms var(--ease) 90ms;
}
/* a card already done: it leaves in place (no rise), then folds away (on the wide layout it leaves upward instead, see the end of this file) */
.sc-live .sc-step.is-past .sc-card {
  transform: none;
}
.sc-live .sc-card-body {
  min-height: 0;
  overflow: hidden;
  transition: opacity 220ms var(--ease);
}
.sc-live .sc-card .hn-kicker {
  color: var(--k);
  transition:
    margin 500ms var(--ease),
    color 400ms var(--ease);
}
/* the way past the story for Tab: the captions' own link is skipped while the story plays, so this one is always
   reachable. Out of sight until it has focus, then a small bar at the bottom of the screen. */
.sc-skip {
  display: none;
}
.sc-live .sc-skip {
  display: block;
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.sc-live .sc-skip:focus-within {
  position: fixed;
  inset: auto auto 16px 50%;
  transform: translateX(-50%);
  z-index: 60;
  width: auto;
  height: auto;
  overflow: visible;
  clip-path: none;
  padding: 10px 18px;
  background: var(--surface-2);
  border: 1px solid var(--control-edge);
  border-radius: var(--radius-s);
  box-shadow: var(--elev-1);
}

/* the headline block: an opening panel (before step 1) and the headline (after step 5) share one cell, which is
   also the captions' cell */
.sc-live .sc-hero {
  display: grid;
  pointer-events: none; /* the captions under it stay selectable; the buttons turn it back on */
}
.sc-live .sc-hero a {
  pointer-events: auto;
}
.sc-live .sc-final,
.sc-live .sc-open {
  grid-area: 1 / 1;
  align-self: start;
  min-width: 0;
}
.sc-live .sc-open {
  display: block;
  transition: opacity 350ms var(--ease);
}
.sc-live.has-1 .sc-open {
  opacity: 0;
  visibility: hidden; /* its buttons leave the tab order with it */
  transition:
    opacity 250ms var(--ease),
    visibility 0s 250ms;
}
.sc-lite {
  font-family: var(--display);
  font-variation-settings: "wdth" 112;
  font-weight: 800;
  font-size: clamp(28px, 3.1vw, 42px);
  line-height: 1.1;
  margin: 0 0 22px;
  text-wrap: balance;
}
.sc-open-act {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 20px;
  margin: 0;
}
.sc-cue {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 26px 0 0;
  font: 700 12px/1.3 var(--mono);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.sc-cue-arrow {
  flex: none;
  width: 18px;
  height: 18px;
}
@media (prefers-reduced-motion: no-preference) {
  .sc-live .sc-cue-arrow {
    animation: sc-bob 1.9s ease-in-out 6; /* six bobs (about 11s), then it rests: a cue, not a loop */
  }
  /* it has done its job once the first step is reached, and it is out of sight when the section is */
  .sc-live.has-1 .sc-cue-arrow,
  .sc-live.is-away .sc-cue-arrow {
    animation-play-state: paused;
  }
}
@keyframes sc-bob {
  50% {
    transform: translateY(4px);
  }
}
/* the headline: in the page (and the accessibility tree) from the start, only not drawn yet. It leaves quickly (200ms, no
   delay) when the story goes back, and the captions come back only after that (is-back, 240ms), so the headline and the
   captions are never on screen together. */
.sc-live .sc-final .hn-eyebrow,
.sc-live .sc-final .hn-lead,
.sc-live .sc-final .hn-actions,
.sc-live .sc-final h1 .w {
  opacity: 0;
  transform: translateY(10px);
  transition:
    opacity 200ms var(--ease),
    transform 200ms var(--ease);
}
.sc-live .sc-final .hn-actions {
  visibility: hidden; /* its links are not focusable until they are shown */
  transition:
    opacity 200ms var(--ease),
    transform 200ms var(--ease),
    visibility 0s 200ms;
}
/* Strict sequence at the end, never an overlap: first the captions (every done card, the current card, and the opening
   panel if it is still there) fade out completely (300ms, opacity only, no delay, see below); only then do the eyebrow,
   the headline words, the lead and the buttons arrive. Every headline delay is at least the captions' fade (300ms) plus
   a frame or two (20ms). The whole reveal is done in under a second. */
.sc-live.is-end .sc-final .hn-eyebrow,
.sc-live.is-end .sc-final .hn-lead,
.sc-live.is-end .sc-final .hn-actions,
.sc-live.is-end .sc-final h1 .w {
  opacity: 1;
  transform: none;
}
.sc-live.is-end .sc-final .hn-eyebrow {
  transition-duration: 300ms;
  transition-delay: 320ms;
}
.sc-live.is-end .sc-final h1 .w {
  transition-duration: 320ms;
  transition-delay: calc(var(--i) * 32ms + 340ms);
}
.sc-live.is-end .sc-final .hn-lead {
  transition-duration: 300ms;
  transition-delay: 560ms;
}
.sc-live.is-end .sc-final .hn-actions {
  visibility: visible;
  transition:
    opacity 280ms var(--ease) 640ms,
    transform 280ms var(--ease) 640ms,
    visibility 0s 640ms;
}
/* the captions give way first: every card (the done ones, the current one) fades out in place and is then hidden (their
   links leave the focus order and the accessibility tree with them, as the opening panel's buttons do at step 1; home.js
   moves focus out of them first, so it is never left on the body). Nothing moves or folds, so there is no layout change under the fade. Coming
   back (scrolling up out of the headline), they return after the headline has left (is-back). */
/* the caption column shares the headline's grid cell and paints above it: once the story has ended it takes no clicks,
   so the headline's buttons can be clicked with a mouse */
.sc-live.is-end .sc-text,
.sc-live.is-end .sc-step.is-on {
  pointer-events: none;
}
.sc-live.is-end .sc-steps .sc-step .sc-card {
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 300ms var(--ease),
    visibility 0s 300ms,
    transform 500ms var(--ease),
    padding 500ms var(--ease),
    grid-template-rows 500ms var(--ease),
    background-color 400ms var(--ease),
    box-shadow 400ms var(--ease);
}
.sc-live.is-back .sc-steps .sc-step .sc-card {
  transition-delay: 240ms;
}
.sc-live.is-back .sc-open {
  animation: none; /* the scroll-driven exit would show the panel at once after a jump to the top */
  transition-delay: 240ms;
}

/* rail: five nodes and a line that fills as the steps are reached */
.sc-live .sc-rail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-bottom: 8px;
}
.sc-rail-line {
  position: absolute;
  left: 10%;
  right: 10%;
  top: 10px;
  height: 2px;
  overflow: hidden;
}
.sc-rail-fill {
  position: absolute;
  inset: 0;
  background: var(--accent);
  transform-origin: 0 50%;
  transform: scaleX(var(--rsp, var(--rp, 0)));
}
.sc-rn {
  position: relative;
  z-index: 1;
  /* a button that looks like the span it replaced; it takes no clicks until the wide layout turns it on */
  box-sizing: border-box;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: inherit;
  -webkit-appearance: none;
  appearance: none;
  pointer-events: none;
  opacity: var(--lit, 0); /* only the steps reached are on the rail */
  display: grid;
  justify-items: center;
  gap: 5px;
  font: 700 10.5px/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.sc-rn i {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font: 700 11px/1 var(--mono);
  letter-spacing: 0;
  color: color-mix(in srgb, var(--accent-ink) calc(var(--lit, 0) * 100%), var(--text));
  background: var(--surface-1);
  box-shadow: inset 0 0 0 2px var(--control-edge);
}
.sc-rn i::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 50%;
  background: var(--accent);
  opacity: var(--lit, 0);
}
.sc-rl {
  color: color-mix(in srgb, var(--text) calc(var(--lit, 0) * 100%), var(--muted));
}

/* each block of the drawing is a ghost, and each rail node is absent (--lit 0), until its step is reached, like a puzzle being completed */
.sc-live .sb1,
.sc-live .sb2,
.sc-live .sb3,
.sc-live .sb4,
.sc-live .sb5 {
  --lit: 0;
}
.sc-live.has-1 .sb1,
.sc-live.has-2 .sb2,
.sc-live.has-3 .sb3,
.sc-live.has-4 .sb4,
.sc-live.has-5 .sb5 {
  --lit: 1;
}
.sc-live.has-2 {
  --p: 0.3326;
  --rp: 0.25;
}
.sc-live.has-3 {
  --p: 0.5;
  --rp: 0.5;
}
.sc-live.has-4 {
  --p: 0.6674;
  --rp: 0.75;
}
.sc-live.has-5 {
  --p: 1;
  --rp: 1;
} /* step 5 places Reverb and Out together, so the wire and the comet reach Out */
.sc-live.is-end {
  --p: 1;
  --rp: 1;
}
.sc-live .st-art .st-meter {
  transform: scaleY(0);
}
/* the grey track and the lit wire share one extent (--p, set per step: it lands on a block's centre), so neither
   is ever drawn past the last placed block; the comet rests on that block */
.sc-live .st-art .st-wire,
.sc-live .st-art .st-wirelit {
  transform-box: fill-box;
  transform-origin: 0 50%;
  transform: scaleX(var(--sp, var(--p)));
}
/* (the comet's position is not a CSS transform: home.js sets it as the group's transform ATTRIBUTE, in the drawing's own
   units. A CSS translate in px on an SVG element is scaled by the page zoom twice in Safari, so at 125% the comet
   overshot its block by a quarter; scaleX and the attribute are not affected) */
.sc-live.has-1 .st-art .st-head {
  opacity: 1;
}

.sc-live .st-art .st-h,
.sc-live .st-art .st-inv,
.sc-live .st-art .st-lit,
.sc-live .st-art .st-glow,
.sc-live .st-art .st-sc rect {
  transition:
    opacity 600ms var(--ease),
    transform 600ms var(--ease),
    fill 500ms var(--ease),
    stroke 500ms var(--ease);
}
.sc-live .st-art .st-sc text {
  transition: fill 500ms var(--ease);
}
.sc-live .st-art .st-ind {
  transition: transform 900ms var(--ease) var(--td, 0ms);
}
.sc-live .st-art .st-val {
  transition: stroke-dasharray 900ms var(--ease) var(--td, 0ms);
}
/* Order on a step change: the line comes first and the block is born from its end. The wire, the comet and the rail's
   fill follow the scroll (home.js: --sp and --rsp) and reach the next block's place exactly where its step begins;
   the block (and its rail node) appear there and grow out of the line's end. Going back they leave at once while the
   line retracts with the scroll. */
.sc-live .st-art .st-g {
  transform: scale(calc(0.94 + 0.06 * var(--lit, 1)));
  transition:
    opacity 200ms var(--ease),
    transform 200ms var(--ease);
}
.sc-live .st-art .st-g .st-knob,
.sc-live .st-art .st-g .ha-t3 {
  transition: opacity 200ms var(--ease);
}
.sc-live.has-1 .st-art .st-g.sb1,
.sc-live.has-2 .st-art .st-g.sb2,
.sc-live.has-3 .st-art .st-g.sb3,
.sc-live.has-4 .st-art .st-g.sb4,
.sc-live.has-5 .st-art .st-g.sb5 {
  transition:
    opacity 350ms var(--ease),
    transform 450ms var(--ease);
}
.sc-live.has-1 .st-art .sb1 .st-knob,
.sc-live.has-1 .st-art .sb1 .ha-t3,
.sc-live.has-2 .st-art .sb2 .st-knob,
.sc-live.has-2 .st-art .sb2 .ha-t3,
.sc-live.has-3 .st-art .sb3 .st-knob,
.sc-live.has-3 .st-art .sb3 .ha-t3,
.sc-live.has-4 .st-art .sb4 .st-knob,
.sc-live.has-4 .st-art .sb4 .ha-t3,
.sc-live.has-5 .st-art .sb5 .st-knob,
.sc-live.has-5 .st-art .sb5 .ha-t3 {
  transition: opacity 350ms var(--ease) 150ms;
}
/* the line follows the scroll (home.js sets --sp and --rsp as the visitor scrolls), so it has no transition of its own */
.sc-live .st-art .st-wire,
.sc-live .st-art .st-wirelit,
.sc-live .st-art .st-head {
  transition: opacity 300ms var(--ease);
}
.sc-live .sc-rail-fill {
  transition: none;
}
.sc-live .sc-rn {
  transition: opacity 200ms var(--ease);
}
.sc-live .sc-rn i {
  transform: scale(0.5);
}
.sc-live .sc-rn i,
.sc-live .sc-rn i::before,
.sc-live .sc-rl {
  transition:
    opacity 200ms var(--ease),
    color 200ms var(--ease),
    transform 200ms var(--ease);
}
.sc-live.has-1 .sc-rn.sb1,
.sc-live.has-2 .sc-rn.sb2,
.sc-live.has-3 .sc-rn.sb3,
.sc-live.has-4 .sc-rn.sb4,
.sc-live.has-5 .sc-rn.sb5 {
  transition: opacity 300ms var(--ease);
}
.sc-live.has-1 .sc-rn.sb1 i,
.sc-live.has-2 .sc-rn.sb2 i,
.sc-live.has-3 .sc-rn.sb3 i,
.sc-live.has-4 .sc-rn.sb4 i,
.sc-live.has-5 .sc-rn.sb5 i {
  transform: none;
  transition:
    opacity 400ms var(--ease),
    color 400ms var(--ease),
    transform 450ms var(--ease);
}
.sc-live.has-1 .sc-rn.sb1 i::before,
.sc-live.has-2 .sc-rn.sb2 i::before,
.sc-live.has-3 .sc-rn.sb3 i::before,
.sc-live.has-4 .sc-rn.sb4 i::before,
.sc-live.has-5 .sc-rn.sb5 i::before,
.sc-live.has-1 .sc-rn.sb1 .sc-rl,
.sc-live.has-2 .sc-rn.sb2 .sc-rl,
.sc-live.has-3 .sc-rn.sb3 .sc-rl,
.sc-live.has-4 .sc-rn.sb4 .sc-rl,
.sc-live.has-5 .sc-rn.sb5 .sc-rl {
  transition:
    opacity 400ms var(--ease),
    color 400ms var(--ease);
}

/* The current step's block pulses; meters rise from empty and then breathe. Nothing loops for ever: the pulse
   repeats three times, the breathing and the meters a few cycles (an even number of alternations, so they come to
   rest where the rise ended), so an idle page is still and does not keep the browser repainting the drawing. */
.sc-live.is-step-1 .sb1 .st-halo,
.sc-live.is-step-2 .sb2 .st-halo,
.sc-live.is-step-3 .sb3 .st-halo,
.sc-live.is-step-4 .sb4 .st-halo,
.sc-live.is-step-5 .sb5 .st-halo {
  animation: st-pulse 2.8s ease-out 0.5s 3;
}
.sc-live.is-step-1 .sc-rn.sb1 i,
.sc-live.is-step-2 .sc-rn.sb2 i,
.sc-live.is-step-3 .sc-rn.sb3 i,
.sc-live.is-step-4 .sc-rn.sb4 i,
.sc-live.is-step-5 .sc-rn.sb5 i {
  box-shadow:
    inset 0 0 0 2px var(--accent),
    0 0 0 4px rgb(255 122 26 / 0.3);
}
.sc-live.has-3 .st-glow {
  animation: st-breathe 5s ease-in-out 0s 2 alternate forwards;
}
.sc-live.has-1 .st-m1 {
  animation:
    st-mrise 500ms var(--ease) 350ms both,
    st-meter 2.8s ease-in-out 850ms 4 alternate forwards;
}
.sc-live.has-5 .st-m2 {
  animation:
    st-mrise 500ms var(--ease) 350ms both,
    st-meter2 3.4s ease-in-out 850ms 4 alternate forwards;
}
/* out of sight: the looping parts wait (the scrubbed ones follow the scroll and cost nothing, and pausing them would
   leave a scroll-driven animation stuck at its end when the page jumps back into the story) */
.sc-live.is-away .st-halo,
.sc-live.is-away .st-glow,
.sc-live.is-away .st-meter {
  animation-play-state: paused;
}

@keyframes st-pulse {
  0% {
    opacity: 0;
  }
  8% {
    opacity: 0.7;
  }
  40%,
  100% {
    opacity: 0;
  }
}
@keyframes st-breathe {
  from {
    opacity: 0.35;
  }
  to {
    opacity: 0.6;
  }
}
@keyframes st-mrise {
  from {
    transform: scaleY(0);
  }
  to {
    transform: scaleY(0.3);
  }
}
@keyframes st-meter {
  from {
    transform: scaleY(0.3);
  }
  to {
    transform: scaleY(0.62);
  }
}
@keyframes st-meter2 {
  from {
    transform: scaleY(0.3);
  }
  to {
    transform: scaleY(0.72);
  }
}

/* the halo around the current block: three outlines of falling strength (no blur filter, which the browser cannot
   composite and would redraw the drawing on every frame of the pulse) */
.st-art .ha-halo .hl {
  fill: none;
  stroke: var(--k);
}
.st-art .ha-halo .hl1 {
  stroke-width: 24px;
  stroke-opacity: 0.1;
}
.st-art .ha-halo .hl2 {
  stroke-width: 14px;
  stroke-opacity: 0.16;
}
.st-art .ha-halo .hl3 {
  stroke-width: 6px;
  stroke-opacity: 0.24;
}

/* Landscape screens (desktops, laptops, a zoomed desktop window, a phone on its side): two columns in the one pinned
   screen, the caption or the headline on the left, the stage on the right and as tall as the screen allows. Only the
   arrangement changes with the screen; the story, its classes and its scroll length are the same at every size. */
@media (min-aspect-ratio: 1/1) {
  .sc-live {
    --sc-art-h: calc(var(--pin-h) - 2 * var(--pin-pad) - var(--sc-rail-h) - var(--sc-bar-h));
  }
  .sc-live .sc-pin {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    grid-template-rows: minmax(0, 1fr);
    gap: 0 clamp(20px, 4vw, 48px);
  }
  .sc-live .sc-stage {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
  }
  .sc-live .sc-hero {
    grid-column: 1;
    grid-row: 1;
    align-self: center;
  }
  /* The caption column changes height while the cards fold (grid-template-rows transitions inside it). WebKit
     (Safari) does not re-run the OUTER grid alignment when a grid item's height changes that way: the column kept
     the offset it got while it was empty and sat half a screen too low. So the column fills the row and centres its
     content with flex and auto margins (also "safe": a column taller than the screen starts at its top). */
  .sc-live .sc-text {
    grid-column: 1;
    grid-row: 1;
    align-self: stretch;
    display: flex;
    flex-direction: column;
  }
  .sc-live .sc-text .sc-steps {
    margin-block: auto;
  }
  .sc-live .sc-final,
  .sc-live .sc-open {
    align-self: center;
  }
  .sc-live .sc-final h1 {
    font-size: clamp(24px, min(4.6vw, 7.4 * var(--vh)), 64px);
  }
  [data-lang="es"] .sc-live .sc-final h1 {
    font-size: clamp(22px, min(3.6vw, 6 * var(--vh)), 52px); /* the Spanish headline is longer */
  }
}
@media (min-width: 1001px) {
  .sc-rn {
    font-size: 11px;
  }
}
/* Wide and tall enough (the one condition that also turns the rail into buttons, see home.js): only the current caption
   is shown, beside the window. There are no strips of done steps (the rail above the window already shows what is done).
   All five cards sit in ONE grid cell (the same grid-area), so the column is as tall as the tallest card at every step and
   nothing moves when the step changes; only opacity and transform animate. The outgoing card fades out first (160ms, no
   delay) and the incoming one starts only after that (180ms delay), so the two never show legible text on top of each
   other. Every card stays in the page, in reading order, at opacity 0 and without clicks until its turn (never display:none
   or visibility:hidden, which break find in page and the per-beat scrolling). The column's content is centred on the
   window: it has the rail's height as padding on top, because the rail sits above the window inside the stage. The caption
   column is still the flex column with auto margins from above (Safari), only its height no longer changes. */
@media (min-width: 1001px) and (min-height: 640px) and (min-aspect-ratio: 1/1) {
  .sc-live .sc-text {
    box-sizing: border-box;
    padding-top: var(--sc-rail-h);
  }
  .sc-live .sc-steps {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
  }
  .sc-live .sc-steps .sc-step,
  .sc-live .sc-steps .sc-step.is-on {
    grid-area: 1 / 1;
    grid-template-rows: auto;
    padding-bottom: 0;
    transition: none;
  }
  .sc-live .sc-step .sc-card {
    padding: var(--cp-t) var(--cp-x) var(--cp-b);
    /* only one caption shows at a time here, so it is plain text beside the window: no box, no shadow, no rounded
       corners; the step's coloured rule, kicker and title stay */
    background: none;
    box-shadow: none;
    border-radius: 0;
    opacity: 0;
    transform: translateY(10px);
    transition:
      opacity 160ms var(--ease),
      transform 320ms var(--ease);
  }
  .sc-live .sc-step.is-past .sc-card {
    transform: translateY(-10px);
  }
  .sc-live .sc-step.is-on .sc-card {
    opacity: 1;
    transform: none;
    transition:
      opacity 320ms var(--ease) 180ms,
      transform 420ms var(--ease) 180ms;
  }
  /* the rail's circles are buttons here: a circle already on the rail takes clicks (the others are not drawn yet), the
     button is the whole cell and 44px tall (the extra height comes out of the margin below it, so the rail takes the
     same room as before and the circles and labels sit where they did), and its focus ring is drawn round the circle */
  .sc-live .sc-rail {
    --rail-btn: 1; /* home.js reads this: the rail is a set of buttons (tab order, aria) only where this is 1 */
    margin-bottom: 2px;
  }
  .sc-live .sc-rn {
    min-height: 44px;
    align-content: start;
  }
  .sc-live.has-1 .sc-rn.sb1,
  .sc-live.has-2 .sc-rn.sb2,
  .sc-live.has-3 .sc-rn.sb3,
  .sc-live.has-4 .sc-rn.sb4,
  .sc-live.has-5 .sc-rn.sb5 {
    pointer-events: auto;
    cursor: pointer;
  }
  .sc-live .sc-rn:focus-visible {
    outline: none;
  }
  .sc-live .sc-rn:focus-visible i {
    outline: 2px solid var(--text);
    outline-offset: 4px;
  }
}
@media (max-width: 640px) {
  .sc-rn {
    font-size: 11px;
    letter-spacing: 0.04em;
  }
}
/* short screens (a zoomed or small landscape window): the caption keeps its step and title and leaves its sentence to
   screen readers, and the rail's labels get tighter, so the pinned screen holds without cramming */
@media (max-height: 520px) {
  .sc-live .sc-card p:not(.hn-kicker):not(.sc-more) {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}
@media (max-height: 520px) {
  .sc-live .sc-rn {
    font-size: 9.5px;
    letter-spacing: 0;
  }
}
/* a rail too narrow for five labels names only the current step (the numbers say the rest) */
@media (max-height: 520px) and (min-aspect-ratio: 1/1) {
  .sc-live .sc-rl {
    visibility: hidden;
  }
  .sc-live.is-step-1 .sc-rn.sb1 .sc-rl,
  .sc-live.is-step-2 .sc-rn.sb2 .sc-rl,
  .sc-live.is-step-3 .sc-rn.sb3 .sc-rl,
  .sc-live.is-step-4 .sc-rn.sb4 .sc-rl,
  .sc-live.is-step-5 .sc-rn.sb5 .sc-rl {
    visibility: visible;
  }
}
/* narrow phones: the drawing's 6px labels cannot be read at this size, so they are left out; the pedals keep their
   knobs (the dials themselves, no captions) and the rail above says what each block is */
@media (max-width: 499px) {
  .st-art .ha-t3 {
    display: none;
  }
}
/* short phones: a smaller stage and a tighter headline, so the buttons still fit under the finished rig */
@media (max-aspect-ratio: 1/1) and (max-height: 760px) {
  .sc-live {
    --sc-art-h: calc(var(--pin-h) * 0.46 - var(--sc-rail-h) - var(--sc-bar-h));
  }
  .sc-live .sc-final .hn-eyebrow {
    margin-bottom: 8px;
  }
  .sc-live .sc-final h1 {
    font-size: 32px;
    margin-bottom: 10px;
  }
  .sc-live .sc-final .hn-lead {
    font-size: 16px;
    line-height: 1.4;
  }
  .sc-live .sc-final .hn-actions {
    margin-top: 14px;
  }
  .sc-live .sc-lite {
    font-size: 26px;
    margin-bottom: 16px;
  }
}
/* very short screens (an SE, a small Android with its toolbar shown, a zoomed or small landscape window): the headline
   block gets tighter still so the buttons stay on the pinned screen. The stacked fallback is not used here: a
   phone's height changes by the toolbar's own height as it scrolls, and the story must not switch layouts under the
   visitor's thumb. */
@media (max-height: 700px) {
  .sc-live .sc-final .hn-eyebrow {
    margin-bottom: 4px;
    font-size: 11px;
  }
  .sc-live .sc-final h1 {
    font-size: 28px;
    margin-bottom: 8px;
  }
  .sc-live .sc-final .hn-lead {
    font-size: 15px;
    line-height: 1.35;
  }
  .sc-live .sc-final .hn-actions {
    margin-top: 8px;
    gap: 0 20px;
  }
  .sc-live .sc-final .hn-btn {
    min-height: 48px;
  }
  .sc-live .sc-final .hn-textlink {
    min-height: 40px;
  }
}

/* scroll-driven: only the opening panel's exit follows the scroll. The signal line, the comet and the rail are class
   driven, so they never run ahead of the blocks that have been placed. */
@supports (animation-timeline: scroll()) {
  /* the opening panel leaves with the first stretch of scrolling, so the very first wheel tick moves something */
  .sc-live .sc-open {
    animation: sc-open-out linear both;
    animation-timeline: scroll(root block);
    animation-range: 0px calc(var(--sc-zone) * 0.8);
  }
  @keyframes sc-open-out {
    to {
      opacity: 0;
      transform: translateY(-14px);
    }
  }
}

@media (forced-colors: active) {
  .sc-card,
  .sc-rn i {
    border: 1px solid CanvasText;
  }
  /* the drawing loses its dimming in high contrast: the blocks reached so far get a Highlight outline instead */
  .sc-live .st-art .st-lit {
    stroke: Highlight;
    stroke-width: 2px;
  }
  .sc-live .st-art .st-wire {
    fill: CanvasText;
  }
  .sc-live .sc-rail-fill {
    forced-color-adjust: none;
    background: Highlight;
  }
  .sc-live .sc-step.is-on .sc-card {
    outline: 2px solid Highlight;
  }
}

/* ==== S5: story height tiers (the drawing shows less, it is never squeezed) ====
   The tiers are keyed on the height the screen has (a zoomed window, a phone on its side), never on the device or
   on a width test in script. The same five steps, classes and beats play at every size; only how much of the
   drawing, the caption and the headline is drawn changes.
     full     taller than 640px   everything (unchanged)
     medium   421 to 640px        no 6px labels, no window chrome text, shorter rail labels (the dials stay on every card)
     compact  420px and below     the stage is cropped to the signal chain (seven blocks appearing one by one),
                                  the caption is kicker + title, the rail is numbers only, the headline is the h1
                                  and one button
   Below 240px tall the story is not live at all (home.js), and the stacked page follows the compact rules. */
@media (max-height: 640px), (max-width: 499px) {
  /* the drawing's text is drawn at 5 to 7px at these sizes (a short screen, or a drawing narrower than 500px whatever
     the height: a phone): only the block names (and the amp's name and the rig title) stay, larger, and the labels of
     the controls are left to the captions and the rail. This is drawing legibility, not a gate: the story plays the same either way. */
  .st-art .ha-t2,
  .st-art .ha-t3,
  .st-art .ha-pill,
  .st-art .ha-saved,
  .st-art .ha-tick,
  .st-art .st-sc {
    display: none;
  }
  .st-art .ha-title,
  .st-art .ha-name {
    font-size: 18px;
  }
  /* each block keeps its name (COMPRESSOR, DRIVE, CABINET...): drawn larger and tighter so it reads at phone size and
     still fits the 126-unit pedal beside its LED (the longest, SATURACIÓN, is about 77 units wide) */
  .st-art .ha-k {
    font-size: 12px;
    letter-spacing: 0.04em;
  }
  .st-art .ha-ic {
    stroke-width: 2;
  }
  .sc-live .sc-rn {
    font-size: 10px;
    letter-spacing: 0.02em;
  }
}
@media (max-height: 420px) {
  /* the stage is the signal chain: a strip of the drawing (its bottom 130 of 430 units) across the width */
  .sc-live {
    --pin-pad: 4px;
    --sc-rail-h: 30px;
    --sc-bar-h: 22px;
    --sc-art-h: calc(var(--pin-h) * 0.3);
  }
  .hh-art.st-art {
    aspect-ratio: 640 / 130;
  }
  /* the panes above the strip (meters, amp, pedal cards) are out of the crop; their halos and tracks would peek in */
  .st-art .st-pane {
    display: none;
  }
  .st-art .ha-ic {
    stroke-width: 2.6;
  }
  .st-art .ha-edge {
    stroke-width: 2;
  }
  /* one column at every aspect: stage on top, caption or headline under it */
  .sc-live .sc-pin {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    gap: 6px 0;
  }
  .sc-live .sc-stage {
    grid-column: 1;
    grid-row: 1;
    align-self: start;
    --win-w: min(100%, 820px, calc(var(--sc-art-h) * 640 / 130));
  }
  .sc-live .sc-hero,
  .sc-live .sc-text {
    grid-column: 1;
    grid-row: 2;
    align-self: start;
  }
  .sc-live .sc-final,
  .sc-live .sc-open {
    align-self: start;
  }
  .sc-live .sc-window .hn-tag {
    padding-block: 3px;
    font-size: 9.5px;
  }
  .sc-live .sc-window .hn-dots i {
    width: 8px;
    height: 8px;
  }
  /* the rail: numbers only */
  .sc-live .sc-rn {
    gap: 0;
  }
  .sc-live .sc-rl {
    display: none;
  }
  .sc-live .sc-rn i {
    width: 20px;
    height: 20px;
    font-size: 10.5px;
  }
  .sc-live .sc-rail {
    margin-bottom: 6px;
  }
  .sc-live .sc-rail-line {
    top: 9px;
  }
  /* the headline has arrived: the rail has done its job (it is not drawn, but keeps its room so the stage does not
     move; on the very shortest screens the room goes to the headline) */
  .sc-live.is-end .sc-rail {
    visibility: hidden;
  }
  /* the caption: kicker and title */
  .sc-live .sc-card {
    --cp-x: 12px;
    --cp-t: 8px;
    --cp-b: 9px;
  }
  .sc-live .sc-card .hn-kicker {
    margin-bottom: 3px;
    font-size: 10.5px;
  }
  .sc-live .sc-card h3 {
    margin: 0;
    font-size: 20px;
    line-height: 1.15;
  }
  .sc-live .sc-card .sc-more {
    display: none;
  }
  /* the headline: the h1 and one button. The eyebrow and the lead stay in the page for screen readers and are not
     drawn; the two quiet links are left out (the menu and the page have them). */
  .sc-final .hn-eyebrow,
  .sc-final .hn-lead {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  .sc-final .hn-actions .hn-textlink {
    display: none;
  }
  .sc-open .hn-textlink,
  .sc-open .hn-eyebrow {
    display: none;
  }
  .sc-final h1,
  .sc-live .sc-final h1,
  [data-lang="es"] .sc-live .sc-final h1 {
    font-size: 24px;
    font-size: clamp(20px, 7svh, 30px);
    line-height: 1.05;
    margin: 0 0 8px;
  }
  .sc-final .hn-actions {
    margin-top: 0;
  }
  .sc-live .sc-final .hn-actions {
    margin-top: 0;
  }
  .sc-final .hn-btn,
  .sc-open .hn-btn,
  .sc-live .sc-final .hn-btn {
    min-height: 44px;
  }
  /* the opening panel: one line, the button and the scroll cue on one row */
  .sc-live .sc-open {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 18px;
  }
  .sc-live .sc-lite {
    flex: 0 0 100%;
    margin: 0;
    font-size: clamp(18px, 6 * var(--vh), 26px);
  }
  .sc-live .sc-cue {
    margin: 0;
    font-size: 10px;
    letter-spacing: 0.08em;
  }
  .sc-live .sc-cue-arrow {
    width: 14px;
    height: 14px;
  }
}
@media (max-height: 290px) {
  .sc-live.is-end .sc-rail {
    display: none;
  }
  .sc-live .sc-window .hn-window-bar {
    display: none;
  }
}
/* ==== end S5 ==== */
