:root {
  --canvas: #f4f1eb;
  --paper: #fffcf7;
  --ink: #1a2332;
  --muted: #5c6470;
  --line: #d8d2c8;
  --navy: #1e3a5f;
  --navy-dark: #152c4a;
  --bronze: #8a7355;
  --white: #ffffff;
  --error: #8a1f1f;
  --font-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --font-sans: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  --container: 1120px;
  --header-height: 4.5rem;
}

*,
*::before,
*::after {
  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 {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

h1,
h2,
h3,
p,
ul,
ol,
figure,
address {
  margin: 0;
}

ul,
ol {
  padding: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

::selection {
  background: var(--navy);
  color: var(--white);
}

:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -3.5rem;
  z-index: 100;
  background: var(--navy);
  color: var(--white);
  padding: 0.6rem 1rem;
  font-size: 0.875rem;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (min-width: 640px) {
  .container {
    padding: 0 2rem;
  }
}

@media (min-width: 1024px) {
  .container {
    padding: 0 2.5rem;
  }
}

.image-editorial {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.02);
}

.image-frame {
  position: relative;
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
}

.image-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.image-frame--hero {
  aspect-ratio: 5 / 4;
}

.image-frame--wide {
  aspect-ratio: 4 / 3;
}

.image-frame--banner {
  aspect-ratio: 21 / 9;
}

.image-frame--on-navy {
  border-color: rgba(255, 255, 255, 0.1);
}

.stack-lg {
  margin-top: 2rem;
}

.stack-md {
  margin-top: 1.5rem;
}

.lede-tight {
  margin-top: 1.25rem;
}

.section-flush-top {
  padding-top: 0;
}

.company-strong {
  font-weight: 500;
  color: var(--ink);
}

.not-found-title {
  font-family: var(--font-serif);
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
}

@media (min-width: 640px) {
  .image-frame--banner {
    aspect-ratio: 2.2 / 1;
  }
}

.image-caption {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--line);
  background: var(--canvas);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 0;
}

@media (min-width: 1024px) {
  .header-inner {
    padding: 1.25rem 0;
  }
}

.logo {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  line-height: 1.35;
  letter-spacing: 0.04em;
  color: var(--ink);
  text-decoration: none;
}

@media (min-width: 640px) {
  .logo {
    font-size: 1rem;
  }

  .logo-break {
    display: none;
  }
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .nav-desktop {
    display: flex;
  }
}

.nav-desktop a {
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  color: var(--muted);
  text-decoration: none;
}

.nav-desktop a:hover,
.nav-desktop a[aria-current="page"] {
  color: var(--navy);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn-header {
  display: none;
  background: var(--navy);
  color: var(--white);
  padding: 0.625rem 1.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.btn-header:hover {
  background: var(--navy-dark);
}

@media (min-width: 640px) {
  .btn-header {
    display: inline-flex;
    align-items: center;
  }
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  color: var(--ink);
}

@media (min-width: 1024px) {
  .menu-toggle {
    display: none;
  }
}

.menu-toggle-bars {
  position: relative;
  display: block;
  width: 1rem;
  height: 0.875rem;
}

.menu-toggle-bars span {
  position: absolute;
  left: 0;
  display: block;
  width: 1rem;
  height: 1px;
  background: var(--ink);
}

.menu-toggle-bars span:nth-child(1) {
  top: 0;
}

.menu-toggle-bars span:nth-child(2) {
  top: 0.375rem;
}

.menu-toggle-bars span:nth-child(3) {
  top: 0.75rem;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:nth-child(1) {
  top: 0.375rem;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bars span:nth-child(3) {
  top: 0.375rem;
  transform: rotate(-45deg);
}

.nav-mobile {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--canvas);
}

.nav-mobile.is-open {
  display: block;
}

@media (min-width: 1024px) {
  .nav-mobile,
  .nav-mobile.is-open {
    display: none;
  }
}

.nav-mobile nav {
  display: flex;
  flex-direction: column;
  padding: 1rem 0 1.25rem;
}

.nav-mobile a {
  border-bottom: 1px solid var(--line);
  padding: 0.875rem 0;
  font-size: 0.875rem;
  letter-spacing: 0.06em;
  color: var(--ink);
  text-decoration: none;
}

.nav-mobile .btn-mobile {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1.25rem;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-decoration: none;
  border-bottom: 0;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  background: none;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--navy-dark);
}

.btn-secondary {
  border-color: var(--navy);
  color: var(--navy);
}

.btn-secondary:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-inverse {
  background: var(--paper);
  color: var(--navy);
}

.btn-inverse:hover {
  background: var(--canvas);
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.3);
  color: var(--white);
}

.btn-outline-light:hover {
  background: var(--white);
  color: var(--navy);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.link-more {
  display: inline-block;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(30, 58, 95, 0.25);
}

.link-more:hover {
  text-decoration-color: var(--navy);
}

/* Page structure */

main {
  flex: 1;
}

.page-intro {
  border-bottom: 1px solid var(--line);
  padding: 3.5rem 0 3rem;
}

@media (min-width: 640px) {
  .page-intro {
    padding: 5rem 0 4rem;
  }
}

.page-intro-inner {
  max-width: 48rem;
}

.rule {
  width: 2.5rem;
  height: 1px;
  background: var(--bronze);
  margin-bottom: 1.25rem;
}

.page-intro h1,
.section-heading h2 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.2;
  color: var(--ink);
}

.page-intro h1 {
  font-size: 2.25rem;
}

@media (min-width: 640px) {
  .page-intro h1 {
    font-size: 3rem;
  }
}

.intro-copy {
  margin-top: 1.5rem;
}

.intro-copy p + p,
.prose p + p,
.stack p + p {
  margin-top: 1.25rem;
}

.lede,
.intro-copy p,
.prose p,
.stack p {
  font-size: 1.05rem;
  line-height: 2rem;
  color: var(--muted);
}

.section {
  padding: 4rem 0;
}

@media (min-width: 640px) {
  .section {
    padding: 5rem 0;
  }
}

@media (min-width: 1024px) {
  .section {
    padding: 6rem 0;
  }
}

.section-compact {
  padding: 4rem 0;
}

@media (min-width: 640px) {
  .section-compact {
    padding: 5rem 0;
  }
}

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

.section-alt {
  background: var(--paper);
}

.section-navy {
  background: var(--navy);
  color: var(--white);
  border-top: 1px solid var(--line);
}

.section-navy h2 {
  color: var(--white);
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.875rem;
  line-height: 1.25;
}

@media (min-width: 640px) {
  .section-navy h2 {
    font-size: 2.15rem;
  }
}

.section-navy .muted-light,
.section-navy p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.02rem;
  line-height: 2rem;
}

.section-navy .rule {
  background: var(--bronze);
}

.section-heading h2 {
  font-size: 1.875rem;
}

@media (min-width: 640px) {
  .section-heading h2 {
    font-size: 2.15rem;
  }
}

.eyebrow {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--bronze);
}

