/*
Theme Name:  Resilience Mitigation
Theme URI:   https://resiliencemitigation.com
Author:      Resilience Mitigation Consulting
Description: One-page emergency management consulting site for ResilienceMitigation.com. Activates immediately — no page setup required. Front-page + editorial blog included.
Version:     3.0.0
License:     GNU General Public License v2 or later
Text Domain: rm
*/

/* ════════════════════════════════════════════════════════
   BRAND TOKENS
════════════════════════════════════════════════════════ */
:root {
  /* Core palette */
  --brand:          #1800ad;
  --brand-mid:      #2215cc;
  --brand-dim:      #130094;
  --gold:           #f5c950;
  --gold-deep:      #d4a020;
  --gold-pale:      #fef7e0;
  --gold-glow:      rgba(245,201,80,.12);

  /* Dark surfaces */
  --dark:           #07041a;
  --dark-alt:       #0d0927;
  --dark-card:      #110d2e;
  --dark-mid:       #17103e;
  --dark-border:    rgba(255,255,255,.07);

  /* Light surfaces */
  --white:          #ffffff;
  --off-white:      #fafaf9;
  --light-alt:      #f6f4ff;
  --light-border:   rgba(24,0,173,.10);

  /* Text */
  --text-dark:      #18133a;
  --text-body:      #4a4370;
  --text-muted:     #8b85a0;
  --text-faint:     #bdb8cc;

  /* Sizing */
  --r:    14px;
  --r-sm:  8px;
  --r-xs:  6px;

  /* Typography */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body:    'Plus Jakarta Sans', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', 'Courier New', monospace;
}

/* ════════════════════════════════════════════════════════
   RESET & BASE
════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; overflow-x: hidden; }
body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: var(--white);
  overflow-x: hidden;
  max-width: 100vw;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
section { width: 100%; }
img, svg { display: block; max-width: 100%; }
a { text-decoration: none; color: var(--brand); transition: color .2s; }
button { cursor: pointer; font-family: var(--font-body); }
ul, ol { list-style: none; }

/* ════════════════════════════════════════════════════════
   TYPOGRAPHY SCALE
════════════════════════════════════════════════════════ */
h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  line-height: 1.08;
  letter-spacing: -.025em;
}
h1 { font-size: clamp(44px, 6.5vw, 88px); font-weight: 900; }
h2 { font-size: clamp(28px, 3.8vw, 52px); font-weight: 700; }
h3 { font-size: clamp(20px, 2.2vw, 28px); font-weight: 700; }
h4 { font-size: 18px; font-weight: 700; }
h5 { font-size: 14px; font-weight: 700; letter-spacing: .01em; }
p  { line-height: 1.75; color: var(--text-body); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--brand);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: ''; width: 22px; height: 2px; background: currentColor; flex-shrink: 0;
}
.eyebrow--gold { color: var(--gold); }
.eyebrow--muted { color: var(--text-muted); }

/* ════════════════════════════════════════════════════════
   LAYOUT
════════════════════════════════════════════════════════ */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 48px; }
.wrap--narrow { max-width: 860px; margin: 0 auto; padding: 0 48px; }
.section { padding: 110px 0; }
.section--sm { padding: 72px 0; }

/* Surface variants */
.bg-dark     { background: var(--dark); }
.bg-dark-alt { background: var(--dark-alt); }
.bg-white    { background: var(--white); }
.bg-lite     { background: var(--light-alt); }
.bg-brand    { background: var(--brand); }
.bg-off      { background: var(--off-white); }

/* Grid helpers */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

/* ════════════════════════════════════════════════════════
   BUTTONS
════════════════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-body); font-weight: 700; font-size: 14px;
  padding: 14px 28px; border-radius: var(--r-sm); border: none;
  transition: all .2s ease; cursor: pointer; text-decoration: none;
  letter-spacing: .01em; white-space: nowrap;
}
.btn--gold         { background: var(--gold); color: var(--dark); }
.btn--gold:hover   { background: #ffd660; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(245,201,80,.35); color: var(--dark); }
.btn--outline      { background: transparent; border: 1.5px solid rgba(255,255,255,.22); color: white; }
.btn--outline:hover{ border-color: var(--gold); color: var(--gold); }
.btn--brand        { background: var(--brand); color: white; }
.btn--brand:hover  { background: var(--brand-mid); transform: translateY(-2px); color: white; }
.btn--ghost        { background: rgba(255,255,255,.06); color: rgba(255,255,255,.75); border: 1px solid var(--dark-border); }
.btn--ghost:hover  { background: rgba(255,255,255,.1); color: white; }
.btn--sm { padding: 10px 20px; font-size: 13px; border-radius: var(--r-xs); }

/* ════════════════════════════════════════════════════════
   ANIMATIONS
════════════════════════════════════════════════════════ */
@keyframes fadeUp {
  from { opacity:0; transform:translateY(30px); }
  to   { opacity:1; transform:translateY(0); }
}
@keyframes pulse-gold {
  0%,100% { box-shadow: 0 0 0 0 rgba(245,201,80,.4); }
  50%      { box-shadow: 0 0 0 12px rgba(245,201,80,0); }
}
@keyframes spin-slow { to { transform: rotate(360deg); } }

