:root {
  --bg-canvas: #0a0b0e;
  --bg-surface: #14161c;
  --bg-surface-hover: #1e2029;
  --bg-surface-elevated: #262934;
  --text-primary: #ffffff;
  --text-muted: #f1f5f9;
  --text-subtle: #cbd5e1;
  --accent-primary: #facc15;
  --accent-secondary: #ffffff;
  --accent-warm: #fde047;
  --accent-deep: #eab308;
  --border-subtle: #2b2f3c;
  --border-accent: rgba(250, 204, 21, 0.45);
  --radius-panel: 18px;
  --font-heading: "Arial Narrow", "Helvetica Neue", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --transition-smooth: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-family: var(--font-body);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background: radial-gradient(circle at 18% 12%, rgba(250, 204, 21, 0.12), transparent 45%),
              radial-gradient(circle at 82% 55%, rgba(255, 255, 255, 0.05), transparent 50%),
              var(--bg-canvas);
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 1rem;
  background: var(--accent-primary);
  color: #0a0b0e;
  padding: 0.6rem 1.2rem;
  font-weight: 800;
  border-radius: 999px;
  z-index: 9999;
  transition: top 0.2s ease;
  text-decoration: none;
}
.skip-link:focus {
  top: 1rem;
}

/* Header */
.site-header-wrap {
  width: 100%;
  max-width: 1240px;
  margin: 1.25rem auto 0.5rem auto;
  padding: 0 1.25rem;
  position: relative;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(20, 22, 28, 0.92);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 0.6rem 1.5rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.brand-anchor {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--text-primary);
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 800;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.brand-glyph {
  display: inline-block;
  width: 14px;
  height: 14px;
  background: var(--accent-primary);
  border-radius: 50%;
  box-shadow: 0 0 14px var(--accent-primary);
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.4rem;
}

.nav-link {
  color: var(--text-subtle);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  position: relative;
  padding: 0.35rem 0.1rem;
  transition: color 0.2s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--accent-primary);
  transition: width 0.25s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
}

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

.header-cta {
  display: inline-flex;
  align-items: center;
  background: var(--accent-primary);
  color: #0a0b0e;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  flex-shrink: 0;
  transition: var(--transition-smooth);
}

.header-cta:hover {
  transform: translateY(-2px);
  background: var(--accent-warm);
  box-shadow: 0 4px 18px rgba(250, 204, 21, 0.45);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  color: var(--accent-primary);
}
.nav-toggle:focus-visible {
  outline: 2px solid var(--accent-primary);
}
.dot-icon {
  display: flex;
  flex-direction: column;
  gap: 3px;
  align-items: center;
}
.dot-icon span {
  display: block;
  width: 4px;
  height: 4px;
  background: var(--accent-primary);
  border-radius: 50%;
}

/* Mobile Dropdown */
.mobile-nav-panel {
  display: none;
  position: absolute;
  top: calc(100% + 0.6rem);
  right: 1.25rem;
  width: 250px;
  background: var(--bg-surface);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-panel);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
  padding: 1.2rem;
  flex-direction: column;
  gap: 0.75rem;
  z-index: 200;
}
.mobile-nav-panel.open {
  display: flex;
}
.mobile-nav-panel .nav-link {
  padding: 0.5rem 0.25rem;
  font-size: 1rem;
  color: var(--text-muted);
}
.mobile-nav-panel .nav-link:hover,
.mobile-nav-panel .nav-link.active {
  color: var(--accent-primary);
}

/* Layout Containers */
main {
  flex: 1;
}

.wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4.5rem) 1.5rem;
  min-width: 0;
}

.reading-wrapper {
  max-width: 76ch;
  margin: 0 auto;
  padding: clamp(2.2rem, 4vw, 4.2rem) 1.5rem;
  min-width: 0;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.2;
  color: var(--text-primary);
  overflow-wrap: break-word;
}

h1 {
  font-size: clamp(2.1rem, 5vw, 3.5rem);
  font-weight: 900;
  margin-bottom: 1.35rem;
}

h2 {
  font-size: clamp(1.55rem, 3.5vw, 2.35rem);
  font-weight: 800;
  margin-bottom: 1.1rem;
  color: #ffffff;
}

