/* openhop.cfd
   Brand: amber #f2b318 · graphite #1f2125 · paper #efede6
   Type: Inter (text) · Barlow Semi Condensed (display, stands in for Bahnschrift) · system mono (code)
   Feel: a sturdy tool. Flat fills, hard 1px rules, chamfered tag corners, no glow.

   The page is complete with this file alone. Motion only appears when the fx island has loaded on a capable device
   (it adds class "fx" to <html>; see src/fx/). Nothing here hides content waiting for JavaScript. */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-var.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Semi Condensed";
  font-weight: 300;
  font-display: swap;
  src: url("/assets/fonts/barlow-semi-condensed-latin-300.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Semi Condensed";
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/barlow-semi-condensed-latin-500.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Semi Condensed";
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/barlow-semi-condensed-latin-600.woff2") format("woff2");
}
@font-face {
  font-family: "Barlow Semi Condensed";
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/barlow-semi-condensed-latin-700.woff2") format("woff2");
}

/* ------------------------------------------------------------------ tokens */
:root {
  --amber: #f2b318;
  --amber-hi: #ffc535;
  --amber-lo: #d99f0e;
  --graphite: #1f2125;
  --paper: #efede6;
  --ink: #111215; /* the always-dark surfaces: header, hero, download band, footer */
  --ink-deep: #0d0e10;
  --warn: #f2795b;
  --ok: #4fd18b;

  --bg: #efede6;
  --bg-alt: #e7e4da;
  --surface: #f8f7f2;
  --surface-2: #fffefa;
  --text: #1f2125;
  --muted: #55524b;
  --dim: #7a776f;
  --line: rgba(31, 33, 37, 0.13);
  --line-strong: rgba(31, 33, 37, 0.26);
  --accent-text: #7a5600;
  --solid-bg: #1f2125;
  --solid-text: #efede6;
  --solid-hover: #33363c;
  --pending-bg: #dcd8cc;
  --pending-text: #55524b;
  --code-bg: #fbfaf6;
  --code-line: rgba(31, 33, 37, 0.07);
  --code-hit: rgba(242, 179, 24, 0.22);
  --shadow-hard: 4px 4px 0 var(--graphite);
  --sel: rgba(242, 179, 24, 0.38);
  --focus: #1f2125;

  /* syntax */
  --hl-comment: #77736a;
  --hl-keyword: #8a2f9c;
  --hl-string: #2d6a1e;
  --hl-number: #a33f00;
  --hl-title: #1c5aa6;
  --hl-attr: #7a5600;
  --hl-tag: #9b2b2b;
  --hl-meta: #5b5f66;

  --c: 10px; /* chamfer, the brand's tag corner */
  --wrap: 1200px;
  --gutter: 32px;
  --sans: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --display: "Barlow Semi Condensed", "Bahnschrift", "DIN Alternate", "Arial Narrow", sans-serif;
  --mono: "Cascadia Mono", "Cascadia Code", ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  color-scheme: light;
}

/* Dark token set, used by the whole page in dark mode and by the always-dark bands in light mode. */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #191a1e;
    --bg-alt: #111214;
    --surface: #1f2125;
    --surface-2: #26292e;
    --text: #ecebe4;
    --muted: #a8a59b;
    --dim: #7f7c74;
    --line: rgba(236, 233, 222, 0.09);
    --line-strong: rgba(236, 233, 222, 0.2);
    --accent-text: #f7cc5c;
    --solid-bg: #2f3237;
    --solid-text: #ecebe4;
    --solid-hover: #3b3e44;
    --pending-bg: #26282d;
    --pending-text: #a8a59b;
    --code-bg: #18191c;
    --code-line: rgba(236, 233, 222, 0.05);
    --code-hit: rgba(242, 179, 24, 0.16);
    --shadow-hard: 4px 4px 0 #000;
    --sel: rgba(242, 179, 24, 0.32);
    --focus: #f2b318;

    --hl-comment: #8a877e;
    --hl-keyword: #e39ad0;
    --hl-string: #a6d189;
    --hl-number: #f2a56b;
    --hl-title: #8cb8ef;
    --hl-attr: #f7cc5c;
    --hl-tag: #f08f86;
    --hl-meta: #9aa0a8;

    color-scheme: dark;
  }
}
.top,
.hero-top,
.sec-dark,
.foot {
  --bg: var(--ink);
  --bg-alt: #0f1012;
  --surface: #1b1d21;
  --surface-2: #22252a;
  --text: #ecebe4;
  --muted: #a8a59b;
  --dim: #7f7c74;
  --line: rgba(236, 233, 222, 0.09);
  --line-strong: rgba(236, 233, 222, 0.2);
  --accent-text: #f7cc5c;
  --solid-bg: #2f3237;
  --solid-text: #ecebe4;
  --solid-hover: #3b3e44;
  --pending-bg: #26282d;
  --pending-text: #a8a59b;
  --sel: rgba(242, 179, 24, 0.32);
  --focus: #f2b318;
  color-scheme: dark;
  color: var(--text);
}

/* ------------------------------------------------------------------ base */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 84px;
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
  overflow-x: clip;
}
::selection {
  background: var(--sel);
}
h1,
h2,
h3,
h4,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--accent-text);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
code,
pre {
  font-family: var(--mono);
  font-size: 0.88em;
}
:not(pre) > code {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  padding: 0.05em 0.35em;
  border-radius: 3px;
  white-space: nowrap;
}
b,
strong {
  font-weight: 650;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--amber);
  color: var(--graphite);
  padding: 8px 14px;
  font-weight: 600;
  text-decoration: none;
}
.skip:focus {
  top: 12px;
}
.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.i {
  width: 18px;
  height: 18px;
  flex: none;
}
.small {
  font-size: 14px;
  color: var(--muted);
}
.tiny {
  font-size: 12.5px;
  color: var(--dim);
}

