/* ============================================================
   Movements Consulting — vanilla HTML/CSS/JS version
   Design tokens mirror the React/Tailwind v4 source.
   All colours use oklch() to preserve the warm cream + forest
   green + earth brown palette of the original site.
   ============================================================ */

:root {
  --radius: 0.5rem;
  --radius-sm: calc(var(--radius) - 4px);
  --radius-md: calc(var(--radius) - 2px);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) + 4px);

  --background: oklch(0.972 0.012 85);
  --foreground: oklch(0.22 0.03 60);
  --card: oklch(0.985 0.008 85);
  --card-foreground: oklch(0.22 0.03 60);
  --primary: oklch(0.35 0.06 155);
  --primary-foreground: oklch(0.97 0.012 85);
  --secondary: oklch(0.42 0.07 55);
  --secondary-foreground: oklch(0.97 0.012 85);
  --muted: oklch(0.93 0.014 80);
  --muted-foreground: oklch(0.42 0.03 60);
  --accent: oklch(0.55 0.11 60);
  --accent-foreground: oklch(0.98 0.01 85);
  --border: oklch(0.86 0.02 70);
  --input: oklch(0.88 0.018 70);
  --ring: oklch(0.35 0.06 155);

  --sidebar: oklch(0.25 0.04 60);
  --sidebar-foreground: oklch(0.97 0.012 85);
  --sidebar-primary: oklch(0.55 0.11 60);
  --sidebar-accent: oklch(0.32 0.05 60);
  --sidebar-border: oklch(0.32 0.04 60);

  --gradient-hero: linear-gradient(135deg, oklch(0.25 0.04 60) 0%, oklch(0.32 0.06 120) 100%);
  --shadow-elegant: 0 20px 60px -20px oklch(0.22 0.03 60 / 0.35);
  --shadow-md: 0 4px 12px -2px oklch(0.22 0.03 60 / 0.12);
  --shadow-lg: 0 16px 40px -12px oklch(0.22 0.03 60 / 0.18);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--background);
  color: var(--foreground);
  font-family: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, .font-serif {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  margin: 0;
  line-height: 1.15;
}
p, ul, ol { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input { font: inherit; }
ul { list-style: none; padding: 0; }
hr { border: 0; border-top: 1px solid var(--border); }

/* ---------- Layout shell ---------- */
.app-shell {
  display: flex;
  min-height: 100vh;
  width: 100%;
  background: var(--background);
}
.app-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.main-area { flex: 1; }

/* ---------- Sidebar ---------- */
.sidebar {
  width: 256px;
  background: var(--sidebar);
  color: var(--sidebar-foreground);
  border-right: 1px solid var(--sidebar-border);
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, width 0.25s ease;
  flex-shrink: 0;
  position: sticky;
  top: 0;
  align-self: flex-start;
  height: 100vh;
  max-height: 100vh;
}
/* Used by JS during the initial state restoration to suppress
   the otherwise-jarring "slide open" transition on every page load. */
.app-shell.no-anim .sidebar,
.app-shell.no-anim .sidebar * { transition: none !important; }
.sidebar-header {
  padding: 12px 12px;
  border-bottom: 1px solid var(--sidebar-border);
}
.sidebar-header a { display: flex; align-items: center; overflow: hidden; padding: 8px; }
.sidebar-header img { height: 40px; width: auto; object-fit: contain; object-position: left; }

.sidebar-content { flex: 1; padding: 12px 0; overflow-y: auto; }
.sidebar-group-label {
  padding: 8px 16px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: oklch(0.97 0.012 85 / 0.6);
}
.sidebar-menu { display: flex; flex-direction: column; gap: 2px; padding: 0 8px; }
.sidebar-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 6px;
  font-size: 14px;
  color: var(--sidebar-foreground);
  transition: background 0.15s ease;
}
.sidebar-menu a:hover { background: var(--sidebar-accent); }
.sidebar-menu a.active { background: var(--sidebar-primary); color: var(--accent-foreground); }
.sidebar-menu a svg { width: 16px; height: 16px; flex-shrink: 0; }

