:root {
  --ink: #0D1B33;
  --navy: #1A4FA0;
  --navy-deep: #123A78;
  --green: #5CB85C;
  --green-ink: #3E8E3E;
  --paper: #F6F8FB;
  --paper-2: #EDF1F7;
  --line: #D5DDE9;
  --slate: #4A5568;
  --white: #FFFFFF;
  --serif: "Newsreader", Georgia, serif;
  --sans: "Inter", -apple-system, sans-serif;
  --mono: "IBM Plex Mono", "SF Mono", monospace;
  --max: 1120px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--navy); text-decoration: none; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 760px; margin: 0 auto; padding: 0 24px; }

/* ---------- Header ---------- */
header.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 248, 251, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { font-family: var(--serif); font-size: 24px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.logo .ai { color: var(--navy); }
.logo .dot { color: var(--green); }
.nav-links { display: flex; gap: 32px; align-items: center; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--slate); letter-spacing: 0.01em; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--navy); }
.nav-cta {
  font-size: 14px; font-weight: 600;
  color: var(--white) !important;
  background: var(--navy);
  padding: 9px 18px; border-radius: 3px;
  transition: background 0.15s ease;
}
.nav-cta:hover { background: var(--navy-deep); }
.menu-btn { display: none; }

/* ---------- Buttons ---------- */
.btn { display: inline-block; font-size: 15px; font-weight: 600; padding: 14px 28px; border-radius: 3px; transition: background 0.15s ease, border-color 0.15s ease; }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-deep); }
.btn-ghost { color: var(--ink); border: 1px solid var(--line); background: var(--white); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }
.btn-green { background: var(--green); color: var(--ink); }
.btn-green:hover { background: #4CA84C; }

/* ---------- Type helpers ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 28px;
}
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 28px; height: 1px;
  background: var(--green);
  vertical-align: middle;
  margin-right: 12px;
}

/* ---------- Hero (home) ---------- */
.hero { padding: 96px 0 72px; }
.hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(38px, 5.4vw, 62px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  max-width: 17ch;
}
.hero h1 em { font-style: italic; font-weight: 500; color: var(--navy); }
.hero p.lede { margin-top: 28px; max-width: 58ch; font-size: 19px; color: var(--slate); }
.hero-actions { margin-top: 40px; display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Page hero (interior pages) ---------- */
.page-hero { padding: 80px 0 56px; }
.page-hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(34px, 4.4vw, 52px);
  line-height: 1.14;
  letter-spacing: -0.015em;
  max-width: 22ch;
}
.page-hero p.lede { margin-top: 22px; max-width: 60ch; font-size: 18.5px; color: var(--slate); }

/* ---------- Tear sheet ---------- */
.tearsheet-outer { padding: 0 0 88px; }
.tearsheet {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(13, 27, 51, 0.04), 0 12px 32px -16px rgba(13, 27, 51, 0.10);
}
.tearsheet-head {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  padding: 18px 28px;
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}
.tearsheet-head .label { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink); font-weight: 500; }
.tearsheet-head .note { font-family: var(--mono); font-size: 11.5px; color: var(--slate); }
.tearsheet-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 30px 28px 26px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: none; }
.stat .figure { font-family: var(--mono); font-size: clamp(26px, 3vw, 34px); font-weight: 500; letter-spacing: -0.02em; color: var(--ink); }
.stat .figure .unit { color: var(--green-ink); }
.stat .cap { margin-top: 8px; font-size: 13.5px; color: var(--slate); line-height: 1.45; }
.tearsheet-chart { border-top: 1px solid var(--line); padding: 0; line-height: 0; background: var(--white); }
.tearsheet-chart svg { width: 100%; height: 72px; display: block; }

/* ---------- Sections ---------- */
section.band { padding: 88px 0; }
section.band.alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { max-width: 640px; margin-bottom: 52px; }
.sec-head h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(30px, 3.6vw, 42px); line-height: 1.18; letter-spacing: -0.01em; }
.sec-head p { margin-top: 16px; color: var(--slate); font-size: 17.5px; }

/* ---------- Ledger ---------- */
.ledger { border-top: 1px solid var(--line); }
.ledger-row { display: grid; grid-template-columns: 220px 1fr; gap: 32px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.ledger-row .k { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--navy); font-weight: 500; padding-top: 3px; }
.ledger-row .v { color: var(--ink); font-size: 17px; max-width: 62ch; }
.ledger-row .v strong { font-weight: 600; }

