/* ── Tokens ───────────────────────────────────────────────────── */
:root {
  --cream: #FAF3E7;
  --cream-2: #FAF6EE;
  --orange: #D97757;
  --orange-dark: #C76544;
  --orange-deep: #8C4A2B;
  --orange-mid: #A86C4A;
  --ink: #1F1B16;
  --ink-2: #3F3A33;
  --ink-3: #5A544C;
  --ink-4: #6E6760;
  --ink-5: #9C958C;
  --hairline: rgba(31, 27, 22, 0.08);
  --serif: "Source Serif 4", "Newsreader", Georgia, serif;
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

/* ── Reset ────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  overflow-x: hidden;
}
h1, h2, h3, p, dl, dd, ol, ul { margin: 0; padding: 0; }
ol, ul { list-style: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ── A11y ─────────────────────────────────────────────────────── */
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 4px; }
.skip-link {
  position: absolute;
  top: -120px;
  left: 16px;
  padding: 12px 18px;
  background: var(--ink);
  color: var(--cream-2);
  border-radius: 8px;
  z-index: 1000;
  transition: top .15s ease;
  font-weight: 500;
  font-size: 14px;
}
.skip-link:focus { top: 16px; }

/* ── Container ────────────────────────────────────────────────── */
.container {
  max-width: 880px;
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) { .container { padding: 0 48px; } }

/* ── Topbar ───────────────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 880px;
  margin: 0 auto;
  padding: 18px 24px;
  background: rgba(250, 243, 231, 0.85);
  backdrop-filter: saturate(180%) blur(10px);
  -webkit-backdrop-filter: saturate(180%) blur(10px);
}
@media (min-width: 768px) { .topbar { padding: 24px 48px; } }
.brand {
  font-family: var(--serif);
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--ink);
  font-weight: 500;
}
.topbar-cta {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  opacity: .78;
  transition: opacity .15s;
}
.topbar-cta:hover { opacity: 1; }

/* ── Buttons ──────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 12px;
  border: none;
  font-family: inherit;
  font-weight: 500;
  font-size: 16px;
  letter-spacing: -0.01em;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--orange);
  color: var(--cream-2);
  box-shadow: 0 1px 0 rgba(0,0,0,0.04), 0 8px 24px -12px rgba(217, 119, 87, 0.55);
}
.btn-primary:hover { background: var(--orange-dark); }
.btn-secondary {
  background: transparent;
  color: var(--orange-dark);
  border: 1px solid rgba(217, 119, 87, 0.45);
}
.btn-secondary:hover { background: rgba(217, 119, 87, 0.06); }

/* ── Headings ─────────────────────────────────────────────────── */
h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--ink);
  text-wrap: balance;
}
h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}
.section-dark h2 { color: var(--cream-2); }
h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(20px, 2.5vw, 24px);
  letter-spacing: -0.015em;
  color: var(--ink);
  line-height: 1.2;
}

/* ── Section helpers ──────────────────────────────────────────── */
.section { padding: 72px 0; border-top: 1px solid var(--hairline); }
@media (min-width: 768px) { .section { padding: 96px 0; } }
.section-soft { background: rgba(217, 119, 87, 0.04); border-top: none; }
.section-dark { background: var(--ink); color: var(--cream-2); border-top: none; }
.section-head { margin-bottom: 40px; max-width: 720px; }
.section-lead {
  font-size: 17px;
  color: var(--ink-3);
  margin-top: 12px;
  max-width: 560px;
  line-height: 1.55;
}
.lead-light {
  font-size: 17px;
  color: rgba(250, 246, 238, 0.7);
  margin-top: 12px;
  margin-bottom: 40px;
  max-width: 540px;
}

/* Numbered section eyebrow — "01 — Outcomes" pattern from the design system */
.eyebrow-num {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--orange-mid);
  margin-bottom: 18px;
}
.section-dark .eyebrow-num { color: var(--orange); }

