/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream: #E8DDD4;
  --cream-light: #EEE4DC;
  --cream-card: #F4EDE8;
  --border: #D4C4B8;
  --text: #261008;
  --text-muted: #7A5040;
  --text-faint: #B09080;
  --rust: #A83828;
  --rust-dark: #882010;
  --btn-dark: #3C1810;
  --sage: #9DB99F;
  --white: #FFFFFF;
}

html { scroll-behavior: smooth; overflow-x: hidden; }

section[id] { scroll-margin-top: 70px; }

body {
  background: var(--cream);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; }

em {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: #D4806A;
}

/* ── Nav ── */
nav {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 3rem);
  max-width: 1100px;
  z-index: 100;
  display: flex;
  align-items: center;
  padding: 0.7rem 1.25rem;
  background: rgba(244, 237, 232, 0.94);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 4px 20px rgba(38,16,8,0.07);
  gap: 2rem;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.nav-logo {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text);
  white-space: nowrap;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.nav-logo img { flex-shrink: 0; height: 29px; width: auto; }

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.75rem;
  align-items: center;
  margin: 0 auto;
}

.nav-links > li > a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-links > li > a:hover { color: var(--text); }

.nav-dropdown { position: relative; }

.nav-dropdown > a::after {
  content: ' ↓';
  font-size: 0.62rem;
}

.nav-dropdown-menu {
  display: block;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: 100%;
  left: 0;
  padding-top: 0.75rem;
  background: transparent;
  z-index: 200;
  transition: opacity 0.15s ease, visibility 0.15s ease;
}

.nav-dropdown-menu-inner {
  background: var(--cream-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.4rem;
  min-width: 230px;
  box-shadow: 0 4px 20px rgba(38,16,8,0.1);
}

.nav-dropdown:hover .nav-dropdown-menu {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
}

.nav-dropdown-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  border-radius: 7px;
  font-size: 0.78rem;
  color: var(--text-muted);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.nav-dropdown-menu a:hover { background: var(--cream-light); color: var(--text); }

.nav-dropdown-menu a span {
  font-size: 0.6rem;
  color: var(--text-faint);
  border: 1px solid var(--border);
  padding: 0.1rem 0.4rem;
  border-radius: 100px;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  white-space: nowrap;
}

/* ── Hamburger ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
  flex-shrink: 0;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
nav.nav-open .nav-hamburger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
nav.nav-open .nav-hamburger span:nth-child(2) { opacity: 0; transform: scaleX(0); }
nav.nav-open .nav-hamburger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.nav-login {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 500;
  transition: color 0.2s;
}

.nav-login:hover { color: var(--text); }

.btn-nav {
  display: inline-block;
  padding: 0.5rem 1rem;
  background: #C4786A;
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.72rem;
  border-radius: 100px;
  transition: opacity 0.2s;
}

.btn-nav:hover { opacity: 0.85; }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--btn-dark);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('2.png');
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-bg video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.4;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(38, 10, 5, 0.55);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 4rem 2rem;
  max-width: 780px;
}

.hero-eyebrow {
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(232,221,212,0.65);
  margin-bottom: 1.5rem;
}

.hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3.6rem;
  font-weight: 600;
  line-height: 1.12;
  color: var(--cream);
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.hero-content h1 em {
  color: #E8A080;
}

.hero-value-prop {
  font-size: 1rem;
  color: rgba(232,221,212,0.8);
  line-height: 1.7;
  max-width: 560px;
  margin: 0 auto 2.5rem;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.hero-stat-num {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--cream);
  line-height: 1;
  margin-bottom: 0.3rem;
}

.hero-stat-label {
  display: block;
  font-size: 0.7rem;
  color: rgba(232,221,212,0.6);
  line-height: 1.4;
  max-width: 140px;
}

.hero-stat-divider {
  width: 1px;
  height: 40px;
  background: rgba(232,221,212,0.2);
}

.btn-hero {
  display: inline-block;
  padding: 0.8rem 2rem;
  background: #C4786A;
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.82rem;
  border-radius: 100px;
  transition: background 0.2s;
  letter-spacing: 0.02em;
}

.btn-hero:hover { background: #B0604A; }

/* ── Sections ── */
.section {
  padding: 5rem 0;
}

.section-alt {
  background: var(--cream-light);
}

.section-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section-label {
  display: block;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 0.65rem;
}

h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 2.5rem;
}

