/* ==========================================================================
   Jupiter Incident 2011 — deep-space signal archive
   ========================================================================== */

:root {
  --void: #050a10;
  --void-2: var(--void);
  --panel: #0a121c;
  --panel-2: var(--panel);
  --ink: #e9e3d7;
  --ink-2: rgba(233, 227, 215, 0.78);
  --muted: #8b9aa3;
  --faint: #6d7c87;
  --line: rgba(143, 184, 201, 0.16);
  --line-strong: rgba(143, 184, 201, 0.34);
  --amber: #f2a65a;
  --amber-bright: var(--amber);
  --rust: #c4553d;
  --rust-soft: #e08a78;
  --ice: #8fb8c9;
  --green: var(--ice);
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --display: system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --max: 1220px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  color: var(--ink);
  background-color: var(--void);
  background-image:
    radial-gradient(ellipse at 78% 4%, rgba(143, 184, 201, 0.085), transparent 36%),
    radial-gradient(ellipse at 8% 24%, rgba(196, 85, 61, 0.06), transparent 32%),
    linear-gradient(rgba(143, 184, 201, 0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 184, 201, 0.032) 1px, transparent 1px);
  background-size: auto, auto, 48px 48px, 48px 48px;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  background: radial-gradient(ellipse at center, transparent 52%, rgba(0, 0, 0, 0.34) 100%);
}

img, svg, canvas { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }

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

:focus-visible {
  outline: 1px solid var(--amber);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: 10px 14px;
  background: var(--amber);
  color: var(--void);
  font-family: var(--mono);
  font-size: 12px;
  text-decoration: none;
}

.skip:focus { left: 12px; top: 12px; }

/* ---------- top strip ---------- */
.topstrip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 31px;
  padding: 4px 24px;
  flex-wrap: wrap;
  row-gap: 2px;
  border-bottom: 1px solid var(--line);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topstrip__mid {
  color: var(--amber);
  opacity: 0.8;
}

/* ---------- header ---------- */
.site-head {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 17px 24px;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 10, 16, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-decoration: none;
}

.brand__mark {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  color: var(--ice);
}

.brand__type { display: grid; gap: 2px; min-width: 0; }

.brand__name {
  color: var(--ink);
  font-family: var(--display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.035em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand__sub {
  color: var(--amber);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  line-height: 1.3;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 9px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 0.16s ease, background 0.16s ease;
}

.site-nav a:hover { color: var(--ink); background: rgba(143, 184, 201, 0.05); }

.site-nav__contact {
  border: 1px solid var(--line-strong);
  color: var(--amber) !important;
}

.site-nav__contact:hover { border-color: var(--amber); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.nav-toggle__bars { display: grid; gap: 3px; }
.nav-toggle__bars i { display: block; width: 13px; height: 1px; background: var(--amber); }

/* ---------- left rail ---------- */
.signal-rail {
  display: none;
  position: fixed;
  left: 18px;
  top: 50%;
  z-index: 5;
  transform: translateY(-50%);
  writing-mode: vertical-rl;
  color: rgba(143, 184, 201, 0.3);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ---------- page shell ---------- */
.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 24px 96px;
}

.page-head {
  position: relative;
  max-width: 930px;
  padding: 4px 0 28px;
}

.page-head::before {
  content: "";
  position: absolute;
  right: -160px;
  top: -108px;
  width: 500px;
  height: 500px;
  border: 1px solid rgba(143, 184, 201, 0.075);
  border-radius: 50%;
  pointer-events: none;
}

.page-head::after {
  content: "";
  position: absolute;
  right: -58px;
  top: -6px;
  width: 296px;
  height: 296px;
  border: 1px solid rgba(196, 85, 61, 0.1);
  border-radius: 50%;
  pointer-events: none;
}

.page-head--compact { max-width: 820px; }

.kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  color: var(--amber);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 26px;
  height: 1px;
  flex: 0 0 26px;
  background: var(--amber);
}

h1 {
  max-width: 920px;
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(2.4rem, 4.9vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 0.94;
  text-transform: uppercase;
  text-wrap: balance;
}

.lede {
  max-width: 700px;
  margin: 20px 0 0;
  color: var(--ink-2);
  font-size: 1.02rem;
  line-height: 1.72;
}

.byline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 16px 0 0;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  line-height: 1.55;
  text-transform: uppercase;
}

.byline a {
  color: var(--amber);
  text-decoration: none;
  border-bottom: 1px solid rgba(242, 166, 90, 0.35);
}

.byline a:hover { border-bottom-color: var(--amber); }
.byline time { color: var(--muted); }

/* ---------- tool mount ---------- */
.tool-mount {
  position: relative;
  margin: 30px 0 0;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.38);
}

.tool-mount::before {
  content: "LIVE MODULE / CVR-01";
  position: absolute;
  top: -9px;
  left: 18px;
  z-index: 2;
  padding: 0 8px;
  background: var(--void);
  color: var(--amber);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
}

/* ---------- black box tool ---------- */
.bb { background: var(--panel); }

.bb__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px 14px;
  min-height: 33px;
  padding: 4px 14px;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--line);
  background: rgba(143, 184, 201, 0.035);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  line-height: 1.35;
  text-transform: uppercase;
}

