/* ==========================================================================
   visionstyle — GitHub Pages
   Chroma Press identity: black ink, paper, signals in full colour.
   Tokens and component rules follow docs/design-system.html and
   docs/brand-guidelines.html. Two atmospheres: paper (docs) and night (preview).
   One rule per selector, grouped by component; media queries live at the end.
   ========================================================================== */

@font-face { font-family: "VS Mono"; src: url("fonts/JetBrainsMono-Medium.ttf") format("truetype"); font-weight: 500; font-display: swap; }
@font-face { font-family: "VS Mono"; src: url("fonts/JetBrainsMono-SemiBold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "VS Sans"; src: url("fonts/Inter-Variable.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }

:root {
  /* surfaces */
  --paper: #faf7f0; --paper-2: #f1ece2; --panel: #fffdf8;
  --night: #121212; --night-2: #1c1c1a; --night-3: #272723;
  /* content */
  --ink: #111111; --ink-soft: #494740; --muted: #6f6a60; --white: #fffdf7; --night-muted: #aaa499;
  /* lines */
  --line: #d2cbbf; --line-strong: #9f978a; --night-line: #45433e;
  /* signals */
  --blue: #1558e8; --red: #ff382a; --yellow: #ffd514; --pink: #f6a1c4; --green: #22b95a;
  --focus: var(--blue);
  --rail: linear-gradient(90deg, var(--blue) 0 24%, var(--yellow) 24% 48%, var(--red) 48% 67%, var(--pink) 67% 84%, var(--green) 84%);
  /* geometry */
  --radius-1: 12px; --radius-2: 22px; --radius-3: 28px; --radius-pill: 999px;
  /* type — micro labels never go below 10.5px */
  --display: Georgia, "Times New Roman", serif;
  --sans: "VS Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "VS Mono", "SFMono-Regular", Menlo, monospace;
  --micro: 10.5px; --label: 11px;
  /* motion (design system: 160 ms controls, 220 ms panels) */
  --fast: 160ms ease-out; --panel: 220ms ease-out; --ease-out: cubic-bezier(.2, .7, .2, 1);
  --shell: 1320px;
  --topbar-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar-h) + 20px); background: var(--paper); }
body {
  margin: 0; min-width: 320px; overflow-x: clip;
  color: var(--ink); background: var(--paper);
  font: 15px/1.55 var(--sans); font-variation-settings: "opsz" 14;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
/* halftone screen — the brand's paper texture (not noise) */
body::before {
  content: ""; position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: .16;
  background-image: radial-gradient(rgb(17 17 17 / .22) .55px, transparent .7px); background-size: 5px 5px;
  mix-blend-mode: multiply;
}
::selection { background: var(--yellow); color: var(--ink); }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
code, pre, kbd { font-family: var(--mono); }
h1, h2, h3, p, dl, dd, figure, ol { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.night :focus-visible, .board :focus-visible, .code-panel :focus-visible, .lightbox :focus-visible { outline-color: var(--yellow); }
.shell { width: min(100% - 48px, var(--shell)); margin-inline: auto; }
.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-link { position: absolute; left: 16px; top: -60px; z-index: 100; padding: 10px 14px; background: var(--ink); color: var(--white); font: 700 var(--micro) var(--mono); letter-spacing: .1em; text-transform: uppercase; border-radius: var(--radius-pill); transition: top var(--fast); }
.skip-link:focus { top: 16px; }

/* ---------- Voice ---------- */
.eyebrow, .small-label { margin: 0; font: 700 var(--label)/1.4 var(--mono); letter-spacing: .11em; text-transform: uppercase; }
.eyebrow { color: var(--red); }
.small-label { color: var(--muted); }
.pulse { display: inline-block; width: 7px; height: 7px; margin: 0 10px 1px 0; border-radius: 50%; background: var(--red); vertical-align: middle; box-shadow: 0 0 0 3px rgb(255 56 42 / 16%); animation: pulse 1.6s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgb(255 56 42 / 32%); } 100% { box-shadow: 0 0 0 7px rgb(255 56 42 / 0); } }

h1 { font: 400 clamp(60px, 8vw, 120px)/.88 var(--display); letter-spacing: -.06em; }
h2 { font: 400 clamp(40px, 4.6vw, 64px)/.94 var(--display); letter-spacing: -.05em; text-wrap: balance; }
h1 em, h2 em { font-style: normal; color: var(--blue); }
h3 { font: 640 19px/1.15 var(--sans); letter-spacing: -.03em; }
.lead { max-width: 560px; font-size: clamp(16px, 1.35vw, 19px); line-height: 1.45; letter-spacing: -.02em; color: var(--ink-soft); text-wrap: pretty; }
.lead code, .section-lead code, .pillar code, .install-note code, .note code, .studio-points code {
  padding: 1px 5px 2px; border-radius: 6px; background: var(--paper-2); color: var(--ink); font-size: .84em; font-weight: 500;
}
.night .section-lead code, .studio-points code { background: var(--night-3); color: var(--white); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 20px;
  border: 1px solid var(--ink); border-radius: var(--radius-pill); background: transparent; color: var(--ink);
  font: 700 var(--label) var(--mono); letter-spacing: .07em; text-transform: uppercase; white-space: nowrap;
  transition: transform var(--fast), box-shadow var(--fast), background var(--fast), color var(--fast), border-color var(--fast);
}
.btn > span[aria-hidden="true"] { font-size: 13px; line-height: 1; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 5px 0 rgb(17 17 17 / 17%); }
.btn:active { transform: translateY(0); box-shadow: 0 1px 0 rgb(17 17 17 / 17%); }
.btn-primary { border-color: var(--red); background: var(--red); color: var(--white); box-shadow: 3px 3px 0 rgb(17 17 17 / 20%); }
.btn-primary:hover { background: var(--ink); border-color: var(--ink); box-shadow: 3px 3px 0 var(--red); }
.btn-primary:active { box-shadow: 1px 1px 0 var(--red); }
.btn-ink { background: var(--ink); color: var(--white); }
.btn-ink:hover { background: var(--white); color: var(--ink); }
.btn-saffron { border-color: var(--yellow); background: var(--yellow); color: var(--ink); box-shadow: 3px 3px 0 rgb(255 253 247 / 18%); }
.btn-saffron:hover { background: var(--white); border-color: var(--white); box-shadow: 3px 3px 0 var(--yellow); }
.btn .gh { width: 15px; height: 15px; fill: currentColor; }
.text-link { display: inline-flex; align-items: baseline; gap: 8px; padding-bottom: 3px; border-bottom: 1px solid currentColor; color: var(--ink); font: 700 var(--label) var(--mono); letter-spacing: .08em; text-transform: uppercase; transition: color var(--fast), gap var(--fast); }
.text-link span { color: var(--red); }
.text-link:hover { color: var(--blue); gap: 12px; }

/* install command: copies on click */
.cmd { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 8px 0 18px; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); background: var(--panel); color: var(--ink); box-shadow: 3px 3px 0 rgb(17 17 17 / 8%); transition: border-color var(--fast), box-shadow var(--fast), transform var(--fast); }
.cmd code { font-size: 13px; font-weight: 500; letter-spacing: -.01em; }
.cmd-prompt { color: var(--red); font: 700 13px var(--mono); }
.cmd-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--paper-2); color: var(--ink-soft); transition: background var(--fast), color var(--fast); }
.cmd-icon svg { grid-area: 1 / 1; width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; transition: opacity var(--fast), transform var(--fast); }
.cmd-icon .i-done { opacity: 0; transform: scale(.6); stroke-width: 2; }
.cmd:hover { border-color: var(--ink); box-shadow: 3px 3px 0 var(--yellow); transform: translateY(-2px); }
.cmd:hover .cmd-icon { background: var(--ink); color: var(--white); }
.cmd:active { transform: translateY(0); box-shadow: 1px 1px 0 var(--yellow); }
.cmd.is-done { border-color: var(--green); }
.cmd.is-done .cmd-icon { background: var(--green); color: var(--white); }
.cmd.is-done .i-copy { opacity: 0; transform: scale(.6); }
.cmd.is-done .i-done { opacity: 1; transform: none; }