/* ── Steps ── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

.step {
  padding-top: 1rem;
  border-top: 2px solid var(--border);
}

.step-num {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  color: var(--rust);
  opacity: 0.35;
  margin-bottom: 0.75rem;
  line-height: 1;
}

.step h3 {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.75;
}

.section-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ── Buttons ── */
.btn-primary {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  background: #C4786A;
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.75rem;
  border-radius: 100px;
  transition: opacity 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover { opacity: 0.85; }

.btn-large {
  padding: 0.75rem 1.75rem;
  font-size: 0.82rem;
}

.btn-secondary {
  display: inline-block;
  padding: 0.6rem 1.25rem;
  background: transparent;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.75rem;
  border-radius: 100px;
  border: 1px solid var(--border);
  transition: border-color 0.2s, color 0.2s;
}

.btn-secondary:hover { border-color: var(--text-muted); color: var(--text); }

/* ── Data bullets ── */
.data-bullets {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}

.data-bullet {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.bullet-icon {
  color: var(--rust);
  font-size: 0.5rem;
  margin-top: 0.35rem;
  flex-shrink: 0;
}

.data-bullet strong {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.data-bullet p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Scrolling ticker ── */
.ticker-wrap {
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 0;
  margin: 0 0 3rem;
  background: var(--cream-card);
}

.ticker {
  display: flex;
  gap: 0;
  width: max-content;
  animation: ticker 50s linear infinite;
}

.ticker span {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0 1.5rem;
  white-space: nowrap;
  border-right: 1px solid var(--border);
}

@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes ticker-reverse {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

.ticker-sandwich { margin-bottom: 3rem; }
.ticker-no-margin { margin: 0; }
.ticker-reverse { animation: ticker-reverse 38s linear infinite; }

.ticker-card-center {
  display: flex;
  justify-content: center;
  background: var(--cream-light);
  padding: 2.5rem 1.5rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* ── Graph bubble ── */
.graph-bubble {
  background: linear-gradient(175deg, rgba(157,185,159,0.12) 0%, var(--cream-card) 50%);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.75rem 1.75rem 1.5rem;
  max-width: 540px;
  width: 100%;
  box-shadow: 0 4px 24px rgba(38,16,8,0.07);
}
.graph-bubble-header { margin-bottom: 1rem; }
.graph-bubble-title { font-size: 0.8rem; font-weight: 600; color: var(--text); display: block; }
.graph-bubble-sub { font-size: 0.65rem; color: var(--text-muted); display: block; margin-top: 0.15rem; }
.bubble-svg { display: block; }

.graph-line {
  stroke-dasharray: 290;
  stroke-dashoffset: 290;
}
.graph-dot {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0);
}
.pulse-ring {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}

.graph-bubble.animate .graph-line {
  animation: drawLine 1.4s cubic-bezier(0.4,0,0.2,1) 0.2s forwards;
}
.graph-bubble.animate .graph-dot-1 {
  animation: popDot 0.35s cubic-bezier(0.34,1.56,0.64,1) 0.1s forwards;
}
.graph-bubble.animate .graph-dot-2 {
  animation: popDot 0.35s cubic-bezier(0.34,1.56,0.64,1) 1s forwards;
}
.graph-bubble.animate .graph-dot-3 {
  animation: popDot 0.35s cubic-bezier(0.34,1.56,0.64,1) 1.5s forwards;
}
.graph-bubble.animate .pulse-ring-1 {
  animation: pulseRing 2.2s ease-out 1.9s infinite;
}
.graph-bubble.animate .pulse-ring-2 {
  animation: pulseRing 2.2s ease-out 2.3s infinite;
}

@keyframes drawLine { to { stroke-dashoffset: 0; } }
@keyframes popDot { to { opacity: 1; transform: scale(1); } }
@keyframes pulseRing {
  0%   { opacity: 0.55; transform: scale(0.75); }
  100% { opacity: 0;    transform: scale(1.55); }
}

.dashboard-solo {
  grid-template-columns: 1fr;
  max-width: 580px;
  margin: 0 auto;
}

/* ── Video placeholders ── */
.video-placeholder {
  background: var(--cream-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.video-placeholder-inner {
  text-align: center;
  color: var(--text-muted);
}

.video-play-icon {
  font-size: 2rem;
  color: var(--rust);
  display: block;
  margin-bottom: 0.75rem;
  opacity: 0.5;
}

.video-placeholder-inner p {
  font-size: 0.78rem;
  color: var(--text-faint);
}

/* ── Testimonial videos ── */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 3rem;
}

.video-card { display: flex; flex-direction: column; gap: 0.5rem; }

.video-thumb {
  background: var(--cream-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  aspect-ratio: 9/16;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s;
  position: relative;
  overflow: hidden;
}

.video-thumb img,
.video-thumb video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: inherit;
}

.video-thumb-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.05) 50%, transparent 100%),
    rgba(168, 56, 40, 0.28);
  pointer-events: none;
  z-index: 1;
}

.video-thumb:hover { border-color: var(--rust); }

.video-thumb .video-play-icon {
  position: relative;
  z-index: 2;
  font-size: 0.9rem;
  color: white;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.18);
  border: 1.5px solid rgba(255,255,255,0.45);
  backdrop-filter: blur(6px);
  margin-bottom: 0;
}

.video-name {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
  text-align: center;
}

/* ── Case studies ── */
.cs-scroll-wrap {
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
  mask-image: linear-gradient(to right, transparent, black 6%, black 94%, transparent);
}

.cs-scroll-track {
  display: flex;
  gap: 0.75rem;
  width: max-content;
  animation: cs-scroll 32s linear infinite;
}

.cs-scroll-track:hover {
  animation-play-state: paused;
}

@keyframes cs-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.cs-home-card {
  flex-shrink: 0;
  width: 280px;
  background: var(--cream-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-decoration: none;
  transition: box-shadow 0.18s ease, transform 0.18s ease, border-color 0.18s ease;
}
.cs-home-card:hover { box-shadow: 0 8px 32px rgba(38,16,8,0.12); transform: translateY(-3px); border-color: #C8B8AC; }

.cs-home-header {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.cs-home-tag {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--rust);
  background: rgba(168,90,64,0.09);
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  align-self: flex-start;
}

.cs-home-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

.cs-home-drop {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.cs-home-pct {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1;
}

.cs-home-pct-start {
  color: var(--rust);
  opacity: 0.45;
}

.cs-home-arrow-mid {
  font-size: 1rem;
  color: var(--text-muted);
}

.cs-home-pct-end {
  color: #5A8A5C;
}

.cs-home-spark { width: 100%; height: 52px; }
.cs-home-spark svg { width: 100%; height: 52px; display: block; }

.cs-home-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.cs-home-meta {
  font-size: 0.72rem;
  color: var(--text-muted);
  font-weight: 500;
}

.cs-home-cta {
  font-size: 0.75rem;
  font-weight: 600;
  color: #C4786A;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.cs-home-card:hover .cs-home-cta { transform: translateX(3px); }

/* ── Comparison table ── */
.compare-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: -1.75rem;
  margin-bottom: 2rem;
}

.compare-table {
  max-width: 640px;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--cream-card);
}

.compare-header {
  display: grid;
  grid-template-columns: 1fr 120px 120px;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border);
  background: var(--cream);
}

.compare-col-label {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-align: center;
}

.compare-col-label.compare-us { color: var(--rust); }

.compare-row {
  display: grid;
  grid-template-columns: 1fr 120px 120px;
  padding: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border);
  align-items: center;
}

.compare-row:last-child { border-bottom: none; }

.compare-row span:first-child {
  font-size: 0.8rem;
  color: var(--text);
}

.check, .cross {
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
}

.check { color: var(--rust); }
.cross { color: var(--text-faint); }

/* ── Quote section ── */
.quote-section { background: var(--btn-dark); }

.quote-inner {
  text-align: center;
  max-width: 680px;
  margin: 0 auto;
  padding: 5rem 2rem;
}

.quote-inner blockquote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 1.4rem;
  color: var(--cream);
  line-height: 1.6;
  margin-bottom: 1rem;
}

.quote-attr {
  font-size: 0.78rem;
  color: rgba(232,221,212,0.5);
  margin-bottom: 2.5rem;
}

.quote-section .btn-primary {
  background: #C4786A;
}

.quote-section .btn-primary:hover { background: #B0604A; }

/* ── FAQ ── */
.faq-list {
  display: flex;
  flex-direction: column;
  max-width: 720px;
}

.faq-item { border-top: 1px solid var(--border); }
.faq-item:last-child { border-bottom: 1px solid var(--border); }

.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.1rem 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq-q::after { content: '+'; font-size: 1.1rem; color: var(--rust); flex-shrink: 0; }
.faq-item.open .faq-q::after { content: '−'; }

.faq-a {
  display: none;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.8;
  padding-bottom: 1.1rem;
}

.faq-item.open .faq-a { display: block; }

/* ── Contact ── */
.contact-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-top: -1.5rem;
  margin-bottom: 2rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 560px;
}

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

.contact-form input,
.contact-form textarea {
  background: var(--cream-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: var(--text);
  outline: none;
  transition: border-color 0.2s;
  resize: none;
  width: 100%;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: var(--text-faint); }

.contact-form input:focus,
.contact-form textarea:focus { border-color: var(--rust); }

/* ── Centered section modifier ── */
.section-centered { text-align: center; }
.section-centered .compare-table { margin: 0 auto; }
.section-centered .faq-list { margin: 0 auto; text-align: left; }

/* ── Footer ── */
footer {
  background: var(--btn-dark);
  border-top: 1px solid rgba(255,255,255,0.06);
}

.footer-top {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem 3rem;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.footer-logo {
  font-family: 'Playfair Display', serif;
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--cream);
}

.footer-tagline {
  font-size: 0.78rem;
  color: rgba(232,221,212,0.5);
  line-height: 1.7;
}

.footer-socials {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.25rem;
}

.footer-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 100px;
  border: 1px solid rgba(232,221,212,0.15);
  color: rgba(232,221,212,0.5);
  transition: border-color 0.2s, color 0.2s;
}

.footer-social-icon:hover {
  border-color: rgba(232,221,212,0.4);
  color: var(--cream);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col-title {
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(232,221,212,0.4);
  margin-bottom: 0.25rem;
}

.footer-col a {
  font-size: 0.78rem;
  color: rgba(232,221,212,0.6);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--cream); }

.footer-cta-link {
  color: var(--cream) !important;
  font-weight: 500;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.07);
  padding: 1.25rem 2rem;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.68rem;
  color: rgba(232,221,212,0.3);
}

.footer-legal {
  display: flex;
  gap: 1.25rem;
}