/* ------------------------------------------------------------------ buttons */
.btn {
  --bc: var(--c);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 20px;
  font: 600 15px/1.2 var(--sans);
  text-decoration: none;
  border: 0;
  cursor: pointer;
  clip-path: polygon(var(--bc) 0, 100% 0, 100% calc(100% - var(--bc)), calc(100% - var(--bc)) 100%, 0 100%, 0 var(--bc));
  transition: background-color 120ms ease, transform 70ms ease;
  white-space: nowrap;
}
/* clip-path would cut the focus ring off, so a focused button drops its corners and shows a real outline. */
.btn:focus-visible {
  clip-path: none;
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
.btn:hover {
  text-decoration: none;
}
.btn:active {
  transform: translateY(1px);
}
.btn-amber {
  background: var(--amber);
  color: var(--graphite);
}
.btn-amber:hover {
  background: var(--amber-hi);
}
.btn-solid {
  background: var(--solid-bg);
  color: var(--solid-text);
}
.btn-solid:hover {
  background: var(--solid-hover);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line-strong);
}
.btn-pending {
  background: var(--pending-bg);
  color: var(--pending-text);
  cursor: default;
}
.btn-pending:active {
  transform: none;
}
.btn-lg {
  min-height: 56px;
  padding: 0 26px;
  font-size: 16px;
}
.btn-sm {
  --bc: 7px;
  min-height: 36px;
  padding: 0 14px;
  font-size: 14px;
  gap: 8px;
}
.btn-sm .i {
  width: 16px;
  height: 16px;
}

/* ------------------------------------------------------------------ header (always dark) */
.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  border-bottom: 1px solid var(--line);
}
.top-in {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}
.logo {
  width: 30px;
  height: 30px;
  flex: none;
}
.wordmark {
  font-family: var(--display);
  font-size: 25px;
  line-height: 1;
  letter-spacing: 0.005em;
  padding-bottom: 2px;
}
.wm-open {
  font-weight: 300;
}
.wm-hop {
  font-weight: 700;
}
.nav {
  display: flex;
  gap: 2px;
  margin-right: auto;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
  padding: 8px 11px;
}
.nav a:hover,
.nav a[aria-current] {
  color: var(--text);
}
.nav a[aria-current] {
  box-shadow: inset 0 -2px 0 var(--amber);
}
.top-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}
.lang {
  display: inline-flex;
  border: 1px solid var(--line-strong);
}
.lang a {
  font: 600 13px/1 var(--display);
  letter-spacing: 0.08em;
  color: var(--muted);
  text-decoration: none;
  padding: 9px 10px 8px;
  min-width: 40px;
  text-align: center;
}
.lang a + a {
  border-left: 1px solid var(--line-strong);
}
.lang a:hover {
  color: var(--text);
}
.lang a[aria-current] {
  background: var(--text);
  color: var(--bg);
}

/* ------------------------------------------------------------------ labels & headings */
.label {
  display: flex;
  align-items: center;
  gap: 10px;
  font: 600 13px/1 var(--display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.label::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--amber);
  flex: none;
  order: -1;
}
.label-num {
  color: var(--text);
  font-weight: 700;
  padding-right: 10px;
  border-right: 1px solid var(--line-strong);
}
h1,
h2,
h3,
h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.005em;
  text-wrap: balance;
}
.sec-head {
  max-width: 780px;
  margin-bottom: 56px;
}
.sec-head h2 {
  font-size: clamp(34px, 4.4vw, 56px);
  line-height: 1;
  letter-spacing: -0.012em;
  margin-top: 20px;
}
.sec-head-split {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 24px 64px;
  align-items: end;
}
.sec-head-split .lead {
  margin: 0;
  padding-bottom: 4px;
}
.lead {
  margin-top: 16px;
  font-size: 18px;
  color: var(--muted);
  max-width: 62ch;
  text-wrap: pretty;
}
.sub-h {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 26px;
  margin: 80px 0 0;
}
.sub-h::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line-strong);
}

