/* ---------- Self-hosted variable fonts (no render-blocking external request) ---------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/Inter.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter Tight';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('fonts/InterTight.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ============================================================
   Chaitanya Joshi — Executive Advisory
   Semantic token design system · light + dark themes
   ============================================================ */

:root {
  color-scheme: light;
  --bg: #fbfbfa;            /* page background */
  --surface: #ffffff;       /* raised sections & cards */
  --text: #0b0b0c;          /* primary text */
  --text-2: #1a1a1c;        /* prose text */
  --muted: #6d6d6a;         /* secondary text */
  --faint: #a3a3a0;         /* tertiary text */
  --line: #e7e7e4;          /* hairlines & borders */
  --accent: #9a7b4f;        /* muted bronze */
  --accent-hover: #7d6340;
  --nav-bg: rgba(251, 251, 250, 0.82);
  --shadow: 0 18px 40px -24px rgba(11, 11, 12, 0.18);
  /* constants — dark in both themes */
  --ink: #0b0b0c;
  --ink-line: #26262a;
  --font-display: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max-w: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0c0c0d;
  --surface: #131315;
  --text: #f4f3f1;
  --text-2: #d9d8d5;
  --muted: #9c9b97;
  --faint: #6e6d6a;
  --line: #232326;
  --accent: #b8935f;        /* brighter bronze for dark */
  --accent-hover: #cda876;
  --nav-bg: rgba(12, 12, 13, 0.82);
  --shadow: 0 18px 40px -24px rgba(0, 0, 0, 0.6);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
::selection { background: var(--accent); color: #fff; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.08;
}
.display-xl {
  font-size: clamp(3rem, 8.5vw, 6.25rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
}
.display-xl .accent-dot { color: var(--accent); }
.display-lg { font-size: clamp(2.2rem, 5vw, 3.75rem); }
.display-md { font-size: clamp(1.7rem, 3.2vw, 2.5rem); }
.lede {
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  line-height: 1.55;
  color: var(--muted);
  font-weight: 400;
}
.eyebrow {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1.25rem;
  display: block;
}

/* ---------- Layout ---------- */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }
.section { padding: clamp(4.5rem, 9vw, 8rem) 0; }
.section--tight { padding: clamp(3rem, 6vw, 5rem) 0; }
.section-head { max-width: 720px; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.section-head p { margin-top: 1.25rem; }
.rule { border: none; border-top: 1px solid var(--line); }

/* ---------- Navbar ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background-color 0.35s var(--ease);
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  height: 72px;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  flex-wrap: nowrap;
}
.nav-logo {
  font-family: var(--font-display);
  font-weight: 700; font-size: 1.05rem; letter-spacing: -0.02em;
  white-space: nowrap;
}
.nav-logo span { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 1.6rem; list-style: none; }
.nav-links li { white-space: nowrap; }
.nav-links a {
  font-size: 0.9rem; font-weight: 500; color: var(--muted); white-space: nowrap;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.is-active { color: var(--text); }
.nav-cta {
  display: inline-block;
  background: var(--text); color: var(--bg);
  font-size: 0.9rem; font-weight: 600;
  padding: 0.6rem 1.3rem; border-radius: 999px;
  transition: background 0.25s var(--ease), color 0.25s var(--ease);
  white-space: nowrap;
}
.nav-cta:hover { background: var(--accent-hover); color: var(--bg); }
.nav-right { display: flex; align-items: center; gap: 0.9rem; }

/* Theme toggle */
.theme-toggle {
  width: 38px; height: 38px; border-radius: 999px;
  border: 1px solid var(--line); background: transparent;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--muted); flex: none;
  transition: color 0.2s, border-color 0.2s, transform 0.3s var(--ease);
}
.theme-toggle:hover { color: var(--text); border-color: var(--faint); }
.theme-toggle:active { transform: scale(0.92); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* Mobile nav */
.nav-toggle {
  display: none; background: none; border: none;
  width: 40px; height: 40px; position: relative; flex: none;
}
.nav-toggle span {
  position: absolute; left: 9px; right: 9px; height: 2px;
  background: var(--text); border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s, top 0.3s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 20px; }
.nav-toggle span:nth-child(3) { top: 26px; }
.nav.menu-open .nav-toggle span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.nav.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav.menu-open .nav-toggle span:nth-child(3) { top: 20px; transform: rotate(-45deg); }

@media (max-width: 1040px) {
  .nav-toggle { display: block; }
  .nav-menu {
    position: fixed; inset: 72px 0 auto 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 1rem clamp(1.25rem, 4vw, 2.5rem) 2rem;
    display: none;
  }
  .nav.menu-open .nav-menu { display: block; }
  .nav-links { flex-direction: column; align-items: flex-start; gap: 1.1rem; }
  .nav-links a { font-size: 1.05rem; }
  .nav-menu .nav-cta { margin-top: 1.4rem; display: inline-block; }
  .nav-right .nav-cta--desktop { display: none; }
}
@media (min-width: 1041px) {
  .nav-menu { display: flex; align-items: center; gap: 1.9rem; }
  .nav-menu .nav-cta--mobile { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-weight: 600; font-size: 1rem;
  padding: 0.95rem 2.1rem; border-radius: 999px;
  border: 1px solid transparent;
  transition: all 0.25s var(--ease);
  text-align: center;
}
.btn--primary { background: var(--text); color: var(--bg); }
.btn--primary:hover { background: var(--accent-hover); color: var(--bg); transform: translateY(-1px); }
.btn--ghost { border-color: var(--line); color: var(--text); background: transparent; }
.btn--ghost:hover { border-color: var(--text); }
/* buttons on permanent-dark bands */
.btn--light { background: #ffffff; color: var(--ink); }
.btn--light:hover { background: #e9e9e6; transform: translateY(-1px); }
.btn--outline-light { border-color: rgba(255,255,255,0.35); color: #ffffff; }
.btn--outline-light:hover { border-color: #ffffff; }
.btn-row { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- Hero ---------- */
.hero { padding: clamp(9rem, 18vh, 13rem) 0 clamp(4rem, 8vw, 7rem); position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; pointer-events: none;
  top: -30%; right: -10%; width: 70%; height: 90%;
  background: radial-gradient(ellipse at center, rgba(154,123,79,0.0), rgba(154,123,79,0.0));
  transition: background 0.5s var(--ease);
}
[data-theme="dark"] .hero::before {
  background: radial-gradient(ellipse at center, rgba(184,147,95,0.10), rgba(184,147,95,0) 65%);
}
.hero .container { position: relative; }
.hero .lede { max-width: 640px; margin: 2rem 0 2.75rem; }
.hero-sub {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  font-weight: 550; letter-spacing: -0.015em;
  color: var(--muted); margin-top: 1.4rem;
}
.hero-sub em { font-style: normal; color: var(--text); }
.chip {
  display: inline-flex; align-items: center; gap: 0.55rem;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 0.42rem 1rem; margin-bottom: 2rem;
  font-size: 0.82rem; font-weight: 500; color: var(--muted);
  background: var(--surface);
}
.chip::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
}

/* ---------- Who I Help strip ---------- */
.audience-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  transition: background-color 0.35s var(--ease);
}
.audience-grid { display: grid; grid-template-columns: repeat(6, 1fr); }
.audience-grid > div {
  padding: 2rem 1rem;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600; font-size: 0.98rem; letter-spacing: -0.01em;
  color: var(--muted);
  border-left: 1px solid var(--line);
  transition: color 0.25s;
}
.audience-grid > div:first-child { border-left: none; }
.audience-grid > div:hover { color: var(--text); }
@media (max-width: 860px) {
  .audience-grid { grid-template-columns: repeat(3, 1fr); }
  .audience-grid > div:nth-child(4) { border-left: none; }
  .audience-grid > div:nth-child(n+4) { border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .audience-grid { grid-template-columns: repeat(2, 1fr); }
  .audience-grid > div { border-left: none; padding: 1.4rem 0.75rem; }
  .audience-grid > div:nth-child(even) { border-left: 1px solid var(--line); }
  .audience-grid > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* ---------- Problems list ---------- */
.problem-list { list-style: none; border-top: 1px solid var(--line); max-width: 860px; }
.problem-list li {
  display: flex; align-items: baseline; gap: 1.75rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--line);
}
.problem-list .num {
  font-family: var(--font-display);
  font-size: 0.85rem; font-weight: 600; color: var(--accent);
  min-width: 2.2rem;
}
.problem-list h3 { font-size: 1.25rem; margin-bottom: 0.3rem; }
.problem-list p { color: var(--muted); font-size: 0.98rem; max-width: 560px; }

/* ---------- Engagement cards ---------- */
.engagements { background: var(--surface); border-top: 1px solid var(--line); transition: background-color 0.35s var(--ease); }
.engagement-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
@media (max-width: 800px) { .engagement-grid { grid-template-columns: 1fr; } }
.engagement-card {
  border: 1px solid var(--line);
  background: var(--bg);
  border-radius: 4px;
  padding: 2.25rem 2rem;
  display: flex; flex-direction: column;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background-color 0.35s var(--ease);
}
.engagement-card:hover {
  border-color: var(--faint);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.engagement-card .tier {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--faint); margin-bottom: 1.1rem;
}
.engagement-card h3 { font-size: 1.45rem; margin-bottom: 0.6rem; }
.engagement-card .invest {
  font-family: var(--font-display);
  font-weight: 600; font-size: 0.95rem; color: var(--accent);
  margin-bottom: 1.1rem;
}
.engagement-card .invest span { color: var(--faint); font-weight: 500; }
.engagement-card > p { color: var(--muted); font-size: 0.98rem; margin-bottom: 1.25rem; }
.engagement-card ul { list-style: none; margin-bottom: 1.75rem; }
.engagement-card ul li {
  font-size: 0.94rem; color: var(--muted);
  padding: 0.42rem 0 0.42rem 1.4rem; position: relative;
}
.engagement-card ul li::before {
  content: ""; position: absolute; left: 0; top: 0.98em;
  width: 14px; height: 1px; background: var(--accent);
}
.engagement-card .card-cta {
  margin-top: auto;
  font-weight: 600; font-size: 0.95rem;
  color: var(--text);
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.engagement-card .card-cta::after { content: "→"; transition: transform 0.25s var(--ease); }
.engagement-card:hover .card-cta::after { transform: translateX(4px); color: var(--accent); }

/* Flagship card — permanently dark in both themes */
.engagement-card--flagship {
  background: var(--ink); border-color: var(--ink-line);
  grid-column: 1 / -1;
}
.engagement-card--flagship:hover { border-color: #3a3a40; }
.engagement-card--flagship h3 { color: #ffffff; font-size: 1.7rem; }
.engagement-card--flagship .tier { color: var(--accent); }
.engagement-card--flagship .invest { color: var(--accent); }
.engagement-card--flagship > p { color: rgba(255,255,255,0.65); max-width: 640px; }
.engagement-card--flagship ul { columns: 2; column-gap: 3rem; max-width: 720px; }
@media (max-width: 640px) { .engagement-card--flagship ul { columns: 1; } }
.engagement-card--flagship ul li { color: rgba(255,255,255,0.7); break-inside: avoid; }
.engagement-card--flagship .card-cta { color: #ffffff; }

/* ---------- Dark CTA band — permanently dark ---------- */
.cta-band {
  background: var(--ink); color: #ffffff;
  border-top: 1px solid var(--ink-line);
  border-bottom: 1px solid var(--ink-line);
}
.cta-band .display-lg { color: #ffffff; max-width: 760px; }
.cta-band p { color: rgba(255,255,255,0.6); max-width: 560px; margin: 1.5rem 0 2.5rem; }

/* ---------- Stage cards ---------- */
.stage-list { border-top: 1px solid var(--line); }
.stage-row {
  display: grid;
  grid-template-columns: 200px 1fr 1fr;
  gap: 2.5rem;
  padding: 2.75rem 0;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 860px) { .stage-row { grid-template-columns: 1fr; gap: 1rem; padding: 2.25rem 0; } }
.stage-row .stage-name {
  font-family: var(--font-display);
  font-weight: 650; font-size: 1.35rem; letter-spacing: -0.02em;
}
.stage-row .stage-name span { display: block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 0.5rem; }
.stage-row .stage-focus h4 { font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); margin-bottom: 0.75rem; font-weight: 600; }
.stage-row .stage-focus p { color: var(--muted); font-size: 0.98rem; }
.stage-row ul { list-style: none; }
.stage-row ul li {
  font-size: 0.95rem; color: var(--muted);
  padding: 0.35rem 0 0.35rem 1.4rem; position: relative;
}
.stage-row ul li::before {
  content: ""; position: absolute; left: 0; top: 0.9em;
  width: 14px; height: 1px; background: var(--accent);
}

/* ---------- About ---------- */
.about-grid {
  display: grid; grid-template-columns: 1fr 1.4fr; gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
@media (max-width: 860px) { .about-grid { grid-template-columns: 1fr; } }
.about-facts { list-style: none; border-top: 1px solid var(--line); position: sticky; top: 100px; }
.about-facts li { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.about-facts .label { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); font-weight: 600; display: block; margin-bottom: 0.2rem; }
.about-facts .value { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.prose p { margin-bottom: 1.4rem; color: var(--text-2); }
.prose p.muted { color: var(--muted); }
.prose h3 { font-size: 1.3rem; margin: 2.4rem 0 1rem; }
.principles { list-style: none; margin-top: 1rem; counter-reset: principle; border-top: 1px solid var(--line); }
.principles li { padding: 1.1rem 0 1.1rem 2.4rem; border-bottom: 1px solid var(--line); position: relative; }
.principles li::before {
  content: counter(principle, decimal-leading-zero);
  counter-increment: principle;
  position: absolute; left: 0; top: 1.2rem;
  font-family: var(--font-display); font-size: 0.8rem; font-weight: 600; color: var(--accent);
}
.principles strong { font-family: var(--font-display); font-weight: 600; display: block; margin-bottom: 0.15rem; }
.principles span { color: var(--muted); font-size: 0.95rem; }

/* ---------- Insights ---------- */
.filter-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 3rem; }
.filter-btn {
  border: 1px solid var(--line); background: transparent;
  border-radius: 999px; padding: 0.45rem 1.1rem;
  font-size: 0.85rem; font-weight: 500; color: var(--muted);
  transition: all 0.2s;
}
.filter-btn:hover { border-color: var(--faint); color: var(--text); }
.filter-btn.is-active { background: var(--text); border-color: var(--text); color: var(--bg); }
.insight-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 960px) { .insight-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .insight-grid { grid-template-columns: 1fr; } }
.insight-card {
  border: 1px solid var(--line); background: var(--surface);
  border-radius: 4px; padding: 1.9rem 1.7rem;
  display: flex; flex-direction: column; min-height: 240px;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), box-shadow 0.3s var(--ease), background-color 0.35s var(--ease);
}
.insight-card:hover {
  border-color: var(--faint); transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.insight-card .cat {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 1rem;
}
.insight-card h3 { font-size: 1.2rem; line-height: 1.25; margin-bottom: 0.7rem; }
.insight-card p { font-size: 0.93rem; color: var(--muted); margin-bottom: 1.4rem; }
.insight-card .meta { margin-top: auto; font-size: 0.82rem; color: var(--faint); }
.insight-card.is-hidden { display: none; }

/* ---------- Topic cards (used on About) ---------- */
.topic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 960px) { .topic-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .topic-grid { grid-template-columns: 1fr; } }
.topic-card {
  border: 1px solid var(--line); background: var(--surface);
  border-radius: 4px; padding: 2rem 1.8rem;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), background-color 0.35s var(--ease);
}
.topic-card:hover { border-color: var(--faint); transform: translateY(-3px); }
.topic-card .num { font-family: var(--font-display); font-size: 0.8rem; font-weight: 600; color: var(--accent); display: block; margin-bottom: 1.4rem; }
.topic-card h3 { font-size: 1.25rem; margin-bottom: 0.6rem; }
.topic-card p { font-size: 0.93rem; color: var(--muted); }

/* ---------- Forms ---------- */
.form-wrap { max-width: 760px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 0.45rem; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.85rem; font-weight: 600; letter-spacing: 0.02em; }
.field label span { color: var(--faint); font-weight: 400; }
.field input, .field select, .field textarea {
  font: inherit; font-size: 0.98rem;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line); border-radius: 4px;
  background: var(--surface); color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.35s var(--ease);
  width: 100%;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(154, 123, 79, 0.15);
}
.form-note { font-size: 0.88rem; color: var(--faint); margin-top: 1.2rem; }
.form-status { margin-top: 1.2rem; font-size: 0.95rem; font-weight: 500; color: var(--accent); display: none; }
.form-status.is-visible { display: block; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5rem); }
@media (max-width: 800px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-item { padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.contact-item .label { font-size: 0.75rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--faint); font-weight: 600; display: block; margin-bottom: 0.35rem; }
.contact-item a { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; transition: color 0.2s; }
.contact-item a:hover { color: var(--accent); }

/* ---------- Footer — permanently dark ---------- */
.footer {
  background: var(--ink); color: rgba(255,255,255,0.6);
  padding: 4rem 0 2.5rem;
  border-top: 1px solid var(--ink-line);
}
.footer a { transition: color 0.2s; }
.footer a:hover { color: #ffffff; }
.footer-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 2.5rem; flex-wrap: wrap; margin-bottom: 3.5rem;
}
.footer-brand .nav-logo { color: #ffffff; font-size: 1.15rem; }
.footer-brand p { font-size: 0.9rem; margin-top: 0.6rem; max-width: 300px; }
.footer-cols { display: flex; gap: clamp(2.5rem, 6vw, 5.5rem); flex-wrap: wrap; }
.footer-cols h4 {
  color: #ffffff; font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 1rem;
}
.footer-cols ul { list-style: none; }
.footer-cols li { margin-bottom: 0.55rem; font-size: 0.92rem; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 2rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: 0.85rem; color: rgba(255,255,255,0.4);
}

/* ---------- Page header (inner pages) ---------- */
.page-head { padding: clamp(8.5rem, 16vh, 11.5rem) 0 clamp(3rem, 6vw, 5rem); }
.page-head .lede { max-width: 640px; margin-top: 1.75rem; }

/* ---------- Reveal animations ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: 0.08s; }
.reveal-d2 { transition-delay: 0.16s; }
.reveal-d3 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { animation: none !important; transition-duration: 0.01ms !important; }
}

/* ---------- Utility ---------- */
.mt-1 { margin-top: 1rem; } .mt-2 { margin-top: 2rem; } .mt-3 { margin-top: 3rem; }
.center { text-align: center; }
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200;
  background: var(--ink); color: #ffffff; padding: 0.6rem 1rem;
}
.skip-link:focus { left: 0; }

/* ---------- Receipts timeline ---------- */
.receipts { list-style: none; border-top: 1px solid var(--line); }
.receipts li { display: grid; grid-template-columns: 110px 1fr; gap: 1.5rem; padding: 1.3rem 0; border-bottom: 1px solid var(--line); }
@media (max-width: 640px) { .receipts li { grid-template-columns: 1fr; gap: 0.25rem; } }
.receipts .yr { font-family: var(--font-display); font-weight: 600; font-size: 0.9rem; color: var(--accent); }
.receipts h4 { font-size: 1.05rem; margin-bottom: 0.2rem; }
.receipts p { font-size: 0.92rem; color: var(--muted); }

/* ---------- Cause areas ---------- */
.cause-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
@media (max-width: 960px) { .cause-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .cause-grid { grid-template-columns: 1fr; } }
.cause-card {
  border: 1px solid var(--line); background: var(--surface);
  border-radius: 4px; padding: 2rem 1.8rem;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), background-color 0.35s var(--ease);
}
.cause-card:hover { border-color: var(--faint); transform: translateY(-3px); }
.cause-card .icon { color: var(--accent); margin-bottom: 1.2rem; display: block; }
.cause-card .icon svg { width: 24px; height: 24px; }
.cause-card h3 { font-size: 1.18rem; margin-bottom: 0.55rem; }
.cause-card p { font-size: 0.93rem; color: var(--muted); }

/* ---------- Pro bono terms ---------- */
.terms { list-style: none; border-top: 1px solid var(--line); max-width: 780px; }
.terms li { display: grid; grid-template-columns: 2.4rem 1fr; gap: 1rem; padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.terms .n { font-family: var(--font-display); font-size: 0.82rem; font-weight: 600; color: var(--accent); }
.terms h4 { font-size: 1.05rem; margin-bottom: 0.2rem; }
.terms p { font-size: 0.94rem; color: var(--muted); }

/* Home teaser band */
.service-teaser { background: var(--surface); border-top: 1px solid var(--line); }
.service-teaser .inner { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (max-width: 860px) { .service-teaser .inner { grid-template-columns: 1fr; } }
.service-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.75rem; }
.service-tags span {
  border: 1px solid var(--line); border-radius: 999px;
  padding: 0.4rem 0.95rem; font-size: 0.85rem; color: var(--muted);
}

/* ---------- Interest tags / mission ---------- */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.tag-cloud span {
  border: 1px solid var(--line); border-radius: 999px;
  padding: 0.42rem 1rem; font-size: 0.88rem; color: var(--muted);
  background: var(--surface);
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.tag-cloud span:hover { border-color: var(--accent); color: var(--text); }
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 800px) { .mv-grid { grid-template-columns: 1fr; } }
.mv-card { border: 1px solid var(--ink-line); background: var(--ink); border-radius: 4px; padding: 2.25rem 2rem; }
.mv-card .eyebrow { color: var(--accent); }
.mv-card p { color: rgba(255,255,255,0.72); font-size: 1.02rem; }
.pull {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.4rem, 2.6vw, 1.95rem); letter-spacing: -0.02em;
  line-height: 1.25; color: var(--text);
  border-left: 2px solid var(--accent); padding-left: 1.5rem;
  margin: 2.5rem 0;
}

/* ---------- Proof strip ---------- */
.proof-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 720px) { .proof-grid { grid-template-columns: repeat(2, 1fr); } }
.proof-grid > div { padding: 2.25rem 1.25rem; text-align: center; border-left: 1px solid var(--line); }
.proof-grid > div:first-child { border-left: none; }
@media (max-width: 720px) {
  .proof-grid > div:nth-child(odd) { border-left: none; }
  .proof-grid > div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
.proof-grid .n {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem); letter-spacing: -0.03em;
  line-height: 1; display: block; margin-bottom: 0.5rem;
}
.proof-grid .n em { font-style: normal; color: var(--accent); }
.proof-grid .l { font-size: 0.83rem; color: var(--muted); letter-spacing: 0.01em; }

/* ---------- Article / essay ---------- */
.article-head { padding: clamp(8.5rem, 16vh, 11rem) 0 clamp(2rem, 4vw, 3rem); }
.article-head .display-lg { max-width: 900px; }
.article-meta {
  display: flex; flex-wrap: wrap; gap: 1.25rem; align-items: center;
  margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line);
  font-size: 0.85rem; color: var(--faint);
}
.article-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--faint); }
.article { max-width: 720px; margin: 0 auto; padding-bottom: clamp(3rem, 6vw, 5rem); }
.article > p { font-size: 1.09rem; line-height: 1.75; color: var(--text-2); margin-bottom: 1.5rem; }
.article > p.standfirst { font-size: 1.28rem; line-height: 1.6; color: var(--muted); margin-bottom: 2.25rem; }
.article h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.85rem); margin: 3rem 0 1.1rem;
  padding-top: 0.5rem;
}
.article h3 { font-size: 1.18rem; margin: 2.2rem 0 0.8rem; }
.article ul, .article ol { margin: 0 0 1.5rem 0; padding-left: 0; list-style: none; }
.article ul li, .article ol li {
  font-size: 1.05rem; line-height: 1.7; color: var(--text-2);
  padding: 0.35rem 0 0.35rem 1.6rem; position: relative;
}
.article ul li::before {
  content: ""; position: absolute; left: 0; top: 1.05em;
  width: 16px; height: 1px; background: var(--accent);
}
.article ol { counter-reset: aol; }
.article ol li::before {
  content: counter(aol, decimal-leading-zero); counter-increment: aol;
  position: absolute; left: 0; top: 0.35rem;
  font-family: var(--font-display); font-size: 0.8rem; font-weight: 600; color: var(--accent);
}
.article blockquote {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(1.25rem, 2.2vw, 1.55rem); letter-spacing: -0.02em; line-height: 1.35;
  color: var(--text); border-left: 2px solid var(--accent);
  padding-left: 1.6rem; margin: 2.5rem 0;
}
.article strong { font-weight: 600; color: var(--text); }
.article hr { border: none; border-top: 1px solid var(--line); margin: 3rem 0; }
.article .kicker {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent);
  display: block; margin: 3rem 0 0.8rem;
}
.article-foot {
  max-width: 720px; margin: 0 auto;
  border-top: 1px solid var(--line); padding-top: 2rem;
  display: flex; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
}
.article-foot a { font-weight: 600; font-size: 0.95rem; }
.article-foot a:hover { color: var(--accent); }