.bb__status { display: inline-flex; align-items: center; gap: 8px; color: var(--ice); }

.bb__status i {
  display: block;
  width: 6px;
  height: 6px;
  background: var(--rust);
  box-shadow: 0 0 10px rgba(196, 85, 61, 0.6);
  animation: pulse 1.6s steps(2, end) infinite;
}

@keyframes pulse {
  0%, 45% { opacity: 1; }
  46%, 100% { opacity: 0.18; }
}

.bb__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
}

.bb__grid--showcase {
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
}

.bb__builder {
  padding: 28px 26px 24px;
  border-bottom: 1px solid var(--line);
}

.bb__builder .bb__lede { max-width: 760px; }

.bb__form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: start;
  gap: 18px;
  margin-top: 20px;
}

.bb__form-field { min-width: 0; }
.bb__form .bb__field { margin-top: 0; }

.bb__field-note {
  margin-top: 7px;
  max-width: 440px;
}

.bb__upload {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 43px;
  padding: 5px 7px;
  border: 1px solid var(--line-strong);
  background: var(--void);
}

.bb__upload input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.bb__upload-button {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 31px;
  padding: 0 11px;
  border: 1px solid rgba(242, 166, 90, 0.5);
  color: var(--amber);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
  cursor: pointer;
}

.bb__upload-button:hover { border-color: var(--amber); background: rgba(242, 166, 90, 0.08); }

.bb__thumb {
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  border: 1px solid var(--line-strong);
  object-fit: cover;
  filter: grayscale(1);
}

.bb__thumb[hidden] { display: none; }

.bb__upload-name {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bb__clear {
  flex: 0 0 auto;
  min-height: 29px;
  padding: 0 5px;
  border: 0;
  background: transparent;
  color: var(--rust-soft);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.bb__clear[hidden] { display: none; }

.bb__actions--form {
  margin-top: 23px;
  flex-wrap: nowrap;
}

.bb__controls {
  padding: 28px 26px 24px;
  border-right: 1px solid var(--line);
}

.bb__eyebrow {
  margin: 0;
  color: var(--amber);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.bb__title {
  margin: 8px 0 10px;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1.65rem, 2.7vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 0.98;
  text-transform: uppercase;
}

.bb__lede {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.62;
}

.bb__field { display: block; margin-top: 17px; }

.bb__field span {
  display: block;
  margin-bottom: 6px;
  color: var(--ice);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bb__field input,
.bb__field select {
  width: 100%;
  min-height: 43px;
  padding: 9px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: var(--void);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 16px;
  letter-spacing: 0.02em;
  outline: none;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.bb__field input:focus,
.bb__field select:focus {
  border-color: var(--amber);
  background: var(--void);
}

.bb__field select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 32px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--amber) 50%),
    linear-gradient(135deg, var(--amber) 50%, transparent 50%);
  background-position:
    calc(100% - 16px) 50%,
    calc(100% - 11px) 50%;
  background-size: 5px 5px, 5px 5px;
  background-repeat: no-repeat;
}

.bb__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.bb__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  padding: 0 15px;
  border: 1px solid transparent;
  border-radius: 0;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.btn--primary {
  background: var(--amber);
  color: var(--void);
}

.btn--primary:hover { background: var(--amber); filter: brightness(1.08); }

.btn--ghost {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--ink-2);
}

.btn--ghost:hover { border-color: var(--amber); color: var(--amber); }

.btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.bb__status-line {
  min-height: 14px;
  margin: 11px 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  line-height: 1.5;
}

.bb__demo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.bb__demo-title {
  margin: 4px 0 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.1;
  text-transform: uppercase;
}

.bb__play {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid rgba(196, 85, 61, 0.72);
  background: rgba(196, 85, 61, 0.08);
  color: var(--rust-soft);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bb__play:hover,
.bb__play.is-playing {
  border-color: var(--amber);
  background: rgba(196, 85, 61, 0.18);
  color: var(--amber);
}

.bb__note {
  margin: 9px 0 0;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.03em;
  line-height: 1.55;
}

.bb__spec {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 20px;
  border: 1px solid var(--line);
  background: var(--line);
}

.bb__spec div {
  min-width: 0;
  padding: 9px 8px;
  background: rgba(5, 10, 16, 0.84);
}

.bb__spec span {
  display: block;
  margin-bottom: 3px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.bb__spec strong {
  display: block;
  overflow: hidden;
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  overflow-wrap: anywhere;
}

.bb__preview {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 26px 22px;
  background-color: var(--void);
  background-image:
    radial-gradient(ellipse at center, rgba(143, 184, 201, 0.06), transparent 64%),
    linear-gradient(rgba(143, 184, 201, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(143, 184, 201, 0.035) 1px, transparent 1px);
  background-size: auto, 32px 32px, 32px 32px;
}

.bb__sample {
  min-width: 0;
  padding: 24px 24px 28px;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(ellipse at 20% 0%, rgba(143, 184, 201, 0.045), transparent 50%),
    var(--panel);
}

.bb__sample-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px 12px;
  flex-wrap: wrap;
  color: var(--amber);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-transform: uppercase;
}

.bb__sample-head span:last-child { color: var(--faint); }

.bb__video {
  position: relative;
  width: min(100%, 480px);
  aspect-ratio: 4 / 3;
  margin: 15px auto 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: var(--void);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.38);
}

.bb__video video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left center;
  background: var(--void);
}

.bb__sample-title {
  margin: 20px 0 8px;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.05;
  text-transform: uppercase;
}

.bb__sample-copy {
  max-width: 560px;
  margin: 0 0 15px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.65;
}

.bb__sample-credit {
  margin: 0 0 15px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  line-height: 1.55;
  text-transform: uppercase;
}

.text-link {
  color: var(--amber);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.text-link:hover { color: var(--ink); }

.bb__frame {
  position: relative;
  width: 100%;
  max-width: 386px;
  padding: 7px;
  border: 1px solid var(--line-strong);
  background: var(--void);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.5);
}

.bb__frame::before,
.bb__frame::after {
  content: "";
  position: absolute;
  width: 15px;
  height: 15px;
  pointer-events: none;
}

.bb__frame::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid var(--amber);
  border-left: 2px solid var(--amber);
}

