/* ==========================================================================
   CNC Global v3.1 Design System — Direction 1: Luminous Swiss / Precision Cobalt
   Palette: Luminous Steel-Navy (#101D2E) · Crisp White (#FFFFFF) · Cool Frost (#F5F8FC)
            Precision Cobalt Blue (#135DD8) · Restrained Titanium Gold (#C89236 < 5%)
   Fonts:   Self-hosted Plus Jakarta Sans, Inter, JetBrains Mono (zero CDN)
   ========================================================================== */

@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('./fonts/plus-jakarta-sans-latin.woff2') format('woff2');
  font-weight: 500 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Inter';
  src: url('./fonts/inter-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'JetBrains Mono';
  src: url('./fonts/jetbrains-mono-latin.woff2') format('woff2');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Luminous Steel-Navy Dark Surfaces (clean & confident, never gloomy black) */
  --surface-obsidian: #101D2E;
  --surface-slate-dark: #16263B;
  --surface-slate-elevated: #1F3450;
  --border-dark: #253B57;
  --border-dark-strong: #345278;

  /* Crisp Light Surfaces */
  --surface-white: #FFFFFF;
  --surface-frost: #F5F8FC;
  --surface-frost-2: #EAEFF7;
  --border-light: #DCE4F0;
  --border-light-strong: #C3D0E2;

  /* Typography */
  --text-primary: #0F172A;
  --text-secondary: #475569;
  --text-muted: #64748B;
  --text-on-dark: #F8FAFC;
  --text-on-dark-muted: #B6C7DC;

  /* Brand & Accents — Crisp Precision Cobalt Blue */
  --brand-steel: #135DD8;
  --brand-steel-dark: #0E4AB0;
  --brand-steel-light: #60A5FA;
  --brand-tint: #EBF3FF;

  /* Micro accent (< 5% visual weight): Warm Titanium Gold */
  --accent-brass: #C89236;
  --accent-brass-light: #E2AE55;
  --accent-brass-tint: rgba(200, 146, 54, 0.12);

  /* Status & TBD */
  --tbd-bg: #FEF3C7;
  --tbd-text: #78350F;
  --tbd-border: #F59E0B;

  /* Typography families */
  --font-display: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Layout & Elevation */
  --maxw: 1220px;
  --radius-xs: 3px;
  --radius-sm: 6px;
  --radius-md: 8px;
  --shadow-card: 0 1px 2px rgba(16, 29, 46, 0.05), 0 8px 24px rgba(16, 29, 46, 0.06);
  --shadow-hover: 0 4px 12px rgba(19, 93, 216, 0.1), 0 18px 36px rgba(16, 29, 46, 0.12);
  --shadow-dark: 0 22px 48px rgba(7, 15, 26, 0.36);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text-primary);
  background: var(--surface-white);
  line-height: 1.62;
  font-size: 16px;
  overflow-x: clip;
}
.grid > *, .split > *, .detail > *, .hero .container > *, .model-grid > *, .contact-layout > * { min-width: 0; }

img { max-width: 100%; display: block; }
a { color: var(--brand-steel); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand-steel-dark); }
code, .mono { font-family: var(--font-mono); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.18;
  margin: 0 0 0.55em;
  color: var(--text-primary);
  letter-spacing: -0.024em;
}
h1 { font-size: clamp(2.15rem, 4.3vw, 3.35rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 2.7vw, 2.3rem); font-weight: 700; }
h3 { font-size: 1.125rem; font-weight: 700; letter-spacing: -0.014em; }
p { margin: 0 0 1em; color: var(--text-secondary); }
p:last-child { margin-bottom: 0; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section.compact { padding: 64px 0; }
.section.alt { background: var(--surface-frost); border-top: 1px solid var(--border-light); border-bottom: 1px solid var(--border-light); }
.section.dark {
  background: linear-gradient(135deg, #101D2E 0%, #162944 100%);
  color: var(--text-on-dark);
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
}
.section.dark h2, .section.dark h3, .section.dark h4 { color: #FFFFFF; }
.section.dark p { color: var(--text-on-dark-muted); }

/* Eyebrow with restrained warm gold rule */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand-steel);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--accent-brass);
  display: inline-block;
  flex-shrink: 0;
}
.section.dark .eyebrow, .hero .eyebrow, .page-hero .eyebrow { color: var(--brand-steel-light); }
.section.dark .eyebrow::before, .hero .eyebrow::before, .page-hero .eyebrow::before { background: var(--accent-brass-light); }

