/* ==========================================================================
   Apex Concrete, LLC — apexconcrete.us
   Single stylesheet. Organised: tokens → reset → layout → components → pages
   → responsive. Breakpoints: 1080px, 820px, 600px.
   ========================================================================== */

/* --- Tokens --------------------------------------------------------------- */
:root {
  /* brand — orange sampled from the logo artwork */
  --orange: #ff6600;
  --orange-dark: #e65c00;
  --orange-tint: #fff4ec;
  --orange-pale: #ffe2d0;

  /* neutrals */
  --ink: #111113;
  --black: #0b0b0c;
  --true-black: #000;
  --paper: #f4f3f1;
  --white: #fff;
  --line: #e4e2de;
  --line-dark: #2a2a2d;
  --muted: #55545a;
  --dim: #8c8a85;
  --dim-light: #c9c7c2;
  --field: #c9c7c2;
  --placeholder: #a8a6a1;

  /* type */
  --sans: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;

  /* rhythm */
  --gutter: clamp(20px, 4vw, 56px);
  --section-y: clamp(56px, 8vw, 104px);
  --max: 1440px;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; display: block; }
h1, h2, h3, h4, p, figure, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }

a { color: var(--orange); text-decoration: none; }
a:hover { color: var(--orange-dark); }

/* Visible keyboard focus everywhere — never remove without a replacement. */
:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--orange);
  color: var(--white);
  padding: 14px 22px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  font-size: 13px;
}
.skip-link:focus { left: 0; color: var(--white); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* --- Layout --------------------------------------------------------------- */
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.section--paper { background: var(--paper); }
.section--white { background: var(--white); border-top: 1px solid var(--line); }
.section--dark { background: var(--ink); color: var(--white); }

/* --- Type ----------------------------------------------------------------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--orange);
}

.eyebrow-rule {
  display: flex;
  align-items: center;
  gap: 14px;
}
.eyebrow-rule::before {
  content: "";
  width: 44px;
  height: 4px;
  background: var(--orange);
  flex: 0 0 44px;
}

h1, .h1 {
  font-size: clamp(38px, 6.1vw, 88px);
  line-height: .99;
  font-weight: 800;
  font-variation-settings: "wdth" 112;
  letter-spacing: -.028em;
  text-wrap: pretty;
}

h2, .h2 {
  font-size: clamp(30px, 3.6vw, 46px);
  line-height: 1.08;
  font-weight: 800;
  font-variation-settings: "wdth" 112;
  letter-spacing: -.02em;
  text-wrap: pretty;
}

h3, .h3 {
  font-size: clamp(19px, 1.6vw, 23px);
  line-height: 1.22;
  font-weight: 700;
  font-variation-settings: "wdth" 108;
  letter-spacing: -.01em;
}

.lede {
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.6;
  color: var(--muted);
  text-wrap: pretty;
}
.section--dark .lede { color: var(--dim-light); }

.prose p { margin-bottom: 22px; line-height: 1.75; }
.prose p:last-child { margin-bottom: 0; }

.meta {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--dim);
}

/* --- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 32px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
  text-align: center;
}
.btn--primary { background: var(--orange); color: var(--white); }
.btn--primary:hover { background: var(--orange-dark); color: var(--white); }
.btn--ghost-light { border-color: #45454a; color: var(--white); }
.btn--ghost-light:hover { background: rgba(255, 255, 255, .08); color: var(--white); }
.btn--ghost-dark { border-color: var(--ink); color: var(--ink); }
.btn--ghost-dark:hover { background: var(--ink); color: var(--white); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: var(--black); color: var(--white); }
.btn--sm { min-height: 48px; padding: 0 24px; font-size: 13px; }

/* --- Utility bar ---------------------------------------------------------- */
.utility {
  background: var(--true-black);
  color: #b9b7b2;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.utility .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  min-height: 42px;
  padding-top: 6px;
  padding-bottom: 6px;
}
.utility ul { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.utility li::after { content: "/"; color: #3a3a3d; margin-left: 18px; }
.utility li:last-child::after { content: none; }
.utility .is-accent { color: var(--orange); }
.utility a { color: inherit; }
.utility a:hover { color: var(--orange); }

/* --- Header / nav --------------------------------------------------------- */
.masthead { background: var(--white); border-bottom: 1px solid var(--line); }
.masthead .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 92px;
}
.masthead__logo { display: inline-flex; align-items: center; padding: 10px 0; }
.masthead__logo img { width: 149px; height: auto; }

.nav { display: flex; align-items: center; gap: 40px; }
.nav__links { display: flex; align-items: center; gap: 32px; }
.nav__links a {
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  font-variation-settings: "wdth" 100;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.nav__links a:hover,
.nav__links a[aria-current="page"] { color: var(--orange); }

.nav__toggle {
  display: none;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  color: var(--ink);
  cursor: pointer;
}

/* --- Hero ----------------------------------------------------------------- */
.hero {
  background: var(--ink);
  color: var(--white);
  padding-top: clamp(48px, 7vw, 112px);
  padding-bottom: clamp(44px, 5vw, 80px);
}
.hero h1 { max-width: 1180px; margin-top: 34px; }
.hero__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: clamp(28px, 5vw, 72px);
  padding-top: 44px;
}
.hero__lede { max-width: 640px; }
.hero__actions { display: flex; gap: 16px; flex: 0 0 auto; flex-wrap: wrap; }
.hero__scopes {
  display: flex;
  justify-content: space-between;
  gap: 16px 32px;
  flex-wrap: wrap;
  margin-top: clamp(40px, 5vw, 72px);
  padding-top: 30px;
  border-top: 1px solid var(--line-dark);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dim);
}

/* Interior page hero */
.page-hero { background: var(--ink); color: var(--white); padding: clamp(48px, 7vw, 88px) 0; }
.page-hero__row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: clamp(28px, 5vw, 64px);
}
.page-hero h1 { max-width: 780px; margin-top: 22px; font-size: clamp(34px, 4.6vw, 60px); line-height: 1.03; }
.page-hero__aside { max-width: 400px; color: var(--dim-light); line-height: 1.7; text-wrap: pretty; }