/* ============================================================
   MOBILE OPTIMISATION
   ============================================================ */

/* Prevent horizontal overflow.
   Scoped to mobile: overflow-x on <html> breaks position:sticky,
   which .about-facts relies on at desktop widths. */
@media (max-width: 900px) {
  html, body { max-width: 100%; overflow-x: hidden; }
}

/* Tap targets: WCAG 2.5.5 recommends 44x44 minimum */
@media (max-width: 1040px) {
  .nav-links a {
    display: block;
    padding: 0.55rem 0;      /* ~44px total with line-height */
    min-height: 44px;
    line-height: 1.7;
  }
  .theme-toggle { width: 44px; height: 44px; }
  .nav-toggle { width: 44px; height: 44px; }
  .nav-toggle span { left: 11px; right: 11px; }
  .nav-toggle span:nth-child(1) { top: 16px; }
  .nav-toggle span:nth-child(2) { top: 22px; }
  .nav-toggle span:nth-child(3) { top: 28px; }
  .nav.menu-open .nav-toggle span:nth-child(1),
  .nav.menu-open .nav-toggle span:nth-child(3) { top: 22px; }
  .nav-menu { max-height: calc(100vh - 72px); overflow-y: auto; }
  .footer-cols li a { display: inline-block; padding: 0.3rem 0; }
  .filter-btn { min-height: 40px; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }

  /* Tighter vertical rhythm so pages aren't endless scroll on a phone */
  .section { padding: 3.5rem 0; }
  .section--tight { padding: 2.5rem 0; }
  .section-head { margin-bottom: 2rem; }
  .hero { padding: 7rem 0 3.5rem; }
  .page-head { padding: 7rem 0 2rem; }
  .article-head { padding: 7rem 0 1.5rem; }

  /* Headline sizing that doesn't dominate a small screen */
  .display-xl { font-size: 2.85rem; letter-spacing: -0.03em; }
  .display-lg { font-size: 2rem; }
  .display-md { font-size: 1.6rem; }
  .lede { font-size: 1.05rem; }

  /* Full-width buttons read better than side-by-side pills */
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn { width: 100%; padding: 0.95rem 1.5rem; }

  /* Card padding */
  .engagement-card, .cause-card, .topic-card, .insight-card { padding: 1.6rem 1.35rem; }
  .mv-card { padding: 1.8rem 1.5rem; }
  .engagement-card h3 { font-size: 1.3rem; }
  .engagement-card--flagship h3 { font-size: 1.45rem; }

  /* Problem list: stack the number above the text */
  .problem-list li { gap: 0.85rem; }
  .problem-list .num { min-width: 1.8rem; }

  /* Article typography */
  .article > p { font-size: 1.04rem; }
  .article > p.standfirst { font-size: 1.14rem; }
  .article blockquote { padding-left: 1.1rem; margin: 2rem 0; }
  .pull { padding-left: 1.1rem; margin: 2rem 0; }

  /* Sticky sidebar is pointless on mobile */
  .about-facts { position: static; }

  /* Proof numbers */
  .proof-grid > div { padding: 1.5rem 0.75rem; }

  /* Footer */
  .footer { padding: 3rem 0 2rem; }
  .footer-top { margin-bottom: 2.5rem; }
  .article-foot { flex-direction: column; gap: 0.75rem; }
}

