/* Visual Client — site styles
   Flat, text-led layout: hairlines, square corners, no gradients or glow.
   The accent is a single flat colour and defaults to white (Monochrome). */

@font-face {
  font-family: "Rajdhani";
  src: url("assets/fonts/rajdhani.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Share Tech Mono";
  src: url("assets/fonts/sharetechmono.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0b0b0c;
  --bg-soft: #0e0e10;
  --panel: #0e0e10;
  --line: #232327;
  --line-strong: #3a3a41;
  --text: #f1f1f2;
  --muted: #9b9ba3;
  --quiet: #6d6d75;
  --accent: #f2f2f3;
  --accent-2: #b9c6d8;
  --display: "Rajdhani", "Segoe UI", system-ui, sans-serif;
  --mono: "Share Tech Mono", ui-monospace, Consolas, monospace;
  --body: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --radius: 3px;
  --max: 1140px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.lb-open { overflow: hidden; }

::selection { background: var(--accent); color: #0b0b0c; }

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

a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: 0;
  margin: 0;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

code, kbd { font-family: var(--mono); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 60;
  background: var(--accent); color: #0b0b0c;
  padding: 9px 14px; border-radius: var(--radius);
  font-weight: 600; transition: top 0.15s;
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}

/* Header */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.brand img { width: 26px; height: 26px; }
.brand-text {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.brand-text span { color: var(--muted); font-weight: 500; }

.nav { display: flex; align-items: center; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links > a:not(.btn) {
  font-size: 0.86rem;
  color: var(--muted);
  padding: 7px 10px;
  transition: color 0.15s;
}
.nav-links > a:not(.btn):hover { color: var(--text); }
.nav-links .btn { margin-left: 12px; }

.nav-toggle {
  display: none;
  width: 38px; height: 38px;
  background: transparent;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 10px;
  cursor: pointer;
}
.nav-toggle span:not(.sr-only) {
  display: block;
  height: 1px;
  background: var(--text);
  margin: 4px 0;
  transition: transform 0.15s, opacity 0.15s;
}
.nav.open .nav-toggle span:nth-child(2) { transform: translateY(5px) rotate(45deg); }
.nav.open .nav-toggle span:nth-child(3) { opacity: 0; }
.nav.open .nav-toggle span:nth-child(4) { transform: translateY(-5px) rotate(-45deg); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: var(--body);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s, opacity 0.15s;
}
.btn svg {
  width: 16px; height: 16px;
  fill: none; stroke: currentColor; stroke-width: 1.7;
  stroke-linecap: round; stroke-linejoin: round;
}
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #0b0b0c;
}
.btn-primary:hover { opacity: 0.88; }
.btn-ghost {
  background: transparent;
  border-color: var(--line-strong);
  color: var(--text);
}
.btn-ghost:hover { border-color: #56565f; background: #141416; }
.btn-small { padding: 8px 13px; font-size: 0.81rem; }
.btn-large { padding: 14px 22px; font-size: 0.94rem; }

/* Shared */
.eyebrow {
  display: block;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--quiet);
  margin: 0 0 14px;
}
.grad { color: inherit; }
.muted { color: var(--muted); }
/* Headings stay one colour; muted emphasis is a body-copy device only. */
.hero h1 .grad,
.section-head h2 .muted,
.install-grid h2 .muted { color: inherit; }

.section { padding: 88px 0; position: relative; }
.section-alt {
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-head { max-width: 720px; margin-bottom: 40px; }
.section-head h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.section-head > p:last-child {
  color: var(--muted);
  font-size: 0.98rem;
  max-width: 62ch;
}
.section-head em { color: var(--text); font-style: normal; }

/* Hero */
.hero { padding: 128px 0 32px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 56px;
  align-items: start;
}
.hero h1 {
  font-size: clamp(2.6rem, 4.6vw, 3.9rem);
  line-height: 1.02;
  letter-spacing: -0.015em;
  margin: 0 0 20px;
}
.lede {
  max-width: 46ch;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.62;
  margin-bottom: 28px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.hero-actions.centre { justify-content: center; }
.meta-line {
  margin: 16px 0 0;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--quiet);
}
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 40px 0 0;
  border-top: 1px solid var(--line);
}
.stats > div {
  padding: 14px 14px 0 0;
  border-right: 1px solid var(--line);
}
.stats > div:last-child { border-right: 0; }
.stats dt {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--quiet);
}
.stats dd {
  margin: 4px 0 0;
  font-family: var(--display);
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1;
  color: var(--text);
}

/* Hero image */
.hero-visual { min-width: 0; }
.frame {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #000;
}
.frame img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.frame-caption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-top: 1px solid var(--line);
  background: var(--panel);
  font-size: 0.8rem;
}
.frame-caption span {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--quiet);
}
.frame-caption strong { font-family: var(--display); font-size: 0.95rem; font-weight: 600; }

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.shot {
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  color: var(--text);
  text-align: left;
  font: inherit;
  cursor: zoom-in;
  transition: border-color 0.15s;
}
.shot img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: opacity 0.15s;
}
.shot:hover { border-color: var(--line-strong); }
.shot:hover img { opacity: 0.9; }
.shot-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 11px;
  border-top: 1px solid var(--line);
}
.shot-meta strong { font-family: var(--display); font-size: 0.92rem; font-weight: 600; }
.shot-meta span {
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--quiet);
  white-space: nowrap;
}
.shot.more {
  display: grid;
  place-items: center;
  cursor: default;
  text-align: center;
  background: var(--bg-soft);
}
.shot.more div { display: grid; gap: 2px; padding: 12px; }
.shot.more strong {
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 600;
  line-height: 1;
  color: var(--text);
}
.shot.more span {
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--quiet);
}
.shot:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.gallery-note {
  margin-top: 14px;
  font-size: 0.74rem;
  color: var(--quiet);
}

