:root {
  --ink: #0a1628;
  --ink-soft: #1a2d45;
  --blue: #0b7ea8;
  --aqua: #00a8a5;
  --aqua-dark: #008f8c;
  --sand: #f4f7f9;
  --line: #e2eaf0;
  --muted: #5a7383;
  --white: #ffffff;
  --radius: 10px;
  --shadow: 0 18px 50px rgba(10, 22, 40, 0.12);
  --font: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font: 16px/1.65 var(--font);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color .2s; }
a:hover { color: var(--aqua-dark); }
.wrap { width: min(1160px, 92%); margin: 0 auto; }

/* Top bar */
.topbar {
  background: var(--ink);
  color: rgba(255,255,255,.88);
  font-size: 13px;
  letter-spacing: .02em;
}
.topbar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 10px 0;
  flex-wrap: wrap;
}
.topbar a { color: rgba(255,255,255,.92); }
.topbar a:hover { color: #7fe0de; }
.topbar .dot { opacity: .45; margin: 0 6px; }

/* Header / Nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s;
}
.site-header.is-scrolled { box-shadow: 0 8px 30px rgba(10,22,40,.08); }
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 72px;
  padding: 12px 0;
}
.logo {
  font-weight: 800;
  letter-spacing: .08em;
  font-size: 22px;
  color: var(--ink);
  flex-shrink: 0;
}
.logo.light { color: #fff; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}
.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  transition: .25s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  flex-wrap: wrap;
}
.nav-link, .nav-drop-btn {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 650;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-link:hover, .nav-drop-btn:hover,
.nav-link.is-active { background: var(--sand); color: var(--ink); }
.nav-cta {
  margin-left: auto;
  background: linear-gradient(135deg, var(--aqua), #0a9a98);
  color: #fff !important;
  font-size: 14px;
  font-weight: 700;
  padding: 11px 18px;
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0,168,165,.28);
}
.nav-cta:hover { filter: brightness(1.05); color: #fff !important; }

.nav-dropdown { position: relative; }
.nav-drop-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: .2s;
  z-index: 50;
}
.nav-dropdown:hover .nav-drop-panel,
.nav-dropdown.is-open .nav-drop-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.nav-drop-panel a {
  display: block;
  padding: 11px 14px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
}
.nav-drop-panel a:hover { background: var(--sand); color: var(--aqua-dark); }

/* Hero */
.hero {
  position: relative;
  color: #fff;
  padding: 110px 0 100px;
  background:
    linear-gradient(105deg, rgba(6,18,32,.94) 0%, rgba(6,18,32,.78) 40%, rgba(6,18,32,.35) 72%, rgba(6,18,32,.15) 100%),
    url('/media/factory-floor.jpg') center/cover no-repeat;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 80px;
  background: linear-gradient(transparent, rgba(255,255,255,.08));
  pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; }
.hero-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #7fe0de;
  margin-bottom: 18px;
}
.hero h1 {
  max-width: 16ch;
  margin: 0 0 18px;
  font-size: clamp(40px, 6.2vw, 68px);
  line-height: 1.05;
  letter-spacing: -.03em;
  font-weight: 750;
}
.hero p {
  max-width: 540px;
  margin: 0 0 28px;
  font-size: 18px;
  line-height: 1.55;
  opacity: .92;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-primary, .btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 22px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
}
.btn-primary {
  background: var(--aqua);
  color: #fff !important;
  box-shadow: 0 10px 28px rgba(0,168,165,.35);
}
.btn-primary:hover { filter: brightness(1.06); color: #fff !important; }
.btn-ghost {
  border: 1px solid rgba(255,255,255,.35);
  color: #fff !important;
  background: rgba(255,255,255,.06);
}
.btn-ghost:hover { background: rgba(255,255,255,.14); color: #fff !important; }

/* Sections */
.eyebrow {
  color: var(--aqua);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .14em;
  margin: 0 0 12px;
  text-transform: uppercase;
}
.intro {
  max-width: 820px;
  padding: 88px 0 56px;
}
.intro h2 {
  margin: 0 0 18px;
  font-size: clamp(34px, 4.6vw, 52px);
  line-height: 1.08;
  letter-spacing: -.025em;
}
.lede {
  margin: 0;
  font-size: 19px;
  line-height: 1.65;
  color: #3d5666;
}

.capabilities { padding-bottom: 20px; }
.section-heading {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 28px;
  align-items: end;
  margin-bottom: 28px;
}
.section-heading h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.08;
  letter-spacing: -.02em;
}
.section-heading p:last-child {
  margin: 0;
  color: var(--muted);
  max-width: 420px;
}

.cap-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.cap-card {
  position: relative;
  display: block;
  min-height: 360px;
  border-radius: 14px;
  overflow: hidden;
  color: #fff;
  background: #102838;
  box-shadow: 0 12px 40px rgba(10,22,40,.12);
}
.cap-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s ease;
}
.cap-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4,15,24,.05) 20%, rgba(4,15,24,.88) 100%);
  z-index: 1;
}
.cap-card:hover img { transform: scale(1.06); }
.cap-card-body {
  position: relative;
  z-index: 2;
  height: 100%;
  min-height: 360px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.cap-card span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  color: #b8dee0;
  margin-bottom: 10px;
}
.cap-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: 28px;
  line-height: 1.1;
  max-width: 12ch;
  color: #fff;
  font-weight: 600;
}

