:root {
  --parchment: #f5f0e8;
  --parchment-dark: #ede6d6;
  --parchment-mid: #e2d9c4;
  --ink: #1c1510;
  --ink-mid: #2e2520;
  --espresso: #5c3d2e;
  --espresso-light: #7a5243;
  --gold: #9c7a3c;
  --font-display: 'EB Garamond', Georgia, serif;
  --font-body: 'Crimson Pro', Georgia, serif;
  --font-mono: 'DM Mono', 'Courier New', monospace;
  color-scheme: light;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --parchment: #1B1410;
  --parchment-dark: #211812;
  --parchment-mid: rgba(229, 204, 166, 0.14);
  --ink: #F0E8DC;
  --ink-mid: #2A1F17;
  --espresso: #C8A45A;
  --espresso-light: #C4AFA0;
  --gold: #C19A55;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s ease, color 0.25s ease;
}

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

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

.prose-link {
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
  transition: color 0.18s ease, text-decoration-color 0.18s ease;
}

.prose-link:hover {
  color: var(--gold);
  text-decoration-color: currentColor;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 2rem;
}

.page-wrap { padding-top: 6.5rem; }
.section { padding: 5rem 0; border-top: 1px solid var(--parchment-mid); }
.page-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 800;
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 1rem 0 1rem;
}
.page-lead {
  max-width: 60ch;
  color: var(--espresso-light);
  font-size: 1.15rem;
}

.label {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--espresso-light);
}
.gold-rule { width: 40px; height: 2px; border: 0; background: var(--gold); margin: 1.25rem 0; }

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.25rem 2rem;
  transition: all 0.3s ease;
}

nav.scrolled {
  background: rgba(245, 240, 232, 0.95);
  box-shadow: 0 1px 0 var(--parchment-mid);
  backdrop-filter: blur(10px);
}

.nav-wordmark {
  text-decoration: none;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.nav-wordmark span { color: var(--espresso); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.15rem;
}

.nav-link {
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.nav-link:hover,
.nav-link.active {
  border-bottom-color: var(--gold);
  color: var(--espresso);
}

.nav-cta,
.btn-primary,
.btn-submit {
  text-decoration: none;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.62rem;
  background: var(--ink);
  color: var(--parchment);
  border: 1px solid var(--ink);
  padding: 0.9rem 1.6rem;
  cursor: pointer;
  transition: background 0.25s ease, transform 0.2s ease;
}

.nav-cta:hover,
.btn-primary:hover,
.btn-submit:hover {
  background: var(--ink-mid);
  transform: translateY(-1px);
}

.btn-secondary {
  text-decoration: none;
  color: var(--espresso);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
}

.hero {
  padding: clamp(5.5rem, 5.5vw, 6.5rem) 0 0;
}

.hero-copy {
  max-width: 1020px;
  margin: 0 auto;
  text-align: center;
}

.hero-copy .label {
  margin-bottom: 0.85rem;
}

.hero-copy .gold-rule {
  margin: 1rem auto 1.25rem;
}

.hero-copy .page-title {
  font-size: clamp(3.25rem, 4.4vw, 4.75rem);
  line-height: 0.96;
  max-width: 1000px;
  margin: 0.5rem 0 0;
}

.hero-figure-panel {
  width: min(100%, 1240px);
  margin: 1.25rem auto 0;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  min-height: 200px;
  max-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-sub { max-width: 660px; color: var(--espresso-light); margin: 0 auto 1.25rem; font-size: 1.1rem; }
.hero-cta-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: center; margin-bottom: 1.25rem; }

/* Clarity Path SVG */
.clarity-path {
  width: 100%;
  height: 240px;
  max-height: 260px;
  display: block;
}

/* Strengthen particle cloud visibility via CSS */
.particle {
  fill: #4a2e20;
}
.particle-gold {
  fill: #9c7a3c;
}

/* Strengthen decision rings */
.ring-4    { opacity: 0.28; }
.ring-1    { opacity: 0.50; }
.ring-2    { opacity: 0.65; }
.ring-3    { opacity: 0.80; }

/* Particle cloud fade-in */
.zone-questions {
  opacity: 0;
  animation: fadeInCloud 0.9s ease-out 0.2s forwards;
}

@keyframes fadeInCloud {
  from { opacity: 0; }
  to { opacity: 1; }
}

.particle {
  animation: driftParticle 8s ease-in-out infinite;
}
.particle:nth-child(2n) { animation-duration: 10s; animation-delay: -3s; }
.particle:nth-child(3n) { animation-duration: 6.5s; animation-delay: -5s; }
.particle:nth-child(5n) { animation-duration: 12s; animation-delay: -7s; }

.particle-gold {
  animation: pulseParticleGold 4.5s ease-in-out infinite;
}
.particle-gold:nth-child(2n) { animation-delay: -1.8s; }
.particle-gold:nth-child(3n) { animation-delay: -3.2s; }

@keyframes driftParticle {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(1.5px, -2px); }
  66% { transform: translate(-1px, 1.5px); }
}

@keyframes pulseParticleGold {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 0.85; }
}

