/* ==========================================================
   VAULT.CSS — THE OSINT VAULT UNIFIED DESIGN SYSTEM
   Bloomberg Terminal × Palantir Intelligence Platform
   Dark matte black / copper premium aesthetic
   Author: Nicole Hurey — TheOSINTVault.io
   Last Updated: May 24, 2026
   ========================================================== */

/* ----------------------------------------------------------
   1. CUSTOM PROPERTIES (DESIGN TOKENS)
   ---------------------------------------------------------- */
:root {
  /* Core palette */
  --black:   #000000;
  --surface: #0d0d10;
  --surface2: #141418;
  --surface3: #1c1c22;
  --copper:  #D4854E;
  --copper-light: #E8985E;
  --copper-dark: #A8622E;
  --slate:   #9898A8;
  --slate-light: #B8B8C8;
  --pearl:   #E8E8EE;
  --white:   #ffffff;

  /* Semantic */
  --bg:          var(--black);
  --bg-card:     var(--surface);
  --bg-elevated: var(--surface2);
  --border:      rgba(212,133,78,0.2);
  --border-strong: rgba(212,133,78,0.45);
  --text-primary:   var(--pearl);
  --text-secondary: var(--slate);
  --text-muted:     #606075;
  --accent:      var(--copper);
  --accent-glow: rgba(212,133,78,0.14);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;

  /* Spacing */
  --gap-xs:  0.5rem;
  --gap-sm:  0.875rem;
  --gap-md:  1.5rem;
  --gap-lg:  2.25rem;
  --gap-xl:  3.5rem;
  --gap-2xl: 6rem;

  /* Layout */
  --max-w: 1280px;
  --max-content: 920px;

  /* Radius */
  --r-sm: 2px;
  --r-md: 4px;

  /* Transitions */
  --transition: 0.15s cubic-bezier(0.4,0,0.2,1);
  /* [NEW] section rhythm separator token */
  --rhythm-sep: linear-gradient(90deg, transparent 0%, rgba(212,133,78,0.15) 25%, rgba(212,133,78,0.08) 50%, rgba(212,133,78,0.15) 75%, transparent 100%);
}

/* ----------------------------------------------------------
   2. RESET & BASE
   ---------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 52px; /* sticky nav height */
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text-primary);
  /* [REFINED] line-height: 1.7 → 1.72 — fractionally more breathing in body text */
  line-height: 1.72;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--copper);
  text-decoration: none;
  transition: color var(--transition), opacity var(--transition);
}
a:hover {
  color: var(--copper-light);
  text-decoration: underline;
}

img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { font-family: var(--font-sans); cursor: pointer; }
input, textarea, select { font-family: var(--font-sans); }
code, pre, kbd { font-family: var(--font-mono); }

/* Skip link */
.skip-link {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--copper);
  color: var(--black);
  padding: 0.6rem 1.2rem;
  font-size: 0.85rem;
  font-weight: 700;
  z-index: 9999;
}
.skip-link:focus { top: 0; }

/* ----------------------------------------------------------
   3. TYPOGRAPHY SCALE
   ---------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--white);
}
h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.25rem, 2.2vw, 1.75rem); }
h3 { font-size: 1.1rem; }
h4 { font-size: 0.9rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--copper); }

p {
  color: var(--text-secondary);
  /* [REFINED] line-height: 1.8 → 1.82 */
  line-height: 1.82;
  font-size: 1rem;
}
p + p { margin-top: 1rem; }

strong { color: var(--pearl); font-weight: 700; }
em { color: var(--copper-light); font-style: normal; }

ul.styled-list, ol.styled-list {
  list-style: none;
  padding-left: 0;
}
ul.styled-list li::before {
  content: '→';
  color: var(--copper);
  margin-right: 0.7rem;
  font-family: var(--font-mono);
}

/* Article body (guide/blog/handbook content) */
.article-body h2 {
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--copper);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.6rem;
  margin: 2.25rem 0 1.1rem;
}
.article-body h3 {
  color: var(--pearl);
  font-size: 1rem;
  margin: 1.4rem 0 0.6rem;
}
.article-body p { color: var(--slate-light); margin-bottom: 1rem; }
.article-body ul, .article-body ol {
  padding-left: 1.5rem;
  margin-bottom: 1.1rem;
}
.article-body li {
  color: var(--slate-light);
  font-size: 0.95rem;
  line-height: 1.75;
  margin-bottom: 0.4rem;
}
.article-body a { color: var(--copper); }
.article-body a:hover { color: var(--copper-light); }
.article-body code {
  background: var(--surface3);
  color: var(--copper);
  padding: 0.18rem 0.5rem;
  font-size: 0.85rem;
  border: 1px solid var(--border);
}

/* ----------------------------------------------------------
   4. SITE HEADER
   ---------------------------------------------------------- */
/* ----------------------------------------------------------
   4B. SITE HEADER
   Precision: authority without theater.
   Every value is intentional — resist the urge to add more.
   ---------------------------------------------------------- */
