:root {
  --navy: #0a1628;
  --navy-mid: #1a2a40;
  --slate: #2d3a4a;
  --blue: #3979DA;
  --sage: #3a8f6a;
  --sage-light: #e8f4ee;
  --ink: #1a1a1a;
  --ink-soft: #555;
  --gray: #888;
  --light: #f5f5f3;
  --rule: #e0ddd8;
  --white: #fff;
  --max: 960px;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: 'Open Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--white);
  font-size: 17px;
  line-height: 1.7;
}

h1, h2, h3, h4 {
  font-family: 'Merriweather Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-weight: 700;
  line-height: 1.15;
  color: var(--navy);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(2.4rem, 5.5vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.3rem); margin-bottom: 1.2rem; }
h3 { font-size: 1.15rem; letter-spacing: -0.01em; margin-bottom: 0.6rem; }

p { margin-bottom: 1.2rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

strong { font-weight: 700; color: var(--navy); }

.container { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.prose { max-width: 680px; }

/* Sections */
.section { padding: 120px 0; }
.section--sm { padding: 80px 0; }
.section--light { background: var(--light); }
.section--navy { background: var(--navy); color: rgba(255,255,255,0.85); }
.section--navy h2, .section--navy h3 { color: var(--white); }
.section--navy a { color: rgba(255,255,255,0.7); }
.section--sage { background: var(--sage); color: var(--white); }
.section--sage h1, .section--sage h2 { color: var(--white); }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}
.nav__inner {
  max-width: var(--max); margin: 0 auto; padding: 16px 28px;
  display: flex; align-items: center; justify-content: space-between;
}
.nav__mark {
  display: flex; align-items: center; gap: 10px;
  font-family: 'Merriweather Sans', sans-serif; font-weight: 700;
  font-size: 1rem; color: var(--navy); text-decoration: none;
}
.nav__mark img { height: 28px; }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a {
  font-size: 0.85rem; font-weight: 600; color: var(--ink-soft);
  text-decoration: none; letter-spacing: 0.01em;
}
.nav__links a:hover { color: var(--navy); }
.nav__links a.active { color: var(--navy); }

.btn {
  display: inline-block; padding: 12px 24px;
  background: var(--navy); color: var(--white) !important;
  font-size: 0.88rem; font-weight: 700; letter-spacing: 0.02em;
  border: 0; border-radius: 3px; cursor: pointer;
  text-decoration: none !important;
  transition: background 120ms ease;
}
.btn:hover { background: var(--slate); }
.btn--lg { padding: 16px 32px; font-size: 0.95rem; }
.btn--ghost {
  background: transparent; color: var(--navy) !important;
  border: 1.5px solid var(--navy);
}
.btn--ghost:hover { background: var(--navy); color: var(--white) !important; }
.btn--white { background: var(--white); color: var(--navy) !important; }
.btn--white:hover { background: var(--light); }
.btn--sage { background: var(--sage); }
.btn--sage:hover { background: #328a5e; }

@media (max-width: 640px) {
  .nav__links a:not(.btn) { display: none; }
  .nav__links { gap: 12px; }
}

/* Hero */
.hero {
  background: var(--sage); color: var(--white);
  padding: 100px 0 88px;
}
.hero h1 { color: var(--white); max-width: 780px; margin-bottom: 24px; }
.hero .sub {
  max-width: 620px; font-size: 1.05rem;
  color: rgba(255,255,255,0.8); margin-bottom: 36px;
}
.hero .ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .btn { background: var(--white); color: var(--navy) !important; }
.hero .btn:hover { background: var(--light); }
.hero .btn--ghost { background: transparent; color: var(--white) !important; border-color: rgba(255,255,255,0.4); }
.hero .btn--ghost:hover { background: rgba(255,255,255,0.12); }

/* Grid: 2-col */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
@media (max-width: 760px) { .grid-2 { grid-template-columns: 1fr; } }

/* Grid: 3-col */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
@media (max-width: 760px) { .grid-3 { grid-template-columns: 1fr; } }

/* Cards (borderless, whitespace-separated) */
.card {
  padding: 0;
}
.card h3 { color: var(--navy); margin-bottom: 10px; }
.card p { font-size: 0.92rem; color: var(--ink-soft); }
.card .link {
  display: inline-block; margin-top: 14px;
  font-size: 0.85rem; font-weight: 700; color: var(--blue);
  letter-spacing: 0.01em;
}
.card .link:hover { text-decoration: underline; }

/* Divider */
.divider { border: 0; border-top: 1px solid var(--rule); margin: 0; }

/* Scrolling logo bar */
.logo-scroll {
  padding: 28px 0; border-bottom: 1px solid var(--rule);
  overflow: hidden; position: relative;
}
.logo-scroll__label {
  text-align: center; font-size: 0.72rem; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--gray); font-weight: 600; margin-bottom: 20px;
}
.logo-scroll__track {
  display: flex; align-items: center; gap: 56px;
  animation: scroll-logos 30s linear infinite;
  width: max-content;
}
.logo-scroll__track img {
  height: 64px; width: auto; filter: grayscale(1); opacity: 0.5;
  flex-shrink: 0;
}
.logo-scroll:hover .logo-scroll__track { animation-play-state: paused; }
.logo-scroll:hover .logo-scroll__track img { opacity: 0.8; filter: grayscale(0.3); }
@keyframes scroll-logos {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Proof strip */
.proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: 48px; text-align: center; }
.proof__num {
  font-family: 'Merriweather Sans', sans-serif;
  font-size: 3.2rem; font-weight: 800; color: var(--white);
  line-height: 1; margin-bottom: 8px;
}
.proof__label { font-size: 0.88rem; color: rgba(255,255,255,0.65); line-height: 1.4; }
@media (max-width: 640px) {
  .proof { grid-template-columns: 1fr; gap: 32px; }
  .proof__num { font-size: 2.6rem; }
}

/* Example cards */
.examples { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.example {
  border-left: 3px solid var(--sage); padding-left: 20px;
}
.example h3 { font-size: 0.95rem; margin-bottom: 8px; }
.example p { font-size: 0.88rem; color: var(--ink-soft); }
@media (max-width: 760px) { .examples { grid-template-columns: 1fr; } }

/* About grid */
.about-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 64px; align-items: start; }
.headshot {
  aspect-ratio: 4 / 5; border-radius: 4px;
  background: var(--light) url('assets/headshot.jpg') center/cover no-repeat;
}
@media (max-width: 760px) { .about-grid { grid-template-columns: 1fr; gap: 32px; } }

/* Logo bar */
.logo-bar { padding: 36px 0; border-bottom: 1px solid var(--rule); }
.logo-bar__label {
  text-align: center; font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--gray); font-weight: 600; margin-bottom: 20px;
}
.logo-bar__row {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 40px; max-width: var(--max); margin: 0 auto; padding: 0 28px;
}
.logo-bar__row img { max-height: 64px; filter: grayscale(1); opacity: 0.5; transition: opacity 150ms; }
.logo-bar__row img:hover { opacity: 0.9; filter: grayscale(0); }