/* Flow lines */
.clarity-lines {
  opacity: 0;
}

.lines-pre {
  animation: fadeInLinesPre 0.3s ease-out 0.55s forwards;
}

.lines-post {
  animation: fadeInLinesPost 0.3s ease-out 1.6s forwards;
}

@keyframes fadeInLinesPre {
  from { opacity: 0; }
  to { opacity: 0.68; }
}

@keyframes fadeInLinesPost {
  from { opacity: 0; }
  to { opacity: 0.78; }
}

.flow-line {
  stroke-dasharray: 720;
  stroke-dashoffset: 720;
  animation: drawFlowLine 1.0s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.flow-pre-1  { animation-delay: 0.62s; }
.flow-pre-2  { animation-delay: 0.67s; }
.flow-pre-3  { animation-delay: 0.72s; }
.flow-pre-4  { animation-delay: 0.77s; }
.flow-pre-5  { animation-delay: 0.82s; }
.flow-pre-6  { animation-delay: 0.87s; }
.flow-pre-7  { animation-delay: 0.92s; }
.flow-pre-8  { animation-delay: 0.97s; }
.flow-pre-9  { animation-delay: 1.02s; }
.flow-pre-10 { animation-delay: 1.07s; }
.flow-pre-11 { animation-delay: 1.12s; }
.flow-pre-12 { animation-delay: 1.17s; }
.flow-pre-13 { animation-delay: 1.22s; }
.flow-pre-14 { animation-delay: 1.27s; }
.flow-pre-15 { animation-delay: 1.32s; }
.flow-pre-16 { animation-delay: 1.37s; }
.flow-pre-17 { animation-delay: 1.42s; }
.flow-pre-18 { animation-delay: 1.47s; }
.flow-pre-19 { animation-delay: 1.52s; }
.flow-pre-20 { animation-delay: 1.57s; }

.flow-post-1  { stroke-dasharray: 620; stroke-dashoffset: 620;animation-delay: 1.65s; }
.flow-post-2  { stroke-dasharray: 620; stroke-dashoffset: 620;animation-delay: 1.69s; }
.flow-post-3  { stroke-dasharray: 620; stroke-dashoffset: 620;animation-delay: 1.73s; }
.flow-post-4  { stroke-dasharray: 620; stroke-dashoffset: 620;animation-delay: 1.77s; }
.flow-post-5  { stroke-dasharray: 620; stroke-dashoffset: 620;animation-delay: 1.81s; }
.flow-post-6  { stroke-dasharray: 620; stroke-dashoffset: 620;animation-delay: 1.85s; }
.flow-post-7  { stroke-dasharray: 620; stroke-dashoffset: 620;animation-delay: 1.89s; }
.flow-post-8  { stroke-dasharray: 620; stroke-dashoffset: 620;animation-delay: 1.93s; }
.flow-post-9  { stroke-dasharray: 620; stroke-dashoffset: 620;animation-delay: 1.97s; }
.flow-post-10 { stroke-dasharray: 620; stroke-dashoffset: 620;animation-delay: 2.01s; }
.flow-post-11 { stroke-dasharray: 620; stroke-dashoffset: 620;animation-delay: 2.05s; }

@keyframes drawFlowLine {
  to { stroke-dashoffset: 0; }
}

/* Evidence node */
.clarity-center {
  opacity: 0;
  animation: fadeInCenter 0.9s ease-out 1.45s forwards;
}

@keyframes fadeInCenter {
  from { opacity: 0; }
  to { opacity: 1; }
}

.evidence-node {
  transform-origin: 700px 160px;
  animation: pulseNode 3.5s ease-in-out 2.2s infinite;
}

@keyframes pulseNode {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.8; }
}

