:root {
  color-scheme: light;
  --ink: #101010;
  --charcoal: #151515;
  --muted: #66645f;
  --paper: #f5f2ea;
  --panel: #ffffff;
  --line: #ddd6c8;
  --gold: #b48b4a;
  --gold-soft: #ead8b6;
  --blue: #143d6b;
  --steel: #e7eef4;
  --green: #536b58;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

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

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 52px;
  background: rgba(245, 242, 234, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

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

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #fff;
  background: var(--ink);
  border: 1px solid #000;
  font-size: 14px;
  font-weight: 800;
}

.brand-text {
  display: grid;
  gap: 1px;
}

.brand strong {
  font-size: 16px;
  line-height: 1.1;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 720;
  text-transform: uppercase;
}

nav {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 680;
}

nav a {
  text-decoration: none;
}

.nav-cta {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  color: #fff;
  background: var(--ink);
  border: 1px solid var(--ink);
}

.hero {
  position: relative;
  min-height: calc(100vh - 71px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 500px);
  gap: 32px;
  align-items: end;
  padding: 84px 52px 42px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(6, 9, 12, .95), rgba(6, 9, 12, .74) 43%, rgba(6, 9, 12, .24) 70%),
    linear-gradient(0deg, rgba(6, 9, 12, .68), rgba(6, 9, 12, .08));
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(.94) contrast(1.02);
}

.hero-copy,
.quote-card {
  position: relative;
  z-index: 1;
}

.hero-copy {
  max-width: 940px;
  color: #fff;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 820;
  text-transform: uppercase;
}

.hero .eyebrow,
.inverse .eyebrow,
.factory-proof .eyebrow {
  color: var(--gold-soft);
}

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

h1 {
  max-width: 920px;
  margin-bottom: 22px;
  font-family: Didot, "Bodoni 72", Georgia, "Times New Roman", serif;
  font-size: 70px;
  font-weight: 520;
  line-height: .98;
}

h2 {
  max-width: 820px;
  margin-bottom: 18px;
  font-family: Didot, "Bodoni 72", Georgia, "Times New Roman", serif;
  font-size: 46px;
  font-weight: 520;
  line-height: 1.04;
}

h3 {
  margin-bottom: 12px;
  font-size: 22px;
  line-height: 1.15;
}

.lede {
  max-width: 780px;
  color: rgba(255, 255, 255, .86);
  font-size: 20px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 30px 0;
}

.button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 2px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  color: #101010;
  background: var(--gold-soft);
  border-color: var(--gold-soft);
}

.button.ghost {
  color: #fff;
  background: rgba(255, 255, 255, .06);
  border-color: rgba(255, 255, 255, .55);
}

.button.dark {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

.hero-stats {
  max-width: 920px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, .3);
}

.hero-stats div {
  min-height: 92px;
  padding: 18px 18px 0 0;
}

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

.hero-stats span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, .72);
  font-size: 13px;
}

.quote-card {
  align-self: center;
  padding: 24px;
  background: rgba(255, 255, 255, .94);
  border: 1px solid rgba(234, 216, 182, .9);
  box-shadow: 0 24px 70px rgba(0, 0, 0, .25);
}

.quote-card .eyebrow {
  color: var(--gold);
}

.quote-card h2 {
  margin-bottom: 18px;
  font-size: 31px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.form-grid.compact {
  gap: 12px;
}

label {
  display: grid;
  gap: 6px;
  color: #2f2f2f;
  font-size: 12px;
  font-weight: 760;
}

input,
select,
textarea {
  width: 100%;
  min-height: 40px;
  padding: 9px 11px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #c7c0b4;
  border-radius: 2px;
  font: inherit;
}

textarea {
  resize: vertical;
}

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

.submit {
  width: 100%;
  margin-top: 16px;
}

.form-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.form-note a {
  font-weight: 780;
  text-decoration: none;
}

.form-result {
  display: none;
  margin-top: 12px;
  padding: 12px;
  color: #12315f;
  white-space: pre-wrap;
  background: #edf4ff;
  border: 1px solid #cddcf1;
}

.form-result.show {
  display: block;
}

.result-link {
  display: inline-flex;
  margin-top: 8px;
  color: var(--blue);
  font-weight: 800;
  text-decoration: none;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  color: #fff;
  background: var(--charcoal);
}

.proof-strip span {
  min-height: 74px;
  display: grid;
  place-items: center;
  padding: 14px;
  border-right: 1px solid rgba(255, 255, 255, .18);
  font-weight: 760;
  text-align: center;
}

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

.section {
  padding: 88px 52px;
}

#products,
#solutions,
#factory,
#workflow,
#quote {
  scroll-margin-top: 92px;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 540px);
  gap: 38px;
  align-items: end;
  margin-bottom: 38px;
}

