/* keypeek.app: "the keyboard at night".
   Dark graphite desk, amber-backlit keycaps, panel-and-keycap world drawn
   from the app itself. Zero JS. Bricolage Grotesque + JetBrains Mono. */

:root {
  --bg: #101215;
  --bg-deep: #0b0d0f;
  --panel: #171a1e;
  --panel-2: #1c2025;
  --key-top: #262b31;
  --key-bottom: #1c2126;
  --key-edge: #07080a;
  --line: rgba(255, 244, 224, 0.09);
  --line-soft: rgba(255, 244, 224, 0.05);
  --amber: #ffb04a;
  --ember: #ff9226;
  --gold: #ffd166;
  --amber-ink: #1d1305;
  --text: #f4efe6;
  --text-dim: #a8adb5;
  --text-faint: #6d737c;
  --glow: rgba(255, 176, 74, 0.55);
  --radius: 14px;
  --font-display: "Bricolage Grotesque", "Avenir Next", "Helvetica Neue", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 1.04rem;
  line-height: 1.7;
  font-weight: 350;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* desk-mat atmosphere: amber pools + faint grid + grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60rem 34rem at 82% -10%, rgba(255, 146, 38, 0.09), transparent 60%),
    radial-gradient(50rem 30rem at -10% 30%, rgba(255, 176, 74, 0.06), transparent 55%),
    radial-gradient(44rem 30rem at 50% 115%, rgba(255, 209, 102, 0.07), transparent 60%),
    var(--bg);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(var(--line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--line-soft) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(90rem 60rem at 50% 0%, rgba(0,0,0,0.5), transparent 75%);
  -webkit-mask-image: radial-gradient(90rem 60rem at 50% 0%, rgba(0,0,0,0.5), transparent 75%);
}

img, video { max-width: 100%; height: auto; display: block; }

a { color: var(--amber); text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--gold); }

::selection { background: var(--amber); color: var(--amber-ink); }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
  border-radius: 4px;
}

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 28px; }

/* ---------- menu-bar header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(11, 13, 15, 0.82);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-top: 10px;
  padding-bottom: 10px;
}

.site-header .brand {
  display: inline-flex;
  white-space: nowrap;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
}
.site-header .brand img { width: 26px; height: 26px; border-radius: 6px; }

.site-nav { display: flex; align-items: center; gap: 20px; margin-left: auto; }

.site-nav a {
  white-space: nowrap;
  color: var(--text-dim);
  text-decoration: none;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.82rem;
}
.site-nav a:hover { color: var(--text); }

/* LED chip: the download and buy buttons */
.led-chip {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid rgba(255, 176, 74, 0.45);
  background: rgba(255, 146, 38, 0.10);
  color: var(--amber) !important;
  font-family: var(--font-mono);
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
}
.led-chip .led {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 8px 2px var(--glow);
  animation: led-breathe 2.4s ease-in-out infinite;
}
@keyframes led-breathe {
  0%, 100% { opacity: 1; box-shadow: 0 0 8px 2px var(--glow); }
  50% { opacity: 0.45; box-shadow: 0 0 3px 0 var(--glow); }
}

/* ---------- keycaps ---------- */

.kcap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.7em;
  padding: 0.06em 0.42em 0.12em;
  border-radius: 0.32em;
  background: linear-gradient(180deg, var(--key-top), var(--key-bottom));
  border: 1px solid rgba(255, 244, 224, 0.13);
  border-bottom-color: rgba(255, 244, 224, 0.04);
  box-shadow: 0 0.14em 0 var(--key-edge), inset 0 1px 0 rgba(255, 244, 224, 0.10);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.86em;
  line-height: 1.5;
  color: var(--text);
  vertical-align: baseline;
}

