:root {
  --paper: #f6f3ec;
  --paper-elevated: #fdfcf9;
  --paper-rule: #e2dcd0;
  --ink: #10151f;
  --ink-soft: #475569;
  --ink-muted: #64748b;
  --obsidian: #0b0f17;
  --obsidian-card: #131926;
  --obsidian-rule: rgba(148, 163, 184, 0.16);
  --amber: #f59e0b;
  --amber-deep: #b45309;
  --highlight: #fde047;
  --emerald: #059669;
  --emerald-bright: #10b981;
  --crimson: #dc2626;
  --crimson-bright: #ef4444;
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --max-w: 1180px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  position: relative;
}

/* Subtle archival paper grain */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.028;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 28px;
}

/* Masthead / Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(246, 243, 236, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--paper-rule);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 20px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.02em;
}

.brand-icon {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--obsidian);
  border: 1.5px solid rgba(245, 158, 11, 0.55);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.brand-wordmark span { color: var(--amber-deep); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
}

.nav-links a:hover { color: var(--ink); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  padding: 11px 20px;
  border-radius: 9px;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn:hover { transform: translateY(-1px); }

.btn-dark {
  background: var(--obsidian);
  color: #f8fafc;
  box-shadow: 0 8px 20px rgba(11, 15, 23, 0.14);
}
.btn-dark:hover { background: #182132; }

.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: #cbc3b2;
}
.btn-outline:hover { background: var(--paper-elevated); border-color: var(--ink); }

.btn-amber {
  background: var(--amber);
  color: #0b0f17;
  font-weight: 700;
}
.btn-amber:hover { background: #fbbf24; }

.mono {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
}

.serif {
  font-family: "Instrument Serif", "Playfair Display", Georgia, serif;
}

/* Hero Section */
.hero {
  padding: 76px 0 64px;
  border-bottom: 1px solid var(--paper-rule);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 56px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 20px;
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald);
  box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.14);
}

.hero h1 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(46px, 5.4vw, 72px);
  font-weight: 400;
  line-height: 1.03;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 24px;
}

.marker {
  position: relative;
  display: inline-block;
  padding: 0 6px;
  z-index: 1;
}

.marker::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 36%;
  background: var(--highlight);
  z-index: -1;
  transform: rotate(-0.8deg);
  border-radius: 3px;
}

.hero-lead {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 560px;
  margin-bottom: 32px;
  line-height: 1.68;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 36px;
}

.hero-footnote {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--ink-muted);
  padding-top: 22px;
  border-top: 1px solid var(--paper-rule);
}

.hero-footnote span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

/* Tactile Paper Audit Dossier Card */
.dossier-stage {
  position: relative;
  padding: 16px 8px;
}

.dossier-card {
  position: relative;
  background: var(--paper-elevated);
  border: 1px solid #dbd4c5;
  border-radius: 12px;
  padding: 30px 28px 26px;
  box-shadow:
    0 24px 50px rgba(16, 21, 31, 0.09),
    0 4px 12px rgba(16, 21, 31, 0.04);
  transform: rotate(-1.1deg);
}

.tape {
  position: absolute;
  top: -11px;
  left: 50%;
  transform: translateX(-50%) rotate(1.5deg);
  width: 112px;
  height: 24px;
  background: rgba(245, 226, 172, 0.72);
  border: 1px solid rgba(203, 180, 120, 0.35);
  backdrop-filter: blur(2px);
}

.dossier-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1.5px dashed #d6cfc0;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

.exhibit-pill {
  background: #fee2e2;
  color: var(--crimson);
  border: 1px solid rgba(220, 38, 38, 0.25);
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 700;
}

.dossier-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #eee8dc;
}

.dossier-row:last-of-type { border-bottom: none; }

.dossier-cat {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-muted);
  margin-bottom: 3px;
}

.dossier-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}

.dossier-figure {
  font-family: "JetBrains Mono", monospace;
  font-size: 20px;
  font-weight: 800;
  color: var(--crimson);
  white-space: nowrap;
}

.dossier-figure.good { color: var(--emerald); }

.dossier-footer {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1.5px dashed #d6cfc0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--ink-soft);
}

.verified-stamp {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  color: var(--emerald);
  border: 1.5px solid var(--emerald);
  padding: 3px 9px;
  border-radius: 5px;
  letter-spacing: 0.08em;
}

/* Dark Obsidian Video Audits Showcase */
.cinema-section {
  background: var(--obsidian);
  color: #f8fafc;
  padding: 88px 0;
  position: relative;
  overflow: hidden;
}

.cinema-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 700px 360px at 18% 12%, rgba(245, 158, 11, 0.11), transparent 65%),
    radial-gradient(ellipse 600px 360px at 84% 88%, rgba(16, 185, 129, 0.08), transparent 65%);
  pointer-events: none;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 44px;
  position: relative;
}

.section-kicker {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 10px;
}

.section-title {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -0.015em;
}

.section-sub {
  font-size: 15px;
  color: #94a3b8;
  max-width: 420px;
}

.audits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  position: relative;
}