/* Case study */
.case {
  border-left: 3px solid var(--sage);
  padding: 32px 0 32px 32px;
  margin-top: 24px;
}
.case p { font-size: 0.95rem; }
.case .lead-in { font-style: italic; color: var(--ink-soft); }
.case .closing {
  margin-top: 20px; font-style: italic; color: var(--ink-soft);
  padding-top: 16px; border-top: 1px solid var(--rule);
}

/* Clusters */
.clusters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin-top: 28px; }
.cluster h3 {
  font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--blue); margin-bottom: 14px; font-weight: 700;
}
.cluster ul { list-style: none; padding: 0; }
.cluster li { padding: 7px 0; font-size: 0.92rem; color: var(--ink-soft); border-bottom: 1px solid var(--rule); }
.cluster li:last-child { border-bottom: none; }
@media (max-width: 760px) { .clusters { grid-template-columns: 1fr; } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; margin-top: 32px; }
.step__num {
  font-family: 'Merriweather Sans', sans-serif;
  font-size: 2rem; font-weight: 800; color: var(--blue);
  line-height: 1; margin-bottom: 12px;
}
.step h3 { margin-bottom: 8px; }
.step p { font-size: 0.88rem; color: var(--ink-soft); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .steps { grid-template-columns: 1fr; } }

/* Service sections */
.service-block { padding: 80px 0; border-bottom: 1px solid var(--rule); }
.service-block:last-of-type { border-bottom: none; }
.service-block h2 { margin-bottom: 16px; }
.service-block .tags { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  font-size: 0.78rem; font-weight: 600; color: var(--gray);
  padding: 4px 0; letter-spacing: 0.02em;
}
.tag::after { content: " · "; color: var(--rule); }
.tag:last-child::after { content: ""; }
.service-cta { margin-top: 24px; }
.service-cta a { font-size: 0.88rem; font-weight: 700; color: var(--blue); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-card {
  padding: 40px; background: var(--light); border-radius: 4px;
  text-align: center;
}
.contact-card h3 { margin-bottom: 12px; }
.contact-card p { font-size: 0.92rem; color: var(--ink-soft); margin-bottom: 20px; }
@media (max-width: 640px) { .contact-grid { grid-template-columns: 1fr; } }

.expect-list { list-style: none; padding: 0; }
.expect-list li {
  padding: 14px 0; font-size: 0.95rem;
  border-bottom: 1px solid var(--rule);
}
.expect-list li:last-child { border-bottom: none; }

/* Flagship callout */
.flagship {
  background: var(--navy); color: rgba(255,255,255,0.85);
  border-radius: 4px; padding: 56px 64px;
}
.flagship h2 { color: var(--white); margin-bottom: 16px; }
.flagship .btn { margin-top: 12px; }
@media (max-width: 640px) { .flagship { padding: 36px 28px; } }

/* Footer */
.footer {
  padding: 36px 0; border-top: 1px solid var(--rule);
  font-size: 0.82rem; color: var(--gray);
}
.footer__inner {
  max-width: var(--max); margin: 0 auto; padding: 0 28px;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px;
}
.footer a { color: var(--gray); }
.footer strong { color: var(--navy); font-family: 'Merriweather Sans', sans-serif; }

/* Inline CTA */
.inline-cta { margin-top: 20px; }
.inline-cta a { font-weight: 700; font-size: 0.88rem; color: var(--blue); }

/* Secondary text */
.secondary { color: var(--gray); font-size: 0.92rem; margin-top: 16px; }
.reassurance { font-style: italic; color: var(--gray); margin-top: 24px; font-size: 0.92rem; }

/* Mid-page CTA */
.mid-cta {
  text-align: center; padding: 48px 0;
  background: var(--light); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.mid-cta p { color: var(--ink-soft); margin-bottom: 16px; }
