:root {
  --bg-canvas: #f3f0fa;
  --bg-surface: rgba(255, 255, 255, 0.85);
  --bg-surface-solid: #ffffff;
  --bg-surface-hover: rgba(255, 255, 255, 0.96);
  --bg-plum-pale: #eae2f6;
  --bg-plum-deep: #2a1529;
  --text-primary: #2d1b2e;
  --text-slate: #3d3142;
  --text-muted: #5e4b63;
  --accent-primary: #593057;
  --accent-secondary: #865283;
  --border-subtle: rgba(89, 48, 87, 0.22);
  --border-strong: #593057;
  --ease-kinetic: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-elevation: 0 12px 32px -4px rgba(45, 27, 46, 0.14);
  --glow-accent: 0 0 24px -4px rgba(89, 48, 87, 0.25);
  --glass-backdrop: blur(16px) saturate(160%);
  --font-serif: Charter, Cambria, Georgia, serif;
}

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

html, body {
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-serif);
  line-height: 1.68;
  font-size: 17px;
  overflow-wrap: anywhere;
  hyphens: auto;
}

a {
  color: var(--accent-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

a:hover {
  color: var(--accent-secondary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 0;
  border: 1px solid var(--border-subtle);
  background-color: var(--bg-plum-pale);
}

.wrapper {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header: Inset Capsule in Normal Document Flow */
.site-header-wrap {
  padding: 1.25rem 1.5rem 0.5rem;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

.capsule-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-surface);
  backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 0.65rem 1.5rem;
  box-shadow: var(--shadow-elevation);
  position: relative;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--accent-primary);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  margin-right: auto;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-primary);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-variant: small-caps;
  flex-shrink: 0;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  list-style: none;
}

.desktop-nav a {
  text-decoration: none;
  color: var(--text-primary);
  font-size: 0.95rem;
  font-variant: small-caps;
  letter-spacing: 0.06em;
  font-weight: 600;
  padding: 0.25rem 0.4rem;
}

.desktop-nav a:hover,
.desktop-nav a[aria-current="page"] {
  color: var(--accent-primary);
  border-bottom: 2px solid var(--accent-primary);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--accent-primary);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.mobile-dropdown {
  display: none;
  margin-top: 0.5rem;
  background: var(--bg-surface-solid);
  border: 1px solid var(--border-strong);
  padding: 1rem 1.5rem;
  box-shadow: var(--shadow-elevation);
}

.mobile-dropdown.open {
  display: block;
}

.mobile-dropdown ul {
  list-style: none;
  display: grid;
  gap: 0.65rem;
}

.mobile-dropdown a {
  text-decoration: none;
  font-variant: small-caps;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--text-primary);
  display: block;
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

/* Typography & Small Caps Labels */
h1, h2, h3, h4 {
  color: var(--text-primary);
  line-height: 1.24;
  font-weight: 700;
  margin-bottom: 0.85rem;
}

h1 {
  font-size: clamp(2rem, 3.8vw, 3.1rem);
  letter-spacing: -0.01em;
}

h2 {
  font-size: clamp(1.45rem, 2.5vw, 2.1rem);
}

h3 {
  font-size: 1.28rem;
}

p {
  margin-bottom: 1.15rem;
  color: var(--text-slate);
}

.sc-label {
  display: inline-block;
  font-variant: small-caps;
  text-transform: lowercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--accent-primary);
  background: var(--bg-plum-pale);
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
  border: 1px solid var(--border-subtle);
}

/* Buttons: Square Outlined with Uppercase Labels */
.btn-outline {
  display: inline-block;
  border: 1.5px solid var(--accent-primary);
  background: transparent;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.8rem 1.45rem;
  text-decoration: none;
  border-radius: 0;
  cursor: pointer;
  transition: transform 0.25s var(--ease-kinetic), background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.btn-outline:hover {
  background: var(--accent-primary);
  color: #ffffff;
  transform: translateY(-3px);
  box-shadow: var(--shadow-elevation), var(--glow-accent);
}

.btn-solid {
  background: var(--accent-primary);
  color: #ffffff;
}

.btn-solid:hover {
  background: var(--bg-plum-deep);
}

/* Faint CSS Grid Background */
.grid-bg {
  background-color: var(--bg-plum-pale);
  background-image:
    linear-gradient(to right, rgba(89, 48, 87, 0.08) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(89, 48, 87, 0.08) 1px, transparent 1px);
  background-size: 28px 28px;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

/* Layout Architecture: Large Lead Block + Two-Column Editorial Grid */
section {
  padding: 3.25rem 0;
  border-radius: 0;
}

.lead-block {
  background: var(--bg-surface);
  backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--border-subtle);
  padding: 2.5rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-elevation);
  border-radius: 0;
}