/* ------------------------------------------------------------------ hero */
.hero-top {
  position: relative;
  isolation: isolate;
  background: var(--ink);
  padding: 96px 0 0;
  overflow: hidden;
}
/* Static backdrop: a faint survey grid fading out from the top right. The WebGL lines (fx) sit on top of it. */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(236, 233, 222, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(236, 233, 222, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  background-position: -1px -1px;
  -webkit-mask-image: radial-gradient(120% 90% at 85% 10%, #000 0%, rgba(0, 0, 0, 0.55) 45%, transparent 80%);
  mask-image: radial-gradient(120% 90% at 85% 10%, #000 0%, rgba(0, 0, 0, 0.55) 45%, transparent 80%);
}
.hero-bg::after {
  /* one amber "route" line, the brand's hop arc, drawn in plain CSS */
  content: "";
  position: absolute;
  right: -6%;
  top: 14%;
  width: 62%;
  height: 70%;
  border-top: 2px solid rgba(242, 179, 24, 0.22);
  border-radius: 50% 50% 0 0 / 100% 100% 0 0;
}
html.fx .hero-bg::after {
  display: none;
}
.hero-fx {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1.6s ease;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.35) 26%, #000 56%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0, 0, 0, 0.35) 26%, #000 56%);
}
.hero-fx.is-on {
  opacity: 1;
}
.hero-in {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  gap: 64px;
  align-items: center;
}
.eyebrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  font: 600 14px/1.3 var(--display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow-tag {
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--graphite);
  background: var(--amber);
  padding: 5px 8px 4px;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}
.hero h1 {
  font-size: clamp(44px, 6.3vw, 88px);
  line-height: 0.94;
  letter-spacing: -0.018em;
  margin-top: 24px;
  max-width: 11.5em;
}
.hero h1 em {
  font-style: normal;
  color: var(--amber);
}
.hero-sub {
  margin-top: 28px;
  font-size: clamp(18px, 1.5vw, 20.5px);
  line-height: 1.55;
  color: var(--muted);
  max-width: 34em;
  text-wrap: pretty;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}
.hero-note {
  margin-top: 16px;
  font-size: 14px;
  color: var(--dim);
  max-width: 40em;
}

/* the hop console: a log window that tells the story of one hop */
.hop {
  position: relative;
  background: var(--ink-deep);
  border: 1px solid rgba(236, 233, 222, 0.14);
  box-shadow: 10px 10px 0 rgba(0, 0, 0, 0.45);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.45;
}
.hop::before {
  content: "";
  position: absolute;
  left: -1px;
  right: -1px;
  top: -1px;
  height: 3px;
  background: var(--amber);
}
.hop-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 16px 11px;
  border-bottom: 1px solid var(--line);
}
.hop-lamps {
  display: inline-flex;
  gap: 5px;
}
.hop-lamps i {
  width: 8px;
  height: 8px;
  background: #34373d;
}
.hop-lamps i:last-child {
  background: var(--amber);
}
.hop-title {
  font: 600 12.5px/1 var(--display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: auto;
}
.hop-ex {
  font: 600 11px/1 var(--display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
  border: 1px dashed var(--line-strong);
  padding: 4px 6px 3px;
}
.hop-log {
  padding: 6px 0;
}
.hop-log li {
  display: grid;
  grid-template-columns: 70px 84px minmax(0, 1fr);
  gap: 8px;
  padding: 8px 16px;
  color: var(--text);
}
.hop-t {
  color: var(--dim);
  font-variant-numeric: tabular-nums;
}
.hop-w {
  color: var(--muted);
}
.tone-warn .hop-x {
  color: var(--warn);
}
.tone-ok .hop-x {
  color: var(--ok);
  font-weight: 600;
}
.hop-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ok);
  margin-right: 8px;
  vertical-align: 1px;
}
.hop-ip {
  background: rgba(242, 179, 24, 0.07);
  box-shadow: inset 2px 0 0 var(--amber);
}
.hop-ip .hop-x {
  white-space: nowrap;
}
.ip-old {
  color: var(--dim);
  text-decoration: line-through;
  text-decoration-color: rgba(236, 233, 222, 0.3);
}
.ip-arrow {
  color: var(--amber);
  padding: 0 8px;
}
.ip-new {
  color: var(--amber);
  font-weight: 700;
}
.ip-scramble {
  color: var(--dim);
}
.hop-foot {
  padding: 11px 16px 13px;
  border-top: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 13px;
  color: var(--muted);
}

/* spec strip: the old "spec plate", now a datasheet row under the hero */
.spec {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: 80px;
  border-top: 1px solid var(--line-strong);
}
.spec > div {
  padding: 18px 20px 22px 0;
  min-width: 0;
}
.spec > div + div {
  padding-left: 20px;
  border-left: 1px solid var(--line);
}
.spec dt {
  font: 600 12px/1.2 var(--display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 8px;
}
.spec dd {
  font-size: 14.5px;
  font-weight: 550;
  line-height: 1.4;
}
.ver-link {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--amber);
}
.ver-link:hover {
  color: var(--accent-text);
  border-bottom-color: currentColor;
}
.tag {
  display: inline-block;
  font: 700 11px/1 var(--display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--amber);
  color: var(--graphite);
  padding: 4px 6px 3px;
  margin-left: 6px;
  vertical-align: 2px;
}

/* screenshot: half in the dark hero, half on the page */
.hero-shot {
  background: linear-gradient(var(--ink) 0 38%, transparent 38%);
  padding-top: 8px;
}
.shot-frame {
  background: var(--ink-deep);
  border: 1px solid #000;
  padding: 10px;
  box-shadow: 12px 12px 0 var(--amber);
}
.shot-frame img {
  width: 100%;
}
.shot figcaption {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
  padding: 26px 0 0;
}
.shot figcaption::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--amber);
  flex: none;
}

/* ------------------------------------------------------------------ sections */
.sec {
  padding: 120px 0;
  border-bottom: 1px solid var(--line);
}
.home .sec:first-of-type {
  padding-top: 112px;
}
.sec-last {
  border-bottom: 0;
}
.sec-dark {
  background: var(--ink);
  border-bottom: 0;
}

