:root {
  --bg: #f5f5f3;
  --paper: #ffffff;
  --ink: #101010;
  --muted: #6d6d6f;
  --line: rgba(16, 16, 16, .1);
  --soft: rgba(255, 255, 255, .72);
  --shadow: 0 24px 70px rgba(0, 0, 0, .12);
  --radius: 8px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}

img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
.skip-link { position: absolute; left: -999px; top: 12px; z-index: 99; background: #fff; padding: 10px 14px; }
.skip-link:focus { left: 12px; }

.site-header {
  position: fixed;
  top: 14px;
  left: 50%;
  z-index: 20;
  width: min(calc(100% - 28px), 1180px);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 18px;
  padding: 10px 12px 10px 18px;
  border: 1px solid rgba(255,255,255,.52);
  border-radius: 999px;
  background: rgba(248, 248, 246, .72);
  box-shadow: 0 10px 34px rgba(0,0,0,.08);
  backdrop-filter: blur(24px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; white-space: nowrap; }
.brand span {
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%;
  background: #111; color: #fff; font-weight: 700; letter-spacing: .04em;
}
.brand strong { font-weight: 650; }
.nav { justify-self: center; display: flex; gap: 22px; color: #3d3d3f; font-size: 14px; }
.nav a:hover { color: #000; }
.nav-cta, .button {
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 999px;
  padding: 11px 18px;
  background: var(--paper);
  box-shadow: 0 8px 22px rgba(0,0,0,.08);
  font-weight: 650;
}
.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(0,0,0,.1);
  border-radius: 999px;
  background: rgba(255,255,255,.7);
}
.lang-toggle button {
  border: 0;
  border-radius: 999px;
  padding: 7px 10px;
  background: transparent;
  color: #5f5f61;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
}
.lang-toggle button.active { background: #111; color: #fff; }

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: #111;
  color: #fff;
}
.hero picture { position: absolute; inset: 0; }
.hero img { opacity: .86; transform: scale(1.04); }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.1), rgba(0,0,0,.32) 46%, rgba(0,0,0,.68));
}
.hero-content {
  position: relative;
  z-index: 2;
  width: min(100% - 36px, var(--max));
  margin: 0 auto;
  padding: 150px 0 118px;
}
.eyebrow {
  margin: 0 0 14px;
  color: #8b8b8e;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: .11em;
  text-transform: uppercase;
}
.hero .eyebrow { color: rgba(255,255,255,.78); }
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 980px;
  margin-bottom: 22px;
  font-size: clamp(48px, 7vw, 104px);
  line-height: .95;
  letter-spacing: 0;
}
h2 { margin-bottom: 18px; font-size: clamp(36px, 5vw, 72px); line-height: 1; letter-spacing: 0; }
h3 { margin-bottom: 8px; font-size: 24px; letter-spacing: 0; }
.hero-copy { max-width: 650px; color: rgba(255,255,255,.82); font-size: clamp(18px, 2vw, 24px); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 46px; cursor: pointer; transition: transform .25s ease, box-shadow .25s ease; }
.button:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(0,0,0,.14); }
.button.primary { background: #fff; color: #111; }
.button.secondary { background: rgba(255,255,255,.18); color: #fff; border-color: rgba(255,255,255,.35); backdrop-filter: blur(16px); }
.button.ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.28); box-shadow: none; }
.hero-stats {
  position: absolute;
  right: max(18px, calc((100vw - var(--max)) / 2));
  bottom: 34px;
  z-index: 2;
  display: flex;
  gap: 10px;
}
.hero-stats span {
  min-width: 132px;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--radius);
  background: rgba(255,255,255,.13);
  backdrop-filter: blur(18px);
  color: rgba(255,255,255,.75);
}
.hero-stats strong { display: block; color: #fff; font-size: 22px; }

.section { width: min(100% - 36px, var(--max)); margin: 0 auto; padding: 108px 0; }
.intro { padding-bottom: 46px; }
.section-heading { max-width: 860px; margin-bottom: 36px; }
.section-heading.center { margin-inline: auto; text-align: center; }
.section-heading.split { max-width: none; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, .6fr); gap: 48px; align-items: end; }
.section-heading p { color: var(--muted); font-size: 18px; }