/* iOS: 16px minimum prevents auto-zoom on focus */
@media (max-width: 900px) {
  .field input, .field select, .field textarea { font-size: 16px; }
}

/* Cheaper compositing on mobile — avoids jank during scroll reveals */
@media (max-width: 900px) {
  .reveal { transition-duration: 0.45s; }
  .engagement-card:hover, .insight-card:hover,
  .topic-card:hover, .cause-card:hover { transform: none; box-shadow: none; }
}

/* Skip decorative work for users who don't want motion */
@media (prefers-reduced-motion: reduce) {
  .hero::before { display: none; }
}

/* ============================================================
   QUICK MESSAGE WIDGET
   ============================================================ */
.cw-launch {
  position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 200;
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--ink); color: #fff;
  border: 1px solid var(--ink-line); border-radius: 999px;
  padding: 0.8rem 1.3rem; font-family: var(--font-display);
  font-weight: 600; font-size: 0.92rem; letter-spacing: -0.01em;
  box-shadow: 0 10px 30px -12px rgba(0,0,0,0.45);
  transition: transform 0.25s var(--ease), background 0.25s var(--ease);
}
.cw-launch:hover { transform: translateY(-2px); background: #17171a; }
.cw-launch svg { width: 17px; height: 17px; }
.cw-launch .cw-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none;
}
[data-cw-open] .cw-launch { opacity: 0; pointer-events: none; }

