/* =========================================================
   atomicity — base.css (mock8)
   Five-page site. Inherits the cosmos register from mock7
   and adds layouts for Approach, Work, Field notes, Contact.
   ========================================================= */

:root {
  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-pill: 999px;

  /* Palette defaults (overridden by theme) */
  --surface-page:     #0B0F1C;
  --surface-section:  #0F1424;
  --surface-raised:   #151B2E;
  --surface-muted:    #0C1121;

  --text-primary:     #ECE1C6;
  --text-body:        #C0B79F;
  --text-muted:       #837B67;
  --text-dim:         #55503F;

  --accent:           #C9A25C;
  --accent-hover:     #E0B76D;
  --accent-subtle:    rgba(201, 162, 92, 0.14);
  --accent-contrast:  #0B0F1C;

  --border-subtle:    rgba(201, 162, 92, 0.12);
  --border-strong:    rgba(201, 162, 92, 0.30);

  --graph-color:      rgba(236, 225, 198, 0.85);

  --nav-bg:           var(--surface-page);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.30);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.40);
  --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.50), 0 0 40px rgba(201, 162, 92, 0.05);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { background: var(--surface-page); }
body {
  background: var(--surface-page);
  color: var(--text-body);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  min-height: 100vh;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* Typography */
h1, h2 {
  font-family: var(--font-display);
  color: var(--text-primary);
  font-weight: 400;
  letter-spacing: -0.018em;
  margin: 0 0 20px;
}
h3, h4 {
  font-family: var(--font-sans);
  color: var(--text-primary);
  font-weight: 500;
  margin: 0 0 12px;
  letter-spacing: -0.005em;
}
h1 { font-size: clamp(44px, 5.8vw, 76px); line-height: 1.04; }
h2 { font-size: clamp(30px, 3.6vw, 48px); line-height: 1.12; }
h3 { font-size: 19px; line-height: 1.35; }
h4 { font-size: 16px; line-height: 1.4; }

p { margin: 0 0 16px; }
p:last-child { margin-bottom: 0; }
p.lead {
  font-size: 19px;
  color: var(--text-body);
  max-width: 700px;
  line-height: 1.65;
}

.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.serif-italic {
  font-family: var(--font-display);
  font-style: italic;
}

/* Layout */
.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}
section { padding: 120px 0; }
.section-alt { background: var(--surface-section); }
.section-callout-bright-1 { background: var(--section-callout-bright-1); }

.divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  max-width: 340px;
  margin: 0 auto;
  padding: 32px 0;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-subtle);
}
.divider-glyph {
  color: var(--accent);
  font-size: 13px;
  opacity: 0.65;
}

/* Navigation */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--border-subtle);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 32px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 22px;
  color: var(--text-primary);
  letter-spacing: 0.01em;
}
.logo-mark {
  display: inline-block;
  width: 26px;
  height: 26px;
  color: var(--accent);
}
.logo-mark svg { display: block; width: 100%; height: 100%; }
.logo-word { color: var(--text-primary); }

.nav-links {
  display: flex;
  gap: 32px;
  font-size: 14px;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}
.nav-links a { transition: color .2s ease; }
.nav-links a:hover { color: var(--text-primary); }
.nav-links a.active { color: var(--text-primary); }
.nav-cta { display: flex; gap: 10px; align-items: center; }

