:root {
  --bg-primary: #0f1012;
  --bg-secondary: #17181c;
  --bg-card: #1e2025;
  --bg-subtle: #272930;
  --border-color: #32353e;
  --border-strong: #4f5360;
  --text-main: #f4f3ef;
  --text-muted: #9fa3af;
  --text-dim: #6b7080;
  --accent-red: #ff334b;
  --accent-red-hover: #e0263c;
  --accent-amber: #f59e0b;
  --accent-emerald: #10b981;
  --accent-purple: #a855f7;
  --badge-bg: rgba(255, 51, 75, 0.12);
  --badge-border: rgba(255, 51, 75, 0.35);
  --font-sans: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --max-w: 1240px;
}

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

body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.6;
  font-size: 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

/* SLIM UNSTUCK HEADER */
.site-header {
  position: static; /* Strictly unstuck */
  width: 100%;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  z-index: 50;
}

.header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  height: 58px;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-identity {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--text-main);
}

.brand-icon {
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, var(--accent-red), #b91c1c);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}

.brand-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  background: var(--bg-subtle);
  padding: 2px 6px;
  border-radius: 3px;
  color: var(--accent-red);
  font-weight: 600;
  text-transform: uppercase;
  margin-left: 4px;
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-desktop a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: var(--transition);
}

.nav-desktop a:hover,
.nav-desktop a.active {
  color: var(--text-main);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.btn-cta-slim {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--accent-red);
  color: #ffffff;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: var(--transition);
  border: 1px solid var(--accent-red);
}

.btn-cta-slim:hover {
  background: var(--accent-red-hover);
  border-color: var(--accent-red-hover);
  transform: translateY(-1px);
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  color: var(--text-main);
  cursor: pointer;
  padding: 6px;
}

.mobile-drawer {
  display: none;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 1rem 1.25rem;
}

.mobile-drawer.is-open {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.mobile-drawer a {
  font-size: 0.95rem;
  padding: 0.4rem 0;
  color: var(--text-muted);
  font-weight: 500;
}

.mobile-drawer a:hover,
.mobile-drawer a.active {
  color: var(--text-main);
}

/* MAIN LAYOUT */
.main-content {
  flex: 1;
  width: 100%;
}

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem 1.25rem;
}

/* HERO TERMINAL */
.hero-section {
  background: radial-gradient(circle at top right, rgba(255, 51, 75, 0.08) 0%, transparent 60%),
              radial-gradient(circle at bottom left, rgba(245, 158, 11, 0.04) 0%, transparent 50%),
              var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  padding: 4.5rem 1.25rem 3.5rem;
}

.hero-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  background: var(--badge-bg);
  border: 1px solid var(--badge-border);
  color: var(--accent-red);
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-pill span.pulse-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-red);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--accent-red);
}

.hero-title {
  font-size: clamp(2.25rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin-bottom: 1.25rem;
  max-width: 900px;
}

.hero-title .text-highlight {
  color: var(--accent-red);
  text-decoration: underline;
  text-decoration-thickness: 3px;
  text-underline-offset: 6px;
}

.hero-desc {
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  color: var(--text-muted);
  max-width: 720px;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px dashed var(--border-color);
}

.metric-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  padding: 1.25rem;
  border-radius: var(--radius-md);
}

.metric-number {
  font-family: var(--font-mono);
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.25rem;
}

.metric-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* SECTION TITLES */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

/* CARDS GRID */
.autopsy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.card-mortem {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}

.card-mortem:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
}

.card-media {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: var(--bg-subtle);
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card-mortem:hover .card-media img {
  transform: scale(1.05);
}

.card-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(15, 16, 18, 0.85);
  backdrop-filter: blur(4px);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  color: var(--accent-red);
  border: 1px solid var(--badge-border);
}

.card-burn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(0, 0, 0, 0.88);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #fff;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.75rem;
  color: var(--text-dim);
  font-family: var(--font-mono);
  margin-bottom: 0.75rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
  line-height: 1.3;
}

.card-summary {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
  margin-bottom: 1.25rem;
  flex: 1;
}

.card-cod {
  background: var(--bg-subtle);
  border-left: 3px solid var(--accent-red);
  padding: 0.65rem 0.85rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 0.8rem;
  margin-bottom: 1.25rem;
  color: #d1d5db;
}

.card-cod strong {
  color: var(--accent-red);
  font-weight: 600;
}

.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  border-top: 1px solid var(--border-color);
}

.btn-card {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-main);
  background: var(--bg-subtle);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  transition: var(--transition);
}

.btn-card:hover {
  background: var(--accent-red);
  border-color: var(--accent-red);
  color: #fff;
}

/* ARTICLE DETAIL STYLES */
.autopsy-header {
  padding: 3rem 1.25rem;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
}

.autopsy-header-inner {
  max-width: 900px;
  margin: 0 auto;
}

