:root {
  --navy: #132131;
  --navy-deep: #0b1824;
  --blue: #4d8fc6;
  --blue-deep: #2f6f9f;
  --blue-soft: #e8f2f8;
  --green: #8eb553;
  --amber: #d49a4a;
  --paper: #ffffff;
  --offwhite: #f4f6f7;
  --ink: #132131;
  --ink-soft: #465563;
  --rule: #d9e0e4;
  --teal: var(--blue);
  --teal-deep: var(--blue-deep);
  --teal-soft: var(--blue-soft);
}

html {
  scroll-padding-top: 88px;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: "Montserrat", "Avenir Next", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
}

html.js .page {
  display: none;
}

html.js .page.on {
  display: block;
}

h1,
h2,
h3,
h4,
.btn,
.navlink {
  font-family: inherit;
  letter-spacing: 0;
}

.wrap {
  width: min(100%, 1180px);
  max-width: none;
  padding-inline: 30px;
}

.wrap.narrow {
  width: min(100%, 820px);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 3px solid var(--blue);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 30px rgba(5, 15, 24, 0.14);
}

.topbar .wrap {
  display: grid;
  grid-template-columns: minmax(220px, 300px) 1fr auto;
  min-height: 88px;
  padding-block: 14px;
  gap: 28px;
  flex-wrap: nowrap;
}

.brand {
  position: relative;
  display: block;
  width: min(100%, 235px);
  min-width: 0;
  aspect-ratio: 1265 / 323;
  overflow: hidden;
  background: #ffffff;
}

.brand picture,
.footer-brand picture {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
}

.brand img,
.footer-brand img {
  position: absolute;
  top: -89.2%;
  left: -21.5%;
  display: block;
  width: 140.24%;
  max-width: none;
  height: auto;
}

.navlinks {
  justify-content: flex-end;
  gap: 22px;
  flex-wrap: nowrap;
}

