@font-face {
  font-family: "Jost";
  src: url("fonts/Jost-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #182a33;
  --muted: #5d6b72;
  --paper: #ffffff;
  --soft: #f2f7fa;
  --wash: #f8fafb;
  --line: #d9e5eb;
  --blue: #1086b4;
  --blue-dark: #0b5f82;
  --blue-deep: #08455f;
  --sand: #dddbcb;
  --sand-light: #f5f1e3;
  --shadow: 0 18px 50px rgba(24, 42, 51, 0.12);
  --container: 1180px;
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: var(--wash);
  font-family: "Jost", Helvetica, Arial, sans-serif;
  line-height: 1.65;
}

main {
  flex: 1;
}

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

a {
  color: var(--blue-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

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

p {
  margin: 0 0 1rem;
  overflow-wrap: break-word;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 400;
  line-height: 1.08;
}

h1 {
  font-size: 4.2rem;
}

h2 {
  font-size: 2.35rem;
}

h3 {
  font-size: 1.45rem;
}

h4 {
  font-size: 1.08rem;
}

ul {
  margin: 0 0 1.2rem;
  padding-left: 1.2rem;
}

li {
  margin-bottom: 0.45rem;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 0.5rem;
  z-index: 100;
  transform: translateY(-160%);
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius);
  color: var(--paper);
  background: var(--ink);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(var(--container), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--blue);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 10px 30px rgba(8, 69, 95, 0.16);
}

.site-nav {
  position: relative;
  width: min(var(--container), calc(100% - 40px));
  min-height: 74px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand img {
  width: 250px;
  max-width: 48vw;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
}

.nav-link,
.nav-cta {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius);
  color: var(--paper);
  text-decoration: none;
  line-height: 1.2;
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--paper);
  background: rgba(255, 255, 255, 0.16);
}

.nav-cta {
  margin-left: 0.35rem;
  color: var(--ink);
  background: var(--sand);
}

.nav-cta:hover,
.nav-cta.is-active {
  color: var(--ink);
  background: var(--sand-light);
}

.nav-toggle {
  display: none;
  min-height: 42px;
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: var(--radius);
  color: var(--paper);
  background: rgba(255, 255, 255, 0.1);
  font: inherit;
  cursor: pointer;
}

.hero {
  position: relative;
  isolation: isolate;
  height: calc(100vh - 132px);
  height: calc(100svh - 132px);
  min-height: 430px;
  max-height: 760px;
  display: flex;
  align-items: flex-end;
  padding: 6rem 0 4.75rem;
  color: var(--paper);
  background-color: var(--ink);
  background-image:
    linear-gradient(90deg, rgba(8, 69, 95, 0.9), rgba(8, 69, 95, 0.58) 48%, rgba(8, 69, 95, 0.18)),
    var(--hero-image);
  background-size: cover;
  background-position: center;
}

.hero--page {
  height: 500px;
  min-height: 390px;
  max-height: 560px;
}

.page-home .hero {
  --hero-image: url("assets/image.jpg");
}

.page-strategy .hero {
  --hero-image: url("assets/kaleidico-26MJGnCM0Wc-unsplash_medium.jpeg");
}

.page-engineering .hero {
  --hero-image: url("assets/jared-murray-NSuufgf-BME-unsplash_medium_horiz.jpeg");
}

.page-references .hero {
  --hero-image: url("assets/gabriel-sollmann-Y7d265_7i08-unsplash_medium.jpeg");
}

.page-404 .hero {
  --hero-image: url("assets/martin-adams-e6rApz2Awog-unsplash_Medium.jpeg");
}

.hero-content {
  width: min(780px, 100%);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.28);
}

.hero h1 {
  max-width: 11ch;
  margin-bottom: 1.2rem;
}

.hero--page h1 {
  max-width: 14ch;
}

.hero h2,
.hero .lead {
  max-width: 48rem;
  color: rgba(255, 255, 255, 0.9);
}

.hero h2 {
  margin-bottom: 1.2rem;
  font-size: 1.7rem;
  line-height: 1.35;
}

.hero .lead {
  margin-bottom: 1.6rem;
  font-size: 1.08rem;
}

.section {
  padding: 6rem 0;
}

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

.section--paper {
  background: var(--paper);
}

.section-header {
  max-width: 760px;
  margin-bottom: 2.5rem;
}

.section-header.center {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.section-header h2 {
  margin-bottom: 0.85rem;
}

.section-header p {
  color: var(--muted);
  font-size: 1.08rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.72rem 1.05rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--paper);
  background: var(--blue);
  text-decoration: none;
  line-height: 1.2;
  transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease;
}

.btn:hover {
  color: var(--paper);
  background: var(--blue-dark);
}

.btn-secondary {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--line);
}