/* diagram */
.diagram {
  position: relative;
  border: 1px solid var(--line-strong);
  background:
    radial-gradient(var(--line-strong) 1px, transparent 1.5px) 0 0 / 24px 24px,
    var(--surface);
  padding: 36px;
  display: grid;
  gap: 24px;
}
.lane {
  display: grid;
  grid-template-columns: 1fr 48px 1fr 72px 1fr 48px 1fr;
  align-items: stretch;
}
.lane-other {
  grid-template-columns: 1fr 48px 3fr;
  padding-top: 24px;
  border-top: 1px dashed var(--line-strong);
}
.node {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 18px 17px;
  background: var(--bg);
  border: 1px solid var(--line-strong);
  min-width: 0;
}
.node-k {
  font: 700 12px/1 var(--display);
  letter-spacing: 0.12em;
  color: var(--dim);
}
.node-t {
  font: 700 22px/1.15 var(--display);
}
.node-s {
  font-size: 13.5px;
  line-height: 1.4;
  color: var(--muted);
}
.node-s span {
  color: var(--dim);
}
.node-hot {
  background: var(--amber);
  border-color: var(--amber-lo);
  color: var(--graphite);
  box-shadow: 6px 6px 0 var(--graphite);
}
.node-hot .node-k,
.node-hot .node-s {
  color: rgba(31, 33, 37, 0.75);
}
.node-quiet {
  background: transparent;
  border-style: dashed;
}
.node-quiet .node-t {
  font-size: 17px;
  font-weight: 600;
  color: var(--muted);
}
.node-wide {
  justify-content: center;
}
.wire {
  position: relative;
  align-self: center;
  height: 2px;
  background: var(--text);
  margin: 0 8px 0 0;
}
.wire::after {
  content: "";
  position: absolute;
  right: -8px;
  top: -5px;
  border-left: 9px solid var(--text);
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
}
.wire-quiet {
  background: none;
  border-top: 2px dashed var(--dim);
  height: 0;
}
.wire-quiet::after {
  top: -7px;
  border-left-color: var(--dim);
}
.hop-tag {
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  font: 700 11px/1 var(--display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
  white-space: nowrap;
}
.hop-tag::before {
  content: "";
  display: block;
  width: 26px;
  height: 12px;
  margin: 0 auto 4px;
  border: 2px solid var(--amber);
  border-bottom: 0;
  border-radius: 14px 14px 0 0;
}

/* steps */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 28px;
}
.step {
  position: relative;
  padding: 0 32px 6px 0;
}
.step + .step {
  padding-left: 32px;
  border-left: 1px solid var(--line);
}
.step-n {
  display: block;
  font: 700 76px/0.8 var(--display);
  letter-spacing: -0.02em;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--text);
}
.step:nth-child(2) .step-n {
  color: var(--amber);
  -webkit-text-stroke-color: var(--amber);
}
.step h4 {
  font-size: 30px;
  margin: 22px 0 10px;
}
.step p {
  color: var(--muted);
}

/* features */
.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}
.feature {
  position: relative;
  isolation: isolate;
  padding: 28px 26px 32px;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
  background: var(--surface);
  transition: background-color 160ms ease;
}
.feature:hover {
  background: var(--surface-2);
}
.feature > * {
  position: relative;
  z-index: 1;
}
.tile {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  background: var(--amber);
  color: var(--graphite);
  clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px), 0 6px);
}
.tile .i {
  width: 22px;
  height: 22px;
}
.feature h3 {
  font-size: 23px;
  margin: 22px 0 8px;
}
.feature p {
  font-size: 15px;
  color: var(--muted);
}

/* install */
.install {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 56px;
  align-items: start;
}
.os {
  font-size: 30px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--text);
}
.isteps li {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 20px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.istep-n {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  background: var(--text);
  color: var(--bg);
  font: 700 24px/1 var(--display);
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.isteps li:first-child .istep-n {
  background: var(--amber);
  color: var(--graphite);
}
.isteps h4 {
  font-size: 23px;
  margin: 2px 0 6px;
}
.isteps h4 code {
  font-size: 0.8em;
  font-weight: 500;
}
.isteps p {
  color: var(--muted);
}
.callout {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 14px;
  margin-top: 32px;
  padding: 22px 24px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-left: 4px solid var(--amber);
}
.callout-ico .i {
  width: 24px;
  height: 24px;
  color: var(--accent-text);
}
.callout h4 {
  font-size: 20px;
  margin-bottom: 6px;
}
.callout p {
  font-size: 15px;
  color: var(--muted);
}
.install-side {
  display: grid;
  gap: 24px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  padding: 26px 28px;
}
.card p + p {
  margin-top: 12px;
}
.card-h {
  font-size: 22px;
  margin-bottom: 14px;
}
.card p {
  color: var(--muted);
}
.ticks li {
  position: relative;
  padding: 9px 0 9px 28px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.ticks li:last-child {
  border-bottom: 0;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 16px;
  width: 11px;
  height: 6px;
  border-left: 2.5px solid var(--accent-text);
  border-bottom: 2.5px solid var(--accent-text);
  transform: rotate(-45deg);
}
.cmd {
  margin: 16px 0;
  padding: 16px 18px;
  background: var(--ink-deep);
  color: #ecebe4;
  border-left: 4px solid var(--amber);
  overflow-x: auto;
  font-size: 14px;
  line-height: 1.7;
}
.cmd code {
  font-size: inherit;
}

/* downloads (on the dark band) */
.dl-list {
  border-top: 2px solid var(--amber);
}
.dl-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 22px;
  align-items: start;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.dl-ico {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
}
.dl-row:first-child .dl-ico {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--graphite);
}
.dl-ico .i {
  width: 22px;
  height: 22px;
}
.dl-title {
  font: 700 24px/1.2 var(--display);
}
.dl-title .dl-name {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  vertical-align: 3px;
  margin-left: 6px;
}
.dl-desc {
  margin-top: 4px;
  color: var(--muted);
  font-size: 15px;
}
.dl-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  margin-top: 14px;
  font-size: 14px;
}
.dl-meta > div {
  display: flex;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}
.dl-meta dt {
  white-space: nowrap;
  font: 600 12px/1 var(--display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
}
.dl-hash {
  flex: 1 1 420px;
}
.dl-hash dd {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.dl-hash code {
  font-size: 12.5px;
  word-break: break-all;
  white-space: normal;
  background: none;
  border: 0;
  padding: 0;
  color: var(--muted);
}
.dl-act {
  align-self: center;
}
.dl-pending .dl-title {
  color: var(--muted);
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px dashed var(--line-strong);
  font: 600 13px/1 var(--display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}
.status-pill .i {
  width: 16px;
  height: 16px;
}
.verify {
  margin-top: 22px;
}
.copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  font: 600 12px/1 var(--sans);
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line-strong);
  padding: 5px 8px;
  cursor: pointer;
}
.copy:hover {
  color: var(--text);
  border-color: var(--text);
}
.copy .i {
  width: 13px;
  height: 13px;
}
.copy[hidden] {
  display: none;
}

/* faq */
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.5fr);
  gap: 32px 72px;
  align-items: start;
}
.faq-layout .sec-head {
  position: sticky;
  top: 112px;
  margin: 0;
}
.faq {
  border-top: 2px solid var(--text);
}
.faq details {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
  font: 600 21px/1.3 var(--display);
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "";
  flex: none;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(var(--text), var(--text)) center / 12px 2px no-repeat,
    linear-gradient(var(--text), var(--text)) center / 2px 12px no-repeat;
}
.faq details[open] summary::after {
  background: linear-gradient(var(--graphite), var(--graphite)) center / 12px 2px no-repeat, var(--amber);
  border-color: var(--amber);
}
.faq summary:hover {
  color: var(--accent-text);
}
.faq-a {
  padding: 0 48px 26px 0;
  color: var(--muted);
}
.faq-a p + p {
  margin-top: 12px;
}
.faq-a ul li {
  position: relative;
  padding: 4px 0 4px 20px;
}
.faq-a ul li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 14px;
  width: 7px;
  height: 7px;
  background: var(--amber);
}

