:root {
  --navy: #152e52;
  --blue: #1c6db0;
  --teal: #56bcc0;
  --white: #ffffff;
  --mist: #eef3f7;
  --muted: #4d6079;
  --rule: #d5dee8;
  --on-navy: #c3d0e0;
  --cell: 20px; /* the logo's pixel unit */
}

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

html { scroll-behavior: smooth; scroll-padding-top: 110px; }

body {
  margin: 0;
  background: var(--white);
  color: var(--navy);
  font-family: "Archivo", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }

a { color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.wrap { width: min(100% - 2.5rem, 68rem); margin-inline: auto; }

.skip {
  position: absolute; left: 1rem; top: -4rem;
  background: var(--navy); color: var(--white); padding: .5rem 1rem;
}
.skip:focus { top: 1rem; z-index: 20; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: var(--white);
  border-bottom: 1px solid var(--rule);
}
.header-row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding-block: .75rem;
}
.logo img { width: 9.5rem; }
nav { display: flex; align-items: center; gap: 1.75rem; }
nav a { text-decoration: none; font-weight: 600; font-size: .9375rem; }
nav a:not(.button):hover { color: var(--blue); }
nav a[aria-current="page"] { box-shadow: 0 3px 0 var(--blue); }

/* Buttons and links */
.button {
  display: inline-block;
  background: var(--navy); color: var(--white);
  padding: .85rem 1.5rem;
  font-weight: 700; font-stretch: 110%;
  text-decoration: none;
  transition: background-color .15s;
}
.button:hover { background: var(--blue); }
.button-small { padding: .55rem 1rem; }
.button-light { background: var(--white); color: var(--navy); white-space: nowrap; }
.button-light:hover { background: var(--teal); }
.text-link { font-weight: 600; text-underline-offset: .25em; }
.text-link:hover { color: var(--blue); }

/* Type */
h1, h2 {
  font-weight: 800; font-stretch: 112%; font-style: italic;
  letter-spacing: -.015em;
}
h2 { font-size: clamp(1.75rem, 3.6vw, 2.5rem); line-height: 1.1; }
h3 { font-size: 1.1875rem; font-weight: 700; font-stretch: 108%; line-height: 1.25; }
.lede { max-width: 56ch; margin-top: 1.5rem; font-size: 1.25rem; color: var(--muted); }
.section-intro { max-width: 56ch; margin-top: 1rem; color: var(--muted); }

/* Home hero */
.hero { padding-top: clamp(3.5rem, 9vw, 7rem); }
.hero h1 {
  max-width: 16ch;
  font-size: clamp(2.5rem, 6.2vw, 4.75rem);
  line-height: 1.03; letter-spacing: -.02em;
}
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.75rem; margin-top: 2.25rem; }
.skyline {
  height: 368px; margin-top: clamp(2rem, 5vw, 4rem);
  background: url("/assets/skyline.svg") center top / auto 100% repeat-x;
}

/* Inner page heading */
.page-head {
  background: var(--mist);
  padding-block: clamp(3rem, 7vw, 5rem);
  border-bottom: 6px solid var(--blue);
  border-image: linear-gradient(90deg, var(--blue), var(--teal)) 1;
}
.page-head h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); line-height: 1.05; }

/* Sections */
.section { padding-block: clamp(4rem, 9vw, 6.5rem); }
.section-mist { background: var(--mist); }
.section-tight { padding-block: clamp(1rem, 3vw, 2rem) clamp(3rem, 7vw, 5rem); }

/* Home: service overview */
.service-list {
  display: grid; grid-template-columns: repeat(2, 1fr);
  column-gap: 4rem; margin-top: 3rem;
}
.service-list li {
  display: grid; grid-template-columns: var(--cell) 1fr; column-gap: 1.25rem;
  align-content: start;
  padding-block: 1.5rem; border-top: 1px solid var(--rule);
}
.service-list li::before {
  content: ""; width: var(--cell); height: var(--cell); margin-top: .15rem;
  background: linear-gradient(var(--blue), var(--teal));
  grid-row: span 2;
}
.service-list h3 a { text-decoration: none; }
.service-list h3 a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: .2em; }
.service-list p { margin-top: .35rem; color: var(--muted); }
.more { margin-top: 2rem; }