/* Mobile nav toggle (hamburger) — pure-CSS via hidden checkbox */
.nav-toggle-input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.nav-toggle:hover { color: var(--text-primary); }
.nav-toggle svg { display: block; width: 18px; height: 18px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle-input:checked ~ .nav-cta .nav-toggle .icon-open { display: none; }
.nav-toggle-input:checked ~ .nav-cta .nav-toggle .icon-close { display: block; }
.nav-toggle-input:focus-visible ~ .nav-cta .nav-toggle {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Theme toggle button */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-subtle);
}
.theme-toggle svg { width: 16px; height: 16px; display: block; }
.theme-toggle .icon-moon { display: block; }
.theme-toggle .icon-sun { display: none; }
html.theme-twilight .theme-toggle .icon-moon { display: none; }
html.theme-twilight .theme-toggle .icon-sun { display: block; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: background .2s ease, color .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.btn-primary {
  background: var(--accent);
  color: var(--accent-contrast);
  border-color: var(--accent);
  box-shadow: 0 0 0 1px transparent, 0 8px 24px -8px var(--accent-subtle);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  box-shadow: 0 0 0 1px transparent, 0 12px 32px -8px color-mix(in srgb, var(--accent) 50%, transparent);
}
.btn-ghost {
  background: transparent;
  color: var(--text-primary);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  background: var(--surface-raised);
  border-color: var(--accent);
  color: var(--accent);
}
.btn-sm {
  padding: 9px 16px;
  font-size: 14px;
  border-radius: 6px;
}

/* Hero (home) */
.hero {
  position: relative;
  margin-top: calc(-76px * clamp(0.3, (100vw - 480px) / (1920px - 480px), 1));
  padding: clamp(120px, 10vw, 190px) 0 100px;
  overflow: hidden;
}
.hero-graph-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero .container { position: relative; z-index: 1; }
.hero-content { max-width: 820px; }
.hero p.lead {
  font-size: 21px;
  margin-top: 32px;
  max-width: 720px;
}
.hero-cta {
  display: flex;
  gap: 14px;
  margin-top: 48px;
  flex-wrap: wrap;
}


/* Page header (non-home pages) */
.page-header {
  position: relative;
  margin-top: calc(-76px * clamp(0.3, (100vw - 480px) / (1920px - 480px), 1));
  padding: clamp(120px, 10vw, 190px) 0 100px;
  overflow: hidden;
}
.page-header-graph-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.page-header .container { position: relative; z-index: 1; }
.page-header h1 {
  font-size: clamp(40px, 4.8vw, 60px);
  margin-bottom: 24px;
  max-width: 820px;
}
.page-header .lead {
  font-size: 19px;
  max-width: 720px;
}

/* Stats (home) */
.stats {
  display: flex;
  flex-direction: column;
  gap: 56px;
  padding-top: 56px;
  border-top: 1px solid var(--border-subtle);
}
.stat {
  display: grid;
  grid-template-columns: clamp(125px, 14vw, 170px) 1fr;
  gap: clamp(48px, 8vw, 112px);
  align-items: start;
}
.stat-num-block {
  text-align: right;
  min-width: 0;
}
.stat-num {
  font-family: var(--font-display);
  font-size: clamp(50px, 7vw, 84px);
  color: var(--accent);
  line-height: 1;
  font-weight: 400;
  letter-spacing: -0.02em;
  text-align: right;
  white-space: nowrap;
}
.stat-unit {
  display: block;
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 12px;
  text-align: right;
}
.stat-label {
  color: var(--text-body);
  max-width: 640px;
  line-height: 1.5;
  padding-top: 16px;
}

/* Founder thesis (home) */
.founder-thesis {
  max-width: 720px;
  font-size: 19px;
  line-height: 1.75;
  color: var(--text-body);
}
.founder-thesis p { margin-bottom: 22px; }
.founder-signature {
  margin-top: 36px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 17px;
  color: var(--accent);
}

/* Anchored values (home) */
.home-values {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 56px 64px;
  margin-top: 64px;
  max-width: 980px;
}
.home-values--three { grid-template-columns: repeat(3, 1fr); max-width: 1080px; }
.home-value h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 16px;
  color: var(--text-primary);
  letter-spacing: -0.005em;
}
.home-value p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-body);
  margin: 0;
}

/* Synthesis blurb on home */
.home-synth {
  max-width: 760px;
  font-size: 19px;
  line-height: 1.7;
  color: var(--text-body);
}
.home-synth p { margin-bottom: 22px; }
.home-synth-link {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--accent);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  padding-bottom: 1px;
  transition: color .2s ease, border-color .2s ease;
}
.home-synth-link:hover {
  color: var(--accent-hover);
  border-bottom-color: var(--accent-hover);
}

