:root {
  --teal-deep: #245F55;
  --teal-deep-hover: #1a4a42;
  --teal-sage: #5AA394;
  --ink: #1C1B18;
  --ink-muted: #4a4844;
  --muted: #76736d;
  --cream: #F5F1EA;
  --cream-soft: #FAF8F3;
  --rule: #E6E0D2;
  --rule-soft: #ECE7DB;
  --white: #FFFFFF;

  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;

  --max-w: 1200px;
  --max-w-narrow: 920px;
  --max-w-reading: 720px;

  --radius: 14px;
  --radius-sm: 8px;

  --shadow-nav: 0 1px 0 var(--rule-soft);
  --shadow-card: 0 1px 2px rgba(28, 27, 24, 0.04), 0 8px 24px rgba(28, 27, 24, 0.05);
  --shadow-card-hover: 0 2px 4px rgba(28, 27, 24, 0.06), 0 16px 36px rgba(28, 27, 24, 0.08);

  --t-fast: 150ms ease;
  --t-med: 220ms ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--teal-deep); text-decoration: none; }
a:hover { color: var(--teal-deep-hover); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.02em;
  line-height: 1.1;
  font-weight: 700;
}
h1 { font-size: clamp(2.25rem, 5.2vw, 4rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.75rem); }
h3 { font-size: 1.3125rem; letter-spacing: -0.01em; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 600; color: var(--ink); }

/* ---------- Layout primitives ---------- */
.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: var(--max-w-narrow); }
.container-reading { max-width: var(--max-w-reading); }

.section { padding: clamp(72px, 10vw, 120px) 0; }
.section-tight { padding: clamp(48px, 7vw, 80px) 0; }
.section-cream { background: var(--cream); }
.section-cream-soft { background: var(--cream-soft); }

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.8125rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal-deep);
  margin-bottom: 20px;
}

.lede { font-size: 1.1875rem; line-height: 1.6; color: var(--ink-muted); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  box-shadow: var(--shadow-nav);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 24px;
  max-width: var(--max-w); margin: 0 auto;
}
.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 36px; width: auto; }
.nav-logo span.sr-only { position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0; }

.nav-links {
  display: flex; align-items: center; gap: 32px;
  list-style: none; margin: 0; padding: 0;
}
.nav-links a {
  color: var(--ink); font-weight: 500; font-size: 0.9375rem;
  padding: 8px 0; position: relative;
  transition: color var(--t-fast);
}
.nav-links a:hover { color: var(--teal-deep); }
.nav-links a.active { color: var(--teal-deep); }
.nav-links a.btn { color: var(--white); padding: 13px 22px; }
.nav-links a.btn:hover { color: var(--white); }
.nav-links a.btn.active::after { display: none; }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px;
  height: 2px; background: var(--teal-sage); border-radius: 2px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body);
  font-weight: 600; font-size: 0.9375rem; letter-spacing: 0.01em;
  padding: 13px 22px; border-radius: 999px;
  border: 1.5px solid var(--teal-deep);
  background: var(--teal-deep); color: var(--white);
  cursor: pointer;
  transition: background var(--t-fast), border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
  white-space: nowrap;
}
.btn:hover { background: var(--teal-deep-hover); border-color: var(--teal-deep-hover); color: var(--white); transform: translateY(-1px); box-shadow: 0 8px 18px rgba(36, 95, 85, 0.22); }
.btn:focus-visible { outline: 3px solid rgba(36, 95, 85, 0.3); outline-offset: 2px; }
.btn .arrow { transition: transform var(--t-fast); }
.btn:hover .arrow { transform: translateX(3px); }

.btn-ghost {
  background: transparent; color: var(--teal-deep);
  border-color: var(--teal-deep);
}
.btn-ghost:hover { background: var(--teal-deep); color: var(--white); box-shadow: 0 8px 18px rgba(36, 95, 85, 0.18); }