/* fine print */
.fine {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
#about .sec-head {
  margin-bottom: 28px;
}
#about .sec-head h2 {
  margin: 0;
}

/* ------------------------------------------------------------------ footer */
.foot {
  position: relative;
  background: var(--ink);
  color: #c9c6bc;
  padding: 56px 0 0;
  border-top: 4px solid var(--amber);
  overflow: hidden;
}
.foot a {
  color: #ecebe4;
}
.foot-in {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px 40px;
  align-items: start;
}
.brand-foot {
  color: #ecebe4;
}
.credit {
  margin-top: 14px;
  font-size: 14.5px;
}
.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  font-size: 14.5px;
  padding-top: 4px;
}
.foot-small {
  grid-column: 1 / -1;
  font-size: 13px;
  color: #8f8c83;
  padding-top: 20px;
  border-top: 1px solid rgba(236, 233, 222, 0.1);
}
.foot :not(pre) > code {
  background: rgba(236, 233, 222, 0.06);
  border-color: rgba(236, 233, 222, 0.12);
  color: #c9c6bc;
}
/* the giant wordmark, cut off by the bottom edge */
.foot-mark {
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 36px auto 0;
  padding: 0 var(--gutter);
  font-family: var(--display);
  font-size: clamp(88px, 21vw, 300px);
  line-height: 0.74;
  letter-spacing: -0.03em;
  color: rgba(236, 233, 222, 0.05);
  white-space: nowrap;
  user-select: none;
  height: 0.6em;
  overflow: hidden;
}
.foot-mark .wm-hop {
  color: rgba(242, 179, 24, 0.16);
}

/* ------------------------------------------------------------------ source browser */
.src {
  padding-top: 56px;
  padding-bottom: 96px;
}
.src-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 32px;
  align-items: end;
  padding-bottom: 32px;
  border-bottom: 2px solid var(--text);
  position: relative;
}
.src-head::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 96px;
  height: 2px;
  background: var(--amber);
}
.src-h1 {
  font-size: clamp(36px, 4.8vw, 60px);
  line-height: 0.98;
  letter-spacing: -0.015em;
  margin-top: 18px;
}
.src-head .lead {
  font-size: 16px;
  margin-top: 12px;
}
.src-meta {
  display: grid;
  justify-items: start;
  gap: 12px;
  padding: 18px 20px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
}
.src-meta dl {
  display: flex;
  gap: 26px;
}
.src-meta dt {
  font: 600 12px/1 var(--display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 6px;
}
.src-meta dd {
  font-weight: 600;
  font-size: 15px;
}
.src-meta dd code {
  font-size: 14px;
}
.hash-short {
  background: none !important;
  border: 0 !important;
  padding: 0 !important;
}
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  padding: 22px 0 18px;
  font-family: var(--mono);
  font-size: 14.5px;
}
.crumbs a {
  color: var(--accent-text);
}
.crumbs .sep {
  color: var(--dim);
}
.crumbs [aria-current] {
  font-weight: 700;
}
.tree-wrap {
  border: 1px solid var(--line-strong);
  background: var(--surface);
  overflow-x: auto;
}
.tree {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.tree th {
  text-align: left;
  font: 600 12px/1 var(--display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 13px 14px;
  border-bottom: 1px solid var(--line-strong);
  background: var(--bg-alt);
}
.tree td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}
.tree tr:last-child td {
  border-bottom: 0;
}
.tree tbody tr {
  transition: background-color 100ms ease;
}
.tree tbody tr:hover {
  background: var(--code-hit);
}
.tree a {
  font-family: var(--mono);
  font-size: 14.5px;
  color: var(--text);
  text-decoration: none;
}
.tree a:hover {
  color: var(--accent-text);
  text-decoration: underline;
}
.tree .ti {
  width: 44px;
  padding-right: 0;
  color: var(--dim);
}
.tree .ti-dir {
  color: var(--accent-text);
}
.tree .ts {
  text-align: right;
  color: var(--muted);
  white-space: nowrap;
  font-size: 14px;
}
.tree th.ts {
  text-align: right;
}

.file {
  border: 1px solid var(--line-strong);
  background: var(--code-bg);
}
.file-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  padding: 10px 12px 10px 16px;
  border-bottom: 1px solid var(--line-strong);
  background: var(--surface);
  box-shadow: inset 0 3px 0 var(--amber);
}
.file-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 14.5px;
}
.file-facts {
  font-size: 13.5px;
  color: var(--muted);
  margin-right: auto;
}
.notice {
  padding: 28px 20px;
  color: var(--muted);
}
.img-preview {
  padding: 28px;
  display: grid;
  justify-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}