h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.65rem;
  color: #ffffff;
}

p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 1.35rem;
}

p strong, li strong {
  color: #ffffff;
  font-weight: 700;
}

/* Hero Section */
.hero {
  position: relative;
  padding: clamp(3.2rem, 7vw, 6.2rem) 1.5rem;
  border-bottom: 1px solid var(--border-subtle);
  background: radial-gradient(circle at 50% 25%, rgba(250, 204, 21, 0.16), rgba(10, 11, 14, 0.96) 75%);
  text-align: center;
}

.hero-scene-vector {
  max-width: 620px;
  margin: 0 auto 2rem auto;
  display: flex;
  justify-content: center;
}

.hero-badge {
  display: inline-block;
  background: rgba(250, 204, 21, 0.16);
  border: 1px solid var(--accent-primary);
  color: var(--accent-primary);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  padding: 0.4rem 1.1rem;
  border-radius: 999px;
  margin-bottom: 1.3rem;
}

.hero-subtitle {
  max-width: 68ch;
  margin: 0 auto 2.2rem auto;
  font-size: clamp(1.1rem, 2vw, 1.3rem);
  color: var(--text-muted);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.35rem;
  flex-wrap: wrap;
}

/* Buttons and Links */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-primary);
  color: #0a0b0e;
  font-weight: 800;
  font-family: var(--font-heading);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.9rem 1.9rem;
  border-radius: 999px;
  text-decoration: none;
  border: 2px solid var(--accent-primary);
  transition: var(--transition-smooth);
}

.btn-primary:hover {
  transform: translateY(-3px);
  background: var(--accent-warm);
  border-color: var(--accent-warm);
  box-shadow: 0 8px 24px rgba(250, 204, 21, 0.5);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.98rem;
  position: relative;
  padding: 0.5rem 0.25rem;
  transition: color 0.2s ease;
}

.btn-outline::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--accent-primary);
  transition: transform 0.25s ease;
}

.btn-outline:hover {
  color: var(--accent-primary);
}

.btn-outline:hover::after {
  transform: scaleX(0.7);
}

/* Bento Layouts - NO OVERLAPPING */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 2rem;
  margin: 2.75rem 0;
}

.bento-col-12 { grid-column: span 12; }
.bento-col-8 { grid-column: span 8; }
.bento-col-7 { grid-column: span 7; }
.bento-col-6 { grid-column: span 6; }
.bento-col-5 { grid-column: span 5; }
.bento-col-4 { grid-column: span 4; }

.bento-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-panel);
  padding: 1.85rem;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: var(--transition-smooth);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.bento-card:hover {
  background: var(--bg-surface-hover);
  border-color: var(--border-accent);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5), 0 0 20px rgba(250, 204, 21, 0.15);
}

.card-media {
  width: 100%;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1.25rem;
  position: relative;
  background: #101116;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-media svg, .card-media img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Badges positioned cleanly with NO overlapping */
.card-badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  bottom: auto;
  background: var(--accent-primary);
  color: #0a0b0e;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
  z-index: 2;
}

.bento-card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.bento-card-content h3 {
  margin-bottom: 0.25rem;
}

.bento-card-content p {
  flex: 1;
  margin-bottom: 1rem;
}

/* Section Intros */
.section-intro {
  margin-bottom: 2rem;
}
.section-tag {
  display: inline-block;
  color: var(--accent-primary);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  margin-bottom: 0.5rem;
}

/* Evidence Cards */
.evidence-deck {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.75rem;
  margin: 2.25rem 0;
}

.evidence-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-panel);
  padding: 1.85rem;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  transition: var(--transition-smooth);
}

.evidence-box:hover {
  border-color: var(--border-accent);
}

.evidence-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  padding: 0.35rem 0.8rem;
  border-radius: 6px;
  margin-bottom: 1.1rem;
}

.status-verified {
  background: var(--accent-primary);
  color: #0a0b0e;
}

.status-myth {
  background: #ffffff;
  color: #0a0b0e;
}

.evidence-box h3 {
  margin-bottom: 0.75rem;
}