.cw-panel {
  position: fixed; right: 1.5rem; bottom: 1.5rem; z-index: 201;
  width: 372px; max-width: calc(100vw - 2rem);
  background: var(--surface); color: var(--text);
  border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.35);
  display: none; flex-direction: column; overflow: hidden;
}
.cw-panel.is-open { display: flex; animation: cwIn 0.28s var(--ease); }
@keyframes cwIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.cw-head {
  background: var(--ink); color: #fff;
  padding: 1.15rem 1.25rem; display: flex; align-items: flex-start; gap: 0.85rem;
}
.cw-avatar {
  width: 38px; height: 38px; border-radius: 50%; flex: none;
  background: #1d1d21; border: 1px solid var(--ink-line);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; color: #fff;
}
.cw-avatar span { color: var(--accent); }
.cw-head-txt { flex: 1; min-width: 0; }
.cw-head-txt strong { font-family: var(--font-display); font-weight: 600; font-size: 0.98rem; display: block; }
.cw-head-txt small { font-size: 0.78rem; color: rgba(255,255,255,0.55); display: flex; align-items: center; gap: 0.4rem; }
.cw-head-txt small::before { content:""; width:6px; height:6px; border-radius:50%; background: var(--accent); }
.cw-close {
  background: none; border: none; color: rgba(255,255,255,0.6);
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem; line-height: 1;
}
.cw-close:hover { color: #fff; background: rgba(255,255,255,0.08); }

.cw-body {
  padding: 1.1rem 1.25rem; display: flex; flex-direction: column; gap: 0.7rem;
  max-height: 340px; overflow-y: auto; background: var(--bg);
}
.cw-msg { max-width: 88%; font-size: 0.93rem; line-height: 1.55; }
.cw-msg.bot {
  align-self: flex-start; background: var(--surface);
  border: 1px solid var(--line); border-radius: 4px 12px 12px 12px;
  padding: 0.7rem 0.9rem; color: var(--text-2);
}
.cw-msg.me {
  align-self: flex-end; background: var(--ink); color: #fff;
  border-radius: 12px 4px 12px 12px; padding: 0.7rem 0.9rem;
}
.cw-typing { align-self: flex-start; display: flex; gap: 4px; padding: 0.6rem 0.2rem; }
.cw-typing i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--faint);
  animation: cwBlink 1.2s infinite;
}
.cw-typing i:nth-child(2) { animation-delay: 0.18s; }
.cw-typing i:nth-child(3) { animation-delay: 0.36s; }
@keyframes cwBlink { 0%,60%,100% { opacity: 0.25; } 30% { opacity: 1; } }

