:root {
  --bg-canvas: #f3f0fa;
  --bg-surface: #fffdfd;
  --bg-subtle: #eae3f2;
  --text-primary: #3f3b46;
  --text-muted: #6b6475;
  --accent-primary: #54294f;
  --accent-secondary: #7e3a76;
  --accent-badge: #6a2444;
  --border-fine: #d5c8dc;
  --shadow-block: 4px 4px 0 #2a1127;
  --font-serif: Charter, Cambria, "Bitstream Charter", Georgia, serif;
}

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

html {
  font-family: var(--font-serif);
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  line-height: 1.68;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  padding: 0;
  overflow-wrap: anywhere;
  hyphens: auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Tagline top bar */
.top-notice-bar {
  background-color: #e4dcee;
  border-bottom: 1px solid var(--border-fine);
  padding: 6px 1.5rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Header & Navigation (Static/Relative, NEVER Sticky) */
.site-header {
  position: static;
  background-color: var(--bg-surface);
  border-bottom: 2px solid var(--border-fine);
  padding: 1.1rem 1.5rem;
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-wrapper {
  text-align: left;
}

.brand-link {
  color: var(--accent-primary);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.brand-glyph {
  display: inline-block;
  width: 14px;
  height: 14px;
  background-color: var(--accent-primary);
  transform: rotate(45deg);
}

.brand-sub {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.site-nav a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.95rem;
  padding: 0.35rem 0.2rem;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--accent-primary);
  border-bottom-color: var(--accent-primary);
}

/* Mobile Toggle */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-fine);
  font-size: 1.4rem;
  color: var(--accent-primary);
  padding: 0.2rem 0.6rem;
  cursor: pointer;
  line-height: 1;
}

.mobile-menu-drawer {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg-surface);
  border-bottom: 3px solid var(--accent-primary);
  padding: 1rem 1.5rem;
  flex-direction: column;
  gap: 0.8rem;
  z-index: 99;
  box-shadow: 0 8px 16px rgba(0,0,0,0.08);
}

.mobile-menu-drawer.open {
  display: flex;
}

.mobile-menu-drawer a {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 1.05rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--bg-subtle);
}

/* Layout Core */
.main-content {
  flex: 1 0 auto;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.longform-copy {
  max-width: 70ch;
  margin: 0 auto;
}

/* Headings & Typography */
h1, h2, h3, h4 {
  color: var(--accent-primary);
  line-height: 1.25;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

h1 {
  font-size: 2.6rem;
  letter-spacing: -0.02em;
}

h2 {
  font-size: 1.85rem;
  margin-top: 1.6rem;
}

h3 {
  font-size: 1.3rem;
  margin-top: 1.1rem;
}

p {
  margin-bottom: 1.2rem;
}

.lead-paragraph {
  font-size: 1.2rem;
  line-height: 1.6;
  color: #2c2732;
  margin-bottom: 1.8rem;
}

.kicker {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-primary);
  border: 1px solid var(--accent-primary);
  padding: 0.15rem 0.5rem;
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.badge-tag {
  display: inline-block;
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  background-color: var(--accent-badge);
  color: #fffdfd;
}

/* Hard Offset Buttons */
.btn-case {
  display: inline-block;
  background-color: var(--accent-primary);
  color: #fffdfd;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  padding: 0.8rem 1.6rem;
  border: 2px solid #2a1127;
  box-shadow: var(--shadow-block);
  transform: translate(0, 0);
  transition: transform 0.1s ease, box-shadow 0.1s ease;
  cursor: pointer;
  text-align: center;
}

.btn-case:hover {
  transform: translate(3px, 3px);
  box-shadow: 1px 1px 0 #2a1127;
}

.btn-case-secondary {
  background-color: transparent;
  color: var(--accent-primary);
  box-shadow: 4px 4px 0 var(--border-fine);
  border-color: var(--accent-primary);
}

.btn-case-secondary:hover {
  box-shadow: 1px 1px 0 var(--border-fine);
}

/* Background CSS dot field */
.bg-dot-field {
  background-color: var(--bg-canvas);
  background-image: radial-gradient(#6c4a67 1px, transparent 1px);
  background-size: 18px 18px;
}

/* Hero Section */
.hero-block {
  border: 2px solid var(--accent-primary);
  background: var(--bg-surface);
  padding: 2.2rem;
  margin-bottom: 3.5rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: center;
}

.hero-visual {
  position: relative;
}

.hero-visual img {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
  border: 1px solid var(--border-fine);
}

.floating-facts-panel {
  background: var(--bg-canvas);
  border: 1px solid var(--border-fine);
  padding: 1.5rem;
  box-shadow: 3px 3px 0 #4a2046;
}

.facts-panel-title {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--accent-primary);
  border-bottom: 1px solid var(--border-fine);
  padding-bottom: 0.4rem;
  margin-bottom: 0.9rem;
}

.fact-item {
  margin-bottom: 1rem;
  font-size: 0.92rem;
  line-height: 1.5;
}

.fact-item:last-child {
  margin-bottom: 0;
}

.fact-source {
  display: block;
  font-size: 0.74rem;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 0.2rem;
}

/* Numbered Timeline / Vertical Aubergine Stream */
.timeline-stream {
  position: relative;
  padding-left: 2.8rem;
  margin: 3rem 0;
}

.timeline-stream::before {
  content: "";
  position: absolute;
  top: 0.5rem;
  bottom: 0.5rem;
  left: 1.1rem;
  width: 2px;
  background-color: var(--accent-primary);
}

.stream-stop {
  position: relative;
  margin-bottom: 3.5rem;
}

.stream-stop::before {
  content: "";
  position: absolute;
  left: -2.8rem;
  top: 0.25rem;
  width: 18px;
  height: 18px;
  background-color: var(--bg-surface);
  border: 4px solid var(--accent-primary);
  border-radius: 50%;
  transform: translateX(4px);
}

.stop-indicator {
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-secondary);
  margin-bottom: 0.4rem;
}

/* Cards & Image Top Summaries */
.case-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-fine);
  box-shadow: 3px 3px 0 rgba(84, 41, 79, 0.1);
  overflow: visible;
  position: relative;
  display: flex;
  flex-direction: column;
}

