:root {
  --black: #000000;
  --white: #FFFFFF;
  --blue: #1F4E79;
  --blue-dark: #163A5C;
  --gray: #F2F2F2;
  --line: #DDDDDD;
  --text: #111111;
  --muted: #444444;
  --font: Lato, "Segoe UI", "Helvetica Neue", Calibri, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--white); line-height: 1.6; font-size: 17px; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
a:hover { color: var(--blue-dark); }
:focus-visible { outline: 3px solid #5B9BD5; outline-offset: 2px; }
h1, h2, h3 { line-height: 1.15; margin: 0; }
p { margin: 0; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--white); color: var(--black); padding: 12px 16px; z-index: 100; }
.skip:focus { left: 8px; top: 8px; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }

/* Header */
.site-header { background: var(--black); border-bottom: 3px solid var(--blue); position: relative; z-index: 10; }
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand img { height: 72px; width: auto; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; }
.nav-links a:not(.btn) { color: var(--white); text-decoration: none; font-size: 15px; padding: 10px 0; }
.nav-links a:not(.btn):hover, .nav-links a[aria-current="page"]:not(.btn) { text-decoration: underline; text-underline-offset: 6px; }
.nav-toggle, .nav-toggle-label { display: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 12px 20px; font-family: var(--font); font-size: 15px; font-weight: 700; text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn-lg { font-size: 16px; padding: 14px 28px; }
.btn-accent { background: var(--blue); color: var(--white); }
.btn-accent:hover { background: var(--blue-dark); color: var(--white); }
.btn-outline { border-color: var(--white); color: var(--white); background: transparent; }
.btn-outline:hover { background: var(--white); color: var(--black); }
.btn-dark-outline { border-color: var(--black); color: var(--black); }
.btn-dark-outline:hover { background: var(--black); color: var(--white); }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--black); color: var(--white); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-shade { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.62); }
.hero-inner { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px; padding-top: 140px; padding-bottom: 150px; }
.hero h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 900; text-transform: uppercase; letter-spacing: 1px; max-width: 900px; }
.hero .btn-row { justify-content: center; margin-top: 8px; }
.lead { font-size: clamp(17px, 2vw, 20px); line-height: 1.6; color: #E6E6E6; max-width: 760px; }

/* Bands */
.band { padding: 96px 0; }
.band-gray { background: var(--gray); }
.band-dark { background: var(--black); color: var(--white); }
.band-dark .lead, .band-dark p { color: #E6E6E6; }
.stack { display: flex; flex-direction: column; gap: 48px; }
.stack-sm { display: flex; flex-direction: column; gap: 18px; }

.sub-hero { padding-top: 72px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 20px; }
.sub-hero h1 { font-size: clamp(32px, 4.5vw, 44px); font-weight: 900; text-transform: uppercase; letter-spacing: 1px; }

.section-head { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.section-head p { font-size: 18px; color: var(--muted); }
.row-head { max-width: none; flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; }
.row-head > div { display: flex; flex-direction: column; gap: 16px; }
.rule { display: block; width: 64px; height: 2px; background: var(--blue); }
h2 { font-size: clamp(26px, 3vw, 32px); font-weight: 900; text-transform: uppercase; letter-spacing: 1px; }
.text-link { font-weight: 700; }

/* Grids */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 48px; }
.grid-2.gap-sm { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 18px; }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }

.tile { background: var(--gray); padding: 32px; display: flex; flex-direction: column; gap: 12px; }
.tile-white { background: var(--white); }
.tile h3, .tile .h3 { font-size: 20px; font-weight: 700; color: var(--blue); text-transform: none; letter-spacing: 0; }
.tile p { color: var(--muted); font-size: 16px; }
.steps { list-style: none; margin: 0; padding: 0; }
.steps h3 { color: var(--text); font-size: 18px; }
.step-num { font-size: 36px; font-weight: 900; color: var(--blue); line-height: 1; }

/* Cards and projects */
.card { border: 1px solid var(--line); display: flex; flex-direction: column; }
.card-body { padding: 24px; display: flex; flex-direction: column; gap: 8px; }
.card-body h3 { font-size: 20px; font-weight: 700; }
.card-body p:last-child { color: var(--muted); font-size: 16px; }
.loc { font-size: 13px; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: 1px; }
.photo-ph { height: 220px; background: var(--gray); display: flex; align-items: center; justify-content: center; color: #555555; font-size: 14px; text-align: center; padding: 16px; }
.photo-lg { height: 340px; }

.projects { display: flex; flex-direction: column; gap: 56px; }
.project { display: block; padding-bottom: 48px; border-bottom: 1px solid var(--line); max-width: 820px; }
.project:last-child { border-bottom: 0; padding-bottom: 0; }
.project-body { display: flex; flex-direction: column; gap: 16px; }
.project-body h2 { font-size: 30px; text-transform: none; letter-spacing: 0; }
.project-body > p { color: var(--muted); line-height: 1.7; }
.tags { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.tag { font-size: 13px; font-weight: 700; padding: 4px 10px; }
.tag-solid { background: var(--blue); color: var(--white); }
.tag-outline { background: var(--gray); border: 1px solid #BBBBBB; padding: 3px 10px; }
.facts { display: flex; flex-wrap: wrap; gap: 32px; margin: 0; padding-top: 12px; border-top: 1px solid var(--line); }
.facts dt { font-size: 13px; color: #555555; }
.facts dd { margin: 0; font-size: 20px; font-weight: 700; }

/* What we do rows */
.svc-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 32px; padding: 40px 0; border-bottom: 1px solid var(--line); }
.svc-row:last-child { border-bottom: 0; }
.svc-row > div { display: flex; flex-direction: column; gap: 8px; }
.svc-row .step-num { font-size: 14px; }
.svc-row h2 { font-size: 26px; }
.svc-row p { color: var(--muted); line-height: 1.7; }

/* CTA */
.cta-center { padding-top: 88px; padding-bottom: 88px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.cta-center .lead { max-width: 680px; }
.cta-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.band-dark .cta-row { padding-top: 80px; padding-bottom: 80px; }
.cta-row > div { display: flex; flex-direction: column; gap: 12px; max-width: 640px; }
.cta-row h2 { font-size: 28px; }

/* People */
.person { display: flex; flex-direction: column; gap: 12px; }
.person img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; margin-bottom: 8px; }
.person h2 { font-size: 26px; text-transform: none; letter-spacing: 0; }
.role { font-size: 15px; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: 1px; }
.person p:last-child { color: var(--muted); line-height: 1.7; }

/* Form */
.contact { align-items: start; }
.contact p { color: var(--muted); }
.form { background: var(--white); padding: 36px; display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 700; }
.field input, .field select, .field textarea { font: inherit; font-size: 16px; padding: 12px; border: 1px solid #888888; min-height: 44px; background: var(--white); color: var(--text); border-radius: 0; }
.field textarea { resize: vertical; }
.form .btn { align-self: flex-start; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Footer */
.site-footer { background: #1A1A1A; color: #CCCCCC; border-top: 3px solid var(--blue); font-size: 14px; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; padding-top: 40px; padding-bottom: 24px; }
.footer-name { color: var(--white); font-weight: 900; letter-spacing: 1px; text-transform: uppercase; }
.site-footer a { color: #CCCCCC; }
.site-footer a:hover { color: var(--white); }
.footer-links { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.footer-legal { padding-bottom: 32px; }

/* Mobile */
@media (max-width: 860px) {
  .wrap { padding-left: 20px; padding-right: 20px; }
  .band { padding: 64px 0; }
  .brand img { height: 56px; }
  .nav-toggle-label { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; cursor: pointer; }
  .nav-toggle-label span, .nav-toggle-label span::before, .nav-toggle-label span::after { display: block; width: 24px; height: 2px; background: var(--white); position: relative; content: ""; }
  .nav-toggle-label span::before { position: absolute; top: -8px; }
  .nav-toggle-label span::after { position: absolute; top: 8px; }
  .nav-toggle { display: block; position: absolute; opacity: 0; width: 44px; height: 44px; right: 20px; top: 18px; margin: 0; cursor: pointer; z-index: 2; }
  .nav-links { display: none; width: 100%; flex-direction: column; align-items: flex-start; gap: 4px; padding-bottom: 12px; }
  .nav-toggle:checked ~ .nav-links { display: flex; }
  .nav-toggle:focus-visible + .nav-toggle-label { outline: 3px solid #5B9BD5; }
  .nav-links .btn { margin-top: 8px; }
  .hero-inner { padding-top: 88px; padding-bottom: 96px; }
  .form { padding: 24px; }
}

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

/* Project photos */
.card-img { width: 100%; height: 220px; object-fit: cover; }
.project.has-photo { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 40px; align-items: start; max-width: none; }
.project-img { width: 100%; height: 340px; object-fit: cover; }