.bb__frame::after {
  right: -1px;
  bottom: -1px;
  border-right: 2px solid var(--amber);
  border-bottom: 2px solid var(--amber);
}

.bb__frame canvas {
  width: 100%;
  height: auto;
  background: var(--void);
}

.bb__caption {
  margin: 10px 0 0;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ---------- prose ---------- */
.prose {
  max-width: 760px;
  margin: 58px auto 0;
  color: var(--ink-2);
  font-size: 1.01rem;
  line-height: 1.78;
}

.prose > :first-child { margin-top: 0; }

.prose h2 {
  margin: 48px 0 16px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1.65rem, 2.8vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-transform: uppercase;
}

.prose h3 {
  margin: 30px 0 8px;
  color: var(--amber);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.prose p { margin: 0 0 17px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 20px; }
.prose li { margin: 7px 0; }
.prose strong { color: var(--ink); font-weight: 700; }
.prose em { color: var(--ink-2); }
.prose a { color: var(--amber); text-decoration-color: rgba(242, 166, 90, 0.5); }
.prose a:hover { color: var(--ink); }

.prose blockquote {
  margin: 24px 0;
  padding: 2px 0 2px 16px;
  border-left: 2px solid var(--rust);
  color: var(--muted);
}

.prose blockquote p { margin: 0; }

.prose blockquote footer {
  margin-top: 8px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
}

.prose blockquote cite { font-style: normal; }

.prose code {
  padding: 2px 5px;
  background: var(--panel-2);
  color: var(--ice);
  font-family: var(--mono);
  font-size: 0.86em;
}

.prose hr {
  margin: 42px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.prose .note {
  margin: 24px 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: rgba(143, 184, 201, 0.035);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  line-height: 1.65;
}

.prose figure { margin: 28px 0; }

.prose figure img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  background: var(--void);
}

.prose figcaption {
  margin-top: 8px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
}

.prose table {
  display: block;
  width: 100%;
  margin: 24px 0;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 0.95rem;
  line-height: 1.55;
}

.prose th,
.prose td {
  min-width: 120px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.prose th {
  color: var(--amber);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.prose tbody tr:hover { background: rgba(143, 184, 201, 0.035); }

.fiction-banner {
  margin: 0 0 28px;
  padding: 15px 18px;
  border: 1px solid rgba(196, 85, 61, 0.45);
  border-left: 3px solid var(--rust);
  background: rgba(196, 85, 61, 0.08);
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  line-height: 1.65;
}

.fiction-banner strong { color: var(--amber); }
.fiction-banner--end { margin-top: 36px; }

/* ---------- FAQ ---------- */
.faq {
  max-width: 760px;
  margin: 58px auto 0;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.faq h2 {
  margin: 0 0 18px;
  color: var(--ink);
  font-family: var(--display);
  font-size: clamp(1.65rem, 2.8vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
  text-transform: uppercase;
}

.faq__list { border-top: 1px solid var(--line); }

.faq details { border-bottom: 1px solid var(--line); }

.faq summary {
  position: relative;
  padding: 17px 42px 17px 0;
  color: var(--ink);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.45;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+";
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--amber);
  font-family: var(--mono);
  font-size: 17px;
  font-weight: 400;
}

.faq details[open] summary::after { content: "−"; }

.faq details p {
  margin: 0;
  padding: 0 42px 20px 0;
  color: var(--muted);
  font-size: 0.94rem;
  line-height: 1.7;
}

/* ---------- footer ---------- */
.ad-slot {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 24px 28px;
}

.ad-slot__label {
  margin: 0 0 8px;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ad-slot__frame {
  min-height: 100px;
  overflow: hidden;
}

.site-foot {
  border-top: 1px solid var(--line);
  background: rgba(2, 5, 9, 0.72);
}

.site-foot__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.65fr) minmax(0, 0.8fr);
  gap: 22px 36px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 40px 24px 34px;
}

.site-foot__name {
  margin: 0;
  color: var(--ink);
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.site-foot__line {
  max-width: 560px;
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.6;
}

.site-foot__links {
  display: flex;
  flex-wrap: wrap;
  align-content: start;
  justify-content: flex-end;
  gap: 4px 14px;
}

.site-foot__links a {
  color: var(--ice);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-foot__links a:hover { color: var(--amber); }

.site-foot__guides {
  display: grid;
  align-content: start;
  gap: 5px;
}

.site-foot__guides p {
  margin: 0 0 3px;
  color: var(--amber);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.site-foot__guides a {
  color: var(--ice);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  line-height: 1.45;
  text-decoration: none;
  text-transform: uppercase;
}

.site-foot__guides a:hover { color: var(--amber); }

.site-foot__meta {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  line-height: 1.6;
  text-transform: uppercase;
}

/* ---------- responsive ---------- */
@media (min-width: 1400px) {
  .signal-rail { display: block; }
}

@media (max-width: 960px) {
  .bb__grid { grid-template-columns: 1fr; }
  .bb__form { grid-template-columns: 1fr 1fr; }
  .bb__actions--form { grid-column: 1 / -1; margin-top: 0; }
  .bb__sample { border-right: 0; border-bottom: 1px solid var(--line); }
  .bb__controls {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .bb__preview { padding: 22px 18px 25px; }
  .page-head::before,
  .page-head::after { display: none; }
}

@media (max-width: 820px) {
  .topstrip__mid { display: none; }
  .site-head { position: relative; padding: 14px 18px; }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 18px 14px;
    border-bottom: 1px solid var(--line-strong);
    background: rgba(5, 10, 16, 0.97);
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { min-height: 44px; padding: 0 2px; border-bottom: 1px solid var(--line); }
  .site-nav__contact { margin-top: 8px; border: 1px solid var(--line-strong); padding: 0 12px; }
  .page { padding: 36px 18px 70px; }
  .ad-slot { padding: 0 18px 24px; }
  h1 { font-size: clamp(2rem, 9vw, 3.2rem); }
  .lede { font-size: 0.98rem; }
  .tool-mount { margin-top: 24px; }
  .bb__builder { padding: 22px 16px 20px; }
  .bb__form { grid-template-columns: 1fr; gap: 14px; }
  .bb__actions--form { grid-column: auto; }
  .bb__controls { padding: 22px 16px 20px; }
  .bb__sample { padding: 20px 16px 22px; }
  .bb__preview { padding: 18px 12px 22px; }
  .bb__frame { max-width: 100%; }
  .bb__bar { font-size: 12px; letter-spacing: 0.06em; }
  .bb__bar span:last-child { display: none; }
  .prose, .faq { margin-top: 42px; }
  .prose { font-size: 0.98rem; }
  .site-foot__inner { grid-template-columns: 1fr; padding: 32px 18px 28px; }
  .site-foot__links { justify-content: flex-start; }
}

@media (max-width: 520px) {
  .topstrip { padding: 6px 18px; font-size: 12px; letter-spacing: 0.06em; }
  .brand__name { font-size: 14px; }
  .brand__sub { font-size: 12px; letter-spacing: 0.06em; }
  .brand__mark { width: 36px; height: 36px; flex-basis: 36px; }
  .bb__row { grid-template-columns: 1fr; }
  .bb__actions .btn { flex: 1 1 auto; }
  .bb__actions--form { flex-direction: column; }
  .bb__actions--form .btn { width: 100%; }
  .bb__demo { align-items: flex-start; flex-direction: column; }
  .bb__play { width: 100%; }
}

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