.fade-up { opacity: 0; transform: translateY(30px); transition: opacity .7s ease, transform .7s ease; }
.fade-up.in-view { opacity: 1; transform: translateY(0); }
.d1 { transition-delay: .08s; } .d2 { transition-delay: .18s; }
.d3 { transition-delay: .28s; } .d4 { transition-delay: .38s; }

/* ════════════════════════════════════════════════════════
   NAV
════════════════════════════════════════════════════════ */
#site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: 72px;
  transition: background .35s, box-shadow .35s;
}
/* Inner wrapper constrains nav content to same 1200px max-width as .wrap */
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 48px;
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
#site-nav.scrolled {
  background: rgba(7,4,26,.96);
  backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 1px 0 rgba(255,255,255,.05), 0 8px 32px rgba(0,0,0,.4);
}
.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-mark {
  width: 38px; height: 38px; background: var(--gold); border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 900; font-size: 16px;
  color: var(--dark); flex-shrink: 0; letter-spacing: -.02em;
}
.nav-wordmark { line-height: 1.15; }
.nav-name { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: white; }
.nav-sub  { font-size: 10px; color: var(--text-muted); letter-spacing: .1em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 13px; font-weight: 500; color: rgba(255,255,255,.6); transition: color .2s; }
.nav-links a:hover { color: var(--gold); }
.nav-cta { background: var(--gold) !important; color: var(--dark) !important; padding: 9px 18px; border-radius: var(--r-xs); font-weight: 700 !important; font-size: 13px !important; transition: all .2s !important; }
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(245,201,80,.35) !important; }

/* Mobile toggle */
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; padding: 4px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: white; border-radius: 2px; transition: all .3s; }

/* ════════════════════════════════════════════════════════
   HERO
════════════════════════════════════════════════════════ */
#hero {
  /* Full-bleed dark background, NO flex — block layout identical to every .wrap section */
  min-height: 100vh;
  background: var(--dark);
  position: relative;
  overflow: hidden;
  width: 100%;
}
/* hero-inner IS the .wrap equivalent — same max-width, same centering, same padding.
   Vertical padding lives here, not on #hero, so the layout is 100% consistent. */
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 144px 48px 100px;
  position: relative;
  z-index: 2;
}
/* Dot grid texture */
#hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(245,201,80,.18) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 100%);
}
/* Constrain glows so they don't bleed outside hero bounds */
.hero-glow-l {
  position: absolute; top: -10%; left: -5%; width: 55%; height: 75%;
  background: radial-gradient(ellipse, rgba(24,0,173,.65) 0%, transparent 65%);
  pointer-events: none;
}
.hero-glow-r {
  position: absolute; bottom: -10%; right: 0; width: 35%; height: 55%;
  background: radial-gradient(ellipse, rgba(245,201,80,.06) 0%, transparent 65%);
  pointer-events: none;
}
/* Decorative geometry — only show on wide viewports */
.hero-geo {
  position: absolute; right: 4%; top: 50%; transform: translateY(-50%);
  width: 340px; height: 340px; pointer-events: none; opacity: .07;
}
/* Hero content — max-width for headline/sub/buttons only.
   .hero-creds lives OUTSIDE this div so it's not width-capped. */
.hero-content { max-width: 780px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 11px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold); margin-bottom: 28px;
}
.hero-eyebrow::before { content: ''; width: 28px; height: 1.5px; background: var(--gold); }
.hero-h1 {
  font-size: clamp(44px, 6.5vw, 88px); font-weight: 900;
  line-height: 1.02; letter-spacing: -.03em; color: white; margin-bottom: 28px;
}
.hero-h1 em { font-style: italic; color: var(--gold); display: block; }
.hero-sub {
  font-size: 18px; line-height: 1.78; color: rgba(255,255,255,.58);
  max-width: 580px; margin-bottom: 44px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 0; }
/* Creds sit OUTSIDE .hero-content — no 780px cap, full inner width available.
   flex-wrap: nowrap forces single row on desktop; mobile breakpoint changes this. */
.hero-creds {
  margin-top: 52px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,.07);
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  gap: 0 36px;
  align-items: center;
}
.cred-pill {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: rgba(255,255,255,.32);
  white-space: nowrap; flex-shrink: 0;
}
.cred-pill::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
.cred-pill strong { color: rgba(255,255,255,.52); font-weight: 600; }