/* ---------- Segmented control (design system) ---------- */
.segment { display: inline-flex; gap: 3px; padding: 3px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--paper-2); }
.segment button { min-height: 32px; padding: 0 15px; border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--muted); font: 700 var(--micro) var(--mono); letter-spacing: .07em; text-transform: uppercase; transition: background var(--fast), color var(--fast); }
.segment button:hover:not(.active) { color: var(--ink); background: rgb(255 253 248 / 80%); }
.segment button.active { color: var(--white); background: var(--ink); box-shadow: 0 2px 0 rgb(17 17 17 / 18%); }
.board-night .segment, .code-bar .segment { border-color: var(--night-line); background: var(--night-3); }
.board-night .segment button, .code-bar .segment button { color: var(--night-muted); }
.board-night .segment button:hover:not(.active), .code-bar .segment button:hover:not(.active) { color: var(--white); background: rgb(255 253 247 / 8%); }
.board-night .segment button.active, .code-bar .segment button.active { color: var(--ink); background: var(--yellow); box-shadow: none; }
.segment.mini { margin-left: -8px; padding: 2px; }
.segment.mini button { min-height: 26px; padding: 0 12px; letter-spacing: .1em; }

/* ---------- Topbar ---------- */
.topbar { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid transparent; background: rgb(250 247 240 / 82%); backdrop-filter: blur(18px) saturate(1.15); -webkit-backdrop-filter: blur(18px) saturate(1.15); transition: border-color var(--panel), background var(--panel); }
.topbar.is-scrolled { border-color: rgb(159 151 138 / 55%); background: rgb(250 247 240 / 92%); }
.topbar-inner { width: min(100% - 48px, var(--shell)); margin-inline: auto; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; min-height: var(--topbar-h); }
/* reading progress, drawn as the brand colour rail */
.topbar-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; overflow: hidden; pointer-events: none; }
.topbar-progress i { display: block; height: 100%; background: var(--rail); background-size: 100vw 100%; transform: scaleX(var(--progress, 0)); transform-origin: 0 50%; }
.lockup { display: block; width: 150px; flex: none; transition: transform var(--fast); }
.lockup:hover { transform: rotate(-2deg) scale(1.03); }
.pill-nav { display: inline-flex; gap: 2px; padding: 4px; border: 1px solid var(--line); border-radius: var(--radius-pill); background: rgb(241 236 226 / 80%); box-shadow: inset 0 1px 0 rgb(255 255 255 / 70%); }
.pill-nav a { position: relative; display: inline-flex; align-items: center; min-height: 34px; padding: 0 15px; border-radius: var(--radius-pill); color: var(--muted); font: 700 var(--micro) var(--mono); letter-spacing: .09em; text-transform: uppercase; transition: color var(--fast), background var(--fast); }
.pill-nav a:hover { color: var(--ink); background: rgb(255 253 248 / 85%); }
.pill-nav a.active { color: var(--white); background: var(--ink); box-shadow: 0 2px 0 rgb(17 17 17 / 18%); }
.topbar-actions { display: flex; align-items: center; justify-content: end; gap: 18px; }
.status { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font: 500 var(--micro) var(--mono); letter-spacing: .06em; text-transform: uppercase; transition: color var(--fast); }
.status:hover { color: var(--ink); }
.status i, .live { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px rgb(34 185 90 / 14%); }
.topbar .btn { min-height: 40px; padding: 0 16px; }
.menu-btn { display: none; place-content: center; gap: 5px; width: 42px; height: 42px; padding: 0; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--panel); transition: border-color var(--fast), background var(--fast); }
.menu-btn i { display: block; width: 16px; height: 1.5px; background: var(--ink); transition: transform var(--panel); }
.menu-btn:hover { border-color: var(--ink); }
.menu-btn[aria-expanded="true"] { border-color: var(--ink); background: var(--ink); }
.menu-btn[aria-expanded="true"] i { background: var(--white); }
.menu-btn[aria-expanded="true"] i:first-child { transform: translateY(3.25px) rotate(45deg); }
.menu-btn[aria-expanded="true"] i:last-child { transform: translateY(-3.25px) rotate(-45deg); }