.claim-quote {
  font-style: italic;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.05);
  border-left: 4px solid var(--accent-primary);
  padding: 0.75rem 1rem;
  border-radius: 0 8px 8px 0;
  margin-bottom: 1.1rem;
  font-size: 1.02rem;
}

/* Source Annotation Tables */
.annotation-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin: 2rem 0;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-panel);
  background: var(--bg-surface);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

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

.annotation-table th, .annotation-table td {
  padding: 1.15rem 1.45rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.98rem;
  color: var(--text-muted);
}

.annotation-table th {
  background: #101116;
  font-family: var(--font-heading);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-primary);
  font-weight: 800;
}

.annotation-table td strong {
  color: #ffffff;
}

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

/* Diagonal Divider Section */
.diagonal-divider {
  padding: 4.5rem 1.5rem;
  background: linear-gradient(135deg, rgba(20, 22, 28, 0.95) 0%, rgba(10, 11, 14, 0.98) 100%);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

/* Context Accordion */
.context-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-panel);
  margin-bottom: 1.35rem;
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.context-panel:hover {
  border-color: var(--border-accent);
}

.context-trigger {
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  padding: 1.35rem 1.6rem;
  font-size: 1.12rem;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.context-trigger:focus-visible {
  outline: 2px solid var(--accent-primary);
}

.context-icon {
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--accent-primary);
  transition: transform 0.25s ease;
  flex-shrink: 0;
}

.context-body {
  padding: 0 1.6rem 1.4rem 1.6rem;
  display: none;
}
.context-panel.open .context-body {
  display: block;
}
.context-panel.open .context-icon {
  transform: rotate(45deg);
  color: #ffffff;
}

/* Contact Drafting Tool */
.draft-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-panel);
  padding: 2.2rem;
  margin: 2rem 0;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

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

.form-label {
  display: block;
  font-weight: 800;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 0.5rem;
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  background: #0f1014;
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 0.85rem 1.1rem;
  color: #ffffff;
  font-family: var(--font-body);
  font-size: 1rem;
  transition: border-color 0.2s ease;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--accent-primary);
  box-shadow: 0 0 10px rgba(250, 204, 21, 0.25);
}

.draft-output-area {
  background: #0b0c0f;
  border: 1px dashed var(--accent-primary);
  border-radius: 12px;
  padding: 1.3rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.92rem;
  white-space: pre-wrap;
  margin: 1.5rem 0 1.25rem 0;
  min-height: 120px;
  color: #ffffff;
  line-height: 1.6;
}

.draft-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.btn-secondary {
  background: #242733;
  color: #ffffff;
  border: 1px solid var(--accent-primary);
  font-weight: 800;
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  transition: var(--transition-smooth);
}

.btn-secondary:hover {
  background: var(--accent-primary);
  color: #0a0b0e;
}

.status-msg {
  font-size: 0.95rem;
  color: var(--accent-primary);
  margin-top: 0.75rem;
  font-weight: 700;
  min-height: 1.3rem;
}

/* Footer */
.site-footer {
  background: #07080a;
  border-top: 1px solid var(--border-subtle);
  padding: 3.5rem 1.5rem 2.2rem 1.5rem;
  margin-top: 4.5rem;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 2.75rem;
}

.footer-brand-title {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 1.25rem;
  margin-bottom: 0.85rem;
  color: #ffffff;
  font-weight: 800;
}

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

.footer-nav-list a {
  color: var(--text-subtle);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s ease;
}

.footer-nav-list a:hover {
  color: var(--accent-primary);
}

.footer-bottom {
  max-width: 1200px;
  margin: 2.5rem auto 0 auto;
  padding-top: 1.6rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  font-size: 0.88rem;
  color: var(--text-subtle);
}

/* Scroll Fade Animation helper */
.reveal-item {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal-item.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .bento-col-8, .bento-col-7, .bento-col-6, .bento-col-5, .bento-col-4 {
    grid-column: span 12;
  }
}

@media (max-width: 920px) {
  .primary-nav, .header-cta {
    display: none;
  }
  .nav-toggle {
    display: block;
  }
}

@media (max-width: 768px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 480px) {
  .hero-actions {
    flex-direction: column;
    width: 100%;
  }
  .btn-primary, .btn-outline {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}