/* =====================================================================
   ProDelta: "Earth, Overlaid" theme  (photo + data HUD)
   ---------------------------------------------------------------------
   PROGRAMMER NOTES
   - This file is loaded AFTER each page's inline <style>, so it overrides
     tokens and components without touching page markup. To roll the look
     back, remove the <link> to this file (and the .hud-* markup on index).
   - Everything is driven by the tokens in section 1. Change them here.
   - Fonts: Lora 700 (headlines, tool names, big numbers), Inter (body),
     JetBrains Mono (data labels). Loaded from Google Fonts for the preview.
     REPLACE: self-host woff2 files before launch for the PageSpeed target.
   - Textures (assets/images/hud-*.webp) are decorative, transparent WebP,
     used as CSS backgrounds only (no extra <img> requests).
   - Brand note: headlines are Lora Bold, all lowercase (per client).
   ===================================================================== */

/* ---------- 1. TOKENS ---------- */
:root {
  --navy:   #04152f;
  --navy-2: #071f45;
  --navy-3: #020b1a;
  --font-heading: "Lora", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono:    "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --track-heading: -0.01em;
  --radius: 6px;

  --bg:        #ffffff;
  --bg-alt:    #f3f5f9;
  --text:      #0b1f3a;
  --text-soft: #243247;
  --heading:   #00367C;
  --link:      #00367C;
  --focus:     #00367C;
  --rule:      rgba(0, 54, 124, 0.22);
  --card-bg:   #ffffff;
  --wants-bg:  var(--pine);
  --hud-line:  rgba(255, 255, 255, 0.14);
  --hud-grid:  rgba(255, 255, 255, 0.06);
  --texture-alt: url("../images/hud-topo-dark.webp");
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg:        var(--navy);
    --bg-alt:    var(--navy-2);
    --text:      #ffffff;
    --text-soft: rgba(255, 255, 255, 0.84);
    --heading:   #ffffff;
    --link:      var(--orange);
    --focus:     var(--orange);
    --rule:      rgba(255, 255, 255, 0.22);
    --card-bg:   rgba(255, 255, 255, 0.05);
    --wants-bg:  var(--pine);
    --texture-alt: url("../images/hud-topo-light.webp");
  }
}

/* ---------- 2. TYPE ---------- */
body { font-family: var(--font-body); }
.h-brand {
  font-family: var(--font-heading); font-weight: 700;
  text-transform: lowercase; letter-spacing: var(--track-heading); line-height: 1.08;
}
h1.h-brand { font-size: clamp(2.3rem, 1.2rem + 3.8vw, 4.4rem); }
h2.h-brand { font-size: clamp(1.8rem, 1.2rem + 1.9vw, 3rem); max-width: 24ch; }
.hero h1 { max-width: 15em; }
h3.sub, .faq h3 { font-family: var(--font-body); font-weight: 600; }
.lede, .hero__sub { font-family: var(--font-body); }

/* Mono "data label" voice: every small uppercase label on the site */
.tagline, .arc__verb, .menu__group, .mega__col h3, .fig__label, .pillars h3,
.footer__col h2, .tag, .chip, .hero__stories strong, .door__tag, .crumbs,
.stat__t, .reg__type, .kpi__t, .m-list__h, .ptag, .num, .skip-link {
  font-family: var(--font-mono); font-weight: 500; font-style: normal;
}
.tagline, .arc__verb, .menu__group, .mega__col h3, .fig__label, .pillars h3,
.footer__col h2, .hero__stories strong, .reg__type, .kpi__t, .m-list__h {
  text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem;
}
.tag, .chip { letter-spacing: 0.08em; font-size: 0.72rem; }
.door__tag { font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; }
.crumbs { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
.stat__t { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.5; }
.stat__n, .kpi__n { font-family: var(--font-heading); font-weight: 700; }

/* Buttons keep the brand orange; type switches to Inter for legibility */
.btn, .nav-toggle { font-family: var(--font-body); font-weight: 600; letter-spacing: 0.05em; }
.btn { border-radius: 4px; }

/* small accent rule above section headings (the "tick" of the HUD) */
.section__head::before {
  content: ""; display: block; width: 3rem; height: 2px; background: var(--orange);
}

/* ---------- 3. HEADER + NAV ---------- */
.site-header {
  background: rgba(4, 21, 47, 0.94);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--hud-line);
}
.nav-link, .nav-trigger { font-family: var(--font-body); }
@media (min-width: 1340px) {
  .menu {
    background: var(--navy-2); color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.18); border-top: 3px solid var(--orange);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5); border-radius: 0 0 var(--radius) var(--radius);
  }
  .menu a { color: #fff; }
  .menu a:hover, .menu a:focus-visible { background: rgba(255, 255, 255, 0.08); color: var(--orange); }
  .menu a:focus-visible { outline-color: var(--orange); }
  .menu__group, .mega__col h3 { color: var(--sage); }
  .mega__col h3 { border-bottom-color: rgba(255, 255, 255, 0.2); }
  .menu__flag { color: var(--sage); }
  .menu__sub { border-left-color: rgba(255, 255, 255, 0.25); }
  .menu__all { border-top-color: rgba(255, 255, 255, 0.2); }
}
@media (max-width: 1339px) {
  .nav__list { background: var(--navy); }
}