.sidebar-footer {
  border-top: 1px solid var(--sidebar-border);
  padding: 12px;
  font-size: 12px;
  color: oklch(0.97 0.012 85 / 0.7);
}
.sidebar-footer p:first-child { font-weight: 500; color: var(--sidebar-foreground); margin-bottom: 4px; }
.sidebar-footer a { color: var(--sidebar-primary); }
.sidebar-footer a:hover { text-decoration: underline; }

/* Sidebar collapsed state — driven by a class on .app-shell.
   On desktop: shrinks to an icon-only rail so navigation stays reachable.
   On mobile: slides off-screen entirely. */
.app-shell.sidebar-collapsed .sidebar { width: 56px; }
.app-shell.sidebar-collapsed .sidebar-header { padding: 8px 4px; }
.app-shell.sidebar-collapsed .sidebar-header a { justify-content: center; padding: 4px; }
.app-shell.sidebar-collapsed .sidebar-header img { height: 28px; }
.app-shell.sidebar-collapsed .sidebar-group-label { display: none; }
.app-shell.sidebar-collapsed .sidebar-menu { padding: 0 6px; }
.app-shell.sidebar-collapsed .sidebar-menu a { justify-content: center; padding: 8px; gap: 0; }
.app-shell.sidebar-collapsed .sidebar-menu a span { display: none; }
.app-shell.sidebar-collapsed .sidebar-footer { display: none; }

@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 50;
    transform: translateX(-100%);
    height: 100vh;
  }
  .app-shell:not(.sidebar-collapsed) .sidebar { transform: translateX(0); }
  /* On mobile a collapsed sidebar is fully hidden, not a rail */
  .app-shell.sidebar-collapsed .sidebar { width: 256px; transform: translateX(-100%); }
  .app-shell.sidebar-collapsed .sidebar-header,
  .app-shell.sidebar-collapsed .sidebar-header a,
  .app-shell.sidebar-collapsed .sidebar-menu,
  .app-shell.sidebar-collapsed .sidebar-menu a { /* reset desktop rail rules on mobile */
    padding: revert;
    justify-content: flex-start;
    gap: 12px;
  }
  .app-shell.sidebar-collapsed .sidebar-header { padding: 12px; }
  .app-shell.sidebar-collapsed .sidebar-header a { padding: 8px; }
  .app-shell.sidebar-collapsed .sidebar-header img { height: 40px; }
  .app-shell.sidebar-collapsed .sidebar-menu { padding: 0 8px; }
  .app-shell.sidebar-collapsed .sidebar-menu a { padding: 8px 10px; }
  .app-shell.sidebar-collapsed .sidebar-menu a span { display: inline; }
  .app-shell.sidebar-collapsed .sidebar-group-label { display: block; }
  .app-shell.sidebar-collapsed .sidebar-footer { display: block; }

  .sidebar-backdrop {
    display: none;
    position: fixed; inset: 0;
    background: oklch(0 0 0 / 0.4);
    z-index: 40;
  }
  .app-shell:not(.sidebar-collapsed) .sidebar-backdrop { display: block; }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklab, var(--background) 80%, transparent);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  padding: 0 16px;
}
.header-left { display: flex; align-items: center; gap: 12px; }
.sidebar-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  color: var(--foreground);
  transition: background 0.15s ease;
}
.sidebar-trigger:hover { background: var(--muted); }
.sidebar-trigger svg { width: 16px; height: 16px; }
.brand-mark {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.2em;
  color: var(--foreground);
}
.header-cta { display: none; }
@media (min-width: 640px) { .header-cta { display: inline-flex; } }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--card);
  margin-top: 48px;
}
.footer-grid {
  max-width: 72rem;
  margin: 0 auto;
  padding: 40px 40px;
  display: grid;
  gap: 32px;
  font-size: 14px;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(4, 1fr); } }
