:root {
  --bg: #f3f1eb;
  --bg-elevated: #fbfaf7;
  --ink: #142433;
  --ink-soft: #3c4c5b;
  --navy: #0e2438;
  --navy-deep: #0a1b2b;
  --line: #e0dbd1;
  --accent: #7a3e1e;
  --paper: #f7f4ee;
  --max: 1080px;
  --header-offset: 6rem;
  --sans: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-offset);
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
}

main {
  flex: 1;
}

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

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

h1,
h2,
h3 {
  text-wrap: balance;
  letter-spacing: -0.03em;
  line-height: 1.15;
  font-weight: 600;
}

a {
  color: inherit;
}

:focus {
  outline: none;
}

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

::selection {
  background: #ead9cc;
  color: var(--ink);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.55rem 0.85rem;
  background: var(--navy);
  color: var(--paper);
  text-decoration: none;
  border-radius: 6px;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(243, 241, 235, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.header-inner,
.wrap,
.footer-inner {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

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

.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: var(--navy);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  text-decoration: none;
  line-height: 1;
}

.wordmark:hover {
  color: var(--accent);
}

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

.nav-list a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0.35rem 0.7rem;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: 6px;
}

.nav-list a:hover {
  color: var(--navy);
  background: rgba(14, 36, 56, 0.06);
}

.hero {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 clamp(3.25rem, 7vw, 5.5rem);
}

.eyebrow {
  margin-bottom: 0.9rem;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 16ch;
  font-size: clamp(2.4rem, 5.4vw, 3.85rem);
  color: var(--navy);
}

.lede {
  max-width: 40rem;
  margin-top: 1.35rem;
  color: var(--ink-soft);
  font-size: 1.15rem;
  line-height: 1.7;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 1.85rem;
  padding: 0.7rem 1.2rem;
  background: var(--navy);
  color: var(--paper);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.01em;
  border-radius: 8px;
}

.button:hover {
  background: #17344f;
}

.band {
  padding: clamp(4rem, 8vw, 6.25rem) 0;
}

.band h2 {
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  color: var(--navy);
}

.services,
.band-alt {
  background: var(--bg-elevated);
  border-block: 1px solid var(--line);
}

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
}

.card {
  padding: 1.6rem 1.45rem 1.5rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-top: 3px solid var(--navy);
  border-radius: 12px;
}

.card-index {
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  font-variant-numeric: tabular-nums;
}

.card h3 {
  margin: 0.85rem 0 0.7rem;
  font-size: 1.22rem;
  color: var(--navy);
}

.card p {
  color: var(--ink-soft);
}

.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  position: relative;
  padding-top: 0.15rem;
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.95rem;
  border-radius: 999px;
  background: var(--navy);
  color: var(--paper);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.step h3 {
  margin-bottom: 0.4rem;
  font-size: 1.15rem;
  color: var(--navy);
}

.step p {
  color: var(--ink-soft);
  max-width: 28ch;
}

.about p {
  max-width: 42rem;
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--ink);
}

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

.contact h2 {
  color: var(--paper);
  max-width: 16ch;
}

.contact .eyebrow {
  color: #f0d3c3;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  margin-top: 0.35rem;
  color: var(--paper);
  font-size: 1.2rem;
  font-weight: 600;
  text-underline-offset: 0.18em;
}

.contact-email:hover {
  color: #f0d3c3;
}

.contact .button {
  background: var(--paper);
  color: var(--navy);
}

.contact .button:hover {
  background: #fff;
}

.site-footer {
  background: var(--navy-deep);
  color: #d7dee6;
  font-size: 0.95rem;
}

.footer-inner {
  display: grid;
  gap: 0.7rem;
  padding: 2.25rem 0 2.5rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--paper);
  text-underline-offset: 0.18em;
}

.site-footer a:hover {
  color: #f0d3c3;
}

.missing h1 {
  max-width: 14ch;
}

@media (min-width: 640px) {
  .steps {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1.5rem;
  }
}

@media (min-width: 960px) {
  .cards {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
    align-items: stretch;
  }

  .steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    background-image: linear-gradient(var(--line), var(--line));
    background-repeat: no-repeat;
    background-size: calc(75% + 1.125rem) 1px;
    background-position: 1.25rem 1.4rem;
  }

  .step::before {
    position: relative;
    z-index: 1;
    box-shadow: 0 0 0 0.45rem var(--bg);
  }
}

@media (max-width: 640px) {
  :root {
    --header-offset: 7.75rem;
  }

  .header-inner,
  .wrap,
  .footer-inner {
    width: min(100% - 2rem, var(--max));
  }

  .header-inner {
    align-items: flex-start;
    row-gap: 0;
    padding: 0.35rem 0 0.2rem;
  }

  .nav-list {
    gap: 0;
    width: 100%;
  }

  .nav-list a {
    padding-inline: 0.4rem;
    font-size: 0.92rem;
  }
}

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

  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}

@media print {
  .site-header {
    position: static;
  }

  .contact,
  .site-footer {
    background: white;
    color: black;
  }

  .contact h2,
  .contact .eyebrow,
  .contact-email,
  .contact .button,
  .site-footer,
  .site-footer a {
    color: black;
    background: white;
  }

  .button {
    border: 1px solid black;
  }
}
