/*
Theme Name: Callum Knox
Theme URI: https://callumknox.com
Author: Callum Knox
Description: Ground Truth — Intelligence by Callum Knox.
Version: 3.0.0
License: GNU General Public License v2 or later
Text Domain: callumknox
*/

/* ===================================================
   TOKENS
=================================================== */
:root {
  --void:    #080808;
  --ink:     #141414;
  --ink-2:   #1e1e1e;
  --border:  #2a2a2a;
  --muted:   #555555;
  --ghost:   #888888;
  --paper:   #d4ccc4;
  --white:   #f5f5f0;
  --gold:    #c9a84c;
  --gold-hi: #d4a843;

  --font-display: 'Playfair Display', 'Georgia', serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono:    'Courier Prime', 'Courier New', monospace;
}

/* ===================================================
   RESET & BASE
=================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  background-color: var(--void);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 1.1rem;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
a, button, [role="button"], input, select, textarea { cursor: pointer; }

/* ===================================================
   TYPOGRAPHY
=================================================== */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--white);
  line-height: 1.1;
  font-weight: 700;
}

h1 {
  font-size: clamp(2.2rem, 4.5vw, 4.8rem);
  letter-spacing: 0.07em;
  line-height: 1.08;
}

h2 {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  color: var(--white);
  margin-bottom: 1.2rem;
  text-transform: none;
  letter-spacing: 0.02em;
}

h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0;
  color: var(--white);
  text-transform: none;
  margin-bottom: 0.8rem;
}

p { margin-bottom: 1.4rem; color: var(--paper); line-height: 1.8; }
p:last-child { margin-bottom: 0; }

a { color: var(--gold); text-decoration: none; transition: color 0.2s ease; }
a:hover { color: var(--gold-hi); }

strong { color: var(--white); font-weight: 700; }
em { font-style: italic; color: #b0a89e; }

/* Redaction highlight effect */
mark.redact {
  background: rgba(201, 168, 76, 0.14) !important;
  color: var(--white) !important;
  padding: 0 8px 2px;
  border-bottom: 1px solid rgba(201, 168, 76, 0.35);
  font-style: normal;
  display: inline;
}

/* ===================================================
   CLASSIFIED LABELS
=================================================== */
.label,
.section-label,
.classified-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.55;
  margin-bottom: 1.2rem;
}

/* ===================================================
   LAYOUT
=================================================== */
.container {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 48px;
}

.section     { padding: 100px 0; }
.section-alt { padding: 100px 0; background-color: var(--ink); }

hr, .divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 70px 0;
}

/* ===================================================
   HEADER
=================================================== */
.site-header {
  background-color: rgba(8, 8, 8, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  position: sticky;
  top: 0;
  z-index: 1000;
  transition: background-color 0.3s ease;
}

.site-header.scrolled {
  background-color: rgba(8, 8, 8, 0.98);
  border-bottom-color: var(--border);
}

.header-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  transition: height 0.3s ease;
}

.site-header.scrolled .header-inner { height: 60px; }

/* Brand mark in header */
.site-branding {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-wordmark {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--white);
  text-decoration: none;
  transition: color 0.2s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-wordmark:hover { color: var(--gold); }

.brand-wordmark .brand-sep {
  color: var(--gold);
  font-weight: 400;
  opacity: 0.8;
  font-family: var(--font-mono);
}

.brand-byline {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

/* Navigation */
.main-navigation ul {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.main-navigation a {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 16px;
  transition: color 0.2s ease;
  display: block;
  position: relative;
}

.main-navigation a::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 16px;
  right: 16px;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 0.25s ease;
  transform-origin: left;
}

.main-navigation a:hover { color: var(--gold); }
.main-navigation a:hover::after,
.main-navigation .current-menu-item a::after { transform: scaleX(1); }
.main-navigation .current-menu-item a { color: var(--gold); }

.menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px 4px;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
}
.menu-toggle-bar {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.25s ease, opacity 0.2s ease;
  transform-origin: center;
}
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* ===================================================
   HERO
=================================================== */
.hero {
  background-color: var(--void);
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding: 0;
}

/* Animated grid — the brand texture */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201, 168, 76, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 168, 76, 0.055) 1px, transparent 1px);
  background-size: 80px 80px;
  animation: gridDrift 28s linear infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes gridDrift {
  0%   { transform: translateY(0); }
  100% { transform: translateY(80px); }
}