.footer-brand { font-family: "Cormorant Garamond", Georgia, serif; font-size: 16px; font-weight: 600; letter-spacing: 0.04em; }
.footer-brand-tag {
  color: var(--muted-foreground);
  margin-top: 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
}
.footer-grid h4 { font-family: "Inter", sans-serif; font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.footer-grid ul li { margin-bottom: 4px; color: var(--muted-foreground); }
.footer-grid a:hover { color: var(--primary); }
.footer-subscribe { display: flex; gap: 8px; }
.footer-subscribe input {
  flex: 1;
  min-width: 0;
  border-radius: 6px;
  border: 1px solid var(--input);
  background: var(--background);
  padding: 8px 12px;
  font-size: 12px;
  color: var(--foreground);
}
.footer-subscribe button {
  border-radius: 6px;
  background: var(--accent);
  color: var(--accent-foreground);
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 500;
}
.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 16px;
  text-align: center;
  font-size: 12px;
  color: var(--muted-foreground);
}

/* ---------- Buttons / CTAs ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 6px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  transition: background 0.15s ease, opacity 0.15s ease, color 0.15s ease;
  cursor: pointer;
}
.btn-primary { background: var(--primary); color: var(--primary-foreground); }
.btn-primary:hover { background: color-mix(in oklab, var(--primary) 90%, black); }
.btn-accent { background: var(--accent); color: var(--accent-foreground); }
.btn-accent:hover { opacity: 0.9; }
.btn-ghost {
  background: transparent;
  color: var(--primary-foreground);
  border: 1px solid oklch(0.97 0.012 85 / 0.3);
}
.btn-ghost:hover { background: oklch(0.97 0.012 85 / 0.1); }
.btn-sm { padding: 8px 16px; font-size: 12px; }
.btn-uppercase { text-transform: uppercase; letter-spacing: 0.08em; font-size: 12px; }
.btn svg { width: 16px; height: 16px; }

/* ---------- Generic content / sections ---------- */
.container { max-width: 72rem; margin: 0 auto; padding-left: 40px; padding-right: 40px; }
.container-narrow { max-width: 48rem; margin: 0 auto; padding: 0 40px; }
.container-prose { max-width: 64rem; margin: 0 auto; padding: 0 40px; }
.container-md { max-width: 56rem; margin: 0 auto; padding: 0 40px; }
.container-lg { max-width: 80rem; margin: 0 auto; padding: 0 40px; }

.section { padding: 64px 0; }
.section-lg { padding: 80px 0; }
.section-muted { background: color-mix(in oklab, var(--muted) 40%, transparent); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-card-bg { background: var(--card); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-primary { background: var(--primary); color: var(--primary-foreground); }
.section-primary-95 { background: color-mix(in oklab, var(--primary) 95%, transparent); color: var(--primary-foreground); }

.eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--accent);
  margin-bottom: 8px;
}
.eyebrow-soft {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted-foreground);
}

