/* ========================================
   EGTF.ORG — Design System
   Existential Global Threat Foundation
   ======================================== */

/* --- CSS Custom Properties --- */
:root {
  --navy:       #0b1e3d;
  --navy-mid:   #1a3a6b;
  --steel:      #1d6fa4;
  --steel-lt:   #2e87c0;
  --ice:        #e8f2fa;
  --ice-deep:   #d0e6f5;
  --off-white:  #f5f7fa;
  --white:      #ffffff;
  --ink:        #111827;
  --ink-mid:    #374151;
  --ink-lt:     #6b7280;
  --border:     #e2e8f0;
  --border-dk:  rgba(255,255,255,0.08);

  --alert-red:  #c0392b;
  --amber:      #d4870a;
  --green:      #1e7e5a;

  --header-h:   72px;
  --radius:     4px;
  --radius-lg:  8px;

  --font-serif: 'DM Serif Display', Georgia, serif;
  --font-sans:  'Inter', system-ui, sans-serif;

  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.14);
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
  background: var(--off-white);
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--steel); text-decoration: none; }
a:hover { color: var(--steel-lt); }

h1, h2, h3, h4, h5 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.2;
  color: var(--navy);
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.05rem; font-family: var(--font-sans); font-weight: 600; letter-spacing: 0.01em; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

ul, ol { padding-left: 1.4em; }
li { margin-bottom: 0.35em; }

/* --- Accessibility --- */
.skip-link {
  position: absolute; top: -100px; left: 1rem;
  background: var(--steel); color: #fff; padding: 0.5rem 1rem;
  border-radius: 0 0 var(--radius) var(--radius);
  z-index: 9999; font-size: 0.875rem;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* --- Layout Utilities --- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }

/* --- Section Label --- */
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 1rem;
}
.section-label::before {
  content: '';
  width: 24px;
  height: 2px;
  background: var(--steel);
  display: block;
  flex-shrink: 0;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.18s ease;
  border: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--steel);
  color: #fff;
  border-color: var(--steel);
}
.btn-primary:hover {
  background: var(--steel-lt);
  border-color: var(--steel-lt);
  color: #fff;
}
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--border);
}
.btn-outline:hover {
  border-color: var(--steel);
  color: var(--steel);
}
.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.4);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
  color: #fff;
}
.btn-sm { padding: 0.5rem 1rem; font-size: 0.8rem; }

/* ========================================
   HEADER
   ======================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-mark { display: block; flex-shrink: 0; }
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.logo-abbr {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.08em;
}
.logo-full {
  font-family: var(--font-sans);
  font-size: 0.65rem;
  color: var(--ink-lt);
  font-weight: 400;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.site-nav ul {
  display: flex;
  align-items: center;
  list-style: none;
  padding: 0;
  gap: 0;
}
.site-nav a {
  display: block;
  padding: 0.5rem 0.9rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-mid);
  text-decoration: none;
  position: relative;
  transition: color 0.18s;
}
.site-nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0.9rem;
  right: 0.9rem;
  height: 2px;
  background: var(--steel);
  transform: scaleX(0);
  transition: transform 0.2s ease;
  transform-origin: left;
}
.site-nav a:hover,
.site-nav a.active {
  color: var(--navy);
}
.site-nav a:hover::after,
.site-nav a.active::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  transition: all 0.2s;
}

/* ========================================
   HERO
   ======================================== */
.hero {
  background: var(--navy);
  position: relative;
  overflow: hidden;
  padding: 5rem 0 5.5rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
/* Subtle grid pattern */
.hero-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(29,111,164,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29,111,164,0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 40%, transparent 100%);
}
/* Glow */
.hero-bg::after {
  content: '';
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(29,111,164,0.18) 0%, transparent 70%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 4rem;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--steel-lt);
  margin-bottom: 1.5rem;
}
.hero-eyebrow::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--steel-lt);
  display: block;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 1.25rem;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
}
.hero h1 em {
  font-style: italic;
  color: rgba(255,255,255,0.75);
}

