/* Terra-Firma Civil — shared styles (mobile first) */
:root {
  --teal: #2BACAC;        /* brand primary: fills, banners, large display text */
  --teal-dark: #147070;   /* AA-safe teal for text/links on white (5.9:1) */
  --black: #171718;
  --grey: #A0A0A0;
  --grey-light: #F1F3F3;
  --grey-dark: #55595A;   /* AA body-secondary on white (7:1) */
  --white: #FFFFFF;
  --slant: 3.2vw;
  --max: 1160px;
  --head: "Barlow Condensed", "Oswald", "Arial Narrow", Impact, sans-serif;
  --body: "Barlow", "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--body); font-size: 1.0625rem; line-height: 1.6;
  color: var(--black); background: var(--white); overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal-dark); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--black); outline-offset: 2px; box-shadow: 0 0 0 6px var(--white);
}
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 16px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; z-index: 100; background: var(--white); padding: 8px 12px; }

h1, h2, h3, .display {
  font-family: var(--head); font-weight: 800; font-style: italic; text-transform: uppercase;
  line-height: 1; letter-spacing: .01em; margin: 0 0 .5em;
}
h1 { font-size: clamp(2.6rem, 9vw, 5rem); }
h2 { font-size: clamp(2rem, 6vw, 3.1rem); }
h3 { font-size: 1.5rem; }
p { margin: 0 0 1em; }
.lead { font-size: 1.2rem; max-width: 60ch; }
.eyebrow {
  font-family: var(--head); font-weight: 700; font-style: italic; text-transform: uppercase;
  letter-spacing: .12em; font-size: 1rem; color: var(--teal-dark); margin: 0 0 .5rem; display: block;
}
.dark .eyebrow, .hero .eyebrow, .page-head .eyebrow { color: var(--teal); }

/* [CONFIRM] placeholders — deliberately visible */
.confirm {
  background: #FFE98A; color: var(--black); font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: .85em; font-style: normal; font-weight: 600; padding: .05em .4em; border: 1px dashed var(--black);
  text-transform: none; letter-spacing: 0; white-space: normal;
}

/* Header */
.site-header { background: var(--black); color: var(--white); position: sticky; top: 0; z-index: 50; border-bottom: 4px solid var(--teal); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 68px; flex-wrap: wrap; }
.logo { display: block; padding: 6px 0; }
.logo img { height: 54px; width: auto; }
.nav-toggle {
  background: none; border: 2px solid var(--white); color: var(--white); font: 700 italic 1.1rem var(--head);
  text-transform: uppercase; letter-spacing: .08em; padding: 8px 14px; cursor: pointer;
}
.nav { display: none; width: 100%; padding-bottom: 12px; }
.nav.open { display: block; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav a {
  display: block; color: var(--white); text-decoration: none; font: 700 italic 1.3rem var(--head);
  text-transform: uppercase; letter-spacing: .06em; padding: 12px 4px; border-top: 1px solid #333;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--teal); }
.nav .btn { margin-top: 10px; text-align: center; border-top: 0; color: var(--black); }
.nav .btn:hover { color: var(--black); }

/* Buttons — slanted like the banner */
.btn {
  display: inline-block; background: var(--teal); color: var(--black); text-decoration: none; border: 0; cursor: pointer;
  font: 800 italic 1.25rem var(--head); text-transform: uppercase; letter-spacing: .06em;
  padding: 14px 30px; clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
  transition: background .15s, transform .15s;
}
.btn:hover { background: var(--white); transform: translateX(3px); }
.btn.dark-btn { background: var(--black); color: var(--white); }
.btn.dark-btn:hover { background: var(--teal-dark); }
.btn.ghost { background: var(--white); }
.btn.ghost:hover { background: var(--teal); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.5rem; }

/* Sections + slanted dividers */
section { padding: 56px 0; position: relative; }
.dark { background: var(--black); color: var(--white); }
.dark a { color: var(--teal); }
.tint { background: var(--grey-light); }
.teal { background: var(--teal); color: var(--black); }
.teal a { color: var(--black); }
.slant-top { clip-path: polygon(0 var(--slant), 100% 0, 100% 100%, 0 100%); margin-top: calc(var(--slant) * -1); padding-top: calc(56px + var(--slant)); }
.slant-bottom { clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--slant)), 0 100%); padding-bottom: calc(56px + var(--slant)); }
.slant-both { clip-path: polygon(0 var(--slant), 100% 0, 100% calc(100% - var(--slant)), 0 100%); margin-top: calc(var(--slant) * -1); padding-top: calc(56px + var(--slant)); padding-bottom: calc(56px + var(--slant)); }