/* ---------- 4. HERO: land with data laid over it ---------- */
.hero {
  background: var(--navy) url("../images/hud-wave-light.webp") right -80px top -40px / 1000px auto no-repeat;
}
.hero::before {
  background: linear-gradient(90deg, rgba(4,21,47,.96) 0%, rgba(4,21,47,.82) 38%, rgba(4,21,47,.15) 100%);
}
/* grid + corner brackets, drawn as one layer */
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(var(--orange), var(--orange)) left 28px top 28px / 34px 2px no-repeat,
    linear-gradient(var(--orange), var(--orange)) left 28px top 28px / 2px 34px no-repeat,
    linear-gradient(var(--orange), var(--orange)) right 28px top 28px / 34px 2px no-repeat,
    linear-gradient(var(--orange), var(--orange)) right 28px top 28px / 2px 34px no-repeat,
    linear-gradient(var(--orange), var(--orange)) left 28px bottom 28px / 34px 2px no-repeat,
    linear-gradient(var(--orange), var(--orange)) left 28px bottom 28px / 2px 34px no-repeat,
    linear-gradient(var(--orange), var(--orange)) right 28px bottom 28px / 34px 2px no-repeat,
    linear-gradient(var(--orange), var(--orange)) right 28px bottom 28px / 2px 34px no-repeat,
    linear-gradient(var(--hud-grid) 1px, transparent 1px) 0 0 / 120px 120px,
    linear-gradient(90deg, var(--hud-grid) 1px, transparent 1px) 0 0 / 120px 120px;
}
.hero__delta { opacity: 0.16; }
.hero__sub { color: rgba(255, 255, 255, 0.9); }
.hero__stories { border-top-color: rgba(255, 255, 255, 0.3); }
.hero__stories strong, .tagline { color: var(--orange); }
/* product screenshot in the hero: framed like a data window, sized to the image itself */
body .hero .hero__product {
  height: auto; width: min(42vw, 38rem); max-width: none; max-height: 86%;
  top: 50%; bottom: auto; transform: translateY(-50%); object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.35); border-radius: var(--radius);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5);
}
@media (max-width: 900px) { body .hero .hero__product { display: none; } }
/* keep headline + copy out from under the data window */
@media (min-width: 901px) { body .hero--product .hero__inner { padding-right: min(46vw, 40rem); } }
@media (max-width: 760px) {
  .hero::before { background: rgba(4, 21, 47, 0.84); }
  .hero::after {
    background:
      linear-gradient(var(--hud-grid) 1px, transparent 1px) 0 0 / 80px 80px,
      linear-gradient(90deg, var(--hud-grid) 1px, transparent 1px) 0 0 / 80px 80px;
  }
}

