:root {
  --red: #ed1018;
  --red-dark: #b90911;
  --charcoal: #252525;
  --black: #101010;
  --steel: #55585a;
  --ink: #111111;
  --muted: #717171;
  --line: #dedede;
  --paper: #f5f5f2;
  --white: #ffffff;
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.14);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  background:
    linear-gradient(90deg, rgba(17, 17, 17, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(17, 17, 17, 0.035) 1px, transparent 1px),
    var(--paper);
  background-size: 42px 42px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
}

.topbar {
  background: #252525 !important;
  color: #ededed !important;
  font-size: 13px;
  font-weight: 700;
}

.topbar .header-inner {
  min-height: 36px;
}

.topbar-inner,
.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topbar-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.topbar a {
  color: var(--white);
}

.header-inner,
.section-inner {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.header-inner {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand img {
  width: clamp(178px, 24vw, 232px);
  height: auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--charcoal);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
}

.menu-toggle {
  display: none;
  width: auto;
  min-width: 102px;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 10px 12px;
  background: var(--white);
  color: var(--charcoal);
  box-shadow: none;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
}

.menu-toggle strong {
  margin-left: 4px;
  font-size: 12px;
  line-height: 1;
  text-transform: uppercase;
}

.site-header.is-open .menu-toggle {
  border-color: rgba(237, 16, 24, 0.34);
  color: var(--red);
}

.nav a,
.services-menu summary {
  white-space: nowrap;
}

.services-menu {
  position: relative;
}

.services-menu summary {
  list-style: none;
  cursor: pointer;
}

.services-menu summary::-webkit-details-marker {
  display: none;
}

.services-menu summary::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}

.submenu {
  position: absolute;
  top: calc(100% + 16px);
  left: 0;
  width: 280px;
  display: none;
  gap: 0;
  padding: 8px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--red);
  border-radius: 4px;
  background: var(--white);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18);
  z-index: 20;
}

.services-menu[open] .submenu,
.services-menu:hover .submenu,
.services-menu:focus-within .submenu {
  display: grid;
}

.submenu a {
  display: block;
  padding: 11px 12px;
  border-radius: 3px;
  color: var(--charcoal);
}

.submenu a:hover,
.submenu a:focus {
  background: #f2f2f2;
  color: var(--red);
}

.phone-button {
  display: inline-grid;
  gap: 1px;
  min-height: 44px;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 8px 13px;
  background: #f7f7f7;
}

.phone-button span {
  color: var(--red);
  font-size: 11px;
  line-height: 1;
}

.phone-button strong {
  color: var(--charcoal);
  font-size: 13px;
  line-height: 1.1;
}

.button,
button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 0;
  border-radius: 4px;
  padding: 13px 18px;
  background: var(--red);
  color: var(--white);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0;
  text-transform: uppercase;
  cursor: pointer;
  text-align: center;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.button:hover,
button:hover,
.phone-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(237, 16, 24, 0.2);
}

.button.secondary {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.55);
}

.button.dark {
  background: var(--charcoal);
}

.text-link {
  display: inline-flex;
  margin-top: 14px;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: calc(88vh - 82px);
  display: grid;
  align-items: stretch;
  background:
    linear-gradient(90deg, rgba(17, 17, 17, 0.94), rgba(17, 17, 17, 0.74) 52%, rgba(17, 17, 17, 0.28)),
    repeating-linear-gradient(135deg, #3a3a3a 0 2px, #2e2e2e 2px 8px);
  background-position: center;
  background-size: cover;
  color: var(--white);
}

.hero-photo {
  background:
    radial-gradient(circle at 78% 28%, rgba(237, 16, 24, 0.34), transparent 28%),
    linear-gradient(90deg, rgba(10, 10, 10, 0.96), rgba(17, 17, 17, 0.76) 48%, rgba(17, 17, 17, 0.42)),
    url("../img/projects/commercial-campus-aerial.jpg");
  background-position: center 46%;
  background-size: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.55));
  pointer-events: none;
}

