/* ==========================================================
   JOEL RUNYON — PRODUCTION KINETIC FIELD MANUAL STYLESHEET
   Self-hosted: Bebas Neue · Inter · JetBrains Mono
   ========================================================== */

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

:root {
  --bg: #08090b;
  --surface: rgba(12, 14, 18, 0.92);
  --surface-solid: #0d0f13;
  --surface-hover: rgba(255, 255, 255, 0.045);
  --ink: #ffffff;
  --ink-soft: #c5cdd6;
  --muted: #84909c;
  --line: rgba(255, 255, 255, 0.13);
  --line-strong: rgba(255, 255, 255, 0.28);
  --display: 'Bebas Neue', 'Helvetica Neue', Arial, sans-serif;
  --body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}

html {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body { min-height: 100%; background: var(--bg); color: var(--ink); overflow-x: clip; }

.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: -9999px; top: 8px; z-index: 200;
  background: #fff; color: #08090b; padding: 10px 16px;
  font-family: var(--mono); font-size: 11px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { left: 12px; }

/* Authentic Official IMPOSSIBLE® Logo Artwork */
.imp-brand-link {
  display: inline-flex; align-items: center; text-decoration: none;
  opacity: 0.92; transition: opacity 90ms linear;
}
.imp-brand-link:hover { opacity: 1; }
.imp-brand-img {
  display: block; height: 19px; width: auto;
  filter: brightness(0) invert(1);
}
.imp-brand-img.hero-scale { height: clamp(36px, 4.5vw, 56px); }
.imp-brand-img.footer-scale { height: 16px; opacity: 0.85; }

/* Proper Trademark ® Superscript Treatment */
sup.reg {
  font-family: var(--body);
  font-size: 0.36em;
  font-weight: 500;
  vertical-align: super;
  position: relative;
  top: -0.22em;
  margin-left: 0.05em;
  letter-spacing: 0;
  line-height: 0;
}
.prose sup.reg, .sheet-lead sup.reg, .rail-stamp sup.reg, .sheet-bar sup.reg, .links-role sup.reg {
  font-size: 0.62em;
  top: -0.1em;
}

/* Subtle Ambient Atmospheric Backdrop + 72px Technical Field Manual Grid */
.ambient-stack { position: fixed; inset: 72px 0 0 0; z-index: 0; overflow: hidden; pointer-events: none; }
.ambient-img {
  position: absolute; inset: -8px; width: calc(100% + 16px); height: calc(100% + 16px); object-fit: cover;
  opacity: 0; filter: grayscale(0.45) contrast(1.06) brightness(0.23) blur(2px);
  transition: opacity 70ms linear; will-change: opacity;
}
.ambient-img.active { opacity: 1; }
.ambient-grid {
  position: fixed; inset: 72px 0 0 0; z-index: 1; pointer-events: none;
  background:
    radial-gradient(circle at 74% 38%, rgba(8,9,11,0.18), rgba(8,9,11,0.9) 74%),
    linear-gradient(rgba(255,255,255,0.032) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.032) 1px, transparent 1px);
  background-size: 100% 100%, 72px 72px, 72px 72px;
}