.cw-foot { border-top: 1px solid var(--line); padding: 0.85rem 1rem; background: var(--surface); }
.cw-row { display: flex; gap: 0.55rem; align-items: flex-end; }
.cw-input {
  flex: 1; font: inherit; font-size: 16px; /* 16px: no iOS zoom */
  padding: 0.65rem 0.85rem; border: 1px solid var(--line); border-radius: 8px;
  background: var(--bg); color: var(--text); resize: none;
  max-height: 110px; min-height: 42px; line-height: 1.45;
}
.cw-input:focus { outline: none; border-color: var(--accent); }
.cw-send {
  flex: none; width: 42px; height: 42px; border-radius: 8px; border: none;
  background: var(--text); color: var(--bg);
  display: flex; align-items: center; justify-content: center;
}
.cw-send:hover { background: var(--accent-hover); }
.cw-send:disabled { opacity: 0.4; }
.cw-send svg { width: 17px; height: 17px; }
.cw-alt {
  margin-top: 0.7rem; font-size: 0.8rem; color: var(--faint); text-align: center;
}
.cw-alt a { color: var(--muted); border-bottom: 1px solid var(--line); }
.cw-alt a:hover { color: var(--accent); }

@media (max-width: 560px) {
  .cw-launch { right: 1rem; bottom: 1rem; padding: 0.75rem 1.1rem; font-size: 0.88rem; }
  .cw-panel {
    right: 0; bottom: 0; left: 0; width: 100%; max-width: 100%;
    border-radius: 14px 14px 0 0; border-left: none; border-right: none; border-bottom: none;
  }
  .cw-body { max-height: 45vh; }
}
@media (prefers-reduced-motion: reduce) {
  .cw-panel.is-open { animation: none; }
  .cw-typing i { animation: none; opacity: 0.5; }
}