.hero-industrial-lines {
  position: absolute;
  inset: 0;
  opacity: 0.42;
  background:
    linear-gradient(115deg, transparent 0 48%, rgba(237, 16, 24, 0.62) 48% 48.35%, transparent 48.35%),
    repeating-linear-gradient(90deg, transparent 0 82px, rgba(255, 255, 255, 0.06) 82px 83px);
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero .section-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  gap: 48px;
  align-items: center;
  padding: 44px 0;
}

.eyebrow {
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 840px;
  margin-bottom: 18px;
  font-size: clamp(40px, 5.2vw, 70px);
  line-height: 0.95;
  letter-spacing: 0;
  text-transform: uppercase;
  overflow-wrap: break-word;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(30px, 3.8vw, 48px);
  line-height: 1.02;
  letter-spacing: 0;
  text-transform: uppercase;
  overflow-wrap: break-word;
}

h3 {
  font-size: 20px;
  line-height: 1.15;
}

.hero-copy p {
  max-width: 650px;
  color: #e5e5e5;
  font-size: 18px;
}

.hero-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 650px;
  margin: 18px 0 20px;
}

.hero-proof div {
  min-width: 0;
  border-left: 4px solid var(--red);
  padding: 10px 13px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.hero-proof strong {
  display: block;
  font-size: clamp(26px, 3.5vw, 40px);
  line-height: 0.95;
}

.hero-proof span {
  display: block;
  margin-top: 5px;
  color: #ececec;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-actions,
.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  gap: 12px;
}

.form-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hero-panel,
.hero-bid-card {
  border-left: 6px solid var(--red);
  background: rgba(255, 255, 255, 0.08);
  padding: 26px;
  max-width: 100%;
}

.hero-bid-card {
  border-left: 0;
  border-top: 6px solid var(--red);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(16px);
  transform: translateZ(0);
}

.hero-bid-card::before {
  content: "Bid Desk";
  display: inline-flex;
  margin-bottom: 12px;
  border: 1px solid rgba(237, 16, 24, 0.3);
  border-radius: 99px;
  padding: 5px 10px;
  color: var(--red);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-panel strong {
  display: block;
  font-size: 44px;
  line-height: 1;
}

.hero-panel span {
  display: block;
  margin-top: 8px;
  color: #d7d7d7;
  font-weight: 700;
  text-transform: uppercase;
}

.section {
  padding: 76px 0;
  scroll-margin-top: 110px;
}

.section-wash {
  position: relative;
  overflow: hidden;
}

.section-wash::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, transparent 0 62%, rgba(237, 16, 24, 0.06) 62% 63%, transparent 63%),
    radial-gradient(circle at 90% 0, rgba(237, 16, 24, 0.08), transparent 32%);
  pointer-events: none;
}

.section-wash > .section-inner {
  position: relative;
}

.section.dark {
  background: var(--charcoal);
  color: var(--white);
}

.section.white {
  background: var(--white);
}

.split {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: 48px;
  align-items: start;
}

.lead {
  color: var(--steel);
  font-size: 18px;
}

.dark .lead {
  color: #d0d0d0;
}

.service-grid,
.market-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 18px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
}

.project-grid .project-card {
  grid-column: span 2;
}

.project-grid .project-card:nth-last-child(2),
.project-grid .project-card:nth-last-child(1) {
  grid-column: span 3;
}

.service-card,
.market-card,
.project-card,
.stat,
.admin-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
}

.service-card,
.market-card,
.project-card {
  padding: 24px;
  min-width: 0;
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.service-card:hover,
.project-card:hover,
.subpage-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: rgba(237, 16, 24, 0.28);
}

.service-card {
  border-top: 5px solid var(--red);
}

.service-card p,
.market-card p,
.project-card p {
  color: var(--muted);
}

