:root {
  color-scheme: light;
  --navy: #0a1c36;
  --ink: #14233a;
  --muted: #4e5e74;
  --blue: #1354d6;
  --blue-hover: #0b43af;
  --blue-light: #bbd3ff;
  --pale: #f2f6fc;
  --line: #d7e1ef;
  --white: #fff;
  --content: 75rem;
  --gutter: clamp(1.125rem, 4.5vw, 3.25rem);
  font-family: "Segoe UI", system-ui, sans-serif;
  line-height: 1.6;
  background: var(--white);
  color: var(--ink);
}

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

body, h1, h2, h3, p, figure {
  margin: 0;
}

h1, h2, h3 {
  line-height: 1.12;
  letter-spacing: -0.035em;
}

a {
  color: inherit;
  text-underline-offset: 0.22em;
}

a:focus-visible {
  outline: 3px solid #467fee;
  outline-offset: 4px;
}

.container {
  width: min(var(--content), calc(100% - 2 * var(--gutter)));
  margin-inline: auto;
}

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

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

.draft-bar {
  color: var(--muted);
  background: var(--pale);
  border-bottom: 1px solid var(--line);
}

.draft-bar .container {
  display: flex;
  justify-content: flex-end;
}

.draft-bar a {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: 0.875rem;
  font-weight: 650;
}

.masthead {
  min-height: 5rem;
  display: grid;
  align-items: center;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.1rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.85rem, 3vw, 2.3rem);
}

.site-nav a {
  display: flex;
  min-height: 2.75rem;
  align-items: center;
  color: var(--muted);
  font-weight: 650;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--blue);
  text-decoration: underline;
}

.masthead-call {
  justify-self: end;
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.4rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  color: var(--blue-hover);
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
}

.masthead-call:hover {
  border-color: var(--blue);
  background: var(--pale);
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(32rem, 45vw, 39rem);
  overflow: hidden;
  color: var(--white);
  background: var(--navy);
}

.hero-photo,
.hero::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-photo {
  object-fit: cover;
  object-position: 58% 50%;
  z-index: -2;
}

.hero::after {
  content: "";
  z-index: -1;
  background: linear-gradient(90deg, rgba(7, 22, 43, 0.98), rgba(7, 22, 43, 0.87) 38%, rgba(7, 22, 43, 0.18) 80%, rgba(7, 22, 43, 0.13));
}

.hero-inner {
  padding-block: clamp(3.4rem, 7vw, 6.6rem);
}

.hero-copy {
  max-width: 44rem;
}

.eyebrow {
  color: var(--blue-hover);
  font-size: 0.875rem;
  font-weight: 800;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

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

.hero h1 {
  max-width: 16ch;
  margin-block: 0.85rem 1.2rem;
  font-size: clamp(2.65rem, 5.65vw, 5rem);
  line-height: 1.04;
  letter-spacing: -0.047em;
  text-wrap: balance;
}

.hero-intro {
  max-width: 42ch;
  color: #e2ebfa;
  font-size: clamp(1.0625rem, 1.55vw, 1.25rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 3.15rem;
  padding: 0.65rem 1.15rem;
  border: 1px solid transparent;
  border-radius: 0.4rem;
  color: var(--white);
  font-weight: 750;
  text-align: center;
  text-decoration: none;
}

.button-primary {
  background: var(--blue);
}

.button-primary:hover {
  background: var(--blue-hover);
}

.button-outline {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(7, 22, 43, 0.38);
}

.button-outline:hover {
  background: rgba(7, 22, 43, 0.8);
}

.section {
  padding-block: clamp(3rem, 6.3vw, 5.65rem);
}

h2 {
  font-size: clamp(2rem, 3.7vw, 3.2rem);
}

.services {
  background: var(--pale);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: clamp(1.4rem, 3vw, 2rem);
}

.service-card {
  position: relative;
  padding: 2.15rem 1.35rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: var(--white);
}

.service-card::before {
  content: "";
  position: absolute;
  top: 1.28rem;
  left: 1.35rem;
  width: 1.6rem;
  height: 0.19rem;
  border-radius: 0.1rem;
  background: var(--blue);
}

.service-card h3,
.project h3 {
  font-size: 1.25rem;
}

.service-card p,
.about-copy > p,
.project > p:not(.eyebrow) {
  margin-top: 0.6rem;
  color: var(--muted);
}

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.07fr);
  align-items: center;
  gap: clamp(1.55rem, 5vw, 4.6rem);
}

.about-photo {
  aspect-ratio: 5 / 4;
  overflow: hidden;
  border-radius: 0.65rem;
  background: var(--pale);
}

.about-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 39%;
}

.about-copy > p {
  max-width: 49ch;
  font-size: 1.06rem;
}

.project {
  margin-top: 1.4rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--line);
  border-left: 0.23rem solid var(--blue);
  border-radius: 0.4rem;
  background: var(--pale);
}

.project .eyebrow {
  margin-bottom: 0.35rem;
}

.project a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  margin-top: 0.2rem;
  color: var(--blue-hover);
  font-weight: 750;
}

.contact {
  padding-block: clamp(2.45rem, 5vw, 4.15rem);
  color: var(--white);
  background: var(--navy);
}

.contact-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2.6rem;
  flex-wrap: wrap;
}

.contact p {
  max-width: 58ch;
  margin-top: 0.55rem;
  color: #dfe9f8;
}

.contact-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem 1rem;
}

.contact-email {
  display: flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--blue-light);
  overflow-wrap: anywhere;
}

.site-footer {
  border-top: 1px solid var(--line);
}

.footer-layout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  padding-block: 1.35rem;
}

.footer-layout p {
  color: var(--muted);
  font-size: 0.94rem;
}

.footer-layout a {
  color: var(--blue-hover);
  font-weight: 650;
}

@media (max-width: 59rem) {
  .service-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 45rem) {
  .masthead {
    grid-template-columns: minmax(0, 1fr) auto;
    padding-top: 0.75rem;
    gap: 0.6rem;
  }

  .site-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    border-top: 1px solid var(--line);
    gap: 1.6rem;
  }

  .hero {
    min-height: 31rem;
  }

  .hero::after {
    background: linear-gradient(90deg, rgba(7, 22, 43, 0.94), rgba(7, 22, 43, 0.74) 100%);
  }

  .about-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 33rem) {
  .masthead-call {
    padding-inline: 0.65rem;
    font-size: 0.9rem;
  }

  .hero h1 {
    font-size: clamp(2.6rem, 10vw, 3.25rem);
    text-wrap: wrap;
  }

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