.section-head p:last-child,
.product-grid p,
.steps p,
.buyer-copy p,
.buyer-grid span,
.solution-grid small,
.audit-grid span,
.equipment-grid span {
  color: var(--muted);
}

.solution-links {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.solution-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.solution-grid a {
  min-height: 230px;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 22px;
  text-decoration: none;
  background: #fff;
}

.solution-grid a:nth-child(2n) {
  background: #fbfaf6;
}

.solution-grid span {
  color: var(--gold);
  font-size: 13px;
  font-weight: 840;
}

.solution-grid strong {
  font-size: 21px;
  line-height: 1.12;
}

.solution-grid small {
  font-size: 14px;
  line-height: 1.45;
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(320px, 38%) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.product-image {
  min-height: 540px;
  background: #fff;
  border: 1px solid var(--line);
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 61% center;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.product-grid article {
  min-height: 260px;
  display: grid;
  align-content: start;
  padding: 26px;
  background: #fff;
}

.product-grid article:nth-child(2n) {
  background: #fbfaf6;
}

.product-grid span,
.steps span {
  display: inline-flex;
  margin-bottom: 26px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 840;
}

.factory-proof {
  color: #fff;
  background: #101010;
  border-block: 1px solid #000;
}

.factory-proof .section-head p:last-child {
  color: rgba(255, 255, 255, .72);
}

.factory-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .9fr);
  gap: 14px;
  margin-bottom: 16px;
}

figure {
  margin: 0;
  background: #171717;
  border: 1px solid rgba(255, 255, 255, .16);
}

figure img {
  width: 100%;
  height: 380px;
  object-fit: cover;
}

.wide-photo img {
  object-position: center 44%;
}

figcaption {
  padding: 12px 14px 14px;
  color: rgba(255, 255, 255, .72);
  font-size: 13px;
}

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

.equipment-grid article {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 340px;
  padding: 14px;
  background: #171717;
  border: 1px solid rgba(255, 255, 255, .16);
}

.equipment-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #222;
}

.equipment-grid strong {
  font-size: 20px;
  line-height: 1.15;
}

.equipment-grid span {
  color: rgba(255, 255, 255, .72);
}

.workflow {
  background: #fff;
  border-block: 1px solid var(--line);
}

.steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.steps article {
  min-height: 224px;
  padding: 24px;
  background: #fff;
}

.steps strong {
  display: block;
  margin-bottom: 12px;
  font-size: 21px;
  line-height: 1.1;
}

.buyer-fit {
  display: grid;
  grid-template-columns: minmax(260px, 420px) minmax(0, 1fr);
  gap: 44px;
  align-items: start;
  background: var(--steel);
}

.buyer-copy .button {
  margin-top: 10px;
}

.buyer-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.buyer-grid article {
  min-height: 190px;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 24px;
  background: #fff;
  border: 1px solid #ccd4dc;
}

.buyer-grid strong {
  font-size: 23px;
  line-height: 1.12;
}

.section-head.compact {
  grid-template-columns: 1fr;
}

.audit-grid {
  display: grid;
  grid-template-columns: 1.45fr repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.audit-grid article {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 360px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
}

.audit-grid .audit-visual {
  min-height: 420px;
}

.audit-grid img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #f8f6ef;
}

.audit-grid .audit-visual img {
  aspect-ratio: 16 / 9;
}