.site-header {
  background: var(--black);
  border-bottom: 1px solid var(--border);
  padding: 4.5rem var(--gap-lg) 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  /* fine dot grid — operational texture, not decoration */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Ccircle cx='16' cy='16' r='0.9' fill='rgba(212%2C133%2C78%2C0.055)'/%3E%3C/svg%3E");
}

/* atmospheric layer — single controlled copper source, apex above the wordmark */
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 70% 55% at 50% -5%,
    rgba(212,133,78,0.13) 0%,
    rgba(212,133,78,0.04) 45%,
    transparent 72%
  );
  pointer-events: none;
  z-index: 0;
}

/* bottom border — full authority line, fades at edges */
.site-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(212,133,78,0.18) 15%,
    rgba(212,133,78,0.45) 40%,
    rgba(212,133,78,0.45) 60%,
    rgba(212,133,78,0.18) 85%,
    transparent 100%
  );
  z-index: 1;
}

.site-header .brand {
  font-family: var(--font-sans);
  font-size: clamp(2.6rem, 5.5vw, 4.2rem);
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1;
  position: relative;
  z-index: 2;
  /*
    Depth only — no glow theater.
    One tight drop shadow grounds the letters.
    One wide diffuse layer separates them from the background.
    Nothing pulses. Nothing breathes. It just sits there with weight.
  */
  text-shadow:
    0 1px 0   rgba(0,0,0,0.9),
    0 2px 8px rgba(0,0,0,0.7),
    0 0 48px  rgba(212,133,78,0.12);
}

.site-header .brand .tm {
  font-size: 0.26em;
  vertical-align: super;
  color: var(--copper);
  opacity: 0.85;
  letter-spacing: 0;
  font-weight: 600;
}

.site-header .tagline {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--slate-light);
  margin-top: 1.6rem;
  line-height: 2.4;
  position: relative;
  z-index: 2;
}

.site-header .tagline strong {
  color: var(--copper);
  font-weight: 600;
  letter-spacing: 0.18em;
}

/* ----------------------------------------------------------
   5. STICKY NAVIGATION
   ---------------------------------------------------------- */
.vault-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  width: 100%;
  /* surface3 tint rather than pure black — creates separation from page bg */
  background: rgba(8,8,10,0.97);
  backdrop-filter: blur(16px) saturate(1.4);
  -webkit-backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--border);
  overflow: visible;
}
.vault-nav-inner {
  /* no max-width — let it scroll full viewport width */
  width: 100%;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: center; /* center items on wide viewports */
  gap: 0;
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: none;
  -ms-overflow-style: none;
  /* ensure items are always reachable at both ends */
  -webkit-overflow-scrolling: touch;
}
.vault-nav-inner::-webkit-scrollbar { display: none; }
.vault-nav-inner .nav-divider {
  width: 1px;
  height: 22px;
  background: var(--border);
  flex-shrink: 0;
  margin: 0 0.3rem;
}
.vault-nav-inner a.nav-link {
  display: block;
  padding: 0.88rem 0.9rem;
  font-family: var(--font-mono);
  font-size: 0.71rem;
  font-weight: 500;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--slate);
  white-space: nowrap;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.14s ease, border-color 0.14s ease, opacity 0.14s ease;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  pointer-events: auto;
  cursor: pointer;
  opacity: 0.8;
}
.vault-nav-inner a.nav-link:hover {
  color: var(--pearl);
  opacity: 1;
  text-decoration: none;
}
.vault-nav-inner a.nav-link.active {
  color: var(--copper);
  border-bottom-color: rgba(212,133,78,0.6);
  opacity: 1;
  font-weight: 600;
}
.vault-nav-inner a.nav-link.nav-external {
  color: var(--text-muted);
  opacity: 0.6;
}
.vault-nav-inner a.nav-link.nav-external:hover {
  color: var(--slate);
  opacity: 0.85;
}

/* ----------------------------------------------------------
   5B. MOTION — ANIMATIONS & TRANSITIONS
   ---------------------------------------------------------- */

/* ── keyframes ── */

/* header scan — moves top to bottom within the header box only */
/*
  vault-header-scan:
  One pass. Slow. Like a system initializing, not a screensaver.
  7s total. Eases in, drifts across, fades out. Does not loop frantically.
*/
@keyframes vault-header-scan {
  0%   { transform: translateY(0);      opacity: 0;    }
  6%   { opacity: 0.6; }
  88%  { opacity: 0.38; }
  100% { transform: translateY(1400%);  opacity: 0;    }
}

@keyframes vault-fade-up {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes vault-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes vault-scan-line {
  0%   { transform: translateY(-100%); opacity: 0; }
  5%   { opacity: 1; }
  95%  { opacity: 1; }
  100% { transform: translateY(200vh); opacity: 0; }
}

@keyframes vault-pulse-border {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212,133,78,0); }
  50%       { box-shadow: 0 0 0 3px rgba(212,133,78,0.12); }
}

@keyframes vault-flicker {
  0%, 100% { opacity: 1; }
  92%       { opacity: 1; }
  93%       { opacity: 0.85; }
  94%       { opacity: 1; }
  96%       { opacity: 0.9; }
  97%       { opacity: 1; }
}

/* ── site header — entrance ── */
.site-header {
  animation: vault-fade-in 0.6s ease both;
}