/* Homepage-only annotation tags (decorative, aria-hidden) */
.hud-tags { position: absolute; inset: 0; z-index: 0; pointer-events: none; display: none; }
.hud-tag { position: absolute; right: var(--x); top: var(--y); display: flex; align-items: center; }
.hud-tag i { width: 12px; height: 12px; border-radius: 50%; background: var(--orange); border: 2px solid #fff; display: block; flex: none; }
.hud-tag b {
  position: relative; margin-left: 70px; font-family: var(--font-mono); font-weight: 500;
  font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: #fff;
  background: rgba(4, 21, 47, 0.88); border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 0.45rem 0.7rem; border-radius: 3px; white-space: nowrap;
}
.hud-tag b::before { content: ""; position: absolute; left: -70px; top: 50%; width: 70px; height: 1px; background: #fff; }
.hud-strip {
  position: absolute; left: 0; right: 0; bottom: 34px; z-index: 0; pointer-events: none; display: none;
  font-family: var(--font-mono); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}
.hud-strip .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
@media (min-width: 1100px) { .hud-tags, .hud-strip { display: block; } }

/* ---------- 5. SECTIONS ---------- */
.section--alt {
  background-color: var(--bg-alt); background-image: var(--texture-alt);
  background-size: 900px auto; background-repeat: repeat;
}
/* dark, navy section: re-points the same tokens, so inner components follow */
.section--navy {
  --text: #fff; --text-soft: rgba(255,255,255,.84); --heading: #fff; --link: var(--orange);
  --rule: rgba(255,255,255,.2); --card-bg: var(--navy-2); --focus: var(--orange);
  background-color: var(--navy); color: #fff;
  background-image: url("../images/hud-topo-light.webp"); background-size: 900px auto;
}
/* dark bands: navy + faint contour lines */
.wants, .m-band, .stats-band {
  background-image: url("../images/hud-topo-light.webp"); background-size: 900px auto;
}
.m-band, .stats-band { background-color: var(--navy); }
.cta-band {
  background: var(--deep-blue) url("../images/hud-wave-light.webp") right -60px top -60px / 760px auto no-repeat;
}
.site-footer { background: var(--navy-3); }
.site-footer a { color: #fff; }
.footer__col h2 { color: var(--sage); }
.footer__offices { border-top-color: var(--hud-line); }

/* ---------- 6. FOUR SHARED WANTS (numbered, mono) ---------- */
.wants__list { counter-reset: want; }
.want { border-top: 2px solid var(--sage); counter-increment: want; }
.want svg { display: none; }
.want::before {
  content: "0" counter(want); font-family: var(--font-mono); font-size: 0.85rem; color: var(--orange);
}
.want p { font-family: var(--font-heading); font-weight: 700; font-size: 1.5rem; line-height: 1.25; text-transform: lowercase; }
.wants__close span { color: var(--sage); }

/* ---------- 7. CARDS + DOORS ---------- */
.door, .rp-card, .fn-card, .arc__step { border-radius: var(--radius); }
.door { overflow: hidden; }
.door:hover { border-color: var(--orange); }
.door__body h3, .door__body .sub { font-family: var(--font-heading); font-weight: 700; text-transform: lowercase; letter-spacing: 0; }
.door__link a { color: var(--link); font-family: var(--font-mono); font-size: 0.85rem; text-decoration: none; }
.door__link a:hover { color: var(--orange); }

/* ---------- 8. TOOL ARC: timeline with nodes ---------- */
.arc { position: relative; gap: var(--s-5); }
.arc::before {
  content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 2px; background: var(--heading);
}
.arc__step {
  border: 0; background: transparent; padding: var(--s-6) 0 0; position: relative;
}
.arc__step::before {
  content: ""; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%;
  background: var(--orange); border: 3px solid var(--heading);
}
.arc__step:not(:last-child)::after { display: none; }
.arc__verb { color: var(--heading); }
.arc__tool { font-family: var(--font-heading); font-weight: 700; font-size: 1.7rem; text-transform: lowercase; }
.arc__step--here::before { box-shadow: 0 0 0 5px rgba(254, 160, 0, 0.35); }
@media (max-width: 900px) {
  .arc::before { display: none; }
  .arc__step { padding: var(--s-4) 0 0 var(--s-6); border-top: 1px solid var(--rule); }
  .arc__step::before { top: var(--s-4); }
}

/* ---------- 9. FIGURES, ANSWER BOXES, CALLOUTS (data-window look) ---------- */
.fig img, .fig--map img, .stats-band__img {
  border-radius: var(--radius); border: 1px solid var(--rule);
}
.fig--map, .fig--dark { position: relative; }
.fig--map img, .fig--dark img { box-shadow: 0 18px 40px rgba(0, 54, 124, 0.14); }
.def__qa > div {
  border: 1px solid var(--rule); border-top: 2px solid var(--orange);
  border-left: 1px solid var(--rule); border-radius: var(--radius);
}
.def__qa dt { font-weight: 600; }
.def__lede + .copy, .def__lede + .def__lede { margin-top: var(--s-4); }
.fig { margin-inline: 0; }
.callout { border-left-width: 2px; }
.callout-box { border-width: 1px; border-top: 2px solid var(--orange); }
.callout-box strong { font-weight: 600; }
.where__map { border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }

/* status chips keep their meaning; just re-skin the shape */
.tag, .chip { border-radius: 3px; }

/* ---------- 10. FORMS (contact) ---------- */
body .c-head { background: var(--navy) url("../images/hud-wave-light.webp") right -80px top -40px / 900px auto no-repeat; }
.c-input, .c-select, .c-textarea { border-radius: 4px; }
.c-field label, .c-field legend { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; }

/* ---------- 11. PRIVACY PAGE HEADER ---------- */
body .pp-head { background: var(--navy) url("../images/hud-wave-light.webp") right -80px top -40px / 900px auto no-repeat; color: #fff; }
body .pp-head .h-brand, body .pp-head h1, body .pp-head p { color: #fff; }
body .pp-head a, body .pp-crumbs a { color: #fff; }

/* ---------- 12. MOTION ---------- */
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