/* --- Credential strip ----------------------------------------------------- */
.strip { background: var(--orange); color: var(--white); }
.strip ul {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
  flex-wrap: wrap;
  min-height: 72px;
  padding: 16px 0;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

/* --- Section headers ------------------------------------------------------ */
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: clamp(24px, 4vw, 48px);
  padding-bottom: clamp(36px, 5vw, 56px);
}
.section-head__title { display: flex; flex-direction: column; gap: 18px; max-width: 660px; }
.section-head__aside { max-width: 420px; font-size: 17px; line-height: 1.65; color: var(--muted); text-wrap: pretty; }

/* --- Service grid --------------------------------------------------------- */
.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
  background: var(--line);
  border: 1px solid var(--line);
}
.service {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 40px 36px;
  background: var(--white);
  min-height: 240px;
}
.service svg { flex: 0 0 auto; }
.service p { font-size: 15px; line-height: 1.65; color: var(--muted); }

/* --- Project cards -------------------------------------------------------- */
.projects {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.project {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
}
.project__media {
  aspect-ratio: 3 / 2;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.project__media img { width: 100%; height: 100%; object-fit: cover; }
/* Cards with no photo yet: a flat brand-coloured plate, not an empty hole. */
.project__media--none {
  aspect-ratio: 3 / 2;
  border-bottom: 1px solid var(--line);
  background: var(--ink);
  display: flex;
  align-items: flex-end;
  padding: 28px;
}
.project__media--none span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--orange);
}
.project__body { display: flex; flex-direction: column; gap: 12px; padding: 28px 28px 32px; }
.project__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.project__meta .place { color: var(--dim); }
.project__meta .tag { color: var(--orange); }
.project__body p { font-size: 15px; line-height: 1.65; color: var(--muted); }