/* Brand enters once, cleanly. No ongoing animation — static authority. */
.site-header .brand {
  animation: vault-fade-up 0.9s cubic-bezier(0.16,1,0.3,1) 0.08s both;
}

.site-header .tagline {
  animation: vault-fade-up 0.7s ease both;
  animation-delay: 0.18s;
}

/* ── scan line overlay on site-header — strictly contained ── */
.site-header {
  position: relative;
  overflow: hidden; /* clips scan line to header only */
  isolation: isolate;
}

/*
  Scan line — one boot pass, then silence.
  Feels like initialization, not decoration.
  animation-fill-mode: forwards keeps it hidden after the single pass.
*/
.site-header .site-header-scan {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent     0%,
    transparent     20%,
    rgba(212,133,78,0.55) 50%,
    transparent     80%,
    transparent     100%
  );
  animation: vault-header-scan 7s cubic-bezier(0.4,0,0.8,1) 0.4s 1 forwards;
  pointer-events: none;
  z-index: 3;
}

/* ── dashboard tiles — staggered entrance ── */
.dashboard-tile {
  animation: vault-fade-up 0.55s ease both;
}

.toolkit-grid .dashboard-tile:nth-child(1) { animation-delay: 0.10s; }
.toolkit-grid .dashboard-tile:nth-child(2) { animation-delay: 0.18s; }
.toolkit-grid .dashboard-tile:nth-child(3) { animation-delay: 0.26s; }
.toolkit-grid .dashboard-tile:nth-child(4) { animation-delay: 0.34s; }
.toolkit-grid .dashboard-tile:nth-child(5) { animation-delay: 0.42s; }
.toolkit-grid .dashboard-tile:nth-child(6) { animation-delay: 0.50s; }

/* ── tool cards — subtle pulse on hover ── */
.tool-card:hover {
  animation: vault-pulse-border 1.8s ease infinite;
}

/* ── featured section — flicker on load (once) ── */
.featured-section {
  animation: vault-flicker 8s ease 1.2s 1 both;
}

/* ── SOM items — fade up ── */
.som-item {
  animation: vault-fade-up 0.5s ease both;
}

/* ── intel-network panel — entrance ── */
.intel-network-inner {
  animation: vault-fade-up 0.6s ease both;
  animation-delay: 0.1s;
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ----------------------------------------------------------
   6. TOOL HERO / PAGE HEADER
   ---------------------------------------------------------- */
.page-hero {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 3.5rem var(--gap-lg) 3rem;
  position: relative;
  overflow: hidden;
  /* same atmospheric grammar as site-header, quieter register */
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Ccircle cx='16' cy='16' r='0.75' fill='rgba(212%2C133%2C78%2C0.04)'/%3E%3C/svg%3E");
}
/* ambient depth behind page title */
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 70% at 0% 50%,
    rgba(212,133,78,0.06) 0%,
    transparent 60%
  );
  pointer-events: none;
  z-index: 0;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,133,78,0.4) 30%, rgba(212,133,78,0.4) 70%, transparent);
  z-index: 1;
}
.page-hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.page-hero .eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.page-hero .eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 1px;
  background: var(--copper);
  flex-shrink: 0;
}
.page-hero h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--white);
  margin-bottom: 1.1rem;
}
.page-hero p {
  color: var(--slate-light);
  font-size: 1rem;
  max-width: 700px;
  margin-bottom: 0.6rem;
}
.page-hero .hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-sm);
  margin-top: 1.4rem;
}
.page-hero .meta-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  background: var(--surface3);
  border: 1px solid var(--border);
  padding: 0.35rem 0.8rem;
}

/* ----------------------------------------------------------
   7. MAIN LAYOUT
   ---------------------------------------------------------- */
.vault-main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: var(--gap-xl) var(--gap-lg);
  scroll-margin-top: 52px;
}

.vault-content {
  max-width: var(--max-content);
  margin: 0 auto;
}

/* ----------------------------------------------------------
   8. CARDS
   ---------------------------------------------------------- */
.vault-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: var(--gap-lg);
  position: relative;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.vault-card:hover {
  border-color: var(--border-strong);
  box-shadow: 0 0 28px rgba(212,133,78,0.08);
}
.vault-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--copper), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}
.vault-card:hover::before { opacity: 1; }

.card-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 0.7rem;
  display: block;
}

/* ----------------------------------------------------------
   9. DASHBOARD GRID (Homepage tool tiles)
   ---------------------------------------------------------- */
