/* Project Evilson — Investigative Publication Platform
   Dark theme, evidence-first design
   Created August 2026
*/

:root {
  --bg: #0a0a0f;
  --bg-card: #12121a;
  --bg-card-hover: #1a1a25;
  --border: #2a2a3a;
  --border-active: #3a3a55;
  --text: #c8c8d0;
  --text-dim: #7a7a8a;
  --text-bright: #e8e8f0;
  --accent: #c0392b;
  --accent-dim: #7a2419;
  --accent-bright: #e74c3c;
  --warn: #d4a017;
  --link: #5b8def;
  --link-hover: #7aa3f7;
  --mono: 'Courier New', Courier, monospace;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

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

/* HEADER — Left sidebar nav (desktop), top bar (mobile) */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  width: 220px;
  background: rgba(10,10,15,0.98);
  border-right: 1px solid var(--border);
  z-index: 100;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.site-header-inner {
  display: flex;
  flex-direction: column;
  width: 220px;
  height: 100%;
  padding: 16px 0 12px 0;
}

.site-logo {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: bold;
  color: var(--text-bright);
  letter-spacing: 2px;
  padding: 0 16px 16px 16px;
  white-space: nowrap;
  border-bottom: 1px solid var(--border);
}

.site-logo .dot { color: var(--accent); }

.site-nav {
  display: flex;
  flex-direction: column;
  padding: 12px 0 0 0;
  flex: 1;
}

.site-nav a {
  color: var(--text-dim);
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 10px 16px;
  font-size: 13px;
  white-space: nowrap;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 12px;
  border-left: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.site-nav a .nav-num {
  color: var(--accent);
  font-weight: bold;
  min-width: 24px;
  font-size: 12px;
}

.site-nav a .nav-label {
  opacity: 1;
}

.site-nav a:hover, .site-nav a.active {
  color: var(--text-bright);
  background: rgba(192, 57, 43, 0.06);
  border-left-color: var(--accent);
}

.site-nav a:hover .nav-num, .site-nav a.active .nav-num {
  color: var(--accent-bright);
}

.site-nav-divider {
  border-top: 1px solid var(--border);
  margin: 8px 16px;
}

.site-nav-secondary {
  display: flex;
  flex-direction: column;
  padding: 0 0 8px 0;
}

.site-nav-secondary a {
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 1px;
  padding: 8px 16px;
  white-space: nowrap;
  text-decoration: none;
  text-transform: uppercase;
  border-left: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}

.site-nav-secondary a:hover {
  color: var(--text-bright);
  border-left-color: var(--accent);
}

/* Push layout right to make room for sidebar */
body {
  margin-left: 220px;
}

/* SOURCES PAGE */
.sources-heading {
  font-size: 18px;
  color: var(--text-bright);
  margin-top: 32px;
  margin-bottom: 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border);
  font-family: var(--sans);
}

.sources-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  font-size: 14px;
}

.sources-table th {
  text-align: left;
  padding: 10px 12px;
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 2px solid var(--border);
}

.sources-table td {
  padding: 10px 12px;
  color: var(--text);
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

.sources-table tr:hover td {
  background: rgba(192, 57, 43, 0.04);
  color: var(--text-bright);
}

.sources-table td a {
  color: var(--link);
}

.sources-table td a:hover {
  color: var(--link-hover);
}

/* LAYOUT */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.container-narrow {
  max-width: 780px;
  margin: 0 auto;
  padding: 0 24px;
}

/* HERO (landing page) */
.hero {
  padding: 80px 0 60px;
  border-bottom: 1px solid var(--border);
}

.hero-eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 3px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: 42px;
  font-weight: 800;
  color: var(--text-bright);
  line-height: 1.15;
  margin-bottom: 20px;
  max-width: 800px;
}

.hero-subtitle {
  font-size: 20px;
  color: var(--text-dim);
  line-height: 1.5;
  max-width: 680px;
}

.hero-meta {
  margin-top: 32px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-dim);
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

.hero-meta span { display: flex; align-items: center; gap: 8px; }
.hero-meta .label { color: var(--accent); }

/* SECTION */
.section {
  padding: 60px 0;
  border-bottom: 1px solid var(--border);
}

.section:last-child { border-bottom: none; }

.section-label {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 12px;
}

.section-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 16px;
}

.section-text {
  font-size: 17px;
  color: var(--text);
  line-height: 1.7;
  max-width: 720px;
}

