:root {
  --navy: #1f3a5f;
  --navy-deep: #162a46;
  --ink: #1a2330;
  --muted: #3a4656;
  --paper: #f4f1eb;
  --paper-raised: #fffcf8;
  --line: #d9d2c5;
  --on-navy: #f4f1eb;
  --on-navy-soft: #e7e1d6;
  --font: Inter, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --header-offset: 7.5rem;
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/inter-400.woff2") format("woff2");
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/inter-500.woff2") format("woff2");
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/inter-600.woff2") format("woff2");
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
}

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

figure {
  margin: 0;
}

h1,
h2,
h3,
p {
  text-wrap: pretty;
}

h1,
h2 {
  text-wrap: balance;
}

h1,
h2,
h3 {
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 {
  margin: 0 0 1rem;
  color: var(--navy);
  font-size: clamp(2.05rem, 1.15rem + 3.4vw, 3.35rem);
  letter-spacing: -0.028em;
  line-height: 1.12;
}

h2 {
  margin: 0 0 0.75rem;
  color: var(--navy);
  font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.4rem);
}

h3 {
  margin: 0 0 0.4rem;
  color: var(--navy);
  font-size: 1.15rem;
  letter-spacing: -0.015em;
}

p {
  margin: 0 0 0.9rem;
}

p:last-child {
  margin-bottom: 0;
}