.img-preview img {
  max-height: 520px;
  width: auto;
  background-color: #fff;
  background-image:
    linear-gradient(45deg, #e6e3da 25%, transparent 25%),
    linear-gradient(-45deg, #e6e3da 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #e6e3da 75%),
    linear-gradient(-45deg, transparent 75%, #e6e3da 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
  border: 1px solid var(--line-strong);
}
.img-preview figcaption {
  font-size: 13px;
  color: var(--muted);
}
.code {
  overflow-x: auto;
}
.hl {
  border-collapse: collapse;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.6;
  min-width: 100%;
}
.hl td {
  padding: 0;
  vertical-align: top;
}
.hl tr:first-child td {
  padding-top: 10px;
}
.hl tr:last-child td {
  padding-bottom: 12px;
}
.ln {
  width: 1%;
  text-align: right;
  position: sticky;
  left: 0;
  background: var(--code-bg);
  border-right: 1px solid var(--line);
  user-select: none;
}
.ln a {
  display: block;
  padding: 0 12px 0 16px;
  color: var(--dim);
  text-decoration: none;
  font-variant-numeric: tabular-nums;
}
.ln a::before {
  content: attr(data-n);
}
.ln a:hover {
  color: var(--text);
}
.lc {
  white-space: pre;
  padding-left: 16px !important;
  padding-right: 24px !important;
  tab-size: 4;
}
.hl tr:target td {
  background: var(--code-hit);
}
.hl tr:target .ln a {
  color: var(--text);
  font-weight: 700;
}
.trunc {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--accent-text);
  border: 1px solid var(--line-strong);
  padding: 1px 6px;
  margin-left: 8px;
  white-space: nowrap;
}

/* highlight.js tokens */
.hljs-comment,
.hljs-quote {
  color: var(--hl-comment);
}
.hljs-keyword,
.hljs-selector-tag,
.hljs-literal,
.hljs-built_in,
.hljs-type {
  color: var(--hl-keyword);
}
.hljs-string,
.hljs-regexp,
.hljs-addition,
.hljs-template-tag {
  color: var(--hl-string);
}
.hljs-number,
.hljs-symbol,
.hljs-bullet,
.hljs-variable,
.hljs-template-variable {
  color: var(--hl-number);
}
.hljs-title,
.hljs-section,
.hljs-function .hljs-title,
.hljs-title.function_,
.hljs-title.class_ {
  color: var(--hl-title);
}
.hljs-attr,
.hljs-attribute,
.hljs-property,
.hljs-params,
.hljs-selector-class,
.hljs-selector-id {
  color: var(--hl-attr);
}
.hljs-name,
.hljs-tag,
.hljs-deletion,
.hljs-selector-pseudo {
  color: var(--hl-tag);
}
.hljs-meta,
.hljs-doctag,
.hljs-subst {
  color: var(--hl-meta);
}
.hljs-emphasis {
  font-style: italic;
}
.hljs-strong {
  font-weight: 700;
}
.hljs-link {
  text-decoration: underline;
}

/* ------------------------------------------------------------------ 404 */
.nf {
  padding: 104px 0 128px;
}
.nf-code {
  font: 700 clamp(110px, 20vw, 220px)/0.85 var(--display);
  color: transparent;
  -webkit-text-stroke: 2px var(--amber);
  letter-spacing: -0.03em;
}
.nf h1 {
  font-size: clamp(32px, 5vw, 56px);
  margin-top: 22px;
}

/* ------------------------------------------------------------------ changelog (/changelog/) */
/* One timeline, two depths. With JavaScript the switch shows one list per release; without it,
   both lists are visible and labelled, so nothing depends on the script. */

.cl-page {
  padding: 56px 0 96px;
}

.cl-head {
  position: relative;
  max-width: 880px;
  padding-bottom: 30px;
  border-bottom: 2px solid var(--text);
}
.cl-head::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 96px;
  height: 2px;
  background: var(--amber);
}
.cl-h1 {
  font-size: clamp(38px, 5.4vw, 68px);
  line-height: 0.98;
  letter-spacing: -0.015em;
  margin-top: 18px;
}
.cl-head .lead {
  max-width: 60ch;
}

.cl-switch {
  display: inline-flex;
  margin-top: 28px;
  border: 2px solid var(--text);
}
.cl-tab {
  font: 600 13px/1 var(--display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 13px 18px 12px;
  background: var(--surface);
  color: var(--text);
  border: 0;
  cursor: pointer;
}
.cl-tab + .cl-tab {
  border-left: 2px solid var(--text);
}
.cl-tab:hover {
  background: var(--bg-alt);
}
.cl-tab.is-on {
  background: var(--amber);
  color: var(--graphite);
}
.cl-tab:focus-visible {
  outline: 3px solid var(--amber-lo);
  outline-offset: 2px;
}

.cl {
  list-style: none;
  padding: 0;
  margin: 0;
}
.cl-item {
  display: grid;
  grid-template-columns: 172px minmax(0, 1fr);
  gap: 10px 40px;
  padding: 30px 0 32px;
}
.cl-item + .cl-item {
  border-top: 1px solid var(--line);
}

.cl-side {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
}
.cl-ver {
  font: 600 12.5px/1 var(--display);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: var(--amber);
  color: var(--graphite);
  padding: 6px 9px 5px;
  clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px);
}
.cl-ver-site {
  background: none;
  color: var(--muted);
  border: 1px solid var(--line-strong);
}
.cl-date {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--dim);
}