/* TRACK CARDS (landing) */
.track-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.track-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 28px;
  transition: border-color 0.2s, background 0.2s;
  display: flex;
  flex-direction: column;
}

.track-card:hover {
  border-color: var(--border-active);
  background: var(--bg-card-hover);
}

.track-card-number {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.track-card-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 10px;
}

.track-card-desc {
  font-size: 15px;
  color: var(--text-dim);
  line-height: 1.6;
  flex-grow: 1;
}

.track-card-meta {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.track-card-meta .tag {
  background: rgba(192,57,43,0.12);
  color: var(--accent-bright);
  padding: 2px 8px;
  border-radius: 3px;
}

.track-card-link {
  margin-top: 16px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--link);
  letter-spacing: 1px;
}

/* PRINCIPLES LIST */
.principles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.principle {
  background: var(--bg-card);
  border-left: 3px solid var(--accent);
  padding: 16px 20px;
  border-radius: 0 4px 4px 0;
}

.principle-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 4px;
}

.principle-text {
  font-size: 15px;
  color: var(--text);
  line-height: 1.5;
}

/* TRACK PAGE HEADER */
.track-header {
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--border);
}

.track-header-number {
  font-family: var(--mono);
  font-size: 14px;
  color: var(--accent);
  letter-spacing: 3px;
  margin-bottom: 16px;
}

.track-header-title {
  font-size: 36px;
  font-weight: 800;
  color: var(--text-bright);
  margin-bottom: 12px;
}

.track-header-desc {
  font-size: 18px;
  color: var(--text-dim);
  line-height: 1.6;
  max-width: 700px;
}

.track-header-status {
  margin-top: 24px;
  font-family: var(--mono);
  font-size: 13px;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.status-pill {
  padding: 4px 12px;
  border-radius: 3px;
  font-weight: 600;
}

.status-active { background: rgba(192,57,43,0.15); color: var(--accent-bright); }
.status-monitoring { background: rgba(91,141,239,0.12); color: var(--link); }
.status-developing { background: rgba(212,160,23,0.12); color: var(--warn); }

/* FINDINGS */
.finding {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 28px;
  margin-bottom: 20px;
}

.finding-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.finding-date {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
}

.finding-tag {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 3px;
}

.tag-evidence { background: rgba(91,141,239,0.12); color: var(--link); }
.tag-pattern { background: rgba(192,57,43,0.12); color: var(--accent-bright); }
.tag-hypothesis { background: rgba(212,160,23,0.12); color: var(--warn); }
.tag-timeline { background: rgba(46,204,113,0.12); color: #2ecc71; }

.finding-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-bright);
  margin-bottom: 12px;
}

.finding-body {
  font-size: 15px;
  color: var(--text);
  line-height: 1.7;
}

.finding-body p { margin-bottom: 12px; }
.finding-body p:last-child { margin-bottom: 0; }

.finding-body strong { color: var(--text-bright); }
.finding-body em { color: var(--text-dim); }

/* SOURCE CITATIONS */
.source {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
}

.source-label {
  color: var(--accent);
  margin-right: 6px;
}

/* DATA TABLE */
.data-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 14px;
}

.data-table th {
  text-align: left;
  padding: 10px 14px;
  background: var(--bg-card);
  color: var(--text-bright);
  font-family: var(--mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.data-table tr:hover td { background: rgba(255,255,255,0.02); }

.data-table .num { font-family: var(--mono); color: var(--accent-bright); font-weight: bold; }

/* TIMELINE */
.timeline {
  position: relative;
  padding-left: 24px;
  margin: 24px 0;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding-bottom: 28px;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -24px;
  top: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg);
}

.timeline-date {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  margin-bottom: 4px;
}

.timeline-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-bright);
  margin-bottom: 4px;
}

.timeline-desc {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.5;
}

/* ANSWER ERA GRID — two-card contrast */
.answer-era-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin: 32px 0;
}

.answer-era-card {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .answer-era-grid {
    grid-template-columns: 1fr;
  }
  .answer-era-card {
    margin-bottom: 20px;
  }
  .answer-era-card:last-child {
    margin-bottom: 0;
  }
}

/* CALLOUT */
.callout {
  background: rgba(192,57,43,0.06);
  border: 1px solid rgba(192,57,43,0.2);
  border-radius: 6px;
  padding: 20px 24px;
  margin: 20px 0;
}

.callout-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.callout-text {
  font-size: 15px;
  color: var(--text);
  line-height: 1.6;
}