/* ---------- Services ---------- */
.services-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.svc {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 34px 32px 30px;
  position: relative;
  transition: border-color 0.15s ease;
}
.svc:hover { border-color: var(--navy); }
.svc::before { content: ""; position: absolute; top: 0; left: 32px; width: 40px; height: 3px; background: var(--green); }
.svc h3 { font-family: var(--serif); font-size: 24px; font-weight: 500; letter-spacing: -0.005em; margin-bottom: 12px; }
.svc p { color: var(--slate); font-size: 16px; }
.svc .outcome { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 12.5px; color: var(--green-ink); letter-spacing: 0.03em; }
section.band.alt .svc { background: var(--paper); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 5fr 4fr; gap: 72px; align-items: start; }
.about-body p { color: var(--ink); margin-bottom: 20px; font-size: 17.5px; }
.about-body p:last-child { margin-bottom: 0; }
.pullquote { border-left: 3px solid var(--green); padding: 8px 0 8px 28px; }
.pullquote blockquote { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.4; color: var(--navy-deep); }
.pullquote cite { display: block; margin-top: 18px; font-family: var(--mono); font-style: normal; font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate); }
.cred-list { margin-top: 36px; border-top: 1px solid var(--line); }
.cred-list div { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.cred-list dt { color: var(--slate); }
.cred-list dd { font-family: var(--mono); font-size: 13px; color: var(--ink); text-align: right; }

/* ---------- Fit cards ---------- */
.fit { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 28px; }
.fit-card { border-top: 2px solid var(--navy); padding-top: 22px; }
.fit-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.fit-card p { font-size: 15.5px; color: var(--slate); }

/* ---------- Blog: featured + index ---------- */
.featured-post {
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 56px;
  box-shadow: 0 1px 2px rgba(13, 27, 51, 0.04), 0 12px 32px -16px rgba(13, 27, 51, 0.10);
}
.featured-post .fp-media { background: linear-gradient(135deg, var(--navy-deep), var(--navy)); position: relative; min-height: 280px; }
.featured-post .fp-media svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.featured-post .fp-body { padding: 44px 44px 40px; }
.fp-tag { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green-ink); font-weight: 500; }
.fp-tag .date { color: var(--slate); }
.featured-post h3, .featured-post h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.22; letter-spacing: -0.01em; margin: 14px 0 14px; }
.featured-post h3 a, .featured-post h2 a { color: var(--ink); }
.featured-post h3 a:hover, .featured-post h2 a:hover { color: var(--navy); }
.featured-post .fp-body p { color: var(--slate); font-size: 16.5px; }
.fp-read { display: inline-block; margin-top: 24px; font-size: 14.5px; font-weight: 600; color: var(--navy); border-bottom: 1px solid var(--green); padding-bottom: 2px; }

.post-index { border-top: 1px solid var(--line); }
.post-row {
  display: grid;
  grid-template-columns: 110px 1fr 190px;
  gap: 28px;
  align-items: baseline;
  padding: 20px 8px;
  border-bottom: 1px solid var(--line);
  transition: background 0.15s ease;
}
.post-row:hover { background: var(--paper-2); }
.post-row .date { font-family: var(--mono); font-size: 12.5px; color: var(--slate); white-space: nowrap; }
.post-row .title { font-family: var(--serif); font-size: 19px; font-weight: 500; line-height: 1.35; letter-spacing: -0.005em; color: var(--ink); }
.post-row:hover .title { color: var(--navy); }
.post-row .tag { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--green-ink); text-align: right; white-space: nowrap; }
.index-more { margin-top: 32px; }

/* ---------- Post page ---------- */
.post-hero { padding: 80px 0 0; }
.post-hero .meta { font-family: var(--mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green-ink); }
.post-hero .meta .date { color: var(--slate); }
.post-hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 4.2vw, 48px);
  line-height: 1.16;
  letter-spacing: -0.012em;
  margin-top: 16px;
}
.post-rule { width: 64px; height: 3px; background: var(--green); margin: 32px 0 0; }
.post-body { padding: 48px 0 24px; }
.post-body p {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.68;
  color: var(--ink);
  margin-bottom: 26px;
}
.post-body p strong { font-weight: 600; }
.byline {
  margin: 32px 0 0;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.06em;
  color: var(--slate);
}
.byline .author { color: var(--ink); }
.post-nav { display: flex; justify-content: space-between; gap: 24px; padding: 36px 0 72px; flex-wrap: wrap; }
.post-nav a { font-size: 14.5px; font-weight: 600; color: var(--navy); max-width: 44ch; }
.post-nav a span { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate); font-weight: 400; margin-bottom: 6px; }
.post-nav a:hover { color: var(--navy-deep); }