/* ============================================================
   Privacy page list + cookie notice
   ============================================================ */
.prose .ticks{list-style:none;padding:0;margin:1.2rem 0}
.prose .ticks li{position:relative;padding-left:1.7rem;margin-bottom:.6rem;color:var(--text-2)}
.prose .ticks li::before{
  content:"";position:absolute;left:0;top:.55em;width:.7rem;height:.38rem;
  border-left:2px solid var(--accent);border-bottom:2px solid var(--accent);
  transform:rotate(-45deg);
}
.prose code{
  font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.88em;
  background:var(--surface-2);padding:.12em .42em;border-radius:4px;
}

.cookie-notice{
  position:fixed;left:1rem;right:1rem;bottom:1rem;z-index:120;
  max-width:34rem;margin-left:auto;
  background:var(--surface);border:1px solid var(--border);
  border-radius:14px;padding:1.1rem 1.25rem;
  box-shadow:0 18px 50px rgba(0,0,0,.22);
  display:flex;gap:1rem;align-items:flex-start;flex-wrap:wrap;
  font-size:.88rem;line-height:1.55;color:var(--text-2);
  transform:translateY(130%);transition:transform .45s cubic-bezier(.16,1,.3,1);
}
.cookie-notice.is-in{transform:translateY(0)}
.cookie-notice p{margin:0;flex:1 1 16rem}
.cookie-notice a{color:var(--text);text-decoration:underline;text-underline-offset:2px}
.cookie-notice button{
  flex:none;padding:.55rem 1.1rem;min-height:44px;
  background:var(--text);color:var(--bg);border:0;border-radius:8px;
  font:inherit;font-weight:600;cursor:pointer;
}
.cookie-notice button:hover{opacity:.88}
@media (max-width:520px){
  .cookie-notice{left:.75rem;right:.75rem;bottom:.75rem;padding:1rem}
  .cookie-notice button{width:100%}
}
@media (prefers-reduced-motion:reduce){
  .cookie-notice{transition:none}
}