.application {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  margin: 72px 0 0;
  border-radius: 16px;
  overflow: hidden;
  background: #e8eef2;
}
.application img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}
.application-copy {
  padding: 56px 44px;
  align-self: center;
}
.application-copy h2 {
  margin: 8px 0 16px;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.1;
}
.application-copy p:not(.eyebrow) { color: #405c6a; margin: 0 0 22px; }
.application-copy a {
  font-weight: 800;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.application-copy a:hover { color: var(--aqua-dark); }

.process {
  padding: 88px 0 40px;
}
.process h2 {
  margin: 0 0 36px;
  font-size: clamp(30px, 4vw, 48px);
  max-width: 18ch;
  line-height: 1.1;
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.step-card {
  border-top: 3px solid var(--ink);
  padding: 18px 4px 8px;
  background: linear-gradient(180deg, var(--sand), transparent);
  border-radius: 0 0 12px 12px;
}
.step-card b {
  color: var(--aqua);
  font-size: 13px;
  letter-spacing: .1em;
}
.step-card h3 {
  font-family: var(--serif);
  font-size: 21px;
  margin: 12px 0 8px;
  line-height: 1.2;
}
.step-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.contact-band {
  margin: 56px 0 80px;
  padding: 48px 44px;
  border-radius: 16px;
  background: linear-gradient(120deg, #071a28, #0c3044 55%, #0a5f62);
  color: #fff;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
}
.contact-band .eyebrow { color: #7fe0de; }
.contact-band h2 {
  margin: 0;
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.08;
  max-width: 16ch;
}
.contact-band .nav-cta { margin-left: 0; white-space: nowrap; }

/* Inner pages */
.page { padding: 28px 0 80px; }
.crumb {
  font-size: 13px;
  color: var(--muted);
  margin: 8px 0 18px;
}
.crumb a { color: var(--muted); }
.page > h1 {
  font-size: clamp(32px, 4.5vw, 48px);
  line-height: 1.12;
  margin: 0 0 28px;
  letter-spacing: -.02em;
}
.article {
  max-width: 920px;
}
.article h2 {
  font-size: 28px;
  line-height: 1.25;
  margin: 40px 0 14px;
}
.article h3 {
  font-size: 22px;
  margin: 28px 0 10px;
}
.article p { margin: 0 0 16px; color: #2f4554; }
.article img {
  border-radius: 12px;
  margin: 18px 0;
  box-shadow: 0 10px 30px rgba(10,22,40,.08);
}
.article ul, .article ol { padding-left: 22px; color: #2f4554; }
.notice {
  border-left: 4px solid var(--aqua);
  background: #edfafa;
  padding: 18px 20px;
  margin: 24px 0;
  border-radius: 0 12px 12px 0;
}

/* Footer */
.site-footer {
  background: #071721;
  color: #c5d4dc;
  padding: 56px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand p { margin: 14px 0 0; font-size: 14px; line-height: 1.6; max-width: 320px; color: #9eb0ba; }
.site-footer h4 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { color: #c5d4dc; font-size: 14px; }
.site-footer a:hover { color: #7fe0de; }
.footer-addr { font-size: 14px; line-height: 1.55; color: #9eb0ba; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 20px;
  font-size: 13px;
  color: #7f95a1;
}

/* Mobile */
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .main-nav {
    display: none;
    position: absolute;
    left: 0; right: 0; top: 100%;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 12px 4%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    box-shadow: var(--shadow);
  }
  .main-nav.is-open { display: flex; }
  .nav-cta { margin: 8px 0 4px; text-align: center; justify-content: center; }
  .nav-dropdown { width: 100%; }
  .nav-drop-btn { width: 100%; justify-content: space-between; }
  .nav-drop-panel {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    box-shadow: none;
    border: 0;
    padding: 0 0 0 8px;
    min-width: 0;
  }
  .nav-dropdown.is-open .nav-drop-panel { display: block; }
  .section-heading, .application, .steps, .footer-grid, .cap-grid {
    grid-template-columns: 1fr;
  }
  .cap-card, .cap-card-body { min-height: 300px; }
  .application img { min-height: 240px; }
  .contact-band { flex-direction: column; align-items: flex-start; padding: 36px 28px; }
  .hero { padding: 72px 0 64px; }
  .intro { padding: 56px 0 36px; }
}

/* Blog */
.blog-hero {
  padding: 48px 0 12px;
}
.blog-hero h1 {
  margin: 0 0 10px;
  font-size: clamp(34px, 4.5vw, 48px);
  letter-spacing: -.02em;
}
.blog-hero p { margin: 0; color: var(--muted); max-width: 52ch; font-size: 18px; }
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  padding: 28px 0 80px;
}
.blog-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  transition: transform .2s, box-shadow .2s;
  color: inherit;
}
.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  color: inherit;
}
.blog-card-cover {
  aspect-ratio: 16/10;
  background: var(--sand);
  overflow: hidden;
}
.blog-card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.blog-card-body { padding: 20px 20px 22px; flex: 1; display: flex; flex-direction: column; }
.blog-card-date { font-size: 12px; color: var(--muted); font-weight: 650; letter-spacing: .04em; margin-bottom: 8px; }
.blog-card h2 { margin: 0 0 10px; font-size: 18px; line-height: 1.3; color: var(--ink); }
.blog-card p { margin: 0; color: var(--muted); font-size: 14px; flex: 1; }
.blog-card-more { margin-top: 14px; font-size: 13px; font-weight: 750; color: var(--aqua-dark); }
.post-meta { color: var(--muted); font-size: 14px; margin: -12px 0 28px; }
@media (max-width: 900px) {
  .blog-grid { grid-template-columns: 1fr; }
}
