:root {
  --paper: #ffffff;
  --paper-2: #f6f6f6;
  --ink: #1a1a1a;
  --muted: #595959;
  --line: #dddddd;
  --accent: #005eb8;
  --font: Arial, Helvetica, sans-serif;
  --font-heading: "Plus Jakarta Sans", Arial, Helvetica, sans-serif;
  --measure: 68ch;
}

.site-topbar { height: 6px; background: var(--accent); }

* { box-sizing: border-box; }
html { overflow-x: hidden; scroll-padding-top: 8rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1.125rem/1.6 var(--font); }
img, video { max-width: 100%; height: auto; }
a { color: var(--accent); }
a:focus-visible, summary:focus-visible { outline: .2rem solid var(--accent); outline-offset: .2rem; }
.wrapper, .section__inner, .site-header__inner { width: min(100% - 2rem, 76rem); margin-inline: auto; }
.skip-link { position: fixed; z-index: 10; top: .5rem; left: .5rem; padding: .75rem 1rem; background: var(--ink); color: #fff; transform: translateY(-200%); }
.skip-link:focus { transform: none; }
.site-header { position: sticky; z-index: 5; top: 0; border-bottom: 1px solid var(--line); background: #eaf2fb; }
.site-header__inner { display: flex; gap: 1rem; align-items: center; justify-content: space-between; min-height: 4.5rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.nav-menu-button, .nav-backdrop { display: none; }
.brand { color: var(--ink); text-decoration: none; line-height: 1.2; font-weight: 700; }
.brand strong { display: block; font-size: 1.1rem; }
.brand span { display: block; font-size: .8rem; font-weight: 400; color: var(--muted); }
.nav-list { display: flex; flex-wrap: wrap; gap: .25rem; align-items: center; padding: 0; margin: 0; list-style: none; }
.nav-list__link, .nav-list__toggle { display: inline-flex; min-height: 2.75rem; align-items: center; padding: .35rem .6rem; border-bottom: .2rem solid transparent; color: var(--ink); text-decoration: none; cursor: pointer; font-weight: 500; }
.nav-list__link:hover, .nav-list__link:focus-visible,
.nav-list__toggle:hover, .nav-list__toggle:focus-visible { border-bottom-color: var(--accent); background: #eaf2fb; color: var(--accent); }
.nav-list__link[aria-current="page"] { border-bottom-color: var(--accent); color: var(--accent); }
.nav-list__item--dropdown { position: relative; display: grid; grid-template-columns: 1fr auto; }
.nav-list__dropdown { display: contents; }
.nav-list__parent-link { grid-column: 1; grid-row: 1; padding-right: .25rem; }
.nav-list__toggle { grid-column: 2; grid-row: 1; gap: .4rem; min-width: 2rem; padding-left: .25rem; list-style: none; }
.nav-list__toggle::-webkit-details-marker { display: none; }
.nav-list__chevron { display: inline-block; width: .8em; color: currentColor; font-size: .9em; line-height: 1; text-align: center; transition: transform .2s ease; }
.nav-list__dropdown[open] > .nav-list__toggle { border-bottom-color: var(--accent); background: var(--accent); color: #fff; }
.nav-list__dropdown[open] .nav-list__chevron { transform: rotate(180deg); }
.nav-list__panel { position: absolute; z-index: 1; top: 100%; left: 0; display: grid; grid-template-columns: max-content; gap: .25rem; width: max-content; max-width: calc(100vw - 2rem); margin: 0; padding: .75rem; border: 1px solid var(--line); background: var(--paper); list-style: none; box-shadow: 0 6px 16px rgba(0,0,0,.12); }
.nav-list__panel li { display: inline-flex; width: max-content; }
.nav-list__panel a { display: flex; height: 100%; min-height: 3.5rem; align-items: center; padding: .65rem .8rem; color: var(--ink); font-size: .95rem; line-height: 1.3; text-decoration: none; }
.nav-list__panel a:hover, .nav-list__panel a:focus-visible { background: #eaf2fb; color: var(--accent); text-decoration: none; }
main { min-height: 60vh; scroll-margin-top: 8rem; }
.page-header, .page-header h1, .prose h2, .prose h3 { scroll-margin-top: 8rem; }
.page-header { padding-block: clamp(2.5rem, 8vw, 5rem) 2rem; border-bottom: 1px solid var(--line); }
.page-header__image { margin-top: 1.75rem; }
.photo-frame--wide { aspect-ratio: 16 / 9; max-height: 20rem; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: 800; line-height: 1.15; overflow-wrap: anywhere; }
h1 { margin: 0; max-width: none; font-size: clamp(2.25rem, 6vw, 3.5rem); }
h2 { margin: 0 0 1rem; font-size: clamp(1.75rem, 4vw, 2.5rem); }
h3 { margin: 0 0 .5rem; font-size: 1.25rem; }
.lede { max-width: var(--measure); font-size: 1.25rem; }
.prose { padding-block: clamp(2.5rem, 6vw, 4rem) 4rem; }
.prose > p, .prose > ul, .prose > ol { max-width: var(--measure); }
.prose > h2 { margin: clamp(3.5rem, 7vw, 5rem) 0 1rem; }
.prose > h2:first-child { margin-top: 0; }
.prose > h3 { margin: clamp(3rem, 6vw, 4rem) 0 .5rem; }
.prose > h2 + h3 { margin-top: 1.75rem; }
.prose > h4 { margin: 1.25rem 0 .25rem; }
.publication-date { margin-top: 0; color: var(--muted); font-size: .95rem; }
.table-scroll { max-width: 100%; overflow-x: auto; }
.table-scroll:focus-visible { outline: .2rem solid var(--accent); outline-offset: .2rem; }
.prose table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.prose th, .prose td { padding: .55rem .7rem; border: 1px solid var(--line); text-align: right; white-space: nowrap; }
.prose th:first-child, .prose td:first-child { text-align: left; }
.prose thead { background: var(--paper-2); }
.correspondence { max-width: var(--measure); margin: 1.5rem 0; padding-left: 1.25rem; border-left: .25rem solid var(--accent); }
.correspondence p { margin-block: 0 1rem; }
.prose--case-studies > h2:not(:first-child) {
  padding-top: clamp(2rem, 4vw, 3rem);
  border-top: 1px solid var(--line);
}
.eyebrow, .section-eyebrow { margin: 0 0 .5rem; font-weight: 600; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.tag-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.25rem; }
.tag { padding: .35rem .85rem; border: 1px solid var(--line); border-radius: 999px; background: var(--paper-2); color: var(--ink); font-size: .85rem; font-weight: 600; text-decoration: none; }
.tag:hover, .tag:focus-visible { border-color: var(--accent); color: var(--accent); }
.site-footer { padding-block: 2rem; background: var(--paper-2); color: var(--ink); border-top: 1px solid var(--line); }
.site-footer a { color: var(--accent); }
.site-footer .legal { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .8rem; line-height: 1.6; color: var(--muted); }
.site-footer .legal a { color: var(--accent); text-decoration: underline; }
@media (max-width: 60rem) {
  html { scroll-padding-top: 5rem; }
  main { scroll-margin-top: 5rem; }
  .page-header, .page-header h1, .prose h2, .prose h3 { scroll-margin-top: 5rem; }
  .site-header__inner { min-height: 3.75rem; }
  .nav-menu-button { position: relative; z-index: 7; display: grid; width: 2.75rem; height: 2.75rem; place-items: center; padding: 0; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
  .nav-menu-button__icon { display: grid; width: 1.5rem; gap: .3rem; }
  .nav-menu-button__icon span { display: block; height: 2px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
  .nav-menu-button[aria-expanded="true"] .nav-menu-button__icon span:first-child { transform: translateY(.4rem) rotate(45deg); }
  .nav-menu-button[aria-expanded="true"] .nav-menu-button__icon span:nth-child(2) { opacity: 0; }
  .nav-menu-button[aria-expanded="true"] .nav-menu-button__icon span:last-child { transform: translateY(-.4rem) rotate(-45deg); }
  .nav-backdrop { position: fixed; z-index: 5; inset: 3.75rem 0 0; background: rgba(0,0,0,.45); }
  .primary-navigation { position: fixed; z-index: 6; top: 3.75rem; right: 0; bottom: 0; width: min(100%, 26rem); padding: 1rem; overflow-y: auto; background: var(--paper); transform: translateX(100%); visibility: hidden; transition: transform .2s ease, visibility .2s; }
  .nav-is-open { overflow: hidden; }
  .nav-is-open .nav-backdrop { display: block; }
  .nav-is-open .primary-navigation { transform: none; visibility: visible; }
  .nav-list { align-items: stretch; flex-direction: column; width: 100%; }
  .nav-list__link, .nav-list__toggle { width: 100%; min-height: 2.75rem; padding: .65rem .75rem; }
  .nav-list__parent-link { padding-right: .25rem; }
  .nav-list__toggle { min-width: 2.75rem; justify-content: center; padding-left: .25rem; }
  .nav-list__panel { position: static; grid-column: 1 / -1; grid-template-columns: 1fr; width: 100%; max-width: none; padding: .25rem 0 .5rem .75rem; border: 0; box-shadow: none; }
  .nav-list__panel li { display: block; width: auto; }
  .nav-list__panel a { min-height: 2.75rem; }
}
@media (max-width: 32rem) {
  .wrapper, .section__inner, .site-header__inner { width: min(100% - 1.5rem, 76rem); }
  body { font-size: 1rem; }
  h1 { font-size: clamp(2rem, 11vw, 3rem); }
  .grid--4 { grid-template-columns: 1fr; }
  .problem-list a { align-items: flex-start; flex-direction: column; gap: .25rem; }
  .ledger li { gap: .25rem; }
  .ledger .figure { font-size: 1.75rem; }
  .site-footer .legal { overflow-wrap: anywhere; }
}

/* Homepage sections, plain throughout, only alternating white / very light grey */
.section { padding-block: clamp(3rem, 8vw, 5rem); border-bottom: 1px solid var(--line); }
.section--hero-followup { padding-top: clamp(2rem, 4vw, 3rem); }
.section__cta { margin: 1.5rem 0 0; }
.section--card { background: var(--paper-2); }
.section--tint { background: var(--paper-2); }

/* Text-only proof band; client logos require explicit permission before use. */
.proof-band { padding-block: clamp(2.5rem, 6vw, 4rem); border-bottom: 1px solid #003d78; background: var(--accent); color: #fff; }
.proof-band .section-eyebrow { color: #eaf2fb; }
.proof-band p { max-width: var(--measure); }
.proof-band__list { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.75rem 0 0; padding: 0; list-style: none; }
.proof-band__list li { padding: .55rem .9rem; border: 1px solid rgba(255,255,255,.55); font-weight: 700; line-height: 1.3; }

/* Hero */
.hero { padding-block: clamp(2.5rem, 8vw, 5rem) clamp(1.25rem, 3vw, 2rem); }
.hero__grid { display: grid; gap: 2.5rem; grid-template-columns: 1.8fr 1fr; align-items: center; }
.hero__case-studies { margin: 1.5rem 0 0; }
.hero__portrait { margin: 0; }
.hero__portrait img { object-position: 70% center; }
@media (max-width: 60rem) { .hero__grid { grid-template-columns: 1fr; } }

/* Buttons, simple solid rectangle */
.btn { display: inline-flex; align-items: center; min-height: 2.75rem; padding: .65rem 1.5rem; border: 2px solid var(--accent); background: var(--accent); color: #fff; font-weight: 700; text-decoration: none; }
.btn:hover, .btn:focus-visible { background: #003d78; border-color: #003d78; color: #fff; }
.btn:not(.btn--primary) { background: transparent; color: var(--accent); }
.btn:not(.btn--primary):hover, .btn:not(.btn--primary):focus-visible { background: var(--accent); color: #fff; }

.photo-placeholder { margin: 0; }
.photo-frame { aspect-ratio: 1 / 1; max-height: 15rem; overflow: hidden; border: 1px solid var(--line); border-radius: .5rem; }
.photo-frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.photo-placeholder figcaption { margin-top: .5rem; color: var(--muted); font-size: .8rem; text-align: center; }
@media (max-width: 60rem) { .photo-frame { max-height: 12rem; } }

/* Cards */
.grid { display: grid; gap: 1.5rem; margin-top: 2rem; }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.card { padding: 1.5rem; background: var(--paper); border: 1px solid var(--line); }
.card-icon { display: block; margin-bottom: .75rem; color: var(--accent); }
.section--card .card { background: var(--paper); }
.testimonial { display: flex; flex-direction: column; margin: 0; }
.testimonial blockquote { margin: 0 0 1.25rem; font-size: 1.05rem; }
.testimonial figcaption { margin-top: auto; color: var(--muted); }
.testimonial p { margin: 1rem 0 0; }

/* Problem-led list, plain, on light background */
.problem-list { list-style: none; margin: 2rem 0 0; padding: 0; border-top: 1px solid var(--line); }
.problem-list li { border-bottom: 1px solid var(--line); }
.problem-list a { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; min-height: 2.75rem; padding-block: 1.1rem; color: var(--ink); text-decoration: none; font-size: 1.1rem; font-weight: 500; }
.problem-list a:hover, .problem-list a:focus-visible { color: var(--accent); }
.problem-list .arrow { font-weight: 700; color: var(--accent); white-space: nowrap; }

/* Results */
.ledger { list-style: none; margin: 2rem 0 0; padding: 0; }
.ledger li { padding-block: 1.25rem; border-bottom: 1px solid var(--line); }
.ledger .figure { display: block; margin-bottom: .25rem; overflow-wrap: anywhere; font-weight: 800; font-size: clamp(1.5rem, 3.5vw, 2rem); color: var(--accent); }
.ledger .desc { display: block; }
.ledger .desc strong { display: block; margin-bottom: .25rem; }

/* Forms and embedded media */
.contact-form { --form-required: #b00020; width: 100%; max-width: 42rem; }
.contact-form .form-required-note { color: var(--muted); font-size: .95rem; }
.contact-form .required-star { color: var(--form-required); }
.form-field { margin-bottom: 1.25rem; }
.form-field label { display: block; margin-bottom: .35rem; font-weight: 700; }
.form-field input, .form-field select, .form-field textarea { display: block; width: 100%; min-height: 2.75rem; padding: .65rem .75rem; border: 1px solid var(--line); border-radius: 0; background: var(--paper); color: var(--ink); font: inherit; }
.form-field textarea { min-height: 9rem; resize: vertical; }
.form-actions .btn { min-width: 10rem; }
.form-honeypot { position: absolute; left: -9999px; }
.media-embed {
  display: block;
  width: 100%;
  max-width: 48rem;
  aspect-ratio: 16 / 9;
  height: auto;
  margin: 2rem auto clamp(3rem, 6vw, 4.5rem);
  border: 0;
}
.knowledge-canvas-example { max-width: 32rem; margin: 2rem auto; }
.knowledge-canvas-example img { display: block; }
@media (max-width: 32rem) {
  .form-actions .btn { width: 100%; justify-content: center; }
}

.stub-note { margin-top: 1.5rem; color: var(--muted); }

.updates-intro { max-width: none; text-wrap: balance; }
.updates-years { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.5rem; }
.updates-list { margin-top: 2.5rem; }
.update { padding-bottom: 2.5rem; scroll-margin-top: 5rem; }
.update + .update { padding-top: 2.5rem; border-top: 1px solid var(--line); }
.update h2 { margin-bottom: .5rem; font-size: clamp(1.3rem, 1.15rem + .7vw, 1.65rem); line-height: 1.25; }
.update p { max-width: 70ch; }
.update-meta { margin: 0 0 1rem; color: var(--muted); font-size: .95rem; }

.js-reveal .reveal { opacity: 0; transform: translateY(1.25rem); transition: opacity .6s ease, transform .6s ease; }
.js-reveal .reveal.is-visible { opacity: 1; transform: translateY(0); }

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

@media print {
  .reveal { opacity: 1 !important; transform: none !important; visibility: visible !important; }
  .skip-link { display: none !important; }
  .section > *:is(h2, h3) { break-inside: avoid; page-break-inside: avoid; }
}

@media (scripting: none) {
  .reveal { opacity: 1; transform: none; visibility: visible; }
}