.cl-main {
  min-width: 0;
}
.cl-h {
  font-size: clamp(22px, 2.3vw, 29px);
  line-height: 1.12;
}
.cl-body ul {
  display: grid;
  gap: 9px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.cl-body li {
  position: relative;
  padding-left: 20px;
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
  text-wrap: pretty;
}
.cl-body li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 7px;
  height: 7px;
  background: var(--amber);
}
.cl-dev li {
  font-size: 14.5px;
}
.cl-dev li::before {
  background: var(--line-strong);
}
.cl-dev code {
  font-size: 13px;
}
.cl-aud {
  display: none;
  margin-top: 16px;
  font: 600 11px/1 var(--display);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--dim);
}

/* With JavaScript: hide one depth, keep the switch. Without it: show both, hide the dead switch. */
html.js .cl-body[data-aud="dev"] {
  display: none;
}
html.js .cl[data-aud="dev"] .cl-body[data-aud="user"] {
  display: none;
}
html.js .cl[data-aud="dev"] .cl-body[data-aud="dev"] {
  display: block;
}
html:not(.js) .cl-aud {
  display: block;
}
html:not(.js) .cl-switch {
  display: none;
}

.cl-foot {
  max-width: 70ch;
  margin-top: 8px;
  padding-top: 24px;
  border-top: 2px solid var(--text);
  font-size: 14px;
  line-height: 1.6;
  color: var(--dim);
}

@media (max-width: 720px) {
  .cl-item {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 26px 0;
  }
  .cl-side {
    flex-direction: row;
    align-items: center;
    gap: 12px;
  }
  .cl-body li {
    font-size: 15px;
  }
}

@media (max-width: 480px) {
  .cl-switch {
    display: flex;
    flex-direction: column;
    width: 100%;
  }
  .cl-tab {
    width: 100%;
    text-align: left;
  }
  .cl-tab + .cl-tab {
    border-left: 0;
    border-top: 2px solid var(--text);
  }
}