/* mobile section sheet */
.sheet { border-top: 1px solid var(--line); background: var(--paper); animation: sheet-in var(--panel) both; }
.sheet-inner { width: min(100% - 32px, var(--shell)); margin-inline: auto; padding: 10px 0 20px; }
.sheet-inner > a { display: flex; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); font: 400 32px/1.1 var(--display); letter-spacing: -.04em; transition: color var(--fast), padding var(--fast); }
.sheet-inner > a span { min-width: 24px; color: var(--red); font: 700 var(--label) var(--mono); letter-spacing: .1em; }
.sheet-inner > a:hover, .sheet-inner > a.active { color: var(--blue); padding-left: 6px; }
.sheet-foot { display: flex; flex-wrap: wrap; gap: 10px 22px; padding-top: 18px; }
.sheet-foot a { color: var(--ink-soft); font: 700 var(--label) var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.sheet-foot a span { color: var(--red); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(56px, 7vw, 104px) 0 clamp(64px, 7vw, 108px); overflow: clip; }
.hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); align-items: center; gap: clamp(32px, 4.5vw, 72px); }
/* colour rail: the brand's diagonal stripe block */
.hero-rail { position: absolute; z-index: 0; right: -6%; top: -14%; width: 46%; height: 62%; opacity: .88; pointer-events: none;
  background: repeating-linear-gradient(135deg, var(--blue) 0 22px, var(--yellow) 22px 44px, var(--red) 44px 66px, var(--pink) 66px 88px, var(--ink) 88px 110px);
  clip-path: polygon(24% 0, 100% 0, 100% 100%, 0 100%); transform: rotate(-6deg); mask-image: linear-gradient(180deg, rgb(0 0 0 / .95), rgb(0 0 0 / .35) 70%, transparent); -webkit-mask-image: linear-gradient(180deg, rgb(0 0 0 / .95), rgb(0 0 0 / .35) 70%, transparent); }
