:root {
  --bg: #0b0f14;
  --bg-2: #111820;
  --paper: #f4f5f3;
  --ink: #12161c;
  --cobalt: #246bfd;
  --cobalt-2: #1c54c9;
  --accent: #c9a45c;
  --silver: #c5cbd3;
  --muted: rgba(244, 245, 243, 0.68);
  --muted-dark: rgba(18, 22, 28, 0.68);
  --line: rgba(244, 245, 243, 0.12);
  --line-dark: rgba(18, 22, 28, 0.12);
  --header-h: 76px;
  --font: Inter, system-ui, sans-serif;
  --display: "Space Grotesk", Inter, sans-serif;
  --max: 1240px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

html, body {
  margin: 0;
  background: var(--bg);
  color: #f4f5f3;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }
a:hover { color: var(--cobalt); }

h1, h2, h3, .display {
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0 0 0.6em;
}

p { margin: 0 0 1em; }

.sr-only, .skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
}

.skip-link:focus {
  width: auto;
  height: auto;
  clip: auto;
  left: 16px;
  top: 16px;
  z-index: 100;
  background: var(--cobalt);
  color: #fff;
  padding: 10px 14px;
}

:focus-visible {
  outline: 2px solid var(--cobalt);
  outline-offset: 3px;
}

.container {
  width: min(var(--max), calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
  border-bottom: 1px solid transparent;
}

.site-header--overlay {
  position: fixed;
  width: 100%;
  background: transparent;
}

.site-header.is-scrolled,
.site-header--solid {
  background: rgba(11, 15, 20, 0.94);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}

.header-inner {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 28px;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  color: #fff;
}
.logo:hover { color: #fff; opacity: 0.94; }
.logo-img {
  display: block;
  height: 48px;
  width: auto;
  max-width: min(220px, 56vw);
  object-fit: contain;
}
.logo-img--lg {
  height: 58px;
  max-width: 260px;
}

.nav-desktop { margin-left: auto; }
.nav-desktop ul {
  display: flex;
  gap: 22px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-desktop a {
  font-size: 13px;
  letter-spacing: 0.04em;
  color: rgba(244,245,243,0.82);
}
.nav-desktop a[aria-current="page"],
.nav-desktop a:hover { color: #fff; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}
.nav-desktop + .header-actions { margin-left: 0; }

.lang {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--silver);
}
.lang a[aria-current="true"] { color: #fff; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.btn:hover { transform: translateY(-1px); color: #fff; }
.btn-primary { background: var(--cobalt); color: #fff; }
.btn-primary:hover { background: var(--cobalt-2); color: #fff; }
.btn-ghost { border-color: rgba(244,245,243,0.28); color: #fff; background: transparent; }
.btn-dark { background: var(--bg); color: #fff; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 12px; }

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: transparent;
  position: relative;
}
.menu-toggle span {
  position: absolute;
  left: 11px;
  right: 11px;
  height: 1.5px;
  background: #fff;
}
.menu-toggle span:first-of-type { top: 16px; }
.menu-toggle span:last-of-type { bottom: 16px; }
.menu-toggle.is-open span:first-of-type { top: 20px; transform: rotate(45deg); }
.menu-toggle.is-open span:last-of-type { bottom: 20px; top: 20px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed;
  inset: 0;
  background: #0b0f14;
  z-index: 80;
  padding: 24px;
  display: flex;
  flex-direction: column;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu-bar { display: flex; justify-content: space-between; align-items: center; }
.mobile-menu nav { flex: 1; display: flex; align-items: center; }
.mobile-menu ul { list-style: none; padding: 0; margin: 0; }
.mobile-menu li { margin: 0 0 18px; }
.mobile-menu a {
  font-family: var(--display);
  font-size: 32px;
  letter-spacing: -0.03em;
}
.mobile-menu-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; }

.hero {
  position: relative;
  min-height: 90vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: calc(var(--header-h) + 48px) 0 0;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11,15,20,0.88) 0%, rgba(11,15,20,0.42) 55%, rgba(11,15,20,0.22) 100%),
    linear-gradient(180deg, rgba(11,15,20,0.2) 0%, rgba(11,15,20,0.78) 100%);
}
.hero-copy { position: relative; z-index: 1; padding-bottom: 64px; max-width: 820px; margin-left: max(20px, calc((100% - var(--max)) / 2)); width: auto; }
.hero .container.hero-copy { margin-left: auto; margin-right: auto; max-width: var(--max); width: min(var(--max), calc(100% - 40px)); }
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 10px;
}
.hero-cat {
  color: var(--cobalt);
  font-size: 12px;
  letter-spacing: 0.18em;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(40px, 7vw, 84px);
  margin-bottom: 22px;
}
.hero h1 span { display: block; }
.hero-lead { max-width: 560px; color: var(--muted); font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero-stats {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--line);
  background: rgba(11,15,20,0.55);
  backdrop-filter: blur(12px);
}
.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 22px 0;
}
.hero-stat strong {
  display: block;
  font-family: var(--display);
  font-size: 22px;
}
.hero-stat span { color: var(--muted); font-size: 13px; }

.section { padding: 104px 0; }
.section-paper { background: var(--paper); color: var(--ink); }
.section-paper a { color: var(--ink); }
.section-paper .muted { color: var(--muted-dark); }
.section-dark { background: var(--bg); }
.section-graphite { background: var(--bg-2); }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-foot { margin-top: 40px; }
.index-label {
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cobalt);
  margin-bottom: 16px;
}
.display { font-size: clamp(32px, 4.4vw, 56px); }
.lead { font-size: 18px; color: var(--muted); max-width: 62ch; }
.section-paper .lead { color: var(--muted-dark); }
.muted { color: var(--muted); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.media-frame img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.media-frame figcaption,
.eng-split figcaption {
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.section-paper .media-frame figcaption { color: var(--muted-dark); }

.cap-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}
.cap-card {
  grid-column: span 3;
  background: var(--bg-2);
  overflow: hidden;
  color: #fff;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  min-height: 100%;
  transition: border-color 0.25s, transform 0.25s;
}
.cap-card:hover { border-color: var(--cobalt); transform: translateY(-3px); color: #fff; }
.cap-card--lg { grid-column: span 6; }
.cap-card-media { overflow: hidden; }
.cap-card img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform 0.6s ease;
}
.cap-card:hover img { transform: scale(1.07); }
.cap-card-body { padding: 22px; }
.num {
  display: block;
  font-family: var(--display);
  color: var(--cobalt);
  letter-spacing: 0.12em;
  font-size: 13px;
  margin-bottom: 8px;
}
.cap-card h3 { font-size: 22px; margin-bottom: 8px; }
.cap-card p { color: var(--muted); font-size: 14px; margin: 0; }

.eng-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-bottom: 48px;
}
.eng-split img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

.process-line {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 16px;
  padding: 0;
  margin: 0;
  counter-reset: none;
}
.process-line li {
  border-top: 1px solid var(--line);
  padding-top: 16px;
}
.process-line strong { display: block; margin-bottom: 6px; }
.process-line p { color: var(--muted); font-size: 14px; margin: 0; }

.industry-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.industry-card {
  position: relative;
  min-height: 280px;
  overflow: hidden;
}
.industry-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}
.industry-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 20%, rgba(11,15,20,0.86) 100%);
}
.industry-card > div {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 1;
}
.industry-card h3, .industry-card h2 { margin: 0; font-size: 22px; }
.industry-card--page { min-height: 360px; }
.industry-card--page p { color: var(--muted); margin: 8px 0 0; font-size: 14px; }