/* Subtle radial glow */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 55%, rgba(201, 168, 76, 0.05) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

.hero .container { position: relative; z-index: 1; }

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 64px;
  align-items: center;
  padding: 100px 0 80px;
  max-width: 100%;
}

.hero-content { max-width: 580px; }

.hero-visual {
  position: relative;
  width: 420px;
  flex-shrink: 0;
}

@media (max-width: 1000px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

/* Headline split into two lines — each animates independently */
.hero-headline {
  display: block;
  color: var(--white);
  margin-bottom: 0;
  font-size: clamp(2.8rem, 5.5vw, 5.2rem);
  letter-spacing: 0.04em;
  line-height: 1.05;
}

.hero-line-1,
.hero-line-2 {
  display: block;
}

.hero-line-2 {
  color: var(--gold);
}

/* Pure CSS hero animations — no JS dependency */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes heroFade {
  from { opacity: 0; }
  to   { opacity: 0.7; }
}
@keyframes heroRule {
  from { opacity: 0; transform: scaleX(0); }
  to   { opacity: 1; transform: scaleX(1); }
}

.hero .section-label {
  animation: heroFade 0.7s ease-out 0.1s both;
}
.hero-line-1 {
  animation: heroFadeUp 0.85s cubic-bezier(0.22,1,0.36,1) 0.4s both;
}
.hero-line-2 {
  animation: heroFadeUp 0.85s cubic-bezier(0.22,1,0.36,1) 0.7s both;
}
.hero-rule {
  animation: heroRule 0.55s ease-out 1s both;
  transform-origin: left center;
}
.hero-subheading {
  animation: heroFadeUp 0.8s ease-out 1.1s both;
}
.hero-ctas {
  animation: heroFadeUp 0.7s ease-out 1.3s both;
}
.hero-meta {
  animation: heroFade 0.7s ease-out 1.5s both;
}

/* Thin ruled line between headline and subheading */
.hero-rule {
  width: 48px;
  height: 1px;
  background: var(--gold);
  margin: 28px 0;
  transform-origin: left;
}

.hero-subheading {
  font-size: clamp(0.95rem, 1.3vw, 1.08rem);
  color: var(--ghost);
  max-width: 580px;
  margin-bottom: 2.4rem;
  line-height: 1.8;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}

.hero-meta {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .hero-inner { padding: 80px 0 60px; }
  .hero-headline { font-size: clamp(2.2rem, 8vw, 3.2rem); }
  .hero-ctas { flex-direction: column; }
  .btn-primary, .btn-ghost { width: 100%; text-align: center; }
}

/* ===================================================
   BUTTONS
=================================================== */
.btn-primary,
.btn-ghost {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  padding: 15px 36px;
  border-radius: 0;
  transition: all 0.3s ease;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background-color: var(--gold);
  color: var(--void);
  font-weight: 700;
  border: 1px solid var(--gold);
}
.btn-primary:hover {
  background-color: var(--gold-hi);
  border-color: var(--gold-hi);
  color: var(--void);
}

.btn-ghost {
  background-color: transparent;
  color: var(--gold);
  border: 1px solid rgba(201, 168, 76, 0.35);
}
.btn-ghost:hover {
  background-color: rgba(201, 168, 76, 0.07);
  border-color: var(--gold);
  color: var(--gold);
}

/* ===================================================
   PILLARS
=================================================== */
.pillars { padding: 100px 0; background-color: var(--void); }

.pillars > .container > h2 { margin-bottom: 0; }

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 3.5rem;
  border: 1px solid var(--border);
}

.pillar-card {
  padding: 52px 40px;
  border-right: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  transition: background-color 0.35s ease;
  cursor: default;
}
.pillar-card:last-child { border-right: none; }

.pillar-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transition: transform 0.5s ease;
}

.pillar-card::after {
  content: attr(data-number);
  position: absolute;
  right: -8px;
  bottom: -16px;
  font-family: var(--font-display);
  font-size: 8rem;
  font-weight: 700;
  color: rgba(201,168,76,0.04);
  line-height: 1;
  pointer-events: none;
  transition: color 0.4s ease;
  user-select: none;
}