.navlink {
  position: relative;
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

.navlink:hover,
.navlink.active {
  color: var(--blue-deep);
}

.navlink::after {
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  background: var(--blue);
  content: "";
  opacity: 0;
  transform: scaleX(0.4);
  transition: opacity 160ms ease, transform 160ms ease;
}

.navlink:hover::after,
.navlink.active::after {
  opacity: 1;
  transform: scaleX(1);
}

.btn-cta,
.btn {
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.btn-cta {
  padding: 12px 20px;
  background: var(--blue);
}

.btn-cta:hover,
.btn-solid:hover {
  background: var(--blue-deep);
  border-color: var(--blue-deep);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid rgba(19, 33, 49, 0.3);
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: var(--navy);
  transition: transform 160ms ease, opacity 160ms ease;
}

.hero-section {
  display: flex;
  min-height: 650px;
  align-items: center;
  padding: 90px 0 96px;
  background-position: center;
}

.hero-ring {
  display: none;
}

.hero-inner {
  width: 100%;
}

.hero-tag,
.eyebrow,
.param {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.hero-tag {
  display: inline-block;
  max-width: 100%;
  margin-bottom: 22px;
  padding: 6px 9px;
  border-left: 4px solid var(--blue);
  background: rgba(6, 18, 28, 0.54);
  color: #8bc1e9;
}

.hero-title {
  max-width: 15ch;
  margin-bottom: 22px;
  color: #fff;
  font-size: clamp(38px, 5vw, 58px);
  font-weight: 800;
  line-height: 1.06;
}

.hero-title em {
  color: #75b9e9;
}

.hero-sub {
  max-width: 62ch;
  margin-bottom: 32px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
}

.section {
  padding: 76px 0;
}

.section-alt {
  background: #edf1f3;
}

.eyebrow {
  color: var(--blue-deep);
}

.section h2 {
  max-width: 24ch;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 800;
  line-height: 1.14;
}

.section .lead {
  color: var(--ink-soft);
  font-size: 17px;
}

.tile-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.tile,
.proj-card,
.blog-card {
  border: 1px solid var(--rule);
  border-top: 4px solid var(--blue);
  border-radius: 3px;
  box-shadow: 0 10px 28px rgba(19, 33, 49, 0.06);
}

.tile {
  min-height: 100%;
  padding: 20px;
  text-align: left;
}

.tile:hover,
.tile:focus-visible,
.blog-card:hover,
.blog-card:focus-visible {
  border-color: var(--blue);
  transform: translateY(-2px);
}

.tile-photo,
.blog-photo {
  margin: -20px -20px 18px;
}

.fh-picture {
  display: block;
  width: 100%;
  height: 100%;
}

.fh-picture img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tile h2,
.tile h3 {
  font-size: 17px;
  font-weight: 800;
}

.tag {
  border-radius: 2px;
  color: var(--blue-deep);
  background: var(--blue-soft);
}

.unknown {
  border: 1px solid #d7dfe3;
  border-left: 5px solid var(--amber);
  border-radius: 2px;
  background: #fff;
}

.unknown p,
.unknown .go {
  color: #77501f;
}

.split2col {
  gap: 56px;
}

.photo-placeholder,
.symptom-photo,
.proj-card,
.proj-photo,
.blog-card,
.cta-block,
.pull,
.audience,
.note,
.step,
.split .col {
  border-radius: 3px;
}

.proj-grid,
.blog-grid {
  gap: 18px;
}

.proj-card {
  border-top-color: var(--green);
}

.proj-body {
  padding: 20px;
}

.head {
  padding: 64px 0 50px;
  border-bottom: 5px solid var(--blue);
  background: #e9eef1;
}

.head h1 {
  max-width: 22ch;
  color: var(--navy);
  font-size: clamp(32px, 5vw, 48px);
  font-weight: 800;
}

.head .deck {
  max-width: 58ch;
  color: var(--ink-soft);
}

.param {
  border-radius: 2px;
}

.body-section h2,
.body-section h3 {
  font-weight: 800;
}

.cta-block {
  border-top: 5px solid var(--blue);
  background: #1b435a;
}

.cta-block .btn-outline {
  border-color: rgba(255, 255, 255, 0.65);
}

footer {
  border-top: 3px solid var(--blue);
  background: var(--navy-deep);
}

.footer-brand {
  position: relative;
  display: block;
  width: min(100%, 310px);
  aspect-ratio: 1265 / 323;
  overflow: hidden;
  margin-bottom: 18px;
  background: #ffffff;
}

.footer-brand img {
  width: 140.24%;
}

.social a {
  border-radius: 2px;
  font-weight: 800;
}

.footer-bottom a {
  color: #a7cde7;
  text-decoration: none;
}

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

@media (max-width: 1040px) {
  .topbar .wrap {
    grid-template-columns: minmax(210px, 270px) 1fr auto;
    gap: 18px;
  }

  .navlinks {
    gap: 14px;
  }

  .navlink {
    font-size: 12px;
  }

  .btn-cta {
    display: none;
  }
}

@media (max-width: 820px) {
  html {
    scroll-padding-top: 76px;
  }

  .brand {
    width: min(100%, 220px);
  }

  .topbar .wrap {
    position: relative;
    grid-template-columns: minmax(0, 280px) 44px;
    min-height: 76px;
    justify-content: space-between;
    padding-block: 10px;
  }

  .menu-toggle {
    display: block;
    justify-self: end;
  }

  .navlinks {
    position: absolute;
    top: calc(100% + 3px);
    right: 0;
    left: 0;
    display: none;
    padding: 14px 24px 22px;
    border-bottom: 3px solid var(--blue);
    background: rgba(255, 255, 255, 0.99);
    box-shadow: 0 18px 30px rgba(5, 15, 24, 0.22);
  }

  .navlinks.open {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .navlink {
    padding: 10px 4px;
    font-size: 12px;
  }

  .navlink::after {
    display: none;
  }

  .hero-section {
    min-height: 590px;
    padding: 72px 0;
    background-position: 58% center;
  }

  .tile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .wrap,
  .topbar .wrap {
    padding-inline: 20px;
  }

  .topbar .wrap {
    grid-template-columns: minmax(0, 245px) 44px;
  }

  .hero-section {
    min-height: calc(100svh - 120px);
    padding: 56px 0 62px;
  }

  .hero-tag {
    font-size: 10px;
    letter-spacing: 1.2px;
  }

  .hero-title {
    max-width: 12ch;
    font-size: 38px;
  }

  .hero-sub {
    font-size: 16px;
  }

  .actions,
  .cta-block .actions {
    display: grid;
    width: 100%;
    gap: 10px;
  }

  .btn,
  .btn-cta {
    width: 100%;
  }

  .section {
    padding: 56px 0;
  }

  .tile-grid,
  .proj-grid,
  .blog-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .tile {
    min-height: 0;
  }

  .unknown {
    align-items: flex-start;
  }

  .head {
    padding: 48px 0 38px;
  }

  .cta-block {
    padding: 28px 22px;
  }

  .footer-bottom {
    display: grid;
  }
}

@media (max-width: 380px) {
  .topbar .wrap {
    grid-template-columns: minmax(0, 220px) 42px;
  }

  .hero-title {
    margin-bottom: 16px;
    font-size: 32px;
  }

  .hero-section {
    padding: 36px 0 24px;
  }

  .hero-tag {
    margin-bottom: 14px;
  }

  .hero-sub {
    margin-bottom: 22px;
    font-size: 15px;
    line-height: 1.45;
  }

  .hero-section .actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-section .btn {
    min-width: 0;
    padding: 13px 8px;
    font-size: 11px;
  }

  .navlinks.open {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .navlink::after,
  .menu-toggle span {
    transition: none;
  }
}