/* At 3-up, let the closing CTA card absorb the leftover cell rather than
   leaving a hole at the end of the grid. */
@media (min-width: 1081px) {
  .projects > .project--cta:last-child:nth-child(3n + 2) { grid-column: span 2; }
}
/* Same idea at 2-up: a lone card on the final row runs the full width. */
@media (min-width: 601px) and (max-width: 1080px) {
  .projects > .project:last-child:nth-child(2n + 1) { grid-column: 1 / -1; }
  .projects > .project:last-child:nth-child(2n + 1) .project__media { aspect-ratio: 21 / 9; }
}

.project--cta {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
  justify-content: center;
  gap: 18px;
  padding: 40px;
}
.project--cta p { color: var(--dim-light); font-size: 15px; line-height: 1.65; }

/* Home page: three project tags */
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span {
  padding: 6px 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Filter chips (static — the list is short enough not to need filtering yet) */
.chips { display: flex; flex-wrap: wrap; gap: 10px; padding-bottom: clamp(28px, 4vw, 44px); }
.chips span {
  padding: 10px 20px;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.chips .is-on { background: var(--ink); border-color: var(--ink); color: var(--white); }

/* Awarded / in-progress list — deliberately not photo cards, so it can never
   be mistaken for completed work. */
.currents { display: flex; flex-direction: column; border-top: 1px solid var(--line); }
.current {
  display: flex;
  align-items: baseline;
  gap: clamp(16px, 3vw, 40px);
  padding: 26px 0;
  border-bottom: 1px solid var(--line);
}
.current__name { flex: 1 1 auto; font-size: clamp(18px, 1.8vw, 22px); font-weight: 700; font-variation-settings: "wdth" 108; letter-spacing: -.01em; }
.current__place { flex: 0 0 200px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.current__tag { flex: 0 0 140px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); }

/* A lone card on the final row of a 3-up grid would leave a visible hole;
   let it run the full width as a wide card instead. */
.services > .service:last-child:nth-child(3n + 1) {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: center;
  gap: 28px;
  min-height: 0;
}
.services > .service:last-child:nth-child(3n + 1) h3 { flex: 0 0 260px; }
.services > .service:last-child:nth-child(3n + 1) p { flex: 1 1 auto; }

/* --- Split band (certification / prequal / values) ------------------------ */
.split { display: flex; background: var(--ink); color: var(--white); }
.split__main {
  flex: 0 0 clamp(400px, 46%, 660px);
  padding: clamp(48px, 7vw, 96px) 0 clamp(48px, 7vw, 96px) var(--gutter);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 26px;
}
.split__aside {
  flex: 1 1 auto;
  padding: clamp(48px, 7vw, 96px) var(--gutter) clamp(48px, 7vw, 96px) clamp(28px, 4vw, 56px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.split p { color: var(--dim-light); line-height: 1.7; text-wrap: pretty; }
.wbe-badge { width: 240px; height: auto; margin-top: 6px; }

/* Stat rows */
.stat {
  display: flex;
  align-items: baseline;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line-dark);
}
.stat:last-child { border-bottom: 0; }
.stat__key {
  flex: 0 0 130px;
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 800;
  font-variation-settings: "wdth" 112;
  letter-spacing: -.02em;
  color: var(--orange);
}
.stat__val { font-size: 16px; line-height: 1.6; color: var(--dim-light); }

/* Definition rows (prequal) */
.deflist { display: flex; flex-direction: column; }
.deflist__row {
  display: flex;
  gap: 32px;
  padding: 26px 0;
  border-bottom: 1px solid var(--line-dark);
}
.deflist__row:last-child { border-bottom: 0; }
.deflist__key {
  flex: 0 0 220px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--dim);
  padding-top: 3px;
}
.deflist__val { flex: 1 1 auto; font-size: 16px; line-height: 1.6; color: var(--white); }

/* --- Scope table ---------------------------------------------------------- */
.scopes { display: flex; flex-direction: column; }
.scope {
  display: flex;
  gap: clamp(20px, 3vw, 48px);
  padding: 32px 0;
  border-top: 1px solid var(--line);
}
.scope:last-child { border-bottom: 1px solid var(--line); }
.scope__num { flex: 0 0 60px; font-family: var(--mono); font-size: 13px; color: var(--orange); padding-top: 6px; }
.scope__name { flex: 0 0 340px; font-size: clamp(20px, 1.9vw, 24px); font-weight: 700; font-variation-settings: "wdth" 108; letter-spacing: -.01em; }
.scope__desc { flex: 1 1 auto; max-width: 620px; font-size: 16px; line-height: 1.7; color: var(--muted); }

/* --- Market cards --------------------------------------------------------- */
.markets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.market {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 34px 30px;
  background: var(--white);
  border-top: 4px solid var(--orange);
  min-height: 200px;
}
.market h3 { font-size: 20px; }
.market p { font-size: 15px; line-height: 1.65; color: var(--muted); }

/* --- Leadership ----------------------------------------------------------- */
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.person { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); }
.person__head { display: flex; }
.person__photo { flex: 0 0 240px; border-right: 1px solid var(--line); overflow: hidden; background: var(--paper); }
.person__photo img { width: 100%; height: 100%; min-height: 280px; object-fit: cover; object-position: 50% 25%; }
.person__id { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 32px; }
.person__name { font-size: clamp(24px, 2.2vw, 30px); font-weight: 800; font-variation-settings: "wdth" 112; letter-spacing: -.02em; line-height: 1.1; }
.person__role { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--orange); }
.person__bio { padding: 32px; border-top: 1px solid var(--line); }
.person__bio p { font-size: 16px; }