/* Features */
.bento {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 48px;
  border-top: 1px solid var(--line);
}
.card {
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
  background: none;
}
.card-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}
.icon {
  flex: none;
  display: block;
  width: 20px; height: 20px;
  margin-top: 3px;
  color: var(--quiet);
}
.icon svg {
  width: 20px; height: 20px;
  fill: none; stroke: currentColor; stroke-width: 1.4;
  stroke-linecap: round; stroke-linejoin: round;
}
.card h3 { font-size: 1.08rem; margin-bottom: 2px; }
.card-head p { font-size: 0.78rem; color: var(--quiet); margin: 0; }
.card-body { color: var(--muted); font-size: 0.9rem; line-height: 1.62; max-width: 58ch; }
.card-body em { color: var(--text); font-style: normal; }
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
}
.chips li {
  font-family: var(--mono);
  font-size: 0.57rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--quiet);
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 2px;
}

/* Module list */
.module-list {
  margin-top: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.module-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 18px;
  cursor: pointer;
  list-style: none;
}
.module-list summary::-webkit-details-marker { display: none; }
.module-list summary:hover { background: #121215; }
.module-list summary strong {
  display: block;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
}
.module-list summary span span {
  display: block;
  font-size: 0.76rem;
  color: var(--quiet);
  margin-top: 2px;
}
.summary-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--muted);
  transition: transform 0.15s;
}
.summary-icon svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; }
.module-list[open] .summary-icon { transform: rotate(180deg); }
.module-groups {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 44px;
  padding: 20px 18px 24px;
  border-top: 1px solid var(--line);
}
.module-group h4 {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 6px;
}
.module-group h4 span {
  font-size: 0.56rem;
  color: var(--quiet);
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 0 5px;
  letter-spacing: 0.04em;
}
.module-group p { font-size: 0.8rem; line-height: 1.75; color: var(--muted); }

/* Presets */
.presets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}
.preset {
  padding: 22px 28px 22px 0;
  border-bottom: 1px solid var(--line);
}
.preset:nth-child(even) {
  padding-left: 28px;
  padding-right: 0;
  border-left: 1px solid var(--line);
}
.preset-swatch {
  display: flex;
  gap: 2px;
  width: 22px;
  height: 5px;
  margin-bottom: 12px;
}
.preset-swatch::before,
.preset-swatch::after {
  content: "";
  flex: 1;
  border-radius: 1px;
}
.preset-swatch::before { background: var(--p1, var(--accent)); }
.preset-swatch::after { background: var(--p2, var(--accent-2)); }
.preset h3 { font-size: 1.05rem; margin-bottom: 4px; }
.preset p { font-size: 0.84rem; line-height: 1.6; color: var(--muted); margin-bottom: 10px; }
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.tags li {
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--quiet);
}
.key-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
  margin-top: 24px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.key-strip > div { display: flex; align-items: center; gap: 8px; }
.key-strip span { font-size: 0.76rem; color: var(--muted); }
kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  padding: 3px 6px;
  font-size: 0.66rem;
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: #141416;
}