h1.page-title, .h1 {
  font-size: clamp(2.25rem, 5vw, 3.75rem);
  line-height: 1.05;
  margin-bottom: 12px;
}
h2.section-title, .h2 {
  font-size: clamp(1.875rem, 3.5vw, 2.5rem);
  margin-bottom: 16px;
}
h3.card-title, .h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}
.italic-accent { font-style: italic; color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--gradient-hero);
  color: var(--primary-foreground);
}
.hero-inner { padding: 80px 40px; max-width: 72rem; margin: 0 auto; }
@media (min-width: 768px) { .hero-inner { padding: 112px 40px; } }
.hero-logo-chip {
  display: inline-block;
  background: oklch(0.97 0.012 85 / 0.95);
  padding: 12px 20px;
  border-radius: 6px;
  margin-bottom: 32px;
  box-shadow: 0 1px 2px oklch(0 0 0 / 0.1);
}
.hero-logo-chip img { height: 56px; width: auto; object-fit: contain; }
@media (min-width: 768px) { .hero-logo-chip img { height: 64px; } }
.hero h1 {
  font-size: clamp(2.5rem, 5.5vw, 3.75rem);
  line-height: 1.1;
  max-width: 56rem;
}
.hero-lead {
  margin-top: 24px;
  max-width: 36rem;
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  color: oklch(0.97 0.012 85 / 0.8);
}
.hero-actions { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
.grid-7 { grid-template-columns: repeat(2, 1fr); gap: 16px; }

@media (min-width: 640px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-7 { grid-template-columns: repeat(7, 1fr); }
}
@media (min-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ---------- Cards ---------- */
.card {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 8px;
  padding: 28px;
}
.card-sm { padding: 24px; }
.card-hover { transition: box-shadow 0.2s ease; }
.card-hover:hover { box-shadow: var(--shadow-md); }
.card-large-num {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 3rem;
  color: var(--primary);
  margin-bottom: 12px;
  line-height: 1;
}
.card-large-num.accent { color: var(--accent); }
.card-large-num.huge { font-size: 3rem; }
.card-body { font-size: 14px; color: oklch(0.22 0.03 60 / 0.85); margin-bottom: 12px; }
.card-source { font-size: 12px; color: var(--muted-foreground); font-style: italic; }
.card-link { color: var(--accent); font-size: 14px; }
.card-link:hover { text-decoration: underline; }

/* ---------- Stat numbers / numeric headings ---------- */
.stat-num {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.5rem;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 12px;
}

/* ---------- Tab toggle (home page leader/org) ---------- */
.tabs {
  display: inline-flex;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 4px;
  margin-bottom: 32px;
  gap: 4px;
}
.tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  color: oklch(0.22 0.03 60 / 0.7);
  transition: background 0.15s ease, color 0.15s ease;
}
.tab-btn svg { width: 16px; height: 16px; }
.tab-btn.active { background: var(--primary); color: var(--primary-foreground); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }
.tab-card {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 12px;
  padding: 40px;
}
@media (max-width: 640px) { .tab-card { padding: 28px; } }

/* ---------- Bullet lists with check icons ---------- */
.check-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 24px; }
.check-list li { display: flex; gap: 12px; color: oklch(0.22 0.03 60 / 0.85); }
.check-list li svg { width: 16px; height: 16px; margin-top: 4px; color: var(--accent); flex-shrink: 0; }
.check-list-lg li { font-size: 1.0625rem; line-height: 1.6; }
.check-list-lg li svg { width: 20px; height: 20px; }

/* ---------- Quote / pull blocks ---------- */
.pull-quote {
  border-left: 2px solid var(--accent);
  padding-left: 24px;
  font-style: italic;
  color: oklch(0.22 0.03 60 / 0.8);
  font-size: 1.125rem;
}
.pull-quote p { margin-bottom: 4px; }
blockquote.deep-quote {
  border-left: 4px solid var(--accent);
  padding-left: 24px;
  font-style: italic;
  font-size: 1.125rem;
  color: oklch(0.22 0.03 60 / 0.8);
  max-width: 48rem;
}
blockquote.deep-quote footer {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted-foreground);
  font-style: normal;
}

/* ---------- Tag chips (credentials) ---------- */
.chip {
  display: inline-block;
  border: 1px solid var(--border);
  background: var(--card);
  padding: 6px 12px;
  border-radius: 9999px;
  font-size: 12px;
  color: oklch(0.22 0.03 60 / 0.8);
}
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Service cards ---------- */
.service-card { display: flex; flex-direction: column; height: 100%; }
.service-card .service-tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 12px;
}
.service-card h3 { font-size: 1.5rem; margin-bottom: 12px; }
.service-card .service-body {
  font-size: 14px;
  color: oklch(0.22 0.03 60 / 0.8);
  flex: 1;
  margin-bottom: 16px;
}
.service-card .service-for {
  font-size: 12px;
  color: var(--muted-foreground);
  border-top: 1px solid var(--border);
  padding-top: 12px;
  margin-top: 8px;
}
.service-card .service-for b { color: var(--foreground); font-weight: 600; }