.why-grid, .material-grid, .project-grid { display: grid; gap: 18px; }
.why-grid { grid-template-columns: repeat(4, 1fr); }
.soft-card {
  min-height: 230px;
  padding: 28px;
  border: 1px solid rgba(0,0,0,.06);
  border-radius: var(--radius);
  background: rgba(255,255,255,.82);
  box-shadow: 0 16px 42px rgba(0,0,0,.05);
}
.soft-card p, .project-grid p, .product-card p { color: var(--muted); }
.icon {
  display: grid; place-items: center;
  width: 44px; height: 44px;
  margin-bottom: 42px;
  border-radius: 50%;
  background: #111;
  color: #fff;
  font-size: 22px;
}

.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.product-card {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  border-radius: var(--radius);
  background: #ddd;
  box-shadow: 0 22px 54px rgba(0,0,0,.12);
  transition: transform .35s ease, box-shadow .35s ease;
}
.product-card.large { grid-column: span 2; }
.product-card:after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.62));
}
.product-card div { position: absolute; left: 24px; right: 24px; bottom: 22px; z-index: 1; color: #fff; }
.product-card p { color: rgba(255,255,255,.78); }
.product-card:hover { transform: translateY(-6px) scale(1.01); box-shadow: var(--shadow); }
.product-card:hover img { transform: scale(1.05); }
.product-card img { transition: transform .7s ease; }

.factory-section { width: min(100% - 22px, 1320px); }
.factory-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.factory-grid button {
  position: relative;
  min-height: 340px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius);
  background: #ddd;
  cursor: zoom-in;
}
.factory-grid button:nth-child(1), .factory-grid button:nth-child(2) { grid-column: span 2; }
.factory-grid button span {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 1;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(14px);
  font-weight: 700;
}
.factory-grid button:after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent, rgba(0,0,0,.18)); }

.timeline {
  display: grid;
  grid-template-columns: repeat(9, minmax(120px, 1fr));
  gap: 10px;
  overflow-x: auto;
  padding: 4px 0 16px;
  list-style: none;
}
.timeline li {
  position: relative;
  min-height: 124px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  font-weight: 750;
}
.timeline span { display: block; margin-bottom: 32px; color: var(--muted); font-size: 13px; }

.export-loading {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 34px;
  align-items: center;
}
.loading-visual {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #ddd;
}
.loading-visual img { aspect-ratio: 4 / 3; height: auto; }
.loading-copy {
  padding: 38px;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: var(--radius);
  background: rgba(255,255,255,.84);
  box-shadow: 0 18px 48px rgba(0,0,0,.07);
}
.loading-copy p { color: var(--muted); font-size: 18px; }
.loading-points {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 28px;
}
.loading-points span {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-weight: 750;
  text-align: center;
}

.material-grid { grid-template-columns: repeat(6, 1fr); }
.material-grid article {
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 12px 36px rgba(0,0,0,.06);
}
.material-grid img { aspect-ratio: 1 / 1.1; height: auto; }
.material-grid h3 { padding: 18px; font-size: 18px; }