.pillar-card:hover { background-color: rgba(201, 168, 76, 0.025); }
.pillar-card:hover::before { transform: scaleX(1); }
.pillar-card:hover::after { color: rgba(201,168,76,0.07); }

.pillar-number {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  color: var(--border);
  margin-bottom: 1.5rem;
}

.pillar-card p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.75;
}

/* ===================================================
   STATS
=================================================== */
.stats-section {
  padding: 80px 0;
  background-color: var(--ink);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border: 1px solid var(--border);
}

.stat-item {
  padding: 48px 32px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }

.stat-number {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--gold);
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ===================================================
   TESTIMONIALS
=================================================== */
.testimonials { padding: 100px 0; background-color: #050505; }

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background-color: var(--border);
  margin-top: 3.5rem;
}

.testimonial-card {
  background-color: var(--void);
  padding: 44px 36px;
  position: relative;
  transition: background-color 0.3s ease;
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 20px; left: 30px;
  font-family: var(--font-display);
  font-size: 5rem;
  line-height: 1;
  color: var(--gold);
  opacity: 0.1;
  pointer-events: none;
}

.testimonial-card:hover { background-color: rgba(201, 168, 76, 0.02); }

.testimonial-card p {
  font-style: italic;
  color: #999999;
  font-size: 0.95rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.testimonial-attribution {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  opacity: 0.65;
  font-style: normal;
}

/* ===================================================
   ABOUT SOURCE SECTION
=================================================== */
.about-source {
  padding: 100px 0;
  background-color: var(--ink);
  border-top: 1px solid var(--border);
}

.about-source-inner {
  max-width: 680px;
}

.about-source h2 { margin-bottom: 1.5rem; }
.about-source p { color: var(--ghost); line-height: 1.8; }

/* ===================================================
   GROUND TRUTH TEASER
=================================================== */
.gt-teaser {
  padding: 100px 0;
  background-color: var(--void);
  position: relative;
  overflow: hidden;
}

.gt-teaser::before {
  content: 'GROUND TRUTH';
  position: absolute;
  right: -1%;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-display);
  font-size: clamp(4rem, 10vw, 11rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.04);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.gt-teaser .container { position: relative; z-index: 1; }
.gt-teaser h2 { margin-bottom: 1.2rem; }
.gt-teaser p  { max-width: 540px; color: var(--ghost); margin-bottom: 2.5rem; }

/* ===================================================
   POST CARDS
=================================================== */
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg, 1.5rem);
  margin-top: 3.5rem;
}
@media (max-width: 768px) {
  .posts-grid {
    grid-template-columns: 1fr;
  }
}

.post-card {
  background-color: var(--void);
  padding: 40px 44px;
  transition: background-color 0.3s ease;
  position: relative;
}

.post-card::after {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--gold);
  transform: scaleY(0);
  transition: transform 0.35s ease;
  transform-origin: bottom;
}

.post-card:hover { background-color: rgba(201, 168, 76, 0.02); }
.post-card:hover::after { transform: scaleY(1); }

.post-card-meta {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 0.8rem;
  opacity: 0.65;
}

.post-card h2, .post-card h3 {
  font-size: clamp(1rem, 1.8vw, 1.3rem);
  color: var(--white);
  margin-bottom: 0.8rem;
  letter-spacing: 0.03em;
  text-transform: none;
}

.post-card h2 a, .post-card h3 a { color: var(--white); transition: color 0.2s ease; }
.post-card h2 a:hover, .post-card h3 a:hover { color: var(--gold); }

.post-card p { font-size: 0.9rem; color: var(--muted); margin-bottom: 1.2rem; line-height: 1.7; }

.read-more {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.65;
  transition: opacity 0.2s ease;
}
.read-more:hover { opacity: 1; color: var(--gold); }

.post-card-cat {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #000;
  background: var(--gold);
  padding: 3px 8px;
  margin-bottom: 0.75rem;
}

/* ===================================================
   PAGE HERO
=================================================== */
.page-hero {
  background-color: var(--void);
  padding: 100px 0 70px;
  border-bottom: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}