/* ════════════════════════════════════════════════════════
   MARQUEE STRIP (social proof / org types)
════════════════════════════════════════════════════════ */
#marquee-strip {
  background: var(--dark-alt);
  border-top: 1px solid rgba(245,201,80,.12);
  border-bottom: 1px solid rgba(245,201,80,.12);
  padding: 14px 0; overflow: hidden; position: relative;
}
.marquee-track { display: flex; gap: 0; white-space: nowrap; animation: marquee-scroll 32s linear infinite; }
@keyframes marquee-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.marquee-item {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: rgba(245,201,80,.55); padding: 0 32px;
}
.marquee-dot { width: 4px; height: 4px; background: rgba(245,201,80,.3); border-radius: 50%; flex-shrink: 0; }

/* ════════════════════════════════════════════════════════
   STATS
════════════════════════════════════════════════════════ */
#stats {
  background: var(--dark-alt); padding: 96px 0;
  border-bottom: 1px solid rgba(245,201,80,.1);
}
.stats-intro { margin-bottom: 60px; }
.stats-intro h2 { color: white; max-width: 560px; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgba(255,255,255,.06); border-radius: var(--r); overflow: hidden;
  background: rgba(255,255,255,.025);
}
.stat-card {
  padding: 44px 32px 40px; border-right: 1px solid rgba(255,255,255,.06);
  position: relative; overflow: hidden; transition: background .3s;
}
.stat-card:last-child { border-right: none; }
.stat-card:hover { background: rgba(255,255,255,.03); }
.stat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold) 0%, transparent 100%);
  transform: scaleX(0); transform-origin: left; transition: transform .4s;
}
.stat-card:hover::before { transform: scaleX(1); }
.stat-icon { margin-bottom: 20px; opacity: .5; }
.stat-num {
  font-family: var(--font-display); font-size: clamp(44px, 4.5vw, 68px);
  font-weight: 900; color: var(--gold); line-height: 1; margin-bottom: 16px;
}
.stat-num sup { font-size: .42em; vertical-align: super; }
.stat-label { font-size: 14px; line-height: 1.65; color: rgba(255,255,255,.45); }
.stat-label strong { display: block; font-size: 14px; font-weight: 600; color: rgba(255,255,255,.78); margin-bottom: 6px; }

/* ════════════════════════════════════════════════════════
   THE GAP (problem section)
════════════════════════════════════════════════════════ */
#gap { background: var(--white); }
.gap-text h2 { color: var(--text-dark); margin-bottom: 24px; }
.gap-text h2 em { font-style: italic; color: var(--brand); }
.gap-body { font-size: 17px; line-height: 1.82; color: var(--text-body); }
.gap-body p + p { margin-top: 18px; }
.pull-quote {
  margin: 36px 0; padding: 28px 36px;
  border-left: 3px solid var(--gold);
  background: linear-gradient(135deg, var(--gold-pale) 0%, var(--light-alt) 100%);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.pull-quote p {
  font-family: var(--font-display); font-size: 21px; font-style: italic;
  line-height: 1.5; color: var(--text-dark);
}
/* Illustrated placeholder */
.gap-illustration {
  position: relative; border-radius: var(--r); overflow: hidden;
  background: linear-gradient(145deg, var(--light-alt) 0%, #ede8ff 100%);
  border: 1px solid var(--light-border);
  aspect-ratio: 4/3; display: flex; align-items: center; justify-content: center;
}

/* ════════════════════════════════════════════════════════
   SERVICES
════════════════════════════════════════════════════════ */
#services { background: var(--dark); }
.services-header { margin-bottom: 56px; }
.services-header h2 { color: white; margin-bottom: 16px; }
.services-header p { color: rgba(255,255,255,.5); max-width: 560px; font-size: 17px; line-height: 1.75; }

.svc-card {
  background: rgba(255,255,255,.035); border: 1px solid rgba(255,255,255,.07);
  border-radius: var(--r); padding: 38px 32px;
  position: relative; overflow: hidden; transition: all .3s;
  display: flex; flex-direction: column;
}
.svc-card::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2.5px;
  background: linear-gradient(90deg, var(--gold), transparent);
  transform: scaleX(0); transform-origin: left; transition: transform .4s;
}
.svc-card:hover { background: rgba(255,255,255,.055); border-color: rgba(245,201,80,.18); }
.svc-card:hover::after { transform: scaleX(1); }
.svc-num {
  font-family: var(--font-display); font-size: 11px; font-weight: 700;
  letter-spacing: .14em; color: var(--gold); text-transform: uppercase; margin-bottom: 20px;
}
.svc-icon { margin-bottom: 20px; }
.svc-h3 { font-size: 26px; color: white; margin-bottom: 8px; line-height: 1.2; }
.svc-subtitle { font-size: 12px; color: rgba(255,255,255,.32); margin-bottom: 24px; line-height: 1.5; }
.svc-divider { height: 1px; background: rgba(255,255,255,.07); margin-bottom: 24px; }
.svc-body { font-size: 14.5px; line-height: 1.78; color: rgba(255,255,255,.55); margin-bottom: 28px; flex-grow: 1; }
.svc-detail { margin-bottom: 20px; }
.svc-detail-l { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.25); margin-bottom: 5px; }
.svc-detail-v { font-size: 13px; line-height: 1.55; color: rgba(255,255,255,.48); }
.svc-cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; color: var(--gold); transition: gap .2s;
}
.svc-cta:hover { gap: 12px; color: var(--gold); }
.svc-cta::after { content: '→'; }