/* HYPOTHESIS BOX */
.hypothesis-box {
  background: rgba(212,160,23,0.06);
  border: 1px solid rgba(212,160,23,0.2);
  border-radius: 6px;
  padding: 20px 24px;
  margin: 20px 0;
}

.hypothesis-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--warn);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

/* FOOTER */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  margin-top: 40px;
}

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

.footer-text {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
}

.footer-links {
  display: flex;
  gap: 20px;
  font-family: var(--mono);
  font-size: 12px;
}

.footer-copyright {
  width: 100%;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.copyright-line {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-bright);
  margin-bottom: 8px;
  letter-spacing: 0.5px;
}

.copyright-notice {
  font-size: 11px;
  line-height: 1.6;
  color: var(--text-dim);
  max-width: 800px;
}

.copyright-notice a {
  color: var(--link);
  text-decoration: underline;
}

/* CONTACT FORM */
.contact-error {
  color: var(--accent-bright);
  background: rgba(192, 57, 43, 0.1);
  border: 1px solid var(--accent-dim);
  border-radius: 4px;
  padding: 12px 16px;
}

.contact-success {
  color: #27ae60;
  background: rgba(39, 174, 96, 0.1);
  border: 1px solid #1e8449;
  border-radius: 4px;
  padding: 12px 16px;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent) !important;
}

button[type="submit"]:hover {
  background: var(--accent-bright) !important;
}

button[type="button"]:hover {
  border-color: var(--text-dim) !important;
  color: var(--text-bright) !important;
}

/* PROJECT EVILSON — SPLASH SCREEN */
#splash-overlay {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: #050508;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  overflow: hidden;
  transition: opacity 0.8s ease-out;
}

#splash-overlay.fade-out {
  opacity: 0;
  pointer-events: none;
}

#splash-overlay.hidden {
  display: none !important;
}

/* MOBILE: hide splash immediately via CSS, no JS dependency.
   The splash.js mobile detection runs before body is parsed,
   so getElementById returns null and the overlay never gets hidden.
   This CSS rule ensures mobile never sees the splash regardless of JS. */
@media (max-width: 768px) {
  #splash-overlay { display: none !important; }
}

#splash-canvas {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
}

#splash-skip {
  position: absolute;
  top: 24px; right: 32px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 11px;
  color: #444;
  cursor: pointer;
  letter-spacing: 1px;
  z-index: 100;
  opacity: 0;
  transition: opacity 0.5s;
  user-select: none;
}

#splash-skip.visible {
  opacity: 1;
}

#splash-skip:hover {
  color: #888;
}

#splash-content {
  position: relative;
  z-index: 100;
  text-align: center;
  opacity: 0;
  transition: opacity 1.2s ease-in;
}

#splash-content.visible {
  opacity: 1;
}

#splash-logo {
  font-family: 'Courier New', Courier, monospace;
  font-size: 48px;
  font-weight: bold;
  color: #e8e8f0;
  letter-spacing: 8px;
  text-shadow: 0 0 30px rgba(192, 57, 43, 0.4);
}

.splash-dot {
  color: #c0392b;
  text-shadow: 0 0 20px rgba(192, 57, 43, 0.8);
}

#splash-tagline {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  font-size: 14px;
  color: #7a7a8a;
  margin-top: 12px;
  letter-spacing: 2px;
  text-transform: lowercase;
}

#splash-enter {
  margin-top: 36px;
  background: transparent;
  border: 1px solid #c0392b;
  color: #e74c3c;
  padding: 12px 48px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 13px;
  letter-spacing: 4px;
  cursor: pointer;
  transition: all 0.3s;
  opacity: 0;
  text-shadow: 0 0 10px rgba(192, 57, 43, 0.6);
  box-shadow: 0 0 15px rgba(192, 57, 43, 0.3), inset 0 0 10px rgba(192, 57, 43, 0.1);
  animation: splashEnterFadeIn 0.8s ease-out 1.5s forwards;
}

#splash-enter:hover {
  background: rgba(192, 57, 43, 0.2);
  border-color: #e74c3c;
  color: #ffffff;
  box-shadow: 0 0 25px rgba(192, 57, 43, 0.6), inset 0 0 15px rgba(192, 57, 43, 0.2);
}

@keyframes splashEnterFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* SHARE BUTTONS */
.share-bar {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid var(--border);
  margin-top: 24px;
}