.service-card ul,
.checklist {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.service-card li,
.checklist li {
  padding: 9px 0;
  border-top: 1px solid var(--line);
  color: var(--charcoal);
  font-weight: 700;
}

.market-card {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(37, 37, 37, 0.15), rgba(17, 17, 17, 0.9)),
    repeating-linear-gradient(45deg, #5a5a5a 0 3px, #484848 3px 9px);
}

.brand-depth {
  position: relative;
  overflow: hidden;
}

.brand-depth::before {
  content: "CAPITAL";
  position: absolute;
  right: -2vw;
  bottom: -0.22em;
  color: rgba(255, 255, 255, 0.045);
  font-size: clamp(86px, 18vw, 240px);
  font-weight: 900;
  line-height: 1;
}

.market-card p {
  color: #ededed;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 14px;
}

.stat {
  padding: 22px;
  position: relative;
  overflow: hidden;
}

.stat strong {
  display: block;
  color: var(--red);
  font-size: 34px;
}

.stat::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 0;
  height: 4px;
  background: var(--red);
}

.impact-strip {
  position: relative;
  z-index: 2;
  margin-top: -1px;
  background: var(--black);
  color: var(--white);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.impact-strip .section-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.impact-strip div div {
  min-height: 150px;
  padding: 28px 26px;
  border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.impact-strip div div:last-child {
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.impact-strip span {
  display: block;
  color: var(--red);
  font-size: 13px;
  font-weight: 900;
}

.impact-strip strong {
  display: block;
  margin: 8px 0;
  font-size: 22px;
  text-transform: uppercase;
}

.impact-strip p {
  color: #d7d7d7;
  margin-bottom: 0;
}

.project-media,
.photo-slot {
  min-height: 210px;
  margin: -24px -24px 20px;
  display: grid;
  place-items: center;
  color: #dcdcdc;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  background:
    linear-gradient(135deg, rgba(237, 16, 24, 0.76), rgba(37, 37, 37, 0.72)),
    repeating-linear-gradient(135deg, #555 0 2px, #383838 2px 10px);
  text-align: center;
}

.project-media img {
  width: 100%;
  height: 210px;
  object-fit: cover;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: minmax(210px, 1fr);
  gap: 18px;
  margin-top: 28px;
}

.photo-tile {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 6px;
  background: var(--charcoal);
  box-shadow: var(--shadow);
}

.photo-tile.large {
  grid-column: span 2;
  grid-row: span 2;
}

.photo-tile img {
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
  transition: transform 600ms ease, filter 400ms ease;
}

.photo-tile:hover img {
  transform: scale(1.045);
  filter: contrast(1.05) saturate(1.06);
}

.photo-tile.large img {
  object-position: center 58%;
}

.photo-tile.sitework img {
  object-position: center 50%;
}

.photo-tile.foundation img {
  object-position: center 48%;
}

.photo-tile.steel img {
  object-position: center 52%;
}

.photo-tile.finished img {
  object-position: center 52%;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 3px;
  padding: 4px 8px;
  background: #efefef;
  color: var(--charcoal);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.cta-band {
  background: var(--red);
  color: var(--white);
}

.cta-depth {
  background:
    linear-gradient(100deg, rgba(237, 16, 24, 1), rgba(185, 9, 17, 0.94)),
    repeating-linear-gradient(135deg, rgba(255,255,255,0.12) 0 2px, transparent 2px 12px);
}

.cta-band .section-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
}

.lead-form {
  display: grid;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 24px;
  min-width: 0;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.06);
}

.hero-form {
  margin-top: 12px;
  padding: 0;
  border: 0;
  background: transparent;
}

.hero-form textarea {
  min-height: 88px;
}

.form-promo {
  border-left: 5px solid var(--red);
  border-radius: 4px;
  padding: 16px;
  background:
    linear-gradient(90deg, rgba(237, 16, 24, 0.14), rgba(37, 37, 37, 0.04)),
    #f7f7f7;
}

.form-promo strong {
  display: block;
  color: var(--charcoal);
  font-size: 20px;
  line-height: 1.15;
  text-transform: uppercase;
}

.form-promo span {
  display: block;
  margin-top: 6px;
  color: var(--steel);
}

.form-promo.compact strong {
  font-size: 17px;
}

.form-promo.compact span {
  font-size: 14px;
}

.file-upload {
  display: grid;
  gap: 8px;
  border: 1px dashed #b9b9b9;
  border-radius: 6px;
  padding: 14px;
  background: #fbfbfb;
  color: var(--steel);
  cursor: pointer;
}

.file-upload span {
  color: var(--charcoal);
  font-weight: 800;
  text-transform: uppercase;
}

.file-upload input {
  border: 0;
  min-height: auto;
  padding: 0;
  background: transparent;
}

.file-upload input::file-selector-button {
  margin-right: 12px;
  border: 0;
  border-radius: 4px;
  padding: 10px 12px;
  background: var(--charcoal);
  color: var(--white);
  font-weight: 800;
  text-transform: uppercase;
  cursor: pointer;
}

.file-upload small {
  color: var(--muted);
}

.file-upload.compact {
  padding: 12px;
}

.file-upload small[data-file-summary] {
  color: var(--charcoal);
  font-weight: 700;
  overflow-wrap: anywhere;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid #cfcfcf;
  border-radius: 4px;
  padding: 12px;
  color: var(--ink);
  font: inherit;
  min-width: 0;
}

textarea {
  min-height: 118px;
  resize: vertical;
}

.footer {
  padding: 48px 0;
  background: #151515;
  color: #dcdcdc;
}

.footer .section-inner {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(260px, 1.2fr) auto;
  gap: 24px;
  align-items: start;
}

.footer-brand img {
  width: 210px;
  margin-bottom: 14px;
  background: var(--white);
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
  font-size: 14px;
  font-weight: 700;
}

.footer a {
  color: var(--white);
}

.page-hero {
  background:
    linear-gradient(90deg, rgba(17, 17, 17, 0.92), rgba(17, 17, 17, 0.55)),
    var(--hero-image, url("../img/projects/commercial-campus-aerial.jpg"));
  background-position: center;
  background-size: cover;
  color: var(--white);
  padding: 92px 0;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 520ms ease, transform 520ms ease;
}

.hero .reveal {
  opacity: 1;
  transform: none;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .reveal {
    opacity: 1;
    transform: none;
  }
}

.page-hero p {
  max-width: 720px;
  color: #ebebeb;
  font-size: 18px;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: 42px;
  align-items: start;
}

.detail-panel {
  border-top: 5px solid var(--red);
  background: var(--white);
  border-radius: 6px;
  padding: 24px;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.08);
}

.detail-list {
  display: grid;
  gap: 12px;
  margin: 0;
}

.detail-list div {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.detail-list dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.detail-list dd {
  margin: 3px 0 0;
}

.content-list {
  margin: 0;
  padding-left: 20px;
  color: var(--steel);
}

.content-list li {
  margin-bottom: 10px;
}

.subpage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 18px;
}

.subpage-card {
  display: grid;
  align-content: start;
  min-height: 190px;
  padding: 24px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--red);
  border-radius: 6px;
  background: var(--white);
}

.admin-shell {
  width: min(100% - 32px, 1100px);
  margin: 32px auto;
}

.admin-shell h1 {
  font-size: clamp(34px, 5vw, 56px);
}

.admin-panel {
  padding: 24px;
}

.admin-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 18px;
  align-items: start;
}

