/* ARMORY INTEL — site stylesheet (light mode = external).
   Design system: 52_CONTEXT/design-system/design-system.md (locked).
   Tokens mirror variables.css. Readability policy §4 applied:
   roman ledes (no block italics), body line-height ≥1.5, measure ≤~66ch. */

:root {
  --ai-parchment:  #F2EDE4;
  --ai-vellum:     #E8E0D0;
  --ai-warm-ash:   #C8BFA8;
  --ai-charcoal:   #1A1814;
  --ai-iron:       #1E1C18;
  --ai-gunmetal:   #3D3A34;
  --ai-smoke:      #6B6660;
  --ai-ink-soft:   #4A4640;   /* 8.0:1 — body-safe */
  --ai-red:        #D94035;
  --ai-red-deep:   #B8332A;   /* AA-safe red text */
  --ai-green:      #2E8B4A;
  --ai-blue:       #1B4F8A;
  --ai-red-10:     #FAF0EF;
  --ai-red-20:     #F5E0DF;
  --ai-green-10:   #EEF5F1;
  --ai-green-20:   #DCEBE2;
  --ai-blue-10:    #EEF2F7;
  --ai-blue-20:    #DCE5EF;
  --font-sans:     'IBM Plex Sans', system-ui, -apple-system, sans-serif;
  --font-mono:     'IBM Plex Mono', 'Courier New', monospace;
  --radius-sm:     4px;
  --radius-md:     6px;
  --transition-fast: 150ms ease;
  --transition-std:  250ms ease;
  --transition-slow: 400ms ease;
  --measure: 66ch;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  font-family: var(--font-sans);
  background: var(--ai-parchment);
  color: var(--ai-charcoal);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.skip-link { position: absolute; left: -999px; }
.skip-link:focus { left: 16px; top: 12px; z-index: 200; background: var(--ai-charcoal); color: var(--ai-parchment); padding: 8px 14px; border-radius: var(--radius-sm); }

/* ── NAV ── */
/* :not(.breadcrumb) — the breadcrumb on vertical pages is also a <nav>;
   without the guard it inherits fixed positioning and overlays the header */
nav:not(.breadcrumb) {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--ai-charcoal); height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 40px; border-bottom: 2px solid var(--ai-red);
}
.nav-logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.glyph {
  font-size: 26px; display: inline-block; transform: rotate(180deg);
  color: var(--ai-parchment); transition: transform var(--transition-slow);
  cursor: default; line-height: 1;
}
.nav-logo:hover .glyph { transform: rotate(180deg) rotate(5deg); }
.wordmark { font-family: var(--font-sans); font-size: 15px; font-weight: 500; letter-spacing: 0.14em; color: var(--ai-parchment); }
.wordmark span { opacity: 0.55; font-weight: 400; }
.nav-links { display: flex; gap: 28px; list-style: none; align-items: center; }
.nav-links a {
  font-family: var(--font-sans); font-size: 12px; font-weight: 500;
  letter-spacing: 0.1em; color: var(--ai-warm-ash); text-decoration: none;
  text-transform: uppercase; transition: color var(--transition-std);
}
.nav-links a:hover, .nav-links a.active { color: var(--ai-parchment); }
.nav-cta {
  background: var(--ai-red); color: #fff !important; padding: 9px 20px;
  border-radius: var(--radius-sm); font-weight: 500 !important;
  transition: background var(--transition-std) !important;
  white-space: nowrap; /* pill button must never wrap (mobile nav) */
}
.nav-cta:hover { background: var(--ai-red-deep); color: #fff !important; }

/* ── HERO ── */
.hero { padding: 144px 80px 96px; position: relative; overflow: hidden; border-bottom: 1px solid var(--ai-warm-ash); }
.hero-watermark {
  position: absolute; right: -60px; bottom: -120px; font-size: 420px;
  display: inline-block; transform: rotate(180deg); opacity: 0.045;
  color: var(--ai-charcoal); pointer-events: none; line-height: 1; user-select: none;
}
.hero-inner { position: relative; z-index: 1; }
.hero-tag { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.2em; color: var(--ai-smoke); text-transform: uppercase; margin-bottom: 24px; }
.hero h1 { font-size: 64px; font-weight: 300; line-height: 1.08; letter-spacing: 0.01em; max-width: 720px; margin-bottom: 24px; }
.hero h1 strong { font-weight: 600; }
.hero p.lede { font-size: 19px; color: var(--ai-ink-soft); max-width: 30em; margin-bottom: 18px; line-height: 1.6; }
.hero p.support { font-size: 15px; color: var(--ai-smoke); max-width: 34em; margin-bottom: 40px; line-height: 1.6; }
.hero-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

/* ── BUTTONS ── */
.btn-primary {
  background: var(--ai-red); color: #fff; padding: 13px 30px; border-radius: var(--radius-sm);
  font-family: var(--font-sans); font-size: 14px; font-weight: 500; letter-spacing: 0.06em;
  border: none; cursor: pointer; text-decoration: none; display: inline-block;
  transition: background var(--transition-std);
}
.btn-primary:hover { background: var(--ai-red-deep); }
.btn-secondary {
  border: 1.5px solid var(--ai-charcoal); color: var(--ai-charcoal); padding: 12px 30px;
  border-radius: var(--radius-sm); font-family: var(--font-sans); font-size: 14px; font-weight: 500;
  letter-spacing: 0.06em; background: transparent; cursor: pointer; text-decoration: none;
  display: inline-block; transition: background var(--transition-std);
}
.btn-secondary:hover { background: rgba(26,24,20,0.06); }

/* ── SECTIONS ── */
.section { padding: 80px; border-bottom: 1px solid var(--ai-warm-ash); }
.section.alt { background: var(--ai-vellum); }
.section-tag { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--ai-smoke); margin-bottom: 10px; }
.section h2 { font-size: 28px; font-weight: 500; letter-spacing: 0.01em; margin-bottom: 24px; color: var(--ai-charcoal); max-width: 20em; }
.section .section-body { font-size: 16px; color: var(--ai-ink-soft); max-width: var(--measure); line-height: 1.7; }
.section .section-body p { margin-bottom: 16px; }
.section .section-body p:last-child { margin-bottom: 0; }
.section .section-body strong { color: var(--ai-charcoal); font-weight: 600; }
.grid-head { margin-bottom: 40px; }
.grid-head h2 { margin-bottom: 12px; }
.grid-head .section-body { font-size: 16px; }