.share-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  margin-right: 4px;
  letter-spacing: 1px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 13px;
  font-family: var(--mono);
  transition: all 0.2s;
  text-decoration: none;
}

.share-btn:hover {
  border-color: var(--accent);
  color: var(--accent-bright);
  background: rgba(192, 57, 43, 0.1);
}

.share-btn.share-copy {
  width: auto;
  padding: 0 12px;
  font-size: 11px;
  letter-spacing: 1px;
}

.share-btn.share-copy.copied {
  border-color: #27ae60;
  color: #27ae60;
  background: rgba(39, 174, 96, 0.1);
}

/* UTILITY */
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }
.mb-0 { margin-bottom: 0; }
.text-dim { color: var(--text-dim); }
.text-bright { color: var(--text-bright); }
.mono { font-family: var(--mono); }

/* MOBILE MENU TOGGLE (hidden on desktop) */
.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 6px 8px;
  cursor: pointer;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
  align-items: center;
  width: 36px;
  height: 36px;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text-dim);
  transition: all 0.25s ease;
  transform-origin: center;
}

.menu-toggle.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
  background: var(--accent-bright);
}

.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
  background: var(--accent-bright);
}

/* RESPONSIVE */
@media (max-width: 768px) {
  /* Mobile: sidebar becomes top bar */
  .site-header {
    position: sticky;
    top: 0;
    left: 0;
    bottom: auto;
    width: 100%;
    height: 56px;
    flex-direction: row;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .site-header-inner {
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    height: 56px;
    padding: 0 16px;
  }

  .site-logo {
    padding: 0;
    border-bottom: none;
    font-size: 18px;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    gap: 0;
    padding: 0;
    z-index: 99;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav a {
    padding: 14px 24px;
    border-bottom: 1px solid var(--border);
    font-size: 14px;
    border-left: none;
  }

  .site-nav a:last-child {
    border-bottom: none;
  }

  .site-nav a.active {
    background: rgba(192, 57, 43, 0.08);
    border-left: 3px solid var(--accent);
    padding-left: 21px;
  }

  .site-nav a .nav-label {
    opacity: 1;
  }

  .site-nav-divider {
    display: none;
  }

  .site-nav-secondary {
    display: none;
  }

  .site-nav-secondary.open {
    display: flex;
    flex-direction: column;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    z-index: 98;
    position: absolute;
    top: auto;
    left: 0;
    right: 0;
  }

  .site-nav-secondary.open a {
    padding: 14px 24px;
    border-bottom: 1px solid var(--border);
  }

  body {
    margin-left: 0;
  }

  .hero-title { font-size: 28px; }
  .hero-subtitle { font-size: 16px; }
  .track-grid { grid-template-columns: 1fr; }
  .track-header-title { font-size: 26px; }
  .section-title { font-size: 22px; }
  .principles { grid-template-columns: 1fr; }
  /* Mobile: smaller padding */
  .hero { padding: 40px 20px; }
  .section { padding: 30px 0; }
  .container { padding: 0 16px; }
  /* Mobile: tables scroll horizontally */
  .data-table { font-size: 12px; display: block; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
  .data-table thead, .data-table tbody, .data-table tr, .data-table th, .data-table td { display: block; }
  .data-table thead { display: none; }
  .data-table tr { margin-bottom: 12px; border: 1px solid var(--border); border-radius: 4px; padding: 8px; }
  .data-table td { display: block; white-space: normal; padding: 4px 0; border: none; }
  .data-table td:before { content: attr(data-label) ": "; color: var(--text-dim); font-weight: bold; font-size: 11px; }
  /* Mobile: track cards full width */
  .track-card { padding: 20px; }
  .track-card-title { font-size: 18px; }
  .track-card-desc { font-size: 14px; }
  /* Mobile: findings full width */
  .finding { padding: 16px; margin-bottom: 16px; }
  .finding-body { font-size: 14px; }
  .finding-body h3 { font-size: 17px; }
  /* Mobile: callouts */
  .callout { padding: 16px; }
  .callout-text { font-size: 14px; }
  /* Mobile: hypothesis boxes */
  .hypothesis-box { padding: 16px; }
  /* Mobile: footer */
  .site-footer-inner { flex-direction: column; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 12px; }
  .footer-copyright { text-align: center; }
  .copyright-notice { margin: 0 auto; }
  /* Mobile: track header */
  .track-header { padding: 30px 16px 20px; }
  .track-header-label { font-size: 11px; }
  /* Mobile: timeline */
  .timeline-item { padding-left: 20px; }
  .timeline-date { font-size: 10px; }
  .timeline-title { font-size: 14px; }
  .timeline-desc { font-size: 13px; }
  /* Mobile: contact form */
  .contact-form { padding: 0; }
  .contact-form input, .contact-form textarea, .contact-form select {
    font-size: 16px !important; /* prevents iOS zoom */
  }
  .contact-form button { width: 100%; }
  /* Mobile: section labels */
  .section-label { font-size: 11px; }
  /* Mobile: logo */
  .site-logo { font-size: 16px; }
  /* Mobile: splash */
  #splash-logo { font-size: 36px; letter-spacing: 6px; }
  #splash-tagline { font-size: 12px; }
  #splash-enter { padding: 10px 36px; font-size: 12px; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 24px; }
  .hero-subtitle { font-size: 14px; }
  .track-header-title { font-size: 22px; }
  .section-title { font-size: 19px; }
  .finding-body h3 { font-size: 16px; }
  #splash-logo { font-size: 30px; letter-spacing: 4px; }
}

/* ================================================================
   FRAMEWORK PAGES
   ================================================================ */

/* Framework index grid */
.framework-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.framework-card {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 24px;
  transition: border-color 0.2s ease, transform 0.2s ease;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.framework-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.framework-card-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.framework-card-title {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-bright);
  line-height: 1.3;
}

.framework-card-desc {
  font-size: 14px;
  color: var(--text-dim);
  line-height: 1.5;
}

.framework-card-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

/* Framework page layout */
.framework-header {
  padding: 48px 0 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

.framework-header-label {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.framework-header-title {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-bright);
  line-height: 1.2;
  margin-bottom: 12px;
}

.framework-header-citation {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-dim);
  margin-bottom: 16px;
}

.framework-overview {
  font-size: 15px;
  color: var(--text);
  line-height: 1.7;
  max-width: 800px;
}

/* Framework section/control */
.framework-section {
  margin-bottom: 32px;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.framework-section-header {
  padding: 16px 20px;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.framework-section-header:hover {
  background: rgba(255,255,255,0.04);
}

.framework-section-title {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-bright);
}

.framework-section-id {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
}

.framework-section-body {
  padding: 20px;
  display: none;
}

.framework-section-body.open {
  display: block;
}

.framework-section-text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 16px;
}

/* AI IMPACT callout */
.ai-impact {
  background: rgba(192, 57, 43, 0.06);
  border-left: 3px solid var(--accent);
  border-radius: 0 4px 4px 0;
  padding: 16px 20px;
  margin: 16px 0;
}

.ai-impact-label {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--accent);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.ai-impact-label::before {
  content: 'AI';
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 3px;
  letter-spacing: 0;
}

.ai-impact-text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.7;
}

.ai-impact-text strong {
  color: var(--accent-bright);
}

/* Framework source citation */
.framework-source {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  margin-top: 12px;
  padding-top: 8px;
  border-top: 1px dashed var(--border);
}

.framework-source a {
  color: var(--link);
  text-decoration: none;
}

.framework-source a:hover {
  text-decoration: underline;
}

/* Framework category tabs */
.framework-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}

.framework-tab {
  font-family: var(--mono);
  font-size: 12px;
  padding: 8px 16px;
  border: none;
  background: transparent;
  color: var(--text-dim);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.framework-tab:hover { color: var(--text); }
.framework-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

/* Cost analysis tables */
.cost-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-family: var(--mono);
  font-size: 13px;
}
.cost-table th {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 2px solid var(--border);
  color: var(--text-dim);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.cost-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}
.cost-table tr.cost-total td {
  border-top: 2px solid var(--accent);
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  color: var(--accent);
}
.cost-table tr.cost-recurring td {
  color: var(--text-dim);
  font-style: italic;
}
.cost-table tr:hover td {
  background: rgba(255,255,255,0.02);
}
@media (max-width: 768px) {
  .cost-table { font-size: 11px; }
  .cost-table th, .cost-table td { padding: 6px 8px; }
  .framework-grid { grid-template-columns: 1fr; }
  .framework-header-title { font-size: 24px; }
  .framework-section-header { padding: 12px 16px; }
  .framework-section-body { padding: 16px; }
  .ai-impact { padding: 12px 16px; }
  .cost-table { display: block; overflow-x: auto; white-space: nowrap; }
}