/* Recent notes (home) */
.home-notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.home-note {
  display: block;
  padding: 32px 30px;
  background: var(--surface-raised);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  transition: border-color .2s ease, transform .2s ease;
}
.home-note:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.home-note .note-meta {
  display: block;
  margin-bottom: 16px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}
.home-note h3 {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 10px;
  color: var(--text-primary);
}
.home-note p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}
.home-notes-link {
  display: inline-block;
  margin-top: 36px;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--accent);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  padding-bottom: 1px;
}
.home-notes-link:hover { color: var(--accent-hover); border-bottom-color: var(--accent-hover); }

/* Cluster header (Creed page — separates value groups) */
.cluster-header {
  max-width: 760px;
  margin: 0 auto;
}
.cluster-header .eyebrow { margin-bottom: 14px; }
.cluster-header h2 {
  font-family: var(--font-display);
  font-size: clamp(30px, 2.8vw, 40px);
  font-weight: 400;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.018em;
  line-height: 1.18;
}

/* Values list (Approach page) */
.values-list {
  display: flex;
  flex-direction: column;
  gap: 88px;
  max-width: 760px;
  margin: 0;
  /*margin: 0 auto;*/
}
.value-entry .value-number {
  display: block;
  font-family: var(--font-display);
  font-size: 13px;
  color: var(--accent);
  letter-spacing: 0.20em;
  text-transform: uppercase;
  margin-bottom: 16px;
  font-weight: 500;
}
.value-entry h2 {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.2;
  margin-bottom: 24px;
  color: var(--text-primary);
  font-weight: 400;
}
.value-entry p {
  font-size: 18px;
  line-height: 1.75;
  color: var(--text-body);
  margin-bottom: 18px;
}
.value-entry p:last-child { margin-bottom: 0; }
.value-entry em {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--text-primary);
}

/* Engagement-as-section (with horizontal accordion) */
.engagement-section {
  padding: 30px 0 30px 0 ;
  overflow: hidden;
}
.engagement-section {
  border-top: 1px solid var(--border-subtle);
}
.engagement-section {
  background: var(--surface-muted);
}
.engagement-section .engagement-accordion {
  background: var(--surface-page);
}
.engagement-header {
  max-width: 880px;
  margin: 0 0 40px;
}
.engagement-meta {
  font-size: 11px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
  font-weight: 600;
}
.engagement-header h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 400;
  line-height: 1.18;
  margin: 0 0 12px;
  letter-spacing: -0.012em;
  color: var(--text-primary);
}
.engagement-shape {
  font-size: 16px;
  color: var(--text-muted);
  margin: 0;
  font-style: italic;
  font-family: var(--font-display);
}

/* Horizontal accordion */
.engagement-accordion {
  display: flex;
  flex-direction: row;
  margin-top: 56px;
  height: clamp(var(--accordion-h-base), calc(var(--accordion-h-base) + (var(--accordion-h-max) - var(--accordion-h-base)) * (1200px - 100vw) / 480px), var(--accordion-h-max));
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}
.accordion-panel {
  display: flex;
  flex-direction: row;
  flex-grow: 0;
  flex-shrink: 0;
  flex-basis: 48px;
  overflow: hidden;
  position: relative;
  border-right: 1px solid var(--border-subtle);
  transition: flex-grow 0.55s cubic-bezier(0.32, 0.72, 0, 1);
}
.accordion-panel:first-child {
  border-left: 1px solid var(--border-subtle);
}
.accordion-panel.is-active {
  flex-grow: 1;
}
.accordion-trigger {
  flex: 0 0 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
  height: 100%;
  transition: background 0.3s ease;
}
.accordion-panel:not(.is-active) .accordion-trigger:hover {
  background: var(--accent-subtle);
}
.accordion-panel.is-active .accordion-trigger {
  cursor: default;
  background: var(--accordion-active-tab-bg);
}
.accordion-panel.is-active .accordion-label {
  color: var(--accordion-active-tab-bg-fg);
}
.accordion-label {
  writing-mode: vertical-rl;
  pointer-events: none;
  font-size: 14.5px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
  white-space: nowrap;
  font-family: var(--font-sans);
  transition: color 0.3s ease;
  padding: 24px 0;
}
.accordion-content {
  flex: 1 1 auto;
  min-width: 0;
  padding: 36px 36px 36px 24px;
  opacity: 0;
  transition: opacity 0.35s ease;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}