.autopsy-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.autopsy-breadcrumbs a:hover {
  color: var(--accent-red);
}

.autopsy-hero-title {
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.03em;
}

.vital-stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 1.25rem;
  border-radius: var(--radius-md);
  margin-top: 1.75rem;
}

.stat-item .stat-key {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  color: var(--text-dim);
}

.stat-item .stat-val {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-top: 0.2rem;
}

.content-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 1.25rem;
}

.article-hero-img {
  width: 100%;
  max-height: 440px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 2.5rem;
  border: 1px solid var(--border-color);
}

.prose h2 {
  font-size: 1.65rem;
  font-weight: 700;
  margin: 2.5rem 0 1rem;
  color: #fff;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 0.5rem;
}

.prose h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 1.75rem 0 0.75rem;
  color: #e5e7eb;
}

.prose p {
  color: #d1d5db;
  line-height: 1.75;
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

.prose ul, .prose ol {
  margin: 1rem 0 1.5rem 1.5rem;
  color: #d1d5db;
  line-height: 1.7;
}

.prose li {
  margin-bottom: 0.5rem;
}

.callout-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-left: 4px solid var(--accent-red);
  padding: 1.5rem;
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  margin: 2rem 0;
}

.callout-box.amber {
  border-left-color: var(--accent-amber);
}

.callout-title {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
  color: #fff;
}

.pros-cons-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin: 2rem 0;
}

.pro-box, .con-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  border-radius: var(--radius-md);
}

.pro-box {
  border-top: 3px solid var(--accent-emerald);
}

.con-box {
  border-top: 3px solid var(--accent-red);
}

.external-link-banner {
  background: var(--bg-subtle);
  border: 1px solid var(--border-strong);
  padding: 1.5rem;
  border-radius: var(--radius-md);
  margin-top: 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

/* LEGAL PAGES & CONTACT FORMS */
.legal-container {
  max-width: 860px;
  margin: 0 auto;
  padding: 3.5rem 1.25rem 5rem;
}

.legal-header {
  margin-bottom: 2.5rem;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 1.5rem;
}

.legal-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 0.5rem;
}

.legal-header p {
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.legal-body h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  margin: 2rem 0 0.75rem;
}

.legal-body p {
  color: #cbd5e1;
  line-height: 1.7;
  margin-bottom: 1.2rem;
  font-size: 0.95rem;
}

.legal-body ul {
  margin: 0 0 1.2rem 1.5rem;
  color: #cbd5e1;
  line-height: 1.6;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3rem;
  margin-top: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: #d1d5db;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: #fff;
  padding: 0.75rem 0.9rem;
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 0.95rem;
  transition: var(--transition);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--accent-red);
  box-shadow: 0 0 0 2px rgba(255, 51, 75, 0.2);
}

.btn-submit {
  background: var(--accent-red);
  color: #fff;
  padding: 0.8rem 1.75rem;
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 600;
  cursor: pointer;
  font-size: 0.95rem;
  transition: var(--transition);
}

.btn-submit:hover {
  background: var(--accent-red-hover);
}

/* MANDATORY FOOTER STYLES */
.site-footer {
  margin-top: auto;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  padding: 4rem 1.25rem 2rem;
  color: var(--text-muted);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border-color);
}

.footer-col-brand h3 {
  color: var(--text-main);
  font-size: 1.2rem;
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.footer-col-brand p {
  font-size: 0.88rem;
  line-height: 1.6;
  margin-bottom: 1.25rem;
  color: var(--text-muted);
}

.footer-badge-address {
  font-size: 0.82rem;
  background: var(--bg-card);
  padding: 0.75rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  line-height: 1.5;
}

.footer-col h4 {
  color: var(--text-main);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1.25rem;
  font-family: var(--font-mono);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-links a {
  font-size: 0.88rem;
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent-red);
}

.footer-bottom {
  padding-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--text-dim);
}

.copyright-text {
  line-height: 1.5;
}

/* COOKIE CONSENT BANNER */
.cookie-banner {
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  right: 1.25rem;
  max-width: 600px;
  margin: 0 auto;
  background: rgba(23, 24, 28, 0.96);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-strong);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  z-index: 9999;
  display: none;
  animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.cookie-content {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.cookie-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.cookie-text {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.cookie-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.btn-cookie-accept {
  background: var(--accent-red);
  color: #fff;
  border: none;
  padding: 0.45rem 1rem;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.btn-cookie-accept:hover {
  background: var(--accent-red-hover);
}

.btn-cookie-alt {
  background: var(--bg-card);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  padding: 0.45rem 0.9rem;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
}

.btn-cookie-alt:hover {
  color: #fff;
  border-color: var(--border-strong);
}

/* RESPONSIVENESS */
@media (max-width: 1024px) {
  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .nav-desktop {
    display: none;
  }
  .mobile-toggle {
    display: block;
  }
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .pros-cons-grid {
    grid-template-columns: 1fr;
  }
  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}