.evidence-node-bg {
  transform-origin: 700px 160px;
  animation: pulseNodeBg 3.5s ease-in-out 2.2s infinite;
}

@keyframes pulseNodeBg {
  0%, 100% { transform: scale(1); opacity: 0.14; }
  50% { transform: scale(1.3); opacity: 0.22; }
}

.evidence-bloom-outer {
  transform-origin: 700px 160px;
  animation: pulseBloomOuter 4s ease-in-out 2.2s infinite;
}

@keyframes pulseBloomOuter {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.18); }
}

.evidence-bloom-mid {
  transform-origin: 700px 160px;
  animation: pulseBloomMid 3.5s ease-in-out 2.2s infinite;
}

@keyframes pulseBloomMid {
  0%, 100% { transform: scale(1); opacity: 0.08; }
  50% { transform: scale(1.25); opacity: 0.13; }
}

/* Decision rings */
.zone-decisions {
  opacity: 0;
  animation: fadeInDecisions 0.9s ease-out 2.1s forwards;
}

@keyframes fadeInDecisions {
  from { opacity: 0; }
  to { opacity: 1; }
}

.ring-center {
  transform-origin: 1230px 160px;
  animation: pulseCenter 4s ease-in-out 2.5s infinite;
}

@keyframes pulseCenter {
  0%, 100% { transform: scale(1); opacity: 0.88; }
  50% { transform: scale(1.15); opacity: 1; }
}

/* Labels */
.clarity-labels {
  opacity: 0;
  animation: fadeInLabels 0.8s ease-out 2.4s forwards;
}

@keyframes fadeInLabels {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Caption beneath visual */
.clarity-caption {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  letter-spacing: 0;
  color: var(--gold);
  text-align: center;
  margin-top: 0.15rem;
  margin-bottom: 2rem;
  opacity: 0;
  animation: fadeInCaption 0.8s ease-out 2.8s forwards;
}

@keyframes fadeInCaption {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 0.85; transform: translateY(0); }
}

/* Hover effects on desktop */
@media (hover: hover) and (pointer: fine) {
  .clarity-path {
    transition: transform 0.35s ease;
  }
}

/* Reduced motion accessibility */
@media (prefers-reduced-motion: reduce) {
  .particle,
  .particle-gold,
  .evidence-node,
  .evidence-node-bg,
  .evidence-bloom-outer,
  .evidence-bloom-mid,
  .ring-center,
  .clarity-labels,
  .clarity-lines,
  .clarity-center,
  .zone-decisions,
  .zone-questions,
  .clarity-caption,
  .flow-line {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
    stroke-dashoffset: 0 !important;
  }
}

/* Desktop hero */
@media (min-width: 981px) {
  .hero-copy {
    max-width: 1020px;
  }
}

/* Theme toggle — pill switch */
.nav-theme-btn {
  position: relative;
  width: 44px;
  height: 24px;
  border-radius: 12px;
  background: transparent;
  border: 1px solid var(--espresso-light);
  cursor: pointer;
  flex-shrink: 0;
  font-size: 0;
  color: transparent;
  padding: 0;
  transition: border-color 0.25s ease;
}

.nav-theme-btn::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--espresso-light);
  transition: transform 0.25s ease, background 0.25s ease;
}

.nav-theme-btn:hover {
  border-color: var(--gold);
}

.nav-theme-btn:hover::after {
  background: var(--gold);
}

/* Hidden in mobile dropdown — switch lives in the header only */
.nav-mobile-menu .nav-theme-btn {
  display: none;
}

/* Mobile nav button */
.nav-mobile-btn {
  display: none;
  background: none;
  border: none;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--ink);
  cursor: pointer;
  padding: 0.25rem 0;
  line-height: 1;
}