.footer-legal a {
  color: rgba(232,221,212,0.3);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-legal a:hover { color: rgba(232,221,212,0.6); }

/* ── Founding video ── */
.founding-video-section { padding-bottom: 0; }

.founding-video {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--cream-card);
  position: relative;
}
.founding-video::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(168, 56, 40, 0.18);
  pointer-events: none;
  z-index: 1;
}

.founding-video video {
  width: 100%;
  display: block;
}

.founding-video-embed {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
}
.founding-video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.founding-video-placeholder {
  height: 480px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  color: white;
  position: relative;
  overflow: hidden;
}

.founding-video-placeholder img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.video-cover-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.28);
}

.founding-video-placeholder .video-play-icon {
  position: relative;
  z-index: 2;
  font-size: 1.1rem;
  color: white;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.4);
  backdrop-filter: blur(6px);
  margin-bottom: 0;
}

.founding-video-placeholder p {
  font-size: 0.78rem;
  position: relative;
  z-index: 2;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.7rem;
}

/* ── Nav active state ── */
.nav-active { color: var(--text) !important; }

/* ── Page hero (inner pages) ── */
.page-hero {
  background: var(--btn-dark);
  padding: 5rem 2rem 4rem;
  text-align: center;
}

.page-hero-sm { padding: 4rem 2rem 3.5rem; }

.page-hero-inner {
  max-width: 680px;
  margin: 0 auto;
}

.page-hero .section-label { color: rgba(232,221,212,0.5); }

.page-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem;
  font-weight: 600;
  color: var(--cream);
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0.75rem 0 1.25rem;
}