/* --- Numbered value cards ------------------------------------------------- */
.values { flex: 1 1 auto; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line-dark); border-left: 1px solid var(--line-dark); }
.value-card { display: flex; flex-direction: column; gap: 12px; padding: 44px 40px; background: var(--ink); }
.value-card__num { font-family: var(--mono); font-size: 12px; color: var(--orange); }
.value-card h3 { font-size: 20px; }
.value-card p { font-size: 15px; line-height: 1.65; color: var(--dim-light); }

/* --- Big CTA -------------------------------------------------------------- */
.cta { background: var(--orange); color: var(--white); }
.cta .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(28px, 4vw, 56px);
  padding-top: clamp(48px, 6vw, 80px);
  padding-bottom: clamp(48px, 6vw, 80px);
}
.cta h2 { max-width: 760px; }
.cta p { color: var(--orange-pale); font-size: 18px; margin-top: 14px; }

/* --- Contact page --------------------------------------------------------- */
.contact-grid {
  display: flex;
  gap: clamp(28px, 4vw, 64px);
  align-items: flex-start;
}
.contact-grid__form { flex: 1 1 auto; min-width: 0; }
.contact-grid__aside { flex: 0 0 400px; display: flex; flex-direction: column; gap: 24px; }

.panel { background: var(--white); border: 1px solid var(--line); padding: clamp(28px, 4vw, 48px); }
.panel__head { padding-bottom: 36px; border-bottom: 1px solid var(--line); }
.panel__head p { font-size: 15px; color: var(--muted); margin-top: 10px; }

.card-dark { background: var(--ink); color: var(--white); padding: 40px; display: flex; flex-direction: column; gap: 22px; }
.card-dark .eyebrow { font-size: 11px; letter-spacing: .18em; }
.contact-item { display: flex; flex-direction: column; gap: 6px; }
.contact-item .label { font-size: 13px; color: var(--dim); letter-spacing: .04em; }
.contact-item .value { font-size: 19px; font-weight: 700; font-variation-settings: "wdth" 108; overflow-wrap: anywhere; }
.contact-item a.value { color: var(--white); }
.contact-item a.value:hover { color: var(--orange); }
.contact-item address { font-style: normal; font-size: 17px; line-height: 1.6; }