/* "Rule of thumb" pull-quote box */
.callout {
  margin-top: 56px;
  padding: 28px 32px;
  background: rgba(217, 119, 87, 0.06);
  border-radius: 16px;
  border: 1px solid rgba(217, 119, 87, 0.18);
  max-width: 760px;
}
.callout-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--orange-mid);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.callout-body {
  font-family: var(--serif);
  font-size: 21px;
  color: var(--ink);
  line-height: 1.45;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
@media (max-width: 600px) { .callout { padding: 24px; } .callout-body { font-size: 19px; } }

/* ── Hero ─────────────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 48px 0 80px;
  overflow: hidden;
}
@media (min-width: 768px) { .hero { padding: 56px 0 120px; } }
.hero .container { position: relative; z-index: 1; }
.hero-blob, .hero-wispy { position: absolute; pointer-events: none; z-index: 0; }
.hero-blob { right: -120px; bottom: -180px; width: 620px; height: 540px; }
.hero-wispy { right: -40px; top: 40px; width: 420px; height: 720px; }
@media (max-width: 768px) {
  .hero-blob { width: 360px; height: 320px; right: -80px; bottom: -100px; opacity: .85; }
  .hero-wispy { width: 240px; height: 540px; right: -20px; top: 200px; opacity: .85; }
}
@media (max-width: 480px) {
  .hero-wispy { display: none; }
}
.kicker {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(217, 119, 87, 0.10);
  color: var(--orange-deep);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  margin-bottom: 24px;
}
.hero .lead {
  font-size: clamp(18px, 1.8vw, 20px);
  color: var(--ink-3);
  margin-top: 24px;
  max-width: 600px;
  line-height: 1.55;
  text-wrap: pretty;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.hero-ctas .btn { padding: 16px 26px; font-size: 17px; }
@media (max-width: 480px) {
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { width: 100%; }
}

/* ── Outcomes ─────────────────────────────────────────────────── */
.outcomes {
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.outcome h3 { margin-bottom: 8px; }
.outcome p {
  color: var(--ink-3);
  font-size: 17px;
  line-height: 1.55;
  max-width: 640px;
}

/* ── Steps ────────────────────────────────────────────────────── */
.steps {
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.steps li {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 24px;
  align-items: flex-start;
}
.step-n {
  font-family: var(--serif);
  font-size: 32px;
  color: var(--orange);
  line-height: 1;
  font-weight: 400;
}
.steps h3 { margin-bottom: 6px; }
.steps p {
  font-size: 16px;
  color: var(--ink-3);
  line-height: 1.55;
  max-width: 640px;
}
@media (max-width: 600px) {
  .steps li { grid-template-columns: 1fr; gap: 8px; }
  .step-n { font-size: 24px; }
}

/* ── Case studies ─────────────────────────────────────────────── */
.cases { display: flex; flex-direction: column; gap: 20px; }
.case {
  padding: 32px;
  background: var(--cream-2);
  border-radius: 16px;
  border: 1px solid var(--hairline);
}
@media (max-width: 600px) { .case { padding: 24px; } }
.case-tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange-mid);
  margin-bottom: 12px;
}
.case h3 { margin-bottom: 20px; }
.case-detail {
  display: grid;
  grid-template-columns: 120px 1fr;
  row-gap: 12px;
  column-gap: 24px;
}
.case-detail dt {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-4);
  letter-spacing: -0.005em;
}
.case-detail dd {
  font-size: 16px;
  color: var(--ink-2);
  line-height: 1.55;
}
@media (max-width: 600px) {
  .case-detail { grid-template-columns: 1fr; row-gap: 4px; }
  .case-detail dt { margin-top: 12px; }
  .case-detail dt:first-of-type { margin-top: 0; }
}

/* ── Bio ──────────────────────────────────────────────────────── */
.bio {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 36px;
  align-items: flex-start;
  margin-top: 16px;
}
.bio-photo {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(217, 119, 87, 0.10);
  display: flex;
  align-items: center;
  justify-content: center;
}
.bio-photo img { width: 100%; height: 100%; object-fit: cover; }
.bio-photo-placeholder {
  font-family: var(--serif);
  font-size: 56px;
  color: var(--orange-dark);
  letter-spacing: -0.02em;
}
.bio-text p {
  font-size: 17px;
  color: var(--ink-2);
  line-height: 1.65;
  margin-bottom: 16px;
  max-width: 640px;
}
.bio-text p:last-child { margin-bottom: 0; }
.bio-text a {
  color: var(--orange-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.placeholder-note {
  background: rgba(217, 119, 87, 0.10);
  padding: 1px 4px;
  border-radius: 3px;
  font-style: italic;
  color: var(--orange-deep);
}
@media (max-width: 600px) {
  .bio { grid-template-columns: 1fr; gap: 24px; }
  .bio-photo { width: 120px; height: 120px; }
  .bio-photo-placeholder { font-size: 44px; }
}

/* ── Contact form ─────────────────────────────────────────────── */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 560px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field label {
  font-size: 13px;
  font-weight: 500;
  color: rgba(250, 246, 238, 0.7);
}
.field input, .field textarea {
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid rgba(250, 246, 238, 0.18);
  background: rgba(250, 246, 238, 0.06);
  font-family: inherit;
  font-size: 16px;
  color: var(--cream-2);
  outline: none;
  width: 100%;
  min-width: 0;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(250, 246, 238, 0.4); }
.field input:focus, .field textarea:focus {
  border-color: var(--orange);
  background: rgba(250, 246, 238, 0.10);
  box-shadow: 0 0 0 3px rgba(217, 119, 87, 0.15);
}
.field input:focus-visible, .field textarea:focus-visible { outline: none; }
.field textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.contact-form .btn { align-self: flex-start; margin-top: 4px; }
.contact-or {
  margin-top: 24px;
  font-size: 14px;
  color: rgba(250, 246, 238, 0.6);
}
.contact-or a {
  color: var(--cream-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ── Footer ───────────────────────────────────────────────────── */
footer {
  padding: 32px 0;
  border-top: 1px solid var(--hairline);
  font-size: 13px;
  color: var(--ink-5);
}
footer p { margin: 0; }
footer a { color: var(--ink-5); text-decoration: underline; text-underline-offset: 3px; }
footer a:hover { color: var(--ink-3); }
