:root {
  --navy: #0b1f33;
  --blue: #2563eb;
  --text: #172033;
  --muted: #596579;
  --light: #f5f8fc;
  --border: #dce4ee;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  color: var(--text);
  background: #fff;
  font: 16px/1.65 Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}

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

.skip-link {
  position: absolute;
  top: -80px;
  left: 20px;
  z-index: 10;
  padding: 10px 18px;
  background: #fff;
}

.skip-link:focus {
  top: 10px;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 21px 0;
}

.brand {
  text-decoration: none;
  line-height: 1.35;
}

.brand strong {
  display: block;
  font-size: 19px;
  letter-spacing: -.5px;
}

.brand span {
  color: var(--muted);
  font-size: 14px;
}

nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 26px;
}

nav a {
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

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

.nav-contact {
  padding: 9px 17px;
  border: 1px solid var(--border);
  border-radius: 4px;
}

/* Shared type and buttons */

h1,
h2,
h3 {
  color: var(--navy);
}

h1 {
  margin: 0 0 24px;
  font-size: clamp(38px, 4.6vw, 62px);
  line-height: 1.08;
  letter-spacing: -2px;
}

h2 {
  margin: 0 0 18px;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.2;
  letter-spacing: -1px;
}

h3 {
  margin: 0 0 12px;
  font-size: 20px;
  line-height: 1.35;
}

p {
  margin: 0 0 18px;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.button {
  display: inline-block;
  padding: 12px 22px;
  color: #fff;
  background: var(--navy);
  border: 1px solid var(--navy);
  border-radius: 4px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}

.button:hover {
  background: #183c60;
}

.button-secondary {
  color: var(--navy);
  background: transparent;
  border-color: #bdcad9;
}

.button-secondary:hover {
  background: #e9eff7;
}

/* Hero */

.hero {
  background: var(--light);
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  align-items: center;
  gap: 75px;
  padding: 88px 0 76px;
}

.lead {
  max-width: 650px;
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero-note {
  margin: 25px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.overview {
  padding: 32px;
  color: #fff;
  background: var(--navy);
  border-radius: 6px;
}

.overview .eyebrow {
  margin-bottom: 25px;
  color: #9fbeff;
}

.overview-item {
  padding: 17px 0;
  border-top: 1px solid #354559;
}

.overview-item strong {
  display: block;
  margin-bottom: 6px;
  font-size: 20px;
  line-height: 1.35;
}

.overview-item span {
  color: #c4cfdf;
  font-size: 15px;
}

/* Sections */

section {
  padding: 76px 0;
}

.tinted {
  background: var(--light);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-intro {
  max-width: 680px;
  margin-bottom: 32px;
  color: var(--muted);
}

/* About */

.about-content h2 {
  max-width: 850px;
  margin-bottom: 28px;
  font-size: clamp(32px, 3.5vw, 46px);
}

.about-copy {
  max-width: 850px;
}

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

.about-copy p:last-child {
  margin-bottom: 0;
}

/* Expertise */

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.expertise-card {
  padding-top: 25px;
  border-top: 3px solid var(--blue);
}

.number {
  display: block;
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 14px;
}

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

/* Selected work */

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

.project {
  display: flex;
  flex-direction: column;
  padding: 30px;
  border: 1px solid var(--border);
  border-radius: 5px;
}

.project .eyebrow {
  margin-bottom: 15px;
  font-size: 12px;
}

.project p:not(.eyebrow) {
  color: var(--muted);
  font-size: 15px;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
  padding-top: 16px;
}

.tags span {
  padding: 4px 10px;
  color: #48566b;
  background: var(--light);
  border: 1px solid var(--border);
  border-radius: 3px;
  font-size: 12px;
}

/* Experience */

.experience-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 50px;
  padding: 30px 0;
  border-top: 1px solid var(--border);
}

.experience-row:last-child {
  padding-bottom: 0;
}

.company,
.experience-row p {
  color: var(--muted);
}

.company {
  font-size: 15px;
}

.experience-row p {
  margin-bottom: 0;
}

/* Tools */

.technology-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: 28px;
  color: var(--muted);
}

/* Contact */

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

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: 72px;
}

.contact h2 {
  color: #fff;
}

.contact-intro p:not(.eyebrow) {
  max-width: 580px;
  color: #c4cfdf;
}

.contact .eyebrow {
  color: #9fbeff;
}

.contact-form {
  padding: 32px;
  color: var(--text);
  background: #fff;
  border-radius: 6px;
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.form-field {
  margin-bottom: 18px;
}

.form-field label {
  display: block;
  margin-bottom: 7px;
  font-size: 14px;
  font-weight: 700;
}

.form-field input,
.form-field textarea {
  display: block;
  width: 100%;
  padding: 11px 12px;
  color: var(--text);
  background: #fff;
  border: 1px solid #b7c4d5;
  border-radius: 4px;
  font: inherit;
}

.form-field textarea {
  min-height: 140px;
  resize: vertical;
}

.form-field input:focus-visible,
.form-field textarea:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

.form-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form .button {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

.contact-form .button:hover {
  background: #1d4ed8;
}

/* Footer */

footer {
  padding: 25px 0;
  color: var(--muted);
  font-size: 14px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

/* Smaller screens */

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.3fr 1fr;
    gap: 35px;
    padding: 60px 0;
  }

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

  nav {
    gap: 15px;
  }
}

@media (max-width: 650px) {
  .container {
    width: calc(100% - 36px);
  }

  .site-header {
    position: static;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
  }

  nav {
    gap: 12px 20px;
  }

  .nav-contact {
    padding: 0;
    border: 0;
  }

  .hero-grid,
  .project-grid,
  .experience-row,
  .contact-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .hero-grid {
    gap: 35px;
    padding: 45px 0;
  }

  h1 {
    letter-spacing: -1.2px;
  }

  .overview {
    padding: 25px;
  }

  section {
    padding: 52px 0;
  }

  .expertise-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .project {
    padding: 24px;
  }

  .experience-row {
    gap: 15px;
  }

  .contact-grid {
    gap: 28px;
  }

  .contact-form {
    padding: 24px;
  }
}

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