.steps { background: var(--white); border: 1px solid var(--line); padding: 36px 32px; display: flex; flex-direction: column; gap: 24px; }
.step { display: flex; gap: 16px; }
.step__n {
  flex: 0 0 26px; height: 26px;
  background: var(--ink); color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 12px;
}
.step p { font-size: 15px; line-height: 1.6; color: var(--ink); }

/* --- Form ----------------------------------------------------------------- */
.form { display: flex; flex-direction: column; gap: 28px; padding-top: 36px; }
.form__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.field { display: flex; flex-direction: column; gap: 10px; }
.field > label,
.fieldset__legend {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 1px solid var(--field);
  background: var(--white);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px; /* 16px keeps iOS Safari from zooming on focus */
  line-height: 1.5;
  border-radius: 0;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: var(--placeholder); }
.field input:focus,
.field textarea:focus { border-color: var(--orange); }
.field input[type="file"] { padding: 14px; font-family: var(--mono); font-size: 13px; }

.fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.checks { display: flex; flex-wrap: wrap; gap: 10px; }
.check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--field);
  background: var(--white);
  font-size: 15px;
  cursor: pointer;
}
.check input { width: 16px; height: 16px; accent-color: var(--orange); margin: 0; }
.check:hover { border-color: var(--ink); }
.check:has(input:checked) { border-color: var(--orange); background: var(--orange-tint); }
.check:has(input:focus-visible) { outline: 3px solid var(--orange); outline-offset: 3px; }

.form__note { font-size: 14px; line-height: 1.6; color: var(--dim); }
.form__submit { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding-top: 8px; }