.oem-page {
  width: min(100% - 36px, var(--max));
  min-height: 88svh;
  margin: 0 auto;
  padding: 118px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  align-items: center;
}
.oem-copy p { max-width: 580px; color: var(--muted); font-size: 20px; }
.service-cloud { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.service-cloud span {
  min-height: 132px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: var(--radius);
  background: linear-gradient(145deg, #fff, #efefed);
  box-shadow: 0 20px 48px rgba(0,0,0,.08);
  font-size: 24px;
  font-weight: 800;
}

.project-grid { grid-template-columns: repeat(3, 1fr); }
.project-grid article { border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: 0 16px 42px rgba(0,0,0,.07); }
.project-grid img { aspect-ratio: 1.18 / 1; height: auto; }
.project-grid h3, .project-grid p { padding-inline: 22px; }
.project-grid h3 { padding-top: 22px; }
.project-grid p { padding-bottom: 20px; }

.faq-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 18px 18px 10px;
}
summary { cursor: pointer; font-weight: 760; }
details p { color: var(--muted); }

.contact {
  width: min(100% - 36px, var(--max));
  margin: 0 auto 36px;
  padding: 88px 0;
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 24px;
}
.contact-info, .quote-form {
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 20px 58px rgba(0,0,0,.08);
}
.contact-info { padding: 34px; }
.contact-info p { color: var(--muted); }
.contact-info ul { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 12px; }
.contact-info li { display: grid; gap: 4px; color: var(--muted); }
.contact-info strong { color: var(--ink); }
iframe { width: 100%; height: 250px; border: 0; border-radius: var(--radius); filter: grayscale(1); }
.quote-form { padding: 34px; display: grid; gap: 16px; }
.quote-form label { display: grid; gap: 8px; color: #444; font-weight: 650; }
.quote-form input, .quote-form textarea, .quote-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 15px;
  background: #f8f8f7;
  color: var(--ink);
}
.quote-form .button { width: fit-content; background: #111; color: #fff; }

.site-footer {
  width: min(100% - 36px, var(--max));
  margin: 0 auto;
  padding: 28px 0 44px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.lightbox {
  position: fixed; inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(0,0,0,.84);
}
.lightbox[hidden] { display: none; }
.lightbox img { width: min(100%, 1100px); height: min(82vh, 780px); object-fit: contain; }
.lightbox button {
  position: absolute;
  top: 18px; right: 20px;
  width: 44px; height: 44px;
  border: 0;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  font-size: 28px;
}

.back-to-top {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 18;
  width: 48px;
  height: 48px;
  border: 1px solid rgba(0,0,0,.1);
  border-radius: 50%;
  background: rgba(255,255,255,.86);
  box-shadow: 0 14px 34px rgba(0,0,0,.16);
  backdrop-filter: blur(18px);
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.back-to-top.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }

.reveal { opacity: 0; transform: translateY(28px); }

@media (max-width: 980px) {
  .site-header { grid-template-columns: 1fr auto auto; border-radius: 24px; }
  .nav { display: none; }
  .why-grid, .product-grid, .project-grid, .faq-grid, .contact, .oem-page, .section-heading.split { grid-template-columns: 1fr; }
  .export-loading { grid-template-columns: 1fr; }
  .product-card.large { grid-column: auto; }
  .material-grid { grid-template-columns: repeat(2, 1fr); }
  .factory-grid { grid-template-columns: repeat(2, 1fr); }
  .factory-grid button, .factory-grid button:nth-child(1), .factory-grid button:nth-child(2) { grid-column: auto; min-height: 260px; }
  .hero-stats { left: 18px; right: 18px; bottom: 20px; overflow-x: auto; }
  .hero-content { padding-bottom: 170px; }
}

@media (max-width: 640px) {
  .site-header { top: 8px; width: calc(100% - 16px); gap: 8px; padding: 8px; }
  .brand strong { display: none; }
  .nav-cta { padding: 10px 12px; font-size: 13px; }
  .hero-content { width: calc(100% - 28px); padding-top: 120px; }
  h1 { font-size: 46px; }
  h2 { font-size: 38px; }
  .section, .contact, .oem-page { width: calc(100% - 28px); padding: 74px 0; }
  .why-grid, .material-grid { grid-template-columns: 1fr; }
  .service-cloud { grid-template-columns: 1fr; }
  .site-footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
  .reveal { opacity: 1; transform: none; }
}