.admin-list {
  display: grid;
  gap: 12px;
}

.analytics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.analytics-card {
  min-height: 150px;
  display: grid;
  align-content: space-between;
  gap: 12px;
  padding: 20px;
  border-radius: 6px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(237, 16, 24, 0.92), rgba(37, 37, 37, 0.92)),
    repeating-linear-gradient(45deg, #3d3d3d 0 2px, #2c2c2c 2px 8px);
}

.analytics-card span,
.analytics-card small {
  color: #f1f1f1;
  font-weight: 800;
  text-transform: uppercase;
}

.analytics-card strong {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 0.95;
}

.analytics-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.metric-list {
  display: grid;
  gap: 12px;
}

.metric-row {
  display: grid;
  gap: 8px;
}

.metric-row div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.metric-row strong,
.metric-row span {
  overflow-wrap: anywhere;
}

.metric-row span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.metric-row i {
  display: block;
  height: 8px;
  border-radius: 99px;
  background: var(--red);
}

.analytics-recent {
  margin-top: 18px;
}

.activity-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.activity-card h3 {
  margin: 10px 0 4px;
}

.activity-card p,
.activity-card time {
  color: var(--muted);
}

.admin-tabs,
.admin-section-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 18px 0;
}

.lead-card {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 18px;
  background: var(--white);
}