.hero-desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.72);
  line-height: 1.75;
  max-width: 580px;
  margin-bottom: 2.5rem;
}

.hero-ctas {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Hero aside — risk level panel */
.hero-aside {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(29,111,164,0.25);
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  backdrop-filter: blur(8px);
}

.hero-aside-label {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: 1.5rem;
}

.risk-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  gap: 1rem;
}
.risk-item:last-child { border-bottom: none; }
.risk-item-name {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.75);
  font-weight: 500;
}
.risk-badge {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: 2px;
  white-space: nowrap;
}
.risk-critical { background: rgba(192,57,43,0.2); color: #ff6b6b; border: 1px solid rgba(192,57,43,0.4); }
.risk-high     { background: rgba(212,135,10,0.2); color: #fbbf24; border: 1px solid rgba(212,135,10,0.4); }
.risk-elevated { background: rgba(29,111,164,0.2); color: #60b4f0; border: 1px solid rgba(29,111,164,0.4); }

.hero-aside-footer {
  margin-top: 1.5rem;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.3);
  line-height: 1.5;
}

/* ========================================
   METRICS BAR
   ======================================== */
.metrics-bar {
  background: var(--navy-mid);
  padding: 3rem 0;
}
.metrics-grid {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.metric-item {
  padding: 0 2rem;
  border-right: 1px solid rgba(255,255,255,0.08);
  text-align: center;
}
.metric-item:first-child { padding-left: 0; }
.metric-item:last-child { border-right: none; }
.metric-num {
  font-family: var(--font-serif);
  font-size: 2.75rem;
  color: var(--white);
  line-height: 1;
  margin-bottom: 0.4rem;
}
.metric-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* ========================================
   THREAT AREAS GRID
   ======================================== */
.threats-section { background: var(--white); }

.threat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 3rem;
}

.threat-card {
  background: var(--white);
  padding: 2rem;
  position: relative;
  transition: background 0.2s;
}
.threat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--card-color, var(--steel));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}
.threat-card:hover::before { transform: scaleX(1); }
.threat-card:hover { background: var(--off-white); }

.threat-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--ice);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  color: var(--steel);
}
.threat-icon svg { width: 22px; height: 22px; }

.threat-card h3 {
  font-size: 1.05rem;
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.6rem;
}
.threat-card p {
  font-size: 0.875rem;
  color: var(--ink-lt);
  line-height: 1.65;
  margin: 0;
}

/* ========================================
   PUBLICATIONS / RESEARCH
   ======================================== */
.pub-list { margin-top: 2.5rem; }
.pub-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 0 1.5rem;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}
.pub-item:first-child { border-top: 1px solid var(--border); }

.pub-year {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--steel);
  letter-spacing: 0.04em;
  padding-top: 0.15rem;
}
.pub-type {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-lt);
  border: 1px solid var(--border);
  padding: 0.15rem 0.5rem;
  border-radius: 2px;
  margin-bottom: 0.5rem;
}
.pub-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  color: var(--navy);
  margin-bottom: 0.4rem;
  line-height: 1.35;
}
.pub-title a { color: inherit; }
.pub-title a:hover { color: var(--steel); }
.pub-authors {
  font-size: 0.8rem;
  color: var(--ink-lt);
  margin-bottom: 0.4rem;
}
.pub-abstract {
  font-size: 0.85rem;
  color: var(--ink-mid);
  line-height: 1.65;
}

/* ========================================
   NEWS CARDS
   ======================================== */
.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.news-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.2s, transform 0.2s;
}
.news-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.news-tag {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 0.75rem;
}
.news-card h3 {
  font-size: 1.05rem;
  font-family: var(--font-serif);
  color: var(--navy);
  margin-bottom: 0.75rem;
  line-height: 1.35;
  flex: 1;
}
.news-card p {
  font-size: 0.85rem;
  color: var(--ink-lt);
  margin-bottom: 1rem;
}
.news-date {
  font-size: 0.75rem;
  color: var(--ink-lt);
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
  margin-top: auto;
}