.page-hero h1 em { color: #E8A080; }

.page-hero p {
  font-size: 0.92rem;
  color: rgba(232,221,212,0.7);
  line-height: 1.8;
  max-width: 540px;
  margin: 0 auto 1.75rem;
}

.program-tag-hero {
  display: inline-block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(232,221,212,0.5);
  border: 1px solid rgba(232,221,212,0.2);
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.btn-hero-sm {
  display: inline-block;
  padding: 0.65rem 1.5rem;
  background: #C4786A;
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.78rem;
  border-radius: 100px;
  transition: background 0.2s;
}

.btn-hero-sm:hover { background: #B0604A; }

/* ── About split layout ── */
.about-split {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 4rem;
  align-items: start;
}

.about-split p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.about-stat-col {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  padding-left: 2rem;
  border-left: 1px solid var(--border);
}

.stat-block { }

.stat-num {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--rust);
  line-height: 1.1;
  margin-bottom: 0.2rem;
}

.stat-label {
  display: block;
  font-size: 0.65rem;
  color: var(--text-muted);
  font-weight: 500;
  line-height: 1.4;
}

/* ── Section intro ── */
.section-intro {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 600px;
  margin-top: -1.5rem;
  margin-bottom: 2.5rem;
}

/* ── Principles grid ── */
.principles-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.principle-card {
  background: var(--cream-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.5rem;
}

.principle-num {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--rust);
  opacity: 0.4;
  margin-bottom: 0.6rem;
}

.principle-card h3 {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.principle-card p {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ── Steps large ── */
.steps-large .step h3 { font-size: 1rem; }
.steps-large .step p { font-size: 0.85rem; }

/* ── Pillars grid ── */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem 2.5rem;
}

.pillar {
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.pillar h3 {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.pillar p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ── App section ── */
.app-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.app-section p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.8;
  margin-bottom: 1.5rem;
}

.app-badges {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.app-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}

.app-badge:hover { border-color: var(--text-muted); }

.app-visual { display: flex; justify-content: center; }

.app-phone-mock {
  width: 200px;
  height: 360px;
  background: var(--cream-card);
  border: 1px solid var(--border);
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  color: var(--text-faint);
}

/* ── Contact info grid ── */
.contact-info-grid {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: -1rem;
}

.contact-info-card {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.25rem 1.75rem;
  background: var(--cream-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-align: center;
}

.contact-info-label {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rust);
}

.contact-info-card a,
.contact-info-card span {
  font-size: 0.82rem;
  color: var(--text-muted);
  text-decoration: none;
}

.contact-info-card a:hover { color: var(--text); }

/* ── Modules grid ── */
.modules-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.module-card {
  background: var(--cream-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
}

.module-num {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  color: var(--rust);
  opacity: 0.35;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.module-card h3 {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
  line-height: 1.3;
}

.module-card p {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ── Includes grid ── */
.includes-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem 2.5rem;
}

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

.include-item h3 {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.include-item p {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.75;
}

/* ── Pricing ── */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-width: 680px;
  margin: 0 auto;
}

.pricing-card {
  background: var(--cream-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.pricing-card-featured {
  background: var(--btn-dark);
  border-color: var(--btn-dark);
}

.pricing-card-featured .pricing-tier { color: var(--cream); }
.pricing-card-featured .pricing-desc { color: rgba(232,221,212,0.65); }
.pricing-card-featured .pricing-list li { color: rgba(232,221,212,0.75); }
.pricing-card-featured .pricing-list li::before { color: #E8A080; }

.pricing-tier {
  font-family: 'Inter', sans-serif;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.pricing-card-featured .pricing-tier { color: rgba(232,221,212,0.55); }

.pricing-price {
  font-family: 'Playfair Display', serif;
  font-size: 2.75rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1;
  margin: 0.25rem 0;
}
.pricing-price .pricing-period {
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0;
}
.pricing-card-featured .pricing-price { color: var(--cream); }
.pricing-card-featured .pricing-price .pricing-period { color: rgba(232,221,212,0.5); }

.pricing-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.pricing-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.pricing-list li {
  font-size: 0.78rem;
  color: var(--text-muted);
  padding-left: 1rem;
  position: relative;
}

.pricing-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--rust);
  font-size: 0.7rem;
}

.btn-full { width: 100%; text-align: center; }

/* ── FAQ page ── */
.faq-page-inner {
  display: flex;
  flex-direction: column;
  gap: 3.5rem;
}

.faq-category h2 {
  font-size: 1.4rem;
  margin-bottom: 1.25rem;
}

.faq-contact-prompt {
  text-align: center;
  padding: 3rem 2rem;
  background: var(--cream-card);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.faq-contact-prompt h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.faq-contact-prompt p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .videos-grid { grid-template-columns: repeat(2, 1fr); }
  .data-bullets { grid-template-columns: 1fr; gap: 1.25rem; }
  .modules-grid { grid-template-columns: repeat(2, 1fr); }
  .principles-grid { grid-template-columns: 1fr; }
  .pillars-grid { grid-template-columns: 1fr 1fr; }
  .includes-grid { grid-template-columns: 1fr 1fr; }
  .about-split { grid-template-columns: 1fr; gap: 2rem; }
  .about-stat-col { flex-direction: row; border-left: none; padding-left: 0; border-top: 1px solid var(--border); padding-top: 1.5rem; flex-wrap: wrap; }
  .app-section { grid-template-columns: 1fr; }
  .app-visual { display: none; }
}

@media (max-width: 900px) {
  .footer-top { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 680px) {
  /* ── Nav / hamburger ── */
  nav {
    width: calc(100% - 2rem);
    top: 1rem;
    padding: 0.7rem 1rem;
    flex-wrap: wrap;
    align-items: center;
    border-radius: 12px;
  }
  nav.nav-open {
    border-radius: 12px;
  }
  .nav-logo { font-size: 0.85rem; flex: 1; }
  .nav-hamburger { display: flex; }
  .nav-links { display: none; }
  .nav-actions { display: none; }

  nav.nav-open .nav-links {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0;
    margin-top: 0.5rem;
    padding-top: 0.25rem;
    border-top: 1px solid var(--border);
    order: 10;
  }
  nav.nav-open .nav-links > li > a {
    display: block;
    padding: 0.7rem 0;
    font-size: 0.88rem;
    color: var(--text-muted);
    border-bottom: 1px solid var(--border);
  }
  nav.nav-open .nav-dropdown > a::after { content: ''; }
  nav.nav-open .nav-dropdown-menu {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    position: static;
    padding-top: 0;
    background: transparent;
    box-shadow: none;
  }
  nav.nav-open .nav-dropdown-menu-inner {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    min-width: 0;
  }
  nav.nav-open .nav-dropdown-menu a {
    padding: 0.7rem 0 0.7rem 0.75rem;
    font-size: 0.84rem;
    border-radius: 0;
    border-bottom: 1px solid var(--border);
  }
  nav.nav-open .nav-actions {
    display: flex;
    flex-direction: column;
    width: 100%;
    order: 11;
    padding: 0.75rem 0 0.5rem;
    gap: 0.6rem;
    align-items: stretch;
  }
  nav.nav-open .nav-actions .nav-login {
    display: block;
    font-size: 0.88rem;
    padding: 0.65rem 0;
    border-bottom: 1px solid var(--border);
  }
  nav.nav-open .nav-actions .btn-nav {
    text-align: center;
    font-size: 0.85rem;
    padding: 0.7rem 1rem;
    border-radius: 100px;
  }

  /* ── Layout ── */
  .section { padding: 3rem 0; }
  .section-inner { padding: 0 1.25rem; }
  h2 { font-size: 1.75rem; margin-bottom: 1.75rem; }
  .hero-content { padding: 0 1.25rem; }
  .hero-content h1 { font-size: 2.2rem; }
  .hero-stats { flex-direction: column; gap: 1.25rem; }
  .hero-stat-divider { display: none; }
  .steps-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .videos-grid { grid-template-columns: repeat(2, 1fr); }
  .compare-table { max-width: 100%; font-size: 0.8rem; }
  .form-row { grid-template-columns: 1fr; }
  .modules-grid { grid-template-columns: 1fr; }
  .pillars-grid { grid-template-columns: 1fr; }
  .includes-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 100%; }
  .page-hero h1 { font-size: 2rem; }
  .contact-info-grid { flex-direction: column; align-items: center; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-legal { flex-wrap: wrap; justify-content: center; }
  .quote-inner blockquote { font-size: 1.1rem; }
  .job-card { flex-direction: column; gap: 1rem; }
  .job-card-apply { align-self: flex-start; }
  .graph-bubble { padding: 1.25rem; }
  .bubble-svg { font-size: 0.65rem; }
  .founding-video-embed { border-radius: 0; }
  .about-hero-light h1 { font-size: 2rem; }
  .ticker-card-center { padding: 2rem 1rem; }
  .principles-grid { grid-template-columns: 1fr; }
}

/* ── Dashboard Widget ── */
.dashboard-widget {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.dash-card {
  background: var(--cream-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
}
.dash-card-label {
  display: block;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 1.25rem;
}
.dash-ring-row {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  margin-bottom: 1.5rem;
}
.dash-ring {
  position: relative;
  flex-shrink: 0;
  width: 100px;
  height: 100px;
}
.dash-ring-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.dash-ring-num {
  font-family: 'Playfair Display', serif;
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1;
}
.dash-ring-sublabel { font-size: 0.56rem; color: var(--text-muted); margin-top: 0.2rem; }
.dash-ring-meta { display: flex; flex-direction: column; gap: 0.65rem; }
.dash-stat-pill { display: flex; flex-direction: column; gap: 0.05rem; }
.dash-stat-pill strong { font-size: 0.85rem; font-weight: 600; color: var(--sage); line-height: 1.1; }
.dash-stat-pill strong.warn { color: var(--rust); }
.dash-stat-pill span { font-size: 0.62rem; color: var(--text-muted); }
.dash-cats { display: flex; flex-direction: column; gap: 0.6rem; }
.dash-cat-row { display: flex; flex-direction: column; gap: 0.2rem; }
.dash-cat-label {
  display: flex;
  justify-content: space-between;
  font-size: 0.65rem;
  color: var(--text-muted);
}
.dash-cat-bar { height: 5px; background: var(--border); border-radius: 100px; overflow: hidden; }
.dash-cat-fill { height: 100%; background: var(--sage); border-radius: 100px; }
.dash-chart-header { margin-bottom: 0.65rem; }
.dash-chart-title { font-size: 0.82rem; font-weight: 600; color: var(--text); display: block; margin-bottom: 0.15rem; }
.dash-chart-sub { font-size: 0.63rem; color: var(--text-muted); }
.dash-bars {
  display: flex;
  gap: 0.3rem;
  align-items: flex-end;
  height: 88px;
  margin-bottom: 1.25rem;
}
.dash-bar-unit {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  height: 100%;
  justify-content: flex-end;
}
.dash-bar-fill { width: 100%; border-radius: 3px 3px 0 0; background: var(--sage); opacity: 0.65; }
.dash-bar-unit:last-child .dash-bar-fill { background: var(--rust); opacity: 1; }
.dash-bar-unit span { font-size: 0.55rem; color: var(--text-faint); }
.dash-action-list { display: flex; flex-direction: column; gap: 0.4rem; }
.dash-action {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  padding: 0.6rem 0.75rem;
  background: var(--cream-light);
  border-radius: 9px;
}
.dash-action-dot {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--sage);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: white;
  font-size: 0.6rem;
  font-weight: 700;
}
.dash-action h4 { font-size: 0.72rem; font-weight: 600; color: var(--text); margin-bottom: 0.1rem; }
.dash-action p { font-size: 0.63rem; color: var(--text-muted); line-height: 1.5; }

/* ── Stat Cards (big number + chart) ── */
.stat-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 3rem;
}
.stat-card {
  background: var(--cream-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
}
.stat-card-tag {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--rust);
  margin-bottom: 0.4rem;
}
.stat-card-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 260px;
}
.stat-card-num {
  font-family: 'Playfair Display', serif;
  font-size: 4.5rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1;
  letter-spacing: -0.04em;
  margin-top: 1.25rem;
}
.stat-mini-bars {
  display: flex;
  gap: 0.2rem;
  align-items: flex-end;
  height: 44px;
  margin-top: 0.75rem;
}
.stat-mini-bar { flex: 1; border-radius: 2px 2px 0 0; background: var(--sage); opacity: 0.6; }
.stat-mini-bar:last-child { background: var(--rust); opacity: 1; }
.stat-dot-row {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 1rem;
}
.stat-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sage);
  opacity: 0.7;
  flex-shrink: 0;
}
.stat-dot.remaining { background: var(--rust); opacity: 0.9; }

@media (max-width: 680px) {
  .dashboard-widget { grid-template-columns: 1fr; }
  .stat-cards-grid { grid-template-columns: 1fr; }
}

/* ═══════════════════════════════════════════
   PAGE-SPECIFIC STYLES — each page unique
   ═══════════════════════════════════════════ */

/* ── How It Works ── */
.hiw-hero {
  background: var(--cream-card);
  border-bottom: 1px solid var(--border);
  padding: 6rem 2rem 0;
  overflow: hidden;
}
.hiw-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: end;
}
.hiw-hero-text { padding-bottom: 5rem; }
.hiw-hero-text .section-label { color: var(--rust); }
.hiw-hero-text h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3.4rem;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--text);
  margin: 0.75rem 0 1.25rem;
}
.hiw-hero-text h1 em { color: #C8604A; }
.hiw-hero-text p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 500px;
}
.hiw-hero-numeral {
  font-family: 'Playfair Display', serif;
  font-size: 22rem;
  font-weight: 600;
  line-height: 0.82;
  color: var(--border);
  user-select: none;
  letter-spacing: -0.04em;
  align-self: flex-end;
}
.hiw-timeline {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 2.5rem;
}
.hiw-timeline-step {
  display: grid;
  grid-template-columns: 80px 1fr;
  border-bottom: 1px solid var(--border);
  min-height: 140px;
}
.hiw-timeline-step:last-child { border-bottom: none; }
.hiw-step-num-col {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream-card);
  border-right: 1px solid var(--border);
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--rust);
  opacity: 0.4;
}
.hiw-step-content { padding: 2rem 2.5rem; }
.hiw-step-content h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.6rem;
}
.hiw-step-content p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.8;
}