.kcap.lit {
  background: linear-gradient(180deg, var(--amber), #d98a20);
  border-color: rgba(255, 209, 102, 0.7);
  box-shadow: 0 0.14em 0 #6d4408, 0 0 16px 2px rgba(255, 146, 38, 0.35), inset 0 1px 0 rgba(255, 236, 200, 0.6);
  color: var(--amber-ink);
  text-shadow: none;
}

kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.7em;
  padding: 0.02em 0.4em 0.1em;
  border-radius: 0.32em;
  background: linear-gradient(180deg, var(--key-top), var(--key-bottom));
  border: 1px solid rgba(255, 244, 224, 0.13);
  box-shadow: 0 0.12em 0 var(--key-edge), inset 0 1px 0 rgba(255, 244, 224, 0.10);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.88em;
  color: var(--text);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  padding: 88px 0 60px;
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 10fr) minmax(0, 11fr);
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.eyebrow {
  margin: 0 0 22px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.eyebrow::before { content: "// "; color: var(--amber); }

.hero h1 {
  margin: 0 0 24px;
  font-size: clamp(2.6rem, 5.6vw, 4.3rem);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hero h1 .kcap { font-size: 0.82em; margin: 0 0.04em; transform: translateY(-0.05em); }
.hero h1 .dim { color: var(--text-faint); font-weight: 600; }

.hero .lede {
  margin: 0 0 34px;
  max-width: 46ch;
  font-size: 1.1rem;
  color: var(--text-dim);
}

.hero-cta { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; }
.hero-cta .led-chip { font-size: 0.86rem !important; padding: 11px 20px; }

.buy-note {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-faint);
  letter-spacing: 0.04em;
}

/* staggered load */
.reveal { opacity: 0; transform: translateY(14px); animation: rise 640ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards; }
.reveal.d1 { animation-delay: 90ms; }
.reveal.d2 { animation-delay: 200ms; }
.reveal.d3 { animation-delay: 310ms; }
.reveal.d4 { animation-delay: 430ms; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- the overlay mock ---------- */

.overlay-mock {
  position: relative;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(34, 38, 44, 0.92), rgba(23, 26, 30, 0.96));
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(0, 0, 0, 0.4),
    0 0 90px rgba(255, 146, 38, 0.10);
  padding: 18px 18px 16px;
  font-size: 0.85rem;
  transform: rotate(0.6deg);
}

.overlay-mock .mhead {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
  font-weight: 650;
  font-size: 0.95rem;
}
.overlay-mock .appdot {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: linear-gradient(160deg, var(--gold), var(--ember));
  box-shadow: 0 0 10px rgba(255, 146, 38, 0.4);
  flex: none;
}
.overlay-mock .mcount {
  margin-left: auto;
  font-family: var(--font-mono);
  font-weight: 400;
  font-size: 0.68rem;
  color: var(--text-faint);
}

.overlay-mock .msearch {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255, 176, 74, 0.55);
  background: rgba(11, 13, 15, 0.6);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text);
}
.overlay-mock .msearch .caret {
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--amber);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.overlay-mock .msearch .hint { margin-left: auto; color: var(--text-faint); font-size: 0.68rem; }

.overlay-mock .mcols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.overlay-mock .mcard {
  border-radius: 10px;
  border: 1px solid var(--line-soft);
  background: rgba(255, 244, 224, 0.025);
  padding: 9px 10px;
}
.overlay-mock .msec {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--amber);
  margin-bottom: 6px;
}
.overlay-mock .mrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 7px;
  border-radius: 7px;
  white-space: nowrap;
  color: var(--text-dim);
}
.overlay-mock .mrow .keys { display: inline-flex; gap: 3px; }
.overlay-mock .mrow .keys .kcap { font-size: 0.72rem; }
.overlay-mock .mrow.faded { opacity: 0.38; }
.overlay-mock .mrow .star { color: var(--amber); margin-right: 2px; }

/* selection sweep: three rows take turns lighting up */
.overlay-mock .mrow.sweep { animation: row-sweep 5.4s ease-in-out infinite; }
.overlay-mock .mrow.sweep.s2 { animation-delay: 1.8s; }
.overlay-mock .mrow.sweep.s3 { animation-delay: 3.6s; }
@keyframes row-sweep {
  0%, 26%, 100% { background: transparent; color: var(--text-dim); }
  6%, 20% { background: rgba(255, 176, 74, 0.16); color: var(--text); }
}

/* floating ghost keycaps behind the mock */
.ghost-keys { position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.ghost-keys .kcap {
  position: absolute;
  font-size: 1.3rem;
  opacity: 0.16;
  animation: floaty 7s ease-in-out infinite;
}
.ghost-keys .g1 { right: 4%; top: 4%; animation-delay: 0.4s; }
.ghost-keys .g2 { right: -3%; top: 44%; font-size: 1.7rem; animation-delay: 1.6s; }
.ghost-keys .g3 { left: -4%; bottom: 10%; animation-delay: 2.8s; }
@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- keyboard-row divider ---------- */

.kb-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 54px 24px;
  overflow: hidden;
}
.kb-row .kcap {
  font-size: 1.05rem;
  min-width: 2.1em;
  padding: 0.28em 0.5em 0.36em;
  flex: none;
}
.kb-row .kcap.lit { animation: key-glow 3.2s ease-in-out infinite; }
.kb-row .kcap.lit:nth-child(odd) { animation-delay: 0.5s; }
@keyframes key-glow {
  0%, 100% { box-shadow: 0 0.14em 0 #6d4408, 0 0 16px 2px rgba(255, 146, 38, 0.35), inset 0 1px 0 rgba(255, 236, 200, 0.6); }
  50% { box-shadow: 0 0.14em 0 #6d4408, 0 0 26px 5px rgba(255, 146, 38, 0.55), inset 0 1px 0 rgba(255, 236, 200, 0.6); }
}

/* ---------- how it works: three big keys ---------- */

.section { padding: 76px 0; }
.section[id] { scroll-margin-top: 80px; }

.section-head { max-width: 60ch; margin-bottom: 44px; }
.section-head h2 {
  margin: 0 0 14px;
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.018em;
}
.section-head p { margin: 0; color: var(--text-dim); }

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  box-shadow: 0 6px 0 var(--key-edge), 0 22px 40px rgba(0, 0, 0, 0.35);
  padding: 26px 24px 24px;
  transition: transform 140ms ease, box-shadow 140ms ease;
}
.step:hover { transform: translateY(3px); box-shadow: 0 3px 0 var(--key-edge), 0 14px 26px rgba(0, 0, 0, 0.35); }

.step::before {
  counter-increment: step;
  content: "0" counter(step);
  position: absolute;
  top: 20px;
  right: 22px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-faint);
  letter-spacing: 0.1em;
}

