:root {
  color-scheme: light;
  --ink: #07101f;
  --muted: #5e6877;
  --blue: #075daf;
  --blue-dark: #062e62;
  --cyan: #12a8dc;
  --steel: #e8eef5;
  --line: rgba(7, 16, 31, 0.12);
  --orange: #f08a24;
  --green: #1a9b73;
  --white: #ffffff;
  --radius: 8px;
  --shadow: 0 22px 60px rgba(7, 16, 31, 0.16);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  padding-top: 82px;
  color: var(--ink);
  background: #f7f9fc;
}

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

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  padding: 12px clamp(18px, 4vw, 56px);
  color: var(--ink);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 40px rgba(7, 16, 31, 0.12);
  backdrop-filter: blur(18px);
  transition: background 220ms ease, box-shadow 220ms ease, color 220ms ease;
}

.site-header.is-scrolled {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 12px 40px rgba(7, 16, 31, 0.12);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand-logo {
  width: clamp(176px, 18vw, 240px);
  height: 54px;
  object-fit: contain;
  object-position: left center;
  border-radius: 8px;
  background: var(--white);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.1vw, 32px);
  font-size: 0.9rem;
  font-weight: 700;
}

.site-nav a {
  opacity: 0.82;
  color: var(--blue-dark);
}

.site-nav a:hover {
  opacity: 1;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 8px;
  background: var(--blue);
  color: var(--white);
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: calc(92svh - 82px);
  overflow: hidden;
  display: grid;
  align-items: end;
  color: var(--white);
  background:
    radial-gradient(circle at 76% 34%, rgba(18, 168, 220, 0.18), transparent 30%),
    linear-gradient(115deg, #020916 0%, #051427 46%, #062e62 100%);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 10, 24, 0.86) 0%, rgba(3, 10, 24, 0.58) 44%, rgba(3, 10, 24, 0.24) 100%),
    radial-gradient(circle at 72% 48%, rgba(18, 168, 220, 0.2), transparent 32%);
  opacity: 1;
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
  opacity: 0.58;
  filter: saturate(1.08) contrast(1.08) brightness(0.84);
}

.hero-scrim,
.hero-grid {
  position: absolute;
  inset: 0;
}

.hero-scrim {
  background:
    linear-gradient(90deg, rgba(3, 10, 24, 0.9) 0%, rgba(3, 10, 24, 0.78) 42%, rgba(3, 10, 24, 0.42) 72%, rgba(3, 10, 24, 0.26) 100%),
    linear-gradient(0deg, rgba(3, 10, 24, 0.9) 0%, rgba(3, 10, 24, 0.08) 44%);
}

.hero-grid {
  opacity: 0.44;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, #000 0%, transparent 74%);
}

.hero-content {
  position: relative;
  z-index: 2;
  width: min(780px, calc(100% - 36px));
  margin: 0 0 clamp(170px, 20vh, 230px) clamp(18px, 6vw, 88px);
}

.eyebrow,
.section-kicker {
  margin: 0 0 16px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(3.4rem, 7vw, 7.9rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.hero-copy {
  max-width: 720px;
  margin: 26px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  line-height: 1.65;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 8px;
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  color: var(--white);
  background: var(--orange);
  box-shadow: 0 14px 35px rgba(240, 138, 36, 0.32);
}

.btn.secondary {
  border: 1px solid rgba(255, 255, 255, 0.42);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.hero-strip {
  position: absolute;
  z-index: 3;
  left: clamp(18px, 6vw, 88px);
  right: clamp(18px, 6vw, 88px);
  bottom: 28px;
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.95fr;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
}

.hero-strip article {
  padding: 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.18);
}

.hero-strip article:last-child {
  border-right: 0;
}

.hero-strip span {
  color: var(--cyan);
  font-weight: 900;
}

.hero-strip strong {
  display: block;
  margin-top: 8px;
  font-size: 1rem;
}

.hero-strip p {
  margin: 9px 0 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.stats-band div {
  min-height: 150px;
  padding: 34px clamp(18px, 4vw, 44px);
  border-right: 1px solid var(--line);
}

.stats-band div:last-child {
  border-right: 0;
}

.stats-band strong {
  color: var(--blue);
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1;
}

.stats-band span {
  margin-left: 4px;
  color: var(--green);
  font-weight: 900;
}

.stats-band p {
  max-width: 260px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

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

.section-heading {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(280px, 0.85fr);
  gap: clamp(30px, 6vw, 82px);
  align-items: end;
  max-width: 1180px;
  margin: 0 auto 46px;
}

.section-heading.compact {
  display: block;
  max-width: 820px;
  text-align: center;
}

.section-heading h2,
.deliverable-copy h2,
.contact-copy h2 {
  margin: 0;
  font-size: clamp(2.3rem, 4.2vw, 5.1rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.section-heading p,
.deliverable-copy p,
.contact-copy p,
.lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

.metrology-layout,
.digital-grid,
.software-layout,
.deliverables-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(340px, 1.15fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
}

.feature-copy,
.erp-copy {
  padding: clamp(28px, 4vw, 50px);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.pill-grid,
.module-grid,
.industry-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.pill-grid span,
.module-grid span,
.industry-grid span {
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #f5f8fb;
  color: var(--blue-dark);
  padding: 11px 13px;
  font-weight: 800;
}

.partner-line {
  margin-top: 32px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.partner-line small {
  display: block;
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
}

.partner-line strong {
  display: block;
  margin-top: 7px;
  color: var(--blue);
  font-size: clamp(2rem, 4vw, 3.3rem);
}

.image-panel {
  overflow: hidden;
  margin: 0;
  border-radius: var(--radius);
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.image-panel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.metrology-layout .image-panel {
  min-height: 560px;
}

.metrology-layout .image-panel img {
  object-position: 50% 18%;
}

.product-section {
  background: #eef4fa;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  max-width: 1240px;
  margin: 0 auto;
}

.product-card,
.service-card {
  min-height: 220px;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--white);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}

.product-card:hover,
.service-card:hover {
  transform: translateY(-5px);
  border-color: rgba(7, 93, 175, 0.28);
  box-shadow: 0 24px 50px rgba(7, 16, 31, 0.12);
}

.product-card span,
.service-card strong {
  color: var(--orange);
  font-weight: 900;
}

.product-card h3,
.service-card h3,
.erp-copy h3 {
  margin: 18px 0 12px;
  font-size: 1.25rem;
  line-height: 1.15;
}

.product-card p,
.service-card p,
.erp-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.digital-section {
  color: var(--white);
  background:
    linear-gradient(115deg, rgba(4, 35, 70, 0.96), rgba(7, 16, 31, 0.94)),
    url("assets/digital-engineering.jpg");
  background-size: cover;
  background-position: center;
}

.digital-section .section-heading p,
.digital-section .section-heading h2 {
  color: var(--white);
}

.digital-section .section-heading p {
  opacity: 0.76;
}

.digital-grid {
  grid-template-columns: minmax(300px, 0.95fr) minmax(300px, 1fr);
}

.image-panel.tall {
  min-height: 680px;
}

.service-stack {
  display: grid;
  gap: 14px;
}

.service-card {
  color: var(--ink);
  min-height: 150px;
}

.workflow {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  max-width: 1240px;
  margin: 32px auto 0;
}

.workflow-step {
  min-height: 78px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f9fc;
  color: var(--blue-dark);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.workflow-step:hover,
.workflow-step.is-active {
  color: var(--white);
  background: var(--blue);
  transform: translateY(-2px);
}

.workflow-detail {
  max-width: 760px;
  min-height: 58px;
  margin: 24px auto 0;
  color: var(--muted);
  text-align: center;
  line-height: 1.7;
}

.software-section {
  background: #f7f9fc;
}

.software-layout {
  grid-template-columns: minmax(300px, 0.9fr) minmax(340px, 1.1fr);
}

.software-layout .image-panel {
  min-height: 420px;
}

.software-layout .image-panel img {
  object-position: 50% 50%;
}

.erp-copy .btn {
  margin-top: 28px;
}

.industries-section {
  color: var(--white);
  background:
    linear-gradient(115deg, rgba(4, 35, 70, 0.96), rgba(7, 16, 31, 0.94)),
    url("assets/digital-engineering.jpg");
  background-size: cover;
  background-position: center;
}

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

.industry-grid {
  max-width: 1180px;
  margin: 0 auto;
}

.industry-grid span {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.14);
}

.workflow-industries-section {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(520px, 1.15fr);
  gap: clamp(22px, 4vw, 52px);
  align-items: start;
}

.workflow-industries-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(4, 35, 70, 0.18), rgba(7, 16, 31, 0.38));
  opacity: 1;
}

.workflow-industries-section > * {
  position: relative;
}

.workflow-industries-section .section-heading {
  grid-column: 1 / -1;
  width: 100%;
  max-width: none;
  margin: 0;
  padding-bottom: clamp(22px, 3vw, 34px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  grid-template-columns: minmax(280px, 0.8fr) minmax(360px, 1.2fr);
  gap: clamp(20px, 4vw, 56px);
  align-items: center;
}

.workflow-industries-section .section-heading h2 {
  max-width: 620px;
  font-size: clamp(2.2rem, 3.2vw, 3.8rem);
  line-height: 1.02;
}

.workflow-industries-section .section-heading p {
  max-width: 680px;
  align-self: center;
  padding-left: clamp(18px, 3vw, 36px);
  border-left: 3px solid var(--cyan);
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1rem, 1.2vw, 1.14rem);
  line-height: 1.7;
}

.industries-panel,
.workflow-block {
  min-height: 100%;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 20px 50px rgba(3, 10, 24, 0.18);
  backdrop-filter: blur(12px);
}

.panel-label {
  margin: 0 0 18px;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.workflow-industries-section .industry-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 10px;
  margin: 0;
  max-width: none;
}

.workflow-block {
  max-width: none;
  margin: 0;
}

.workflow-heading {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: start;
}

.workflow-heading h3 {
  margin: 0;
  font-size: clamp(1.7rem, 2.5vw, 2.9rem);
  line-height: 1.06;
}

.workflow-heading p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
}

.workflow-industries-section .workflow-step {
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--white);
  background: rgba(255, 255, 255, 0.11);
}

.workflow-industries-section .workflow {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 24px;
}

.workflow-industries-section .workflow-step:hover,
.workflow-industries-section .workflow-step.is-active {
  color: #051427;
  background: var(--white);
}

.workflow-industries-section .workflow-detail {
  max-width: 640px;
  margin-left: 0;
  margin-right: 0;
  text-align: left;
  color: rgba(255, 255, 255, 0.78);
}

.deliverables-section {
  padding: clamp(72px, 9vw, 126px) clamp(18px, 5vw, 72px);
  grid-template-columns: minmax(280px, 0.8fr) minmax(340px, 1.2fr);
}

.deliverable-copy {
  max-width: 540px;
}

.deliverable-copy p {
  margin-top: 24px;
}

.deliverables-section .image-panel {
  min-height: 560px;
}

.contact-section {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 440px);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: clamp(72px, 9vw, 126px) clamp(18px, 5vw, 72px);
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(3, 10, 24, 0.92), rgba(3, 10, 24, 0.72)),
    url("assets/metrology-hero-clean.jpg");
  background-size: cover;
  background-position: 60% 30%;
}

.contact-copy {
  max-width: 780px;
}

.contact-copy p:not(.eyebrow) {
  margin-top: 24px;
  color: rgba(255, 255, 255, 0.76);
}

.contact-panel {
  display: grid;
  gap: 12px;
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(18px);
}

.contact-panel a,
.contact-panel p {
  margin: 0;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--white);
  line-height: 1.5;
}

.contact-panel p {
  border-bottom: 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 5vw, 72px);
  color: rgba(255, 255, 255, 0.76);
  background: #050b15;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--white);
  font-weight: 800;
}

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

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 1040px) {
  .hero-content {
    margin-bottom: 250px;
  }

  .hero-strip,
  .stats-band,
  .product-grid,
  .workflow {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-strip article {
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  }

  .hero-strip article:nth-child(2) {
    border-right: 0;
  }

  .hero-strip article:last-child {
    grid-column: 1 / -1;
    border-bottom: 0;
  }

  .section-heading,
  .metrology-layout,
  .digital-grid,
  .software-layout,
  .deliverables-section,
  .contact-section {
    grid-template-columns: 1fr;
  }

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

  .workflow {
    grid-template-columns: repeat(4, 1fr);
  }

  .workflow-industries-section {
    grid-template-columns: 1fr;
  }

  .workflow-industries-section .section-heading {
    grid-template-columns: 1fr;
  }

  .workflow-industries-section .industry-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .workflow-industries-section .workflow {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workflow-heading {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body {
    padding-top: 72px;
  }

  html {
    scroll-padding-top: 78px;
  }

  .site-header {
    min-height: 72px;
    padding: 12px 16px;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 72px;
    left: 14px;
    right: 14px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    border-radius: 8px;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    padding: 14px;
  }

  .brand-logo {
    width: 168px;
    height: 46px;
  }

  .hero {
    min-height: calc(94svh - 72px);
  }

  .hero-media {
    opacity: 0.42;
    object-position: 72% center;
  }

  .hero-scrim {
    background:
      linear-gradient(90deg, rgba(3, 10, 24, 0.96), rgba(3, 10, 24, 0.64)),
      linear-gradient(0deg, rgba(3, 10, 24, 0.9) 0%, rgba(3, 10, 24, 0) 44%);
  }

  .hero-content {
    width: calc(100% - 32px);
    margin: 0 16px 270px;
  }

  .hero h1 {
    font-size: clamp(3rem, 18vw, 4.8rem);
  }

  .hero-copy {
    font-size: 1rem;
  }

  .hero-actions,
  .btn {
    width: 100%;
  }

  .hero-strip {
    left: 16px;
    right: 16px;
    bottom: 16px;
    grid-template-columns: 1fr;
  }

  .hero-strip article {
    padding: 15px;
    border-right: 0;
  }

  .hero-strip p {
    display: none;
  }

  .stats-band,
  .product-grid,
  .workflow {
    grid-template-columns: 1fr;
  }

  .workflow-block {
    margin-top: 34px;
  }

  .workflow-industries-section .section-heading {
    padding-bottom: 24px;
  }

  .workflow-industries-section .section-heading p {
    padding-left: 16px;
  }

  .workflow-industries-section .industry-grid {
    grid-template-columns: 1fr;
  }

  .workflow-industries-section .workflow {
    grid-template-columns: 1fr;
  }

  .stats-band div {
    min-height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .section {
    padding: 64px 16px;
  }

  .section-heading {
    margin-bottom: 30px;
  }

  .section-heading h2,
  .deliverable-copy h2,
  .contact-copy h2 {
    font-size: clamp(2.25rem, 11vw, 3.3rem);
  }

  .feature-copy,
  .erp-copy {
    padding: 24px;
  }

  .metrology-layout .image-panel,
  .image-panel.tall,
  .deliverables-section .image-panel,
  .software-layout .image-panel {
    min-height: auto;
  }

  .product-card,
  .service-card {
    min-height: auto;
  }

  .deliverables-section,
  .contact-section {
    padding: 64px 16px;
  }

  .site-footer {
    flex-direction: column;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