.btn-secondary:hover {
  color: var(--paper);
  background: var(--blue-dark);
  border-color: var(--blue-dark);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.service-card,
.topic-card,
.example-card,
.reference-group,
.contact-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.service-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.service-card img {
  width: 100%;
  height: 290px;
  object-fit: cover;
}

.service-card-body {
  flex: 1;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.service-card h3 {
  margin-bottom: 1rem;
}

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

.service-card .btn {
  margin-top: auto;
}

.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.topic-card {
  min-height: 132px;
  padding: 1.35rem;
  display: flex;
  align-items: flex-end;
  border-top: 4px solid var(--blue);
  box-shadow: none;
}

.example-stack {
  display: grid;
  gap: 1rem;
}

.example-card {
  padding: 1.6rem;
  box-shadow: none;
}

.example-card h3 {
  margin-bottom: 0.8rem;
}

.example-card p,
.example-card li {
  color: var(--muted);
}

.prose {
  max-width: 780px;
  color: var(--muted);
}

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  color: var(--ink);
}

.prose h1 {
  margin-bottom: 2rem;
}

.prose h2 {
  margin: 2.2rem 0 1rem;
  font-size: 2rem;
}

.prose h3 {
  margin: 1.7rem 0 0.65rem;
}

.prose h4 {
  margin: 1.2rem 0 0.45rem;
  line-height: 1.35;
}

.prose p + p {
  margin-top: 1rem;
}

.prose a {
  font-weight: 400;
  overflow-wrap: anywhere;
}

.copy-section {
  display: grid;
  grid-template-columns: minmax(220px, 0.34fr) minmax(0, 0.66fr);
  gap: 3rem;
}

.copy-aside {
  color: var(--muted);
}

.copy-aside h2 {
  color: var(--ink);
  font-size: 2rem;
}

.cta-row {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.reference-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.reference-group {
  padding: 1.5rem;
  box-shadow: none;
}

.reference-group h2 {
  margin-bottom: 1rem;
  font-size: 1.6rem;
}

.reference-group ul {
  padding-left: 0;
  list-style: none;
}

.reference-group li {
  padding: 0.6rem 0;
  margin: 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.reference-group li:last-child {
  border-bottom: 0;
}

.note {
  margin-top: 1.5rem;
  color: var(--muted);
}

.contact-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 3rem;
  align-items: start;
}

.contact-panel {
  width: 220px;
  padding: 1rem;
  box-shadow: none;
}

.contact-panel img {
  width: 165px;
  height: 165px;
  margin: 0 auto 0.9rem;
  border-radius: var(--radius);
}

.contact-panel p {
  margin-bottom: 0.8rem;
  text-align: center;
  color: var(--muted);
}

.linkedin-button {
  width: 100%;
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  color: var(--paper);
  background: #0077b5;
  text-decoration: none;
}

.linkedin-button:hover {
  color: var(--paper);
  background: var(--ink);
}

.plain-page {
  padding: 7rem 0 5rem;
  background: var(--paper);
}

.plain-page .prose {
  max-width: 900px;
}

.site-footer {
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem 2rem;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
}

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

@media (max-width: 980px) {
  h1 {
    font-size: 3.2rem;
  }

  h2 {
    font-size: 2rem;
  }

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

  .copy-section,
  .contact-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 860px) {
  .site-nav {
    min-height: 68px;
  }

  .brand img {
    width: 210px;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
  }

  .nav-menu {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.65rem;
    border: 1px solid var(--blue-dark);
    border-top: 0;
    border-radius: 0 0 var(--radius) var(--radius);
    background: var(--blue);
    box-shadow: 0 18px 50px rgba(8, 69, 95, 0.22);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .nav-link,
  .nav-cta {
    justify-content: flex-start;
    width: 100%;
    margin-left: 0;
  }

  .hero {
    height: calc(100vh - 118px);
    height: calc(100svh - 118px);
    min-height: 410px;
    padding: 4.5rem 0 3.5rem;
    background-image:
      linear-gradient(90deg, rgba(8, 69, 95, 0.92), rgba(8, 69, 95, 0.66) 56%, rgba(8, 69, 95, 0.34)),
      var(--hero-image);
  }

  .hero--page {
    height: 440px;
  }

  .page-home .hero {
    --hero-image: url("assets/image-mobile.jpg");
  }

  .service-grid,
  .topic-grid,
  .reference-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .container,
  .site-nav {
    width: min(100% - 28px, var(--container));
  }

  h1 {
    font-size: 2.55rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  .hero h2 {
    font-size: 1.28rem;
  }

  .hero .lead {
    font-size: 1rem;
  }

  .section,
  .plain-page {
    padding: 4rem 0;
  }

  .service-card img {
    height: 220px;
  }

  .service-card-body,
  .example-card,
  .reference-group {
    padding: 1.25rem;
  }
}

@media (max-height: 620px) {
  .hero {
    min-height: 0;
    padding-top: 2.5rem;
    padding-bottom: 2rem;
  }

  .hero h1 {
    font-size: 2.55rem;
  }

  .hero h2 {
    margin-bottom: 0.85rem;
    font-size: 1.18rem;
  }

  .hero .lead {
    margin-bottom: 1rem;
  }
}