.step .step-key { font-size: 1.5rem; margin-bottom: 16px; display: inline-flex; gap: 6px; }
.step h3 {
  margin: 0 0 8px;
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.step p { margin: 0; color: var(--text-dim); font-size: 0.95rem; }

/* ---------- bento features ---------- */

.bento {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 20px;
}

.cell {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 244, 224, 0.035), rgba(255, 244, 224, 0.012));
  padding: 26px 26px 24px;
  position: relative;
  overflow: hidden;
}
.cell.wide { grid-column: span 4; }
.cell.tall { grid-column: span 2; }
.cell.half { grid-column: span 3; }
.cell.amber {
  border-color: rgba(255, 176, 74, 0.4);
  background:
    radial-gradient(30rem 16rem at 100% 0%, rgba(255, 146, 38, 0.13), transparent 60%),
    linear-gradient(180deg, rgba(255, 244, 224, 0.035), rgba(255, 244, 224, 0.012));
}

.cell .cell-tag {
  display: inline-block;
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--amber);
}
.cell h3 {
  margin: 0 0 10px;
  font-size: 1.35rem;
  font-weight: 750;
  letter-spacing: -0.014em;
}
.cell p { margin: 0 0 10px; color: var(--text-dim); font-size: 0.97rem; max-width: 58ch; }
.cell p:last-child { margin-bottom: 0; }

.cell .demo-line {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-faint);
  flex-wrap: wrap;
}

