@font-face {
  font-family: Oswald;
  src: url("assets/oswald.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("assets/dm-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --blue: #234f6b;
  --deep-blue: #152d3d;
  --blue-tint: #d4e7f2;
  --ink: #212529;
  --charcoal: #343a40;
  --muted: #465762;
  --wash: #f0f3f5;
  --line: #d8e1e6;
  --white: #fff;
  --visited: #375369;
  --focus: #1776a0;
  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 76px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 20px; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font: 400 1rem/1.55 "DM Sans", sans-serif;
  -webkit-text-size-adjust: 100%;
}

img { display: block; max-width: 100%; height: auto; }
figure, p, h1, h2, h3 { margin: 0; }
h1, h2, h3 { font-family: Oswald, "Arial Narrow", sans-serif; font-weight: 600; text-wrap: balance; }
h2 { font-size: clamp(2.15rem, 4vw, 3.65rem); line-height: 1.12; }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.85rem); line-height: 1.2; }
a { color: inherit; text-underline-offset: 4px; }
a:visited { color: var(--visited); }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
::selection { color: var(--white); background: var(--blue); }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.skip { position: fixed; top: 12px; left: 12px; z-index: 5; padding: 12px; color: var(--white); background: var(--blue); transform: translateY(-160%); }
.skip:focus { transform: none; }

.utility { background: var(--wash); color: var(--blue); font-size: .875rem; font-weight: 700; }
.utility-inner, .nav-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.utility-inner > a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; white-space: nowrap; }
.nav-row { position: relative; min-height: 86px; }
.brand { display: block; flex: 0 1 238px; }
.brand img { width: 238px; }
.desktop-nav { display: flex; align-items: center; gap: clamp(24px, 3vw, 44px); font-weight: 700; }
.desktop-nav > a:not(.button) { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.desktop-nav > a:not(.button):hover, .utility a:hover { text-decoration: underline; }
.menu { display: none; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  min-height: 52px;
  padding: 11px 19px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
}
.button span, .text-link span { font-size: 1.15em; }
.button-outline { color: var(--blue); border-color: var(--blue); min-height: 46px; }
.button-outline:hover { background: var(--wash); }
.button-light { color: var(--deep-blue); background: var(--white); }
.button-light:hover { background: var(--blue-tint); }
.button-blue { color: var(--white); background: var(--blue); }
.button-blue:visited { background: var(--deep-blue); color: var(--blue-tint); }
.button-blue:hover { background: var(--deep-blue); }

.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--deep-blue); color: var(--white); }
.hero-inner { min-height: clamp(510px, 43vw, 660px); display: flex; align-items: center; }
.hero-copy { width: 57%; padding: 72px 0; }
.hero h1 {
  font-size: clamp(2.85rem, 5.05vw, 5.65rem);
  line-height: 1.04;
  letter-spacing: -.025em;
  text-wrap: initial;
}
.hero p { max-width: 43ch; margin-top: 26px; color: var(--blue-tint); font-size: clamp(1.05rem, 1.5vw, 1.22rem); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 25px; margin-top: 30px; }
.hero-link { display: inline-flex; min-height: 44px; align-items: center; gap: 10px; font-weight: 700; }
.hero-link:visited, .footer a:visited { color: var(--blue-tint); }
.hero :focus-visible, .footer :focus-visible { outline-color: var(--blue-tint); }
.hero-photo { position: absolute; z-index: -1; inset: 0 0 0 46%; }
.hero-photo::after { position: absolute; inset: 0; background: linear-gradient(90deg, var(--deep-blue), transparent 28%), linear-gradient(0deg, rgb(13 29 40 / .72), transparent 37%); content: ""; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 45% 54%; }
.hero-photo figcaption { position: absolute; right: var(--gutter); bottom: 24px; z-index: 1; color: var(--white); font-size: .875rem; font-weight: 700; text-shadow: 0 1px 3px var(--ink); }
.hero-photo figcaption span { margin-inline: .3em; }
.hero-intro { display: none; }