/* Layouts */

.split {
  display: grid;
  gap: 3rem;
  align-items: center;
}

.split-top {
  align-items: start;
}

@media (min-width: 1024px) {
  .split {
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
  }

  .split-hero {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 4rem;
  }

  .split-contact {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 5rem;
  }

  .split-reverse > :first-child {
    order: 2;
  }

  .split-reverse > :last-child {
    order: 1;
  }
}

.hero {
  border-bottom: 1px solid var(--line);
}

.hero-inner {
  padding: 3.5rem 0;
}

@media (min-width: 1024px) {
  .hero-inner {
    padding: 5rem 0;
  }
}

.hero h1 {
  margin-top: 1.25rem;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 2.35rem;
  line-height: 1.12;
  color: var(--ink);
}

@media (min-width: 640px) {
  .hero h1 {
    font-size: 3rem;
  }
}

@media (min-width: 1024px) {
  .hero h1 {
    font-size: 3.25rem;
  }
}

.hero .lede {
  margin-top: 1.5rem;
  max-width: 36rem;
}

/* Services */

.service-grid,
.value-grid {
  display: grid;
  gap: 1px;
  margin-top: 3rem;
  background: var(--line);
}

@media (min-width: 640px) {
  .service-grid,
  .value-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.service-card,
.value-card {
  background: var(--paper);
  padding: 2rem;
}

.value-card {
  background: var(--canvas);
}

@media (min-width: 640px) {
  .service-card,
  .value-card {
    padding: 2.5rem;
  }
}

.num {
  font-family: var(--font-serif);
  color: var(--bronze);
}

.num-sm {
  font-size: 0.875rem;
}

.num-lg {
  font-size: 1.5rem;
}

.service-card h3,
.value-card h3 {
  margin-top: 0.75rem;
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--ink);
}

.value-card h3 {
  margin-top: 0;
}

.service-card .stack,
.value-card p {
  margin-top: 1rem;
}

.service-card .stack p {
  font-size: 0.98rem;
  line-height: 1.75rem;
}

.value-card p {
  font-size: 1.02rem;
  line-height: 2rem;
  color: var(--muted);
}

/* Approach */

.approach-list {
  display: grid;
  gap: 2.5rem;
  margin-top: 3rem;
  list-style: none;
}

@media (min-width: 640px) {
  .approach-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .approach-list {
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
  }
}

.approach-list li {
  border-top: 1px solid var(--line);
  padding-top: 1.5rem;
}