/* Services full-width HMGP breakdown (fourth row) */
.svc-hmgp-breakdown {
  margin-top: 28px; padding: 28px;
  background: rgba(245,201,80,.04); border: 1px solid rgba(245,201,80,.1);
  border-radius: var(--r-sm);
}
.svc-hmgp-breakdown h5 { color: var(--gold); margin-bottom: 16px; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.svc-checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.svc-check { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; color: rgba(255,255,255,.5); line-height: 1.5; }
.svc-check::before { content: '✓'; color: var(--gold); font-weight: 700; flex-shrink: 0; margin-top: 1px; }

/* ════════════════════════════════════════════════════════
   AUDIENCE
════════════════════════════════════════════════════════ */
#audience { background: var(--light-alt); }
.audience-header { margin-bottom: 52px; }
.audience-header h2 { color: var(--text-dark); margin-bottom: 14px; }
.audience-header p  { color: var(--text-body); font-size: 17px; max-width: 560px; line-height: 1.75; }

.aud-card {
  background: white; border: 1px solid var(--light-border); border-radius: var(--r);
  padding: 34px 28px; transition: all .3s;
}
.aud-card:hover { transform: translateY(-5px); box-shadow: 0 16px 44px rgba(24,0,173,.09); border-color: var(--brand); }
.aud-icon {
  width: 54px; height: 54px; background: var(--light-alt); border: 1px solid var(--light-border);
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.aud-h3 { font-size: 18px; color: var(--text-dark); margin-bottom: 10px; }
.aud-body { font-size: 14px; line-height: 1.72; color: var(--text-body); margin-bottom: 16px; }
.aud-tag {
  display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--brand); background: var(--light-alt);
  padding: 4px 10px; border-radius: 20px; border: 1px solid var(--light-border);
}

/* ════════════════════════════════════════════════════════
   PROCESS
════════════════════════════════════════════════════════ */
#process { background: var(--dark-alt); }
.process-header { margin-bottom: 56px; }
.process-header h2 { color: white; }
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.process-step {
  padding: 48px 36px;
  background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.05);
  position: relative;
}
.process-step:first-child { border-radius: var(--r) 0 0 var(--r); }
.process-step:last-child  { border-radius: 0 var(--r) var(--r) 0; }
.step-num-wrap { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.step-circle {
  width: 56px; height: 56px; border-radius: 50%;
  border: 1.5px solid rgba(245,201,80,.3); background: rgba(245,201,80,.06);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.step-circle span { font-family: var(--font-display); font-size: 20px; font-weight: 900; color: var(--gold); }
.step-connector {
  flex: 1; height: 1px;
  background: linear-gradient(90deg, rgba(245,201,80,.3) 0%, rgba(245,201,80,.05) 100%);
}
.process-step:last-child .step-connector { display: none; }
.step-h3 { font-size: 22px; color: white; margin-bottom: 14px; }
.step-body { font-size: 15px; line-height: 1.78; color: rgba(255,255,255,.48); }

/* ════════════════════════════════════════════════════════
   ABOUT
════════════════════════════════════════════════════════ */
#about { background: var(--dark); }
.about-text h2 { color: white; margin-bottom: 24px; }
.about-body { font-size: 17px; line-height: 1.82; color: rgba(255,255,255,.55); }
.about-body p + p { margin-top: 18px; }
.about-quote {
  margin: 32px 0; padding: 26px 30px;
  border-left: 3px solid var(--gold); background: rgba(245,201,80,.04);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.about-quote p { font-family: var(--font-display); font-size: 20px; font-style: italic; line-height: 1.55; color: var(--gold); }
.creds-list { margin-top: 32px; display: flex; flex-direction: column; gap: 12px; }
.cred-row { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: rgba(255,255,255,.45); line-height: 1.55; }
.cred-row::before { content: '✓'; color: var(--gold); font-weight: 700; flex-shrink: 0; }
.about-portrait {
  aspect-ratio: 3/4; border-radius: var(--r); overflow: hidden;
  background: linear-gradient(160deg, var(--dark-card) 0%, var(--dark-mid) 100%);
  border: 1px solid rgba(255,255,255,.06);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  padding-bottom: 0; position: relative;
}

/* ════════════════════════════════════════════════════════
   RESOURCES PREVIEW
════════════════════════════════════════════════════════ */
#resources-preview { background: var(--white); }
.res-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; margin-bottom: 48px; flex-wrap: wrap;
}
.res-card {
  border: 1px solid var(--light-border); border-radius: var(--r); overflow: hidden;
  background: white; text-decoration: none; color: inherit; display: block; transition: all .3s;
}
.res-card:hover { transform: translateY(-5px); box-shadow: 0 16px 44px rgba(24,0,173,.1); }
.res-card-thumb { aspect-ratio: 16/9; overflow: hidden; position: relative; }
.res-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.res-card:hover .res-card-thumb img { transform: scale(1.04); }
.res-card-body { padding: 26px; }
.res-tag { font-size: 10px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--brand); margin-bottom: 10px; }
.res-title { font-family: var(--font-display); font-size: 18px; font-weight: 700; line-height: 1.35; color: var(--text-dark); margin-bottom: 12px; }
.res-excerpt { font-size: 14px; line-height: 1.68; color: var(--text-muted); }

/* ════════════════════════════════════════════════════════
   CONTACT
════════════════════════════════════════════════════════ */
#contact {
  background: var(--brand); position: relative; overflow: hidden;
}
#contact::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(circle, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 40px 40px;
}
#contact::after {
  content: ''; position: absolute; bottom: -40%; right: -15%;
  width: 60%; height: 120%;
  background: radial-gradient(ellipse, rgba(245,201,80,.12) 0%, transparent 65%);
  pointer-events: none;
}
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; position: relative; z-index: 1; }
.contact-h2 { font-family: var(--font-display); font-size: clamp(26px, 3.5vw, 44px); font-weight: 700; line-height: 1.12; color: white; margin-bottom: 20px; }
.contact-sub { font-size: 16px; line-height: 1.78; color: rgba(255,255,255,.62); }
.trust-list { margin-top: 40px; display: flex; flex-direction: column; gap: 14px; }
.trust-item { display: flex; align-items: flex-start; gap: 12px; font-size: 14px; color: rgba(255,255,255,.52); line-height: 1.55; }
.trust-item::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex-shrink: 0; margin-top: 5px; }