/* Home: process */
.steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.5rem;
  margin-top: 3rem; counter-reset: step;
}
.steps li { counter-increment: step; border-top: 4px solid var(--navy); padding-top: 1.25rem; }
.steps li::before {
  content: counter(step);
  display: block; margin-bottom: .75rem;
  font-size: 2.5rem; font-weight: 800; font-stretch: 112%; font-style: italic;
  line-height: 1; color: var(--blue);
}
.steps p { margin-top: .4rem; color: var(--muted); }

/* Services page */
.service {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 2rem 4rem;
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
  border-bottom: 1px solid var(--rule);
}
.service:last-child { border-bottom: 0; }
.service h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.service-short { margin-top: .75rem; font-weight: 600; font-size: 1.125rem; }
.service-short + p { margin-top: .75rem; color: var(--muted); max-width: 54ch; }

.ticks { display: grid; gap: .7rem; align-content: start; }
.service .ticks { padding-top: .5rem; }
.ticks li { position: relative; padding-left: 1.75rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .45em;
  width: 10px; height: 10px;
  background: linear-gradient(var(--blue), var(--teal));
}

/* About page */
.prose { display: grid; gap: 1.25rem; }
.prose p { max-width: 64ch; font-size: 1.1875rem; }
.values { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem 4rem; margin-top: 3rem; }
.values li { border-top: 4px solid var(--navy); padding-top: 1.25rem; }
.values p { margin-top: .4rem; color: var(--muted); max-width: 46ch; }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.5rem 4rem; }
.contact-block { border-top: 4px solid var(--navy); padding-top: 1.5rem; }
.contact-block h2 { font-size: clamp(1.4rem, 2.6vw, 1.75rem); }
.contact-block p { margin-top: .75rem; color: var(--muted); max-width: 40ch; }
.contact-link {
  display: inline-block; margin-top: 1.5rem;
  font-size: clamp(1.35rem, 3vw, 1.875rem);
  font-weight: 700; font-stretch: 108%;
  color: var(--blue);
  text-decoration-thickness: 2px; text-underline-offset: .2em;
  overflow-wrap: anywhere;
}
.contact-link:hover { color: var(--navy); }
.two-col { display: grid; grid-template-columns: repeat(2, 1fr); gap: 3rem 4rem; }
.two-col h2 { font-size: clamp(1.4rem, 2.6vw, 1.75rem); margin-bottom: 1.25rem; }
.two-col p { color: var(--muted); max-width: 48ch; }
.two-col p + p { margin-top: 1rem; }

/* Call to action band */
.cta { background: var(--navy); color: var(--white); padding-block: clamp(3rem, 7vw, 4.5rem); }
.cta-row { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta p { margin-top: .75rem; color: var(--on-navy); max-width: 48ch; }
.cta :focus-visible, .site-footer :focus-visible { outline-color: var(--teal); }

/* Footer */
.site-footer { background: var(--navy); color: var(--on-navy); border-top: 1px solid #2c456a; font-size: .9375rem; }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr .6fr 1.4fr; gap: 2rem;
  padding-block: 2.5rem;
}
.footer-name { color: var(--white); font-weight: 700; font-stretch: 108%; font-size: 1.0625rem; }
.site-footer ul { display: grid; gap: .4rem; align-content: start; }
.site-footer a { color: var(--white); text-underline-offset: .2em; }
.site-footer a:hover { color: var(--teal); }
.footer-legal { border-top: 1px solid #2c456a; padding-block: 1.25rem; font-size: .875rem; }

@media (max-width: 860px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .service-list, .service, .values, .contact-grid, .two-col { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  nav { gap: 1rem; }
  nav .button { display: none; }
  .logo img { width: 7.5rem; }
  .skyline { height: 260px; }
  .steps { grid-template-columns: 1fr; }
  .lede { font-size: 1.125rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