/* Site-Wide Top Field Notes Bar — Above Main Header, Centered & Collapsible/Expandable */
.top-dispatch {
  position: relative; z-index: 45;
  background: #0d1015; border-bottom: 1px solid var(--line-strong);
}
.top-dispatch-inner {
  position: relative;
  max-width: 1400px; margin: 0 auto; padding: 10px clamp(64px, 6vw, 96px);
  display: flex; align-items: center; justify-content: center; gap: 20px; flex-wrap: wrap;
}
.top-dispatch.is-collapsed .top-dispatch-inner { display: none; }
.dispatch-reopen {
  display: none; width: 100%; background: #0b0d11; border: 0; color: var(--muted);
  padding: 8px 16px; cursor: pointer;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.12em; text-transform: uppercase;
  align-items: center; justify-content: center; gap: 8px;
  transition: color 80ms linear, background 80ms linear;
}
.dispatch-reopen:hover { color: #fff; background: #12151c; }
.dispatch-reopen .reopen-badge {
  background: #fff; color: #08090b; padding: 2px 6px 1px;
  font-family: var(--display); font-size: 13px; letter-spacing: 0.08em; line-height: 1;
}
.top-dispatch.is-collapsed .dispatch-reopen { display: flex; }

.dispatch-copy {
  display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap;
  font-family: var(--body); font-size: 14.5px; line-height: 1.35; color: var(--ink-soft);
  text-align: center;
}
.dispatch-tag {
  background: #fff; color: #08090b; padding: 5px 10px 4px;
  font-family: var(--display); font-size: 19px; line-height: 1; letter-spacing: 0.08em; text-transform: uppercase;
}
.dispatch-copy strong { color: #fff; font-weight: 600; }
.top-optin-form { display: flex; align-items: center; gap: 8px; flex: 0 1 380px; }
.top-optin-form input {
  flex: 1; min-width: 190px; height: 42px; background: #08090b; border: 1px solid var(--line-strong); color: #fff;
  padding: 0 13px; font-family: var(--body); font-size: 14px; outline: none;
}
.top-optin-form input:focus { border-color: #fff; }
.top-optin-form button[type="submit"] {
  height: 42px; background: #fff; color: #08090b; border: 0; padding: 0 18px; cursor: pointer;
  font-family: var(--display); font-size: 20px; letter-spacing: 0.08em; text-transform: uppercase;
  white-space: nowrap; transition: background 80ms linear;
}
.top-optin-form button[type="submit"]:hover { background: #dce2e8; }
.dispatch-collapse {
  position: absolute; right: clamp(12px, 2vw, 24px); top: 50%; transform: translateY(-50%);
  background: none; border: 1px solid var(--line); color: var(--muted);
  height: 28px; padding: 0 9px; display: inline-flex; align-items: center; gap: 5px;
  cursor: pointer; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase;
  transition: color 80ms linear, border-color 80ms linear;
}
.dispatch-collapse:hover { color: #fff; border-color: var(--line-strong); }

/* Global Header — Brand left, Nav + ⌘K cleanly right-aligned together */
.site-header {
  position: sticky; top: 0; z-index: 40;
  height: 72px; background: #08090b; border-bottom: 1px solid var(--line);
}
.header-inner {
  max-width: 1400px; height: 100%; margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 52px);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand-lockup { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.jr-wordmark {
  font-family: var(--display); font-size: 30px; letter-spacing: 0.06em; line-height: 1;
  color: #fff; text-decoration: none;
}
.brand-sep { width: 1px; height: 20px; background: var(--line); }

.header-right {
  margin-left: auto;
  display: flex; align-items: center; gap: 24px;
}
.site-nav { display: flex; align-items: center; gap: 20px; }
.site-nav a {
  font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted); text-decoration: none;
  padding: 4px 0; border-bottom: 1px solid transparent;
  transition: color 80ms linear, border-color 80ms linear;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: #fff; border-bottom-color: #fff; }
.header-actions { display: flex; align-items: center; gap: 10px; }

.cmd-trigger {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--surface-solid); border: 1px solid rgba(255,255,255,0.2); color: #fff;
  padding: 8px 13px; cursor: pointer; font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.08em; text-transform: uppercase; text-decoration: none;
  transition: background 80ms linear, color 80ms linear, border-color 80ms linear;
}
.cmd-trigger:hover { background: #fff; color: #08090b; border-color: #fff; }
.kbd {
  background: rgba(255,255,255,0.1); padding: 2px 5px; font-size: 9.5px;
  border: 1px solid rgba(255,255,255,0.18);
}
.cmd-trigger:hover .kbd { background: rgba(8,9,11,0.1); border-color: rgba(8,9,11,0.25); }

/* ==========================================================
   HOMEPAGE KINETIC FIELD MANUAL STAGE
   ========================================================== */
@property --cut {
  syntax: '<percentage>';
  inherits: false;
  initial-value: 0%;
}

body.page-home { min-height: 100dvh; display: grid; grid-template-rows: auto 72px 1fr auto; }

.stage-wrap {
  position: relative; z-index: 2;
  max-width: 1400px; width: 100%; margin: 0 auto;
  padding: 14px clamp(20px, 4vw, 52px) 18px;
  display: grid; grid-template-columns: 1.08fr 0.92fr; gap: clamp(28px, 4vw, 64px);
  align-items: center;
}
.type-index { display: flex; flex-direction: column; }
.index-intro {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 12px; display: flex; align-items: center; gap: 10px;
}
.index-intro::before { content: ''; width: 18px; height: 1px; background: rgba(255,255,255,0.6); }

.role-row {
  position: relative; display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  padding: 5px 0; border-bottom: 1px solid var(--line);
  background: none; border-left: 0; border-right: 0; border-top: 0;
  color: rgba(255,255,255,0.46); cursor: pointer; text-align: left;
  transition: color 70ms linear, padding-left 90ms ease-out, border-color 70ms linear;
}
.role-row:first-of-type { border-top: 1px solid var(--line); }
.role-row:hover, .role-row.active {
  color: #fff; padding-left: 16px; border-bottom-color: rgba(255,255,255,0.48);
}
.role-row.active::before {
  content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 4px; height: 62%; background: #fff;
}

.role-word {
  position: relative; display: inline-block;
  font-family: var(--display); font-weight: 400;
  font-size: clamp(58px, 6.4vw, 102px);
  line-height: 0.9; letter-spacing: 0.04em; text-transform: uppercase;
  --cut: 0%;
  -webkit-mask-image: linear-gradient(#000 0 0), linear-gradient(#000 0 0);
  -webkit-mask-position: 0 0, 0 42.2%;
  -webkit-mask-size: 100% 100%, var(--cut) 5.2%;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-composite: xor;
  mask-image: linear-gradient(#000 0 0), linear-gradient(#000 0 0);
  mask-position: 0 0, 0 42.2%;
  mask-size: 100% 100%, var(--cut) 5.2%;
  mask-repeat: no-repeat;
  mask-composite: exclude;
  transition: --cut 460ms cubic-bezier(.22,1,.36,1);
}
.role-row:hover .role-word,
.role-row:focus-visible .role-word,
.role-row.kbd-strike .role-word { --cut: 100%; }

.role-meta {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); white-space: nowrap;
}
.role-row.active .role-meta { color: #fff; font-weight: 600; }

.intents { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; }
.intent-chip {
  font-family: var(--mono); font-size: 10px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-soft); background: var(--surface); border: 1px solid var(--line);
  padding: 8px 12px; cursor: pointer; text-decoration: none;
  transition: background 70ms linear, color 70ms linear, border-color 70ms linear;
}
.intent-chip:hover { background: #fff; color: #08090b; border-color: #fff; }

.card-wrap { perspective: 1100px; display: flex; justify-content: center; }
.dossier-card {
  width: 100%; max-width: 490px; background: var(--surface);
  border: 1px solid var(--line-strong); overflow: hidden;
  transform-style: preserve-3d; transition: transform 140ms ease-out;
  box-shadow: 0 32px 84px rgba(0,0,0,0.78);
}
.dossier-head {
  padding: 12px 18px; border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
}
.dossier-head strong { color: #fff; }
.dossier-photo { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: #08090b; border-bottom: 1px solid var(--line); }
.dossier-photo img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 70ms linear; will-change: opacity;
}
.dossier-photo img.active { opacity: 1; }
.dossier-body {
  padding: 20px 22px 22px;
  display: flex; flex-direction: column; min-height: 222px;
}
.dossier-title {
  font-family: var(--display); font-size: clamp(27px, 2.3vw, 32px); letter-spacing: 0.03em; text-transform: uppercase;
  line-height: 0.98; margin-bottom: 10px;
}
.dossier-desc { font-size: 14.5px; line-height: 1.54; color: var(--ink-soft); margin-bottom: 18px; }
.dossier-action {
  margin-top: auto;
  display: flex; align-items: center; justify-content: space-between;
  background: #fff; color: #08090b; text-decoration: none; padding: 11px 18px 9px;
  font-family: var(--display); font-size: 23px; letter-spacing: 0.08em; text-transform: uppercase;
  transition: background 70ms linear;
}
.dossier-action:hover { background: #dce2e8; }

.home-foot {
  position: relative; z-index: 2; background: #08090b; border-top: 1px solid var(--line);
  padding: 13px clamp(20px, 4vw, 52px);
}
.home-foot-inner {
  max-width: 1400px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted);
}
.foot-subtle { color: var(--muted); opacity: 0.72; text-decoration: none; transition: color 80ms linear, opacity 80ms linear; }
.foot-subtle:hover { color: #fff; opacity: 1; }
.home-foot-right { display: inline-flex; align-items: center; gap: 10px; }
.sfx-toggle {
  background: none; border: 1px solid var(--line); color: var(--muted);
  padding: 3px 8px; cursor: pointer;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase;
  transition: color 80ms linear, border-color 80ms linear, background 80ms linear;
}
.sfx-toggle:hover { color: #fff; border-color: rgba(255,255,255,0.45); }
.sfx-toggle[aria-pressed="true"] { color: #08090b; background: #fff; border-color: #fff; font-weight: 700; }
.desktop-hint { display: inline; }
@media (hover: none), (max-width: 920px) { .desktop-hint { display: none; } }

/* ==========================================================
   INTERIOR FIELD MANUAL LAYOUT
   ========================================================== */
.manual-shell {
  position: relative; z-index: 2;
  max-width: 1400px; margin: 0 auto;
  padding: clamp(28px, 4vw, 48px) clamp(20px, 4vw, 52px) 72px;
  display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.manual-shell > * { min-width: 0; }

.manual-rail {
  position: sticky; top: 104px;
  display: flex; flex-direction: column; gap: 22px;
}
.rail-stamp {
  border-top: 1px solid var(--line-strong); padding-top: 12px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); line-height: 1.7;
}
.rail-stamp strong { display: block; color: #fff; font-size: 11px; margin-bottom: 2px; }

.rail-nav { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.rail-nav a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 10px;
  padding: 11px 0; border-bottom: 1px solid var(--line);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
  transition: color 80ms linear, padding-left 90ms ease-out;
}
.rail-nav a:hover, .rail-nav a.is-current { color: #fff; padding-left: 8px; border-bottom-color: rgba(255,255,255,0.45); }
.rail-nav a span { font-size: 10px; opacity: 0.55; }

.rail-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-soft); text-decoration: none; padding: 9px 12px;
  border: 1px solid var(--line); background: var(--surface);
  transition: border-color 80ms linear, color 80ms linear;
}
.rail-back:hover { border-color: #fff; color: #fff; }

.dossier-sheet {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  box-shadow: 0 32px 84px rgba(0,0,0,0.65);
  overflow: hidden;
}
.sheet-bar {
  padding: 13px 24px; border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
}
.sheet-bar strong { color: #fff; }

.sheet-media {
  position: relative; aspect-ratio: 21 / 9; overflow: hidden;
  border-bottom: 1px solid var(--line); background: #08090b;
}
.sheet-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sheet-media-caption {
  position: absolute; right: 16px; bottom: 14px;
  background: rgba(8,9,11,0.82); border: 1px solid var(--line);
  padding: 5px 10px; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-soft);
}

/* Split Portrait Hero for Vertical Photos (Advising — prevents face clipping!) */
.sheet-split-hero {
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  border-bottom: 1px solid var(--line); align-items: stretch;
}
.sheet-split-copy {
  padding: clamp(28px, 4vw, 48px);
  display: flex; flex-direction: column; justify-content: center;
  border-right: 1px solid var(--line);
}
.sheet-split-photo {
  position: relative; min-height: 360px; max-height: 440px; overflow: hidden; background: #08090b;
}
.sheet-split-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block;
}

.sheet-block {
  padding: clamp(28px, 4vw, 44px) clamp(24px, 4vw, 48px);
  border-bottom: 1px solid var(--line);
}
.sheet-block:last-child { border-bottom: 0; }

.sheet-kicker {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 10px; display: inline-flex; align-items: center; gap: 10px;
}
.sheet-kicker::before { content: ''; width: 16px; height: 1px; background: rgba(255,255,255,0.5); }

.sheet-title {
  font-family: var(--display); font-weight: 400; font-size: clamp(46px, 5vw, 68px);
  line-height: 0.94; letter-spacing: 0.04em; text-transform: uppercase; color: #fff;
}
.sheet-lead {
  margin-top: 14px; font-size: 16.5px; line-height: 1.62; color: var(--ink-soft); max-width: 60ch;
}
.sheet-lead strong { color: #fff; font-weight: 600; }

.telemetry-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line); background: rgba(255,255,255,0.015);
}
.telemetry-cell { padding: 18px 22px; border-right: 1px solid var(--line); }
.telemetry-cell:last-child { border-right: 0; }
.telemetry-val { font-family: var(--display); font-size: 32px; line-height: 1; letter-spacing: 0.04em; color: #fff; }
.telemetry-lbl {
  margin-top: 4px; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted);
}

.section-head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-bottom: 18px;
}
.section-title { font-family: var(--display); font-size: 34px; line-height: 1; letter-spacing: 0.04em; text-transform: uppercase; color: #fff; }
.section-code { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

.prose { max-width: 64ch; }
.prose p { font-size: 15.5px; line-height: 1.74; color: var(--ink-soft); margin-bottom: 16px; }
.prose p:last-child { margin-bottom: 0; }
.prose p strong { color: #fff; font-weight: 600; }
.prose a { color: #fff; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(255,255,255,0.35); }
.prose a:hover { text-decoration-color: #fff; }

.field-quote {
  margin: 22px 0; padding: 18px 22px;
  border-left: 2px solid #fff; background: rgba(255,255,255,0.03);
}
.field-quote p { font-size: 16px; line-height: 1.6; color: #fff; margin-bottom: 8px; }
.field-quote cite {
  font-style: normal; font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted);
}

.dossier-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  border-top: 1px solid var(--line); border-left: 1px solid var(--line);
  margin-top: 20px;
}
.dossier-item {
  padding: 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  display: flex; flex-direction: column; justify-content: space-between; gap: 12px;
  text-decoration: none; color: #fff; background: transparent;
  transition: background 80ms linear;
}
.dossier-item:hover { background: var(--surface-hover); }
.item-tag { font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.dossier-item h3 { font-family: var(--display); font-size: 28px; line-height: 1; letter-spacing: 0.04em; text-transform: uppercase; margin-top: 6px; }
.dossier-item p { font-size: 13.5px; line-height: 1.55; color: var(--ink-soft); }
.item-go { font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: #fff; opacity: 0.8; }
.dossier-item:hover .item-go { opacity: 1; }

.video-box {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden;
  border: 1px solid var(--line-strong); background: #000; margin: 22px 0;
  cursor: pointer; display: flex; align-items: center; justify-content: center;
}
.video-box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0.55; transition: opacity 90ms linear; }
.video-box:hover img { opacity: 0.72; }
.play-pill {
  position: relative; z-index: 2; display: inline-flex; align-items: center; gap: 12px;
  background: #fff; color: #08090b; padding: 11px 20px 9px; border: 0; cursor: pointer;
  font-family: var(--display); font-size: 22px; letter-spacing: 0.08em; text-transform: uppercase;
}
.video-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.btn-quiet {
  display: inline-flex; align-items: center; gap: 12px;
  background: #fff; color: #08090b; text-decoration: none; border: 0; cursor: pointer;
  font-family: var(--display); font-size: 22px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 11px 22px 9px; transition: background 80ms linear;
}
.btn-quiet:hover { background: #dce2e8; }

.dispatch-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
.dispatch-form { display: flex; gap: 8px; }
.dispatch-form input {
  flex: 1; background: #08090b; border: 1px solid var(--line-strong); color: #fff;
  padding: 11px 14px; font-family: var(--body); font-size: 14px; outline: none;
}
.dispatch-form input:focus { border-color: #fff; }
.dispatch-form button {
  background: #fff; color: #08090b; border: 0; padding: 11px 16px; cursor: pointer;
  font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
}

/* Contact Form & 5 Topic Pills */
.topic-pills { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 22px 0 14px; }
.topic-pill {
  background: #08090b; border: 1px solid var(--line); color: var(--ink-soft);
  padding: 12px 10px; cursor: pointer; text-align: left;
  font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.06em; text-transform: uppercase;
  transition: border-color 80ms linear, background 80ms linear, color 80ms linear;
}
.topic-pill strong {
  display: block; font-family: var(--display); font-size: 20px; letter-spacing: 0.03em;
  color: #fff; margin-bottom: 3px; line-height: 1; white-space: nowrap;
}
.topic-pill:hover { border-color: rgba(255,255,255,0.45); }
.topic-pill.active { background: #fff; color: #08090b; border-color: #fff; }
.topic-pill.active strong { color: #08090b; }
.topic-hint {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.06em; color: var(--muted);
  padding: 10px 12px; border-left: 2px solid var(--line-strong); background: rgba(255,255,255,0.025);
  margin-bottom: 20px;
}
.contact-form { display: flex; flex-direction: column; gap: 16px; max-width: 680px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-group { display: flex; flex-direction: column; gap: 6px; }
.field-group label {
  font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted);
}
.field-group input, .field-group select, .field-group textarea {
  width: 100%; background: #08090b; border: 1px solid var(--line-strong); color: #fff;
  padding: 12px 14px; font-family: var(--body); font-size: 14.5px; outline: none;
}
.field-group input:focus, .field-group select:focus, .field-group textarea:focus { border-color: #fff; }
.field-group textarea { min-height: 140px; resize: vertical; }
.form-submit-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.form-meta-note {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted);
}

/* Global Footer */
.site-footer {
  position: relative; z-index: 2;
  background: #08090b; padding: 28px 0; border-top: 1px solid var(--line);
}
.footer-inner {
  max-width: 1400px; margin: 0 auto; padding: 0 clamp(20px, 4vw, 52px);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 18px;
}
.footer-brand { display: flex; align-items: center; gap: 16px; }
.footer-copy { font-family: var(--mono); font-size: 10px; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--muted); text-decoration: none;
}
.footer-links a:hover { color: #fff; }

/* Command Palette & Exit-Intent Modals */
.palette-backdrop, .exit-backdrop {
  position: fixed; inset: 0; z-index: 120; background: rgba(5,6,8,0.84); backdrop-filter: blur(8px);
  display: none; align-items: flex-start; justify-content: center; padding: 14vh 20px 20px;
}
.exit-backdrop { align-items: center; padding-top: 20px; }
.palette-backdrop.open, .exit-backdrop.open { display: flex; }

.palette {
  width: min(560px, 100%); background: #0d0f13; border: 1px solid var(--line-strong);
  box-shadow: 0 32px 80px rgba(0,0,0,0.85); overflow: hidden;
}
.palette input {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--line);
  color: #fff; padding: 16px 20px; font-family: var(--body); font-size: 15px; outline: none;
}
.palette-list { max-height: 320px; overflow-y: auto; }
.palette-item {
  width: 100%; background: none; border: 0; border-bottom: 1px solid rgba(255,255,255,0.06);
  color: #e4ebf2; padding: 13px 20px; display: flex; justify-content: space-between; align-items: center;
  cursor: pointer; text-align: left; font-family: var(--body); font-size: 14px;
}
.palette-item:hover { background: #fff; color: #08090b; }
.palette-item span { font-family: var(--mono); font-size: 10px; text-transform: uppercase; opacity: 0.6; }

.exit-modal {
  width: min(480px, 100%); background: #0d0f13; border: 1px solid var(--line-strong);
  box-shadow: 0 36px 90px rgba(0,0,0,0.85); overflow: hidden;
}
.exit-bar {
  padding: 12px 18px; border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.exit-bar strong { color: #fff; }
.exit-close { background: none; border: 0; color: var(--muted); font-size: 16px; cursor: pointer; padding: 2px 6px; }
.exit-close:hover { color: #fff; }
.exit-body { padding: 26px 24px 28px; }
.exit-title {
  font-family: var(--display); font-size: 46px; line-height: 0.92; letter-spacing: 0.04em;
  text-transform: uppercase; color: #fff; margin-bottom: 10px;
}
.exit-desc { font-size: 14.5px; line-height: 1.58; color: var(--ink-soft); margin-bottom: 20px; }
.exit-form { display: flex; flex-direction: column; gap: 10px; }
.exit-form input {
  width: 100%; background: #08090b; border: 1px solid var(--line-strong); color: #fff;
  padding: 12px 14px; font-family: var(--body); font-size: 14px; outline: none;
}
.exit-form input:focus { border-color: #fff; }
.exit-form button {
  background: #fff; color: #08090b; border: 0; padding: 13px 16px; cursor: pointer;
  font-family: var(--display); font-size: 24px; letter-spacing: 0.08em; text-transform: uppercase;
  transition: background 80ms linear;
}
.exit-form button:hover { background: #dce2e8; }
.exit-note { margin-top: 12px; font-family: var(--mono); font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

.toast {
  position: fixed; top: 84px; left: 50%; transform: translateX(-50%);
  z-index: 130; background: #fff; color: #08090b; padding: 8px 14px;
  font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  opacity: 0; pointer-events: none; transition: opacity 90ms linear;
}
.toast.show { opacity: 1; }

/* Mobile Menu Toggle & Drawer */
.mobile-menu-btn {
  display: none; align-items: center; gap: 8px;
  background: var(--surface-solid); border: 1px solid rgba(255,255,255,0.22); color: #fff;
  padding: 9px 14px; min-height: 40px; cursor: pointer; font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.mobile-drawer {
  position: fixed; inset: 72px 0 0 0; z-index: 95;
  background: rgba(8, 9, 11, 0.98); backdrop-filter: blur(12px);
  display: none; flex-direction: column; padding: 24px 20px; gap: 4px;
  border-top: 1px solid var(--line); overflow-y: auto;
}
.mobile-drawer.open { display: flex; }
.mobile-drawer a {
  font-family: var(--display); font-size: 40px; line-height: 1.08; letter-spacing: 0.05em;
  text-transform: uppercase; color: #fff; text-decoration: none;
  padding: 10px 0; border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: baseline;
}
.mobile-drawer a span { font-family: var(--mono); font-size: 11px; color: var(--muted); }

/* Mobile Responsive Pass */
.role-row.mobile-only-role { display: none; }

@media (max-width: 960px) {
  .header-inner { gap: 12px; }
  .jr-wordmark { font-size: 25px; }
  .imp-brand-img { height: 15px; }
  .brand-lockup { gap: 12px; }
  .site-nav { display: none; }
  .mobile-menu-btn { display: inline-flex; }
  .header-actions .cmd-trigger { display: none; }

  .top-dispatch-inner { padding: 12px 16px; gap: 10px; justify-content: flex-start; }
  .dispatch-copy {
    width: 100%; padding-right: 66px;
    font-size: 13px; gap: 8px; text-align: left; justify-content: flex-start;
  }
  .dispatch-tag { font-size: 17px; padding: 4px 8px 3px; }
  .dispatch-collapse { top: 12px; right: 16px; transform: none; }
  .top-optin-form { flex: 1 1 100%; width: 100%; }
  .top-optin-form input { flex: 1 1 auto; min-width: 0; font-size: 14px; height: 42px; padding: 0 12px; }
  .top-optin-form button[type="submit"] { flex: 0 0 auto; height: 42px; padding: 0 16px; font-size: 19px; }
  .dispatch-reopen { padding: 9px 14px; font-size: 9.5px; letter-spacing: 0.09em; }

  /* Mobile Homepage */
  .stage-wrap {
    grid-template-columns: minmax(0, 1fr); padding: 14px 16px 24px; gap: 14px; align-items: start;
  }
  .stage-wrap > * { min-width: 0; max-width: 100%; }
  .index-intro { margin-bottom: 8px; }
  #roleList {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; max-width: 100%;
  }
  .role-row, .role-row:first-of-type {
    display: flex; width: 100%; justify-content: center; border: 1px solid var(--line); padding: 8px 6px !important;
    background: var(--surface); gap: 6px; align-items: center;
  }
  .role-row.mobile-only-role { display: flex; }
  .role-row.active { background: #fff; color: #08090b; border-color: #fff; }
  .role-row.active::before { display: none; }
  .role-word { font-size: clamp(20px, 5.4vw, 24px); line-height: 1; -webkit-mask-image: none; mask-image: none; }
  .role-meta, .intents { display: none; }
  .dossier-card { max-width: 100%; }
  .dossier-body { padding: 16px 16px 18px; min-height: 196px; }
  .dossier-title { font-size: 27px; }
  .dossier-desc { font-size: 14px; margin-bottom: 14px; }
  .dossier-action { font-size: 20px; padding: 10px 14px 9px; }
  .home-foot { padding: 12px 16px; }
  .home-foot-inner { font-size: 9px; }

  /* Mobile Interiors + Sticky TOC */
  .manual-shell { grid-template-columns: minmax(0, 1fr); padding: 0 16px 56px; gap: 14px; }
  .manual-rail {
    position: sticky; top: 72px; z-index: 30;
    margin: 0 -16px; padding: 10px 16px;
    background: rgba(8, 9, 11, 0.94); backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line); gap: 0;
  }
  .rail-stamp, .rail-back { display: none; }
  .rail-nav { flex-direction: row; overflow-x: auto; gap: 6px; border-top: 0; padding: 0; scrollbar-width: none; }
  .rail-nav::-webkit-scrollbar { display: none; }
  .rail-nav a {
    flex: 0 0 auto; border: 1px solid var(--line); padding: 9px 13px !important;
    background: var(--surface); font-size: 10px; min-height: 38px;
  }
  .rail-nav a.is-current { border-color: #fff; background: #fff; color: #08090b; }
  .rail-nav a span { display: none; }

  .sheet-split-hero { grid-template-columns: 1fr; }
  .sheet-split-copy { border-right: 0; border-bottom: 1px solid var(--line); order: 2; }
  .sheet-split-photo { min-height: 300px; max-height: 360px; order: 1; }
  .sheet-bar { padding: 10px 16px; font-size: 9.5px; }
  .sheet-media { aspect-ratio: 16 / 10; }
  .sheet-block { padding: 24px 18px; }
  .telemetry-row { grid-template-columns: repeat(2, 1fr); }
  .telemetry-cell { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .telemetry-cell:nth-child(2n) { border-right: 0; }
  .telemetry-val { font-size: 28px; }
  .topic-pills { grid-template-columns: repeat(2, 1fr); }
  .form-row-2, .dispatch-row { grid-template-columns: 1fr; gap: 14px; }
  .dispatch-form { flex-direction: column; }
  .dispatch-form button { width: 100%; padding: 12px; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