/*
  GRID SEPARATOR TECHNIQUE — no amber box.
  gap:1px + background:var(--border) produces a visible amber/brown fill
  on any partial row. Instead: border on each card, transparent wrapper background.
*/
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 0;
  background: transparent;
  border: 1px solid var(--border);
  margin-bottom: var(--gap-xl);
}
.dashboard-tile {
  background: var(--surface);
  /* [REFINED] padding: 2rem → 2.1rem — micro increase for internal breathing */
  padding: 2.1rem;
  position: relative;
  transition: background var(--transition), box-shadow var(--transition), transform var(--transition);
  overflow: hidden;
  text-decoration: none;
  display: block;
  /* [NEW] baseline shadow for card grounding */
  box-shadow: 0 2px 12px rgba(0,0,0,0.35);
  /* border approach: no amber bleed on partial rows */
  border-right: 1px solid rgba(212,133,78,0.2);
  border-bottom: 1px solid rgba(212,133,78,0.2);
}
.dashboard-tile:hover {
  background: var(--surface2);
  text-decoration: none;
  /* [NEW] premium elevation on hover */
  box-shadow: 0 10px 40px rgba(0,0,0,0.6), 0 0 0 1px rgba(212,133,78,0.15), 0 4px 20px rgba(212,133,78,0.07);
  transform: translateY(-2px);
}
.dashboard-tile::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: 0;
  background: var(--copper);
  transition: height 0.3s ease;
}
.dashboard-tile:hover::after { height: 100%; }
.dashboard-tile .tile-icon {
  font-size: 1.6rem;
  color: var(--copper);
  /* [REFINED] margin-bottom: 1.1rem → 1.2rem */
  margin-bottom: 1.2rem;
  opacity: 0.9;
}
.dashboard-tile .tile-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--copper);
  /* [REFINED] margin-bottom: 0.6rem → 0.65rem */
  margin-bottom: 0.65rem;
}
.dashboard-tile h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--pearl);
  /* [REFINED] margin-bottom: 0.7rem → 0.8rem */
  margin-bottom: 0.8rem;
  /* [REFINED] line-height: 1.3 → 1.35 */
  line-height: 1.35;
}
.dashboard-tile p {
  font-size: 0.95rem;
  color: var(--slate-light);
  /* [REFINED] line-height: 1.7 → 1.75 */
  line-height: 1.75;
  margin: 0;
}
.dashboard-tile .tile-cta {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
  /* [REFINED] margin-top: 1.1rem → 1.2rem */
  margin-top: 1.2rem;
  display: inline-block;
  transition: color var(--transition), letter-spacing var(--transition);
}
/* [NEW] CTA arrow animation on tile hover */
.dashboard-tile:hover .tile-cta {
  color: var(--copper-light);
  letter-spacing: 0.18em;
}

/* ----------------------------------------------------------
   10. TOOLS GRID (Directory listing)
   ---------------------------------------------------------- */
.tools-section {
  margin-bottom: var(--gap-xl);
}
/*
  Section rhythm separator \u2014 vanishing copper rule between category blocks.
  Creates breathing room and visual pacing without adding DOM noise.
  Opacity is intentionally low \u2014 it should register subconsciously.
*/
.tools-section + .tools-section::before {
  content: '';
  display: block;
  height: 1px;
  margin-bottom: var(--gap-xl);
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(212,133,78,0.12) 20%,
    rgba(212,133,78,0.06) 50%,
    rgba(212,133,78,0.12) 80%,
    transparent 100%
  );
}
.section-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--gap-md);
  margin-bottom: var(--gap-md);
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}
.section-header-row h2 {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--copper);
  font-weight: 600;
}
.section-toggle-icon {
  color: var(--copper);
  font-size: 0.8rem;
  transition: transform 0.2s;
}
.section-header-row.collapsed .section-toggle-icon { transform: rotate(-90deg); }

/* section-title — rendered by main-fixed.js renderToolSections() */
.section-title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--copper);
  padding-bottom: 0.9rem;
  margin-bottom: var(--gap-md);
  border-bottom: 1px solid var(--border);
}

.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 0;
  background: var(--surface);
  align-content: start;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
}
.tool-card {
  background: var(--surface);
  padding: 1.75rem;
  position: relative;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  border-left: 2px solid transparent;
  transition: background 0.16s ease, border-left-color 0.16s ease;
}
.tool-card:hover {
  background: var(--surface2);
  border-left-color: rgba(212,133,78,0.4);
}
.tool-card .tool-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
}
.tool-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--pearl);
  line-height: 1.3;
}
.tool-badge {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--copper);
  background: rgba(212,133,78,0.1);
  border: 1px solid var(--border);
  padding: 0.28rem 0.65rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.tool-description {
  font-size: 0.92rem;
  color: var(--slate-light);
  line-height: 1.7;
  margin-bottom: 0.8rem;
}
.tool-url {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
}
.tool-url a {
  color: var(--copper);
  font-size: 0.7rem;
}
.tool-url strong { color: var(--slate); font-weight: 600; }

/* ----------------------------------------------------------
   11. SEARCH BAR
   ---------------------------------------------------------- */
.vault-search {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: var(--gap-lg);
  margin-bottom: var(--gap-xl);
}
.search-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--copper);
  display: block;
  margin-bottom: 0.75rem;
}
.search-input-row {
  display: flex;
  gap: var(--gap-sm);
}
.vault-search input[type="text"],
.vault-search input[type="search"] {
  flex: 1;
  background: var(--surface3);
  border: 1px solid var(--border);
  color: var(--pearl);
  padding: 0.85rem 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  outline: none;
  transition: border-color var(--transition);
}
.vault-search input:focus { border-color: var(--copper); }
.vault-search input::placeholder { color: var(--text-muted); }

