:root {
  --ink: #0b1822;
  --ink-2: #162731;
  --paper: #f4f2eb;
  --white: #fffefa;
  --soft: #e9ece7;
  --line: #c9cfca;
  --muted: #57666b;
  --green: #087953;
  --signal: #23b784;
  --max: 1180px;
  --pad: clamp(1.25rem, 4vw, 3rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: .08em; text-underline-offset: .2em; }
a:hover { color: var(--green); }
button, summary, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 4px; border-radius: 2px; }
.shell { width: min(100% - (var(--pad) * 2), var(--max)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 100; top: .75rem; left: .75rem; transform: translateY(-160%); padding: .7rem 1rem; background: var(--white); color: var(--ink); font-weight: 700; }
.skip-link:focus { transform: translateY(0); }

.site-header { position: relative; z-index: 20; border-bottom: 1px solid rgba(11,24,34,.18); background: rgba(244,242,235,.96); }
.nav-wrap { height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { flex: none; display: inline-block; }
.brand img { width: 132px; height: 32px; }
.desktop-nav { display: flex; align-items: center; gap: clamp(1.4rem, 3vw, 2.5rem); font-size: .9rem; font-weight: 650; }
.desktop-nav > a:not(.button) { text-decoration: none; }
.mobile-nav { display: none; position: relative; }
.mobile-nav summary { cursor: pointer; list-style: none; font-weight: 700; padding: .5rem 0; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary::after { content: "+"; margin-left: .5rem; color: var(--green); }
.mobile-nav[open] summary::after { content: "−"; }
.mobile-nav nav { position: absolute; top: 3rem; right: 0; width: min(82vw, 320px); padding: 1.25rem; display: grid; gap: .35rem; border: 1px solid var(--line); background: var(--white); box-shadow: 0 18px 45px rgba(11,24,34,.14); }
.mobile-nav nav > a:not(.button) { padding: .7rem .3rem; border-bottom: 1px solid var(--soft); text-decoration: none; font-weight: 650; }

.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: .72rem 1.15rem; border: 1px solid var(--ink); background: var(--ink); color: var(--white); font-size: .9rem; font-weight: 750; letter-spacing: .01em; text-decoration: none; transition: background .15s ease, color .15s ease; }
.button:hover { background: var(--green); border-color: var(--green); color: var(--white); }
.button-small { min-height: 40px; padding: .55rem .9rem; }
.button-light { background: var(--signal); border-color: var(--signal); color: var(--ink); }
.button-light:hover { background: var(--white); border-color: var(--white); color: var(--ink); }
.text-link { display: inline-flex; gap: .65rem; align-items: center; font-weight: 750; text-decoration: none; border-bottom: 1px solid currentColor; }
.eyebrow { margin: 0 0 1.25rem; color: var(--green); font-size: .72rem; line-height: 1.2; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
h1, h2, h3 { margin: 0; letter-spacing: -.035em; line-height: 1.08; }
h1 { max-width: 880px; font-size: clamp(2.8rem, 7vw, 6.3rem); font-weight: 690; }
h2 { font-size: clamp(2rem, 4.4vw, 4rem); font-weight: 650; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1rem; }

.hero { min-height: 730px; display: flex; align-items: center; padding: clamp(5rem, 11vw, 9rem) 0; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(250px, 1fr); gap: clamp(3rem, 8vw, 8rem); align-items: end; }
.hero h1 span { color: var(--green); }
.hero-lead { max-width: 720px; margin: 2rem 0 2.5rem; color: #34484e; font-size: clamp(1.2rem, 2vw, 1.55rem); line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.8rem; }
.hero-note { padding-top: 1.1rem; border-top: 3px solid var(--signal); }
.hero-note > span { color: var(--muted); font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.hero-note ul { list-style: none; margin: 1.3rem 0 0; padding: 0; }
.hero-note li { padding: .7rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; font-weight: 650; }

.section, .problem-band { padding: clamp(5rem, 10vw, 9rem) 0; }
.problem-band { background: var(--white); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr); gap: clamp(3rem, 10vw, 9rem); align-items: start; }
.split > div:last-child > p, .problem-band .split > div:last-child p { color: #34484e; font-size: 1.13rem; }
.section-heading { max-width: 900px; margin-bottom: clamp(2.8rem, 6vw, 5rem); }
.section-heading.narrow { max-width: 760px; }
.section-heading.inline { max-width: none; display: flex; justify-content: space-between; align-items: end; gap: 2rem; }
.section-heading.inline > div { max-width: 760px; }

.service-list { border-top: 1px solid var(--ink); }
.service-row { display: grid; grid-template-columns: 70px 1fr 40px; gap: 1rem; align-items: center; padding: 1.7rem 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.service-row:hover { color: var(--ink); border-bottom-color: var(--ink); }
.service-row:hover .arrow { color: var(--green); transform: translate(3px,-3px); }
.service-index { color: var(--green); font-size: .75rem; font-weight: 800; letter-spacing: .1em; }
.service-row strong { display: block; margin-bottom: .35rem; font-size: clamp(1.25rem, 2.5vw, 1.8rem); line-height: 1.2; letter-spacing: -.02em; }
.service-row small { display: block; max-width: 790px; color: var(--muted); font-size: .93rem; }
.service-row .arrow { justify-self: end; font-size: 1.35rem; transition: transform .15s ease; }

.section-ink { background: var(--ink); color: var(--white); }
.section-ink .eyebrow, .contact-band .eyebrow { color: var(--signal); }
.section-ink p { color: #c3ced0; }
.platform-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: clamp(3rem, 9vw, 8rem); }
.platform-grid > div > p:last-child { margin-top: 1.7rem; color: #b2c0c2; }
.platform-list { display: grid; grid-template-columns: 1fr 1fr; margin: 0; padding: 0; list-style: none; border-top: 1px solid #41515a; }
.platform-list li { padding: 1rem .25rem; border-bottom: 1px solid #41515a; font-weight: 650; }

.process { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.process li { padding: 1.4rem 1.4rem 0 0; border-right: 1px solid var(--line); }
.process li + li { padding-left: 1.4rem; }
.process li:last-child { border-right: 0; }
.process li > span, .scope-grid article > span, .principles article > span { display: block; margin-bottom: 3.8rem; color: var(--green); font-size: .75rem; font-weight: 800; letter-spacing: .1em; }
.process h3 { margin-bottom: .8rem; }
.process p { color: var(--muted); font-size: .93rem; }

.insights { background: var(--white); }
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3rem); }
.article-grid article { min-height: 280px; display: flex; flex-direction: column; padding-top: 1rem; border-top: 3px solid var(--ink); }
.article-grid article > span, .article-index article > span { color: var(--green); font-size: .75rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; }
.article-grid h3 { margin: 2rem 0 1rem; font-size: 1.45rem; }
.article-grid h3 a, .article-index h2 a { text-decoration: none; }
.article-grid p { color: var(--muted); font-size: .93rem; }
.contact-band { padding: clamp(5rem, 9vw, 8rem) 0; background: var(--ink-2); color: var(--white); }
.contact-band .split { align-items: end; }
.contact-band .split > div:last-child > p { color: #c5d0d1; }
.contact-band .button { margin-top: 1rem; }
.contact-band small { display: block; margin-top: 1rem; color: #9aabad; }

.site-footer { padding: 5rem 0 2rem; background: #071118; color: #c7d1d2; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: clamp(2rem, 7vw, 7rem); }
.brand-footer { margin-bottom: 1.5rem; }
.footer-grid > div > p { max-width: 370px; color: #8fa1a4; }
.email-link { color: var(--white); font-weight: 700; }
.footer-grid nav { display: flex; flex-direction: column; gap: .55rem; }
.footer-grid nav strong { margin-bottom: .6rem; color: var(--white); font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; }
.footer-grid nav a { color: #9eadaf; text-decoration: none; font-size: .9rem; }
.footer-grid nav a:hover { color: var(--signal); }
.footer-base { display: flex; justify-content: space-between; gap: 2rem; margin-top: 4rem; padding-top: 1.4rem; border-top: 1px solid #24343c; color: #74888c; font-size: .78rem; }

.breadcrumbs { padding-top: 1.2rem; color: var(--muted); font-size: .77rem; }
.breadcrumbs a { text-decoration: none; }
.breadcrumbs > span { margin: 0 .55rem; }
.page-hero { padding: clamp(5rem, 10vw, 8.5rem) 0 clamp(4rem, 8vw, 7rem); border-bottom: 1px solid var(--line); }
.page-hero .split { align-items: end; }
.page-hero h1 { font-size: clamp(2.7rem, 6vw, 5.2rem); }
.page-hero .lead { margin-bottom: 2rem; color: #34484e; font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.55; }
.page-hero.compact h1 { max-width: 980px; }
.page-hero.compact .lead { max-width: 790px; margin: 2rem 0 0; }
.service-problem .large-copy { color: #34484e; font-size: clamp(1.2rem, 2.2vw, 1.55rem); line-height: 1.55; }
.section-soft { background: var(--soft); }
.check-list, .deliverable-list, .outcome-list { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.check-list li, .outcome-list li { position: relative; padding: .9rem 0 .9rem 2rem; border-bottom: 1px solid var(--line); }
.check-list li::before, .outcome-list li::before { content: "—"; position: absolute; left: 0; color: var(--green); font-weight: 800; }
.scope-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.scope-grid article { min-height: 295px; padding: 1.4rem 1.5rem 1.4rem 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.scope-grid article:nth-child(3n+2), .scope-grid article:nth-child(3n+3) { padding-left: 1.5rem; }
.scope-grid article:nth-child(3n) { border-right: 0; }
.scope-grid article > span { margin-bottom: 3rem; }
.scope-grid h3 { margin-bottom: .8rem; }
.scope-grid p { color: var(--muted); font-size: .93rem; }
.deliverable-list { border-color: #41515a; }
.deliverable-list li { padding: .8rem 0; border-bottom: 1px solid #41515a; }
.tech-note { margin-top: 2rem; font-size: .95rem; }
.engagement { background: var(--white); }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; cursor: pointer; padding: 1.25rem 2rem 1.25rem 0; list-style: none; font-weight: 720; line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; color: var(--green); font-size: 1.4rem; }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 2rem 1.3rem 0; color: var(--muted); }
.related { background: var(--soft); }
.related h2 a { text-decoration: none; }
.related nav { display: flex; flex-direction: column; }
.related nav strong { margin-bottom: .7rem; color: var(--green); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.related nav a { display: flex; justify-content: space-between; padding: .9rem 0; border-top: 1px solid var(--line); text-decoration: none; font-weight: 650; }

.article-index { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(2rem, 7vw, 6rem); }
.article-index article { min-height: 330px; padding: 1.5rem 0 2rem; border-top: 1px solid var(--ink); }
.article-index h2 { margin: 2rem 0 1rem; font-size: clamp(1.6rem, 3vw, 2.5rem); }
.article-index p { max-width: 520px; color: var(--muted); }
.article-index .text-link { margin-top: 1rem; }
.article-header { max-width: 960px; padding-top: clamp(5rem, 10vw, 8rem); padding-bottom: clamp(4rem, 8vw, 6rem); }
.article-header h1 { font-size: clamp(2.7rem, 6vw, 5rem); }
.article-header .lead { max-width: 780px; margin: 2rem 0; color: #34484e; font-size: 1.25rem; }
.article-meta { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; color: var(--muted); font-size: .82rem; }
.article-body { max-width: 820px; padding-bottom: 7rem; }
.article-body > section { margin-top: 4rem; }
.article-body h2 { margin-bottom: 1.4rem; font-size: clamp(1.8rem, 4vw, 2.8rem); }
.article-body p { color: #34484e; font-size: 1.08rem; line-height: 1.8; }
.article-body a { color: var(--green); font-weight: 650; }
.article-intro { padding-left: 1.5rem; border-left: 4px solid var(--signal); color: var(--ink) !important; font-size: 1.3rem !important; }
.article-cta { margin-top: 5rem; padding: clamp(2rem, 5vw, 3.5rem); background: var(--ink); color: var(--white); }
.article-cta h2 { font-size: 2rem; }
.article-cta p { color: #b9c7c9; }
.article-cta .button { margin-top: .8rem; background: var(--signal); color: var(--ink); }
.article-related ul { margin: 1rem 0 0; padding: 0; list-style: none; }
.article-related li { padding: 1rem 0; border-top: 1px solid var(--line); }
.article-related a { color: var(--ink); text-decoration: none; }

.prose p { color: #34484e; font-size: 1.08rem; }
.prose h3 { margin: 2rem 0 .7rem; }
.prose h3:first-child { margin-top: 0; }
.principles { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ink); }
.principles article { padding: 1.4rem 1.4rem 1rem 0; border-right: 1px solid var(--line); }
.principles article + article { padding-left: 1.4rem; }
.principles article:last-child { border-right: 0; }
.principles article > span { margin-bottom: 3.5rem; }
.principles p { color: var(--muted); }
.contact-hero .email-display { display: flex; justify-content: space-between; margin-top: 2.5rem; padding: 1rem 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); font-size: clamp(1.1rem, 2.4vw, 1.55rem); font-weight: 720; text-decoration: none; }
.contact-topics { display: grid; grid-template-columns: 1fr 1fr; }
.contact-topics a { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1.2rem 0; border-top: 1px solid var(--line); text-decoration: none; font-weight: 700; }
.contact-topics a:nth-child(odd) { margin-right: 2rem; }
.contact-topics small { color: var(--muted); font-weight: 500; }
.legal { max-width: 820px; padding-top: clamp(5rem, 9vw, 8rem); padding-bottom: 8rem; }
.legal header { margin-bottom: 5rem; }
.legal h1 { font-size: clamp(3rem, 7vw, 5rem); }
.legal .lead { margin-top: 2rem; color: #34484e; font-size: 1.25rem; }
.legal section { margin-top: 3.2rem; }
.legal h2 { margin-bottom: 1rem; font-size: 2rem; }
.legal section p { color: #34484e; }
.not-found { min-height: 70vh; display: flex; align-items: center; padding: 6rem 0; }
.not-found .shell { max-width: 840px; }
.error-code { margin: 0; color: var(--signal); font-size: clamp(6rem, 18vw, 13rem); font-weight: 800; letter-spacing: -.08em; line-height: .8; }
.not-found h1 { margin-bottom: 1.5rem; font-size: clamp(2.4rem, 6vw, 4.7rem); }
.not-found > .shell > p:not(.error-code):not(.eyebrow) { max-width: 620px; margin-bottom: 2rem; color: var(--muted); font-size: 1.15rem; }

@media (max-width: 900px) {
  .desktop-nav { display: none; }
  .mobile-nav { display: block; }
  .hero { min-height: auto; }
  .hero-grid, .split, .platform-grid { grid-template-columns: 1fr; }
  .hero-note { max-width: 500px; }
  .process, .principles { grid-template-columns: 1fr 1fr; }
  .process li:nth-child(2), .principles article:nth-child(2) { border-right: 0; }
  .process li:nth-child(n+3), .principles article:nth-child(n+3) { margin-top: 2rem; border-top: 1px solid var(--line); padding-top: 1.4rem; }
  .scope-grid { grid-template-columns: 1fr 1fr; }
  .scope-grid article:nth-child(3n) { border-right: 1px solid var(--line); }
  .scope-grid article:nth-child(even) { border-right: 0; padding-left: 1.5rem; }
  .scope-grid article:nth-child(odd) { padding-left: 0; }
  .article-grid { grid-template-columns: 1fr; }
  .article-grid article { min-height: auto; }
}

@media (max-width: 620px) {
  :root { --pad: 1.1rem; }
  html { scroll-behavior: auto; }
  .nav-wrap { height: 68px; }
  .hero { padding: 5rem 0; }
  .hero-grid { gap: 4rem; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .text-link { align-self: flex-start; }
  .section-heading.inline { display: block; }
  .section-heading.inline .text-link { margin-top: 1.5rem; }
  .service-row { grid-template-columns: 42px 1fr 24px; padding: 1.3rem 0; }
  .service-row small { display: none; }
  .platform-list { grid-template-columns: 1fr; }
  .process, .principles, .scope-grid, .article-index, .contact-topics, .footer-grid { grid-template-columns: 1fr; }
  .process li, .process li + li, .principles article, .principles article + article, .scope-grid article, .scope-grid article:nth-child(3n+2), .scope-grid article:nth-child(3n+3), .scope-grid article:nth-child(even) { min-height: auto; padding: 1.2rem 0; border-right: 0; border-top: 1px solid var(--line); }
  .process li:first-child, .principles article:first-child, .scope-grid article:first-child { border-top: 0; }
  .process li:nth-child(n+3), .principles article:nth-child(n+3) { margin-top: 0; }
  .process li > span, .scope-grid article > span, .principles article > span { margin-bottom: 1.5rem; }
  .article-grid { gap: 2rem; }
  .article-index article { min-height: auto; }
  .contact-topics a:nth-child(odd) { margin-right: 0; }
  .contact-topics a { display: block; }
  .contact-topics small { display: block; margin-top: .2rem; }
  .footer-grid { gap: 2.5rem; }
  .footer-base { flex-direction: column; gap: .4rem; }
  .article-header { padding-top: 4rem; }
  .article-body p { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media print {
  .site-header, .site-footer, .contact-band, .article-cta { display: none; }
  body { background: white; color: black; }
  .section, .page-hero { padding: 2rem 0; }
}
