/* ════════════════════════════════════════════════════════════════
   GEOSINT HQ · shared site chrome
   Extracted verbatim from the landing page so every page reads as one
   site. Blue (#36a6ff) is identity chrome only. The four tier colors
   are load-bearing information color; never decorative.
   ════════════════════════════════════════════════════════════════ */

:root {
  color-scheme: dark;
  /* ── Identity chrome: blue-on-black ── */
  --bg: #0a0f14;
  --panel: #0e151d;
  --panel-deep: #0b1118;
  --ink: #e7eef5;
  --ink-2: #bdccd9;
  --dim: #6c7f8f;

  --blue: #36a6ff;            /* identity blue · chrome, wordmark, links, cursor */
  --blue-glow: #74c4ff;
  --blue-line: rgba(54, 166, 255, 0.28);
  --blue-line-soft: rgba(54, 166, 255, 0.16);
  --blue-fill: rgba(54, 166, 255, 0.07);

  /* ── Tier colors: INFORMATION · do not blue-shift, do not decorate ── */
  --t-red:   #e0564a;   /* BREAKING   */
  --t-amber: #e8b24a;   /* REPORTED   */
  --t-green: #3ddc84;   /* CONFIRMED  */
  --t-cyan:  #58b0c0;   /* ASSESSMENT */
  --t-violet: #8b7fd8;  /* DOSSIERS   */

  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  --wrap: 1080px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overflow-x: clip; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── Quiet background chrome ── */
.bg-grid, .bg-vignette { position: fixed; inset: 0; pointer-events: none; }
.bg-grid {
  z-index: 0;
  background-image:
    linear-gradient(var(--blue-line-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--blue-line-soft) 1px, transparent 1px);
  background-size: 52px 52px;
  opacity: 0.5;
  -webkit-mask-image: radial-gradient(ellipse 120% 90% at 50% 0%, #000 30%, transparent 78%);
  mask-image: radial-gradient(ellipse 120% 90% at 50% 0%, #000 30%, transparent 78%);
}
.bg-vignette {
  z-index: 2;
  background: radial-gradient(ellipse 120% 100% at 50% 38%, transparent 56%, rgba(0,0,0,0.5) 100%);
}

main { position: relative; z-index: 1; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
section { padding: 64px 0; }

a { color: var(--blue); text-decoration: none; }

/* ── Mono labels + section index ── */
.label {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--blue);
}
.label .n { color: var(--blue); opacity: 0.65; }
.stamp {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  color: var(--dim);
  text-transform: uppercase;
  white-space: nowrap;
}

/* ── Corner bracket reticles ── */
.reticle { position: relative; }
.reticle > .corner {
  position: absolute;
  width: 13px; height: 13px;
  border-color: var(--blue-line);
  border-style: solid;
  border-width: 0;
  pointer-events: none;
}
.corner.tl { top: 0; left: 0; border-top-width: 1px; border-left-width: 1px; }
.corner.tr { top: 0; right: 0; border-top-width: 1px; border-right-width: 1px; }
.corner.bl { bottom: 0; left: 0; border-bottom-width: 1px; border-left-width: 1px; }
.corner.br { bottom: 0; right: 0; border-bottom-width: 1px; border-right-width: 1px; }

/* ── Header bar ── */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(10, 15, 20, 0.86);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--blue-line-soft);
}
.topbar-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 11px 20px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand img {
  width: 32px; height: 32px; display: block;
  border-radius: 50%;
  filter: drop-shadow(0 0 10px rgba(54, 166, 255, 0.4));
}
.brand .word {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.26em;
  color: var(--ink);
}
.brand .word b { color: var(--blue); font-weight: 600; }
.topnav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
}
.topnav a { color: var(--dim); transition: color 0.15s ease, text-shadow 0.15s ease; }
.topnav a:hover, .topnav a.is-active { color: var(--blue); text-shadow: 0 0 12px rgba(54,166,255,0.5); }
.btn {
  font-family: var(--mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 10px 18px;
  border: 1px solid;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.btn-primary {
  background: var(--blue);
  color: #04121f;
  border-color: var(--blue);
  box-shadow: 0 0 18px rgba(54, 166, 255, 0.22);
}
.btn-primary:hover { background: var(--blue-glow); box-shadow: 0 0 26px rgba(54, 166, 255, 0.45); }
.btn-ghost {
  background: transparent;
  color: var(--blue);
  border-color: var(--blue-line);
}
.btn-ghost:hover { border-color: var(--blue); background: var(--blue-fill); }
.topbar .btn { padding: 9px 15px; }

/* Mobile: nav links form a full-width row under the brand (no hamburger, no JS) */
@media (max-width: 699.9px) {
  .topbar-inner { flex-wrap: wrap; }
  .topnav {
    order: 3; flex-basis: 100%;
    margin-left: 0;
    gap: 20px;
    padding: 8px 2px 1px;
    border-top: 1px solid var(--blue-line-soft);
    overflow-x: auto;
  }
  .topnav a { padding: 6px 0; }
  .topbar .btn { margin-left: auto; }
}

/* Keyboard focus: visible ring on the dark theme */
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
input[type="email"]:focus-visible { outline: none; } /* fields carry their own focus style */

/* ── Section headers ── */
.sec-head { margin-bottom: 32px; }
.sec-head .head-top {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 14px;
}
h1 {
  font-size: clamp(33px, 7vw, 58px);
  font-weight: 800;
  line-height: 1.07;
  letter-spacing: -0.02em;
  text-wrap: balance;
  margin-bottom: 22px;
}
h1 .hl { color: var(--blue); text-shadow: 0 0 30px rgba(54, 166, 255, 0.35); }
h2 {
  font-size: clamp(24px, 4.4vw, 34px);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.16;
  text-wrap: balance;
}
.sec-head p { margin-top: 13px; color: var(--ink-2); max-width: 620px; text-wrap: pretty; }

/* ── Reveals ── */
html.js .rv { opacity: 0; transform: translateY(12px); }
html.js .rv.in { animation: rvin 0.5s ease both; }
html.js .rv.in.d1 { animation-delay: 0.07s; }
html.js .rv.in.d2 { animation-delay: 0.14s; }
html.js .rv.in.d3 { animation-delay: 0.21s; }
@keyframes rvin { to { opacity: 1; transform: translateY(0); } }

/* ── Tier chips (INFORMATION color · load-bearing) ── */
.chip {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.15em;
  padding: 3px 9px;
  border: 1px solid;
  border-radius: 999px;
  white-space: nowrap;
  display: inline-block;
}
.chip.red   { border-color: var(--t-red);   color: var(--t-red); }
.chip.amber { border-color: var(--t-amber); color: var(--t-amber); }
.chip.green { border-color: var(--t-green); color: var(--t-green); }
.chip.cyan  { border-color: var(--t-cyan);  color: var(--t-cyan); }
.chip.violet { border-color: var(--t-violet); color: var(--t-violet); }
.chip.on.red   { background: var(--t-red);   color: #1a0807; }
.chip.on.amber { background: var(--t-amber); color: #1a1303; }
.chip.on.green { background: var(--t-green); color: #06150d; }
.chip.on.cyan  { background: var(--t-cyan);  color: #04161a; }
.chip.on.violet { background: var(--t-violet); color: #0f0820; }

/* ── Neutral chrome tag (region / theme · NOT a tier, stays blue-grey) ── */
.tag {
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 3px 9px;
  border: 1px solid var(--blue-line-soft);
  border-radius: 999px;
  color: var(--ink-2);
  white-space: nowrap;
  display: inline-block;
}

/* ── Signup band + capture form (Netlify Forms · wiring is in pages.js) ── */
.sec-divider {
  border: 0;
  height: 1px;
  max-width: 240px;
  margin: 0 auto;
  background: linear-gradient(90deg, transparent, var(--blue), transparent);
  opacity: 0.65;
}
.signup { border: 1px solid var(--blue-line-soft); background: var(--panel-deep); padding: 44px 24px; text-align: center; }
.signup h2 { margin-bottom: 12px; }
.signup .sub { color: var(--ink-2); max-width: 460px; margin: 0 auto 26px; text-wrap: pretty; }
.capture { max-width: 480px; margin: 0 auto; }
.capture form { display: flex; gap: 10px; }
.capture input[type="email"] {
  flex: 1; min-width: 0;
  background: var(--bg);
  border: 1px solid var(--blue-line);
  color: var(--ink);
  font-family: var(--mono); font-size: 14px;
  padding: 14px 15px; outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.capture input[type="email"]::placeholder { color: var(--dim); }
.capture input[type="email"]:focus { border-color: var(--blue); box-shadow: 0 0 0 1px var(--blue), 0 0 16px rgba(54,166,255,0.18); }
.capture .micro { font-family: var(--mono); font-size: 11px; letter-spacing: 0.04em; color: var(--dim); margin-top: 13px; }
.capture .success {
  display: none; border: 1px solid var(--blue-line); background: var(--blue-fill);
  padding: 14px 16px; font-family: var(--mono); font-size: 13px; color: var(--blue-glow);
}
.capture.sent form, .capture.sent .micro { display: none; }
.capture.sent .success { display: block; }
.capture .failure {
  display: none; margin-top: 13px; text-align: left;
  border: 1px solid rgba(224, 86, 74, 0.45); background: rgba(224, 86, 74, 0.07);
  padding: 12px 14px; font-family: var(--mono); font-size: 12px; color: var(--t-red);
}
.capture.failed .failure { display: block; }

/* ── Page hero (interior pages: methodology, archive, 404) ── */
.page-hero { padding-top: 54px; padding-bottom: 8px; }
.page-hero .termline {
  display: flex; align-items: center; gap: 9px;
  font-family: var(--mono); font-size: 12px; color: var(--ink-2);
  padding-bottom: 22px; flex-wrap: wrap;
}
.page-hero .termline .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--blue); box-shadow: 0 0 9px var(--blue-glow); flex-shrink: 0;
}
.page-hero .termline .path { color: var(--blue); }
.page-hero .termline .cmd { color: var(--ink-2); }
.page-hero .termline .stamp { margin-left: auto; }
.page-hero h1 { font-size: clamp(30px, 5.4vw, 46px); margin-bottom: 18px; }
.page-hero .lede {
  font-size: clamp(16px, 2.2vw, 19px);
  color: var(--ink-2); max-width: 640px; text-wrap: pretty;
}

/* ── Footer ── */
footer { border-top: 1px solid var(--blue-line-soft); padding: 30px 0 38px; margin-top: 56px; }
.foot-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; color: var(--dim);
}
.foot-inner .fh { color: var(--blue); }
.foot-inner a { color: var(--dim); transition: color 0.15s ease; }
.foot-inner a:hover { color: var(--blue); }
.foot-tag {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--blue); opacity: 0.85; margin-bottom: 16px;
}

/* ── Responsive ── */
@media (min-width: 700px) {
  .capture .micro { margin-top: 13px; }
}
@media (min-width: 920px) {
  section { padding: 80px 0; }
  .page-hero { padding-top: 72px; }
}
@media (max-width: 460px) {
  .capture form { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js .rv { opacity: 1; transform: none; }
  html.js .rv.in { animation: none; }
}

  /* Skip-to-content: hidden above the viewport until keyboard focus */
  .skip-link {
    position: fixed; top: -64px; left: 16px; z-index: 100;
    font-family: var(--mono); font-size: 11.5px; font-weight: 600;
    letter-spacing: 0.14em; text-transform: uppercase;
    padding: 10px 18px; background: var(--blue); color: #04121f;
    transition: top 0.15s ease;
  }
  .skip-link:focus { top: 12px; }

/* map click → row flash (archive plot) */
.arch-row.flash, .dossier.flash { animation: rowflash 1.8s ease; }
@keyframes rowflash {
  0% { background: rgba(54, 166, 255, 0.18); }
  100% { background: transparent; }
}

/* ── Lifecycle of a claim (methodology) ── */
.lifecycle {
  margin-top: 22px; border: 1px solid var(--blue-line-soft);
  background: var(--panel-deep); padding: 20px 20px 18px; position: relative;
}
.lc-title {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.22em;
  color: var(--blue); display: block; margin-bottom: 16px; text-transform: uppercase;
}
.lc-flow { display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.lc-node { display: flex; flex-direction: column; gap: 8px; flex: 1; min-width: 150px; }
.lc-cap {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.05em;
  color: var(--dim); line-height: 1.55;
}
.lc-arrow {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  color: var(--blue); font-size: 15px; padding-top: 2px;
}
.lc-arrow em {
  font-style: normal; font-family: var(--mono); font-size: 9px;
  letter-spacing: 0.12em; color: var(--dim); text-transform: uppercase; white-space: nowrap;
}
.lc-foot {
  margin-top: 16px; padding-top: 13px; border-top: 1px solid var(--blue-line-soft);
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; color: var(--dim);
}
.lc-foot strong { color: var(--t-amber); font-weight: 600; }
@media (max-width: 560px) {
  .lc-flow { flex-direction: column; align-items: stretch; }
  .lc-arrow { flex-direction: row; align-self: flex-start; }
}
.brand-asof{font-family:var(--mono);font-size:9.5px;letter-spacing:.16em;color:var(--dim);white-space:nowrap;align-self:center;padding:3px 7px;border:1px solid var(--blue-line-soft);border-radius:2px;margin-left:12px}.brand-asof.is-stale{color:#f0a726;border-color:rgba(240,167,38,.42)}@media(max-width:780px){.brand-asof{display:none}}