/* ----------------------------------------------------------
   12. CATEGORY FILTER PILLS
   ---------------------------------------------------------- */
.category-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-xs);
  margin-bottom: var(--gap-md);
}
.filter-btn {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
  background: transparent;
  border: 1px solid var(--border);
  padding: 0.45rem 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  background: rgba(212,133,78,0.12);
  border-color: var(--copper);
  color: var(--copper);
}

/* ----------------------------------------------------------
   13. BUTTONS
   ---------------------------------------------------------- */
.btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.85rem 1.6rem;
  border: 1px solid;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
}
.btn-primary {
  background: var(--copper);
  color: var(--black);
  border-color: var(--copper);
}
.btn-primary:hover {
  background: var(--copper-light);
  border-color: var(--copper-light);
  color: var(--black);
  text-decoration: none;
}
.btn-outline {
  background: transparent;
  color: var(--copper);
  border-color: var(--copper);
}
.btn-outline:hover {
  background: rgba(212,133,78,0.12);
  text-decoration: none;
  color: var(--copper-light);
  border-color: var(--copper-light);
}
.btn-ghost {
  background: transparent;
  color: var(--slate);
  border-color: var(--border);
}
.btn-ghost:hover {
  color: var(--pearl);
  border-color: var(--slate);
  text-decoration: none;
}

/* CTA button (homepage) */
.cta-button, .cta-btn {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 0.9rem 1.8rem;
  background: var(--copper);
  color: var(--black);
  border: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  text-decoration: none;
}
.cta-button:hover, .cta-btn:hover {
  background: var(--copper-light);
  color: var(--black);
  text-decoration: none;
}

/* ----------------------------------------------------------
   14. FORM ELEMENTS
   ---------------------------------------------------------- */
.form-field {
  margin-bottom: var(--gap-md);
}
.field-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 0.5rem;
}
.vault-input,
input[type="text"],
input[type="email"],
input[type="date"],
input[type="search"],
input[type="file"],
select,
textarea {
  width: 100%;
  background: var(--surface3);
  border: 1px solid var(--border);
  color: var(--pearl);
  padding: 0.75rem 1rem;
  font-size: 0.92rem;
  font-family: var(--font-sans);
  outline: none;
  transition: border-color var(--transition);
  border-radius: 0;
  -webkit-appearance: none;
  appearance: none;
}
.vault-input:focus, input:focus, select:focus, textarea:focus {
  border-color: var(--copper);
}
.vault-input::placeholder { color: var(--text-muted); }
select { cursor: pointer; }
textarea { resize: vertical; min-height: 90px; }

/* ----------------------------------------------------------
   15. SECTION BLOCKS (content areas)
   ---------------------------------------------------------- */
.section-block {
  padding: var(--gap-xl) var(--gap-lg);
  border-top: 1px solid var(--border);
}
.section-block h2 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 1.1rem;
}
.section-block p {
  color: var(--slate-light);
  font-size: 0.95rem;
  line-height: 1.8;
  max-width: 800px;
}
.section-block ul, .section-block ol {
  padding-left: 1.4rem;
  margin: 0.9rem 0;
}
.section-block li {
  color: var(--slate-light);
  font-size: 0.93rem;
  line-height: 1.7;
  margin-bottom: 0.4rem;
}
.section-block h3 {
  color: var(--pearl);
  font-size: 0.95rem;
  font-weight: 700;
  margin: 1.75rem 0 0.6rem;
}

/* FAQ details */
details {
  border: 1px solid var(--border);
  margin-bottom: 0.6rem;
}
details summary {
  padding: 0.9rem 1.2rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--pearl);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
details summary::after {
  content: '+';
  color: var(--copper);
  font-family: var(--font-mono);
}
details[open] summary::after { content: '−'; }
details p {
  padding: 0 1.2rem 0.9rem;
  font-size: 0.88rem;
  color: var(--slate-light);
}

/* ----------------------------------------------------------
   16. TOOL OF THE WEEK / FEATURED SECTION
   ---------------------------------------------------------- */
.featured-section {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: var(--gap-xl);
  margin-bottom: var(--gap-xl);
  position: relative;
  overflow: hidden;
  /* slight separation from pure card \u2014 feels selected, not just styled */
  box-shadow: 0 4px 32px rgba(0,0,0,0.45), inset 0 0 0 0 transparent;
}
.featured-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  /* full-width top rule, concentrated at left \u2014 implies direction */
  background: linear-gradient(90deg, var(--copper) 0%, rgba(212,133,78,0.3) 40%, transparent 70%);
}
/* subtle ambient glow behind featured content \u2014 barely perceptible */
.featured-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: -20%;
  width: 60%;
  height: 100%;
  background: radial-gradient(ellipse at 30% 0%, rgba(212,133,78,0.04) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}
.featured-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: var(--gap-md);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
/* The dash \u2014 unchanged */
.featured-label::before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 1px;
  background: var(--copper);
  opacity: 0.7;
  flex-shrink: 0;
}
/*
  Live-dot: a 4px circle that breathes very slowly.
  Communicates "this is current" without animation theater.
  12s cycle \u2014 almost imperceptible until you notice it.
*/
.featured-label::after {
  content: '';
  display: inline-block;
  width: 4px;
  height: 4px;
  background: var(--copper);
  border-radius: 50%;
  flex-shrink: 0;
  animation: vault-live-dot 12s ease-in-out infinite;
}
@keyframes vault-live-dot {
  0%, 100% { opacity: 0.9; }
  50%       { opacity: 0.35; }
}