.editorial-two-col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}

.editorial-card {
  background: var(--bg-surface);
  backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--border-subtle);
  padding: 1.85rem;
  border-radius: 0;
  transition: transform 0.3s var(--ease-kinetic), box-shadow 0.3s var(--ease-kinetic), background-color 0.3s ease;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.editorial-card:hover {
  transform: translateY(-5px) scale(1.01);
  background: var(--bg-surface-hover);
  box-shadow: var(--shadow-elevation), var(--glow-accent);
}

/* Hero Floating Three-Fact Card over Vector Illustration */
.hero-stage {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2rem;
  align-items: center;
}

.hero-visual-container {
  position: relative;
  border: 1px solid var(--border-strong);
  background: #ffffff;
  padding: 0;
}

.hero-visual-container img {
  width: 100%;
  aspect-ratio: 16 / 10;
  border: none;
}

.three-fact-card {
  position: relative;
  margin-top: -3.2rem;
  margin-left: 1.25rem;
  margin-right: 1.25rem;
  margin-bottom: 1.25rem;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: var(--glass-backdrop);
  border: 1px solid var(--border-strong);
  padding: 1.25rem;
  box-shadow: var(--shadow-elevation);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.fact-item {
  border-left: 2px solid var(--accent-primary);
  padding-left: 0.75rem;
}

.fact-num {
  display: block;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--accent-primary);
  font-variant: small-caps;
}

.fact-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.35;
}

/* Claim vs Question Disclosures & Sourcing Path Diagram */
.sourcing-path-diagram {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin: 1.75rem 0;
}

.path-node {
  background: var(--bg-surface-solid);
  border: 1px solid var(--border-strong);
  padding: 1.25rem;
  position: relative;
}

.node-badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-primary);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 0.65rem;
}

.claim-question-box {
  border: 1px solid var(--border-subtle);
  background: var(--bg-plum-pale);
  padding: 1.25rem;
  margin-top: 1rem;
}

.claim-question-box strong {
  font-variant: small-caps;
  letter-spacing: 0.06em;
  color: var(--accent-primary);
}

/* Tables & Prose */
.prose-width {
  max-width: 70ch;
  margin: 0 auto;
}

.table-scroll {
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface-solid);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

th, td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border-subtle);
}

th {
  background: var(--bg-plum-pale);
  font-variant: small-caps;
  letter-spacing: 0.06em;
  color: var(--accent-primary);
}

/* Interactive Forms & Sourcing Note Panel */
.sourcing-note-panel {
  background: var(--bg-surface);
  backdrop-filter: var(--glass-backdrop);
  border: 1.5px solid var(--border-strong);
  padding: 2rem;
}

.form-row {
  margin-bottom: 1.15rem;
}

.form-row label {
  display: block;
  font-variant: small-caps;
  letter-spacing: 0.06em;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--text-primary);
}

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

.note-preview {
  background: var(--bg-plum-pale);
  border: 1px solid var(--border-subtle);
  padding: 1.15rem;
  font-family: monospace;
  font-size: 0.86rem;
  white-space: pre-wrap;
  margin: 1rem 0;
  min-height: 120px;
}

/* Scroll Reveal */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s var(--ease-kinetic), transform 0.65s var(--ease-kinetic);
}

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

/* Footer */
.site-footer {
  background: var(--bg-plum-deep);
  color: #f3f0fa;
  padding: 3rem 0 2rem;
  margin-top: 3rem;
  border-top: 3px solid var(--accent-primary);
}

.site-footer a {
  color: #eae2f6;
}

.site-footer p {
  color: #dcd0ec;
  font-size: 0.92rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}

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

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

.footer-bottom {
  border-top: 1px solid rgba(234, 226, 246, 0.2);
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
}

@media (max-width: 1024px) {
  .hero-stage {
    grid-template-columns: 1fr;
  }
  .sourcing-path-diagram {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
  }
  .editorial-two-col,
  .three-fact-card,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .lead-block {
    padding: 1.5rem;
  }
}

@media (max-width: 480px) {
  .sourcing-path-diagram {
    grid-template-columns: 1fr;
  }
  .capsule-header {
    padding: 0.5rem 1rem;
  }
}

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