.accordion-content-body {
  max-width: 65ch;
  flex: 1 1 auto;
}
.accordion-content-footer {
  flex: 0 0 auto;
  display: flex;
  justify-content: flex-end;
}
.accordion-panel:not(.is-active) .accordion-content {
  pointer-events: none;
}
.accordion-panel.is-active .accordion-content {
  opacity: 1;
  transition-delay: 0.25s;
}
.accordion-content h4 {
  font-family: var(--font-sans);
  font-size: 24px;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 20px;
}
.accordion-content p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-body);
  margin: 0 0 14px;
}
.accordion-content p:last-child { margin-bottom: 0; }
.accordion-content ul {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-body);
  margin: 0;
  padding-left: 22px;
}
.accordion-content ul li { margin-bottom: 8px; }
.accordion-content ul li:last-child { margin-bottom: 0; }
.accordion-content em {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--text-primary);
}
.accordion-nav {
  display: flex;
  gap: 8px;
}
.accordion-nav-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  background: var(--accordion-nav-bg);
  border: 1px solid var(--accordion-nav-bg);
  border-radius: 50%;
  color: var(--accordion-active-tab-bg-fg);
  cursor: pointer;
  padding: 0;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.accordion-nav-btn svg {
  width: 28px;
  height: 28px;
}
.accordion-nav-btn:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  color: var(--accent-contrast);
}
.accordion-nav-btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.engagement-section .engagement-anonymized {
  max-width: 880px;
  margin: 24px auto 0;
  font-size: 13px;
  color: var(--text-muted);
  font-style: italic;
  font-family: var(--font-display);
  text-align: center;
}

@media (max-width: 720px) {
  .engagement-section { padding: 56px 0; }
  .engagement-accordion {
    flex-direction: column;
    height: auto;
    border-top: 0;
    border-bottom: 0;
    margin-top: 36px;
    transform: none;
  }
  .accordion-content {
    transform: none;
  }
  .accordion-content h4 { display: none; }
  .accordion-panel {
    flex: 0 0 auto;
    flex-direction: column;
    border-right: 0;
    border-left: 0;
    border-top: 1px solid var(--border-subtle);
    width: 100%;
    max-height: 56px;
    transition: max-height 0.55s cubic-bezier(0.32, 0.72, 0, 1);
  }
  .accordion-panel:first-child { border-left: 0; }
  .accordion-panel:last-child { border-bottom: 1px solid var(--border-subtle); }
  .accordion-panel.is-active { max-height: 800px; }
  .accordion-trigger {
    width: 100%;
    height: 56px;
    flex: 0 0 56px;
    justify-content: flex-start;
    padding: 0 16px;
  }
  .accordion-label {
    writing-mode: horizontal-tb;
    transform: none;
    padding: 0;
  }
  .accordion-content {
    padding: 24px 16px 24px;
    opacity: 1;
    transition: none;
    overflow: visible;
    min-width: 0;
  }
  .accordion-nav { display: none; }
}

/* Field notes list */
.notes-list {
  display: flex;
  flex-direction: column;
  max-width: 880px;
  margin: 0 auto;
}
.note-card {
  padding: 40px 0;
  border-bottom: 1px solid var(--border-subtle);
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 40px;
  align-items: baseline;
  transition: opacity .2s ease;
}
.note-card:first-child { padding-top: 0; }
.note-card:last-child { border-bottom: 0; }
.note-card:hover .note-body h3 { color: var(--accent); }
.note-card a { display: contents; }
.note-card-meta {
  font-size: 11px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 600;
}
.note-card-meta .note-byline {
  display: block;
  margin-top: 8px;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0.1em;
  font-style: italic;
  font-family: var(--font-display);
  text-transform: none;
  font-size: 13px;
}
.note-body h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  transition: color .2s ease;
}
.note-body p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text-body);
  margin: 0;
}