/* ── BPD page ── */
.bpd-hero {
  background: linear-gradient(140deg, #7A1C08 0%, #3C1810 55%, #1E0C08 100%);
  padding: 5.5rem 2rem 5rem;
  position: relative;
  overflow: hidden;
}
.bpd-hero::after {
  content: 'BPD';
  position: absolute;
  right: -0.02em;
  bottom: -0.1em;
  font-family: 'Playfair Display', serif;
  font-size: 26rem;
  font-weight: 600;
  line-height: 1;
  color: rgba(255,255,255,0.04);
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.04em;
}
.bpd-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}
.bpd-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3.2rem;
  color: var(--cream);
  letter-spacing: -0.02em;
  line-height: 1.14;
  margin: 0.75rem 0 1.25rem;
  max-width: 680px;
}
.bpd-hero h1 em { color: #E8A080; }
.bpd-hero p {
  font-size: 0.92rem;
  color: rgba(232,221,212,0.72);
  line-height: 1.8;
  max-width: 560px;
  margin-bottom: 1.75rem;
}
.modules-list {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 2rem;
}
.module-row {
  display: grid;
  grid-template-columns: 64px 1fr;
  border-bottom: 1px solid var(--border);
  transition: background 0.15s;
}
.module-row:last-child { border-bottom: none; }
.module-row:hover { background: var(--cream); }
.module-row-num {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--cream-card);
  border-right: 1px solid var(--border);
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  color: var(--rust);
  opacity: 0.55;
}
.module-row-content { padding: 1.1rem 1.5rem; }
.module-row-content h3 {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.2rem;
}
.module-row-content p {
  font-size: 0.76rem;
  color: var(--text-muted);
  line-height: 1.65;
}
.case-studies-rows {
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.case-study-row {
  display: grid;
  grid-template-columns: 72px 1fr;
  border-bottom: 1px solid var(--border);
}
.case-study-row:last-child { border-bottom: none; }
.case-study-row-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 0.5rem;
  background: var(--cream-card);
  border-right: 1px solid var(--border);
}
.case-study-row-tag span {
  font-size: 0.53rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rust);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  white-space: nowrap;
}
.case-study-row-body { padding: 1.75rem 2rem; }
.case-study-row-body .c-quote {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 0.6rem;
}
.case-study-row-body .c-name { font-size: 0.7rem; color: var(--text-muted); }