/* split glassy/solid demo */
.split-demo {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-align: center;
}
.split-demo > div { padding: 16px 10px; }
.split-demo .glassy {
  background: linear-gradient(160deg, rgba(255, 176, 74, 0.14), rgba(255, 244, 224, 0.05));
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: var(--text-dim);
}
.split-demo .solid { background: #22262c; color: var(--text); }

/* ---------- CTA ---------- */

.cta { padding: 90px 0 100px; text-align: center; }
.cta .panel {
  display: inline-block;
  border-radius: 22px;
  border: 1px solid var(--line);
  background:
    radial-gradient(36rem 18rem at 50% 130%, rgba(255, 146, 38, 0.15), transparent 60%),
    linear-gradient(180deg, var(--panel-2), var(--panel));
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
  padding: 54px clamp(30px, 7vw, 90px) 50px;
}
.cta h2 {
  margin: 0 0 26px;
  font-size: clamp(1.9rem, 4.4vw, 2.8rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.cta .lede { color: var(--text-dim); max-width: 52ch; margin: 0 auto 26px; font-size: 1.05rem; line-height: 1.55; }
.cta .chips { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 14px; }
.cta .led-chip { font-size: 0.9rem !important; padding: 13px 24px; }
.cta .buy-note a { color: var(--amber); }
.cta .buy-note { margin-top: 18px; }

/* ---------- footer: status bar ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-deep);
  padding: 26px 0 30px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { color: var(--text-dim); text-decoration: none; }
.footer-links a:hover { color: var(--amber); }
.site-footer small { color: var(--text-faint); font-size: 0.72rem; }

/* ---------- help & prose pages ---------- */

.page-head { padding: 70px 0 26px; }
.page-head h1 {
  margin: 0 0 14px;
  font-size: clamp(2.3rem, 6vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.022em;
  line-height: 1.04;
}
.page-head .lede { color: var(--text-dim); max-width: 62ch; margin: 0; font-size: 1.08rem; }

.prose { padding: 14px 0 90px; }
.prose h2 {
  margin: 54px 0 14px;
  font-size: 1.5rem;
  font-weight: 750;
  letter-spacing: -0.012em;
  scroll-margin-top: 80px;
}
.prose h2::before { content: "## "; color: var(--amber); font-family: var(--font-mono); font-size: 0.9em; }
.prose h3 { margin: 30px 0 10px; font-size: 1.1rem; font-weight: 700; }
.prose p, .prose li { color: var(--text-dim); max-width: 68ch; }
.prose ul, .prose ol { padding-left: 24px; margin: 0 0 14px; }
.prose li { margin-bottom: 8px; }
.prose li strong, .prose p strong { color: var(--text); font-weight: 650; }

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 8px;
  padding: 0;
  list-style: none;
}
.toc li { margin: 0; }
.toc a {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 3px 0 var(--key-edge);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 0.78rem;
  text-decoration: none;
  transition: transform 120ms ease, box-shadow 120ms ease, color 120ms ease;
}
.toc a:hover { color: var(--amber); transform: translateY(2px); box-shadow: 0 1px 0 var(--key-edge); }

.callout {
  max-width: 720px;
  margin: 22px 0;
  padding: 18px 22px;
  border-radius: var(--radius);
  background: rgba(255, 146, 38, 0.07);
  border: 1px solid rgba(255, 176, 74, 0.3);
}
.callout p { margin: 0; }

.shortcut-table {
  border-collapse: collapse;
  margin: 22px 0 10px;
  width: 100%;
  max-width: 520px;
}
.shortcut-table th, .shortcut-table td {
  text-align: left;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
}
.shortcut-table th {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.shortcut-table td:last-child { color: var(--text); font-weight: 550; }

.steps-block { margin: 8px 0 20px; }

/* ---------- 404 ---------- */

.lost {
  min-height: 62vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
}
.lost .bigkey { font-size: 2.6rem; margin-bottom: 30px; }
.lost .bigkey .kcap { padding: 0.3em 0.5em 0.38em; }
.lost h1 { font-size: clamp(2.4rem, 7vw, 4rem); font-weight: 800; letter-spacing: -0.02em; margin: 0 0 14px; }
.lost p { color: var(--text-dim); max-width: 44ch; margin: 0 0 30px; }
.lost .links { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }
.lost .links a {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 10px;
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 0.85rem;
  text-decoration: none;
}
.lost .links a.primary {
  background: linear-gradient(180deg, var(--amber), #d98a20);
  color: var(--amber-ink);
  box-shadow: 0 4px 0 #6d4408;
}
.lost .links a.primary:hover { filter: brightness(1.06); }
.lost .links a.secondary { border: 1px solid var(--line); color: var(--text-dim); box-shadow: 0 4px 0 var(--key-edge); background: var(--panel); }
.lost .links a.secondary:hover { color: var(--amber); }

/* ---------- responsive ---------- */

@media (max-width: 920px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); }
  .overlay-mock { transform: none; min-width: 0; }
  .steps { grid-template-columns: 1fr; }
  .cell.wide, .cell.tall, .cell.half { grid-column: span 6; }
  .section { padding: 60px 0; }
  .hero { padding: 64px 0 40px; }
  .kb-row .kcap:nth-child(n+13) { display: none; }
}

@media (max-width: 760px) {
  .site-nav { gap: 14px; }
  .site-nav .nav-plain { display: none; }
}

@media (max-width: 520px) {
  .overlay-mock .mcols { grid-template-columns: 1fr; }
  .kb-row .kcap:nth-child(n+10) { display: none; }
}

@media (max-width: 420px) {
  .kb-row .kcap:nth-child(n+8) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; animation: none; }
  .led-chip .led, .kb-row .kcap.lit, .overlay-mock .mrow.sweep,
  .overlay-mock .msearch .caret, .ghost-keys .kcap { animation: none; }
  .step, .toc a { transition: none; }
}

/* ---------- press kit ---------- */

.facts { display: grid; gap: 0; margin: 0 0 14px; max-width: 68ch; border-top: 1px solid var(--line); }
.facts div { display: grid; grid-template-columns: 130px 1fr; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.facts dt { font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--amber); padding-top: 3px; }
.facts dd { margin: 0; color: var(--text-dim); }
.facts dd a { color: var(--amber); }
.press-video { display: block; width: 100%; max-width: 960px; height: auto; border-radius: 14px; border: 1px solid var(--line); background: var(--bg-deep); margin: 0 0 14px; }
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin: 0 0 20px; }
.shot { margin: 0; }
.shot img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); }
.shot figcaption { margin-top: 8px; font-size: 0.88rem; color: var(--text-dim); }
.shot figcaption a { color: var(--amber); font-family: var(--font-mono); font-size: 0.78rem; margin-left: 6px; }
@media (max-width: 520px) { .facts div { grid-template-columns: 1fr; gap: 4px; } }