/* Form */
.form-wrap { background: white; border-radius: var(--r); padding: 40px; box-shadow: 0 24px 60px rgba(0,0,0,.2); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1/-1; }
.form-lbl { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--text-muted); }
.form-input, .form-select {
  padding: 13px 16px; border: 1.5px solid rgba(24,0,173,.12); border-radius: var(--r-sm);
  font-family: var(--font-body); font-size: 14px; color: var(--text-dark);
  background: white; outline: none; transition: border-color .2s; width: 100%;
}
.form-input:focus, .form-select:focus { border-color: var(--brand); }
.form-input::placeholder { color: var(--text-faint); }
.form-submit {
  width: 100%; background: var(--brand); color: white; border: none;
  padding: 16px; border-radius: var(--r-sm); font-family: var(--font-body);
  font-size: 15px; font-weight: 700; cursor: pointer; transition: background .2s; margin-top: 8px;
}
.form-submit:hover { background: var(--brand-mid); }
.form-note { font-size: 11.5px; color: var(--text-muted); text-align: center; margin-top: 14px; line-height: 1.6; }

/* CF7 override */
.wpcf7 .wpcf7-text, .wpcf7 .wpcf7-email, .wpcf7 .wpcf7-select, .wpcf7 .wpcf7-textarea {
  padding: 13px 16px; border: 1.5px solid rgba(24,0,173,.12); border-radius: var(--r-sm);
  font-family: var(--font-body); font-size: 14px; color: var(--text-dark);
  background: white; outline: none; transition: border-color .2s; width: 100%;
}
.wpcf7 .wpcf7-text:focus, .wpcf7 .wpcf7-email:focus, .wpcf7 .wpcf7-select:focus { border-color: var(--brand); }
.wpcf7 input[type=submit] {
  width: 100%; background: var(--brand); color: white; border: none;
  padding: 16px; border-radius: var(--r-sm); font-family: var(--font-body);
  font-size: 15px; font-weight: 700; cursor: pointer; transition: background .2s; margin-top: 8px;
}
.wpcf7 input[type=submit]:hover { background: var(--brand-mid); }