.section-head { max-width: 720px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.lead { font-size: 1.1rem; line-height: 1.65; color: var(--text-secondary); }
.section.dark .lead, .hero .lead, .page-hero .lead { color: var(--text-on-dark-muted); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--radius-xs);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.94rem;
  letter-spacing: -0.005em;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease, box-shadow 0.16s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--brand-steel); color: #FFFFFF; box-shadow: 0 2px 10px rgba(19, 93, 216, 0.28); }
.btn-primary:hover { background: var(--brand-steel-dark); color: #FFFFFF; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(19, 93, 216, 0.36); }
.btn-ghost { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.34); color: #FFFFFF; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.15); border-color: rgba(255, 255, 255, 0.65); color: #FFFFFF; }
.btn-outline { background: transparent; border-color: var(--brand-steel); color: var(--brand-steel); }
.btn-outline:hover { background: var(--brand-steel); color: #FFFFFF; }
.btn-sm { padding: 9px 16px; font-size: 0.86rem; }

/* TBD engineering highlight */
.tbd {
  background: var(--tbd-bg);
  color: var(--tbd-text);
  border-bottom: 1.5px dashed var(--tbd-border);
  border-radius: 2px;
  padding: 0 5px;
  font-weight: 600;
}
.hero .tbd, .page-hero .tbd, .section.dark .tbd, .footer .tbd, .topbar .tbd {
  background: rgba(245, 158, 11, 0.22);
  color: #FDE68A;
  border-bottom-color: rgba(253, 230, 138, 0.7);
}

/* Draft banner (dismissible) */
.draft-bar {
  background: #142236;
  color: #E2E8F0;
  border-bottom: 1px solid rgba(245, 158, 11, 0.35);
  font-size: 0.8rem;
  font-family: var(--font-mono);
}
.draft-bar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 7px;
  padding-bottom: 7px;
}
.draft-bar strong { color: #FCD34D; }
.draft-close {
  background: transparent;
  border: 1px solid #355074;
  color: #CBD5E1;
  border-radius: 2px;
  padding: 2px 8px;
  font-size: 0.74rem;
  font-family: var(--font-mono);
  cursor: pointer;
}
.draft-close:hover { background: #1F3450; color: #FFFFFF; }

/* Utility Topbar */
.topbar {
  background: var(--surface-obsidian);
  color: var(--text-on-dark-muted);
  font-size: 0.8rem;
  border-bottom: 1px solid var(--border-dark);
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-top: 8px;
  padding-bottom: 8px;
  flex-wrap: wrap;
}
.topbar-left { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.topbar-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent-brass-light); display: inline-block; }
.topbar-right { display: flex; align-items: center; gap: 16px; font-family: var(--font-mono); font-size: 0.78rem; }
.topbar a { color: #E2EEFC; text-decoration: none; }
.topbar a:hover { color: #FFFFFF; }

/* Sticky Frosted Header */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}
.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 20px;
}
.logo { display: flex; align-items: center; gap: 11px; text-decoration: none; color: var(--text-primary); }
.logo-mark { width: 38px; height: 38px; flex-shrink: 0; }
.logo-text { font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; letter-spacing: -0.02em; line-height: 1; }
.logo-text small {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-top: 4px;
}

.nav { display: flex; align-items: center; gap: 6px; }
.nav > ul { display: flex; list-style: none; margin: 0; padding: 0; gap: 2px; }
.nav li { position: relative; }
.nav a.nl {
  display: block;
  padding: 10px 12px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-xs);
  transition: color 0.15s ease, background 0.15s ease;
}
.nav a.nl:hover, .nav a.nl.active { color: var(--brand-steel); background: var(--brand-tint); }
.nav .sub {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  background: var(--surface-white);
  min-width: 276px;
  list-style: none;
  padding: 8px;
  margin: 0;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-hover);
}
.nav li:hover > .sub, .nav li:focus-within > .sub { display: block; }
.nav .sub a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.87rem;
  font-weight: 500;
  border-radius: var(--radius-xs);
}
.nav .sub a:hover { background: var(--surface-frost); color: var(--brand-steel); }
.nav .sub .sub-tag {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 2px;
}
.nav .sub .sub-in { background: var(--brand-tint); color: var(--brand-steel-dark); }
.nav .sub .sub-net { background: var(--surface-frost-2); color: var(--text-secondary); }
.nav .btn { margin-left: 10px; padding: 10px 18px; font-size: 0.88rem; }
.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-light-strong);
  border-radius: var(--radius-xs);
  padding: 6px 10px;
  font-size: 1.25rem;
  line-height: 1;
  color: var(--text-primary);
  cursor: pointer;
}