/* ---------- Prose pages (legal) ---------- */
.prose { padding: 24px 0 88px; }
.prose h2 { font-family: var(--serif); font-weight: 500; font-size: 26px; letter-spacing: -0.005em; margin: 40px 0 14px; }
.prose p, .prose li { color: var(--ink); font-size: 16.5px; margin-bottom: 16px; }
.prose ul { padding-left: 22px; margin-bottom: 18px; }
.prose li { margin-bottom: 8px; }
.prose .effective { font-family: var(--mono); font-size: 13px; color: var(--slate); margin-bottom: 32px; }

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; padding-bottom: 88px; }
.contact-card { background: var(--white); border: 1px solid var(--line); border-radius: 4px; padding: 36px; }
.contact-card h3 { font-family: var(--serif); font-size: 22px; font-weight: 500; margin-bottom: 10px; }
.contact-card p { color: var(--slate); font-size: 15.5px; margin-bottom: 18px; }
.contact-line { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.contact-line .k { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--slate); padding-top: 3px; }

/* ---------- CTA band ---------- */
section.cta { background: var(--ink); color: var(--white); padding: 96px 0; }
section.cta .eyebrow { color: var(--green); }
section.cta h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(32px, 4vw, 48px); line-height: 1.15; letter-spacing: -0.01em; max-width: 20ch; }
section.cta p { margin-top: 20px; max-width: 52ch; color: #B8C4D8; font-size: 18px; }
.cta-actions { margin-top: 40px; display: flex; gap: 16px; flex-wrap: wrap; align-items: center; }
.cta-email { font-family: var(--mono); font-size: 15px; color: #B8C4D8; }
.cta-email a { color: var(--white); border-bottom: 1px solid var(--green); }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--ink);
  border-top: 1px solid rgba(255,255,255,0.12);
  color: #8FA0BC;
  padding: 48px 0 56px;
  font-size: 13.5px;
}
.foot-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.foot-grid h4 { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: #B8C4D8; font-weight: 500; margin-bottom: 14px; }
footer.site-footer a { color: #C7D2E4; }
footer.site-footer a:hover { color: var(--white); }
.foot-links a { display: block; margin-bottom: 8px; }
.disclaimer-text { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 28px; font-size: 12.5px; line-height: 1.7; color: #6E7F9C; max-width: 88ch; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .tearsheet-grid { grid-template-columns: 1fr 1fr; }
  .stat { border-bottom: 1px solid var(--line); }
  .stat:nth-child(2n) { border-right: none; }
  .stat:nth-child(3), .stat:nth-child(4) { border-bottom: none; }
  .services-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .fit { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; }
  .featured-post { grid-template-columns: 1fr; }
  .featured-post .fp-media { min-height: 180px; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .menu-btn {
    display: block; background: none; border: 1px solid var(--line);
    border-radius: 3px; padding: 8px 14px; font-family: var(--sans);
    font-size: 13.5px; font-weight: 600; color: var(--ink); cursor: pointer;
  }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: flex-start;
    position: absolute; top: 68px; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 20px 24px; gap: 18px;
  }
  .hero { padding: 64px 0 56px; }
  .page-hero { padding: 56px 0 40px; }
  section.band { padding: 64px 0; }
  .ledger-row { grid-template-columns: 1fr; gap: 8px; padding: 20px 0; }
  .post-row { grid-template-columns: 90px 1fr; }
  .post-row .tag { display: none; }
  .post-body p { font-size: 18px; }
}

/* ---------- Case study ---------- */
.case-cards { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 28px; margin-bottom: 12px; }
.case-card { background: var(--white); border: 1px solid var(--line); border-left: 3px solid var(--green); border-radius: 4px; padding: 24px 26px; }
.case-card h3 { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--navy); margin-bottom: 10px; }
.case-card p { font-size: 15.5px; color: var(--ink); }
.scope-list { list-style: none; padding: 0; margin-top: 6px; }
.scope-list li { position: relative; padding: 7px 0 7px 18px; font-size: 15.5px; color: var(--ink); border-bottom: 1px solid var(--line); }
.scope-list li:last-child { border-bottom: none; }
.scope-list li::before { content: ""; position: absolute; left: 0; top: 14px; width: 6px; height: 6px; background: var(--green); }
.deliv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.deliv-card { background: var(--white); border: 1px solid var(--line); border-radius: 4px; padding: 14px 14px 12px; text-align: center; transition: border-color 0.15s ease; }
.deliv-card:hover { border-color: var(--navy); }
.deliv-card svg { width: 100%; height: auto; display: block; border-radius: 2px; }
.deliv-card .dl-label { font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--navy-deep); margin-top: 12px; font-weight: 500; }
.deliv-note { font-size: 13.5px; color: var(--slate); font-style: italic; margin: -34px 0 34px; }
.selected-work { background: var(--white); border: 1px solid var(--line); border-radius: 4px; padding: 34px 36px; display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.selected-work .sw-text { max-width: 62ch; }
.selected-work h3 { font-family: var(--serif); font-size: 23px; font-weight: 500; margin-bottom: 8px; }
.selected-work p { color: var(--slate); font-size: 15.5px; }
@media (max-width: 900px) {
  .case-cards { grid-template-columns: 1fr; }
  .deliv-grid { grid-template-columns: 1fr 1fr; }
}