/* ════════════════════════════════════════════════════════
   FOOTER
════════════════════════════════════════════════════════ */
#site-footer { background: var(--dark); padding: 52px 0 40px; border-top: 1px solid rgba(255,255,255,.04); }
.footer-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 48px; margin-bottom: 40px; flex-wrap: wrap; }
.footer-brand-name { font-family: var(--font-display); font-weight: 700; font-size: 15px; color: rgba(255,255,255,.45); }
.footer-brand-sub  { font-size: 11px; color: rgba(255,255,255,.2); margin-top: 3px; }
.footer-nav-cols { display: flex; gap: 48px; }
.footer-nav-col h6 { font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.22); margin-bottom: 12px; }
.footer-nav-col ul { display: flex; flex-direction: column; gap: 10px; }
.footer-nav-col a { font-size: 13px; color: rgba(255,255,255,.35); transition: color .2s; }
.footer-nav-col a:hover { color: var(--gold); }
.footer-bottom { padding-top: 28px; border-top: 1px solid rgba(255,255,255,.04); display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.footer-copy { font-size: 12px; color: rgba(255,255,255,.22); }
.footer-disclaimer { font-size: 11px; color: rgba(255,255,255,.15); line-height: 1.75; max-width: 700px; }

/* ════════════════════════════════════════════════════════
   ██████╗ ██╗      ██████╗  ██████╗
   ██╔══██╗██║     ██╔═══██╗██╔════╝
   ██████╔╝██║     ██║   ██║██║  ███╗
   ██╔══██╗██║     ██║   ██║██║   ██║
   ██████╔╝███████╗╚██████╔╝╚██████╔╝
   ╚═════╝ ╚══════╝ ╚═════╝  ╚═════╝
   EDITORIAL BLOG — Industry-publication aesthetic
   Modeled on ProPublica / The Atlantic / POLITICO
════════════════════════════════════════════════════════ */

/* Blog-specific body class overrides */
body.blog, body.single, body.archive, body.category {
  background: var(--off-white);
}

/* Blog header bar */
.blog-masthead {
  background: var(--dark);
  border-bottom: 3px solid var(--gold);
  padding: 0;
}
.blog-masthead-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.masthead-brand {
  display: flex; align-items: center; gap: 14px; text-decoration: none;
}
.masthead-rule { width: 1px; height: 30px; background: rgba(255,255,255,.12); }
.masthead-pub-name {
  font-family: var(--font-display); font-weight: 700; font-size: 16px; color: white; line-height: 1;
}
.masthead-pub-desc { font-size: 10px; color: var(--text-muted); letter-spacing: .08em; text-transform: uppercase; }
.masthead-nav { display: flex; align-items: center; gap: 20px; }
.masthead-nav a { font-size: 12px; font-weight: 600; color: rgba(255,255,255,.55); letter-spacing: .02em; transition: color .2s; }
.masthead-nav a:hover { color: var(--gold); }
.masthead-subscribe { background: var(--gold); color: var(--dark); padding: 8px 16px; border-radius: var(--r-xs); font-size: 12px; font-weight: 700; }

/* Section label / category banner */
.category-banner {
  background: var(--brand); padding: 10px 0;
}
.category-banner-inner { display: flex; align-items: center; gap: 12px; }
.category-banner-label { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.4); }
.category-banner-name  { font-size: 13px; font-weight: 700; color: white; }
.category-pills { display: flex; gap: 8px; flex-wrap: wrap; }
.category-pill {
  font-size: 11px; font-weight: 700; padding: 5px 12px; border-radius: 20px;
  background: rgba(255,255,255,.1); color: rgba(255,255,255,.6);
  transition: all .2s; text-decoration: none;
}
.category-pill:hover, .category-pill.active { background: var(--gold); color: var(--dark); }

/* Featured article hero (first post) */
.featured-article {
  background: white; border-bottom: 1px solid rgba(0,0,0,.06);
}
.featured-article-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0; min-height: 480px;
}
.featured-thumb {
  position: relative; overflow: hidden;
}
.featured-thumb img { width: 100%; height: 100%; object-fit: cover; }
.featured-thumb-placeholder {
  width: 100%; height: 100%; min-height: 380px;
  background: linear-gradient(145deg, var(--dark) 0%, var(--brand) 100%);
  display: flex; align-items: center; justify-content: center;
}
.featured-category-tag {
  position: absolute; top: 24px; left: 24px;
  background: var(--gold); color: var(--dark);
  font-size: 10px; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; padding: 5px 12px; border-radius: 3px;
}
.featured-text {
  padding: 52px; display: flex; flex-direction: column; justify-content: center;
  border-left: none;
}
.featured-label { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--brand); margin-bottom: 16px; }
.featured-title {
  font-family: var(--font-display); font-size: clamp(26px, 3vw, 40px);
  font-weight: 900; line-height: 1.1; color: var(--text-dark); margin-bottom: 18px; letter-spacing: -.02em;
}
.featured-title a { color: inherit; transition: color .2s; }
.featured-title a:hover { color: var(--brand); }
.featured-excerpt { font-size: 16px; line-height: 1.75; color: var(--text-body); margin-bottom: 28px; }
.featured-meta { display: flex; align-items: center; gap: 16px; font-size: 12px; color: var(--text-muted); }
.featured-meta .sep { width: 3px; height: 3px; background: var(--text-faint); border-radius: 50%; }
.featured-read-more {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700;
  color: var(--brand); margin-top: 20px; transition: gap .2s;
}
.featured-read-more:hover { gap: 12px; color: var(--brand-mid); }
.featured-read-more::after { content: '→'; }