/* Contact page */
.contact-page {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}
.contact-page .lead {
  margin: 0 auto 0;
}
.contact-info {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--border-subtle);
}
.contact-email {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 32px;
  color: var(--accent);
  margin: 18px 0 28px;
  font-style: italic;
  letter-spacing: -0.01em;
}
.contact-email:hover { color: var(--accent-hover); }
.contact-detail {
  font-size: 16px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.contact-expectations {
  margin-top: 64px;
  padding-top: 48px;
  border-top: 1px solid var(--border-subtle);
  text-align: left;
}
.contact-expectations h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  margin-bottom: 24px;
  color: var(--text-primary);
}
.contact-expectations ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.contact-expectations li {
  padding: 16px 0;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  color: var(--text-body);
  font-size: 16px;
  line-height: 1.6;
}
.contact-expectations li:first-child { border-top: 0; padding-top: 0; }
.contact-expectations li::before {
  content: '\2726';
  color: var(--accent);
  flex: none;
  margin-top: 2px;
  opacity: 0.7;
}

/* Section heads on home */
.section-head {
  margin-bottom: 0;
}
.section-head .eyebrow { margin-bottom: 16px; }
.section-head h2 { margin-bottom: 24px; }
.section-link {
  display: inline-block;
  margin-top: 28px;
  font-family: var(--font-display);
  font-style: italic;
  color: var(--accent);
  border-bottom: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  padding-bottom: 1px;
}
.section-link:hover { color: var(--accent-hover); border-bottom-color: var(--accent-hover); }

/* Final CTA */
.cta-final {
  position: relative;
  background: var(--surface-muted);
  border-top: 1px solid var(--border-subtle);
  padding: 132px 0;
  overflow: hidden;
}
.cta-final .container { position: relative; z-index: 1; text-align: center; }
.cta-final h2 { max-width: 820px; margin: 0 auto 22px; }
.cta-final p.lead {
  max-width: 660px;
  margin: 0 auto 40px;
}
.cta-final .hero-cta { justify-content: center; margin-top: 0; }

/* Footer */
footer {
  background: var(--surface-section);
  padding: 48px 0 56px;
  color: var(--text-muted);
  font-size: 14px;
  border-top: 1px solid var(--border-subtle);
}
.foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
}
.foot-credit { text-align: right; max-width: 540px; }
.foot-credit-line {
  color: var(--text-body);
  margin-bottom: 6px;
}
.foot-credit a { color: var(--text-muted); }
.foot-credit a:hover { color: var(--accent); }

@media (max-width: 630px) {
  .hero-graph-bg, .page-header-graph-bg {
    left: 50%;
    right: auto;
    width: 130vw;
    transform: translateX(-50%);
  }
}
@media (max-width: 530px) {
  .hero-graph-bg, .page-header-graph-bg { width: 160vw; }
}

/* Responsive */
@media (max-width: 960px) {
  section { padding: 80px 0; }
  .hero { padding: 80px 0 60px; }
  .page-header { padding: 80px 0 60px; }
  .home-values { grid-template-columns: 1fr; gap: 36px; max-width: 100%; }
  .home-notes { grid-template-columns: 1fr; gap: 18px; }
  .stats { gap: 40px; }
  .container, .nav-inner { padding: 0 24px; }
  .nav-cta .btn { display: none; }
  .foot { flex-direction: column; align-items: flex-start; }
  .foot-credit { text-align: left; }
  .values-list { gap: 64px; }
  .engagement { padding: 36px; }
  .note-card { grid-template-columns: 1fr; gap: 12px; padding: 28px 0; }
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: fixed;
    top: 76px;
    right: -100vw;
    left: auto;
    width: 100vw;
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 20px;
    background: var(--surface-page);
    border-bottom: 1px solid var(--border-subtle);
    font-size: 16px;
    transition: right .35s ease-in-out;
    z-index: 40;
  }
  .nav-links a {
    padding: 14px 0;
    border-bottom: 1px solid var(--border-subtle);
  }
  .nav-links a:last-child { border-bottom: 0; }
  .nav-toggle-input:checked ~ .nav-links { right: 0; }
}
