:root {
  --ink: #18201f;
  --ink-soft: #48514f;
  --paper: #f6f3ed;
  --paper-deep: #ebe7df;
  --surface: #fffdf8;
  --steel: #5b6664;
  --line: #cfd2cb;
  --brand-navy: #0b376d;
  --brand-teal: #20ae97;
  --accent: var(--brand-navy);
  --accent-dark: #082a53;
  --focus: #b4692d;
  --max-width: 1180px;
  --reading-width: 760px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

a { color: inherit; }

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 4px;
}

main:focus { outline: none; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 1rem;
  left: 1rem;
  padding: .7rem 1rem;
  color: #fff;
  background: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.shell {
  width: min(calc(100% - 3rem), var(--max-width));
  margin-inline: auto;
}

.narrow { max-width: var(--reading-width); }

.site-header {
  position: relative;
  z-index: 20;
  border-bottom: 1px solid rgba(24, 32, 31, .16);
  background: rgba(246, 243, 237, .96);
}

.header-inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 182px;
  height: auto;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.45rem;
}

.primary-nav > a:not(.button) {
  color: var(--ink-soft);
  font-size: .9rem;
  font-weight: 650;
  text-decoration: none;
}

.primary-nav > a:not(.button):hover { color: var(--ink); }
.primary-nav > a[aria-current="page"]:not(.button) { color: var(--ink); text-decoration: underline; text-underline-offset: .35em; }

.nav-toggle { display: none; }

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: .78rem 1.15rem;
  border: 1px solid var(--accent-dark);
  color: #fff;
  background: var(--accent-dark);
  font-size: .9rem;
  font-weight: 750;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: background-color 160ms ease, color 160ms ease;
}

.button:hover { background: var(--accent); }

.button-small {
  min-height: 2.6rem;
  max-width: 14rem;
  padding: .55rem .85rem;
  font-size: .78rem;
}

.text-link {
  font-weight: 750;
  text-underline-offset: .25em;
}

.hero {
  padding: clamp(4rem, 8vw, 7.5rem) 0;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: clamp(3rem, 8vw, 7rem);
  align-items: center;
}

.eyebrow,
.section-kicker {
  margin: 0 0 1.15rem;
  color: var(--accent);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .13em;
  line-height: 1.4;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 720;
  letter-spacing: -.04em;
  line-height: 1.06;
}

h1 { max-width: 13ch; font-size: clamp(2.75rem, 6vw, 5.6rem); }
h2 { font-size: clamp(2rem, 4vw, 3.6rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.65rem); }

.lede {
  max-width: 650px;
  margin: 1.6rem 0 0;
  color: var(--ink-soft);
  font-size: clamp(1.1rem, 2vw, 1.3rem);
}

.button-row {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  margin-top: 2rem;
}