.page-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(201, 168, 76, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(201, 168, 76, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.page-hero .container { position: relative; z-index: 1; }

.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 3.5rem);
  margin-top: 1rem;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.6s ease forwards 0.1s;
}
@keyframes fadeInUp {
  to { opacity: 1; transform: translateY(0); }
}

/* ===================================================
   PAGE & SINGLE CONTENT
=================================================== */
.site-main { min-height: 70vh; }

.page-content {
  max-width: 1160px;
  margin: 0 auto;
  padding: 80px 48px;
}
.page-content h2 { margin-top: 3rem; margin-bottom: 1rem; }
.page-content p { max-width: 700px; }

.entry-header {
  max-width: 1160px;
  margin: 0 auto;
  padding: 80px 48px 50px;
  border-bottom: 1px solid var(--border);
}

.entry-meta {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: 0.65;
  margin-bottom: 1.2rem;
}

.entry-header h1 {
  font-size: clamp(1.6rem, 3.5vw, 3rem);
  text-transform: none;
  letter-spacing: 0.02em;
}

.entry-content {
  max-width: 680px;
  margin: 0 auto;
  padding: 80px 48px 100px;
  font-size: 1.1rem;
  line-height: 1.9;
}

.entry-content > p:first-of-type::first-letter {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 700;
  float: left;
  line-height: 0.85;
  margin: 0.08em 0.12em 0 0;
  color: var(--gold);
}

.entry-content h2 { font-size: 1.6rem; margin-top: 2.5rem; margin-bottom: 1rem; text-transform: none; }
.entry-content h3 { font-size: 1.2rem; margin-top: 2rem; margin-bottom: 0.8rem; text-transform: none; color: var(--white); }
.entry-content p { margin-bottom: 1.6rem; }
.entry-content ul, .entry-content ol { padding-left: 1.5rem; margin-bottom: 1.6rem; }
.entry-content li { margin-bottom: 0.5rem; list-style: disc; color: var(--paper); }

.entry-content blockquote {
  border-left: 3px solid var(--gold);
  padding: 1.5rem 2rem;
  margin: 3rem 0;
  background: linear-gradient(135deg, rgba(201,168,76,0.04) 0%, transparent 100%);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--paper);
  line-height: 1.7;
  position: relative;
}

.entry-content blockquote::before {
  content: '\201C';
  position: absolute;
  top: -12px;
  left: 20px;
  font-family: var(--font-display);
  font-size: 4rem;
  color: var(--gold);
  opacity: 0.3;
  line-height: 1;
}

.entry-content code {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: rgba(201,168,76,0.08);
  color: var(--gold);
  padding: 2px 6px;
  border: 1px solid rgba(201,168,76,0.15);
}

.back-link {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2rem;
  transition: color 0.2s ease;
}
.back-link:hover { color: var(--gold); }
.back-link::before { content: '\2190  '; }

/* ===================================================
   SECTION DIVIDER
=================================================== */
.section-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 48px;
  max-width: 1160px;
  margin: 0 auto;
}
.section-divider-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.section-divider-mark {
  color: var(--gold);
  opacity: 0.3;
  font-size: 0.6rem;
  flex-shrink: 0;
}

/* ===================================================
   READING PROGRESS
=================================================== */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 2px;
  background: var(--gold);
  width: 0%;
  z-index: 9999;
  transition: width 0.1s linear;
  opacity: 0;
  transition: width 0.1s linear, opacity 0.3s ease;
}
.reading-progress.active {
  opacity: 1;
}

/* ===================================================
   FOOTER
=================================================== */
.site-footer {
  background-color: #040404;
  border-top: 1px solid var(--border);
}

.footer-subscribe {
  background: var(--ink);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 48px 0;
}
.footer-subscribe-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.footer-subscribe-headline {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 0.25rem;
}
.footer-subscribe-sub {
  font-size: 0.85rem;
  color: var(--ghost);
  margin: 0;
}
.footer-main { padding: 48px 0; }

.footer-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.footer-brand-block { display: flex; flex-direction: column; gap: 4px; }

.footer-wordmark {
  font-family: var(--font-display);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--white);
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-wordmark .brand-sep { color: var(--gold); font-family: var(--font-mono); font-weight: 400; }

.footer-byline {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.16em;
  color: var(--muted);
  text-transform: uppercase;
}