.flow-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 0;
  margin: 0;
}
.flow-grid li { border-top: 1px solid var(--line); padding-top: 18px; }
.flow-grid p { color: var(--muted); }

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.metric strong {
  font-family: var(--display);
  font-size: 40px;
  display: block;
}
.section-paper .metric span { color: var(--muted-dark); }

.cta-band {
  background:
    linear-gradient(90deg, rgba(36,107,253,0.16), transparent 40%),
    var(--bg-2);
  border-top: 1px solid var(--line);
}
.cta-band-inner {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  align-items: end;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
  font-family: var(--display);
  border-bottom: 1px solid var(--cobalt);
  padding-bottom: 4px;
}
.text-link:hover { color: var(--cobalt); }

.site-footer {
  background: #080b0f;
  border-top: 1px solid var(--line);
  padding: 72px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.8fr 1fr 1.1fr;
  gap: 32px;
}
.footer-heading {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--silver);
  margin-bottom: 16px;
}
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-links li, .footer-contact li { margin: 0 0 8px; font-size: 14px; color: var(--muted); }
.footer-tagline { color: var(--muted); }
.footer-note { font-size: 12px; color: rgba(244,245,243,0.42); }
.footer-cta-title { font-family: var(--display); font-size: 24px; }
.footer-bottom {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: rgba(244,245,243,0.42);
  font-size: 13px;
}