/* Blog main content layout */
.blog-layout {
  display: grid; grid-template-columns: 1fr 300px; gap: 48px; padding: 52px 0 80px; align-items: start;
}
.blog-main {}

/* Post grid */
.posts-grid { display: flex; flex-direction: column; gap: 0; }
.post-card-row {
  display: grid; grid-template-columns: 200px 1fr; gap: 28px;
  padding: 28px 0; border-bottom: 1px solid rgba(0,0,0,.06); align-items: start;
}
.post-card-row:first-child { padding-top: 0; }
.post-thumb-sm { border-radius: var(--r-sm); overflow: hidden; aspect-ratio: 4/3; }
.post-thumb-sm img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.post-thumb-sm:hover img { transform: scale(1.05); }
.post-thumb-placeholder {
  width: 100%; height: 100%; min-height: 150px;
  display: flex; align-items: center; justify-content: center;
}
.post-card-cat { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 8px; }
.post-card-title {
  font-family: var(--font-display); font-size: 20px; font-weight: 700;
  line-height: 1.25; color: var(--text-dark); margin-bottom: 10px; letter-spacing: -.015em;
}
.post-card-title a { color: inherit; }
.post-card-title a:hover { color: var(--brand); }
.post-card-excerpt { font-size: 14px; line-height: 1.68; color: var(--text-body); margin-bottom: 12px; }
.post-card-meta { font-size: 12px; color: var(--text-muted); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.post-card-meta-dot { width: 3px; height: 3px; background: var(--text-faint); border-radius: 50%; }

/* Sidebar */
.blog-sidebar { position: sticky; top: 88px; }
.sidebar-widget { background: white; border: 1px solid rgba(0,0,0,.07); border-radius: var(--r); padding: 26px; margin-bottom: 24px; }
.sidebar-widget-title {
  font-size: 10px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-muted); padding-bottom: 14px; border-bottom: 2px solid var(--gold);
  margin-bottom: 20px;
}
/* CTA widget */
.sidebar-cta-widget { background: var(--dark); border-color: transparent; }
.sidebar-cta-widget .sidebar-widget-title { color: rgba(255,255,255,.35); border-color: var(--gold); }
.sidebar-cta-widget h4 { font-size: 18px; color: white; margin-bottom: 10px; line-height: 1.3; }
.sidebar-cta-widget p { font-size: 14px; color: rgba(255,255,255,.45); line-height: 1.65; margin-bottom: 18px; }
/* Recent posts in sidebar */
.sidebar-posts { display: flex; flex-direction: column; gap: 18px; }
.sidebar-post { display: flex; gap: 12px; text-decoration: none; }
.sidebar-post-thumb { width: 60px; height: 60px; border-radius: var(--r-sm); overflow: hidden; flex-shrink: 0; }
.sidebar-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sidebar-post-thumb-placeholder { width: 100%; height: 100%; }
.sidebar-post-title { font-family: var(--font-display); font-size: 13.5px; font-weight: 700; line-height: 1.35; color: var(--text-dark); transition: color .2s; }
.sidebar-post:hover .sidebar-post-title { color: var(--brand); }
.sidebar-post-date { font-size: 11px; color: var(--text-muted); margin-top: 4px; }
/* Topics widget */
.topic-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.topic-tag { font-size: 11px; font-weight: 700; padding: 5px 12px; border-radius: 20px; background: var(--light-alt); color: var(--text-body); border: 1px solid var(--light-border); text-decoration: none; transition: all .2s; }
.topic-tag:hover { background: var(--brand); color: white; border-color: var(--brand); }

/* Pagination */
.blog-pagination { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 40px 0; }
.blog-pagination a, .blog-pagination span { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: var(--r-sm); font-size: 13px; font-weight: 700; border: 1px solid var(--light-border); color: var(--text-body); transition: all .2s; text-decoration: none; }
.blog-pagination a:hover { background: var(--brand); color: white; border-color: var(--brand); }
.blog-pagination .current { background: var(--brand); color: white; border-color: var(--brand); }