/* ========================================
   TEAM CARDS
   ======================================== */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}
.team-card {
  text-align: center;
}
.team-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--ice);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--navy-mid);
  border: 2px solid var(--border);
}
.team-name {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.25rem;
}
.team-title {
  font-size: 0.78rem;
  color: var(--ink-lt);
  line-height: 1.4;
}
.team-area {
  font-size: 0.72rem;
  color: var(--steel);
  font-weight: 600;
  margin-top: 0.25rem;
}

/* ========================================
   PAGE HEADER (inner pages)
   ======================================== */
.page-header {
  background: var(--navy);
  padding: 3.5rem 0;
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(29,111,164,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29,111,164,0.07) 1px, transparent 1px);
  background-size: 48px 48px;
}
.page-header-inner {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
.breadcrumb {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 0.75rem;
}
.breadcrumb a { color: rgba(255,255,255,0.5); }
.breadcrumb a:hover { color: rgba(255,255,255,0.8); }
.page-header h1 {
  color: var(--white);
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  margin-bottom: 0.75rem;
}
.page-header p {
  color: rgba(255,255,255,0.6);
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0;
}

/* ========================================
   PAGE BODY (inner pages)
   ======================================== */
.page-body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}
.page-body-2col {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 4rem;
  align-items: start;
}

/* ========================================
   PROSE
   ======================================== */
.prose { max-width: 720px; }
.prose h2 {
  font-size: 1.5rem;
  margin: 2.5rem 0 0.75rem;
  color: var(--navy);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 1.15rem; margin: 1.5rem 0 0.5rem; }
.prose p { color: var(--ink-mid); }
.prose ul, .prose ol { color: var(--ink-mid); margin-bottom: 1rem; }
.prose li { margin-bottom: 0.4rem; }
.prose code {
  background: var(--ice);
  border-radius: 3px;
  padding: 0.15em 0.4em;
  font-size: 0.875em;
  color: var(--navy-mid);
}
.prose a { color: var(--steel); }

/* ========================================
   CTA BANNER
   ======================================== */
.cta-banner {
  background: var(--navy-mid);
  padding: 4.5rem 0;
  text-align: center;
}
.cta-banner h2 { color: var(--white); margin-bottom: 1rem; }
.cta-banner p {
  color: rgba(255,255,255,0.6);
  max-width: 540px;
  margin: 0 auto 2rem;
}

/* ========================================
   CONTACT FORM
   ======================================== */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--ink-mid);
  margin-bottom: 0.4rem;
}
.form-control {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-sans);
  font-size: 0.925rem;
  color: var(--ink);
  background: var(--white);
  transition: border-color 0.18s, box-shadow 0.18s;
  appearance: none;
}
.form-control:focus {
  outline: none;
  border-color: var(--steel);
  box-shadow: 0 0 0 3px rgba(29,111,164,0.12);
}
textarea.form-control { resize: vertical; min-height: 140px; }
select.form-control { cursor: pointer; }
.hp-field { display: none !important; }

/* ========================================
   SIDEBAR
   ======================================== */
.sidebar-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}
.sidebar-card h4 {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-lt);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}
.sidebar-card p, .sidebar-card li {
  font-size: 0.875rem;
  color: var(--ink-mid);
}
.sidebar-card ul { list-style: none; padding: 0; }
.sidebar-card li { padding: 0.4rem 0; border-bottom: 1px solid var(--border); }
.sidebar-card li:last-child { border-bottom: none; }
.sidebar-card a { color: var(--steel); font-weight: 500; }

/* ========================================
   PROGRAMS
   ======================================== */
.program-list { margin-top: 2rem; }
.program-item {
  display: grid;
  grid-template-columns: 5px 1fr;
  gap: 0 1.75rem;
  margin-bottom: 2.5rem;
  align-items: start;
}
.program-bar {
  background: var(--steel);
  height: 100%;
  min-height: 100px;
  border-radius: 2px;
}
.program-content h3 {
  font-size: 1.15rem;
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 0.4rem;
}
.program-meta {
  font-size: 0.78rem;
  color: var(--steel);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.6rem;
}
.program-content p { font-size: 0.9rem; color: var(--ink-mid); }