.audit-card {
  background: var(--obsidian-card);
  border: 1px solid var(--obsidian-rule);
  border-radius: var(--radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.audit-card:hover {
  transform: translateY(-4px);
  border-color: rgba(245, 158, 11, 0.45);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.42);
}

.thumb-wrap {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #06080d;
}

.thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.audit-card:hover .thumb-wrap img { transform: scale(1.03); }

.duration-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  background: rgba(8, 11, 17, 0.88);
  color: #f8fafc;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.audit-body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.audit-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 10px;
}

.audit-card h3 {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: -0.015em;
  color: #f8fafc;
  margin-bottom: 12px;
}

.audit-card p {
  font-size: 14px;
  color: #94a3b8;
  line-height: 1.62;
  margin-bottom: 18px;
  flex: 1;
}

.audit-takeaway {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 16px;
}

.audit-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--amber);
}
.audit-link:hover { color: #fcd34d; }

/* Interactive Scorecard Section */
.paper-section {
  padding: 88px 0;
  border-bottom: 1px solid var(--paper-rule);
}

.paper-section .section-kicker { color: var(--amber-deep); }
.paper-section .section-sub { color: var(--ink-soft); }

.tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
}

.tab-btn {
  font-family: "Inter", sans-serif;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid #d5cebf;
  background: var(--paper-elevated);
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 0.15s ease;
}

.tab-btn.active {
  background: var(--obsidian);
  color: #f8fafc;
  border-color: var(--obsidian);
}

.scorecard-wrap {
  background: var(--paper-elevated);
  border: 1px solid #dcd5c7;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(16, 21, 31, 0.04);
}

.scorecard-panel { display: none; }
.scorecard-panel.active { display: block; }

.scorecard-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.scorecard-table th,
.scorecard-table td {
  padding: 18px 22px;
  border-bottom: 1px solid #ece6d9;
  font-size: 14.5px;
}

.scorecard-table tr:last-child td { border-bottom: none; }

.scorecard-table th {
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  background: #f1ede4;
}

.pill-tag {
  display: inline-block;
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 5px;
}

.pill-win { background: #d1fae5; color: #065f46; }
.pill-warn { background: #fee2e2; color: #991b1b; }
.pill-mid { background: #fef3c7; color: #92400e; }

.table-scroll { overflow-x: auto; }

/* Methodology Grid */
.method-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.method-card {
  background: var(--paper-elevated);
  border: 1px solid #dfd8ca;
  border-radius: var(--radius-md);
  padding: 26px 24px;
}

.method-num {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--amber-deep);
  letter-spacing: 0.12em;
  margin-bottom: 14px;
}

.method-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.method-card p {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.65;
}

/* Disclosure Banner */
.disclosure-box {
  background: var(--paper-elevated);
  border: 1px solid #dcd4c3;
  border-left: 4px solid var(--amber);
  border-radius: var(--radius-md);
  padding: 28px 30px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

.disclosure-box h3 {
  font-size: 18px;
  margin-bottom: 6px;
}

.disclosure-box p {
  font-size: 14.5px;
  color: var(--ink-soft);
  max-width: 760px;
}

/* Footer */
.site-footer {
  background: var(--obsidian);
  color: #94a3b8;
  padding: 56px 0 42px;
  font-size: 14px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 36px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--obsidian-rule);
}

.footer-brand {
  color: #f8fafc;
  font-weight: 800;
  font-size: 17px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-col h4 {
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #e2e8f0;
  margin-bottom: 14px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a:hover { color: var(--amber); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 24px;
  font-size: 13px;
  color: #64748b;
}

/* Subpage Editorial Article Layout */
.article-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 64px 28px 96px;
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-bottom: 24px;
}
.article-back:hover { color: var(--ink); }

.article-wrap h1 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: clamp(36px, 4.6vw, 54px);
  font-weight: 400;
  line-height: 1.08;
  margin-bottom: 16px;
}

.article-meta {
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--ink-muted);
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--paper-rule);
}

.article-hero-img {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid #d7d0c0;
  margin-bottom: 32px;
}

.article-body h2 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 31px;
  font-weight: 400;
  margin: 34px 0 12px;
  color: var(--ink);
}

.article-body h3 {
  font-size: 17px;
  font-weight: 700;
  margin: 22px 0 8px;
}

.article-body p, .article-body li {
  font-size: 16px;
  color: #273244;
  line-height: 1.75;
  margin-bottom: 14px;
}

.article-body ul {
  padding-left: 22px;
  margin-bottom: 18px;
}

.callout-paper {
  background: var(--paper-elevated);
  border: 1px solid #dcd4c3;
  border-left: 4px solid var(--crimson);
  border-radius: 10px;
  padding: 20px 22px;
  margin: 24px 0;
}

.callout-paper.emerald { border-left-color: var(--emerald); }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 38px; }
  .audits-grid { grid-template-columns: 1fr; }
  .method-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .disclosure-box { grid-template-columns: 1fr; }
  .dossier-card { transform: none; }
}

@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .nav-links { display: none; }
  .brand-mark { font-size: 15px; gap: 9px; white-space: nowrap; }
  .brand-icon { width: 32px; height: 32px; }
  .header-inner .btn { padding: 8px 13px; font-size: 12.5px; white-space: nowrap; }
  .hero { padding: 44px 0 40px; }
  .cinema-section, .paper-section { padding: 60px 0; }
  .method-grid { grid-template-columns: 1fr; }
  .section-header { flex-direction: column; align-items: flex-start; }
}