/* tracking route with confidence dots */
.hero-trail { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.trail-path { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 0 10; animation: march 1.6s linear infinite; opacity: .78; }
@keyframes march { to { stroke-dashoffset: -20; } }
.trail-dot { stroke: var(--paper); stroke-width: 2; }
.dot-blue { fill: var(--blue); } .dot-red { fill: var(--red); } .dot-green { fill: var(--green); }

.hero-copy { position: relative; max-width: 640px; }
.hero-copy h1 { margin: 20px 0 24px; }
.hero-copy .lead code { font-size: .8em; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 34px; }
.facts { display: flex; flex-wrap: wrap; gap: 0 36px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); }
.facts li { display: grid; gap: 4px; }
.facts b { font: 400 30px/1 var(--display); letter-spacing: -.05em; }
.facts span { color: var(--muted); font: 700 var(--micro) var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.facts code { font-size: var(--micro); text-transform: none; letter-spacing: 0; color: var(--ink); }

/* ---------- Board: the night preview surface ---------- */
.board { position: relative; overflow: hidden; border-radius: var(--radius-3); background: var(--night); color: var(--white); box-shadow: 0 0 0 1px var(--night-line), 12px 13px 0 var(--ink); }
.board-bar { display: flex; align-items: center; gap: 16px; min-height: 56px; padding: 0 14px 0 18px; border-bottom: 1px solid var(--night-line); }
.board-brand { width: 96px; flex: none; }
.board-status { display: inline-flex; align-items: center; gap: 9px; min-width: 0; color: var(--night-muted); font: 500 var(--micro) var(--mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board-status b { color: var(--white); font-weight: 700; }
.board-status .live { flex: none; animation: blink 2.4s steps(2) infinite; }
@keyframes blink { 50% { opacity: .35; } }
.board-bar .segment, .board-bar .autoplay { margin-left: auto; flex: none; }
.board-meta { color: var(--night-muted); font: 500 var(--micro) var(--mono); letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.board-meta b { color: var(--white); font-weight: 700; }
.board-canvas { position: relative; background: #0d0d0d; }
.board-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 48px; padding: 0 14px 0 18px; border-top: 1px solid var(--night-line); color: var(--night-muted); font: 500 var(--micro) var(--mono); letter-spacing: .04em; }
.board-foot code { min-width: 0; color: var(--yellow); font-size: 12px; letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.board-hint { display: inline-flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: .1em; white-space: nowrap; }
.board-hint span { color: var(--yellow); font-size: 13px; letter-spacing: 0; }
/* viewfinder corners */
.corner { position: absolute; z-index: 3; width: 22px; height: 22px; border: 2px solid rgb(255 253 247 / .85); pointer-events: none; }
.corner.tl { left: 14px; top: 14px; border-right: 0; border-bottom: 0; }
.corner.tr { right: 14px; top: 14px; border-left: 0; border-bottom: 0; }
.corner.bl { left: 14px; bottom: 14px; border-right: 0; border-top: 0; }
.corner.br { right: 14px; bottom: 14px; border-left: 0; border-top: 0; }
.legend { position: absolute; z-index: 3; right: 44px; bottom: 20px; display: flex; flex-wrap: wrap; justify-content: end; gap: 6px; max-width: 46%; pointer-events: none; }
.chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: var(--radius-pill); background: rgb(17 17 17 / .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: var(--white); font: 700 var(--micro) var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--chip, var(--yellow)); box-shadow: 0 0 8px var(--chip, var(--yellow)); transition: background var(--panel), box-shadow var(--panel); }

.hero-board { align-self: center; }
.hero-board .board-canvas { aspect-ratio: 16 / 10; }
.hero-frame { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; opacity: 0; transform: scale(1.02); transition: opacity var(--panel), transform 600ms var(--ease-out); }
.hero-frame.is-on { opacity: 1; transform: none; }

/* before / after: the raw frame is revealed left of the handle */
.compare { --pos: 50%; overflow: hidden; cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.compare-raw { position: absolute; inset: 0; z-index: 1; clip-path: inset(0 calc(100% - var(--pos)) 0 0); pointer-events: none; }
.compare-raw img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; }
.compare-handle { position: absolute; z-index: 4; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--white); box-shadow: 0 0 0 1px rgb(17 17 17 / .35), 0 0 18px rgb(0 0 0 / .45); pointer-events: none; }
.compare-handle i { position: absolute; left: 50%; top: 50%; display: grid; place-items: center; width: 42px; height: 42px; border: 2px solid var(--white); border-radius: 50%; background: var(--ink); color: var(--yellow); transform: translate(-50%, -50%); box-shadow: 0 4px 16px rgb(0 0 0 / .45); transition: transform var(--fast), background var(--fast); }
.compare-handle svg { width: 18px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.compare:hover .compare-handle i, .compare.is-dragging .compare-handle i { transform: translate(-50%, -50%) scale(1.08); }
.compare.is-dragging .compare-handle i { background: var(--yellow); color: var(--ink); }
.compare:has(.compare-range:focus-visible) .compare-handle i { outline: 2px solid var(--yellow); outline-offset: 3px; }
.compare-range { position: absolute; inset: auto 0 0; z-index: 0; width: 100%; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.compare-tag { position: absolute; z-index: 3; top: 20px; padding: 5px 10px; border-radius: var(--radius-pill); background: rgb(17 17 17 / .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: var(--white); font: 700 var(--micro) var(--mono); letter-spacing: .08em; text-transform: uppercase; pointer-events: none; transition: opacity var(--panel); }
.compare-tag.is-raw { left: 46px; color: var(--night-muted); }
.compare-tag.is-styled { right: 46px; color: var(--ink); background: var(--yellow); }
.compare.hide-raw .compare-tag.is-raw, .compare.hide-styled .compare-tag.is-styled { opacity: 0; }

/* ---------- Accent rail ---------- */
.accent-rail { height: 12px; background: var(--rail); }
.accent-rail.thin { height: 6px; }

/* ---------- Sections ---------- */
.section { padding: clamp(72px, 8vw, 112px) 0; }
.section-heading { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); grid-template-areas: "eyebrow ." "title lead"; align-items: end; gap: 18px 64px; margin-bottom: clamp(40px, 4.5vw, 64px); }
.section-heading .eyebrow { grid-area: eyebrow; }
.section-heading h2 { grid-area: title; max-width: 20ch; }
.section-lead { max-width: 440px; color: var(--ink-soft); font-size: 15.5px; line-height: 1.6; text-wrap: pretty; }
.section-heading .section-lead { grid-area: lead; justify-self: end; padding-bottom: 6px; }

/* ---------- Idea ---------- */
.idea { padding-top: clamp(72px, 8vw, 120px); }
.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.pillar:nth-child(2) { --stagger: 70ms; } .pillar:nth-child(3) { --stagger: 140ms; } .pillar:nth-child(4) { --stagger: 210ms; }
.card { min-width: 0; border-radius: var(--radius-2); background: var(--panel); box-shadow: 0 0 0 1px var(--line); }
.pillar { position: relative; display: grid; align-content: start; gap: 10px; padding: 24px 22px 26px; }
.pillar.reveal-on-scroll { transition: opacity 640ms var(--ease-out) var(--stagger, 0ms), translate 640ms var(--ease-out) var(--stagger, 0ms), transform 180ms ease-out, box-shadow 180ms ease-out; }
.pillar:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: 0 0 0 1px var(--ink), 5px 6px 0 var(--signal); }
.pillar-index { position: absolute; top: 24px; right: 22px; color: var(--line-strong); font: 700 var(--label) var(--mono); letter-spacing: .1em; }
.pillar-icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 12px; border-radius: 14px; background: color-mix(in srgb, var(--signal) 14%, var(--panel)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--signal) 32%, transparent); transition: background var(--fast); }
.pillar-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--ink); stroke-width: 1.75; stroke-linecap: square; stroke-linejoin: miter; }
.pillar-icon .solid { fill: var(--ink); stroke: none; }
.pillar:hover .pillar-icon { background: var(--signal); }
.pillar h3 { margin-top: 2px; }
.pillar > p:last-child { color: var(--ink-soft); font-size: 14px; line-height: 1.55; }