/* Customise */
.custom-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: start;
}
.panel {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}
.panel-head { margin-bottom: 16px; }
.panel-head h3 { font-size: 1.2rem; margin-bottom: 4px; }
.panel-head p { font-size: 0.8rem; color: var(--quiet); }
.palettes {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}
.palette {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  color: var(--muted);
  font-family: var(--body);
  font-size: 0.82rem;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s, color 0.15s;
}
.palette:hover { border-color: var(--line-strong); color: var(--text); }
.palette.is-active { border-color: var(--text); color: var(--text); }
.swatches { display: inline-flex; gap: 2px; flex: none; }
.swatches i {
  width: 11px; height: 11px;
  border-radius: 1px;
  background: var(--p1);
  border: 1px solid rgba(0, 0, 0, 0.35);
}
.swatches i + i { background: var(--p2); }
.panel .tiny { margin-top: 12px; font-size: 0.68rem; color: var(--quiet); }
.langs {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 18px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.langs li { font-size: 0.82rem; color: var(--muted); }
.panel-split {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.panel-split div { display: grid; gap: 2px; }
.panel-split strong { font-family: var(--display); font-size: 1.4rem; font-weight: 600; line-height: 1; }
.panel-split span {
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--quiet);
}

.sky-block {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 40px;
  align-items: start;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.sky-copy h3 { font-size: 1.3rem; margin-bottom: 8px; }
.sky-copy p { color: var(--muted); font-size: 0.88rem; }
.sky-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(200px, 1fr);
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--line-strong) transparent;
}
.sky-strip figure {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--panel);
  scroll-snap-align: start;
}
.sky-strip img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.sky-strip figcaption {
  padding: 6px 8px;
  border-top: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.54rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--quiet);
}

/* Install */
.install-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 56px;
  align-items: start;
}
.install-grid h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.7rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 26px;
}
.steps {
  list-style: none;
  padding: 0;
  margin: 0 0 26px;
  border-top: 1px solid var(--line);
}
.steps li {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.step-num {
  font-family: var(--mono);
  font-size: 0.62rem;
  color: var(--quiet);
  padding-top: 3px;
  letter-spacing: 0.06em;
}
.steps h3 { font-size: 1rem; margin-bottom: 3px; }
.steps p { font-size: 0.85rem; color: var(--muted); margin: 0; max-width: 52ch; }
code {
  font-size: 0.8em;
  padding: 1px 5px;
  border-radius: 2px;
  background: #17171a;
  border: 1px solid var(--line);
  color: var(--text);
  white-space: nowrap;
}
.requirements {
  position: sticky;
  top: 84px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}
.requirements h3 { font-size: 1.05rem; margin-bottom: 12px; }
.requirements dl { margin: 0; }
.requirements dl > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-top: 1px solid var(--line);
  font-size: 0.82rem;
}
.requirements dt { color: var(--quiet); }
.requirements dd { margin: 0; text-align: right; color: var(--text); }
.req-note { margin-top: 14px; font-size: 0.74rem; color: var(--muted); }

/* FAQ */
.faq-wrap { max-width: 820px; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--display);
  font-size: 1.02rem;
  font-weight: 500;
  transition: color 0.15s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--muted); }
.faq summary span { position: relative; flex: none; width: 12px; height: 12px; }
.faq summary span::before, .faq summary span::after {
  content: "";
  position: absolute;
  top: 50%; left: 0;
  width: 12px; height: 1px;
  background: var(--quiet);
  transition: transform 0.15s;
}
.faq summary span::after { transform: rotate(90deg); }
.faq details[open] summary span::after { transform: rotate(0); }
.faq p { padding: 0 0 16px; color: var(--muted); font-size: 0.86rem; max-width: 68ch; }

/* Download */
.download-section { padding-top: 32px; }
.download-card {
  text-align: center;
  padding: 48px 24px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--panel);
}
.download-logo {
  width: 48px; height: 48px;
  margin: 0 auto 16px;
}
.download-card h2 {
  font-size: clamp(1.8rem, 3.2vw, 2.5rem);
  margin-bottom: 10px;
}
.download-card > p:not(.eyebrow):not(.download-meta) {
  max-width: 46ch;
  margin: 0 auto 22px;
  color: var(--muted);
}
.download-card .eyebrow { justify-content: center; }
.download-meta {
  margin: 14px 0 0;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  color: var(--quiet);
}