.card-media-wrapper {
  position: relative;
  width: 100%;
  height: 220px;
  background-color: #2e1d2c;
}

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

.card-badge-overlap {
  position: absolute;
  bottom: -12px;
  left: 16px;
  z-index: 2;
}

.case-card-body {
  padding: 1.8rem 1.4rem 1.4rem;
  flex: 1 0 auto;
}

.case-card-body h3 {
  margin-top: 0;
  margin-bottom: 0.6rem;
}

.grid-two {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.grid-three {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.8rem;
  margin: 2.2rem 0;
}

/* Claim vs Evidence Panels */
.comparison-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-fine);
  margin: 2rem 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-left: 4px solid var(--accent-primary);
}

.comparison-col {
  padding: 1.5rem;
}

.comparison-col:first-child {
  border-right: 1px solid var(--border-fine);
  background-color: #fbf8fe;
}

.comparison-tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  color: var(--accent-secondary);
  margin-bottom: 0.5rem;
}

/* Uncertainty Notes */
.uncertainty-callout {
  background: #fdfaf6;
  border: 1px dashed #8b6b85;
  padding: 1.3rem 1.5rem;
  margin: 1.8rem 0;
}

.uncertainty-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

/* Scientific notation & tabular data */
.sci-metric {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  font-weight: 600;
}

.table-scroller {
  overflow-x: auto;
  margin: 1.8rem 0;
  border: 1px solid var(--border-fine);
  background: var(--bg-surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}

th, td {
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--border-fine);
}

th {
  background-color: #ece4f2;
  color: var(--accent-primary);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

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

/* FAQ accordion / items */
.faq-stack {
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.faq-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-fine);
  padding: 1.5rem;
  box-shadow: 2px 2px 0 rgba(84, 41, 79, 0.06);
}

.faq-card h3 {
  margin-top: 0;
  color: var(--accent-primary);
  font-size: 1.18rem;
}

/* Contact / Case Submission tool */
.submission-tool-wrapper {
  background: var(--bg-surface);
  border: 2px solid var(--accent-primary);
  padding: 2rem;
  margin: 2.5rem 0;
}

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

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

.form-input, .form-textarea, .form-select {
  width: 100%;
  font-family: var(--font-serif);
  font-size: 0.98rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border-fine);
  background: #ffffff;
  color: var(--text-primary);
  border-radius: 0;
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: 2px solid var(--accent-primary);
  background-color: #fffdfd;
}

.btn-row {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 1rem;
}

.tool-output {
  margin-top: 1.5rem;
  background: #f8f4fb;
  border: 1px solid var(--border-fine);
  padding: 1rem;
  font-family: monospace;
  font-size: 0.88rem;
  white-space: pre-wrap;
  display: none;
}

/* Scroll reveal helper */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Footer (strictly uniform across site) */
.site-footer {
  margin-top: auto;
  background-color: #2a1127;
  color: #e5dde7;
  border-top: 4px solid var(--accent-secondary);
  padding: 3rem 1.5rem 2rem;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 2.5rem;
}

.footer-brand h4 {
  color: #fffdfd;
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
}

.footer-brand p {
  color: #c9bed0;
  font-size: 0.9rem;
  line-height: 1.6;
}

.footer-col h5 {
  color: #fffdfd;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 1rem;
  border-bottom: 1px solid #4a2948;
  padding-bottom: 0.4rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.6rem;
}

.footer-links a {
  color: #ddd4e2;
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-bottom-bar {
  max-width: 1200px;
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid #421d3f;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.82rem;
  color: #af9fb7;
}

.footer-bottom-bar a {
  color: #ddd4e2;
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
  .site-nav {
    display: none;
  }
  .mobile-nav-toggle {
    display: block;
  }
  .site-header {
    position: relative;
  }
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .comparison-box {
    grid-template-columns: 1fr;
  }
  .comparison-col:first-child {
    border-right: none;
    border-bottom: 1px solid var(--border-fine);
  }
  .footer-container {
    grid-template-columns: 1fr;
    gap: 1.8rem;
  }
  h1 {
    font-size: 2.1rem;
  }
  .timeline-stream {
    padding-left: 2rem;
  }
  .timeline-stream::before {
    left: 0.7rem;
  }
  .stream-stop::before {
    left: -2rem;
  }
}

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