.credentials { display: grid; grid-template-columns: repeat(3, 1fr); padding: 0; margin-block: 0; list-style: none; border-bottom: 1px solid var(--line); }
.credentials li { position: relative; padding: 25px 16px; text-align: center; color: var(--blue); font-weight: 700; }
.credentials li + li::before { position: absolute; inset: 20px auto 20px 0; border-left: 1px solid var(--line); content: ""; }
.solutions { padding-block: clamp(64px, 7vw, 104px); }
.section-intro { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 14px 30px; margin-bottom: 34px; }
.section-intro p, .services p, .project p, .contact p { color: var(--muted); }
.section-intro p { max-width: 41ch; }
.services { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.services img { width: 100%; aspect-ratio: 8 / 5; object-fit: cover; background: var(--wash); }
.services h3 { margin-top: 20px; }
.services p { margin-top: 8px; max-width: 30ch; }

.project { background: var(--wash); }
.project-inner { display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: clamp(36px, 7vw, 100px); padding-block: clamp(40px, 6vw, 80px); }
.project img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.project-copy p, .contact p { max-width: 51ch; margin-top: 16px; }
.text-link { display: inline-flex; min-height: 44px; align-items: center; gap: 10px; color: var(--blue); font-weight: 700; }
.project .text-link { margin-top: 16px; }
.contact { display: grid; grid-template-columns: 1fr auto; gap: 24px 60px; align-items: center; padding-block: clamp(56px, 7vw, 96px); }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; }
.office-list {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  margin-top: 10px;
  background: var(--line);
  border-top: 3px solid var(--blue);
}
.office { padding: clamp(20px, 4vw, 42px); background: var(--wash); }
.office h3 { color: var(--deep-blue); }
.office address { margin: 12px 0 4px; color: var(--muted); font-style: normal; }
.footer { background: var(--charcoal); color: var(--wash); }
.footer-grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr 1.3fr; gap: 30px; padding-block: 50px 36px; }
.footer-brand { align-self: start; width: min(100%, 210px); }
.footer h2 { margin-bottom: 10px; font: 700 1rem/1.4 "DM Sans", sans-serif; }
.footer address { color: var(--wash); font-style: normal; }
.footer a { display: inline-flex; align-items: center; min-height: 44px; overflow-wrap: anywhere; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 8px; border-top: 1px solid #606d76; }
.footer-bottom nav { display: flex; gap: 18px; }

@media (max-width: 1000px) {
  .brand { flex-basis: 218px; }
  .desktop-nav { gap: 20px; }
  .button-outline { white-space: nowrap; }
  .hero-copy { width: 59%; }
  .hero-photo { inset-inline-start: 52%; }
  .hero h1 { font-size: clamp(2.7rem, 6vw, 4.35rem); }
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 24px; }
  .contact { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .utility-inner { gap: 8px; }
  .utility { font-size: .75rem; }
  .nav-row { min-height: 72px; }
  .brand { flex-basis: 188px; }
  .desktop-nav { display: none; }
  .menu { display: block; }
  .menu summary { display: flex; min-height: 44px; min-width: 44px; align-items: center; gap: 9px; cursor: pointer; list-style: none; color: var(--blue); font-weight: 700; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu summary::after { width: 13px; height: 9px; border-block: 2px solid currentColor; content: ""; }
  .menu[open] summary::after { height: 2px; border-bottom: 0; }
  .menu nav { position: absolute; z-index: 3; inset: 100% 0 auto; background: var(--white); border: 1px solid var(--line); }
  .menu nav a { display: flex; align-items: center; gap: 10px; min-height: 48px; padding-inline: 16px; text-decoration: none; font-weight: 700; }
  .menu nav a:hover { background: var(--wash); text-decoration: underline; }
  .menu nav a + a { border-top: 1px solid var(--line); }
  .hero-inner { min-height: 0; }
  .hero-copy { width: 100%; padding: 48px 0 36px; }
  .hero h1 { font-size: clamp(2.3rem, 9vw, 4.35rem); }
  .hero p { margin-top: 18px; }
  .actions { margin-top: 24px; gap: 6px 20px; }
  .hero-photo { position: relative; inset: auto; height: clamp(225px, 52vw, 380px); }
  .hero-photo::after { background: linear-gradient(0deg, rgb(13 29 40 / .74), transparent 36%); }
  .hero-photo figcaption { right: var(--gutter); bottom: 12px; }
  .credentials { grid-template-columns: 1fr; padding-block: 12px; }
  .credentials li { padding: 8px 0 8px 18px; text-align: left; }
  .credentials li::after { position: absolute; left: 0; top: 18px; width: 7px; height: 7px; background: var(--blue); content: ""; }
  .credentials li + li::before { content: none; }
  .project-inner { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 480px) {
  .services { grid-template-columns: 1fr; gap: 32px; }
  .office-list { grid-template-columns: 1fr; }
  .services h3 { margin-top: 13px; }
  .services p { max-width: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (prefers-reduced-motion: no-preference) {
  .hero-intro {
    position: absolute;
    z-index: 2;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 24px;
    color: var(--white);
    background: var(--deep-blue);
    pointer-events: none;
    animation: skyline-reveal 1.85s ease-in-out both;
  }
  .hero:focus-within .hero-intro { display: none; }
  .skyline { display: block; width: min(82%, 850px); height: auto; }
  .skyline-buildings, .skyline-bridge {
    stroke-dasharray: 1;
    animation: skyline-draw .9s ease-out both;
  }
  .skyline-bridge { animation-delay: .15s; }
  .skyline-details { animation: skyline-details .45s .4s ease-out both; }
  @keyframes skyline-draw {
    from { stroke-dashoffset: 1; }
    to { stroke-dashoffset: 0; }
  }
  @keyframes skyline-details {
    from { opacity: 0; }
    to { opacity: .58; }
  }
  @keyframes skyline-reveal {
    0%, 57% { opacity: 1; visibility: visible; }
    99% { visibility: visible; }
    100% { opacity: 0; visibility: hidden; }
  }
}