/* ── CARD GRID ── */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card-grid.two { grid-template-columns: repeat(2, 1fr); }
.card-grid.four { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--ai-parchment); border: 1px solid var(--ai-warm-ash); border-radius: var(--radius-md);
  padding: 24px; position: relative; overflow: hidden;
  transition: border-color var(--transition-std);
}
.section.alt .card { background: var(--ai-parchment); }
.card:hover { border-color: var(--ai-smoke); }
.card-rule { position: absolute; left: 0; top: 0; bottom: 0; width: 4px; }
.card-rule.red { background: var(--ai-red); }
.card-rule.green { background: var(--ai-green); }
.card-rule.blue { background: var(--ai-blue); }
.card-rule.ash { background: var(--ai-warm-ash); }
.card-inner { padding-left: 12px; }
.card-label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ai-smoke); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.card h3 { font-size: 18px; font-weight: 600; margin-bottom: 10px; color: var(--ai-charcoal); }
.card p { font-size: 15px; color: var(--ai-ink-soft); line-height: 1.6; }
.pill { font-family: var(--font-mono); font-size: 9px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; padding: 3px 8px; border-radius: var(--radius-sm); border: 1px solid; }
.pill.green { color: var(--ai-green); border-color: var(--ai-green); background: var(--ai-green-10); }
.pill.red { color: var(--ai-red-deep); border-color: var(--ai-red); background: var(--ai-red-10); }
.pill.ash { color: var(--ai-smoke); border-color: var(--ai-warm-ash); background: transparent; }
.roadmap-note { margin-top: 28px; font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.02em; color: var(--ai-ink-soft); padding: 14px 18px; border-left: 3px solid var(--ai-warm-ash); background: rgba(200,191,168,0.18); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; max-width: var(--measure); }

/* ── LADDER (how it works) ── */
.ladder { display: flex; flex-direction: column; gap: 0; max-width: 760px; }
.ladder-row { display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding: 22px 0; border-top: 1px solid var(--ai-warm-ash); }
.ladder-row:first-child { border-top: none; }
.ladder-num { font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: var(--ai-red-deep); letter-spacing: 0.1em; padding-top: 3px; }
.ladder-row h3 { font-size: 17px; font-weight: 600; margin-bottom: 6px; color: var(--ai-charcoal); }
.ladder-row p { font-size: 15px; color: var(--ai-ink-soft); line-height: 1.6; max-width: 52em; }
.ladder-lead { font-size: 16px; font-weight: 600; color: var(--ai-charcoal); margin-bottom: 28px; letter-spacing: 0.01em; }