/* ==========================================================================
   HERO — Luminous Steel-Navy Industrial Backdrop + Crisp Cobalt Glow
   ========================================================================== */
.hero {
  position: relative;
  background: radial-gradient(circle at 78% 24%, #1B3B6B 0%, #101D2E 62%);
  color: #FFFFFF;
  overflow: hidden;
  border-bottom: 1px solid var(--border-dark);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0.42;
}
.hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(96deg, rgba(16, 29, 46, 0.92) 0%, rgba(16, 29, 46, 0.78) 48%, rgba(19, 46, 84, 0.42) 100%),
    linear-gradient(180deg, rgba(16, 29, 46, 0.14) 0%, rgba(16, 29, 46, 0.76) 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 40px 40px;
}
.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.18fr 0.82fr;
  gap: 48px;
  align-items: center;
  padding-top: 84px;
  padding-bottom: 84px;
}
.hero h1 { color: #FFFFFF; margin-bottom: 20px; }
.hero .lead { max-width: 600px; font-size: 1.08rem; color: #D4E1F0; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 28px; }
.hero-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 20px;
  list-style: none;
  padding: 20px 0 0;
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  color: #E2ECF7;
  font-size: 0.9rem;
}
.hero-points li { display: flex; align-items: center; gap: 9px; }
.hero-points li::before {
  content: "";
  width: 6px;
  height: 6px;
  background: var(--accent-brass-light);
  border-radius: 1px;
  flex-shrink: 0;
}

/* Right-hand Engineering Spec Panel inside Hero */
.hero-panel {
  background: rgba(22, 38, 59, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-dark-strong);
  border-top: 2px solid var(--accent-brass-light);
  border-radius: var(--radius-sm);
  padding: 26px;
  box-shadow: var(--shadow-dark);
}
.hero-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--border-dark);
}
.hero-panel-title {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #F1F5F9;
}
.hero-panel-badge {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  padding: 3px 8px;
  border-radius: 2px;
  background: rgba(96, 165, 250, 0.16);
  color: #93C5FD;
  border: 1px solid rgba(96, 165, 250, 0.35);
}
.spec-rows { display: flex; flex-direction: column; gap: 13px; margin-bottom: 20px; }
.spec-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding-bottom: 11px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
  font-size: 0.88rem;
}
.spec-row:last-child { border-bottom: 0; padding-bottom: 0; }
.spec-row dt { color: var(--text-on-dark-muted); font-size: 0.82rem; flex-shrink: 0; }
.spec-row dd { margin: 0; color: #FFFFFF; font-family: var(--font-mono); font-size: 0.8rem; text-align: right; }
.cad-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.cad-badges span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 4px 8px;
  border-radius: 2px;
  background: rgba(16, 29, 46, 0.78);
  border: 1px solid var(--border-dark-strong);
  color: #DBE7F5;
}
.hero-panel .btn { width: 100%; }
.hero-caption {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: #9AB2CC;
  text-align: center;
}