.audit-grid .document-shot {
  aspect-ratio: 16 / 10;
  object-fit: contain;
  padding: 8px;
  background: #f8f6ef;
}

.audit-grid strong {
  font-size: 22px;
}

.final-quote {
  display: grid;
  grid-template-columns: minmax(260px, 360px) minmax(0, 1fr) minmax(240px, 320px);
  gap: 28px;
  align-items: start;
  color: #fff;
  background: var(--charcoal);
}

.final-quote .eyebrow {
  color: var(--gold-soft);
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.check-grid span {
  min-height: 48px;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, .2);
  color: rgba(255, 255, 255, .82);
}

.email-block {
  display: grid;
  gap: 8px;
  padding: 18px;
  color: var(--ink);
  background: var(--gold-soft);
}

.email-block a {
  font-size: 20px;
  font-weight: 840;
  text-decoration: none;
}

.email-block span {
  color: #4d4332;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 52px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer a {
  text-decoration: none;
  font-weight: 760;
}

.seo-page {
  background: #fff;
}

.seo-hero {
  min-height: 560px;
  display: grid;
  align-content: center;
  padding: 92px 52px;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(8, 8, 8, .94), rgba(8, 8, 8, .72) 50%, rgba(8, 8, 8, .36)),
    url("assets/tech-smart-factory-hero.png") center / cover;
}

.seo-hero h1 {
  max-width: 980px;
}

.seo-hero .lede {
  color: rgba(255, 255, 255, .84);
}

.seo-breadcrumb {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, .7);
  font-size: 13px;
  font-weight: 760;
}

.seo-breadcrumb a {
  color: #fff;
  text-decoration: none;
}

.seo-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 43%);
  gap: 38px;
  align-items: center;
}

.seo-layout article p {
  max-width: 760px;
  color: var(--muted);
}

.seo-layout aside {
  border: 1px solid var(--line);
  background: #f8f6ef;
  overflow: hidden;
}

.seo-layout aside img {
  width: 100%;
  height: 520px;
  object-fit: cover;
}

.seo-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
}

.seo-card-grid span {
  min-height: 74px;
  display: flex;
  align-items: center;
  padding: 13px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-weight: 760;
}

.keyword-band {
  display: grid;
  grid-template-columns: minmax(260px, 420px) minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  background: var(--steel);
  border-top: 1px solid #ccd4dc;
}

.keyword-band p {
  color: var(--muted);
  margin-bottom: 0;
}

@media (max-width: 1180px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .quote-card {
    align-self: auto;
    max-width: 760px;
  }

  .product-layout,
  .seo-layout,
  .keyword-band,
  .buyer-fit,
  .final-quote {
    grid-template-columns: 1fr;
  }

  .product-image {
    min-height: 360px;
  }

  .steps,
  .solution-grid,
  .equipment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .topbar,
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    flex-wrap: wrap;
  }

  .topbar,
  .section,
  .hero,
  .footer {
    padding-left: 24px;
    padding-right: 24px;
  }

  h1 {
    font-size: 52px;
  }

  h2 {
    font-size: 38px;
  }

  .hero-stats,
    .proof-strip,
    .section-head,
    .factory-showcase,
    .product-grid,
    .seo-card-grid,
    .buyer-grid,
    .audit-grid {
    grid-template-columns: 1fr;
  }

  .seo-hero {
    padding-left: 24px;
    padding-right: 24px;
  }
}

@media (max-width: 560px) {
  .hero {
    min-height: auto;
    padding-top: 64px;
  }

  .hero-bg::after {
    background: linear-gradient(180deg, rgba(6, 9, 12, .72), rgba(6, 9, 12, .96));
  }

  h1 {
    font-size: 39px;
  }

  h2 {
    font-size: 32px;
  }

  .form-grid,
  .form-grid.compact,
  .steps,
  .solution-grid,
  .equipment-grid,
  .check-grid {
    grid-template-columns: 1fr;
  }

  .span-2 {
    grid-column: auto;
  }

  figure img {
    height: 250px;
  }
}