/* Footer */
.site-footer {
  margin-top: 48px;
  border-top: 1px solid var(--line);
  padding: 48px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-brand p { margin-top: 12px; max-width: 32ch; font-size: 0.8rem; color: var(--quiet); }
.footer-grid h4 {
  font-family: var(--mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--quiet);
  margin-bottom: 12px;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.footer-grid ul a { font-size: 0.82rem; color: var(--muted); transition: color 0.15s; }
.footer-grid ul a:hover { color: var(--text); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 0.72rem;
  color: var(--quiet);
}
.footer-fine { font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.06em; text-transform: uppercase; }

/* Lightbox */
.lightbox {
  width: min(1100px, 94vw);
  max-width: none;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
}
.lightbox::backdrop { background: rgba(0, 0, 0, 0.88); }
.lightbox figure { margin: 0; position: relative; }
.lightbox img {
  width: 100%;
  max-height: 78vh;
  object-fit: contain;
  background: #000;
}
.lightbox figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
}
.lightbox figcaption strong { font-family: var(--display); font-size: 1rem; font-weight: 600; }
.lightbox figcaption span {
  font-family: var(--mono);
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--quiet);
}
.lb-close, .lb-nav {
  position: absolute;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 34px; height: 34px;
  border-radius: 2px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.lb-close:hover, .lb-nav:hover { background: #17171a; border-color: #56565f; }
.lb-close { top: 10px; right: 10px; }
.lb-nav { top: 50%; transform: translateY(-50%); }
.lb-prev { left: 10px; }
.lb-next { right: 10px; }
.lb-close svg, .lb-nav svg {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}

/* 404 */
.error-main {
  min-height: 82vh;
  display: grid;
  place-items: center;
  padding: 140px 0 80px;
  text-align: center;
}
.error-inner {
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.error-code {
  margin: 0 0 4px;
  font-family: var(--display);
  font-size: clamp(6rem, 18vw, 11rem);
  font-weight: 600;
  line-height: 0.85;
  letter-spacing: -0.03em;
  color: #26262c;
  user-select: none;
}
.error-inner .eyebrow { justify-content: center; }
.error-inner h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.error-inner .lede { margin: 12px auto 24px; }

/* Responsive */
@media (max-width: 1080px) {
  .hero { padding-top: 112px; }
  .hero-grid { gap: 36px; }
  .bento { column-gap: 32px; }
  .custom-grid { gap: 32px; }
  .install-grid { gap: 36px; }
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .nav { position: relative; }
  .nav-links {
    position: fixed;
    top: 64px; left: 0; right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 24px 18px;
    max-height: calc(100vh - 64px);
    overflow-y: auto;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }
  .nav.open .nav-links { display: flex; }
  .nav-links > a:not(.btn) { padding: 11px 0; font-size: 0.95rem; border-bottom: 1px solid var(--line); }
  .nav-links .btn { margin: 14px 0 0; }

  .hero { padding: 100px 0 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 620px; }
  .stats { max-width: 560px; }

  .section { padding: 72px 0; }
  .section-head { margin-bottom: 32px; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: 1fr; column-gap: 0; }
  .custom-grid { grid-template-columns: 1fr; }
  .sky-block { grid-template-columns: 1fr; gap: 24px; }
  .install-grid { grid-template-columns: 1fr; }
  .requirements { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 720px) {
  .wrap { padding: 0 20px; }
  .section { padding: 60px 0; }
  .stats { grid-template-columns: repeat(2, 1fr); margin-top: 32px; }
  .stats > div { border-right: 0; padding: 12px 0 0; }
  .stats > div:nth-child(odd) { border-right: 1px solid var(--line); }
  .stats dd { font-size: 1.6rem; }
  .hero { padding: 92px 0 48px; }
  .hero-actions .btn { flex: 1 1 auto; }
  .presets { grid-template-columns: 1fr; }
  .preset { padding-right: 0; }
  .preset:nth-child(even) { padding-left: 0; border-left: 0; }
  .module-groups { grid-template-columns: 1fr; gap: 20px; }
  .key-strip { gap: 8px 16px; }
  .download-card { padding: 40px 18px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; gap: 4px; }
  .lightbox { width: 96vw; }
  .lb-nav { width: 30px; height: 30px; }
}

@media (max-width: 520px) {
  .gallery { grid-template-columns: 1fr; }
  .shot.more { aspect-ratio: 16 / 6; }
  .hero h1 { font-size: clamp(2.2rem, 10vw, 2.9rem); }
  .eyebrow { font-size: 0.62rem; }
  .requirements { padding: 16px; }
  .stats dt { font-size: 0.56rem; }
  .section-head h2 { font-size: clamp(1.7rem, 7.5vw, 2.2rem); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