/* ── NPD page ── */
.npd-hero {
  background: #1A1008;
  padding: 5rem 2rem 4.5rem;
  position: relative;
  overflow: hidden;
}
.npd-hero::after {
  content: 'NPD';
  position: absolute;
  right: -0.02em;
  bottom: -0.1em;
  font-family: 'Playfair Display', serif;
  font-size: 26rem;
  font-weight: 600;
  line-height: 1;
  color: rgba(255,255,255,0.025);
  pointer-events: none;
  user-select: none;
  letter-spacing: -0.04em;
}
.npd-hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 3rem;
  align-items: start;
  position: relative;
  z-index: 1;
}
.npd-hero-text h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  color: var(--cream);
  letter-spacing: -0.02em;
  line-height: 1.14;
  margin: 0.75rem 0 1.25rem;
}
.npd-hero-text h1 em { color: #E8A080; }
.npd-hero-text p {
  font-size: 0.92rem;
  color: rgba(232,221,212,0.7);
  line-height: 1.8;
  margin-bottom: 1.75rem;
}
.npd-hero-stats {
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  overflow: hidden;
  margin-top: 0.5rem;
}
.npd-hero-stat {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.npd-hero-stat:last-child { border-bottom: none; }
.npd-hero-stat-num {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  color: #E8A080;
  line-height: 1.1;
  margin-bottom: 0.2rem;
}
.npd-hero-stat-label {
  display: block;
  font-size: 0.68rem;
  color: rgba(232,221,212,0.45);
  line-height: 1.4;
}

/* ── About page ── */
.about-hero-light {
  background: var(--cream-card);
  border-bottom: 1px solid var(--border);
  padding: 6.5rem 2rem 5.5rem;
}
.about-hero-light-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.about-hero-light .section-label { color: var(--rust); }
.about-hero-light h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3.6rem;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: var(--text);
  margin: 0.75rem 0 1.5rem;
  max-width: 820px;
}
.about-hero-light h1 em { color: #C8604A; }
.about-hero-light p {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 580px;
}
.about-video-bleed { padding: 0; }
.about-video-bleed .founding-video {
  border-radius: 0;
  border-left: none;
  border-right: none;
}
.about-stats-banner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  margin-top: 2.5rem;
}
.about-stats-banner .stat-block {
  padding: 1.5rem 1.75rem;
  border-right: 1px solid var(--border);
}
.about-stats-banner .stat-block:last-child { border-right: none; }

/* ── FAQ page ── */
.faq-hero-light {
  background: var(--cream-card);
  border-bottom: 1px solid var(--border);
  padding: 5rem 2rem 4rem;
}
.faq-hero-light-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.faq-hero-light .section-label { color: var(--rust); }
.faq-hero-light h1 {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0.75rem 0 1rem;
}
.faq-hero-light p {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.8;
  max-width: 500px;
}
.faq-two-col-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 4rem 2rem;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 5rem;
  align-items: start;
}
.faq-sidebar {
  position: sticky;
  top: 90px;
}
.faq-sidebar-title {
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 0.75rem;
}
.faq-sidebar-links { display: flex; flex-direction: column; gap: 0.15rem; }
.faq-sidebar-link {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-decoration: none;
  padding: 0.4rem 0.6rem;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.faq-sidebar-link::before {
  content: '';
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
  transition: background 0.15s;
}
.faq-sidebar-link:hover { background: var(--cream-card); color: var(--text); }
.faq-sidebar-link:hover::before { background: var(--rust); }
.faq-content { display: flex; flex-direction: column; gap: 3.5rem; }
.faq-category-section h2 {
  font-size: 1.4rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.75rem;
  margin-bottom: 0;
}

/* ── Responsive: page-specific ── */
@media (max-width: 900px) {
  .hiw-hero-numeral { font-size: 12rem; }
  .npd-hero-inner { grid-template-columns: 1fr; }
  .npd-hero-stats { display: flex; flex-direction: row; flex-wrap: wrap; border-radius: 10px; }
  .npd-hero-stat { flex: 1; min-width: 120px; border-bottom: none; border-right: 1px solid rgba(255,255,255,0.08); }
  .npd-hero-stat:last-child { border-right: none; }
  .about-stats-banner { grid-template-columns: 1fr 1fr; }
  .about-stats-banner .stat-block { border-bottom: 1px solid var(--border); }
  .about-stats-banner .stat-block:nth-child(2) { border-right: none; }
  .about-stats-banner .stat-block:nth-child(3) { border-bottom: none; }
  .about-stats-banner .stat-block:nth-child(4) { border-right: none; border-bottom: none; }
  .faq-two-col-wrap { grid-template-columns: 1fr; gap: 2rem; padding: 3rem 2rem; }
  .faq-sidebar { position: static; display: flex; gap: 0.5rem; flex-wrap: wrap; }
  .faq-sidebar-title { display: none; }
  .faq-sidebar-link { background: var(--cream-card); border: 1px solid var(--border); border-radius: 100px; font-size: 0.72rem; padding: 0.35rem 0.75rem; }
  .faq-sidebar-link::before { display: none; }
}
@media (max-width: 680px) {
  .hiw-hero-inner { grid-template-columns: 1fr; }
  .hiw-hero-numeral { display: none; }
  .bpd-hero h1 { font-size: 2.2rem; }
  .npd-hero-text h1 { font-size: 2.2rem; }
  .about-hero-light h1 { font-size: 2.4rem; }
  .faq-hero-light h1 { font-size: 2.2rem; }
  .case-study-row-tag { display: none; }
  .case-study-row { grid-template-columns: 1fr; }
}

/* ── Auth pages ── */
.auth-page {
  min-height: calc(100vh - 62px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
  background: var(--cream-light);
}
.auth-card {
  background: var(--cream-card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
}
.auth-title { font-family: 'Playfair Display', serif; font-size: 1.6rem; color: var(--text); margin-bottom: 0.4rem; }
.auth-subtitle { font-size: 0.8rem; color: var(--text-muted); margin-bottom: 2rem; line-height: 1.6; }
.form-group { margin-bottom: 1.2rem; }
.form-label { display: block; font-size: 0.72rem; font-weight: 600; color: var(--text); margin-bottom: 0.4rem; letter-spacing: 0.02em; }
.form-input, .form-select {
  width: 100%;
  padding: 0.65rem 0.9rem;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.82rem;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s;
  outline: none;
  appearance: none;
}
.form-input:focus, .form-select:focus { border-color: var(--rust); }
.form-input::placeholder { color: var(--text-faint); }
.form-submit {
  width: 100%;
  padding: 0.7rem 1.25rem;
  background: #C4786A;
  color: var(--white);
  border: none;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  font-family: 'Inter', sans-serif;
  cursor: pointer;
  transition: opacity 0.2s;
  margin-top: 0.25rem;
}
.form-submit:hover { opacity: 0.85; }
.form-divider { display: flex; align-items: center; gap: 0.75rem; margin: 1.25rem 0; color: var(--text-faint); font-size: 0.7rem; }
.form-divider::before, .form-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.auth-alt { text-align: center; font-size: 0.72rem; color: var(--text-muted); margin-top: 1.25rem; }
.auth-alt a { color: var(--rust); text-decoration: none; }
.auth-disclaimer { font-size: 0.65rem; color: var(--text-faint); line-height: 1.6; margin-top: 1.25rem; text-align: center; }

/* ── Legal pages ── */
.legal-content { max-width: 760px; margin: 0 auto; padding: 0 2rem 5rem; }
.legal-last-updated { font-size: 0.72rem; color: var(--text-faint); margin-bottom: 2.5rem; display: block; }
.legal-content h3 { font-family: 'Playfair Display', serif; font-size: 1.05rem; color: var(--text); margin: 2.5rem 0 0.65rem; }
.legal-content p { font-size: 0.84rem; color: var(--text-muted); line-height: 1.85; margin-bottom: 0.85rem; }
.legal-content ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.legal-content li { font-size: 0.84rem; color: var(--text-muted); line-height: 1.85; margin-bottom: 0.35rem; }
.legal-content a { color: var(--rust); text-decoration: none; }

/* ── Empty state ── */
.empty-state { text-align: center; padding: 5rem 2rem; max-width: 480px; margin: 0 auto; }
.empty-state-icon { font-size: 2rem; opacity: 0.2; margin-bottom: 1.25rem; }
.empty-state h3 { font-family: 'Playfair Display', serif; font-size: 1.4rem; color: var(--text); margin-bottom: 0.65rem; }
.empty-state p { font-size: 0.82rem; color: var(--text-muted); line-height: 1.75; margin-bottom: 1.5rem; }

/* ── Job listings ── */
.job-list { display: flex; flex-direction: column; gap: 0.75rem; max-width: 780px; margin: 0 auto; }
.job-card { background: var(--cream-card); border: 1px solid var(--border); border-radius: 14px; padding: 1.5rem 1.75rem; display: flex; align-items: flex-start; justify-content: space-between; gap: 1.5rem; text-decoration: none; cursor: pointer; transition: box-shadow 0.18s ease, border-color 0.18s ease, transform 0.18s ease; }
.job-card:hover { box-shadow: 0 6px 24px rgba(38,16,8,0.1); border-color: #C8B8AC; transform: translateY(-1px); }
.job-card-left { display: flex; flex-direction: column; gap: 0.55rem; flex: 1; }
.job-card-title { font-family: 'Playfair Display', serif; font-size: 1.15rem; color: var(--text); font-weight: 600; }
.job-card-desc { font-size: 0.83rem; color: var(--text-muted); line-height: 1.7; margin: 0; }
.job-card-meta { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.25rem; }
.job-tag { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.04em; padding: 0.25rem 0.65rem; border-radius: 20px; background: var(--cream-light); border: 1px solid var(--border); color: var(--text-muted); }
.job-tag.tag-type { background: rgba(157,185,159,0.15); border-color: rgba(157,185,159,0.35); color: var(--sage); }
.job-card-apply { font-size: 0.8rem; font-weight: 500; color: #C4786A; text-decoration: none; white-space: nowrap; padding: 0.55rem 1.1rem; border: 1.5px solid #C4786A; border-radius: 8px; flex-shrink: 0; transition: background 0.15s ease, color 0.15s ease; }
.job-card:hover .job-card-apply { background: #C4786A; color: white; }

/* ── Case Study ── */
.cs-outcome-bar { background: var(--cream-card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 2rem 2rem; }
.cs-outcome-inner { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; gap: 2.5rem; flex-wrap: wrap; }
.cs-outcome-stat { display: flex; flex-direction: column; gap: 0.25rem; }
.cs-outcome-num { font-family: 'Playfair Display', serif; font-size: 2.2rem; font-weight: 600; color: var(--rust); line-height: 1; }
.cs-outcome-label { font-size: 0.72rem; color: var(--text-muted); }
.cs-outcome-arrow { font-size: 1.5rem; color: var(--border); }
.cs-outcome-divider { width: 1px; height: 48px; background: var(--border); }

.cs-split { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; }
.cs-demo-grid { display: flex; flex-direction: column; gap: 0; }
.cs-demo-row { display: grid; grid-template-columns: 160px 1fr; gap: 1rem; padding: 0.7rem 0; border-bottom: 1px solid var(--border); align-items: start; }
.cs-demo-key { font-size: 0.75rem; font-weight: 500; color: var(--text-muted); padding-top: 0.05rem; }
.cs-demo-val { font-size: 0.82rem; color: var(--text); line-height: 1.5; }
.cs-symptom-list { list-style: none; display: flex; flex-direction: column; gap: 0; margin: 0; padding: 0; }
.cs-symptom-list li { font-size: 0.83rem; color: var(--text-muted); padding: 0.65rem 0; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 0.6rem; }
.cs-symptom-list li::before { content: '◆'; font-size: 0.45rem; color: var(--rust); opacity: 0.6; flex-shrink: 0; }

.section-intro { font-size: 0.92rem; color: var(--text-muted); line-height: 1.85; max-width: 680px; margin-bottom: 1.5rem; }
.cs-disclaimer { font-size: 0.75rem; color: var(--text-faint); font-style: italic; line-height: 1.7; }

.cs-chart-wrap { background: var(--cream-card); border: 1px solid var(--border); border-radius: 16px; padding: 2rem 1.75rem 1.25rem; }
.cs-chart-legend { display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; color: var(--text-muted); margin-bottom: 1.5rem; flex-wrap: wrap; }
.cs-legend-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

.cs-line { stroke-dasharray: 560; stroke-dashoffset: 560; transition: stroke-dashoffset 1.6s cubic-bezier(0.4,0,0.2,1); }
.cs-area { opacity: 0; transition: opacity 0.5s ease 1.2s; }
.cs-dot { opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(0); }
.cs-label { opacity: 0; }
#kirbyChart.animate .cs-line { stroke-dashoffset: 0; }
#kirbyChart.animate .cs-area { opacity: 1; }
#kirbyChart.animate .cs-dot { animation: popDot 0.3s cubic-bezier(0.34,1.56,0.64,1) forwards; }
#kirbyChart.animate .cs-label { animation: fadeIn 0.3s ease forwards; }
#kirbyChart.animate .cs-dot-1,  #kirbyChart.animate .cs-label-1  { animation-delay: 0.2s; }
#kirbyChart.animate .cs-dot-2,  #kirbyChart.animate .cs-label-2  { animation-delay: 0.5s; }
#kirbyChart.animate .cs-dot-3,  #kirbyChart.animate .cs-label-3  { animation-delay: 0.75s; }
#kirbyChart.animate .cs-dot-4,  #kirbyChart.animate .cs-label-4  { animation-delay: 1.0s; }
#kirbyChart.animate .cs-dot-5,  #kirbyChart.animate .cs-label-5  { animation-delay: 1.2s; }
#kirbyChart.animate .cs-dot-6,  #kirbyChart.animate .cs-label-6  { animation-delay: 1.4s; }
#kirbyChart.animate .cs-dot-7,  #kirbyChart.animate .cs-label-7  { animation-delay: 1.55s; }
#kirbyChart.animate .cs-dot-8,  #kirbyChart.animate .cs-label-8  { animation-delay: 1.65s; }

#sandersChart.animate .cs-line { stroke-dashoffset: 0; }
#sandersChart.animate .cs-area { opacity: 1; }
#sandersChart.animate .cs-dot { animation: popDot 0.3s cubic-bezier(0.34,1.56,0.64,1) forwards; }
#sandersChart.animate .cs-label { animation: fadeIn 0.3s ease forwards; }
#sandersChart.animate .cs-dot-1, #sandersChart.animate .cs-label-1 { animation-delay: 0.2s; }
#sandersChart.animate .cs-dot-2, #sandersChart.animate .cs-label-2 { animation-delay: 0.5s; }
#sandersChart.animate .cs-dot-3, #sandersChart.animate .cs-label-3 { animation-delay: 0.75s; }
#sandersChart.animate .cs-dot-4, #sandersChart.animate .cs-label-4 { animation-delay: 1.0s; }
#sandersChart.animate .cs-dot-5, #sandersChart.animate .cs-label-5 { animation-delay: 1.2s; }
#sandersChart.animate .cs-dot-6, #sandersChart.animate .cs-label-6 { animation-delay: 1.4s; }
#sandersChart.animate .cs-dot-7, #sandersChart.animate .cs-label-7 { animation-delay: 1.55s; }

#wallaceChart.animate .cs-line { stroke-dashoffset: 0; }
#wallaceChart.animate .cs-area { opacity: 1; }
#wallaceChart.animate .cs-dot { animation: popDot 0.3s cubic-bezier(0.34,1.56,0.64,1) forwards; }
#wallaceChart.animate .cs-label { animation: fadeIn 0.3s ease forwards; }
#wallaceChart.animate .cs-dot-1, #wallaceChart.animate .cs-label-1 { animation-delay: 0.2s; }
#wallaceChart.animate .cs-dot-2, #wallaceChart.animate .cs-label-2 { animation-delay: 0.5s; }
#wallaceChart.animate .cs-dot-3, #wallaceChart.animate .cs-label-3 { animation-delay: 0.75s; }
#wallaceChart.animate .cs-dot-4, #wallaceChart.animate .cs-label-4 { animation-delay: 1.0s; }
#wallaceChart.animate .cs-dot-5, #wallaceChart.animate .cs-label-5 { animation-delay: 1.2s; }
#wallaceChart.animate .cs-dot-6, #wallaceChart.animate .cs-label-6 { animation-delay: 1.4s; }
#wallaceChart.animate .cs-dot-7, #wallaceChart.animate .cs-label-7 { animation-delay: 1.55s; }

#martinChart.animate .cs-line { stroke-dashoffset: 0; }
#martinChart.animate .cs-area { opacity: 1; }
#martinChart.animate .cs-dot { animation: popDot 0.3s cubic-bezier(0.34,1.56,0.64,1) forwards; }
#martinChart.animate .cs-label { animation: fadeIn 0.3s ease forwards; }
#martinChart.animate .cs-dot-1, #martinChart.animate .cs-label-1 { animation-delay: 0.2s; }
#martinChart.animate .cs-dot-2, #martinChart.animate .cs-label-2 { animation-delay: 0.5s; }
#martinChart.animate .cs-dot-3, #martinChart.animate .cs-label-3 { animation-delay: 0.75s; }
#martinChart.animate .cs-dot-4, #martinChart.animate .cs-label-4 { animation-delay: 1.0s; }
#martinChart.animate .cs-dot-5, #martinChart.animate .cs-label-5 { animation-delay: 1.2s; }
#martinChart.animate .cs-dot-6, #martinChart.animate .cs-label-6 { animation-delay: 1.4s; }
#martinChart.animate .cs-dot-7, #martinChart.animate .cs-label-7 { animation-delay: 1.55s; }
#martinChart.animate .cs-dot-8, #martinChart.animate .cs-label-8 { animation-delay: 1.65s; }
@keyframes fadeIn { to { opacity: 1; } }

.cs-table-wrap { overflow-x: auto; }
.cs-table { width: 100%; border-collapse: collapse; font-size: 0.83rem; }
.cs-table th { text-align: left; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-faint); padding: 0.6rem 1rem; border-bottom: 2px solid var(--border); }
.cs-table td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--border); color: var(--text-muted); vertical-align: middle; }
.cs-table tr:last-child td { border-bottom: none; }
.cs-table tr:hover td { background: var(--cream-card); }
.cs-score-pill { display: inline-block; padding: 0.2rem 0.65rem; border-radius: 100px; font-weight: 600; font-size: 0.8rem; }
.cs-score-high { background: rgba(168,56,40,0.1); color: var(--rust); }
.cs-score-mid  { background: rgba(196,170,100,0.12); color: #9A7B30; }
.cs-score-low  { background: rgba(157,185,159,0.2); color: #5A8A5C; }
.cs-change-good { color: #5A8A5C; font-weight: 500; }
.cs-change-bad  { color: var(--rust); font-weight: 500; }
.cs-change-neutral { color: var(--text-faint); }

.cs-authors { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.cs-author-card { background: var(--cream-card); border: 1px solid var(--border); border-radius: 12px; padding: 1.25rem 1.5rem; display: flex; flex-direction: column; gap: 0.25rem; flex: 1; min-width: 220px; }
.cs-author-name { font-family: 'Playfair Display', serif; font-size: 1.05rem; color: var(--text); }
.cs-author-role { font-size: 0.78rem; color: var(--text-muted); }
.cs-author-note { font-size: 0.72rem; color: var(--text-faint); font-style: italic; margin-top: 0.35rem; }

.cs-card { background: var(--cream-card); border: 1px solid var(--border); border-radius: 14px; padding: 1.75rem; text-decoration: none; display: flex; flex-direction: column; gap: 0.75rem; transition: box-shadow 0.18s, transform 0.18s; }
.cs-card:hover { box-shadow: 0 6px 24px rgba(38,16,8,0.1); transform: translateY(-2px); }
.cs-card-label { font-size: 0.62rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--rust); }
.cs-card-title { font-family: 'Playfair Display', serif; font-size: 1.2rem; color: var(--text); }
.cs-card-desc { font-size: 0.8rem; color: var(--text-muted); line-height: 1.7; }
.cs-card-stat { font-size: 0.78rem; color: var(--sage); font-weight: 500; }
.cs-cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }

@media (max-width: 680px) {
  .cs-split { grid-template-columns: 1fr; gap: 2.5rem; }
  .cs-outcome-inner { gap: 1.5rem; }
  .cs-outcome-divider { display: none; }
  .cs-outcome-arrow { display: none; }
  .cs-demo-row { grid-template-columns: 130px 1fr; }
}

/* ── 404 page ── */
.not-found-page { min-height: calc(100vh - 62px); display: flex; align-items: center; justify-content: center; text-align: center; padding: 4rem 2rem; }
.not-found-num { font-family: 'Playfair Display', serif; font-size: 8rem; font-weight: 600; color: var(--rust); opacity: 0.15; line-height: 1; margin-bottom: 0; }
.not-found-page h2 { font-family: 'Playfair Display', serif; font-size: 1.8rem; color: var(--text); margin-bottom: 0.75rem; }
.not-found-page p { font-size: 0.85rem; color: var(--text-muted); max-width: 400px; margin: 0 auto 2rem; line-height: 1.75; }

/* ── Program selector (homepage) ── */
.programs-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 2.5rem;
}
.program-card {
  background: var(--cream-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  position: relative;
  overflow: hidden;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.program-card:hover { transform: translateY(-3px); box-shadow: 0 10px 36px rgba(38,16,8,0.09); border-color: var(--rust); }
.program-card-avoidant:hover { border-color: var(--sage); }
.program-card-tag {
  font-family: 'Inter', sans-serif;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--rust);
}
.program-card-avoidant .program-card-tag { color: #6A8F6C; }
.program-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  line-height: 1.2;
}
.program-card > p {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin: 0;
}
.program-card-traits {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  border-top: 1px solid var(--border);
  padding-top: 0.9rem;
}
.program-card-traits li {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding-left: 1rem;
  position: relative;
}
.program-card-traits li::before { content: '·'; position: absolute; left: 0; color: var(--rust); font-size: 1rem; line-height: 1.2; }
.program-card-avoidant .program-card-traits li::before { color: #6A8F6C; }
.program-card-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--rust);
  margin-top: auto;
  padding-top: 0.5rem;
}
.program-card-avoidant .program-card-link { color: #6A8F6C; }
#programs.section { padding-bottom: 2rem; }
#process.section { padding-top: 2rem; }
.programs-split-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  margin-top: 2.25rem;
  text-align: center;
}
.programs-split-footer p {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}
/* ── Program card characters ── */
.card-character {
  position: absolute;
  bottom: 0;
  right: 1.25rem;
  width: 64px;
  height: 104px;
  pointer-events: none;
  opacity: 0.18;
}

/* ── Program card animations ── */
.program-card-anim {
  position: absolute;
  top: 1.4rem;
  right: 1.4rem;
  pointer-events: none;
}

/* Anxious: EKG pulse */
.anim-pulse {
  width: 80px;
  height: 32px;
  opacity: 0.28;
}
.pulse-line {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: pulse-draw 2.8s ease-in-out infinite;
}
@keyframes pulse-draw {
  0%   { stroke-dashoffset: 1; opacity: 0; }
  10%  { opacity: 1; }
  65%  { stroke-dashoffset: 0; opacity: 1; }
  82%  { stroke-dashoffset: 0; opacity: 0; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}

/* Avoidant: expanding rings */
.anim-rings {
  width: 54px;
  height: 54px;
  opacity: 0.45;
}
.anim-ring {
  transform-box: fill-box;
  transform-origin: center;
  animation: ring-expand 3.2s ease-out infinite;
  opacity: 0;
}
.anim-ring-1 { animation-delay: 0s; }
.anim-ring-2 { animation-delay: 1.06s; }
.anim-ring-3 { animation-delay: 2.13s; }
@keyframes ring-expand {
  0%   { transform: scale(0.1); opacity: 0.8; }
  100% { transform: scale(1);   opacity: 0; }
}

@media (max-width: 680px) {
  .programs-split { grid-template-columns: 1fr; }
}

/* ── Mobile optimisation ── */
@media (max-width: 680px) {

  /* ── Hero: vertically centered, nav-aware ── */
  .hero {
    min-height: 100vh;
    min-height: 100svh;
    align-items: center;
    overflow: visible;
    padding-top: 70px;   /* push flex center below fixed nav */
    padding-bottom: 2rem;
  }
  .hero-content {
    padding: 0 1.75rem;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
  }
  .hero-eyebrow {
    font-size: 0.54rem;
    letter-spacing: 0.09em;
    margin-bottom: 1rem;
  }
  .hero-content h1 { font-size: 2rem; margin-bottom: 1.25rem; }
  .hero-value-prop { font-size: 0.88rem; line-height: 1.7; margin-bottom: 1.75rem; max-width: 100%; }

  /* Stats: centered 2×2 grid */
  .hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem 1.5rem;
    text-align: center;
    margin-bottom: 2rem;
  }
  .hero-stat-divider { display: none; }
  .hero-stat-num { font-size: 1.5rem; }
  .hero-stat-label { font-size: 0.6rem; max-width: none; }

  /* Videos — 1 column */
  .videos-grid { grid-template-columns: 1fr; }

  /* Compare table — horizontal scroll */
  .compare-table {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    display: block;
  }
  .compare-header,
  .compare-row { grid-template-columns: 1fr 80px 80px; padding: 0.65rem 0.85rem; }

  /* Ticker */
  .ticker-wrap { overflow: hidden; }

  /* Sections */
  .section-inner { padding: 0 1.25rem; }
  .section { padding: 2.5rem 0; }

  /* Footer */
  .footer-top { padding: 3rem 1.25rem 2rem; }
  .footer-cols { grid-template-columns: 1fr; gap: 2rem; }

  /* Tap targets */
  .btn-hero,
  .btn-primary,
  .btn-secondary { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }

  /* Forms — prevent iOS zoom on focus */
  .contact-form input,
  .contact-form textarea,
  select { font-size: 1rem !important; }

  /* Graph bubble */
  .graph-bubble { padding: 1rem; overflow-x: auto; }

  /* Page headings */
  .page-hero h1,
  .about-hero-light h1,
  .hiw-hero-text h1 { font-size: 1.75rem; }

  /* Misc grids */
  .research-grid,
  .cs-grid,
  .stat-cards-grid { grid-template-columns: 1fr !important; }
}

/* ── Very small phones (≤ 390px) ── */
@media (max-width: 390px) {
  .hero { padding-top: 60px; }
  .hero-content h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  .hero-stats { grid-template-columns: 1fr; }
  nav { padding: 0.6rem 0.85rem; }
  .section-inner { padding: 0 0.85rem; }
}