/* Hero */
.hero {
  background:
    linear-gradient(105deg, rgba(23,23,24,.96) 0 58%, rgba(23,23,24,.72) 58% 100%),
    repeating-linear-gradient(105deg, #232325 0 22px, #1c1c1d 22px 44px);
  color: var(--white); padding: 64px 0 calc(72px + var(--slant));
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--slant)), 0 100%);
}
.hero h1 span { color: var(--teal); display: block; }
.hero .lead { color: #E4E6E6; }
.hero-stripe { height: 10px; width: 160px; background: var(--teal); transform: skewX(-20deg); margin: 0 0 22px 6px; }
.page-head { background: var(--black); color: var(--white); padding: 44px 0 calc(48px + var(--slant)); clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--slant)), 0 100%); }
.page-head h1 { font-size: clamp(2.4rem, 8vw, 4rem); margin-bottom: .3em; }
.page-head p { color: #E4E6E6; max-width: 60ch; margin: 0; }

/* Grids + cards */
.grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
.card { background: var(--white); border: 2px solid var(--black); padding: 24px 22px; position: relative; color: var(--black); }
.card::before { content: ""; position: absolute; left: -2px; top: -2px; width: 72px; height: 8px; background: var(--teal); transform-origin: left; transform: skewX(-30deg); }
.card h3 { margin-top: 6px; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card ul, .ticks { padding-left: 0; list-style: none; margin: 0 0 1em; }
.card li, .ticks li { padding: 4px 0 4px 26px; position: relative; }
.card li::before, .ticks li::before { content: ""; position: absolute; left: 0; top: .72em; width: 14px; height: 6px; background: var(--teal); transform: skewX(-25deg); }
.card .more { font: 700 italic 1.1rem var(--head); text-transform: uppercase; letter-spacing: .06em; }
.dark .card { border-color: var(--teal); }
.num { font: 800 italic 3rem/1 var(--head); color: var(--teal-dark); display: block; margin-bottom: 4px; }
.dark .num { color: var(--teal); }

/* Sector strip */
.sectors { display: grid; gap: 0; grid-template-columns: 1fr; border: 2px solid var(--teal); }
.sectors > div { padding: 22px; border-bottom: 2px solid var(--teal); }
.sectors > div:last-child { border-bottom: 0; }
.sectors h3 { color: var(--teal); }
.sectors p { margin: 0; color: #E4E6E6; }

/* Capability table (by market) */
.cap-table { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: 1rem; }
.cap-table th, .cap-table td { border: 1px solid #C9CDCD; padding: 10px 12px; text-align: left; vertical-align: top; }
.cap-table thead th { background: var(--black); color: var(--white); font: 700 italic 1.1rem var(--head); text-transform: uppercase; letter-spacing: .06em; }
.cap-table tbody th { background: var(--grey-light); font-weight: 700; }
.table-scroll { overflow-x: auto; }
.yes { color: var(--teal-dark); font-weight: 700; }

/* Gallery */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.filters button {
  background: var(--white); color: var(--black); border: 2px solid var(--black); cursor: pointer;
  font: 700 italic 1.1rem var(--head); text-transform: uppercase; letter-spacing: .06em; padding: 8px 18px;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}
.filters button[aria-pressed="true"] { background: var(--black); color: var(--white); }
.filters button:hover { background: var(--teal); color: var(--black); }
.gallery { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
.tile { margin: 0; background: var(--black); color: var(--white); position: relative; border: 0; padding: 0; text-align: left; cursor: pointer; font: inherit; display: block; width: 100%; }
.tile img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: opacity .15s; }
.tile:hover img { opacity: .8; }
.tile .cap { display: block; padding: 10px 12px 12px; border-top: 4px solid var(--teal); }
.tile .cap strong { display: block; font: 700 italic 1.15rem/1.1 var(--head); text-transform: uppercase; letter-spacing: .04em; }
.tile .cap small { color: #D5D8D8; font-size: .85rem; }
.tile.placeholder { cursor: default; }
.tile .ph {
  aspect-ratio: 4 / 3; display: grid; place-items: center; text-align: center; padding: 10px;
  background: repeating-linear-gradient(115deg, #2a2a2c 0 18px, #222224 18px 36px);
  font: 700 italic 1.1rem var(--head); text-transform: uppercase; letter-spacing: .1em; color: var(--grey);
}
.gallery-note { margin-top: 18px; color: var(--grey-dark); }

/* Lightbox */
.lightbox { position: fixed; inset: 0; background: rgba(10,10,11,.95); z-index: 200; display: none; align-items: center; justify-content: center; flex-direction: column; padding: 56px 12px 16px; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 150px); object-fit: contain; border: 3px solid var(--teal); }
.lightbox p { color: var(--white); margin: 12px 0 0; text-align: center; max-width: 70ch; }
.lightbox button { position: absolute; background: var(--teal); color: var(--black); border: 0; cursor: pointer; font: 800 italic 1.4rem var(--head); padding: 8px 16px; }
.lightbox .lb-close { top: 10px; right: 10px; }
.lightbox .lb-prev { left: 10px; bottom: 14px; }
.lightbox .lb-next { right: 10px; bottom: 14px; }

/* Forms */
form { display: grid; gap: 14px; }
label { font-weight: 700; display: block; margin-bottom: 4px; }
input, textarea, select { width: 100%; padding: 12px; font: inherit; border: 2px solid var(--black); background: var(--white); color: var(--black); border-radius: 0; }
textarea { min-height: 140px; resize: vertical; }
.form-note { font-size: .92rem; color: var(--grey-dark); margin: 0; }
dl.details { margin: 0; }
dl.details dt { font: 700 italic 1.1rem var(--head); text-transform: uppercase; letter-spacing: .08em; color: var(--teal-dark); margin-top: 14px; }
dl.details dd { margin: 2px 0 0; }

/* CTA band */
.cta { text-align: left; }
.cta h2 { margin-bottom: .3em; }

/* Footer */
.site-footer { background: var(--black); color: #D5D8D8; padding: 44px 0 24px; border-top: 6px solid var(--teal); font-size: .98rem; }
.site-footer a { color: var(--white); }
.site-footer h3 { color: var(--teal); font-size: 1.2rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { padding: 3px 0; }
.site-footer .logo img { height: 64px; margin-bottom: 12px; }
.legal { border-top: 1px solid #333; margin-top: 28px; padding-top: 16px; font-size: .88rem; }

@media (min-width: 640px) {
  .grid.two, .grid.three, .grid.four { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .sectors { grid-template-columns: repeat(2, 1fr); }
  .sectors > div { border-bottom: 0; border-right: 2px solid var(--teal); }
  .sectors > div:nth-child(2n) { border-right: 0; }
  .sectors > div:nth-child(-n+2) { border-bottom: 2px solid var(--teal); }
}
@media (min-width: 900px) {
  :root { --slant: 36px; }
  section { padding: 76px 0; }
  .slant-top, .slant-both { padding-top: calc(76px + var(--slant)); }
  .slant-bottom, .slant-both { padding-bottom: calc(76px + var(--slant)); }
  .nav-toggle { display: none; }
  .nav { display: block; width: auto; padding: 0; }
  .nav ul { display: flex; align-items: center; gap: 4px; }
  .nav a { border: 0; padding: 10px 14px; font-size: 1.2rem; }
  .nav .btn { margin: 0 0 0 10px; padding: 10px 24px; }
  .logo img { height: 62px; }
  .grid.three { grid-template-columns: repeat(3, 1fr); }
  .grid.four { grid-template-columns: repeat(4, 1fr); }
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .sectors { grid-template-columns: repeat(4, 1fr); }
  .sectors > div, .sectors > div:nth-child(2n) { border-right: 2px solid var(--teal); border-bottom: 0; }
  .sectors > div:nth-child(-n+2) { border-bottom: 0; }
  .sectors > div:last-child { border-right: 0; }
  .split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: start; }
  .hero { padding-top: 96px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ---- v2 additions: top bar, video, projects, fleet ---- */
.topbar { background: var(--teal); color: var(--black); font-weight: 700; font-size: .95rem; }
.topbar .wrap { display: flex; flex-wrap: wrap; gap: 4px 20px; justify-content: space-between; padding-top: 6px; padding-bottom: 6px; }
.topbar a { color: var(--black); text-decoration: none; }
.topbar a:hover { text-decoration: underline; }
.hero-grid { display: grid; gap: 28px; }
.clip { margin: 0; border: 4px solid var(--teal); background: #000; transform: skewX(0); max-width: 360px; }
.clip video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; }
.clip.wide { max-width: 560px; }
.clip.wide video { aspect-ratio: 4 / 5; }
.clip figcaption { background: var(--teal); color: var(--black); font: 700 italic 1rem var(--head); text-transform: uppercase; letter-spacing: .06em; padding: 6px 10px; }
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin: 0; }
.stats div { border-left: 6px solid var(--teal); padding-left: 14px; }
.stats dt { font: 800 italic clamp(2.2rem, 7vw, 3.4rem)/1 var(--head); color: var(--teal); }
.stats dd { margin: 4px 0 0; color: #E4E6E6; }
.pcard { background: var(--white); color: var(--black); border: 2px solid var(--black); display: flex; flex-direction: column; text-decoration: none; }
.pcard img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-bottom: 6px solid var(--teal); }
.pcard .body { padding: 16px 18px 18px; }
.pcard h3 { margin-bottom: .25em; }
.pcard p { margin: 0; }
.pcard:hover h3 { color: var(--teal-dark); }
.tag { display: inline-block; background: var(--black); color: var(--white); font: 700 italic .95rem var(--head); text-transform: uppercase; letter-spacing: .08em; padding: 3px 12px; margin: 0 6px 8px 0; clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
.tag.teal-tag { background: var(--teal); color: var(--black); }
.project { padding: 34px 0; border-top: 2px solid var(--black); }
.project:first-of-type { border-top: 0; padding-top: 0; }
.project h3 { font-size: clamp(1.8rem, 5vw, 2.5rem); margin-bottom: .2em; }
.project .gallery { margin-top: 18px; grid-template-columns: repeat(2, 1fr); }
.spec { margin: 0 0 1em; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; }
.spec dt { font: 700 italic 1.05rem var(--head); text-transform: uppercase; letter-spacing: .08em; color: var(--teal-dark); }
.spec dd { margin: 0; }
.fleet-list { display: grid; gap: 14px; grid-template-columns: 1fr; list-style: none; padding: 0; margin: 0; }
.fleet-list li { border: 2px solid var(--teal); padding: 16px 18px; display: flex; gap: 16px; align-items: baseline; }
.fleet-list .size { font: 800 italic 2.4rem/1 var(--head); color: var(--teal); min-width: 3.2em; }
.fleet-list strong { font: 700 italic 1.3rem var(--head); text-transform: uppercase; letter-spacing: .04em; display: block; }
.fleet-list span.note { color: #D5D8D8; font-size: .95rem; }
.svc { padding: 40px 0; border-top: 2px solid var(--black); }
.svc:first-of-type { border-top: 0; padding-top: 0; }
.svc .gallery { margin-top: 18px; }
@media (min-width: 640px) {
  .stats { grid-template-columns: repeat(4, 1fr); }
  .fleet-list { grid-template-columns: repeat(2, 1fr); }
  .project .gallery { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.4fr .6fr; align-items: center; }
  .hero-grid .clip { justify-self: end; }
  .grid.five { grid-template-columns: repeat(5, 1fr); }
  .fleet-list { grid-template-columns: repeat(3, 1fr); }
  .project-head { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
}

/* Home hero: full-width site photo instead of the video clip */
.hero.hero-photo {
  background:
    linear-gradient(180deg, rgba(23,23,24,.78) 0%, rgba(23,23,24,.88) 100%),
    url("../assets/hero.webp") 70% center / cover no-repeat, var(--black);
  padding-top: 72px; padding-bottom: calc(96px + var(--slant));
}
.hero-photo .lead { color: #F1F3F3; }
@media (min-width: 900px) {
  .hero.hero-photo {
    background:
      linear-gradient(100deg, rgba(23,23,24,.94) 0%, rgba(23,23,24,.86) 38%, rgba(23,23,24,.18) 68%, rgba(23,23,24,0) 100%),
      url("../assets/hero.webp") right center / cover no-repeat, var(--black);
    padding-top: 120px; padding-bottom: calc(140px + var(--slant)); min-height: 560px;
  }
  .hero-photo .hero-text { max-width: 600px; }
}

/* ---- v3: jobs list, sister company note ---- */
.project[hidden] { display: none; }
.project .meta { color: var(--grey-dark); font-weight: 600; margin: 0 0 .6em; }
.sister { border-left: 8px solid var(--teal); background: var(--grey-light); padding: 18px 20px; margin-top: 28px; }
.sister p { margin: 0; }
.grid.five { grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid.five { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid.five { grid-template-columns: repeat(5, 1fr); } }
.hero.hero-photo { background-position: center, 60% center; }

.hero.hero-photo { background-position: center, 72% center; }
@media (min-width: 900px) { .hero.hero-photo { background-position: center, right center; min-height: 620px; } }

/* ---- v4 ---- */
.stats.light div { border-left-color: var(--teal); }
.stats.light dt { color: var(--teal-dark); font-size: clamp(1.4rem, 4vw, 2.2rem); }
.stats.light dd { color: var(--black); font-weight: 600; }
/* ---- v5: about pull quote, job fact panel ---- */
.pull { margin: 16px 0 0; padding: 14px 18px; border-left: 8px solid var(--teal); background: var(--grey-light); font: 700 italic 1.35rem/1.25 var(--head); }
.spec.facts { background: var(--grey-light); border-left: 8px solid var(--teal); padding: 16px 18px; align-content: start; margin-top: 12px; }
.project .tag { margin-top: 2px; }
@media (min-width: 900px) { .project-head { grid-template-columns: 1.5fr 1fr; } .spec.facts { margin-top: 0; } }

/* ---- v6 hero: whole photo always shown, text over the empty left side ---- */
.hero.hero-photo { position: relative; background: var(--black); padding: 40px 0 0; clip-path: none; min-height: 0; }
.hero-photo .hero-text { padding-bottom: 32px; max-width: 600px; }
.hero-img { display: block; width: 100%; height: auto; border-top: 6px solid var(--teal); }
@media (min-width: 1000px) {
  .hero.hero-photo { padding: 0; clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--slant)), 0 100%); }
  .hero-img { border-top: 0; aspect-ratio: 2 / 1; object-fit: cover; object-position: center 62%; }
  .hero-photo > .wrap {
    position: absolute; inset: 0; max-width: none; display: flex; align-items: center;
    padding-left: max(24px, calc((100vw - 1160px) / 2 + 16px));
    background: linear-gradient(90deg, rgba(23,23,24,.92) 0, rgba(23,23,24,.84) 30%, rgba(23,23,24,.35) 46%, rgba(23,23,24,0) 56%);
  }
  .hero-photo .hero-text { max-width: min(480px, 40vw); padding-bottom: var(--slant); }
  .hero-photo h1 { font-size: clamp(2.3rem, 4.4vw, 4.2rem); }
  .hero-photo .lead { font-size: clamp(1rem, 1.3vw, 1.2rem); }
}

.complex { border-left: 6px solid var(--teal); padding: 8px 14px; background: var(--grey-light); margin-top: 10px; }

/* ---- v7: larger logo, hero text clear of the machines ---- */
.logo img { height: 64px; width: auto; }
.site-footer .logo img { height: 96px; }
@media (min-width: 900px) { .logo img { height: 84px; } .site-header .wrap { min-height: 96px; } }
@media (min-width: 1000px) {
  .hero-photo > .wrap { background: linear-gradient(90deg, rgba(23,23,24,.9) 0, rgba(23,23,24,.8) 26%, rgba(23,23,24,.25) 40%, rgba(23,23,24,0) 47%); }
  .hero-photo .hero-text { max-width: min(460px, 36vw); }
  .hero-img { object-position: center 55%; }
}

.fleet-gallery { grid-template-columns: 1fr; }
.fleet-gallery .tile img { aspect-ratio: 16 / 9; }
@media (min-width: 640px) { .fleet-gallery { grid-template-columns: repeat(2, 1fr); } }

/* ---- v8: white header so the real logo reads properly ---- */
.site-header { background: var(--white); color: var(--black); border-bottom: 4px solid var(--teal); box-shadow: 0 2px 10px rgba(0,0,0,.08); }
.nav a { color: var(--black); border-top-color: #E3E6E6; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--teal-dark); }
.nav .btn, .nav .btn:hover { color: var(--black); }
.nav .btn:hover { background: var(--black); color: var(--white); }
.nav-toggle { border-color: var(--black); color: var(--black); }
.logo img { height: 60px; width: auto; }
@media (min-width: 900px) { .logo img { height: 78px; } .site-header .wrap { min-height: 92px; } }
.site-footer .logo { display: inline-block; background: var(--white); padding: 10px 14px; margin-bottom: 14px; }
.site-footer .logo img { height: 74px; margin: 0; }

/* ---- v9 hero: text column on black, machines in their own column (never behind the text) ---- */
.hero.hero-photo { background: var(--black); padding: 36px 0 0; clip-path: none; min-height: 0; }
.hero-img { display: block; width: 100%; height: auto; aspect-ratio: auto; border-top: 6px solid var(--teal); }
@media (min-width: 1000px) {
  .hero.hero-photo { display: grid; grid-template-columns: minmax(0, 43%) minmax(0, 1fr); align-items: stretch; padding: 0; clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--slant)), 0 100%); }
  .hero-photo > .wrap { position: static; inset: auto; background: none; display: flex; align-items: center; max-width: none; margin: 0;
    padding: 56px 28px calc(56px + var(--slant)) max(24px, calc((100vw - 1160px) / 2 + 16px)); }
  .hero-photo .hero-text { max-width: none; padding-bottom: 0; }
  .hero-photo h1 { font-size: clamp(2.4rem, 4.2vw, 4.4rem); }
  .hero-img { border-top: 0; height: 100%; min-height: 540px; max-height: 720px; object-fit: cover; object-position: 30% 60%;
    clip-path: polygon(9% 0, 100% 0, 100% 100%, 0 100%); }
}
.clients { padding: 34px 0; background: var(--white); border-bottom: 1px solid #E3E6E6; }
.client-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 14px; }
.client-list li { font: 700 italic 1.35rem var(--head); text-transform: uppercase; letter-spacing: .06em; color: var(--black); border: 2px solid var(--black); padding: 6px 18px; clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%); background: var(--grey-light); }

/* ---- v10: anchor links land below the sticky header; filter feedback ---- */
html { scroll-padding-top: 130px; }
[id] { scroll-margin-top: 130px; }
.job-count { font-weight: 700; color: var(--teal-dark); margin: -8px 0 22px; }
.filters { position: relative; z-index: 2; }
.filters button { position: relative; }

/* ---- v11 hero: keep the left of the photo (both excavators) in view; trim from the right instead ---- */
@media (min-width: 1000px) {
  .hero.hero-photo { grid-template-columns: minmax(0, 40%) minmax(0, 1fr); }
  .hero-img { object-position: left 60%; clip-path: polygon(6% 0, 100% 0, 100% 100%, 0 100%); }
}

/* ---- v12 hero: photo cropped to the column shape so the whole group shows ---- */
@media (min-width: 1000px) {
  .hero-img { object-position: left 55%; clip-path: polygon(5% 0, 100% 0, 100% 100%, 0 100%); max-height: none; min-height: 0; height: 100%; aspect-ratio: auto; }
  .hero.hero-photo { grid-template-columns: minmax(0, 38%) minmax(0, 1fr); align-items: center; }
  .hero-photo > .wrap { padding-top: 40px; padding-bottom: calc(40px + var(--slant)); }
  .hero-img { height: auto; }
}

/* ---- v13: forms, notes ---- */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ar-note { border-left: 6px solid var(--grey); padding: 8px 14px; background: var(--grey-light); margin-top: 26px; }
input:invalid:not(:placeholder-shown):not(:focus), textarea:invalid:not(:placeholder-shown):not(:focus) { border-color: #B3261E; }
@media (min-width: 900px) { .nav a { padding: 10px 11px; font-size: 1.1rem; } }

/* ---- v14: service detail, numbers, map ---- */
.how { background: var(--grey-light); border-left: 6px solid var(--teal); padding: 14px 18px; margin-top: 14px; }
.how p { margin: 0 0 .5em; } .how p:last-child { margin: 0; }
.numbers-2 { margin-top: 26px; }
#project-map { height: 460px; border: 3px solid var(--black); background: #dfe5e5; z-index: 1; }

/* ---- v15: complex works ---- */
.cw-grid { display: grid; gap: 18px; grid-template-columns: 1fr; margin-top: 18px; }
.cw { margin: 0; background: var(--white); color: var(--black); border: 2px solid var(--black); }
.cw img { width: 100%; height: auto; border-bottom: 6px solid var(--teal); }
.cw figcaption { padding: 14px 16px 16px; } .cw h3 { margin-bottom: .3em; } .cw p { margin: 0; }
.dark .cw { border-color: var(--teal); }
@media (min-width: 700px) { .cw-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .cw-grid.three, .cw-grid { grid-template-columns: repeat(3, 1fr); } }

/* Seven menu items: keep the tap-to-open menu until the screen is wide enough for one row */
@media (min-width: 900px) and (max-width: 1199px) {
  .nav-toggle { display: inline-block; }
  .nav { display: none; width: 100%; padding-bottom: 12px; }
  .nav.open { display: block; }
  .nav ul { display: block; }
  .nav a { border-top: 1px solid #E3E6E6; padding: 12px 4px; font-size: 1.2rem; }
  .nav .btn { margin: 10px 0 0; border-top: 0; text-align: center; }
}
@media (min-width: 1200px) { .nav a { padding: 10px 9px; font-size: 1.05rem; white-space: nowrap; } .nav .btn { padding: 10px 20px; } }

/* Complex works: square project photos */
.cw-jobs .cw img, .cw.sq img { aspect-ratio: 1 / 1; object-fit: cover; }

/* ---- v13 hero on wide and ultrawide screens: cap the hero width, keep the text lined up with the logo ---- */
@media (min-width: 1500px) {
  .hero.hero-photo {
    --hero-pad: max(0px, calc((100vw - 1800px) / 2));
    padding-left: var(--hero-pad); padding-right: var(--hero-pad);
    grid-template-columns: minmax(0, 46%) minmax(0, 54%);
  }
  .hero-photo > .wrap { padding-left: max(24px, calc((100vw - 1160px) / 2 + 16px - var(--hero-pad))); padding-right: 36px; }
  .hero-photo h1 { font-size: 4.4rem; }
  .hero-photo .lead { font-size: 1.2rem; }
}

/* ---- v15 (25 Nov 2026 review): button text in dark sections, A&R note, form errors only after typing, hero to the right edge ---- */
.dark .btn { color: var(--black); }
.dark .btn.dark-btn { color: var(--white); }
.dark .btn:hover { color: var(--black); }
.dark .ar-note { background: rgba(255,255,255,.07); color: #E4E6E6; border-left-color: var(--teal); }
input:invalid:not(:placeholder-shown):not(:focus), textarea:invalid:not(:placeholder-shown):not(:focus) { border-color: var(--black); }
input:user-invalid:not(:focus):not(:placeholder-shown), textarea:user-invalid:not(:focus):not(:placeholder-shown), select:user-invalid:not(:focus) { border-color: #B3261E; }
@media (min-width: 1500px) { .hero.hero-photo { padding-right: 0; } }

/* ---- v16 (27 Nov 2026 go-live): video cards and a two-across grid on Complex Works ---- */
.cw video { display: block; width: 100%; height: auto; background: #000; border-bottom: 6px solid var(--teal); }
.cw.sq video { aspect-ratio: 1 / 1; object-fit: cover; }
@media (min-width: 700px) { .cw-grid.two { grid-template-columns: repeat(2, 1fr); max-width: 900px; margin-left: auto; margin-right: auto; } }
.split > .clip { justify-self: center; }
