/* ULVim, variant A "Signal". One trace, drawn from the logo's own grammar, wires the page. */
@font-face { font-family: "Advocate Wide"; src: url("/fonts/advocate_54_wide_reg.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Advocate"; src: url("/fonts/advocate_34_narr_reg.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Concourse"; src: url("/fonts/concourse_3_regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Concourse"; src: url("/fonts/concourse_4_regular.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Concourse"; src: url("/fonts/concourse_4_bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ground: #1a1b26;
  --deep: #0d1117;
  --raised: #24283b;
  --hair: #3b4261;
  --dim: #2c3352;
  --text: #c0caf5;
  --soft: #a9b1d6;
  --accent: #7aa2f7;
  --ul: #1a3a9e;
  --display: "Advocate Wide", "Advocate", "Arial Black", sans-serif;
  --sans: "Concourse", "Gill Sans", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --pad: clamp(16px, 4.4vw, 64px);
  --indent: clamp(40px, 7.6vw, 112px);
  /* The viewport height. site.js replaces this with a measured px value, set once per real resize. */
  --vh: 100svh;
  --ann: 320px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--deep); overflow-x: clip; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  position: relative;
  overflow-x: clip;
  background:
    radial-gradient(1100px 560px at 50% 60px, rgba(26, 58, 158, 0.12), transparent 70%),
    linear-gradient(180deg, var(--ground) 0, var(--ground) 38%, #141621 70%, var(--deep) 100%);
  color: var(--text);
  font: 400 18px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #a9c4ff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--pad); position: relative; z-index: 1; }
.col { padding-left: var(--indent); }

/* ---------- the trace layer ---------- */
.trace { position: absolute; left: 0; top: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; overflow: visible; }
.tr-dim, .tr-lit, .tr-br, .tr-br-dim { stroke-linecap: round; fill: none; }
.tr-dim, .tr-br-dim { stroke: var(--dim); stroke-width: 3; }
.tr-lit, .tr-br { stroke: var(--accent); stroke-width: 3; }
.tr-br { stroke-dasharray: 1 1; stroke-dashoffset: 1; transition: stroke-dashoffset 0.28s cubic-bezier(0.2, 0.8, 0.2, 1); }
.tr-port { fill: var(--dim); transition: fill 0.18s ease-out; }
.tr-ring { fill: none; stroke: var(--accent); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.tr-tap.lit .tr-br { stroke-dashoffset: 0; }
.tr-tap.lit .tr-port { fill: var(--accent); }
.tr-tap.lit .tr-ring { animation: ring 0.7s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.tr-head { opacity: 0; }
@keyframes ring { 0% { opacity: 0.9; transform: scale(1); } 100% { opacity: 0; transform: scale(3.2); } }

/* ---------- top ---------- */
.top { display: flex; align-items: center; justify-content: space-between; height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font: 700 19px/1 var(--sans); letter-spacing: 0.01em; }
.brand .mark { width: 34px; height: 34px; display: block; }
nav { display: flex; gap: clamp(18px, 3vw, 36px); }
nav a { position: relative; color: var(--soft); text-decoration: none; font: 500 16px/1 var(--sans); padding: 10px 0; }
nav a:hover, nav a[aria-current="true"] { color: var(--text); }
.nav-dot { position: absolute; left: 50%; bottom: -3px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px rgba(122, 162, 247, 0.7); transform: scale(0); transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1); }
nav a[aria-current="true"] .nav-dot { transform: scale(1); }

/* ---------- hero ---------- */
.hero { padding-top: clamp(4px, 1.2vw, 18px); padding-bottom: clamp(24px, 6vw, 96px); }
.field { position: absolute; left: 50%; top: -40px; width: min(1300px, 140%); height: 520px; transform: translateX(-50%); background: radial-gradient(closest-side, rgba(26, 58, 158, 0.3), rgba(26, 58, 158, 0.06) 60%, transparent); pointer-events: none; z-index: -1; opacity: 0.85; }
/* The lockup is as wide as the column allows (leaving room for the annotations), and never so tall
   that the headline, lede and command fall below the first screen. 2.97 is the lockup's aspect ratio. */
.lockup { position: relative; width: min(calc(100% - var(--ann)), calc((var(--vh) - 404px) * 2.97)); min-width: min(100%, 340px); }
.lk { display: block; width: 100%; height: auto; overflow: visible; }
.lk-h { opacity: 0; }
.lk-free.blink { animation: blink 1.06s steps(1, end) infinite; }
@keyframes blink { 0%, 49% { fill: #ffffff; } 50%, 100% { fill: #7aa2f7; } }
html.anim .lk-s:not(.lk-first), html.anim .lk-n:not(.lk-first) { visibility: hidden; }
html:not(.anim) .lk-s.lk-first { stroke-dasharray: none; }

/* Annotations: leaders off the M's right-hand nodes join one bus, with a third tap between them. */
.anns { position: absolute; inset: 0; pointer-events: none; }
.ann-bus { position: absolute; left: calc(100% + 46px); width: 4px; top: 9.854%; bottom: 9.854%; border-radius: 2px; background: var(--accent); transform-origin: center top; transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) 0.16s; }
.ann { position: absolute; left: 100%; width: var(--ann); margin: 0; display: flex; align-items: center; transform: translateY(-50%); color: var(--text); font: 400 17px/1.32 var(--sans); }
.ann-top { top: 9.854%; }
.ann-mid { top: 50%; white-space: nowrap; }
.ann-mid .ann-text { font: 400 24px/1.1 var(--display); color: var(--accent); }
.ann-base { top: 90.146%; }
.ann-lead { position: relative; flex: none; width: 48px; height: 4px; margin-right: 26px; border-radius: 2px; background: var(--accent); transform-origin: left center; transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1); }
.ann-lead-off { background: transparent; }
.ann-node { position: absolute; right: -10px; top: 50%; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px var(--ground); transition: transform 0.18s cubic-bezier(0.2, 0.8, 0.2, 1) 0.3s; }
.ann-mid .ann-node { width: 14px; height: 14px; margin-top: -7px; right: -7px; transition-delay: 0.42s; }
.ann-text { max-width: 236px; text-wrap: balance; transition: opacity 0.25s ease-out 0.34s, transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1) 0.34s; }
html.anim .anns:not(.on) .ann-bus { transform: scaleY(0); }
html.anim .anns:not(.on) .ann-lead { transform: scaleX(0); }
html.anim .anns:not(.on) .ann-node { transform: scale(0); }
html.anim .anns:not(.on) .ann-text { opacity: 0; transform: translateX(-6px); }

/* Claim left; the motto and lede on the right, top-aligned to the claim's first line and bottom-aligned to its last. */
.hero-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: clamp(28px, 4vw, 64px); align-items: stretch; margin-top: clamp(22px, 3.4vh, 34px); }
.claim { margin: 0; font: 400 clamp(32px, min(3.7vw, calc(var(--vh) * 0.066)), 56px)/1.04 var(--display); color: var(--text); letter-spacing: -0.005em; }
.claim span { display: block; }
.hero-side { display: flex; flex-direction: column; justify-content: space-between; gap: 14px; padding-top: 0.12em; }
.motto { margin: 0; max-width: 11em; font: 400 clamp(24px, min(2.6vw, calc(var(--vh) * 0.046)), 38px)/1.08 var(--display); color: var(--accent); }
.lede { margin: 0 0 -0.2em; color: var(--text); font-size: clamp(17px, 1.3vw, 19px); line-height: 1.5; max-width: 30em; }

/* The install command: one line where it fits; otherwise it breaks only before "&&" (and on a phone at
   the spaces around the URL). The URL never breaks. */
.cmd { display: flex; align-items: center; gap: 16px; background: var(--raised); border: 1px solid var(--hair); border-radius: 10px; padding: 10px 10px 10px 18px; position: relative; }
.cmd code { flex: 1; min-width: 0; padding: 4px 0; font: 400 14px/1.65 var(--mono); color: var(--text); white-space: normal; overflow-x: auto; scrollbar-width: thin; scrollbar-color: var(--hair) transparent; }
.prompt { flex: none; align-self: flex-start; padding: 4px 0; margin-right: -4px; font: 400 14px/1.65 var(--mono); color: var(--accent); }
.cmd-big .prompt { font-size: clamp(15px, 1.45vw, 19px); }
.cmd code span { white-space: nowrap; }
.cmd-hero { gap: 12px; padding: 12px 12px 12px 18px; margin: clamp(22px, 3.2vh, 30px) 0 0 var(--indent); border-color: #4a5380; transition: border-color 0.3s ease-out, box-shadow 0.5s ease-out; }
.cmd-hero code, .cmd-hero .prompt { font-size: 13.8px; color: #dbe3ff; }
.cmd-hero .prompt { color: var(--accent); }
.cmd-hero .copy { min-height: 42px; padding: 0 22px; }
.hero.lit .cmd-hero { border-color: var(--accent); }
.copy, .ghost { font: 700 15px/1 var(--sans); border-radius: 7px; cursor: pointer; min-height: 40px; padding: 0 18px; transition: background-color 0.15s ease-out, color 0.15s ease-out, border-color 0.15s ease-out; }
.copy { flex: none; background: var(--accent); color: var(--deep); border: 0; min-width: 76px; white-space: nowrap; }
.copy:hover { background: #a9c4ff; }
.copy.done { background: #9ece6a; }
.ghost { background: transparent; color: var(--soft); border: 1px solid var(--hair); white-space: nowrap; flex: none; min-width: 150px; }
.ghost:hover { color: var(--text); border-color: var(--accent); }

/* ---------- sections ---------- */
.sec { padding-block: clamp(44px, 4.6vw, 72px); }
.h2 { margin: 0 0 22px; font: 400 clamp(40px, 6vw, 84px)/1 var(--display); color: var(--text); letter-spacing: -0.01em; }
.intro { margin: 0; color: var(--text); font-size: clamp(18px, 1.65vw, 23px); line-height: 1.5; max-width: 42em; }
.body { margin: 0; color: var(--soft); font-size: clamp(17px, 1.35vw, 19px); line-height: 1.6; max-width: 32em; }
.body + .body { margin-top: 14px; }
h3 { margin: 0; font: 700 17px/1.3 var(--sans); color: var(--text); }
kbd, code { font-family: var(--mono); font-size: 0.86em; }
.keys { white-space: nowrap; }
kbd { color: var(--text); background: var(--raised); border: 1px solid var(--hair); border-bottom-width: 2px; border-radius: 5px; padding: 1px 6px; }
p code, figcaption code, li code { color: var(--text); }

/* why: what was left out, then the editor wired like a chip */
.out { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; margin-top: 26px; }
.out-h { font: 500 16px/1.3 var(--sans); color: var(--soft); white-space: nowrap; }
.out-list { display: flex; flex-wrap: wrap; gap: 10px 26px; list-style: none; margin: 0; padding: 0; }
.out-list li { display: flex; align-items: center; gap: 10px; color: var(--text); font-size: 17px; white-space: nowrap; }
.unlit { width: 12px; height: 12px; border-radius: 50%; background: #3b4261; flex: none; }

.chip { position: relative; margin: clamp(30px, 3.4vw, 48px) calc(-0.6 * var(--pad)) 0 0; display: grid; grid-template-columns: minmax(0, 1fr) clamp(220px, 18vw, 250px); grid-template-rows: auto auto; column-gap: clamp(30px, 3vw, 44px); }
.chip-img { grid-column: 1; grid-row: 1; position: relative; }
.chip-img::before { content: ""; position: absolute; inset: 10% 8% 6%; background: radial-gradient(closest-side, rgba(26, 58, 158, 0.55), transparent); filter: blur(34px); z-index: -1; }
.chip img { display: block; width: 100%; height: auto; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.45)); }
.chip .ed-phone { display: none; }
.chip-wires { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 2; }
.cw-dim { stroke: #3b4261; stroke-width: 3; fill: none; stroke-linecap: round; }
.cw-lit { stroke: var(--accent); stroke-width: 3; fill: none; stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; transition: stroke-dashoffset 0.34s cubic-bezier(0.2, 0.8, 0.2, 1); }
.cw-start { fill: #3b4261; stroke: none; transition: fill 0.2s ease-out; }
.why.lit .cw-lit { stroke-dashoffset: 0; }
.why.lit .cw-start { fill: var(--accent); }
.why.lit .cw-1 .cw-lit, .why.lit .cw-1 .cw-start { transition-delay: 0.12s; }
.why.lit .cw-2 .cw-lit, .why.lit .cw-2 .cw-start { transition-delay: 0.24s; }
.pins { grid-column: 2; grid-row: 1; position: relative; list-style: none; margin: 0; padding: 0; }
.pin { position: absolute; left: 0; right: 0; transform: translateY(-50%); padding-left: 30px; color: var(--text); font-size: 17px; line-height: 1.4; }
.pin:nth-child(1) { top: 38.7%; }
.pin:nth-child(2) { top: 63.75%; }
.pin:nth-child(3) { top: 81.64%; }
.pin-node { position: absolute; left: 0; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%; background: #4a5380; transition: background-color 0.2s ease-out, box-shadow 0.35s ease-out; }
.why.lit .pin-node { background: var(--accent); box-shadow: 0 0 16px rgba(122, 162, 247, 0.55); }
.why.lit .pin:nth-child(1) .pin-node { transition-delay: 0.3s; }
.why.lit .pin:nth-child(2) .pin-node { transition-delay: 0.42s; }
.why.lit .pin:nth-child(3) .pin-node { transition-delay: 0.54s; }
.chip figcaption { grid-column: 1 / -1; grid-row: 2; margin-top: 18px; color: var(--soft); font-size: 16px; line-height: 1.55; max-width: 56em; }

/* fast */
.ms { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: center; }
.ms-num { margin: 0; font: 400 clamp(108px, 18vw, 260px)/0.82 var(--display); color: var(--accent); letter-spacing: -0.03em; white-space: nowrap; display: flex; align-items: baseline; gap: 0.06em; }
.ms-unit { font-size: 0.3em; letter-spacing: 0; color: var(--soft); }
.run { position: relative; margin-top: clamp(32px, 4vw, 56px); }
.run-svg { display: block; width: 100%; height: 40px; overflow: visible; }
.run-dim { stroke: var(--dim); stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.run-lit { stroke: var(--accent); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1 1; stroke-dashoffset: 1; vector-effect: non-scaling-stroke; }
.run-node { position: absolute; top: 20px; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: var(--dim); transition: background-color 0.12s ease-out, box-shadow 0.3s ease-out; }
.run-a { left: 0.8%; }
.run-b { left: 99.2%; }
.run-node.on { background: var(--accent); box-shadow: 0 0 0 6px rgba(122, 162, 247, 0.16), 0 0 28px rgba(122, 162, 247, 0.55); }
.tick { position: absolute; top: 20px; width: 2px; height: 12px; margin: -6px 0 0 -1px; border-radius: 1px; background: #3b4261; }
.t10 { left: calc(0.8% + 98.4% * 10 / 68); } .t20 { left: calc(0.8% + 98.4% * 20 / 68); } .t30 { left: calc(0.8% + 98.4% * 30 / 68); }
.t40 { left: calc(0.8% + 98.4% * 40 / 68); } .t50 { left: calc(0.8% + 98.4% * 50 / 68); } .t60 { left: calc(0.8% + 98.4% * 60 / 68); }
.fast.lit .tick { background: var(--accent); }
.run-end { position: absolute; top: 38px; margin: 0; white-space: nowrap; font: 500 15px/1.3 var(--sans); color: var(--soft); }
.run-end code { color: var(--text); font-size: 0.95em; }
.run-end-a { left: 0; }
.run-end-b { right: 0; color: var(--accent); }
.run-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 40px; }
.run-cap { margin: 0; flex: 1; color: var(--soft); font-size: 16px; }

/* proof: the pinned SHA-256 checked against the download, group by group */
.sha { margin: clamp(30px, 3.4vw, 46px) 0 0; position: relative; --lab: clamp(150px, 15vw, 190px); --mono-size: clamp(13px, 1.3vw, 18px); }
.sha-file { margin: 0 0 18px; padding-left: var(--lab); display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; color: var(--soft); font-size: 16px; }
.sha-file code { font-size: var(--mono-size); color: var(--text); }
.sha-grid { display: grid; grid-template-columns: var(--lab) minmax(0, 1fr); grid-template-rows: 34px 48px 34px 22px; }
.sha-lab { margin: 0; align-self: center; color: var(--soft); font-size: 16px; line-height: 1.2; }
.sha-lab code { font-size: 0.92em; }
.sha-lab-a { grid-column: 1; grid-row: 1; }
.sha-lab-b { grid-column: 1; grid-row: 3; }
.sha-groups { grid-column: 2; grid-row: 1 / span 4; display: grid; grid-template-columns: repeat(8, max-content); justify-content: space-between; column-gap: 10px; }
.sha-groups { position: relative; }
.g { display: grid; grid-template-rows: 34px 48px 34px 22px; justify-items: center; }
.g u { display: block; width: 3px; height: 100%; background: var(--dim); transition: background-color 0.18s ease-out 0.5s; }
.sha-bus { position: absolute; bottom: 0; left: calc(2.4 * var(--mono-size)); right: calc(2.4 * var(--mono-size)); height: 3px; margin-bottom: -1.5px; border-radius: 2px; background: var(--dim); transition: background-color 0.2s ease-out 0.55s; }
.proof.lit .g u, .proof.lit .sha-bus { background: var(--accent); }
.g b { align-self: center; font: 400 var(--mono-size)/1 var(--mono); letter-spacing: 0.02em; color: var(--text); }
.g b + i + b { color: #6b7499; transition: color 0.2s ease-out; }
.g i { position: relative; width: 3px; height: 100%; background: var(--dim); transition: background-color 0.18s ease-out; }
.g em { position: absolute; left: 50%; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--dim); transition: background-color 0.18s ease-out, box-shadow 0.3s ease-out; }
.proof.lit .g i { background: var(--accent); }
.proof.lit .g em { background: var(--accent); box-shadow: 0 0 14px rgba(122, 162, 247, 0.6); }
.proof.lit .g b + i + b { color: var(--accent); }
.proof.lit .g:nth-child(1) * { transition-delay: 0.10s; }
.proof.lit .g:nth-child(2) * { transition-delay: 0.15s; }
.proof.lit .g:nth-child(3) * { transition-delay: 0.20s; }
.proof.lit .g:nth-child(4) * { transition-delay: 0.25s; }
.proof.lit .g:nth-child(5) * { transition-delay: 0.30s; }
.proof.lit .g:nth-child(6) * { transition-delay: 0.35s; }
.proof.lit .g:nth-child(7) * { transition-delay: 0.40s; }
.proof.lit .g:nth-child(8) * { transition-delay: 0.45s; }
.sha-out { margin-top: 0; padding-left: calc(var(--lab) + 2.4 * var(--mono-size) - 9px); display: grid; gap: 10px; }
.sha-ok { position: relative; padding-top: 26px; }
.sha-drop { position: absolute; left: 7.5px; top: -1.5px; width: 3px; height: 30px; border-radius: 2px; background: var(--dim); transition: background-color 0.2s ease-out 0.6s; }
.proof.lit .sha-drop { background: var(--accent); }
.sha-out p { margin: 0; display: flex; align-items: center; gap: 14px; font-size: 18px; line-height: 1.4; }
.sha-node { flex: none; width: 14px; height: 14px; border-radius: 50%; }
.sha-ok { color: var(--text); }
.sha-ok .sha-node { width: 18px; height: 18px; background: var(--dim); transition: background-color 0.2s ease-out 0.68s, box-shadow 0.4s ease-out 0.68s; }
.sha-ok > span:last-child { font-weight: 500; }
.proof.lit .sha-ok .sha-node { background: var(--accent); box-shadow: 0 0 0 5px rgba(122, 162, 247, 0.16), 0 0 22px rgba(122, 162, 247, 0.6); }
.sha-no { color: var(--soft); }
.sha-legend { display: none; flex-direction: column; gap: 4px; margin: 0 0 16px; color: var(--soft); font-size: 15px; }
.sha-legend > span { display: flex; align-items: center; gap: 10px; white-space: nowrap; }
.sha-legend i { flex: none; width: 12px; height: 3px; border-radius: 2px; background: var(--text); }
.sha-legend i.lg-b { background: var(--accent); }
.sha-no .sha-node { width: 18px; height: 18px; border: 3px solid #5a6898; }

.also { position: relative; list-style: none; margin: clamp(40px, 4.4vw, 56px) 0 0; padding: 0; display: grid; gap: 16px; max-width: 46em; }
.also li { position: relative; padding-left: 34px; }
.also .also-rail { position: absolute; left: 6px; top: 12px; bottom: 12px; width: 3px; padding: 0; border-radius: 2px; background: var(--hair); }
.also-node { position: absolute; left: 0; top: 6px; width: 15px; height: 15px; border-radius: 50%; background: var(--ground); border: 3px solid var(--accent); }
.also p { margin: 0; color: var(--soft); font-size: 17px; line-height: 1.55; }
.also strong { color: var(--text); font-weight: 700; }

/* install */
.install { padding-bottom: clamp(64px, 7vw, 120px); }
.cmd-big { margin-top: clamp(26px, 3vw, 40px); padding: 20px 18px 20px 26px; border-radius: 12px; transition: border-color 0.3s ease-out, box-shadow 0.5s ease-out; }
.cmd-big code { font-size: clamp(15px, 1.45vw, 19px); }
.cmd-big code > span { display: block; }
.cmd-big code > span + span { padding-left: 1.2em; }
.cmd-big .copy { min-height: 48px; min-width: 172px; padding: 0 22px; font-size: 16px; }
.install.lit .cmd-big { border-color: var(--accent); }
.agent { margin-top: 22px; max-width: 40em; }

/* foot */
.foot { padding-block: 48px 60px; position: relative; z-index: 1; }
.foot-row { display: flex; align-items: center; justify-content: space-between; gap: 28px; border-top: 1px solid var(--hair); padding-top: 32px; }
.foot-mark { width: 150px; flex: none; }
.foot p { margin: 0; color: var(--soft); font-size: 15px; }
.foot .lk-foot .lk-s, .foot .lk-foot .lk-n { visibility: visible; }

/* ---------- narrow ---------- */
@media (max-width: 1100px) {
  :root { --ann: 0px; }
  .anns { display: none; }
  .lockup { width: min(100%, calc((var(--vh) - 404px) * 2.97)); }
}
@media (max-width: 960px) {
  .hero-row { grid-template-columns: minmax(0, 1fr); align-items: start; gap: 22px; }
  .chip { grid-template-columns: minmax(0, 1fr) 210px; margin-right: 0; }
  .also { grid-template-columns: minmax(0, 1fr); }
  .sha { --lab: 0px; }
  .sha-file { padding-left: 0; }
  .sha-out { padding-left: 0; }
  .g u, .sha-bus, .sha-drop { display: none; }
  .g { grid-template-rows: 34px 48px 34px; }
  .sha-ok { padding-top: 14px; }
  .sha-grid { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto; }
  .sha-lab { display: none; }
  .sha-groups { grid-column: 1; grid-row: auto; grid-template-columns: repeat(4, max-content); row-gap: 16px; }
  .sha-legend { display: flex; }
}
@media (max-width: 760px) {
  .chip { grid-template-columns: minmax(0, 1fr); }
  .chip-wires { display: none; }
  .chip .ed-wide { display: none; }
  .chip .ed-phone { display: block; }
  .chip-img { margin-left: calc(24px - var(--indent)); margin-right: calc(-1 * var(--pad)); }
  .pins { grid-column: 1; grid-row: 2; margin-top: 22px; display: grid; gap: 12px; }
  .pin, .pin:nth-child(n) { position: relative; top: auto; transform: none; }
  .chip figcaption { grid-row: 3; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .top { height: 64px; }
  .brand span { display: none; }
  nav a { font-size: 15px; }
  .lockup { width: 100%; min-width: 0; }
  .hero { padding-top: 6px; }
  .claim { font-size: clamp(30px, 9.4vw, 40px); }
  .motto { font-size: clamp(21px, 6vw, 26px); }
  .hero-row { margin-top: 26px; }
  .cmd-hero { margin-top: 28px; }
  .ms { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .cmd, .cmd-hero { flex-wrap: wrap; align-items: stretch; gap: 12px 10px; padding: 12px 10px 12px 12px; }
  .cmd-hero { margin-left: calc(-1 * var(--pad)); margin-right: calc(-1 * var(--pad)); }
  .cmd-big { margin-left: calc(-1 * (var(--pad) + var(--indent))); margin-right: calc(-1 * var(--pad)); }
  .cmd-hero, .cmd-big { border-radius: 0; border-left: 0; border-right: 0; padding: 14px 14px 14px; }
  .cmd-hero code, .cmd-big code { padding-left: 1.4em; text-indent: -1.4em; }
  .cmd code .l1 { white-space: normal; }
  .cmd-big code > span, .cmd code > span { display: inline; }
  .cmd-big code > span + span, .cmd code > span + span { padding-left: 0; }
  .cmd .prompt { display: none; }

  .cmd code, .cmd-hero code, .cmd-big code { font-size: clamp(10.5px, calc((100vw - 32px) / 32.4), 12.5px); line-height: 1.7; }
  .cmd .copy { flex: 1 0 100%; }

  .cmd .copy { min-height: 44px; }
  .sha-groups { column-gap: 6px; justify-content: space-between; }
  .also { gap: 26px; }
  .run-foot { flex-direction: column; align-items: flex-start; }
  .foot-row { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
html.rm *, html.rm *::before, html.rm *::after { transition: none !important; animation: none !important; }
@media (min-width: 961px) {
  .sha-out p > span:last-child { white-space: nowrap; }
}

/* Top-left lockup, GitHub buttons and the hero install card (2026-11-06). */
.brand .mark-lockup { height: 30px; width: auto; display: block; }
nav { align-items: center; }
.gh-btn { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px !important; border: 1px solid #4a5380; border-radius: 999px; background: rgba(36, 40, 59, 0.75); color: var(--text) !important; font: 600 15px/1 var(--sans); text-decoration: none; transition: border-color 0.15s ease-out, background-color 0.15s ease-out, box-shadow 0.25s ease-out; }
.gh-btn:hover { border-color: var(--accent); background: rgba(122, 162, 247, 0.12); box-shadow: 0 0 18px rgba(122, 162, 247, 0.25); }
.gh-btn .gh-mark { flex: none; }
.gh-btn span { white-space: nowrap; }
.gh-btn-sm { padding: 6px 12px !important; font-size: 13.5px; margin-left: auto; }
.install-card { margin: clamp(22px, 3.2vh, 30px) 0 0 var(--indent); max-width: 860px; background: linear-gradient(180deg, rgba(36, 40, 59, 0.92), rgba(26, 27, 38, 0.92)); border: 1px solid #4a5380; border-radius: 14px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(122, 162, 247, 0.06) inset; overflow: hidden; transition: border-color 0.3s ease-out, box-shadow 0.5s ease-out; }
.hero.lit .install-card { border-color: var(--accent); box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 36px rgba(122, 162, 247, 0.18); }
.ic-bar { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-bottom: 1px solid var(--hair); background: rgba(13, 17, 23, 0.55); }
.ic-dots { display: inline-flex; gap: 7px; }
.ic-dots i { width: 11px; height: 11px; border-radius: 50%; background: #3b4261; display: block; }
.ic-dots i:first-child { background: #7aa2f7; box-shadow: 0 0 8px rgba(122, 162, 247, 0.7); }
.ic-title { font: 500 13px/1 var(--mono); color: var(--soft); letter-spacing: 0.02em; }
.cmd-in-card { margin: 0 !important; border: 0 !important; border-radius: 0 !important; background: transparent !important; padding: 16px 14px 8px 18px !important; }
.ic-note { margin: 0; padding: 0 18px 14px; font: 400 13px/1.5 var(--sans); color: var(--soft); }
@media (max-width: 640px) {
  .install-card { margin-left: 0; }
  .ic-title { display: none; }
  .gh-btn span { display: none; }
  .gh-btn { padding: 9px !important; }
  .gh-btn-sm span { display: inline; }
  .gh-btn-sm { padding: 6px 12px !important; }
  .brand .mark-lockup { height: 24px; }
}
