:root {
  --ink: #111315;
  --muted: #5b6670;
  --line: #d9dee3;
  --surface: #ffffff;
  --soft: #f4f6f7;
  --charcoal: #151a1f;
  --charcoal-2: #20272e;
  --blue: #0b48d9;
  --teal: #007f73;
  --orange: #e55d2c;
  --shadow: 0 18px 44px rgba(18, 25, 31, 0.14);
  --header-height: 86px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 24px);
  overflow-x: hidden;
}

body {
  margin: 0;
  padding-top: var(--header-height);
  color: var(--ink);
  background: var(--surface);
  font-family: Inter, Arial, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

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

a {
  color: inherit;
}

[id] {
  scroll-margin-top: calc(var(--header-height) + 24px);
}

.site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  min-height: 86px;
  padding: 14px clamp(20px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(17, 19, 21, 0.1);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.brand img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: clamp(18px, 2vw, 24px);
  line-height: 1.05;
  letter-spacing: 0;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 24px;
  font-weight: 700;
}

.site-nav a {
  color: #27313a;
  font-size: 14px;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--blue);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 12px 18px;
  color: #fff !important;
  background: var(--blue);
  border-radius: 6px;
  box-shadow: 0 10px 24px rgba(11, 72, 217, 0.22);
}

.hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: calc(88vh - var(--header-height));
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(12, 16, 20, 0.88) 0%, rgba(12, 16, 20, 0.64) 46%, rgba(12, 16, 20, 0.18) 100%),
    url("assets/images/MFG-11-1-1.png") center / cover no-repeat;
}

.hero::after {
  position: absolute;
  inset: auto 0 0;
  z-index: -1;
  height: 34%;
  content: "";
  background: linear-gradient(0deg, rgba(12, 16, 20, 0.78), rgba(12, 16, 20, 0));
}

.hero-content {
  width: min(820px, calc(100% - 40px));
  margin: 0 auto;
  padding: 108px 0 clamp(64px, 10vh, 112px);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--orange);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.section h2,
.contact-section h2 {
  margin: 0;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(46px, 8vw, 90px);
}

.hero-copy {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 2vw, 22px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 13px 20px;
  border-radius: 6px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  color: #fff;
  background: var(--blue);
}

.button.secondary {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.08);
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}

.proof-strip div {
  padding: 24px clamp(20px, 4vw, 54px);
  border-right: 1px solid var(--line);
}

.proof-strip div:last-child {
  border-right: 0;
}

.proof-strip strong {
  display: block;
  color: var(--teal);
  font-size: 17px;
  line-height: 1.2;
}

.proof-strip span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding: clamp(72px, 9vw, 118px) clamp(20px, 5vw, 72px);
}

.intro-section,
.split-section,
.customer-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
  align-items: center;
  gap: clamp(36px, 6vw, 88px);
}

.split-section {
  grid-template-columns: minmax(300px, 430px) minmax(0, 1fr);
  background: var(--soft);
}

.customer-section {
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1fr);
  background: #fff;
}

.section-copy {
  max-width: 760px;
}

.section-copy h2,
.section-heading h2,
.contact-section h2 {
  font-size: clamp(34px, 5vw, 60px);
}

.section-copy p,
.section-heading p,
.contact-section p {
  color: var(--muted);
  font-size: 17px;
}

.image-panel {
  margin: 0;
}

.image-panel img {
  width: 100%;
  min-height: 340px;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.image-panel.tall img {
  max-height: 660px;
  object-fit: cover;
  object-position: center;
}

.image-panel figcaption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

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

.dark-section .section-heading p,
.dark-section .service-card p {
  color: rgba(255, 255, 255, 0.72);
}

.section-heading {
  max-width: 860px;
  margin-bottom: 36px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.service-card {
  min-height: 318px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: var(--charcoal-2);
}

.service-card img {
  width: 68px;
  height: 68px;
  object-fit: contain;
}

.service-card h3 {
  margin: 24px 0 10px;
  font-size: 22px;
  line-height: 1.1;
}

.service-card p {
  margin: 0;
  font-size: 14px;
}

.portfolio-overview {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.work-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.work-list div {
  min-height: 210px;
  padding: 22px;
  background: var(--surface);
  color: #2f3942;
  font-weight: 700;
}

.project-section {
  background: var(--soft);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.filter-button {
  min-height: 42px;
  padding: 10px 15px;
  color: #27313a;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
}

.filter-button:hover,
.filter-button.active {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

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

.project-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(18, 25, 31, 0.08);
}

.project-card[hidden] {
  display: none;
}

.project-card img {
  width: 100%;
  aspect-ratio: 1.18 / 1;
  object-fit: contain;
  background: #eef1f2;
}

.project-card div {
  padding: 14px 16px 16px;
}

.project-card span {
  display: block;
  margin-bottom: 7px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.project-card h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.2;
}

.media-mosaic {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.media-mosaic img {
  width: 100%;
  aspect-ratio: 1.2 / 1;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 470px);
  gap: clamp(32px, 6vw, 88px);
  padding: clamp(72px, 9vw, 118px) clamp(20px, 5vw, 72px);
  color: #fff;
  background: var(--teal);
}

.contact-section .eyebrow,
.contact-section p {
  color: rgba(255, 255, 255, 0.82);
}

address {
  display: grid;
  gap: 12px;
  align-content: center;
  font-style: normal;
}

address a {
  display: block;
  padding: 18px 20px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  font-weight: 800;
  text-decoration: none;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(20px, 5vw, 72px);
  color: #c9d0d6;
  background: #101417;
}

.site-footer img {
  width: 214px;
  height: auto;
  filter: brightness(0) invert(1);
}

.site-footer p {
  margin: 0;
  font-size: 14px;
}

@media (max-width: 1180px) {
  .service-grid,
  .work-list {
    grid-template-columns: repeat(3, 1fr);
  }

  .project-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .site-header {
    position: fixed;
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 10px 18px;
  }

  .nav-cta {
    padding: 9px 12px;
  }

  .hero {
    min-height: 76vh;
  }

  .hero-bg {
    background:
      linear-gradient(90deg, rgba(12, 16, 20, 0.9) 0%, rgba(12, 16, 20, 0.66) 100%),
      url("assets/images/MFG-11-1-1.png") center / cover no-repeat;
  }

  .proof-strip,
  .intro-section,
  .split-section,
  .customer-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .proof-strip div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .proof-strip div:last-child {
    border-bottom: 0;
  }

  .split-section .image-panel {
    order: 2;
  }

  .service-grid,
  .work-list,
  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .work-list div {
    min-height: 170px;
  }
}

@media (max-width: 560px) {
  .brand img {
    width: 42px;
    height: 42px;
  }

  .site-nav a {
    font-size: 13px;
  }

  .hero-content {
    padding-top: 64px;
  }

  .hero h1 {
    font-size: 40px;
  }

  .hero-copy,
  .section-copy p,
  .section-heading p,
  .contact-section p {
    font-size: 16px;
  }

  .service-grid,
  .work-list,
  .project-grid,
  .media-mosaic {
    grid-template-columns: 1fr;
  }

  .image-panel img {
    min-height: 260px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