/* Inner Page Hero */
.page-hero {
  position: relative;
  background: linear-gradient(125deg, #101D2E 0%, #193152 100%);
  color: #FFFFFF;
  overflow: hidden;
  border-bottom: 1px solid var(--border-dark);
}
.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 36px 36px;
}
.page-hero .container { position: relative; padding-top: 64px; padding-bottom: 58px; }
.page-hero h1 { color: #FFFFFF; margin-bottom: 14px; }
.page-hero .lead { max-width: 740px; color: #D4E1F0; }
.crumbs {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: #9AB2CC;
  margin-bottom: 16px;
  letter-spacing: 0.04em;
}
.crumbs a { color: #DCE8F6; text-decoration: none; }
.crumbs a:hover { color: #FFFFFF; }

/* ==========================================================================
   MEDIA FRAMES — Clean, Natural, Unobstructed Industrial Photography
   ========================================================================== */
.media-frame {
  position: relative;
  overflow: hidden;
  background: var(--surface-frost-2);
  aspect-ratio: 16 / 10;
}
.media-frame.r43 { aspect-ratio: 4 / 3; }
.media-frame.r169 { aspect-ratio: 16 / 9; }
.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}
a.card:hover .media-frame img, .detail:hover .media-frame img {
  transform: scale(1.03);
}

/* ==========================================================================
   GRIDS, CARDS & CAPABILITY HIERARCHY
   ========================================================================== */
.grid { display: grid; gap: 24px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }

.card {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}
a.card { text-decoration: none; color: inherit; }
a.card:hover {
  border-color: var(--brand-steel);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.card-body p { font-size: 0.92rem; color: var(--text-secondary); margin-bottom: 14px; }
.card-top-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.card-num {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-muted);
}
.card .more {
  margin-top: auto;
  font-family: var(--font-display);
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--brand-steel);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 2px;
}
.tag-in { background: var(--brand-tint); color: var(--brand-steel-dark); border: 1px solid rgba(19, 93, 216, 0.24); }
.tag-net { background: var(--surface-frost-2); color: var(--text-secondary); border: 1px solid var(--border-light-strong); }
.tag-brass { background: var(--accent-brass-tint); color: #8A5D1B; border: 1px solid rgba(200, 146, 54, 0.34); }

.icon { width: 34px; height: 34px; color: var(--brand-steel); margin-bottom: 14px; flex-shrink: 0; }
.cap-secondary-label {
  margin: 36px 0 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.cap-secondary-label::after { content: ""; height: 1px; background: var(--border-light); flex: 1; }

/* ==========================================================================
   US + NINGBO OPERATING MODEL BAND
   ========================================================================== */
.model-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.model-card {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-top: 3px solid var(--brand-steel);
  border-radius: var(--radius-sm);
  padding: 26px;
  box-shadow: var(--shadow-card);
}
.model-card.is-accent { border-top-color: var(--accent-brass); }
.model-step {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--brand-steel);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.model-card.is-accent .model-step { color: #9A6B1C; }
.model-card h3 { margin-bottom: 10px; }
.model-card p { font-size: 0.92rem; }

/* ==========================================================================
   STATS STRIP (Luminous Steel-Navy Bar)
   ========================================================================== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  border: 1px solid var(--border-dark-strong);
  border-radius: var(--radius-sm);
  background: rgba(22, 38, 59, 0.85);
  overflow: hidden;
}
.stat {
  padding: 30px 24px;
  border-right: 1px solid var(--border-dark);
  position: relative;
}
.stat:last-child { border-right: 0; }
.stat::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 0;
  width: 28px;
  height: 2px;
  background: var(--accent-brass-light);
}
.stat b {
  display: block;
  font-family: var(--font-mono);
  font-size: clamp(1.55rem, 2.5vw, 2.1rem);
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 8px;
}
.stat span { display: block; color: var(--text-on-dark-muted); font-size: 0.86rem; }

/* ==========================================================================
   PART GALLERY — Bright Swiss Blueprint CAD Wireframe Cards + Filter
   ========================================================================== */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
}
.filter-tab {
  background: var(--surface-white);
  border: 1px solid var(--border-light-strong);
  color: var(--text-secondary);
  padding: 8px 16px;
  border-radius: var(--radius-xs);
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}
.filter-tab:hover { border-color: var(--brand-steel); color: var(--brand-steel); }
.filter-tab.active { background: var(--brand-steel); border-color: var(--brand-steel); color: #FFFFFF; }

.gallery-notice {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-left: 3px solid var(--brand-steel);
  border-radius: var(--radius-xs);
  padding: 12px 16px;
  font-size: 0.88rem;
  color: var(--text-secondary);
  margin-bottom: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}
.gallery-notice strong { color: var(--text-primary); }

/* Clean, airy Swiss engineering blueprint card (replaces gloomy black box) */
.cad-frame {
  position: relative;
  aspect-ratio: 4 / 3;
  background: linear-gradient(180deg, #F5F9FF 0%, #EBF2FC 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  overflow: hidden;
  border-bottom: 1px solid var(--border-light);
}
.cad-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(19, 93, 216, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 93, 216, 0.08) 1px, transparent 1px);
  background-size: 20px 20px;
}
.cad-frame svg {
  position: relative;
  z-index: 1;
  width: 72%;
  max-width: 170px;
  height: auto;
  color: #16335B;
}
.cad-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border-light-strong);
  color: #334E6F;
}
.cad-code {
  position: absolute;
  bottom: 8px;
  right: 10px;
  z-index: 2;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  color: #6B84A6;
}
.part-card-meta {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-muted);
  margin: 6px 0 0;
}

/* Honest placeholder for real Ningbo workshop photos */
.facility-placeholder {
  background: rgba(255, 255, 255, 0.05);
  border: 1px dashed var(--border-dark-strong);
  border-radius: var(--radius-sm);
  aspect-ratio: 16 / 10;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-on-dark-muted);
  gap: 8px;
}
.facility-placeholder strong { color: #FFFFFF; font-family: var(--font-display); font-size: 0.96rem; }
.facility-placeholder span { font-family: var(--font-mono); font-size: 0.72rem; color: var(--accent-brass-light); text-transform: uppercase; letter-spacing: 0.08em; }

/* ==========================================================================
   STEPS, CHECKLISTS, PILLS, SPEC TABLES, FAQ
   ========================================================================== */
.steps { counter-reset: s; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.step {
  position: relative;
  padding: 24px 20px;
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
}
.step::before {
  counter-increment: s;
  content: counter(s, decimal-leading-zero);
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brand-steel);
  background: var(--brand-tint);
  padding: 4px 9px;
  border-radius: 2px;
  margin-bottom: 14px;
}
.step p { font-size: 0.88rem; color: var(--text-secondary); margin: 0; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }

.checks { list-style: none; padding: 0; margin: 0 0 1.4em; }
.checks li {
  padding-left: 26px;
  position: relative;
  margin-bottom: 0.55em;
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.42em;
  width: 14px;
  height: 14px;
  background: var(--brand-steel);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.2 11.6 2.6 8l1.2-1.2 2.4 2.4 6-6L13.4 4.4z'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.2 11.6 2.6 8l1.2-1.2 2.4 2.4 6-6L13.4 4.4z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.pill-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 0; }
.pill-list li {
  background: var(--surface-white);
  border: 1px solid var(--border-light-strong);
  padding: 9px 15px;
  border-radius: var(--radius-xs);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-primary);
}
.pill-list li.is-tbd-pill { border-style: dashed; border-color: var(--tbd-border); background: #FFFBEB; }

table.spec {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  background: var(--surface-white);
  border: 1px solid var(--border-light);
}
table.spec th, table.spec td {
  text-align: left;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: top;
}
table.spec th {
  background: var(--surface-frost);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  width: 30%;
}
table.spec td { color: var(--text-secondary); }

.faq details {
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  padding: 0 22px;
  transition: border-color 0.15s ease;
}
.faq details[open] { border-color: var(--brand-steel); }
.faq summary {
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text-primary);
  padding: 18px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  color: var(--brand-steel);
  font-size: 1.25rem;
  line-height: 1;
}
.faq details[open] summary::after { content: "–"; color: var(--accent-brass); }
.faq details p { color: var(--text-secondary); margin: 0 0 18px; font-size: 0.94rem; }

/* Detail alternating rows */
.detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 52px;
  align-items: center;
  padding: 58px 0;
  border-bottom: 1px solid var(--border-light);
  scroll-margin-top: 96px;
}
.detail:last-child { border-bottom: 0; }
.detail.rev > .detail-media { order: 2; }
.detail-media { border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border-light); box-shadow: var(--shadow-card); }