/* ---------- Presets ---------- */
.presets { background: var(--paper-2); }
.presets .section-lead code { background: var(--paper); }
.preset-explorer { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 28px; align-items: start; }
.preset-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.preset-list button { position: relative; display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; gap: 12px; min-height: 64px; padding: 8px 12px 8px 8px; border: 0; border-radius: 14px; background: var(--panel); box-shadow: 0 0 0 1px var(--line); color: var(--ink); text-align: left; transition: transform var(--fast), box-shadow var(--fast), background var(--fast); }
.preset-list img { width: 64px; height: 40px; border-radius: 8px; object-fit: cover; background: var(--night); box-shadow: 0 0 0 1px rgb(17 17 17 / 12%); filter: saturate(.85); transition: filter var(--fast), box-shadow var(--fast); }
.preset-text { display: grid; gap: 2px; min-width: 0; }
.preset-list b { font: 700 var(--label) var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.preset-text span { display: -webkit-box; overflow: hidden; color: var(--muted); font-size: 12px; line-height: 1.35; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.preset-list button:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--ink); }
.preset-list button:hover img { filter: none; }
.preset-list button.active { box-shadow: 0 0 0 1.5px var(--ink), 4px 4px 0 var(--yellow); }
.preset-list button.active img { filter: none; box-shadow: 0 0 0 2px var(--red); }
.preset-board { box-shadow: 0 0 0 1px var(--night-line), 12px 13px 0 var(--yellow); }
.preset-window { aspect-ratio: 1400 / 907; overflow: hidden; touch-action: pan-y; }
.preset-frame { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 360ms ease-out; }
.preset-frame.is-on { opacity: 1; }
.preset-caption { position: absolute; z-index: 3; left: 44px; right: 44px; bottom: 22px; width: fit-content; max-width: calc(100% - 88px); padding: 7px 12px; border-radius: var(--radius-pill); background: rgb(17 17 17 / .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: var(--white); font-size: 12.5px; line-height: 1.35; pointer-events: none; }
.step-btn { position: absolute; z-index: 4; top: 50%; display: grid; place-items: center; width: 40px; height: 40px; margin-top: -20px; padding: 0; border: 1px solid rgb(255 253 247 / .28); border-radius: 50%; background: rgb(17 17 17 / .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); color: var(--white); opacity: 0; transition: opacity var(--fast), background var(--fast), color var(--fast), transform var(--fast); }
.step-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.step-btn.prev { left: 16px; }
.step-btn.next { right: 16px; }
.preset-window:hover .step-btn, .step-btn:focus-visible { opacity: 1; }
.step-btn:hover { background: var(--yellow); border-color: var(--yellow); color: var(--ink); }
.step-btn.prev:active { transform: translateX(-2px); }
.step-btn.next:active { transform: translateX(2px); }
.progress { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; height: 3px; background: rgb(255 253 247 / .12); }
.progress i { display: block; width: 0; height: 100%; background: var(--yellow); }
.progress.is-running i { animation: progress var(--interval, 3800ms) linear forwards; }
.progress.is-paused i { animation-play-state: paused; }
@keyframes progress { from { width: 0; } to { width: 100%; } }
.autoplay { display: inline-flex; align-items: center; gap: 8px; min-height: 30px; padding: 0 12px 0 6px; border: 1px solid var(--night-line); border-radius: var(--radius-pill); background: transparent; color: var(--night-muted); font: 700 var(--micro) var(--mono); letter-spacing: .08em; text-transform: uppercase; transition: color var(--fast), border-color var(--fast); }
.autoplay i { position: relative; width: 26px; height: 16px; border: 1px solid var(--night-line); border-radius: var(--radius-pill); transition: border-color var(--fast), background var(--fast); }
.autoplay i::after { content: ""; position: absolute; left: 2px; top: 2px; width: 10px; height: 10px; border-radius: 50%; background: var(--night-muted); transition: transform var(--fast), background var(--fast); }
.autoplay[aria-pressed="true"] { color: var(--white); }
.autoplay[aria-pressed="true"] i { border-color: var(--green); background: rgb(34 185 90 / 14%); }
.autoplay[aria-pressed="true"] i::after { background: var(--green); transform: translateX(10px); }
.autoplay:hover { color: var(--white); border-color: var(--night-muted); }
.preset-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; margin-top: 36px; }
.preset-footer .text-link { margin-left: auto; }
.inline-cmd { padding: 8px 14px; border-radius: var(--radius-pill); background: var(--panel); box-shadow: 0 0 0 1px var(--line); color: var(--ink); font-size: 12px; }
.inline-cmd::before { content: "$ "; color: var(--red); }