a {
  color: var(--navy);
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus {
  outline: none;
}

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

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

.skip {
  position: absolute;
  left: 1rem;
  top: 0.5rem;
  transform: translateY(-150%);
  background: var(--paper-raised);
  color: var(--navy);
  padding: 0.55rem 0.9rem;
  z-index: 30;
  font-weight: 600;
  text-decoration: none;
}

.skip:focus {
  transform: none;
}

.wrap {
  width: min(1080px, calc(100% - 2rem));
  margin-inline: auto;
}

@media (min-width: 720px) {
  .wrap {
    width: min(1080px, calc(100% - 3rem));
  }
}

.kicker {
  margin: 0 0 0.85rem;
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.band .kicker {
  color: #fff;
}

.lede {
  max-width: 40rem;
  color: var(--muted);
  font-size: 1.125rem;
  line-height: 1.6;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(244, 241, 235, 0.96);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 1rem;
  padding-block: 0.7rem;
}

.brand {
  display: flex;
  flex-direction: column;
  margin-right: auto;
  color: var(--navy);
  text-decoration: none;
  line-height: 1.05;
  padding-block: 0.2rem;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.16em;
}

.brand-name {
  margin-top: 0.18rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
}

.nav-wrap {
  flex: 1 1 100%;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.nav a:hover {
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.1rem;
  border: 1.5px solid var(--navy);
  border-radius: 4px;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
}

.button-primary {
  background: var(--navy);
  color: #fff;
}

.button-primary:hover {
  background: var(--navy-deep);
  border-color: var(--navy-deep);
  color: #fff;
  text-decoration: none;
}

.button-secondary {
  background: transparent;
  color: var(--navy);
}

.button-secondary:hover {
  background: rgba(31, 58, 95, 0.06);
  text-decoration: none;
}

.header-cta {
  min-height: 44px;
  padding: 0.5rem 0.85rem;
  font-size: 0.92rem;
}

.button-primary:focus-visible,
.band :focus-visible,
.principles :focus-visible,
.site-footer :focus-visible {
  outline-color: #fff;
}

.hero {
  padding: 2.5rem 0 3.25rem;
}

.hero-grid {
  display: grid;
  gap: 2rem;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.actions .button {
  width: 100%;
}

.principles {
  margin: 0;
  padding: 1.6rem 1.4rem;
  background: var(--navy);
  color: var(--on-navy);
}

.principles p {
  margin: 0;
  font-size: clamp(1.7rem, 2vw, 2.15rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.principles p + p {
  margin-top: 0.35rem;
}

.section {
  padding: 3.75rem 0;
}

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

.services {
  display: grid;
  gap: 0;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.services li {
  padding: 1.35rem 0;
  border-bottom: 1px solid var(--line);
}

.services p {
  color: var(--muted);
}

.band {
  background: var(--navy);
  color: var(--on-navy);
}

.band h2,
.band h3 {
  color: #fff;
}

.band .lede,
.band p {
  color: var(--on-navy-soft);
}

.reasons {
  display: grid;
  gap: 1.6rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.reasons h3 {
  color: #fff;
}

.steps {
  display: grid;
  gap: 1.5rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  padding-top: 0.9rem;
  border-top: 2px solid var(--navy);
}

.step-num {
  margin: 0 0 0.55rem;
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.steps p:last-child {
  color: var(--muted);
}

.about-grid {
  display: grid;
  gap: 1.75rem;
  align-items: start;
}

.portrait {
  display: block;
  width: min(100%, 22rem);
  height: auto;
  background: #d5d3d0;
  border: 1px solid var(--line);
}

.about-copy p {
  max-width: 40rem;
}

.contact-grid {
  display: grid;
  gap: 1.75rem;
  align-items: start;
}

.contact-card {
  margin: 0;
  padding: 1.35rem 1.25rem 0.4rem;
  background: var(--paper-raised);
  border: 1px solid var(--line);
}

.contact-card div + div {
  margin-top: 1rem;
}

.contact-card dt {
  margin: 0;
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-card dd {
  margin: 0.25rem 0 0;
}

.contact-card a {
  font-weight: 600;
}

.contact-card address {
  font-style: normal;
}

.contact .actions {
  margin-top: 1.35rem;
}

.site-footer {
  background: var(--navy-deep);
  color: var(--on-navy);
  padding: 2.4rem 0 2.6rem;
}

.footer-grid {
  display: grid;
  gap: 1.25rem;
}

.footer-brand {
  margin: 0 0 0.35rem;
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.14em;
}

.site-footer p {
  margin: 0;
  color: var(--on-navy-soft);
  font-size: 0.95rem;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-nav a,
.site-footer a {
  color: #fff;
}

.legal {
  margin-top: 0.35rem;
}

@media (min-width: 640px) {
  .actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .actions .button {
    width: auto;
  }
}

@media (min-width: 800px) {
  .hero {
    padding: 4.25rem 0 4.75rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.45fr) minmax(16rem, 0.7fr);
    gap: 3.5rem;
    align-items: center;
  }

  .section {
    padding: 5.25rem 0;
  }

  .services {
    grid-template-columns: 1fr 1fr;
  }

  .services li {
    padding: 1.5rem 0;
  }

  .services li:nth-child(odd) {
    padding-right: 2rem;
  }

  .services li:nth-child(even) {
    padding-left: 2rem;
    border-left: 1px solid var(--line);
  }

  .reasons {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 3rem;
  }

  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
  }

  .about-grid {
    grid-template-columns: 18.5rem minmax(0, 1fr);
    gap: 3.25rem;
  }

  .contact-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(16rem, 0.85fr);
    gap: 3rem;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr;
    align-items: start;
  }

  .footer-nav {
    justify-content: flex-end;
  }
}

@media (max-width: 899px) {
  .nav-wrap {
    flex: 1 1 100%;
    order: 3;
  }

  .nav {
    display: grid;
    grid-template-columns: repeat(3, max-content);
    width: 100%;
    column-gap: 1rem;
    row-gap: 0;
  }

  .header-cta {
    order: 2;
  }
}

@media (min-width: 640px) and (max-width: 899px) {
  .nav {
    justify-content: end;
    width: auto;
    margin-left: auto;
  }
}

@media (min-width: 900px) {
  .header-inner {
    flex-wrap: nowrap;
    gap: 1.5rem;
  }

  .nav-wrap {
    flex: 1 1 auto;
    display: flex;
    justify-content: flex-end;
  }

  .nav {
    flex-wrap: nowrap;
    justify-content: flex-end;
  }
}

@media (forced-colors: active) {
  .button {
    border: 1px solid ButtonText;
  }

  .principles,
  .band,
  .site-footer {
    border: 1px solid CanvasText;
  }
}

@media print {
  .site-header,
  .skip,
  .header-cta,
  .actions {
    display: none;
  }

  body,
  .band,
  .principles,
  .site-footer {
    background: #fff;
    color: #000;
  }

  h1,
  h2,
  h3,
  .band h2,
  .band h3,
  .band p,
  .principles p,
  .site-footer p {
    color: #000;
  }

  a[href^="mailto:"]::after,
  a[href^="tel:"]::after {
    content: " (" attr(href) ")";
    font-weight: 400;
  }
}