.footer-nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-nav a {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s;
}
.footer-nav a:hover { color: var(--gold); }

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  color: var(--muted);
  text-transform: uppercase;
  text-align: right;
}
.footer-copy a { color: var(--muted); transition: color 0.2s ease; }
.footer-copy a:hover { color: var(--gold); }

@media (max-width: 768px) {
  .footer-subscribe-inner { flex-direction: column; align-items: flex-start; }
  .footer-nav { flex-direction: column; gap: 12px; }
}

/* ===================================================
   FORMS
=================================================== */
input[type="text"], input[type="email"], input[type="search"], textarea, select {
  background-color: var(--ink);
  border: 1px solid var(--border);
  color: var(--paper);
  padding: 13px 18px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  border-radius: 0;
  width: 100%;
  transition: border-color 0.2s ease;
  outline: none;
}
input:focus, textarea:focus { border-color: var(--gold); }

/* ===================================================
   GROUND TRUTH PAGE
=================================================== */
.gt-intro {
  font-size: 1.05rem;
  color: var(--ghost);
  font-style: italic;
  max-width: 660px;
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

/* ===================================================
   MOBILE NAV
=================================================== */
@media (max-width: 768px) {
  .main-navigation {
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .main-navigation ul {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background-color: rgba(8, 8, 8, 0.98);
    border-bottom: 1px solid rgba(201,168,76,0.15);
    padding: 8px 0 20px;
    gap: 0;
    z-index: 999;
  }
  .main-navigation.toggled ul { display: flex; }
  .main-navigation a {
    padding: 14px 24px;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    color: var(--ghost);
    border-bottom: 1px solid rgba(255,255,255,0.04);
  }
  .main-navigation a:last-child { border-bottom: none; }
  .menu-toggle { display: flex; }
  /* Hide desktop subscribe btn on mobile — use hero form instead */
  .nav-subscribe-btn { display: none; }

  /* Mobile hero terminal — compact but visible */
  .hero-visual { display: block; margin-top: 32px; width: 100%; }
  .hero-terminal { font-size: 0.7rem; }
  .terminal-body { padding: 12px 14px; min-height: 140px; }
  .terminal-line { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* ===================================================
   RESPONSIVE
=================================================== */
@media (max-width: 1024px) {
  .pillars-grid { grid-template-columns: 1fr; }
  .pillar-card { border-right: none; border-bottom: 1px solid var(--border); }
  .pillar-card:last-child { border-bottom: none; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: 1fr; }
  .stat-item { border-right: none; border-bottom: 1px solid var(--border); }
  .stat-item:last-child { border-bottom: none; }
}

@media (max-width: 768px) {
  .container, .header-inner, .footer-inner { padding-left: 24px; padding-right: 24px; }
  h1 { font-size: 2.4rem; }
  h2 { font-size: 1.5rem; }
  .hero { padding: 0; min-height: auto; }
  .hero-inner { padding: 56px 0 48px; align-items: flex-start; }
  .section, .pillars, .testimonials, .gt-teaser, .section-alt, .stats-section, .about-source { padding: 70px 0; }
  .hero-ctas { flex-direction: column; }
  .btn-primary, .btn-ghost { width: 100%; text-align: center; }
  .entry-content, .page-content { padding: 50px 24px 70px; }
  .entry-header { padding: 50px 24px 36px; }
  .gt-teaser::before { display: none; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
  .footer-copy { text-align: left; }
}

@media (max-width: 480px) {
  .container, .header-inner { padding-left: 16px; padding-right: 16px; }
  h1 { font-size: 2rem; letter-spacing: 0.04em; }
}

/* ===================================================
   ENTRY ARTICLE (single.php — replaces inline styles)
=================================================== */
.entry-article {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 40px 80px;
}
@media (max-width: 768px) {
  .entry-article { padding: 50px 24px 70px; }
}
@media (max-width: 480px) {
  .entry-article { padding: 40px 16px 60px; }
}

/* ===================================================
   SUBSCRIBE FORMS
=================================================== */
.subscribe-form {
  display: flex;
  gap: 0;
  max-width: 500px;
  border: 1px solid rgba(201,168,76,0.25);
  transition: border-color 0.25s;
}
.subscribe-form:focus-within {
  border-color: rgba(201,168,76,0.6);
  box-shadow: 0 0 0 3px rgba(201,168,76,0.07);
}
.subscribe-input {
  flex: 1;
  min-width: 0;
  padding: 14px 18px;
  background: rgba(255,255,255,0.04);
  border: none;
  border-right: 1px solid rgba(201,168,76,0.2);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
}
.subscribe-input::placeholder { color: rgba(255,255,255,0.3); }
.subscribe-btn {
  padding: 14px 24px;
  background: var(--gold);
  color: #000;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s;
  flex-shrink: 0;
}
.subscribe-btn:hover { background: var(--gold-hi); }
.subscribe-meta {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.4);
  margin-top: 0.5rem;
  font-family: var(--font-mono);
}
.hero-subscribe { margin-top: 1.5rem; }

/* Nav subscribe button */
.nav-subscribe-btn {
  padding: 0.45rem 1rem;
  background: var(--gold);
  color: #000;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 0.2s;
  margin-left: 0.5rem;
}
.nav-subscribe-btn:hover { opacity: 0.85; color: #000; }

/* Post CTA section */
.post-cta {
  background: #0d0d0d;
  border-top: 1px solid rgba(201,168,76,0.2);
  padding: var(--space-xl, 5rem) 0;
  margin-top: var(--space-xl, 5rem);
}
.post-cta-inner {
  max-width: 600px;
}
.post-cta h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  margin: 0.5rem 0 1rem;
  color: var(--white);
}
.post-cta p {
  color: rgba(255,255,255,0.6);
  margin-bottom: 1.25rem;
}

/* Post navigation */
.post-navigation {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: var(--space-lg, 3rem) 0;
}
.post-nav-inner {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}
.post-nav-link {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  text-decoration: none;
  max-width: 45%;
}
.post-nav-next { text-align: right; margin-left: auto; }
.post-nav-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.post-nav-title {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.7);
  transition: color 0.2s;
  line-height: 1.4;
}
.post-nav-link:hover .post-nav-title { color: var(--white); }

/* About source layout */
.about-source-layout {
  display: flex;
  align-items: flex-start;
  gap: 3rem;
}
.about-source-text { flex: 1; }
.about-source-photo { flex-shrink: 0; text-align: center; }
.photo-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(201,168,76,0.15);
  border: 2px solid rgba(201,168,76,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--gold);
  margin: 0 auto 0.75rem;
}
.photo-caption {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  font-family: var(--font-mono);
  line-height: 1.5;
}
.photo-caption span { color: var(--gold); font-size: 0.7rem; }

/* About credentials */
.about-credentials {
  display: flex;
  gap: 2rem;
  margin: 2rem 0;
  flex-wrap: wrap;
}
.cred-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-right: 2rem;
  border-right: 1px solid var(--border);
}
.cred-item:last-child { border-right: none; padding-right: 0; }
.cred-number {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--gold);
  font-weight: 700;
  line-height: 1;
}
.cred-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Terminal hero styles */
.hero-terminal {
  background: #0d1117;
  border: 1px solid rgba(201,168,76,0.2);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 40px 120px rgba(0,0,0,0.8), 0 0 0 1px rgba(201,168,76,0.06), 0 0 60px rgba(201,168,76,0.04);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}

.terminal-bar {
  background: #161b22;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.terminal-dot--red    { background: #ff5f57; }
.terminal-dot--yellow { background: #febc2e; }
.terminal-dot--green  { background: #28c840; }

.terminal-title {
  margin-left: 8px;
  font-size: 0.65rem;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.05em;
}

.terminal-body {
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 200px;
}

.terminal-line {
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
}

.t-prompt { color: #c9a84c; margin-right: 6px; }
.t-cmd    { color: #f5f5f0; }
.t-output { color: rgba(255,255,255,0.5); font-size: 0.72rem; }
.t-muted  { color: rgba(255,255,255,0.3); font-size: 0.72rem; }
.t-success { color: #28c840; font-size: 0.72rem; }

.t-blink {
  color: var(--gold);
  animation: blink 1.1s step-end infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}

@media (max-width: 600px) {
  .about-source-layout { flex-direction: column-reverse; align-items: center; }
  .post-nav-inner { flex-direction: column; }
  .post-nav-link { max-width: 100%; }
  .post-nav-next { text-align: left; margin-left: 0; }
}