/* ------------------------------------------------------------------ fx island (only present on capable devices) */
/* React Bits Threads */
.threads-container {
  position: relative;
  width: 100%;
  height: 100%;
}
.threads-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}
/* React Bits SpotlightCard, used as an overlay on the feature cells (they keep their own background and border) */
.fx-spot-host {
  position: absolute !important;
  inset: -1px -1px 0 0;
  z-index: 0 !important;
  pointer-events: none;
}
.spotlight-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  height: 100%;
}
.spotlight-card__light,
.spotlight-card__border,
.spotlight-card__edge {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.spotlight-card__light {
  z-index: -1;
  opacity: 0;
}
.spotlight-card__border {
  display: none;
}
.spotlight-card__edge {
  z-index: 1;
  padding: 1px;
  opacity: 0;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box exclude,
    linear-gradient(#000 0 0);
}
/* CSS motion that only runs once the island is up, and only while its block is on screen ([data-fx-live] -> .is-live) */
@keyframes packet {
  0% {
    left: 0;
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  80% {
    opacity: 1;
  }
  100% {
    left: calc(100% - 6px);
    opacity: 0;
  }
}
@keyframes packet-hop {
  0% {
    left: 0;
    top: -2px;
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  50% {
    top: -16px;
  }
  85% {
    opacity: 1;
    top: -2px;
  }
  100% {
    left: calc(100% - 6px);
    top: -2px;
    opacity: 0;
  }
}
@keyframes hop-flash {
  0% {
    background-color: rgba(242, 179, 24, 0.28);
  }
  100% {
    background-color: rgba(242, 179, 24, 0.07);
  }
}
@media (min-width: 981px) {
  html.fx .lane-main .wire::before {
    content: "";
    position: absolute;
    top: -2px;
    left: 0;
    width: 6px;
    height: 6px;
    background: var(--amber);
    opacity: 0;
    animation: packet 2.6s cubic-bezier(0.45, 0, 0.55, 1) infinite paused;
  }
  html.fx .lane-main .wire:nth-child(4)::before {
    animation-name: packet-hop;
    animation-delay: 0.85s;
  }
  html.fx .lane-main .wire:nth-child(6)::before {
    animation-delay: 1.7s;
  }
  html.fx .diagram.is-live .wire::before {
    animation-play-state: running;
  }
}
html.fx .hop.is-live .hop-ip.is-hop {
  animation: hop-flash 1.4s ease-out;
}

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1180px) {
  .hero-in {
    grid-template-columns: minmax(0, 1fr) 410px;
    gap: 48px;
  }
  .hop-log li {
    grid-template-columns: 64px 76px minmax(0, 1fr);
  }
}
@media (max-width: 1080px) {
  .nav a:nth-child(-n + 4) {
    display: none;
  }
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
  .spec {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .spec > div:nth-child(4) {
    padding-left: 0;
    border-left: 0;
  }
  .spec > div:nth-child(n + 4) {
    border-top: 1px solid var(--line);
  }
}
@media (max-width: 980px) {
  .hero-in {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hop {
    max-width: 560px;
  }
  .sec-head-split,
  .faq-layout {
    grid-template-columns: 1fr;
  }
  .faq-layout .sec-head {
    position: static;
  }
  .lane,
  .lane-other {
    grid-template-columns: 1fr;
  }
  .wire {
    width: 2px;
    height: 30px;
    margin: 0 0 8px 26px;
  }
  .wire::after {
    right: auto;
    top: auto;
    left: -5px;
    bottom: -8px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 9px solid var(--text);
    border-bottom: 0;
  }
  .wire-hop {
    height: 44px;
  }
  .hop-tag {
    left: 18px;
    bottom: 50%;
    transform: translateY(50%);
  }
  .hop-tag::before {
    display: none;
  }
  .wire-quiet {
    width: 0;
    border-top: 0;
    border-left: 2px dashed var(--dim);
    background: none;
  }
  .wire-quiet::after {
    left: -7px;
    bottom: -8px;
    top: auto;
    border-top-color: var(--dim);
    border-left-color: transparent;
  }
  .node-hot {
    box-shadow: 4px 4px 0 var(--graphite);
  }
  .install {
    grid-template-columns: 1fr;
  }
  .src-head {
    grid-template-columns: 1fr;
    align-items: start;
  }
}
@media (max-width: 720px) {
  :root {
    --gutter: 16px;
  }
  .nav {
    display: none;
  }
  .top-in {
    gap: 12px;
    height: 58px;
  }
  .top-dl span {
    display: none;
  }
  .top-dl {
    padding: 0 11px;
  }
  .hero-top {
    padding-top: 48px;
  }
  .hero h1 {
    font-size: clamp(40px, 11.5vw, 56px);
    margin-top: 20px;
  }
  .hero-sub {
    margin-top: 20px;
    font-size: 17.5px;
  }
  .cta-row {
    margin-top: 28px;
  }
  .btn-lg {
    width: 100%;
    justify-content: center;
    white-space: normal;
    text-align: center;
    padding: 12px 18px;
  }
  .hop {
    font-size: 12px;
    box-shadow: 6px 6px 0 rgba(0, 0, 0, 0.45);
  }
  .hop-log li {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 2px 8px;
    padding: 8px 12px;
  }
  .hop-t {
    grid-row: span 2;
  }
  .hop-w {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }
  .hop-bar,
  .hop-foot {
    padding-left: 12px;
    padding-right: 12px;
  }
  .spec {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 56px;
  }
  .spec > div,
  .spec > div + div {
    padding: 14px 12px 16px 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .spec > div:nth-child(-n + 2) {
    border-top: 0;
  }
  .spec > div:nth-child(even) {
    padding-left: 14px;
    border-left: 1px solid var(--line);
  }
  .hero-shot {
    background: linear-gradient(var(--ink) 0 30%, transparent 30%);
  }
  .shot-frame {
    padding: 4px;
    box-shadow: 6px 6px 0 var(--amber);
  }
  .shot figcaption {
    padding-top: 20px;
  }
  .sec {
    padding: 80px 0;
  }
  .home .sec:first-of-type {
    padding-top: 80px;
  }
  .sec-head {
    margin-bottom: 36px;
  }
  .lead {
    font-size: 17px;
  }
  .diagram {
    padding: 18px;
  }
  .steps {
    grid-template-columns: 1fr;
  }
  .step,
  .step + .step {
    padding: 24px 0 20px;
    border-left: 0;
  }
  .step + .step {
    border-top: 1px solid var(--line);
  }
  .step-n {
    font-size: 56px;
  }
  .step h4 {
    margin-top: 14px;
  }
  .sub-h {
    margin-top: 56px;
  }
  .features {
    grid-template-columns: 1fr;
  }
  .isteps li {
    grid-template-columns: 40px 1fr;
    gap: 14px;
  }
  .istep-n {
    width: 40px;
    height: 40px;
    font-size: 20px;
  }
  .dl-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .dl-ico {
    display: none;
  }
  .dl-act {
    align-self: start;
  }
  .dl-title .dl-name {
    display: table;
    margin: 6px 0 0;
  }
  .faq summary {
    font-size: 19px;
  }
  .faq-a {
    padding-right: 0;
  }
  .fine {
    grid-template-columns: 1fr;
  }
  .foot-in {
    grid-template-columns: 1fr;
  }
  .src {
    padding-top: 40px;
  }
  .src-meta {
    width: 100%;
  }
  .src-meta dl {
    flex-wrap: wrap;
    gap: 14px 22px;
  }
  .tree .ts {
    font-size: 13px;
  }
  .hl {
    font-size: 12.5px;
  }
  .ln a {
    padding: 0 8px 0 10px;
  }
  .lc {
    padding-left: 10px !important;
    padding-right: 16px !important;
  }
}
@media (max-width: 380px) {
  .lang a {
    min-width: 34px;
    padding: 9px 7px 8px;
  }
  .wordmark {
    font-size: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
@media print {
  .top,
  .foot,
  .cta-row,
  .copy,
  .hero-bg {
    display: none;
  }
  .hero-top,
  .sec-dark {
    background: none;
  }
}

/* ---- custom scrollbar */
/* Firefox. Gated because Chromium 121+ gives the standard properties priority over the
   ::-webkit-scrollbar rules below, which would cost us the hover state there. Both properties
   are inherited, so the code tables and other inner scrollers follow along. */
@supports (-moz-appearance: none) {
  html {
    scrollbar-width: thin;
    scrollbar-color: var(--dim) transparent;
  }
}
/* Chromium / WebView2 / Safari. Unscoped, so inner scrollers (code, tree tables) get the same rail. */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
  background: transparent;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: var(--dim);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--amber);
}
::-webkit-scrollbar-thumb:active {
  background: var(--amber-hi);
}
::-webkit-scrollbar-corner {
  background: transparent;
}
::-webkit-scrollbar-button {
  display: none;
}