.approach-list h3 {
  margin-top: 0.75rem;
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 400;
}

.approach-list p {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.75rem;
  color: var(--muted);
}

/* Services page */

.service-block {
  scroll-margin-top: 7rem;
  padding: 4rem 0;
  border-bottom: 1px solid var(--line);
}

.service-block:last-of-type {
  border-bottom: 0;
}

.service-block--alt {
  background: var(--paper);
}

@media (min-width: 640px) {
  .service-block {
    padding: 5rem 0;
  }
}

.service-block h2 {
  margin-top: 0.75rem;
  font-family: var(--font-serif);
  font-size: 1.875rem;
  font-weight: 400;
  color: var(--ink);
}

@media (min-width: 640px) {
  .service-block h2 {
    font-size: 2.05rem;
  }
}

.include-label {
  margin-top: 1.5rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
}

.include-list {
  margin-top: 0.75rem;
  list-style: none;
}

.include-list li {
  display: flex;
  gap: 0.75rem;
  font-size: 0.98rem;
  line-height: 1.75rem;
  color: var(--muted);
}

.include-list li + li {
  margin-top: 0.5rem;
}

.include-list li::before {
  content: "";
  flex-shrink: 0;
  width: 1rem;
  height: 1px;
  margin-top: 0.85rem;
  background: var(--bronze);
}

.cta-copy {
  max-width: 42rem;
}

.banner-wrap {
  max-width: 64rem;
  margin: 0 auto;
}

/* Contact */

.contact-panel {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 2rem;
}

@media (min-width: 640px) {
  .contact-panel {
    padding: 2.5rem;
  }
}

.contact-panel h2,
.form-intro h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
}

.form-intro p {
  margin: 0.75rem 0 2rem;
  font-size: 0.98rem;
  line-height: 1.75rem;
  color: var(--muted);
}

.contact-panel address {
  margin-top: 1.5rem;
  font-style: normal;
  font-size: 0.98rem;
  line-height: 1.75rem;
  color: var(--muted);
}

.contact-panel .email-block {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.contact-panel .email-block p {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
}

.email-link {
  display: inline-block;
  margin-top: 0.5rem;
  color: var(--navy);
  font-size: 0.95rem;
  word-break: break-all;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(30, 58, 95, 0.25);
}

.email-link:hover {
  text-decoration-color: var(--navy);
}

.form {
  display: grid;
  gap: 1.25rem;
}

.field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink);
}

.hint {
  margin-top: 0.25rem;
  font-size: 0.875rem;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  margin-top: 0.5rem;
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  padding: 0.75rem;
  font-size: 0.875rem;
  border-radius: 0;
  appearance: none;
}

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='none' stroke='%231a2332' stroke-width='1.2' d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  padding-right: 2.25rem;
}

.field textarea {
  min-height: 9rem;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--navy);
  outline: none;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: var(--error);
}

.field-error {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--error);
}

.field-error:empty {
  display: none;
}

.form-success {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 2rem;
}

.form-success h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
}

.form-success p {
  margin-top: 1rem;
  font-size: 0.95rem;
  line-height: 1.75rem;
  color: var(--muted);
}

/* Privacy */

.policy {
  max-width: 48rem;
  margin: 0 auto;
  display: grid;
  gap: 3rem;
  font-size: 1.02rem;
  line-height: 2rem;
  color: var(--muted);
}

.policy h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--ink);
}

.policy p {
  margin-top: 1rem;
}

.policy ul {
  margin-top: 1rem;
  padding-left: 1.25rem;
}

.policy li + li {
  margin-top: 0.5rem;
}

.policy .ink {
  color: var(--ink);
}

/* Footer */

.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  background: var(--navy);
  color: var(--white);
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
  padding: 3.5rem 0;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 4rem;
  }
}

.footer-name {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  letter-spacing: 0.04em;
}

.footer-address {
  margin-top: 1.25rem;
  font-style: normal;
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
}

.footer-email {
  margin-top: 1.25rem;
}

.footer-email a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.9);
  word-break: break-all;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgba(255, 255, 255, 0.3);
}

.footer-email a:hover {
  text-decoration-color: var(--white);
}

.footer-label {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--bronze);
}

.footer-nav {
  list-style: none;
  margin-top: 1.25rem;
}

.footer-nav li + li {
  margin-top: 0.75rem;
}

.footer-nav a {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--white);
}

.footer-note {
  margin-top: 1.25rem;
  max-width: 20rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
}

.footer-cta {
  margin-top: 1.5rem;
}

.footer-base {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding: 1.5rem 0;
}

.footer-base p {
  font-size: 0.75rem;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.55);
}

@media (max-width: 639px) {
  .hero h1 {
    font-size: 2.15rem;
  }
}