/* ========================================
   TIMELINE (about page sidebar)
   ======================================== */
.timeline { position: relative; padding-left: 1.5rem; }
.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 0;
  width: 1px;
  background: var(--border);
}
.timeline-item {
  position: relative;
  margin-bottom: 1.5rem;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -1.5rem;
  top: 4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--steel);
  border: 1.5px solid var(--white);
  box-shadow: 0 0 0 2px var(--steel);
  transform: translateX(-3px);
}
.timeline-year {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--steel);
  letter-spacing: 0.06em;
  margin-bottom: 0.2rem;
}
.timeline-desc {
  font-size: 0.8rem;
  color: var(--ink-mid);
  line-height: 1.5;
}

/* ========================================
   SCROLL REVEAL
   ======================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ========================================
   FILTER PILLS
   ======================================== */
.filter-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.pill {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  border: 1px solid var(--border);
  color: var(--ink-lt);
  background: var(--white);
  cursor: pointer;
  transition: all 0.18s;
}
.pill:hover, .pill.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

/* ========================================
   COOKIE BANNER
   ======================================== */
.cookie-banner {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  color: rgba(255,255,255,0.85);
  border-radius: var(--radius-lg);
  padding: 1rem 1.5rem;
  max-width: 560px;
  width: calc(100% - 3rem);
  z-index: 999;
  box-shadow: var(--shadow-lg);
  display: none;
}
.cookie-banner.visible { display: block; }
.cookie-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.cookie-inner p { font-size: 0.85rem; margin: 0; flex: 1; }
.cookie-inner a { color: var(--steel-lt); }
.cookie-actions { display: flex; gap: 0.5rem; flex-shrink: 0; }

/* ========================================
   FOOTER
   ======================================== */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.65);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.5rem 3rem;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 4rem;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  margin-bottom: 1rem;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.06em;
  color: var(--white);
}
.footer-tagline {
  font-size: 0.82rem;
  line-height: 1.5;
  margin-bottom: 0.5rem;
  color: rgba(255,255,255,0.45);
}
.footer-hq {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}
.footer-col h4 {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 1rem;
  font-family: var(--font-sans);
}
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 0.5rem; }
.footer-col a {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.18s;
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 1.25rem 0;
}
.footer-bottom-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer-bottom p {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.3);
  margin: 0;
}
.footer-bottom a { color: rgba(255,255,255,0.45); }

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-aside { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
  .hero-aside-label { display: none; }
  .hero-aside-footer { display: none; }
  .risk-item { flex-direction: column; align-items: flex-start; gap: 0.5rem; padding: 1rem; border-bottom: none; border-right: 1px solid rgba(255,255,255,0.06); }
  .risk-item:last-child { border-right: none; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .metric-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); padding: 1.5rem; }
  .metric-item:nth-child(even) { border-right: none; }
  .threat-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .site-nav { display: none; }
  .site-nav.open { display: block; position: absolute; top: var(--header-h); left: 0; right: 0; background: var(--white); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-md); }
  .site-nav.open ul { flex-direction: column; padding: 1rem 0; }
  .site-nav.open a { padding: 0.75rem 1.5rem; }
  .nav-toggle { display: flex; }
  .hero-aside { grid-template-columns: 1fr; }
  .risk-item { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.06); }
  .threat-grid { grid-template-columns: 1fr; }
  .news-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-nav { grid-template-columns: 1fr 1fr; }
  .page-body-2col { grid-template-columns: 1fr; }
  .pub-item { grid-template-columns: 1fr; gap: 0.25rem; }
  .pub-year { font-size: 0.75rem; }
}

@media (max-width: 480px) {
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-nav { grid-template-columns: 1fr; }
  .hero-ctas { flex-direction: column; }
  .metrics-grid { grid-template-columns: 1fr; }
}