/* CTA Band */
.cta-band {
  background: linear-gradient(125deg, #101D2E 0%, #17345E 100%);
  border: 1px solid var(--border-dark-strong);
  border-left: 4px solid var(--accent-brass-light);
  color: #FFFFFF;
  border-radius: var(--radius-sm);
  padding: 48px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.cta-band h2 { color: #FFFFFF; margin-bottom: 8px; }
.cta-band p { color: var(--text-on-dark-muted); max-width: 620px; }

/* ==========================================================================
   RFQ FORM & DRAG-AND-DROP CAD UPLOAD
   ========================================================================== */
.contact-layout { display: grid; grid-template-columns: 1.7fr 1fr; gap: 40px; align-items: start; }
form.rfq { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
form.rfq .full { grid-column: 1 / -1; }
form.rfq label {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--text-primary);
  display: block;
  margin-bottom: 6px;
}
form.rfq input[type="text"],
form.rfq input[type="email"],
form.rfq input[type="date"],
form.rfq select,
form.rfq textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1px solid var(--border-light-strong);
  border-radius: var(--radius-xs);
  font: inherit;
  font-size: 0.94rem;
  color: var(--text-primary);
  background: var(--surface-white);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
form.rfq input:focus, form.rfq select:focus, form.rfq textarea:focus {
  outline: none;
  border-color: var(--brand-steel);
  box-shadow: 0 0 0 3px rgba(19, 93, 216, 0.14);
}
form.rfq textarea { min-height: 126px; resize: vertical; }
form.rfq .hint { font-size: 0.8rem; color: var(--text-muted); margin-top: 6px; }
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }

.dropzone {
  position: relative;
  border: 1.5px dashed var(--border-light-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-frost);
  padding: 26px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.dropzone:hover, .dropzone.dragover {
  border-color: var(--brand-steel);
  background: var(--brand-tint);
}
.dropzone input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.dropzone-title { font-family: var(--font-display); font-weight: 700; color: var(--text-primary); margin-bottom: 4px; }
.dropzone-sub { font-family: var(--font-mono); font-size: 0.76rem; color: var(--text-muted); }

.file-list { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.file-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xs);
  font-family: var(--font-mono);
  font-size: 0.78rem;
}
.file-chip-name { color: var(--text-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-chip-size { color: var(--text-muted); margin-left: auto; flex-shrink: 0; }
.file-chip-remove {
  background: none;
  border: 0;
  color: var(--text-muted);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 4px;
}
.file-chip-remove:hover { color: #B91C1C; }

.form-status {
  padding: 13px 16px;
  border-radius: var(--radius-xs);
  font-size: 0.88rem;
  border: 1px solid transparent;
}
.form-status.is-info { background: var(--brand-tint); border-color: rgba(19, 93, 216, 0.25); color: var(--brand-steel-dark); }
.form-status.is-warn { background: var(--tbd-bg); border-color: var(--tbd-border); color: var(--tbd-text); }

.contact-box {
  background: var(--surface-frost);
  border: 1px solid var(--border-light);
  border-top: 3px solid var(--brand-steel);
  border-radius: var(--radius-sm);
  padding: 28px;
}
.contact-box h3 { margin-bottom: 14px; }
.contact-box dt {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-top: 16px;
}
.contact-box dd { margin: 4px 0 0; color: var(--text-primary); font-size: 0.92rem; }
.contact-box .divider { border: 0; border-top: 1px solid var(--border-light); margin: 20px 0; }

/* Thank-you, Privacy & Credits prose */
.prose { max-width: 860px; }
.prose h2 { margin-top: 1.9em; font-size: 1.35rem; scroll-margin-top: 96px; }
.prose ul { padding-left: 20px; color: var(--text-secondary); }
.prose li { margin-bottom: 8px; }
.credits-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  margin-top: 14px;
  background: var(--surface-white);
  border: 1px solid var(--border-light);
}
.credits-table th, .credits-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-light);
  vertical-align: top;
}
.credits-table th {
  background: var(--surface-frost);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}
.thanks-card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--surface-white);
  border: 1px solid var(--border-light);
  border-top: 4px solid var(--brand-steel);
  border-radius: var(--radius-sm);
  padding: 44px;
  box-shadow: var(--shadow-card);
}