.page-hero {
  position: relative;
  min-height: 58vh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--header-h) + 40px) 0 56px;
}
.page-hero--short { min-height: 46vh; }
.page-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.page-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,15,20,0.25), rgba(11,15,20,0.82));
}
.page-hero-copy { position: relative; z-index: 1; max-width: 860px; }

.prose-wide { max-width: 760px; font-size: 18px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.check-list { list-style: none; padding: 0; }
.check-list li { padding: 10px 0 10px 22px; border-bottom: 1px solid var(--line); position: relative; }
.check-list li::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--cobalt);
  position: absolute;
  left: 0;
  top: 18px;
}

.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th, .spec-table td {
  text-align: left;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.spec-table th { color: var(--silver); font-weight: 500; width: 40%; }

.values-grid, .machine-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  margin-top: 32px;
}
.value-card, .machine-card {
  border: 1px solid var(--line);
  padding: 24px;
  background: var(--bg-2);
}
.machine-card { padding: 0; overflow: hidden; }
.machine-card img { aspect-ratio: 4/3; object-fit: cover; }
.machine-card div { padding: 20px; }
.machine-preview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 32px;
}

.quality-row {
  display: grid;
  grid-template-columns: 80px 1fr 280px;
  gap: 28px;
  align-items: center;
  padding: 28px 0;
  border-bottom: 1px solid var(--line-dark);
}
.quality-row img { aspect-ratio: 4/3; object-fit: cover; }
.section-paper .quality-row p { color: var(--muted-dark); }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; }
.contact-list { list-style: none; padding: 0; font-size: 18px; }
.contact-list li { margin: 0 0 12px; }

.form-wrap { max-width: 880px; }
.quote-form { margin-top: 12px; }
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
  margin-bottom: 20px;
}
.field--full { grid-column: 1 / -1; }
.field label {
  display: block;
  font-size: 13px;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.req { color: var(--cobalt); font-size: 11px; margin-left: 6px; }
.field input, .field textarea {
  width: 100%;
  background: #fff;
  border: 1px solid rgba(18,22,28,0.16);
  min-height: 48px;
  padding: 10px 12px;
  font: inherit;
  color: var(--ink);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus {
  outline: 2px solid var(--cobalt);
  border-color: transparent;
}
.field input[aria-invalid="true"] { border-color: #b42318; }
.field-error { color: #b42318; font-size: 13px; margin-top: 6px; }
.field-hint { font-size: 13px; color: var(--muted-dark); margin-bottom: 8px; }
.form-success {
  background: #e8f1ff;
  color: #12306a;
  padding: 16px 18px;
  margin-bottom: 24px;
}
.form-error { color: #b42318; margin-bottom: 16px; }
.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}
.file-list { list-style: none; padding: 0; font-size: 13px; color: var(--muted-dark); }

.reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: none;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s ease;
}

@media (max-width: 1100px) {
  .nav-desktop { display: none; }
  .menu-toggle { display: block; }
  .header-actions .btn { display: none; }
  .cap-card, .cap-card--lg { grid-column: span 6; }
  .process-line { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .industry-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 800px) {
  .split, .eng-split, .two-col, .contact-grid, .cta-band-inner,
  .flow-grid, .values-grid, .machine-grid, .machine-preview,
  .form-grid, .hero-stats-grid, .metrics-grid { grid-template-columns: 1fr; }
  .cap-card, .cap-card--lg { grid-column: span 12; }
  .process-line { grid-template-columns: 1fr 1fr; }
  .quality-row { grid-template-columns: 1fr; }
  .section { padding: 72px 0; }
  .hero { min-height: 100svh; }
  .page-hero { min-height: 70svh; }
  .logo-img { height: 42px; }
  .logo-img--lg { height: 50px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .cap-card img, .btn { transition: none; }
}