/* ----------------------------------------------------------
   17. ABOUT / AUTHOR SECTION
   ---------------------------------------------------------- */
.about-section {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: var(--gap-xl);
  margin-bottom: var(--gap-xl);
  position: relative;
  overflow: hidden;
}
.about-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--copper), transparent);
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--gap-lg);
  align-items: start;
}
/* Only show image column if image actually loads */
.about-grid.has-image {
  grid-template-columns: 160px 1fr;
}
.about-image {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border: 1px solid var(--border);
  filter: grayscale(15%);
  display: block;
}
/* Hide image if broken */
.about-image.hidden,
.about-image[src=""],
.about-image:not([src]) {
  display: none;
}
.about-name {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: 0.5rem;
}
.about-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}
.about-bio {
  font-size: 0.95rem;
  color: var(--slate-light);
  line-height: 1.8;
  max-width: 620px;
}

/* ----------------------------------------------------------
   18. SITE FOOTER
   ---------------------------------------------------------- */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: var(--gap-xl) var(--gap-lg);
  margin-top: var(--gap-2xl);
}
.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--gap-xl);
  align-items: start;
}
.footer-brand {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--pearl);
  margin-bottom: 0.9rem;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--gap-sm) var(--gap-md);
  margin-bottom: 0.9rem;
}
.footer-links a {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--copper); text-decoration: none; }
.footer-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.footer-meta a { color: var(--slate); font-size: 0.78rem; }
.footer-meta a:hover { color: var(--copper); }
.footer-stamp {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper);
  border: 1px solid var(--border);
  padding: 0.5rem 1rem;
  white-space: nowrap;
  align-self: center;
}
.copyright {
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: var(--gap-md);
  padding-top: var(--gap-md);
  border-top: 1px solid var(--border);
  max-width: var(--max-w);
  margin-left: auto;
  margin-right: auto;
}

/* Simplified footer (tool pages) */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: var(--gap-xl) var(--gap-lg);
  text-align: center;
  margin-top: var(--gap-2xl);
}
.footer p {
  font-size: 0.85rem;
  color: var(--slate);
  margin-bottom: 0.5rem;
}
.footer a { color: var(--copper); font-size: 0.85rem; }
.footer .copyright { font-size: 0.72rem; color: var(--text-muted); margin-top: 0.75rem; }

/* ----------------------------------------------------------
   19. UPDATE STAMP
   ---------------------------------------------------------- */
.site-update-stamp, .update-stamp {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--copper);
  border: 1px solid var(--border);
  padding: 0.35rem 0.8rem;
  display: inline-block;
}

/* ----------------------------------------------------------
   20. BACK LINK
   ---------------------------------------------------------- */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  text-decoration: none;
  margin-bottom: var(--gap-lg);
  transition: color var(--transition);
}
.back-link:hover { color: var(--copper); text-decoration: none; }
.back-link::before { content: '←'; color: var(--copper); }

/* ----------------------------------------------------------
   21. TOAST NOTIFICATIONS
   ---------------------------------------------------------- */
.toast {
  position: fixed;
  bottom: var(--gap-lg);
  right: var(--gap-lg);
  background: var(--surface2);
  border: 1px solid var(--copper);
  color: var(--pearl);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.75rem 1.4rem;
  z-index: 1000;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
}
.toast.show { opacity: 1; transform: translateY(0); }

/* ----------------------------------------------------------
   22. MODAL
   ---------------------------------------------------------- */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 500;
  align-items: center;
  justify-content: center;
}
.modal.open { display: flex; }
.modal-content {
  background: var(--surface2);
  border: 1px solid var(--border);
  padding: var(--gap-xl);
  max-width: 500px;
  width: calc(100% - 2.5rem);
}
.modal-content h3 {
  color: var(--copper);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: var(--gap-md);
}
.modal-content p {
  font-size: 0.92rem;
  color: var(--slate-light);
  margin-bottom: var(--gap-md);
}
.modal-actions {
  display: flex;
  gap: var(--gap-sm);
}

/* ----------------------------------------------------------
   23. PROGRESS BAR
   ---------------------------------------------------------- */
.progress-bar {
  background: var(--surface3);
  border: 1px solid var(--border);
  height: 3px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: var(--copper);
  width: 0;
  transition: width 0.3s ease;
}

/* ----------------------------------------------------------
   24. PANEL BLOCK (tool control panels)
   ---------------------------------------------------------- */
.panel-block {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: var(--gap-lg);
  margin-bottom: var(--gap-sm);
}
.panel-block h2 {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: var(--gap-md);
}

/* ----------------------------------------------------------
   25. INTELLIGENCE CARDS (State/Federal)
   ---------------------------------------------------------- */