/* Mobile nav dropdown */
.nav-mobile-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(245, 240, 232, 0.98);
  border-bottom: 1px solid var(--parchment-mid);
  padding: 1.5rem 1.25rem;
  flex-direction: column;
  gap: 1rem;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nav-mobile-menu.is-open {
  display: flex;
}

.nav-mobile-menu a {
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--ink);
  padding-bottom: 2px;
  border-bottom: 1px solid transparent;
}

.nav-mobile-menu a:hover {
  border-bottom-color: var(--gold);
  color: var(--espresso);
}

.nav-mobile-cta {
  margin-top: 0.25rem;
  background: var(--ink);
  color: var(--parchment) !important;
  border: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink) !important;
  padding: 0.85rem 1.4rem;
  text-align: center;
  display: block;
  width: 100%;
  box-sizing: border-box;
}

@media (max-width: 980px) {
  .nav-mobile-btn {
    display: block;
  }
}

.trust-strip-integrated {
  border-top: 1px solid rgba(156, 122, 60, 0.22);
  border-bottom: 1px solid rgba(156, 122, 60, 0.22);
  background: var(--parchment-dark);
}

.trust-line {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0.65rem 0;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(1.5rem, 4vw, 4rem);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--espresso-light);
}

.trust-dot {
  color: var(--gold);
  opacity: 0.5;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.trust-icon {
  width: 18px;
  height: 18px;
  color: var(--espresso-light);
  flex-shrink: 0;
  opacity: 0.75;
}

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

/* Services Fit / FAQ section — left card + right accordion, top-aligned */
.services-fit-faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 2rem;
  align-items: start;
}

.card {
  background: var(--parchment-dark);
  border: 1px solid var(--parchment-mid);
  padding: 2rem;
}

.stack { display: grid; gap: 1rem; }

.card h4 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  margin: 0.75rem 0;
  letter-spacing: -0.01em;
}

.card p,
.card li,
.body-copy {
  color: var(--espresso-light);
}

.card ul {
  list-style: none;
  margin-top: 0.9rem;
}

.card li {
  padding: 0.35rem 0 0.35rem 1.1rem;
  position: relative;
}

.card li::before {
  content: '—';
  color: var(--gold);
  left: 0;
  position: absolute;
}

.note-box {
  border-left: 3px solid var(--gold);
  padding: 1rem 1.25rem;
  background: var(--parchment-dark);
}

.faq-item {
  border-top: 1px solid var(--parchment-mid);
  padding-top: 1rem;
}

.faq-item h3 {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

/* Accordion — overrides for .faq-item inside .faq-accordion */
.faq-accordion .faq-item {
  padding-top: 0;
}

.faq-btn {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 400;
  color: var(--ink);
  text-align: left;
  padding: 1rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  line-height: 1.3;
  transition: color 0.2s ease;
}

.faq-btn:hover {
  color: var(--espresso);
}

/* Chevron indicator — CSS-drawn, rotates on open */
.faq-btn::after {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.25s ease;
  flex-shrink: 0;
  opacity: 0.6;
}

.faq-item.is-open .faq-btn::after {
  transform: rotate(-135deg) translateY(-2px);
}

/* Grid-row collapse trick: smooth height animation with no JS measurement */
.faq-answer {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.28s ease, opacity 0.22s ease;
  opacity: 0;
  overflow: hidden;
}

.faq-answer-inner {
  min-height: 0;
  overflow: hidden;
  padding-bottom: 0;
  transition: padding-bottom 0.28s ease;
}

.faq-item.is-open .faq-answer {
  grid-template-rows: 1fr;
  opacity: 1;
}

.faq-item.is-open .faq-answer-inner {
  padding-bottom: 1rem;
}

.faq-answer-inner p {
  color: var(--espresso-light);
}


.cta-band {
  background: var(--ink-mid);
  text-align: center;
}

.cta-band .page-title,
.cta-band .page-lead,
.cta-band .label {
  color: var(--parchment);
}

.cta-band .label {
  display: block;
  margin-bottom: 1rem;
}

.cta-band .page-title {
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.cta-band .page-lead {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}

.cta-band .hero-cta-row {
  margin-top: 2rem !important;
}

.cta-band .btn-primary {
  background: var(--parchment);
  color: var(--ink);
  border-color: var(--parchment);
}

.cta-band .btn-primary:hover,
.cta-band .btn-primary:focus-visible {
  background: transparent;
  color: var(--parchment);
  border-color: var(--parchment);
  transform: translateY(-1px);
}

.muted {
  color: var(--espresso-light);
}

.card-footnote {
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 0.975rem;
  color: var(--espresso-light);
  line-height: 1.5;
}

.form-group { margin-bottom: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

label {
  display: block;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.56rem;
  color: var(--espresso-light);
  margin-bottom: 0.45rem;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--parchment-mid);
  background: var(--parchment-dark);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.8rem 0.95rem;
  border-radius: 0;
}

textarea { min-height: 120px; resize: vertical; }

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--parchment);
}