.post-meta { font-family: var(--font-mono); font-size: 0.74rem; color: var(--text-muted); margin-bottom: 10px; text-transform: uppercase; letter-spacing: 0.06em; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background: var(--surface-obsidian);
  color: var(--text-on-dark-muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--border-dark);
}
.footer .container {
  display: grid;
  grid-template-columns: 1.55fr 1fr 1fr 1.25fr;
  gap: 38px;
  padding-top: 64px;
  padding-bottom: 44px;
}
.footer h4 {
  color: #FFFFFF;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 9px; }
.footer a { color: #D5E3F3; text-decoration: none; }
.footer a:hover { color: #FFFFFF; }
.footer .logo { color: #FFFFFF; margin-bottom: 14px; }
.footer .logo-text small { color: #9AB2CC; }
.footer-entity {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-dark);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: #9AB2CC;
}
.social { display: flex; gap: 10px; margin-top: 16px; }
.social a {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-xs);
  background: var(--surface-slate-dark);
  border: 1px solid var(--border-dark-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.social a:hover { background: var(--brand-steel); border-color: var(--brand-steel); }
.social svg { width: 17px; height: 17px; fill: #D5E3F3; }
.social a:hover svg { fill: #FFFFFF; }

.copyright {
  border-top: 1px solid var(--border-dark);
  padding: 20px 0;
  font-size: 0.8rem;
  color: #9AB2CC;
}
.copyright .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 0;
  padding-bottom: 0;
}
.copyright button.link-btn {
  background: none;
  border: 0;
  padding: 0;
  color: #D5E3F3;
  font: inherit;
  cursor: pointer;
}
.copyright button.link-btn:hover { color: #FFFFFF; text-decoration: underline; }

/* ==========================================================================
   UNIFIED COOKIE CONSENT BANNER
   ========================================================================== */
.cookie-banner {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  max-width: 440px;
  background: var(--surface-obsidian);
  color: var(--text-on-dark);
  border: 1px solid var(--border-dark-strong);
  border-top: 2px solid var(--accent-brass-light);
  border-radius: var(--radius-sm);
  padding: 20px 22px;
  box-shadow: var(--shadow-dark);
  font-size: 0.86rem;
}
.cookie-banner[hidden] { display: none; }
.cookie-banner h4 { color: #FFFFFF; font-size: 0.94rem; margin-bottom: 6px; }
.cookie-banner p { color: var(--text-on-dark-muted); font-size: 0.82rem; margin-bottom: 14px; }
.cookie-banner a { color: var(--brand-steel-light); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie-btn {
  padding: 8px 13px;
  border-radius: var(--radius-xs);
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid var(--border-dark-strong);
  background: var(--surface-slate-dark);
  color: #E2E8F0;
}
.cookie-btn:hover { background: var(--surface-slate-elevated); }
.cookie-btn.primary { background: var(--brand-steel); border-color: var(--brand-steel); color: #FFFFFF; }
.cookie-btn.primary:hover { background: var(--brand-steel-dark); }
.cookie-prefs {
  margin: 12px 0 14px;
  padding: 12px;
  background: var(--surface-slate-dark);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-xs);
}
.cookie-prefs label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: #E2E8F0;
  margin-bottom: 8px;
  cursor: pointer;
}
.cookie-prefs label:last-child { margin-bottom: 0; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1060px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g5 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { border-bottom: 1px solid var(--border-dark); }
  .footer .container { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 880px) {
  .menu-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    top: 74px;
    left: 0;
    right: 0;
    background: var(--surface-white);
    border-bottom: 1px solid var(--border-light);
    flex-direction: column;
    align-items: stretch;
    padding: 12px 24px 22px;
    max-height: calc(100vh - 74px);
    overflow: auto;
    box-shadow: var(--shadow-hover);
  }
  .nav.open { display: flex; }
  .nav > ul { flex-direction: column; }
  .nav .sub { display: block; position: static; border: 0; box-shadow: none; padding: 2px 0 6px 12px; }
  .nav .btn { margin: 12px 0 0; }
  .hero .container, .split, .detail, .model-grid, .contact-layout { grid-template-columns: 1fr; gap: 32px; }
  .detail.rev > .detail-media { order: 0; }
  .g2, .g3 { grid-template-columns: 1fr; }
  form.rfq { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .cta-band { padding: 32px; }
  .cookie-banner { left: 16px; right: 16px; bottom: 16px; max-width: none; }
}

@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .g4, .g5, .steps, .stats, .footer .container, .hero-points { grid-template-columns: 1fr; }
  .stat { border-right: 0; }
  .topbar .container { justify-content: center; text-align: center; }
  .topbar-right { display: none; }
  .hero .container { padding-top: 52px; padding-bottom: 56px; }
  .hero h1 { font-size: 1.9rem; overflow-wrap: break-word; }
  .hero-panel { padding: 20px; }
  .spec-row { flex-wrap: wrap; gap: 4px 12px; }
  .spec-row dd { text-align: left; }
  .btn { white-space: normal; text-align: center; }
  .draft-bar .container { font-size: 0.72rem; }
}

@media print {
  .draft-bar, .cookie-banner, .menu-toggle { display: none !important; }
  .header { position: static; }
  .section, .hero, .page-hero { break-inside: avoid; }
  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }
}