.btn-lg { padding: 16px 28px; font-size: 1rem; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(64px, 9vw, 108px) 0 clamp(56px, 7vw, 88px);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero-copy h1 { max-width: 18ch; }
.hero-copy .lede { max-width: 54ch; margin-top: 28px; }
.hero-cta { margin-top: 40px; display: flex; gap: 14px; flex-wrap: wrap; }

.hero-figure {
  margin: 0; position: relative;
}
.hero-figure::before {
  content: "";
  position: absolute; inset: 10px -14px -14px 10px;
  background: var(--cream);
  border-radius: var(--radius);
  z-index: 0;
}
.hero-illustration {
  position: relative; z-index: 1;
  width: 100%; height: auto;
  max-width: 560px;
  aspect-ratio: 1024 / 572;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: 0 10px 40px rgba(28, 27, 24, 0.08), 0 2px 6px rgba(28, 27, 24, 0.05);
  background: var(--cream-soft);
  display: block;
  margin-left: auto;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-illustration { margin: 0 auto; max-width: 100%; }
  .hero-figure { order: 2; }
}

/* Decorative diagonal cream wedge */
.hero::before {
  content: ""; position: absolute; inset: auto -10% -30% auto;
  width: 50%; height: 60%;
  background: linear-gradient(135deg, var(--cream-soft) 0%, transparent 60%);
  z-index: -1; pointer-events: none;
  transform: rotate(-6deg);
}

/* ---------- Problem section (dark emphasis block) ---------- */
.problem {
  background: var(--ink);
  color: #E8E4DB;
}
.problem h2 { color: var(--white); max-width: 20ch; margin-bottom: 32px; }
.problem p { color: #D7D3C8; font-size: 1.125rem; line-height: 1.7; max-width: 60ch; }
.problem p strong { color: var(--white); font-weight: 600; }
.problem .accent-rule {
  width: 56px; height: 3px; background: var(--teal-sage);
  margin-bottom: 32px; border-radius: 2px;
}

/* ---------- Three-phase cards (Assess / Enable / Embed) ---------- */
.phases-head { max-width: 56ch; margin-bottom: 64px; }
.phases-head h2 { margin-bottom: 20px; }

.phases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 900px) { .phases { grid-template-columns: 1fr; } }

.phase-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 36px 32px 32px;
  transition: transform var(--t-med), box-shadow var(--t-med), border-color var(--t-med);
  position: relative;
  display: flex; flex-direction: column;
}
.phase-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card-hover);
  border-color: transparent;
}
.phase-num {
  font-family: var(--font-display);
  font-size: 0.8125rem; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--teal-sage);
  margin-bottom: 20px;
}
.phase-card h3 {
  font-size: 1.75rem;
  margin-bottom: 16px;
  color: var(--teal-deep);
}
.phase-card p { color: var(--ink-muted); font-size: 1rem; line-height: 1.65; }
.phase-card .takeaway {
  margin-top: 24px; padding-top: 20px;
  border-top: 1px solid var(--rule);
  font-size: 0.9375rem;
  color: var(--ink);
  font-weight: 500;
}

/* ---------- Fractional callout ---------- */
.fractional {
  background: var(--cream);
  border-radius: var(--radius);
  padding: clamp(40px, 5vw, 64px);
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px;
  align-items: center;
}
.fractional h2 { font-size: clamp(1.5rem, 2.5vw, 2rem); margin-bottom: 16px; }
.fractional p { color: var(--ink-muted); max-width: 54ch; }
.fractional .eyebrow { margin-bottom: 14px; }
@media (max-width: 820px) {
  .fractional { grid-template-columns: 1fr; text-align: left; }
}

/* ---------- Closing CTA band ---------- */
.cta-band {
  background: var(--teal-deep);
  color: var(--white);
  padding: clamp(72px, 9vw, 100px) 0;
  text-align: center;
}
.cta-band h2 { color: var(--white); max-width: 24ch; margin: 0 auto 20px; }
.cta-band p { color: rgba(255,255,255,0.85); max-width: 54ch; margin: 0 auto 32px; font-size: 1.0625rem; }
.cta-band .btn {
  background: var(--white); color: var(--teal-deep); border-color: var(--white);
}
.cta-band .btn:hover { background: var(--cream); border-color: var(--cream); color: var(--teal-deep); box-shadow: 0 8px 18px rgba(0,0,0,0.18); }

/* ---------- Case study cards ---------- */
.cs-grid { display: grid; grid-template-columns: 1fr; gap: 24px; max-width: 900px; margin: 0 auto; }