.lead-card.is-contacted {
  border-left: 5px solid #5c8d3b;
}

.lead-card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.lead-card-head h3 {
  margin-bottom: 6px;
}

.lead-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.lead-details div {
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.lead-details dt {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.lead-details dd {
  margin: 3px 0 0;
  overflow-wrap: anywhere;
}

.lead-message {
  white-space: pre-wrap;
  color: var(--steel);
}

.lead-uploads {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.lead-uploads div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.notice {
  border-left: 5px solid var(--red);
  background: #fff6f6;
  padding: 14px;
  color: var(--charcoal);
}

@media (max-width: 900px) {
  .cta-band .section-inner,
  .footer .section-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .header-inner {
    align-items: center;
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    width: 100%;
    grid-template-columns: 1fr;
    justify-content: stretch;
    gap: 8px;
    padding: 8px 0 16px;
    font-size: 13px;
  }

  .site-header.is-open .nav {
    display: grid;
  }

  .nav a,
  .services-menu summary {
    display: flex;
    width: 100%;
    min-height: 44px;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 10px 12px;
    background: var(--white);
  }

  .nav .button,
  .nav .phone-button {
    justify-content: center;
  }

  .hero .section-inner,
  .split,
  .admin-grid,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .hero-proof,
  .impact-strip .section-inner {
    grid-template-columns: 1fr;
  }

  .impact-strip div div,
  .impact-strip div div:last-child {
    min-height: auto;
    border-right: 0;
  }

  .service-grid,
  .market-grid,
  .project-grid,
  .subpage-grid,
  .analytics-layout,
  .stats {
    grid-template-columns: 1fr;
  }

  .project-grid .project-card {
    grid-column: auto;
  }

  .services-menu {
    width: 100%;
  }

  .submenu {
    position: static;
    width: 100%;
    margin-top: 10px;
    box-shadow: none;
  }

  .hero {
    min-height: auto;
  }

  .hero .section-inner {
    padding: 56px 0;
  }

  .hero-photo {
    background-position: center;
  }

  .photo-grid {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .photo-tile.large {
    grid-column: auto;
    grid-row: auto;
  }

  .photo-tile {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 640px) {
  .header-inner,
  .section-inner,
  .admin-shell {
    width: min(100% - 24px, var(--max));
  }

  .header-inner {
    gap: 10px 12px;
    padding: 12px 0;
  }

  .brand img {
    width: clamp(150px, 48vw, 190px);
  }

  .topbar .header-inner {
    min-height: auto;
    padding: 8px 0;
  }

  .topbar-inner,
  .topbar-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .nav .button,
  .nav .phone-button,
  .hero-actions .button,
  .cta-band .button {
    width: 100%;
  }

  .hero-actions,
  .form-row {
    grid-template-columns: 1fr;
  }

  .hero-proof {
    gap: 8px;
  }

  .hero-proof div {
    padding: 10px 12px;
  }

  .lead-card-head {
    flex-direction: column;
  }

  .activity-card,
  .metric-row div {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  h1 {
    font-size: clamp(34px, 11.5vw, 48px);
  }

  h2 {
    font-size: clamp(26px, 9vw, 36px);
  }

  .section {
    padding: 56px 0;
  }

  .hero-panel strong {
    font-size: 36px;
  }

  .service-card,
  .market-card,
  .project-card,
  .subpage-card,
  .detail-panel,
  .lead-form,
  .admin-panel {
    padding: 20px;
  }

  .hero-bid-card {
    padding: 18px;
  }

  .footer-nav {
    grid-template-columns: 1fr;
  }

  .project-media,
  .photo-slot {
    margin: -20px -20px 18px;
  }

  .footer p {
    overflow-wrap: anywhere;
  }

  .photo-tile {
    aspect-ratio: 4 / 3;
  }

  .project-media img {
    height: 230px;
  }
}