/* ---------- Code panel (night surface) ---------- */
.code-panel { position: relative; overflow: hidden; border-radius: var(--radius-2); background: var(--night); color: var(--white); box-shadow: 0 0 0 1px var(--night-line), 8px 9px 0 rgb(21 88 232 / 12%); }
.code-bar { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 12px 0 18px; border-bottom: 1px solid var(--night-line); color: var(--night-muted); font: 700 var(--micro) var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.code-bar .dots { display: inline-flex; gap: 5px; margin-left: 4px; }
.code-bar .dots i { width: 7px; height: 7px; border-radius: 50%; background: var(--night-line); }
.code-bar .dots i:nth-child(1) { background: var(--red); } .code-bar .dots i:nth-child(2) { background: var(--yellow); } .code-bar .dots i:nth-child(3) { background: var(--green); }
.code-bar .copy { margin-left: auto; }
.code { margin: 0; padding: 20px 22px 22px; overflow-x: auto; font: 500 13px/1.75 var(--mono); tab-size: 4; scrollbar-width: thin; scrollbar-color: var(--night-line) transparent; }
.code:focus-visible { outline-offset: -3px; }
.code code { display: block; white-space: pre; }
.code .c { color: var(--night-muted); } .code .s { color: var(--yellow); } .code .n { color: var(--pink); } .code .k { color: #7fa6ff; }
.copy { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 12px; border: 1px solid var(--night-line); border-radius: var(--radius-pill); background: transparent; color: var(--night-muted); font: 700 var(--micro) var(--mono); letter-spacing: .1em; text-transform: uppercase; transition: color var(--fast), border-color var(--fast), background var(--fast); }
.copy::before { content: ""; width: 12px; height: 12px; background: currentColor; -webkit-mask: var(--copy-icon) center / contain no-repeat; mask: var(--copy-icon) center / contain no-repeat;
  --copy-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='5.5' y='5.5' width='8' height='8' rx='1.5'/%3E%3Cpath d='M10.5 3.5v-.5a1 1 0 0 0-1-1h-6a1 1 0 0 0-1 1v6a1 1 0 0 0 1 1h.5'/%3E%3C/svg%3E"); }
.copy:hover { color: var(--ink); border-color: var(--yellow); background: var(--yellow); }
.copy.is-done { color: var(--ink); border-color: var(--green); background: var(--green); }
.copy.is-done::before { --copy-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m3.5 8.5 3 3 6-7'/%3E%3C/svg%3E"); }
.code-panel.compact .code { padding: 16px 20px 18px; font-size: 12.5px; }

/* ---------- Configure ---------- */
.configure-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 36px; align-items: start; }
.api-panel { position: sticky; top: calc(var(--topbar-h) + 24px); }
.api-panel .code { min-height: 420px; }
.matrix { display: grid; border-top: 1px solid var(--ink); }
.matrix > div { display: grid; grid-template-columns: 96px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.matrix dt { display: flex; align-items: center; gap: 9px; align-self: start; min-height: 26px; font: 700 var(--label) var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.matrix dt::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--line-strong); transition: background var(--fast), transform var(--fast); }
.matrix dd { display: flex; flex-wrap: wrap; gap: 6px; }
.matrix dd i { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: var(--radius-pill); background: var(--panel); box-shadow: 0 0 0 1px var(--line-strong); color: var(--ink-soft); font: 500 11.5px var(--mono); font-style: normal; letter-spacing: .01em; transition: background var(--fast), color var(--fast), box-shadow var(--fast); }
.matrix > div:hover dt::before { background: var(--signal); transform: rotate(45deg); }
.matrix > div:hover dd i { box-shadow: 0 0 0 1px var(--ink); color: var(--ink); }
.note { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin-top: 36px; padding: 18px 22px; border-left: 5px solid var(--red); border-radius: 0 var(--radius-2) var(--radius-2) 0; background: linear-gradient(100deg, var(--paper-2), #f8f3e9); color: var(--ink-soft); font-size: 14px; line-height: 1.5; }
.note p { flex: 1 1 420px; margin: 0; }
.note strong { color: var(--ink); }
.note .text-link { margin-left: auto; }

/* ---------- Studio (night) ---------- */
.night { position: relative; color: var(--white); background: var(--night); }
.night::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .09; background-image: radial-gradient(#fff .55px, transparent .7px); background-size: 5px 5px; }
.night::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--night-line), transparent); }
.night h2 { color: var(--white); } .night h2 em { color: var(--pink); }
.night .section-lead { color: #cfc9bd; }
.studio-grid { position: relative; display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.studio-copy { display: grid; gap: 22px; justify-items: start; }
.studio-copy h2 { margin-top: -4px; max-width: 12ch; }
.studio-points { display: grid; gap: 14px; margin: 4px 0 6px; padding-top: 22px; border-top: 1px solid var(--night-line); color: #d6d0c4; font-size: 14px; line-height: 1.55; }
.studio-points li { display: grid; grid-template-columns: 88px 1fr; gap: 14px; }
.studio-points p { margin: 0; }
.studio-points .small-label { color: var(--yellow); padding-top: 3px; }
.studio-points b { color: var(--white); font-weight: 650; }
.studio-copy .code-panel { width: 100%; box-shadow: 0 0 0 1px var(--night-line); background: var(--night-2); }
.studio-shell { position: relative; overflow: hidden; border-radius: var(--radius-2); background: var(--night-2); box-shadow: 0 0 0 1px var(--night-line), 12px 13px 0 var(--blue); }
.studio-shell.reveal-on-scroll { transition: opacity 640ms var(--ease-out), translate 640ms var(--ease-out), transform 500ms var(--ease-out), box-shadow 500ms var(--ease-out); }
.studio-shell:hover { transform: translateY(-4px); box-shadow: 0 0 0 1px var(--night-line), 16px 17px 0 var(--blue); }
.studio-bar { display: flex; align-items: center; gap: 7px; min-height: 42px; padding: 0 16px; border-bottom: 1px solid var(--night-line); color: var(--night-muted); font: 500 var(--micro) var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.studio-bar > i { width: 8px; height: 8px; border-radius: 50%; background: var(--night-line); }
.studio-bar > i:nth-child(1) { background: var(--red); } .studio-bar > i:nth-child(2) { background: var(--yellow); } .studio-bar > i:nth-child(3) { background: var(--green); }
.studio-bar span { margin-left: 10px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.studio-bar b { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; color: var(--white); font-weight: 700; white-space: nowrap; }
.zoom { position: relative; display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.zoom img { width: 100%; }
.zoom-hint { position: absolute; right: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: var(--radius-pill); background: var(--yellow); color: var(--ink); font: 700 var(--micro) var(--mono); letter-spacing: .1em; text-transform: uppercase; box-shadow: 3px 3px 0 var(--ink); opacity: 0; transform: translateY(6px); transition: opacity var(--fast), transform var(--fast); }
.zoom-hint svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.zoom:hover .zoom-hint, .zoom:focus-visible .zoom-hint { opacity: 1; transform: none; }
.zoom:focus-visible { outline-offset: -4px; }
@media (min-width: 1400px) { .studio-shell { margin-right: max(-160px, calc((var(--shell) - 100vw) / 2 + 48px)); } }

/* lightbox */
.lightbox { width: min(96vw, 1680px); max-width: none; max-height: 94vh; padding: 0; border: 0; border-radius: var(--radius-2); background: var(--night-2); box-shadow: 0 0 0 1px var(--night-line), 0 30px 80px rgb(0 0 0 / .5); overflow: hidden; }
.lightbox[open] { animation: lightbox-in var(--panel) both; }
.lightbox::backdrop { background: rgb(17 17 17 / .78); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.lightbox-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 52px; padding: 0 10px 0 18px; border-bottom: 1px solid var(--night-line); color: var(--night-muted); font: 500 var(--micro) var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.lightbox-bar span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lightbox-bar form { margin: 0; }
.lightbox img { width: 100%; max-height: calc(94vh - 52px); object-fit: contain; }
.lightbox-close { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 50%; background: var(--yellow); color: var(--ink); transition: transform var(--fast), background var(--fast); }
.lightbox-close:hover { background: var(--white); transform: rotate(90deg); }
.lightbox-close svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
@keyframes lightbox-in { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }

/* ---------- Install ---------- */
.install-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.install-head { position: sticky; top: calc(var(--topbar-h) + 32px); display: grid; gap: 22px; justify-items: start; }
.install-head h2 { margin-top: -4px; }
.install-links { display: flex; flex-wrap: wrap; gap: 14px 26px; }
.install-steps { display: grid; gap: 40px; counter-reset: step; }
.install-step { display: grid; gap: 14px; }
.step-label { display: flex; align-items: center; gap: 12px; font: 700 var(--label) var(--mono); letter-spacing: .1em; text-transform: uppercase; }
.step-label b { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: var(--white); font-size: 12px; letter-spacing: 0; box-shadow: 2px 2px 0 var(--red); }
.segment.tabs { justify-self: start; }
.tab-panel { display: grid; gap: 12px; }
.tab-panel:not([hidden]) { animation: fade-up var(--panel) both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.install-note { color: var(--muted); font-size: 13px; line-height: 1.55; }

/* ---------- Footer ---------- */
.footer { color: var(--ink); background: var(--paper); }
.footer-grid { display: grid; grid-template-columns: 1.3fr .8fr .8fr 1.1fr; gap: 40px; padding: 56px 0 40px; }
.footer-brand p { margin-top: 18px; color: var(--ink-soft); font: 400 22px/1.1 var(--display); letter-spacing: -.03em; }
.footer .lockup { width: 168px; }
.footer-links, .footer-meta { display: grid; gap: 10px; align-content: start; }
.footer-links a { width: fit-content; color: var(--ink-soft); font-size: 14px; border-bottom: 1px solid transparent; transition: color var(--fast), border-color var(--fast); }
.footer-links a:hover { color: var(--blue); border-color: var(--blue); }
.footer-meta p:not(.small-label) { color: var(--muted); font-size: 13px; line-height: 1.55; }
.author-link { color: var(--ink); border-bottom: 1px solid var(--line-strong); transition: color var(--fast), border-color var(--fast); }
.author-link span { color: var(--red); font-size: 11px; }
.author-link:hover { color: var(--blue); border-color: var(--blue); }
.footer-line { display: flex; justify-content: space-between; gap: 16px; padding: 18px 0 26px; border-top: 1px solid var(--line); color: var(--muted); font: 700 var(--micro) var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.footer-line a { display: inline-flex; gap: 8px; transition: color var(--fast); }
.footer-line a:hover { color: var(--ink); }

/* ---------- Motion ---------- */
.reveal { animation: reveal 700ms both var(--ease-out); }
.d1 { animation-delay: 80ms; } .d2 { animation-delay: 160ms; } .d3 { animation-delay: 240ms; } .d4 { animation-delay: 320ms; }
@keyframes reveal { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
/* scroll reveals move with `translate`, leaving `transform` free for hover states */
.reveal-on-scroll { opacity: 0; translate: 0 22px; transition: opacity 640ms var(--ease-out), translate 640ms var(--ease-out); }
.reveal-on-scroll.is-visible, .no-observer .reveal-on-scroll { opacity: 1; translate: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .section-heading { grid-template-columns: 1fr; grid-template-areas: "eyebrow" "title" "lead"; gap: 16px; }
  .section-heading .section-lead { justify-self: start; padding-bottom: 0; }
  .section-heading h2 { max-width: 18ch; }
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillar { --stagger: 0ms !important; }
  /* the board caption carries the description; keep the picker compact beside it */
  .preset-text span { display: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 980px) {
  :root { --topbar-h: 68px; }
  .topbar-inner { grid-template-columns: auto 1fr; }
  .pill-nav { display: none; }
  .menu-btn { display: grid; }
  .hero-grid, .preset-explorer, .configure-grid, .studio-grid, .install-grid { grid-template-columns: 1fr; }
  .hero-rail { width: 52%; right: -16%; top: -6%; height: 24%; }
  .hero-copy { max-width: 620px; }
  .studio-shell { transform: none; }
  .api-panel, .install-head { position: static; }
  .api-panel .code { min-height: 0; }
  /* presets: the board leads, the picker becomes a swipeable film strip */
  .preset-list { order: 2; display: flex; gap: 8px; margin: 0 -24px; padding: 4px 24px 12px; overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: 24px; scrollbar-width: none; }
  .preset-list::-webkit-scrollbar { display: none; }
  .preset-list button { flex: none; grid-template-columns: 1fr; gap: 8px; width: 132px; min-height: 0; padding: 6px 6px 10px; scroll-snap-align: start; }
  .preset-list img { width: 100%; height: auto; aspect-ratio: 16 / 10; }
  .preset-list b { padding-left: 4px; }
  .preset-text span { display: none; }
  .step-btn { opacity: 1; }
  .matrix > div { grid-template-columns: 88px 1fr; }
}
@media (max-width: 760px) {
  :root { --topbar-h: 64px; }
  .shell, .topbar-inner { width: min(100% - 32px, var(--shell)); }
  .lockup { width: 124px; }
  .status { display: none; }
  .topbar-actions { gap: 10px; }
  .topbar .btn { width: 42px; min-height: 42px; padding: 0; }
  .gh-label { display: none; }
  h1 { font-size: clamp(52px, 14vw, 76px); }
  h2 { font-size: clamp(38px, 10vw, 54px); }
  .section-heading h2, .studio-copy h2 { max-width: none; }
  .hero { padding-top: 36px; }
  .hero-rail { width: 58%; right: -28%; top: -6%; height: 15%; opacity: .8; }
  .hero-trail { display: none; }
  .hero-actions { display: grid; grid-template-columns: 1fr; }
  .hero-actions .btn, .cmd { width: 100%; }
  .cmd { justify-content: space-between; }
  .cmd code { margin-right: auto; }
  .facts { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 18px 12px; }
  .facts b { font-size: 26px; }
  .board { border-radius: 20px; box-shadow: 0 0 0 1px var(--night-line), 7px 8px 0 var(--ink); }
  .preset-board { box-shadow: 0 0 0 1px var(--night-line), 7px 8px 0 var(--yellow); }
  .board-bar { gap: 10px; min-height: 50px; padding: 0 10px 0 14px; }
  .board-brand, .board-meta { display: none; }
  .hero-board .board-status { display: none; }
  .hero-board .segment { margin-left: 0; }
  .legend { display: none; }
  .compare-tag { top: 12px; padding: 4px 8px; }
  .compare-tag.is-raw { left: 12px; }
  .compare-tag.is-styled { right: 12px; }
  .compare-handle i { width: 36px; height: 36px; }
  .corner { width: 16px; height: 16px; }
  .corner.tl, .corner.bl { left: 10px; } .corner.tr, .corner.br { right: 10px; }
  .corner.tl, .corner.tr { top: 10px; } .corner.bl, .corner.br { bottom: 10px; }
  .hero-board .corner { display: none; }
  .preset-caption { left: 12px; right: auto; bottom: 14px; max-width: calc(100% - 24px); padding: 5px 10px; font-size: 11.5px; }
  .step-btn { width: 34px; height: 34px; margin-top: -30px; }
  .step-btn.prev { left: 10px; } .step-btn.next { right: 10px; }
  .board-foot { min-height: 46px; padding: 0 10px 0 14px; }
  .board-foot code { font-size: 11px; }
  .board-hint { display: none; }
  .preset-list { margin: 0 -16px; padding-inline: 16px; scroll-padding-inline: 16px; }
  .section { padding: 72px 0; }
  .pillars { grid-template-columns: 1fr; }
  .preset-footer .text-link { margin-left: 0; }
  .matrix > div { grid-template-columns: 1fr; gap: 8px; padding: 12px 0; }
  .studio-points li { grid-template-columns: 1fr; gap: 4px; }
  .studio-shell { box-shadow: 0 0 0 1px var(--night-line), 8px 9px 0 var(--blue); }
  .studio-bar b { display: none; }
  .zoom-hint { opacity: 1; transform: none; right: 10px; bottom: 10px; padding: 5px 9px; }
  .note { flex-direction: column; align-items: start; }
  .note p { flex-basis: auto; }
  .note .text-link { margin-left: 0; }
  .install-steps { gap: 32px; }
  .segment.tabs { display: flex; justify-self: stretch; }
  .segment.tabs button { flex: 1; padding: 0 8px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px 20px; padding: 44px 0 32px; }
  .footer-brand, .footer-meta { grid-column: 1 / -1; }
  .footer-line { flex-direction: column; gap: 8px; }
  .code { padding: 16px 18px 18px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal-on-scroll { opacity: 1; translate: none; }
  .trail-dot { display: none; }
  .progress { display: none; }
}
