:root {
  --blue: #176da5;
  --blue-dark: #0d476e;
  --blue-deep: #092f4a;
  --blue-pale: #eef7fc;
  --ink: #17242d;
  --muted: #60717d;
  --line: #d9e3e8;
  --paper: #ffffff;
  --soft: #f6f9fa;
  --content: 72rem;
  --text: 46rem;
  --gutter: max(1.25rem, calc((100vw - var(--content)) / 2));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.05rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--blue-dark);
  text-underline-offset: .18em;
  text-decoration-thickness: .08em;
}

a:hover {
  color: var(--blue);
}

:focus-visible {
  outline: 3px solid #75b8df;
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 10;
  top: .75rem;
  left: .75rem;
  transform: translateY(-150%);
  padding: .7rem 1rem;
  color: var(--blue-deep);
  background: white;
  border-radius: .3rem;
}

.skip-link:focus {
  transform: none;
}

.site-header,
.hero,
.projects,
.approach,
.about,
.contact-callout,
.subpage,
.site-footer {
  padding-inline: var(--gutter);
}

.site-header {
  min-height: 7.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  color: white;
  background: var(--blue);
}

.brand {
  flex: 0 0 auto;
}

.brand img {
  width: 10.8rem;
}

.site-header nav,
.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: .7rem 1.5rem;
}

.site-header nav a {
  color: white;
  font-size: .95rem;
  font-weight: 650;
  text-decoration: none;
}

.site-header nav a:hover,
.site-header nav a[aria-current="page"] {
  text-decoration: underline;
  text-underline-offset: .35em;
}

.hero {
  min-height: 38rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  color: white;
  background:
    linear-gradient(115deg, rgba(9, 47, 74, .72), rgba(23, 109, 165, .05)),
    var(--blue);
  padding-block: 6rem 7rem;
}

.eyebrow {
  margin: 0 0 .8rem;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #d9effb;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--blue-deep);
  line-height: 1.08;
  letter-spacing: -.025em;
}

h1 {
  max-width: 13ch;
  margin-bottom: 1.6rem;
  color: white;
  font-size: clamp(2.8rem, 7vw, 5.4rem);
  font-weight: 780;
}

h2 {
  max-width: 17ch;
  margin-bottom: 1.2rem;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

h3 {
  margin-bottom: .9rem;
  font-size: clamp(1.45rem, 2.2vw, 2rem);
}

.lead {
  max-width: 49rem;
  margin-bottom: 2rem;
  font-size: clamp(1.12rem, 2vw, 1.35rem);
}

.hero .lead {
  color: #edf7fc;
}

.text-link,
.project-link {
  font-weight: 750;
  text-decoration: none;
}

.hero .text-link {
  color: white;
  border-bottom: 1px solid rgba(255, 255, 255, .55);
}

.projects,
.approach,
.about {
  padding-block: 6.5rem;
}

.about > p {
  max-width: 48rem;
}

.section-heading {
  max-width: var(--text);
  margin-bottom: 3.5rem;
}

.section-heading .eyebrow,
.contact-callout .eyebrow,
.page-intro .eyebrow {
  color: var(--blue);
}

.section-heading > p:last-child {
  max-width: 42rem;
  color: var(--muted);
  font-size: 1.12rem;
}

.projects {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  background: var(--paper);
}

.projects > .section-heading {
  grid-column: 1 / -1;
  width: 100%;
  margin-bottom: 1.5rem;
  background: var(--paper);
}

.project {
  min-height: 22rem;
  padding: clamp(2rem, 4vw, 3.4rem);
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--line);
}

.project-main {
  grid-column: 1 / -1;
  min-height: 27rem;
  padding-right: min(18vw, 13rem);
  background: var(--blue-pale);
}

.project-type {
  margin-bottom: .75rem;
  color: var(--blue);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.project p:not(.project-type) {
  max-width: 44rem;
}

.project-link {
  display: inline-block;
  margin-top: .5rem;
}

.approach {
  background: var(--soft);
}

.approach-intro {
  max-width: 50rem;
  margin-bottom: 3rem;
  font-size: 1.25rem;
}

.principles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin: 0 0 4rem;
  padding: 1px;
  list-style: none;
  background: var(--line);
}

.principles li {
  padding: 2rem;
  background: white;
}

.principles strong,
.principles span {
  display: block;
}

.principles strong {
  margin-bottom: .45rem;
  color: var(--blue-deep);
  font-size: 1.15rem;
}

.principles span {
  color: var(--muted);
}

.technical-base {
  max-width: 58rem;
  margin: 0;
  padding: clamp(2rem, 5vw, 4rem);
  color: white;
  background: var(--blue-deep);
}

.technical-base .eyebrow {
  color: #94cbe9;
}

.technical-base h3 {
  max-width: 24ch;
  color: white;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.technical-base p:not(.eyebrow) {
  color: #deedf5;
}

.contact-callout {
  padding-block: 5rem;
  color: white;
  background: var(--blue);
}

.contact-callout h2 {
  color: white;
}

.contact-callout p:not(.eyebrow) {
  max-width: 46rem;
  color: #e8f5fb;
}

.contact-callout .eyebrow {
  color: #d9effb;;
}

.contact-callout address {
  max-width: 46rem;
  margin-top: 2rem;
  color: white;
  font-style: normal;
  line-height: 1.8;
}

.contact-callout address a {
  color: white;
  font-weight: 750;
  text-decoration-color: rgba(255, 255, 255, .6);
}

.contact-callout address a:hover {
  color: #d9effb;
  text-decoration-color: #d9effb;
  text-decoration-thickness: .12em;
}

.subpage {
  min-height: 62vh;
  padding-block: 5.5rem 7rem;
}

.page-intro {
  max-width: 50rem;
  margin-bottom: 4rem;
}

.page-intro h1 {
  color: var(--blue-deep);
  font-size: clamp(2.6rem, 6vw, 4.6rem);
}

.legal > section:not(.page-intro) {
  max-width: 50rem;
  margin-top: 3.5rem;
}

.legal h2 {
  font-size: 1.7rem;
}

.site-footer {
  min-height: 8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  color: #c5d6e0;
  background: var(--blue-deep);
  font-size: .9rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: white;
}

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

@media (max-width: 760px) {
  :root {
    --gutter: 1.25rem;
  }

  body {
    font-size: 1rem;
  }

  .site-header {
    min-height: 0;
    align-items: flex-start;
    flex-direction: column;
    padding-block: 1.4rem;
  }

  .brand img {
    width: 9rem;
  }

  .site-header nav {
    gap: .65rem 1rem;
  }

  .hero {
    min-height: 0;
    padding-block: 4.5rem 5rem;
  }

  .projects,
  .approach,
  .about {
    padding-block: 4.5rem;
  }

  .projects,
  .principles {
    grid-template-columns: 1fr;
  }

  .project-main {
    grid-column: auto;
    padding-right: 2rem;
  }

  .principles li,
  .project {
    min-height: 0;
  }


  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding-block: 2rem;
  }
}

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