/* Honeypot — bots fill it, people never see it. */
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* --- Footer --------------------------------------------------------------- */
.footer { background: var(--black); color: var(--dim); }
.footer .wrap { padding-top: clamp(48px, 6vw, 80px); padding-bottom: 40px; }
.footer__top {
  display: flex;
  justify-content: space-between;
  gap: clamp(32px, 5vw, 64px);
  padding-bottom: clamp(36px, 5vw, 64px);
  border-bottom: 1px solid #232327;
  flex-wrap: wrap;
}
.footer__brand { display: flex; flex-direction: column; gap: 26px; max-width: 380px; }
.footer__brand img { width: 176px; height: auto; }
.footer__brand p { font-size: 15px; line-height: 1.75; }
.footer__cols { display: flex; gap: clamp(32px, 5vw, 72px); flex-wrap: wrap; }
.footer__col { display: flex; flex-direction: column; gap: 16px; }
.footer__col h2 {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--white);
  line-height: 1.6;
}
.footer__col ul { display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.footer__col a { color: var(--dim); }
.footer__col a:hover { color: var(--orange); }
.footer__col address { font-style: normal; font-size: 15px; line-height: 1.6; }
.footer__legal {
  display: flex;
  justify-content: space-between;
  gap: 12px 32px;
  flex-wrap: wrap;
  padding-top: 32px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #55545a;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1080px) {
  .services { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .services > .service:last-child:nth-child(3n + 1) { grid-column: auto; flex-direction: column; align-items: stretch; gap: 18px; }
  .services > .service:last-child:nth-child(3n + 1) h3 { flex: 0 0 auto; }
  .services > .service:last-child:nth-child(2n + 1) { grid-column: 1 / -1; }
  .projects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .markets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scope__name { flex: 0 0 260px; }
  .contact-grid__aside { flex: 0 0 340px; }
  .hero__scopes { justify-content: flex-start; }
}

@media (max-width: 900px) {
  .split { flex-direction: column; }
  .split__main {
    flex: 1 1 auto;
    padding: clamp(48px, 8vw, 72px) var(--gutter) 32px;
  }
  .split__aside { padding: 0 var(--gutter) clamp(48px, 8vw, 72px); }
  .values { border-left: 0; border-top: 1px solid var(--line-dark); }
  .people { grid-template-columns: minmax(0, 1fr); }
  .contact-grid { flex-direction: column; }
  .contact-grid__aside { flex: 1 1 auto; width: 100%; }
}

@media (max-width: 820px) {
  /* Nav collapses to a disclosure panel. */
  .nav__toggle { display: inline-flex; }
  .nav__links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 40;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--white);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 18px 30px rgba(0, 0, 0, .08);
  }
  .nav__links.is-open { display: flex; }
  .nav__links a {
    padding: 20px var(--gutter);
    border-top: 1px solid var(--line);
    font-size: 16px;
  }
  .masthead { position: relative; }
  .masthead .wrap { min-height: 76px; }
  .masthead__logo img { width: 122px; }
  .nav { gap: 12px; }
  .nav .btn { display: none; }

  .hero__row { flex-direction: column; align-items: flex-start; gap: 28px; }
  .hero__actions { width: 100%; }
  .hero__actions .btn { flex: 1 1 auto; }
  .page-hero__row { flex-direction: column; align-items: flex-start; gap: 24px; }
  .page-hero__aside { max-width: none; }

  .section-head { flex-direction: column; align-items: flex-start; }
  .section-head__aside { max-width: none; }

  .current { flex-wrap: wrap; gap: 6px 20px; }
  .current__name { flex: 1 1 100%; }
  .current__place, .current__tag { flex: 0 0 auto; }

  .scope { flex-wrap: wrap; }
  .scope__num { flex: 0 0 40px; }
  .scope__name { flex: 1 1 auto; }
  .scope__desc { flex: 1 1 100%; padding-left: 40px; }

  .cta .wrap { flex-direction: column; align-items: flex-start; }

  .person__head { flex-direction: column; }
  .person__photo { flex: 1 1 auto; border-right: 0; border-bottom: 1px solid var(--line); max-height: 320px; }
  .person__photo img { min-height: 0; height: 320px; }

  .deflist__row { flex-direction: column; gap: 8px; }
  .deflist__key { flex: 1 1 auto; }

  .footer__top { flex-direction: column; }

  /* Touch targets: inline links are ~17px tall, which is too small to hit
     reliably on a phone. Give them a real box without changing the look. */
  .footer__col ul { gap: 0; }
  .footer__col ul a { display: flex; align-items: center; min-height: 44px; }
  .section-head__aside a { display: inline-flex; align-items: center; min-height: 44px; }
  .utility a { display: inline-flex; align-items: center; min-height: 30px; }
  /* Phone and email in the dark card are primary actions on a phone. */
  .contact-item a.value { display: inline-flex; align-items: center; min-height: 44px; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .services { grid-template-columns: minmax(0, 1fr); }
  .services > .service:last-child { grid-column: auto; }
  .projects { grid-template-columns: minmax(0, 1fr); }
  .markets { grid-template-columns: minmax(0, 1fr); }
  .values { grid-template-columns: minmax(0, 1fr); }
  .form__pair { grid-template-columns: minmax(0, 1fr); }
  .service { min-height: 0; padding: 32px 28px; }
  .utility { font-size: 10px; }
  .utility .wrap { flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px 0; }
  .strip ul { justify-content: flex-start; gap: 10px 18px; font-size: 11px; letter-spacing: .14em; }
  .stat { gap: 16px; }
  .stat__key { flex: 0 0 92px; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { width: 100%; }
  .footer__cols { flex-direction: column; gap: 32px; }
  .footer__legal { flex-direction: column; }
  .card-dark, .panel, .steps { padding: 28px 24px; }
}

/* --- Print ---------------------------------------------------------------- */
@media print {
  .utility, .nav, .cta, .hero__actions, .form__submit { display: none; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .section--dark, .hero, .page-hero, .split, .footer { background: #fff; color: #000; }
  a { color: #000; }
}