.intel-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: var(--gap-md);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.intel-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.intel-card-title {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--pearl);
}
.intel-badge {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.25rem 0.6rem;
  border: 1px solid;
}
.intel-badge.federal { color: var(--copper); border-color: rgba(212,133,78,0.35); }
.intel-badge.state   { color: var(--slate);  border-color: var(--border); }

/* ----------------------------------------------------------
   26. PHILOSOPHY / PRINCIPLE CARDS
   ---------------------------------------------------------- */
.principles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 0;
  background: transparent;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
  margin: var(--gap-xl) 0;
}
.principle-card {
  background: var(--surface);
  padding: var(--gap-lg);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
  transition: background var(--transition);
}
.principle-card:hover {
  background: var(--surface2);
}
/* copper accent on left edge of card on hover */
.principle-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 2px;
  background: var(--copper);
  opacity: 0;
  transition: opacity var(--transition);
}
.principle-card:hover::before { opacity: 1; }

/* principle-icon — copper glyph, no background box */
.principle-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--copper);
  font-size: 1.15rem;
  opacity: 0.85;
}

.principle-number {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 900;
  color: var(--border-strong);
  line-height: 1;
  margin-bottom: 0.6rem;
}
.principle-title, .principle-card h3 {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--copper);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.principle-text, .principle-card p {
  font-size: 0.85rem;
  color: var(--slate);
  line-height: 1.7;
  margin: 0;
}

/* ----------------------------------------------------------
   26B. EXPERTISE LIST (About page)
   ---------------------------------------------------------- */
.expertise-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--border);
}
.expertise-list li {
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(212,133,78,0.1);
  font-size: 0.92rem;
  color: var(--slate-light);
  line-height: 1.7;
  padding-left: 1.2rem;
  position: relative;
}
.expertise-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--copper);
  font-family: var(--font-mono);
  font-size: 0.8rem;
}
.expertise-list li strong {
  color: var(--pearl);
  font-weight: 700;
}

/* ----------------------------------------------------------
   26C. CONTACT GRID (About page)
   ---------------------------------------------------------- */
.contact-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 1.5rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid rgba(212,133,78,0.08);
}
.contact-item:last-child { border-bottom: none; }
.contact-item i {
  color: var(--copper);
  font-size: 1rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
  opacity: 0.85;
  width: 18px;
  text-align: center;
}
.contact-item strong {
  display: block;
  color: var(--pearl);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.3rem;
  font-family: var(--font-mono);
}
.contact-item a {
  color: var(--copper);
  font-size: 0.9rem;
  font-family: var(--font-mono);
}

/* ----------------------------------------------------------
   27. QUIZ STYLES
   ---------------------------------------------------------- */
.quiz-container {
  max-width: 820px;
  margin: 0 auto;
  padding: var(--gap-xl) var(--gap-lg);
}
.quiz-header {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 2px solid var(--copper);
  padding: var(--gap-xl);
  margin-bottom: var(--gap-xl);
  text-align: center;
}
.quiz-header h1 {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.9rem;
}
.quiz-header p {
  font-size: 0.95rem;
  color: var(--slate);
}
.question-card {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: var(--gap-xl);
  margin-bottom: var(--gap-md);
}
.question-text {
  font-size: 1rem;
  color: var(--pearl);
  font-weight: 600;
  line-height: 1.6;
  margin-bottom: var(--gap-lg);
}
.answer-option {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  background: var(--surface3);
  border: 1px solid var(--border);
  margin-bottom: 0.6rem;
  cursor: pointer;
  transition: all var(--transition);
  font-size: 0.92rem;
  color: var(--pearl);
}
.answer-option:hover { border-color: var(--copper); background: rgba(212,133,78,0.07); }
.answer-option.correct { border-color: #4caf50; background: rgba(76,175,80,0.09); color: #81c784; }
.answer-option.incorrect { border-color: #f44336; background: rgba(244,67,54,0.09); color: #e57373; }
.answer-option input[type="radio"] { margin-top: 3px; flex-shrink: 0; }
.quiz-btn {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.85rem 1.6rem;
  background: var(--copper);
  color: var(--black);
  border: none;
  cursor: pointer;
  font-weight: 700;
  transition: background var(--transition);
}
.quiz-btn:hover { background: var(--copper-light); }
.quiz-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.quiz-buttons { display: flex; gap: var(--gap-sm); margin-top: var(--gap-md); }
.progress-info {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  color: var(--slate);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
}
.progress-track {
  background: var(--surface3);
  border: 1px solid var(--border);
  height: 3px;
  overflow: hidden;
  margin-bottom: var(--gap-xl);
}

/* ----------------------------------------------------------
   28. BEGINNER KIT
   ---------------------------------------------------------- */
.kit-intro {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 2px solid var(--copper);
  padding: var(--gap-xl);
  margin-bottom: var(--gap-xl);
}
.kit-section {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: var(--gap-xl);
  margin-bottom: var(--gap-sm);
}
.kit-section h2 {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--copper);
  margin-bottom: var(--gap-md);
}
.kit-section p { color: var(--slate-light); font-size: 0.93rem; }
.kit-section ul { padding-left: 0; list-style: none; }
.kit-section li {
  font-size: 0.9rem;
  color: var(--slate-light);
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(212,133,78,0.07);
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}
.kit-section li::before {
  content: '//';
  color: var(--copper);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  flex-shrink: 0;
}

/* ----------------------------------------------------------
   29. BLOG / ARTICLE CARDS
   ---------------------------------------------------------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 0;
  background: transparent;
  border-top: 1px solid var(--border);
  border-left: 1px solid var(--border);
  margin-bottom: var(--gap-xl);
}
.blog-card {
  background: var(--surface);
  padding: var(--gap-lg);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-decoration: none;
  transition: background var(--transition), border-color var(--transition);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.blog-card:hover { background: var(--surface2); text-decoration: none; }
.blog-card .post-type {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--copper);
}
.blog-card h3 {
  font-size: 1rem;
  color: var(--pearl);
  line-height: 1.4;
}
.blog-card p {
  font-size: 0.85rem;
  color: var(--slate);
  flex: 1;
}
.blog-card .read-more {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper);
}

/* ----------------------------------------------------------
   30. CARD EYEBROW (blog/guide pages)
   ---------------------------------------------------------- */
.card-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--copper);
  display: block;
  margin-bottom: 0.5rem;
}