.credibility-line {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem 1.25rem;
  margin: 2rem 0 0;
  padding: 1.25rem 0 0;
  border-top: 1px solid var(--line);
  color: var(--steel);
  list-style: none;
  font-size: .76rem;
  font-weight: 750;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.credibility-line li + li::before { margin-right: 1.25rem; color: var(--brand-teal); content: "·"; }

.system-view {
  position: relative;
  display: grid;
  grid-template-columns: .8fr 42px 1.2fr;
  align-items: center;
  min-height: 390px;
  padding: 2rem;
  border: 1px solid var(--line);
  background: var(--surface);
}

.system-sources { display: grid; gap: .7rem; }

.system-sources span {
  padding: .6rem .75rem;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  background: var(--paper);
  font-size: .75rem;
  font-weight: 750;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.system-connector { height: 2px; background: var(--brand-teal); }

.system-output {
  padding: 1.4rem;
  border-top: 4px solid var(--brand-teal);
  background: var(--ink);
  color: #fff;
}

.system-output > p { margin: 0 0 1.2rem; font-weight: 750; }

.metric-line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: .65rem 0;
  border-top: 1px solid rgba(255,255,255,.18);
  font-size: .78rem;
}

.metric-line span { color: #cfd8d4; }

.section { padding: clamp(4rem, 8vw, 7rem) 0; }

.section-heading {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(2rem, 7vw, 6rem);
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.section-heading > p { margin: 0; color: var(--ink-soft); font-size: 1.05rem; }

.section-link { display: inline-block; margin-top: 2rem; }

.recognition { background: var(--surface); text-align: center; }
.recognition h2 { max-width: 15ch; margin-inline: auto; }

.section-intro {
  margin: 1.6rem auto 0;
  color: var(--ink-soft);
  font-size: 1.15rem;
}

.problem-section { border-top: 1px solid var(--line); }

.split-layout {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(3rem, 8vw, 7rem);
}

.plain-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.plain-list li {
  padding: 1rem 0 1rem 2rem;
  border-top: 1px solid var(--line);
  background: linear-gradient(var(--accent), var(--accent)) .15rem 1.75rem / .75rem 1px no-repeat;
}

.services-section { background: var(--surface); }

.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
}

.service-grid article { min-height: 270px; padding: 2rem 2rem 2.5rem 0; border-bottom: 1px solid var(--line); }
.service-grid article:nth-child(odd) { padding-right: 3rem; border-right: 1px solid var(--line); }
.service-grid article:nth-child(even) { padding-left: 3rem; }
.service-grid h3 { margin-bottom: 1rem; }
.service-grid article p:last-child { max-width: 32rem; margin-bottom: 0; color: var(--ink-soft); }

.item-number { margin: 0 0 2rem; color: var(--steel); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .76rem; letter-spacing: .08em; }

.proof-section { color: #eef2f0; background: var(--ink); }
.proof-section .section-kicker { color: #aebdb8; }
.proof-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: clamp(3rem, 8vw, 8rem); }
.proof-copy p { margin-top: 0; color: #c6d0cd; font-size: 1.1rem; }
.proof-copy .text-link { display: inline-block; margin-top: 1rem; color: #fff; }

.systems-section { background: var(--paper-deep); }
.system-ledger { border-top: 1px solid var(--steel); }
.system-ledger > div { display: grid; grid-template-columns: .45fr 1.55fr; gap: 2rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.system-ledger span { color: var(--steel); font-size: .82rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.system-ledger strong { font-weight: 650; }
.asset-note { max-width: 50rem; margin: 1.5rem 0 0; color: var(--steel); font-size: .82rem; }

.process-section { background: var(--surface); }
.process-list { margin: 0; padding: 0; border-top: 1px solid var(--line); list-style: none; }
.process-list li { display: grid; grid-template-columns: 80px 1fr; gap: 1.5rem; padding: 1.6rem 0; border-bottom: 1px solid var(--line); }
.process-list li > span { color: var(--steel); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: .78rem; }
.process-list h3 { margin-bottom: .45rem; }
.process-list p { margin: 0; color: var(--ink-soft); }

.approach-section { background: var(--paper); }
.approach-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.approach-grid article { padding: 1rem clamp(2rem, 6vw, 5.5rem) 1rem 0; }
.approach-grid article + article { padding-right: 0; padding-left: clamp(2rem, 6vw, 5.5rem); border-left: 1px solid var(--line); }
.approach-grid h2 { font-size: clamp(1.8rem, 3vw, 2.75rem); }
.approach-grid article > p:last-child { color: var(--ink-soft); }

.referral-section { border-top: 1px solid var(--line); background: var(--surface); }
.referral-grid { display: grid; grid-template-columns: .55fr 1.45fr; gap: clamp(3rem, 8vw, 8rem); }
.referral-grid h2 { max-width: 18ch; }
.referral-grid div > p { max-width: 47rem; color: var(--ink-soft); font-size: 1.1rem; }

.faq-section { border-top: 1px solid var(--line); background: var(--paper); }
.faq-grid { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(3rem, 8vw, 8rem); }
.faq-grid h2 { max-width: 12ch; }
.faq-intro { max-width: 33rem; color: var(--ink-soft); }
.faq-list { border-top: 1px solid var(--steel); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary {
  position: relative;
  padding: 1.35rem 3rem 1.35rem 0;
  font-size: 1.05rem;
  font-weight: 750;
  cursor: pointer;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { position: absolute; top: 1.35rem; right: .25rem; color: var(--accent); content: "+"; font-size: 1.3rem; line-height: 1; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { max-width: 48rem; margin: -.25rem 0 1.5rem; color: var(--ink-soft); }

.final-cta { padding: clamp(3.5rem, 7vw, 6rem) 0; color: #fff; background: var(--accent-dark); }
.final-cta-inner { display: grid; grid-template-columns: 1.3fr .7fr; gap: 3rem; align-items: center; }
.final-cta h2 { max-width: 18ch; font-size: clamp(2rem, 4vw, 3.4rem); }
.final-cta p:not(.section-kicker) { max-width: 42rem; color: #d0d9d5; }
.final-cta .section-kicker { color: #b9c8c3; }
.button-light { justify-self: end; border-color: #fff; color: var(--ink); background: #fff; }
.button-light:hover { color: #fff; background: transparent; }
.final-cta-actions { display: grid; justify-items: end; gap: .85rem; }
.final-email { color: #fff; font-size: .9rem; font-weight: 700; text-underline-offset: .25em; }

.page-hero { padding: clamp(4.5rem, 10vw, 8.5rem) 0; border-bottom: 1px solid var(--line); }
.page-hero-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(3rem, 8vw, 8rem); align-items: end; }
.page-hero h1 { max-width: 15ch; font-size: clamp(2.8rem, 6vw, 5.5rem); }
.page-hero .lede { margin: 0; }
.about-hero, .contact-hero { background: var(--surface); }
.compact-hero { padding: clamp(4rem, 8vw, 6.5rem) 0; }
.compact-hero h1 { font-size: clamp(2.6rem, 5vw, 4.8rem); }
.align-left { margin-inline: auto; text-align: left; }

.detail-list { border-top: 1px solid var(--line); }
.detail-list article { display: grid; grid-template-columns: 80px .8fr; justify-content: space-between; gap: 2rem; padding: 3.5rem 0; border-bottom: 1px solid var(--line); }
.detail-list article > div { max-width: 760px; }
.detail-list h2 { margin-bottom: 1rem; font-size: clamp(1.8rem, 3vw, 2.8rem); }
.detail-list article p:last-child { color: var(--ink-soft); font-size: 1.05rem; }
.reality-section { background: var(--surface); }
.callout-line { margin-top: 2rem; padding: 1rem 0 1rem 1.25rem; border-left: 3px solid var(--accent); font-weight: 700; }

.long-process { max-width: 1020px; }
.long-process article { display: grid; grid-template-columns: 90px 1fr; gap: 2rem; padding: clamp(3rem, 7vw, 6rem) 0; border-bottom: 1px solid var(--line); }
.long-process article:first-child { padding-top: 0; }
.long-process article > span { color: var(--steel); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.long-process article > div { max-width: 760px; }
.long-process h2 { margin-bottom: 1.3rem; }
.long-process article div > p:last-child { color: var(--ink-soft); font-size: 1.08rem; }

.story-section { background: var(--paper); }
.story-grid { display: grid; grid-template-columns: .65fr 1.35fr; gap: clamp(3rem, 8vw, 8rem); }
.pull-quote { max-width: 16ch; font-size: clamp(1.5rem, 3vw, 2.4rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.2; }
.story-copy { max-width: 740px; }
.story-copy h2 { margin-bottom: 2rem; }
.story-copy p { color: var(--ink-soft); font-size: 1.1rem; }
.principles-section { background: var(--surface); }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(3rem, 9vw, 9rem); }
.contact-details { display: block; margin: 0; font-style: normal; }
.contact-details p { display: grid; grid-template-columns: 110px 1fr; gap: 1rem; margin: 0; padding: 1rem 0; border-top: 1px solid var(--line); }
.contact-details p span { color: var(--steel); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.contact-details p strong { font-weight: 650; }
.contact-details .button { margin-top: 1.5rem; }
.contact-prompt { border-top: 1px solid var(--line); background: var(--surface); }
.contact-prompt h2 { margin-bottom: 2rem; }

.legal-copy { background: var(--surface); }
.legal-copy h2 { margin-top: 3rem; font-size: 1.75rem; }
.legal-copy h2:first-child { margin-top: 0; }
.legal-copy p { color: var(--ink-soft); }

.site-footer {
  padding: 4rem 0 1.5rem;
  color: #dfe6e3;
  background: var(--ink);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr .7fr;
  gap: 3rem;
}

.footer-grid p { max-width: 28rem; margin: 0; color: #b9c3c0; }
.footer-brand { color: #fff !important; font-size: 1.15rem; font-weight: 750; }
.footer-heading { margin-bottom: .5rem !important; color: #fff !important; font-weight: 700; }
.footer-grid a { text-underline-offset: .2em; }
.footer-nav { display: grid; align-content: start; gap: .4rem; }

.footer-legal {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.16);
  color: #9eaaa7;
  font-size: .78rem;
}

.footer-legal p { margin: 0; }

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    gap: .65rem;
    padding: .55rem .7rem;
    border: 1px solid var(--line);
    color: var(--ink);
    background: transparent;
    font: inherit;
    font-size: .85rem;
    font-weight: 700;
  }

  .nav-toggle-lines,
  .nav-toggle-lines::before,
  .nav-toggle-lines::after {
    display: block;
    width: 1rem;
    height: 1px;
    background: currentColor;
  }

  .nav-toggle-lines { position: relative; }
  .nav-toggle-lines::before,
  .nav-toggle-lines::after { position: absolute; left: 0; content: ""; }
  .nav-toggle-lines::before { top: -.3rem; }
  .nav-toggle-lines::after { top: .3rem; }

  .primary-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    padding: 1.25rem max(1.5rem, calc((100vw - var(--max-width)) / 2));
    border-bottom: 1px solid var(--line);
    background: var(--surface);
  }

  .primary-nav[data-open="true"] { display: grid; gap: 0; }
  .primary-nav > a:not(.button) { padding: .85rem 0; border-bottom: 1px solid var(--line); }
  .primary-nav .button { max-width: none; margin-top: 1rem; }

  .hero-grid,
  .split-layout,
  .section-heading,
  .proof-grid,
  .referral-grid,
  .faq-grid,
  .page-hero-grid,
  .story-grid,
  .contact-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 3.5rem; }
  .system-view { max-width: 600px; min-height: 330px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-nav { grid-column: 1 / -1; grid-template-columns: repeat(6, max-content); gap: 1.2rem; }
  .page-hero .lede { margin-top: 0; }
  .final-cta-inner { grid-template-columns: 1fr; }
  .button-light { justify-self: start; }
  .final-cta-actions { justify-items: start; }
}

@media (max-width: 600px) {
  .shell { width: min(calc(100% - 2rem), var(--max-width)); }
  .header-inner { min-height: 70px; }
  .brand-logo { width: 154px; }
  .hero { padding-top: 3.5rem; }
  .button-row { align-items: stretch; flex-direction: column; }
  .credibility-line { display: grid; gap: .45rem; }
  .credibility-line li + li::before { margin-right: .65rem; }
  .text-link { padding: .5rem 0; text-align: center; }
  .system-view { grid-template-columns: 1fr; gap: 1rem; min-height: 0; padding: 1.25rem; }
  .system-sources { grid-template-columns: 1fr 1fr; }
  .system-connector { width: 1px; height: 24px; margin-inline: auto; }
  .service-grid,
  .approach-grid { grid-template-columns: 1fr; }
  .service-grid article,
  .service-grid article:nth-child(odd),
  .service-grid article:nth-child(even) { min-height: 0; padding: 2rem 0; border-right: 0; }
  .approach-grid article,
  .approach-grid article + article { padding: 1rem 0 3rem; border-left: 0; }
  .approach-grid article + article { padding-top: 3rem; border-top: 1px solid var(--line); }
  .system-ledger > div { grid-template-columns: 1fr; gap: .35rem; }
  .process-list li { grid-template-columns: 48px 1fr; gap: .75rem; }
  .detail-list article,
  .long-process article { grid-template-columns: 42px 1fr; gap: .75rem; }
  .contact-details p { grid-template-columns: 1fr; gap: .25rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-nav { grid-column: auto; grid-template-columns: 1fr 1fr; }
  .footer-legal { flex-direction: column; gap: .5rem; }
}

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