/* ── PROMISE ── */
.promise { padding: 80px; background: var(--ai-vellum); border-bottom: 1px solid var(--ai-warm-ash); }
.promise h2 { font-size: 34px; font-weight: 500; letter-spacing: 0.01em; max-width: 18em; margin-bottom: 20px; }
.promise .section-body { font-size: 17px; max-width: var(--measure); color: var(--ai-ink-soft); line-height: 1.7; margin-bottom: 36px; }
.pillars { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px 40px; max-width: 880px; }
.pillar { display: grid; grid-template-columns: 14px 1fr; gap: 14px; }
.pillar .tick { width: 8px; height: 8px; border-radius: 50%; background: var(--ai-green); margin-top: 8px; box-shadow: 0 0 0 4px var(--ai-green-20); }
.pillar h3 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.pillar p { font-size: 15px; color: var(--ai-ink-soft); line-height: 1.55; }

/* ── PROOF (dark) ── */
.proof { background: var(--ai-charcoal); color: var(--ai-parchment); padding: 80px; position: relative; overflow: hidden; }
.proof .section-tag { color: var(--ai-warm-ash); }
.proof h2 { font-size: 30px; font-weight: 500; letter-spacing: 0.01em; color: var(--ai-parchment); max-width: 18em; margin-bottom: 24px; }
.proof .proof-body { font-size: 16px; color: var(--ai-warm-ash); max-width: var(--measure); line-height: 1.75; }
.proof .proof-body p { margin-bottom: 16px; }
.proof .proof-body p:last-child { margin-bottom: 0; }
.proof .proof-body strong { color: var(--ai-parchment); font-weight: 600; }
.proof-link { display: inline-block; margin-top: 28px; font-family: var(--font-mono); font-size: 13px; letter-spacing: 0.06em; color: var(--ai-parchment); text-decoration: none; border-bottom: 1px solid var(--ai-red); padding-bottom: 3px; }
.proof-link:hover { color: var(--ai-red); }
.proof-watermark { position: absolute; left: -40px; top: -80px; font-size: 360px; transform: rotate(180deg); opacity: 0.04; color: var(--ai-parchment); line-height: 1; pointer-events: none; user-select: none; }

/* ── CONTACT ── */
.contact { padding: 96px 80px; text-align: left; background: var(--ai-parchment); border-bottom: 1px solid var(--ai-warm-ash); }
.contact h2 { font-size: 40px; font-weight: 300; letter-spacing: 0.01em; margin-bottom: 20px; }
.contact h2 strong { font-weight: 600; }
.contact p.lede { font-size: 17px; color: var(--ai-ink-soft); max-width: 34em; line-height: 1.7; margin-bottom: 36px; }
.contact-rows { display: flex; flex-wrap: wrap; gap: 40px; margin-bottom: 40px; }
.contact-item .contact-k { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ai-smoke); margin-bottom: 6px; }
.contact-item .contact-v { font-family: var(--font-mono); font-size: 15px; color: var(--ai-charcoal); text-decoration: none; transition: color var(--transition-fast); }
a.contact-v:hover { color: var(--ai-red-deep); }

/* ── FOOTER ── */
footer { background: var(--ai-charcoal); padding: 56px 80px 32px; border-top: 2px solid var(--ai-red); }
.footer-cols { display: flex; gap: 80px; margin-bottom: 48px; flex-wrap: wrap; }
.footer-brand p { font-size: 13px; color: var(--ai-smoke); max-width: 240px; line-height: 1.7; margin-top: 20px; }
.footer-col-head { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.15em; color: var(--ai-smoke); text-transform: uppercase; margin-bottom: 16px; }
.footer-col-links { display: flex; flex-direction: column; gap: 10px; }
.footer-col-links a { font-size: 13px; color: var(--ai-warm-ash); text-decoration: none; transition: color var(--transition-fast); }
.footer-col-links a:hover { color: var(--ai-parchment); }
.footer-col-links .static { font-size: 13px; color: var(--ai-warm-ash); line-height: 1.6; }
.footer-bar { border-top: 1px solid var(--ai-gunmetal); padding-top: 24px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-bar div { font-family: var(--font-mono); font-size: 10px; color: var(--ai-smoke); letter-spacing: 0.1em; }

/* ── BREADCRUMB (child pages) ── */
.breadcrumb { padding: 96px 80px 0; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ai-smoke); }
.breadcrumb a { color: var(--ai-smoke); text-decoration: none; transition: color var(--transition-fast); }
.breadcrumb a:hover { color: var(--ai-charcoal); }
.breadcrumb span[aria-current="page"] { color: var(--ai-charcoal); }
.breadcrumb-note { padding: 10px 80px 0; font-size: 14px; color: var(--ai-ink-soft); max-width: 52em; line-height: 1.6; }
.breadcrumb + .breadcrumb-note + .page-head, .breadcrumb-note + .page-head { padding-top: 40px; }