/* ─── SINGLE POST ─── */
.post-header-section { background: var(--dark); padding: 120px 0 64px; }
.post-header-inner { max-width: 780px; }
.post-header-cat { font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
.post-header-title { font-family: var(--font-display); font-size: clamp(32px, 4.5vw, 58px); font-weight: 900; color: white; line-height: 1.06; letter-spacing: -.025em; margin-bottom: 24px; }
.post-header-excerpt { font-size: 18px; line-height: 1.72; color: rgba(255,255,255,.52); margin-bottom: 28px; max-width: 640px; }
.post-header-meta { display: flex; align-items: center; gap: 14px; font-size: 12px; color: rgba(255,255,255,.3); flex-wrap: wrap; }
.post-header-meta-sep { width: 3px; height: 3px; background: rgba(255,255,255,.2); border-radius: 50%; }

.post-featured-img-wrap { background: var(--dark-alt); }
.post-featured-img-inner { max-width: 1000px; margin: 0 auto; padding: 0 48px; transform: translateY(-32px); }
.post-featured-img-inner img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--r); box-shadow: 0 24px 64px rgba(0,0,0,.3); }

.single-post-layout { display: grid; grid-template-columns: 1fr 280px; gap: 56px; align-items: start; padding: 40px 0 80px; }
.post-content-area { font-size: 18px; line-height: 1.82; color: var(--text-body); }
.post-content-area h2 { font-size: clamp(22px,2.5vw,30px); color: var(--text-dark); margin: 48px 0 18px; }
.post-content-area h3 { font-size: 22px; color: var(--text-dark); margin: 36px 0 14px; }
.post-content-area p { margin-bottom: 22px; }
.post-content-area ul, .post-content-area ol { margin: 0 0 22px 22px; line-height: 1.82; color: var(--text-body); }
.post-content-area li { margin-bottom: 6px; }
.post-content-area blockquote { margin: 36px 0; padding: 28px 36px; border-left: 3px solid var(--gold); background: var(--light-alt); border-radius: 0 var(--r-sm) var(--r-sm) 0; font-family: var(--font-display); font-style: italic; font-size: 22px; line-height: 1.5; color: var(--text-dark); }
.post-content-area strong { color: var(--text-dark); }
.post-inline-cta { background: var(--dark); border-radius: var(--r); padding: 36px 40px; margin: 48px 0; display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-wrap: wrap; }
.post-inline-cta h4 { color: white; font-size: 20px; margin-bottom: 8px; }
.post-inline-cta p  { color: rgba(255,255,255,.48); font-size: 14px; line-height: 1.65; }
.single-sidebar { position: sticky; top: 88px; }

/* ════════════════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .stats-grid { grid-template-columns: repeat(2,1fr); }
  .grid-4, .aud-grid-4 { grid-template-columns: repeat(2,1fr); }
  .grid-2 { grid-template-columns: 1fr; gap: 48px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .featured-article-inner { grid-template-columns: 1fr; }
  .featured-thumb { min-height: 280px; }
  .blog-layout { grid-template-columns: 1fr; }
  .blog-sidebar { position: static; }
  .single-post-layout { grid-template-columns: 1fr; }
  .single-sidebar { position: static; }
}
@media (max-width: 860px) {
  /* Containers */
  .wrap, .wrap--narrow { padding: 0 24px; }
  .nav-inner { padding: 0 24px; }
  .hero-inner { padding: 96px 24px 72px; }
  .section { padding: 72px 0; }

  /* Nav */
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; top: 72px; left: 0; right: 0;
    background: rgba(7,4,26,.97); backdrop-filter: blur(20px);
    padding: 28px 24px; gap: 18px; z-index: 999;
    border-top: 1px solid var(--dark-border);
    width: 100vw; /* Prevent mobile nav from causing overflow */
  }
  .nav-toggle { display: flex; }

  /* Hero — hide decorative elements that cause mobile overflow */
  .hero-geo { display: none; }
  .hero-glow-l { width: 100%; left: 0; top: 0; height: 50%; }
  .hero-glow-r { display: none; }

  /* Creds — stack vertically on mobile */
  .hero-creds { flex-wrap: wrap; gap: 10px 0; flex-direction: column; margin-top: 36px; }
  .cred-pill { white-space: normal; flex-shrink: 1; }

  /* Grids */
  .grid-3, .svc-grid-3, .process-grid { grid-template-columns: 1fr; gap: 24px; }
  .grid-4, .aud-grid-4, .aud-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }

  /* Blog */
  .post-card-row { grid-template-columns: 1fr; }
  .post-thumb-sm { aspect-ratio: 16/9; }

  /* Forms */
  .form-row { grid-template-columns: 1fr; }

  /* Footer */
  .footer-top { flex-direction: column; }
  .footer-nav-cols { flex-wrap: wrap; gap: 28px; }

  /* Process */
  .process-step:first-child, .process-step:last-child { border-radius: 0; }
  .process-step { border-radius: var(--r-sm); }

  /* Stats — single column on very small screens */
  @media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
  }
}