/* ----------------------------------------------------------
   31. OSINT STATE OF MIND / INTEL FEED
   ---------------------------------------------------------- */
.state-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: transparent;
  border: 1px solid var(--border);
  margin-bottom: var(--gap-xl);
}
.state-item {
  background: var(--surface);
  padding: var(--gap-lg);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.4s ease, transform 0.4s ease, background var(--transition);
  border-bottom: 1px solid var(--border);
}
.state-item:last-child { border-bottom: none; }
.state-item.visible {
  opacity: 1;
  transform: translateY(0);
}
.state-item:hover { background: var(--surface2); }
.state-item-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--copper);
}
.state-item h3 {
  font-size: 1rem;
  color: var(--pearl);
  line-height: 1.35;
}
.state-item p {
  font-size: 0.88rem;
  color: var(--slate);
  line-height: 1.7;
}
.state-item a.state-item-link {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper);
  align-self: flex-start;
}
.state-item a.state-item-link:hover {
  color: var(--copper-light);
  text-decoration: none;
}

/* ----------------------------------------------------------
   32. 404 PAGE
   ---------------------------------------------------------- */
.error-scene {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
  padding: var(--gap-2xl) var(--gap-lg);
}
.error-code {
  font-family: var(--font-mono);
  font-size: clamp(5rem, 15vw, 10rem);
  font-weight: 900;
  color: var(--copper);
  line-height: 1;
  letter-spacing: 0.05em;
  opacity: 0.9;
}
.error-inner {
  margin-top: var(--gap-md);
}
.error-inner p {
  font-size: 1rem;
  color: var(--slate-light);
  max-width: 480px;
  margin: 0 auto var(--gap-lg);
}

/* ----------------------------------------------------------
   33. RESPONSIVE BREAKPOINTS
   ---------------------------------------------------------- */
@media (max-width: 1024px) {
  :root {
    --gap-xl: 2.75rem;
    --gap-2xl: 4rem;
  }
  .about-grid.has-image { grid-template-columns: 1fr; }
  .about-image { width: 120px; height: 120px; }
  .footer-inner { grid-template-columns: 1fr; }
  .toolkit-grid { grid-template-columns: repeat(3,1fr) !important; }
}

@media (max-width: 768px) {
  :root {
    --gap-lg: 1.5rem;
    --gap-xl: 2.25rem;
  }
  body { font-size: 15px; }
  .vault-nav-inner { padding: 0 0.5rem; }
  .vault-nav-inner a.nav-link { padding: 0.85rem 0.7rem; }
  .vault-main { padding: var(--gap-lg) var(--gap-md); }
  .page-hero { padding: 2.5rem var(--gap-md) 2rem; }
  .toolkit-grid { grid-template-columns: repeat(2,1fr) !important; }
  .dashboard-grid { grid-template-columns: 1fr 1fr; }
  .tools-grid { grid-template-columns: 1fr; }
  .principles-grid { grid-template-columns: 1fr 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .section-block { padding: var(--gap-lg) var(--gap-md); }
  .featured-section, .about-section, .vault-card {
    padding: var(--gap-lg);
  }
  .footer-inner { gap: var(--gap-lg); }
}

@media (max-width: 480px) {
  .toolkit-grid { grid-template-columns: 1fr !important; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .principles-grid { grid-template-columns: 1fr; }
  .search-input-row { flex-direction: column; }
  .modal-actions { flex-direction: column; }
  .vault-nav-inner { gap: 0; padding: 0 0.25rem; }
  .vault-nav-inner a.nav-link { padding: 0.8rem 0.55rem; font-size: 0.62rem; }
  .footer-stamp { align-self: flex-start; }
}

/* ----------------------------------------------------------
   34. PRINT
   ---------------------------------------------------------- */
@media print {
  .vault-nav, .site-header, .site-footer, .footer { display: none; }
  body { background: white; color: black; }
  a { color: black; }
}

/* ----------------------------------------------------------
   35. ACCESSIBILITY
   ---------------------------------------------------------- */
:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 2px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