/* ── COLLATERAL STUBS (download list) ── */
.collateral { margin-top: 44px; max-width: var(--measure); }
.collateral-head { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ai-smoke); margin-bottom: 14px; }
.collateral-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.collateral-list li { display: flex; align-items: center; gap: 14px; justify-content: space-between; padding: 14px 18px; border: 1px solid var(--ai-warm-ash); border-radius: var(--radius-md); background: var(--ai-vellum); flex-wrap: wrap; }
.collateral-title { font-size: 15px; color: var(--ai-smoke); }

/* ── PAGE HEADER (interior pages) ── */
.page-head { padding: 128px 80px 56px; border-bottom: 1px solid var(--ai-warm-ash); position: relative; overflow: hidden; }
.page-head .hero-watermark { bottom: -140px; font-size: 360px; }
.page-head h1 { font-size: 46px; font-weight: 300; line-height: 1.12; max-width: 16em; margin-bottom: 18px; }
.page-head h1 strong { font-weight: 600; }
.page-head p.lede { font-size: 18px; color: var(--ai-ink-soft); max-width: 34em; line-height: 1.6; }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .card-grid, .card-grid.two, .card-grid.four, .pillars { grid-template-columns: 1fr; }
  .hero, .section, .proof, .promise, .contact, .page-head { padding-left: 24px; padding-right: 24px; }
  .breadcrumb { padding: 84px 24px 0; }
  .breadcrumb-note { padding-left: 24px; padding-right: 24px; }
  .hero { padding-top: 120px; padding-bottom: 64px; }
  .section, .proof, .promise { padding-top: 56px; padding-bottom: 56px; }
  .contact, .page-head { padding-top: 100px; padding-bottom: 56px; }
  footer { padding-left: 24px; padding-right: 24px; }
  nav:not(.breadcrumb) { padding: 0 16px; }
  .nav-links { gap: 12px; }
  .nav-links a:not(.nav-cta) { display: none; }
  /* compact the logo + CTA so both fit one line on phones */
  .glyph { font-size: 22px; }
  .nav-logo { gap: 10px; }
  .wordmark { font-size: 13px; letter-spacing: 0.1em; }
  .nav-cta { font-size: 11px; padding: 8px 14px; letter-spacing: 0.06em; }
  .hero h1 { font-size: 40px; }
  .page-head h1 { font-size: 34px; }
  .contact h2 { font-size: 30px; }
  .hero-watermark { font-size: 240px; }
}

/* ── NAV DROPDOWN (v2 — "Who we serve" parent + child) ───────────────
   Appended for the restructured v2 nav. Pure-CSS hover/focus dropdown;
   does not alter any existing nav rule above. */
.nav-links li.has-dropdown { position: relative; }
.nav-links li.has-dropdown > a .caret { font-size: 9px; margin-left: 4px; opacity: 0.8; }
.nav-dropdown {
  position: absolute; top: 100%; left: 0; min-width: 180px;
  background: var(--ai-charcoal); border: 1px solid var(--ai-gunmetal);
  border-top: 2px solid var(--ai-red); border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  list-style: none; padding: 8px 0; margin-top: 14px;
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity var(--transition-std), transform var(--transition-std), visibility var(--transition-std);
  z-index: 110;
}
.nav-links li.has-dropdown:hover .nav-dropdown,
.nav-links li.has-dropdown:focus-within .nav-dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-dropdown li { display: block; }
.nav-dropdown a {
  display: block; padding: 9px 18px; text-transform: none;
  letter-spacing: 0.04em; font-size: 12px; white-space: nowrap;
}
@media (max-width: 960px) {
  .nav-dropdown { display: none; }
}