/* ---------- Pricing-style tier cards (legal page) ---------- */
.tier-card {
  border: 1px solid var(--border);
  background: var(--background);
  border-radius: 12px;
  padding: 32px;
  display: flex;
  flex-direction: column;
}
.tier-card.highlight {
  border-color: var(--accent);
  background: color-mix(in oklab, var(--accent) 8%, transparent);
  box-shadow: var(--shadow-lg);
}
@media (min-width: 768px) {
  .tier-card.highlight { transform: scale(1.04); }
}
.tier-card .tier-tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: var(--muted-foreground);
  margin-bottom: 12px;
}
.tier-card.highlight .tier-tag { color: var(--accent); font-weight: 600; }
.tier-card ul { margin: 0 0 24px; flex: 1; display: flex; flex-direction: column; gap: 8px; }
.tier-card ul li { display: flex; gap: 8px; font-size: 14px; color: oklch(0.22 0.03 60 / 0.8); }
.tier-card ul li::before { content: "·"; color: var(--accent); }
.tier-card .tier-price {
  font-size: 14px;
  font-weight: 500;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

/* ---------- Legal "Why now" callout ---------- */
.why-now {
  font-size: 12px;
  color: var(--muted-foreground);
  border-left: 2px solid color-mix(in oklab, var(--accent) 40%, transparent);
  padding-left: 12px;
  margin-top: 16px;
}
.why-now b { color: oklch(0.22 0.03 60 / 0.7); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }

/* ---------- Cluster card ---------- */
.cluster-card {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 8px;
  padding: 24px;
  transition: box-shadow 0.2s ease;
}
.cluster-card:hover { box-shadow: var(--shadow-lg); }
.cluster-card .cluster-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 16px; }
.cluster-card .cluster-head svg { width: 24px; height: 24px; color: var(--accent); }
.cluster-card .cluster-num { font-size: 10px; text-transform: uppercase; letter-spacing: 0.2em; color: var(--muted-foreground); }
.cluster-card h3 { font-size: 1.25rem; margin-bottom: 4px; }
.cluster-card .cluster-tag { font-size: 14px; font-style: italic; color: var(--accent); margin-bottom: 12px; }
.cluster-card .cluster-body { font-size: 14px; color: oklch(0.22 0.03 60 / 0.8); margin-bottom: 16px; }

/* ---------- Lifecycle strip ---------- */
.lifecycle-cell {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
}
.lifecycle-cell .lc-num {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.25rem;
  color: var(--accent);
  margin-bottom: 4px;
}
.lifecycle-cell p { font-size: 14px; font-weight: 500; margin-bottom: 4px; }
.lifecycle-cell .lc-stage { font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-foreground); }

/* ---------- Philosophy page rows ---------- */
.phil-row { display: grid; grid-template-columns: 1fr; gap: 24px; border-left: 2px solid var(--accent); padding-left: 24px; }
@media (min-width: 768px) {
  .phil-row { grid-template-columns: 120px 1fr; border-left: 0; padding-left: 0; }
}
.phil-num {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 4rem;
  color: var(--accent);
  line-height: 1;
}
@media (min-width: 768px) { .phil-num { text-align: right; } }
.phil-row h2 { font-size: 2rem; margin-bottom: 16px; }
.phil-row .phil-body { font-size: 1.125rem; line-height: 1.7; color: oklch(0.22 0.03 60 / 0.85); margin-bottom: 16px; }
.phil-row .phil-tail { font-style: italic; color: oklch(0.22 0.03 60 / 0.7); line-height: 1.6; }

/* ---------- Phase cards (services) ---------- */
.phase-card { background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 28px; }
.phase-card .phase-num {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: 12px;
  line-height: 1;
}
.phase-card .phase-duration {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted-foreground);
  margin-bottom: 8px;
}
.phase-card h3 { font-size: 1.25rem; margin-bottom: 12px; }
.phase-card p { font-size: 14px; color: oklch(0.22 0.03 60 / 0.8); }