.cs-card {
  background: var(--white);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 36px 32px;
  display: flex; flex-direction: column; gap: 20px;
  position: relative;
  transition: border-color var(--t-med), transform var(--t-med), box-shadow var(--t-med);
}
.cs-card:hover { border-color: var(--teal-sage); transform: translateY(-2px); box-shadow: var(--shadow-card); }
.cs-status {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600;
  font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--teal-deep);
  background: var(--cream);
  padding: 6px 12px; border-radius: 999px;
  align-self: flex-start;
}
.cs-status .dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--teal-sage);
  box-shadow: 0 0 0 3px rgba(90, 163, 148, 0.2);
}
.cs-status.complete {
  background: var(--teal-deep);
  color: var(--white);
}
.cs-status.complete .dot {
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
}
.cs-card h3 { font-size: 1.4375rem; color: var(--ink); line-height: 1.25; }
.cs-card .cs-meta {
  font-family: var(--font-display); font-size: 0.8125rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted); font-weight: 500;
}
.cs-outline {
  display: grid; gap: 20px; margin: 8px 0 0; padding-top: 20px;
  border-top: 1px dashed var(--rule);
}
.cs-outline-row { display: grid; grid-template-columns: 128px 1fr; gap: 16px; font-size: 0.9375rem; color: var(--ink-muted); line-height: 1.6; }
.cs-outline-row dt { font-family: var(--font-display); font-weight: 600; color: var(--teal-deep); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; padding-top: 4px; }
.cs-outline-row dd { margin: 0; }
@media (max-width: 540px) {
  .cs-outline-row { grid-template-columns: 1fr; gap: 6px; }
  .cs-outline-row dt { padding-top: 0; }
}

/* ---------- About ---------- */
.about-grid {
  display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(32px, 5vw, 72px);
  align-items: start;
}
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; max-width: 480px; } }

.about-portrait {
  position: sticky; top: 100px;
  max-width: 240px;
}
@media (max-width: 820px) { .about-portrait { max-width: 220px; position: static; } }
.about-portrait img {
  width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  image-rendering: -webkit-optimize-contrast;
  display: block;
}
.about-portrait .caption {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: 0.8125rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted);
}

.about-body h1 { max-width: 20ch; margin-bottom: 32px; }
.about-body p { font-size: 1.0625rem; color: var(--ink-muted); line-height: 1.75; margin-bottom: 1.2em; }
.about-body p strong { color: var(--ink); }
.about-body .signature {
  margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--rule);
}

/* ---------- Footer ---------- */
.footer {
  background: var(--ink); color: #B8B5AD;
  padding: 56px 0 32px;
}
.footer-inner {
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: start;
  padding: 0 24px; max-width: var(--max-w); margin: 0 auto;
}
.footer img { height: 32px; width: auto; opacity: 0.95; filter: brightness(0) invert(1) opacity(0.9); }
.footer-tagline { margin-top: 16px; font-size: 0.9375rem; color: #8E8B82; max-width: 44ch; }
.footer-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: #B8B5AD; font-size: 0.9375rem; }
.footer-links a:hover { color: var(--teal-sage); }
.footer-bottom {
  max-width: var(--max-w); margin: 40px auto 0; padding: 24px 24px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  font-size: 0.8125rem; color: #7A7770;
}
@media (max-width: 640px) {
  .footer-inner { grid-template-columns: 1fr; }
}

/* ---------- Mobile nav ---------- */
.nav-toggle {
  display: none;
  background: none; border: 0; cursor: pointer;
  width: 40px; height: 40px; padding: 0;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 22px; height: 2px; background: var(--ink);
  border-radius: 2px; transition: transform var(--t-fast), top var(--t-fast);
}
.nav-toggle span { position: relative; }
.nav-toggle span::before { position: absolute; top: -7px; }
.nav-toggle span::after { position: absolute; top: 7px; }

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white);
    padding: 12px 24px 24px;
    box-shadow: var(--shadow-nav);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links li { border-bottom: 1px solid var(--rule-soft); }
  .nav-links li:last-child { border-bottom: 0; padding-top: 12px; }
  .nav-links a { display: block; padding: 14px 0; }
  .nav-links .btn { width: 100%; justify-content: center; }
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-32 { margin-top: 32px; }
.hidden { display: none; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