.form-success {
  display: none;
  border: 1px solid var(--parchment-mid);
  background: var(--parchment-dark);
  text-align: center;
  padding: 2rem;
}

footer {
  border-top: 1px solid var(--parchment-mid);
  padding: 2rem 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.footer-wordmark {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  font-weight: 800;
}

.footer-wordmark span { color: var(--espresso); }
.footer-meta {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--espresso-light);
}

.animate {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

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

@media (max-width: 980px) {
  .grid-2,
  .grid-3,
  .form-row,
  .services-fit-faq-grid {
    grid-template-columns: 1fr;
  }

  .nav-link { display: none; }
  .nav-links .nav-cta { display: none; }

  nav,
  nav.scrolled {
    padding: 1rem 1.25rem;
  }

  /* Ensure pill switch + Menu button share the same baseline */
  .nav-links {
    gap: 1rem;
    align-items: center;
  }

  .container { padding: 0 1.25rem; }
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 680px) {
  /* Hero: clear fixed nav, own the first screen */
  .hero {
    padding-top: 5rem;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero-copy .page-title {
    font-size: clamp(2.5rem, 11vw, 3.25rem);
    line-height: 0.96;
  }

  /* SVG panel: remove dead letterbox space, natural height */
  .hero-figure-panel {
    margin-top: 1.5rem;
    padding: 0;
    min-height: 0;
    max-height: none;
    height: auto;
    overflow: visible;
  }

  /* Clarity Path: render at natural aspect-ratio height on mobile (~86px at 375px width) */
  .clarity-path {
    height: 90px;
    max-height: none;
    overflow: visible;
  }

  /* Boost SVG label sizes; translateY pushes sub-words clear of the main labels */
  .clarity-labels text:nth-child(odd) {
    font-size: 28px;
  }

  .clarity-labels text:nth-child(even) {
    font-size: 22px;
    transform: translateY(7px);
  }

  /* Tighten gap between SVG and caption; add room before trust strip */
  .clarity-caption {
    font-size: 0.9rem;
    margin-top: 0.5rem;
    margin-bottom: 1.5rem;
  }

  /* Trust strip: centered text-only column, Statistically Sound first */
  .trust-line {
    flex-direction: column;
    align-items: center;
    max-width: 340px;
    margin-left: auto;
    margin-right: auto;
    gap: 0.75rem;
    padding: 1.5rem 0;
  }

  /* Reorder: Statistically Sound (child 3) → top, Research (child 1) → middle, Businesses (child 5) → bottom */
  .trust-line > :nth-child(3) { order: 1; }
  .trust-line > :nth-child(1) { order: 2; }
  .trust-line > :nth-child(5) { order: 3; }

  .trust-item {
    justify-content: center;
    text-align: center;
    gap: 0;
  }

  .trust-icon {
    display: none;
  }

  .trust-dot {
    display: none;
  }
}

/* ============================================================
   DARK MODE OVERRIDES
   ============================================================ */

/* Nav */
html[data-theme="dark"] nav.scrolled {
  background: rgba(27, 20, 16, 0.96);
  box-shadow: 0 1px 0 rgba(229, 204, 166, 0.12);
}

/* Mobile menu panel */
html[data-theme="dark"] .nav-mobile-menu {
  background: rgba(27, 20, 16, 0.98);
  border-bottom-color: rgba(229, 204, 166, 0.12);
}

/* Pill switch — dark state: knob slides right, gold accent */
html[data-theme="dark"] .nav-theme-btn {
  border-color: rgba(193, 154, 85, 0.55);
}

html[data-theme="dark"] .nav-theme-btn::after {
  transform: translateX(20px);
  background: var(--gold);
}

html[data-theme="dark"] .nav-theme-btn:hover {
  border-color: var(--gold);
}

/* Primary button / nav CTA → gold on dark */
html[data-theme="dark"] .nav-cta,
html[data-theme="dark"] .btn-primary,
html[data-theme="dark"] .btn-submit {
  background: var(--gold);
  color: #1B1410;
  border-color: var(--gold);
}

html[data-theme="dark"] .nav-cta:hover,
html[data-theme="dark"] .btn-primary:hover,
html[data-theme="dark"] .btn-submit:hover {
  background: #D0A85F;
  border-color: #D0A85F;
}

/* Mobile menu CTA */
html[data-theme="dark"] .nav-mobile-cta {
  background: var(--gold);
  color: #1B1410 !important;
  border-color: var(--gold);
  border-bottom-color: var(--gold) !important;
}

/* CTA band — needs its own surface to stand out in dark */
html[data-theme="dark"] .cta-band {
  background: #241A13;
  border-top: 1px solid rgba(193, 154, 85, 0.18);
  border-bottom: 1px solid rgba(193, 154, 85, 0.18);
}

html[data-theme="dark"] .cta-band .page-title,
html[data-theme="dark"] .cta-band .page-lead,
html[data-theme="dark"] .cta-band .label {
  color: var(--ink);
}

/* CTA band button — hover/focus override (beats the global dark hover rule) */
html[data-theme="dark"] .cta-band .btn-primary:hover,
html[data-theme="dark"] .cta-band .btn-primary:focus-visible {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}

/* Trust strip */
html[data-theme="dark"] .trust-strip-integrated {
  border-top-color: rgba(229, 204, 166, 0.12);
  border-bottom-color: rgba(229, 204, 166, 0.12);
}

/* Note box */
html[data-theme="dark"] .note-box {
  background: #211812;
  border-left-color: var(--gold);
}

/* Form success */
html[data-theme="dark"] .form-success {
  background: #211812;
  border-color: rgba(229, 204, 166, 0.14);
}

/* FAQ dividers */
html[data-theme="dark"] .faq-item {
  border-top-color: rgba(229, 204, 166, 0.14);
}

/* Section borders */
html[data-theme="dark"] .section {
  border-top-color: rgba(229, 204, 166, 0.1);
}

/* Footer border */
html[data-theme="dark"] footer {
  border-top-color: rgba(229, 204, 166, 0.1);
}

/* ============================================================
   DARK MODE — CLARITY PATH SVG
   ============================================================ */

/* Particle cloud */
html[data-theme="dark"] .particle {
  fill: #8A6845;
}

html[data-theme="dark"] .particle-gold {
  fill: #C19A55;
}

/* Flow lines — override group stroke attribute */
html[data-theme="dark"] .lines-pre,
html[data-theme="dark"] .lines-post {
  stroke: #C19A55;
}

/* Evidence node */
html[data-theme="dark"] .evidence-bloom-mid,
html[data-theme="dark"] .evidence-node-bg,
html[data-theme="dark"] .evidence-node {
  fill: #C19A55;
}

/* Decision rings */
html[data-theme="dark"] .decision-ring {
  stroke: #C19A55;
}

html[data-theme="dark"] .ring-center {
  fill: #C19A55;
}

/* Inner white dot — becomes the dark background color */
html[data-theme="dark"] .zone-decisions circle:last-child {
  fill: #1B1410;
}

/* SVG labels — primary (QUESTIONS / EVIDENCE / DECISIONS) */
html[data-theme="dark"] .clarity-labels text:nth-child(odd) {
  fill: #D4C4B0;
}

/* SVG labels — subtitles (Uncertainty / Clarity / Direction) */
html[data-theme="dark"] .clarity-labels text:nth-child(even) {
  fill: #C19A55;
}