/* ---------- Section heading flex (icon + eyebrow) ---------- */
.eyebrow-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.eyebrow-row svg { width: 20px; height: 20px; color: var(--accent); }
.eyebrow-row .eyebrow { margin-bottom: 0; }

/* ---------- Misc utilities ---------- */
.text-muted { color: var(--muted-foreground); }
.text-accent { color: var(--accent); }
.text-center { text-align: center; }
.italic { font-style: italic; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 8px; }
.mt-3 { margin-top: 12px; }
.mt-4 { margin-top: 16px; }
.mt-6 { margin-top: 24px; }
.mt-8 { margin-top: 32px; }
.mt-10 { margin-top: 40px; }
.mt-12 { margin-top: 48px; }
.mt-16 { margin-top: 64px; }
.mt-20 { margin-top: 80px; }
.mb-2 { margin-bottom: 8px; }
.mb-3 { margin-bottom: 12px; }
.mb-4 { margin-bottom: 16px; }
.mb-6 { margin-bottom: 24px; }
.mb-8 { margin-bottom: 32px; }
.mb-10 { margin-bottom: 40px; }
.mb-12 { margin-bottom: 48px; }

.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }

.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.gap-3 { gap: 12px; }
.gap-4 { gap: 16px; }

.lead-body p { color: oklch(0.22 0.03 60 / 0.85); line-height: 1.7; }
.lead-body p + p { margin-top: 20px; }
.lead-body.lg p { font-size: 1.125rem; }

/* ---------- 404 ---------- */
.notfound {
  display: flex;
  min-height: 70vh;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  text-align: center;
}
.notfound h1 { font-size: 4.5rem; margin-bottom: 16px; font-family: "Inter", sans-serif; font-weight: 700; }
.notfound h2 { font-size: 1.25rem; font-family: "Inter", sans-serif; font-weight: 600; margin-bottom: 8px; }
.notfound p { font-size: 14px; color: var(--muted-foreground); margin-bottom: 24px; }

/* ---------- Contact page accents ---------- */
.contact-callout {
  border: 1px solid color-mix(in oklab, var(--accent) 30%, transparent);
  background: color-mix(in oklab, var(--accent) 5%, transparent);
  border-radius: 12px;
  padding: 24px;
  max-width: 28rem;
}
.contact-card {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 12px;
  padding: 24px;
}
@media (min-width: 768px) { .contact-card { padding: 32px; } }
.contact-card.scheduler { padding: 8px; overflow: hidden; }
.contact-card.scheduler .scheduler-head { padding: 16px 16px 0; }
.contact-list { display: grid; gap: 24px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .contact-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .contact-list { grid-template-columns: repeat(4, 1fr); } }
.contact-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; }
.contact-list li svg { width: 16px; height: 16px; margin-top: 4px; color: var(--accent); flex-shrink: 0; }
.contact-list .ct-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted-foreground); margin-bottom: 2px; }
.contact-list a:hover { color: var(--primary); }

#my-cal-inline { width: 100%; height: 720px; overflow: auto; }

/* ---------- Insights / posts ---------- */
.post-card {
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 8px;
  padding: 24px;
  transition: box-shadow 0.2s ease;
  cursor: pointer;
}
.post-card:hover { box-shadow: var(--shadow-md); }
.post-card .post-tag {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 8px;
}
.post-card h2 { font-size: 1.5rem; margin-bottom: 8px; }
.post-card p { color: oklch(0.22 0.03 60 / 0.75); }

/* ============================================================
   Mobile optimizations (≤ 768px)
   - Consistent left/right gutter (no edge-to-edge content)
   - Tighter vertical spacing
   - Scaled-down headings and cards
   - Prevent horizontal overflow
   ============================================================ */
@media (max-width: 768px) {
  /* Global gutter — every page section gets the same comfortable margin */
  .container,
  .container-narrow,
  .container-prose,
  .container-md,
  .container-lg {
    padding-left: 28px;
    padding-right: 28px;
  }

  /* Hero — tighter padding so the headline doesn't dominate */
  .hero-inner { padding: 56px 28px; }
  .hero-logo-chip { padding: 10px 14px; margin-bottom: 24px; }
  .hero-logo-chip img { height: 44px; }
  .hero h1 { font-size: clamp(1.875rem, 7vw, 2.5rem); line-height: 1.15; }
  .hero-lead { margin-top: 18px; font-size: 0.95rem; }
  .hero-actions { margin-top: 24px; gap: 10px; }
  .hero-actions .btn { padding: 10px 18px; font-size: 13px; }

  /* Section vertical rhythm — pull everything in a bit */
  .section { padding: 44px 0; }
  .section-lg { padding: 56px 0; }

  /* Page + section titles — keep them assertive but not screen-filling */
  h1.page-title, .h1 { font-size: clamp(1.875rem, 6vw, 2.25rem); line-height: 1.15; }
  h2.section-title, .h2 { font-size: clamp(1.5rem, 5vw, 1.875rem); margin-bottom: 12px; }

  /* Card padding — tighter on phones */
  .card { padding: 22px; }
  .card-sm { padding: 18px; }
  .card-large-num { font-size: 2.5rem; margin-bottom: 10px; }
  .phase-card { padding: 22px; }
  .phase-card .phase-num { font-size: 2.5rem; }
  .tier-card { padding: 24px; }
  .cluster-card { padding: 20px; }
  .service-card { /* keep grid behaviour */ }

  /* Home page leader/org tab toggle — let buttons wrap if needed */
  .tabs { display: flex; flex-wrap: wrap; width: 100%; }
  .tab-btn { flex: 1 1 auto; padding: 10px 14px; font-size: 13px; justify-content: center; }
  .tab-card { padding: 24px; }

  /* Sticky header — slimmer + smaller CTA chip */
  .site-header { padding: 0 18px; }

  /* Footer — already collapses to one column; just tighten padding */
  .footer-grid { padding: 32px 28px; gap: 28px; }
  .footer-bottom { padding: 14px 28px; }

  /* Buttons — long labels were forcing horizontal scroll on small phones */
  .btn { padding: 10px 18px; font-size: 13px; }
  .btn-sm { padding: 8px 12px; }

  /* Philosophy page — Roman numerals were oversized on phones */
  .phil-num { font-size: 3rem; }
  .phil-row h2 { font-size: 1.625rem; margin-bottom: 12px; }
  .phil-row .phil-body { font-size: 1rem; line-height: 1.65; }

  /* Lifecycle strip on legal page — give cells some breathing room */
  .lifecycle-cell { padding: 14px 10px; }

  /* Pull-quotes — reduce padding so the bar isn't dominant */
  .pull-quote { padding-left: 18px; font-size: 1rem; }
  blockquote.deep-quote { padding-left: 18px; font-size: 1rem; }

  /* Contact list — keep icons aligned with copy at smaller sizes */
  .contact-card { padding: 22px; }
  .contact-card.scheduler { padding: 6px; }
  .contact-card.scheduler .scheduler-head { padding: 12px 14px 0; }
  #my-cal-inline { height: 620px; }

  /* Stop any stray oversized embeds / images from forcing horizontal scroll */
  img, svg, iframe { max-width: 100%; }
  body { overflow-x: hidden; }
}

/* Extra-small phones (≤ 380px) — pull gutters in slightly less than padding */
@media (max-width: 380px) {
  .container,
  .container-narrow,
  .container-prose,
  .container-md,
  .container-lg { padding-left: 18px; padding-right: 18px; }
  .hero-inner { padding: 48px 18px; }
  .site-header { padding: 0 14px; }
  .footer-grid { padding: 28px 18px; }
  .footer-bottom { padding: 14px 18px; }
}
