/* === style.css === */
:root {
  --bg: #0D1B2A;
  --surface: #162032;
  --surface-2: #1C2D42;
  --border: #1E3A5F;
  --accent: #0EA5E9;
  --accent-dim: #0284C7;
  --text: #E2EAF4;
  --text-muted: #7A95B0;
  --success: #10B981;
  --mono: "IBM Plex Mono", monospace;
  --shadow: 0 0 20px rgba(14, 165, 233, 0.2);
  --max-width: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "IBM Plex Sans", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
input, select, textarea, button { max-width: 100%; }
svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.container { width: min(100% - 40px, var(--max-width)); margin: 0 auto; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 2000; transform: translateY(-150%); background: var(--accent); color: #04111d; padding: 10px 14px; border-radius: 4px; font-weight: 700; }
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  transition: background 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled, .site-header.menu-open {
  background: rgba(13, 27, 42, 0.94);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32);
  border-color: rgba(30, 58, 95, 0.75);
  backdrop-filter: blur(12px);
}
.nav { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-grid; gap: 0; line-height: 1; min-width: 190px; }
.brand-main { font-family: "Syne", sans-serif; font-size: 28px; font-weight: 800; color: var(--accent); letter-spacing: 0; }
.brand-sub { margin-top: 6px; font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text); }
.nav-menu { display: flex; align-items: center; gap: 10px; }
.nav-menu a { color: var(--text-muted); font-weight: 600; padding: 12px 14px; border-radius: 4px; transition: color 180ms ease, background 180ms ease; }
.nav-menu a:hover, .nav-menu a:focus-visible, .nav-menu a.active { color: var(--accent); background: rgba(14, 165, 233, 0.08); }
.nav-toggle { display: none; width: 48px; height: 48px; border: 1px solid var(--border); border-radius: 4px; background: rgba(22, 32, 50, 0.85); color: var(--text); cursor: pointer; }
.nav-toggle span { display: block; width: 22px; height: 2px; margin: 5px auto; background: currentColor; transition: transform 180ms ease, opacity 180ms ease; }
.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); }

.hero, .page-hero { position: relative; overflow: hidden; }
.home-hero { min-height: 100dvh; display: flex; align-items: center; padding: 120px 0 88px; }
.page-hero { padding: 158px 0 86px; border-bottom: 1px solid rgba(30, 58, 95, 0.7); }
.circuit-bg {
  background:
    radial-gradient(circle at 78% 20%, rgba(14, 165, 233, 0.18), transparent 34%),
    linear-gradient(135deg, #0d1b2a 0%, #111827 54%, #07111d 100%);
}
.circuit-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.23;
  background-image: url("data:image/svg+xml,%3Csvg width='120' height='120' viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%230EA5E9' stroke-width='1'%3E%3Cpath d='M10 20h30v20h30v40h40'/%3E%3Cpath d='M20 100V70h30V50h50'/%3E%3Cpath d='M80 10v24h24'/%3E%3Ccircle cx='40' cy='40' r='3'/%3E%3Ccircle cx='70' cy='80' r='3'/%3E%3Ccircle cx='100' cy='34' r='3'/%3E%3C/g%3E%3C/svg%3E");
}
.hero > .container, .page-hero > .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.72fr); gap: 56px; align-items: center; }
.eyebrow, .mono { font-family: "IBM Plex Mono", monospace; color: var(--accent); text-transform: uppercase; letter-spacing: 0.08em; font-size: 13px; font-weight: 600; }
h1, h2, h3 { font-family: "Syne", sans-serif; line-height: 1.08; letter-spacing: 0; margin: 0; }
h1 { font-size: clamp(44px, 6vw, 84px); max-width: 890px; }
h2 { font-size: clamp(30px, 4vw, 48px); }
h3 { font-size: 22px; }
p { color: var(--text-muted); margin: 0; }
.hero-lede, .page-hero p:not(.breadcrumb) { font-size: clamp(18px, 2vw, 24px); max-width: 660px; margin-top: 22px; }
.breadcrumb { margin-bottom: 18px; font-family: "IBM Plex Mono", monospace; font-size: 13px; color: var(--text-muted); }
.breadcrumb a { color: var(--accent); }
.button-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 20px;
  border-radius: 4px;
  font-weight: 700;
  border: 1px solid transparent;
  transition: transform 180ms ease, filter 180ms ease, box-shadow 180ms ease, background 180ms ease;
  touch-action: manipulation;
}
.btn:hover, .btn:focus-visible { transform: translateY(-2px) scale(1.01); filter: brightness(1.08); box-shadow: var(--shadow); }
.btn-primary { background: var(--accent); color: #031421; }
.btn-secondary { border-color: var(--border); color: var(--text); background: rgba(22, 32, 50, 0.62); }
.btn-small { min-height: 40px; padding: 9px 14px; background: rgba(14, 165, 233, 0.12); border-color: var(--border); color: var(--accent); }
.center { text-align: center; margin-top: 40px; }

.hero-panel { padding: 22px; border: 1px solid var(--border); border-radius: 8px; background: rgba(22, 32, 50, 0.74); box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35); }
.spec-card { padding: 24px; border-radius: 8px; background: linear-gradient(180deg, rgba(14, 165, 233, 0.12), rgba(14, 165, 233, 0.03)); border: 1px solid rgba(14, 165, 233, 0.32); }
.spec-card strong { display: block; font-size: 28px; line-height: 1.15; margin: 12px 0; }
.signal-list { display: grid; gap: 10px; margin-top: 16px; }
.signal-list span { padding: 12px 14px; border: 1px solid rgba(30, 58, 95, 0.82); border-radius: 4px; color: var(--text); background: rgba(13, 27, 42, 0.6); }

.stats-band { border-block: 1px solid var(--border); background: #0a1725; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; }
.stat { padding: 30px 18px; text-align: center; background: rgba(22, 32, 50, 0.55); }
.stat strong { display: block; font-family: "IBM Plex Mono", monospace; font-size: clamp(30px, 4vw, 48px); color: var(--accent); line-height: 1; }
.stat span { display: block; margin-top: 8px; color: var(--text); font-weight: 600; }

.section { padding: clamp(80px, 10vw, 118px) 0; }
.section.alt { background: var(--surface-2); border-block: 1px solid rgba(30, 58, 95, 0.58); }
.section-heading { max-width: 760px; margin-bottom: 42px; }
.section-heading h2 { margin-top: 10px; }
.section-heading p:last-child { margin-top: 16px; font-size: 18px; }
.card-grid { display: grid; gap: 20px; }
.card-grid.six { grid-template-columns: repeat(3, 1fr); }
.card-grid.four { grid-template-columns: repeat(4, 1fr); }
.three-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature-card, .value-card, .product-card, .process-step, .contact-panel, .rfq-form, .mission-card, .quote-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(22, 32, 50, 0.96), rgba(13, 27, 42, 0.95));
  padding: 32px;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}
.feature-card:hover, .value-card:hover, .product-card:hover, .process-step:hover { transform: translateY(-6px); border-color: var(--accent); box-shadow: var(--shadow); }
.feature-card h3, .value-card h3 { margin: 18px 0 10px; }
.icon-chip, .product-icon, .service-icon {
  width: 52px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: var(--accent);
  background: rgba(14, 165, 233, 0.1);
  border: 1px solid rgba(14, 165, 233, 0.32);
}
.icon-chip svg, .product-icon svg, .service-icon svg { width: 28px; height: 28px; }

.trust-list {
  display: grid;
  gap: 12px;
  margin-top: 26px;
}
.trust-list span {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
}
.trust-list svg {
  width: 20px;
  height: 20px;
  color: var(--success);
  flex: 0 0 auto;
}
.quote-card {
  background: rgba(28, 45, 66, 0.92);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
}
.quote-card-heading { margin-bottom: 20px; }
.quote-card-heading h2 { font-size: clamp(26px, 3vw, 34px); }
.quote-card-heading p { margin-top: 8px; }
.btn-full { width: 100%; }
.btn.is-loading {
  pointer-events: none;
  opacity: 0.82;
}
.btn.is-loading span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.btn.is-loading span::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 2px solid rgba(3, 20, 33, 0.35);
  border-top-color: #031421;
  border-radius: 50%;
  animation: spin 800ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.mini-cta { padding: 54px 0; background: linear-gradient(90deg, rgba(14, 165, 233, 0.15), rgba(22, 32, 50, 0.95)); border-block: 1px solid rgba(14, 165, 233, 0.32); }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.split-layout { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 54px; align-items: start; }
.prose { font-size: 18px; }
.prose p + p { margin-top: 18px; }
.timeline { position: relative; display: grid; gap: 18px; }
.timeline::before { content: ""; position: absolute; left: 72px; top: 0; bottom: 0; width: 1px; background: var(--border); }
.timeline-item { position: relative; display: grid; grid-template-columns: 120px 1fr; gap: 24px; padding: 26px 30px; border: 1px solid var(--border); border-radius: 8px; background: rgba(22, 32, 50, 0.66); }
.timeline-item span { font-family: "IBM Plex Mono", monospace; color: var(--accent); font-weight: 700; }
.timeline-item h3 { margin-bottom: 8px; }
.timeline-content { min-width: 0; }
.timeline-content p { max-width: 860px; }
.advantage-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.advantage-tags em { font-style: normal; font-family: var(--mono); font-size: 12px; color: var(--accent); padding: 7px 10px; border: 1px solid rgba(14, 165, 233, 0.28); border-radius: 999px; background: rgba(14, 165, 233, 0.08); }
.badge-row { display: flex; flex-wrap: wrap; gap: 16px; }
.cert-badge { padding: 18px 26px; border: 1px solid rgba(14, 165, 233, 0.42); border-radius: 999px; font-family: "IBM Plex Mono", monospace; color: var(--accent); background: rgba(14, 165, 233, 0.08); font-weight: 700; }

.product-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.capability-stack { display: grid; gap: 24px; }
.section-inner { display: grid; gap: 24px; }
.product-card { display: grid; gap: 18px; }
.product-card ul, .service-block ul { margin: 0; padding-left: 20px; color: var(--text-muted); }
.product-card li + li, .service-block li + li { margin-top: 8px; }
.product-card .btn { justify-self: start; }
.capability-feature { border-left: 4px solid var(--accent); border-radius: 12px; border-top: 1px solid var(--border); border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); background: linear-gradient(180deg, rgba(22, 32, 50, 0.96), rgba(13, 27, 42, 0.95)); padding: 32px; }
.section-heading.compact { margin-bottom: 28px; }
.section-heading.centered { margin-inline: auto; text-align: center; }
.hdi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.hdi-grid h3 { margin-bottom: 14px; }
.spec-list { margin: 0; padding-left: 20px; color: var(--text-muted); }
.spec-list li + li { margin-top: 12px; }
.spec-list strong { color: var(--text); }
.mono-list { font-family: var(--mono); font-size: 14px; }
.small-card-grid, .inspection-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.section-divider { display: flex; align-items: center; gap: 16px; margin: 10px 0 6px; color: var(--accent); font-family: var(--mono); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; }
.section-divider::before, .section-divider::after { content: ""; height: 1px; flex: 1; background: rgba(14, 165, 233, 0.46); }
.section-divider span { border: 1px solid rgba(14, 165, 233, 0.42); border-radius: 999px; padding: 10px 16px; background: rgba(14, 165, 233, 0.08); }
.badge-card-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.badge-card-row .cert-badge { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 76px; border-radius: 8px; }
.center-block { text-align: center; }
.support-line { max-width: 760px; margin: 18px auto 0; }
.cta-centered { display: grid; justify-items: center; text-align: center; gap: 14px; }
.cta-centered p { max-width: 760px; }
.center-buttons { justify-content: center; margin-top: 10px; }
.pcba-process { grid-template-columns: repeat(3, 1fr); }

.service-stack { display: grid; gap: 28px; }
.service-block { display: grid; grid-template-columns: 92px 1fr; gap: 28px; align-items: start; padding: 34px; border: 1px solid var(--border); border-radius: 8px; background: rgba(22, 32, 50, 0.75); }
.service-block.reverse { grid-template-columns: 1fr 92px; }
.service-block.reverse .service-icon { order: 2; }
.service-block h2 { margin-bottom: 14px; }
.service-block ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 18px; margin-top: 20px; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.process-grid.six-step { grid-template-columns: repeat(3, 1fr); }
.process-step span { font-family: "IBM Plex Mono", monospace; color: var(--accent); font-weight: 700; }
.process-step h3 { margin: 16px 0 8px; }

.contact-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr); gap: 28px; align-items: start; }
.rfq-form h2, .contact-panel h2 { margin-bottom: 24px; }
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
label { display: grid; gap: 8px; color: var(--text); font-weight: 600; margin-bottom: 18px; }
input, select, textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #0a1725;
  color: var(--text);
  padding: 11px 12px;
  font: inherit;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(14, 165, 233, 0.55); outline-offset: 2px; border-color: var(--accent); }
.radio-group {
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}
.radio-group legend {
  width: 100%;
  color: var(--text);
  font-weight: 600;
  margin-bottom: 4px;
}
.radio-group label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  min-height: 32px;
  color: var(--text-muted);
}
.radio-group input { width: auto; min-height: auto; accent-color: var(--accent); }
.file-upload {
  position: relative;
  min-height: 132px;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 2px dashed var(--border);
  border-radius: 12px;
  background: rgba(14, 165, 233, 0.04);
  padding: 20px;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
}
.file-upload:hover, .file-upload.is-dragover {
  border-color: var(--accent);
  background: rgba(14, 165, 233, 0.08);
  box-shadow: var(--shadow);
}
.file-upload input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}
.file-upload-main { color: var(--text); font-weight: 700; }
.file-upload-sub, .file-name { color: var(--text-muted); font-size: 14px; }
.file-name { font-family: var(--mono); color: var(--accent); }
.form-note { margin: 4px 0 18px; padding: 14px; border: 1px solid rgba(14, 165, 233, 0.28); border-radius: 4px; background: rgba(14, 165, 233, 0.06); }
.form-note a { color: var(--accent); font-weight: 700; }
.success-message { display: none; margin-top: 18px; padding: 14px; border: 1px solid rgba(16, 185, 129, 0.38); border-radius: 4px; color: var(--success); background: rgba(16, 185, 129, 0.12); }
.success-message.visible { display: block; }
.success-message.error { border-color: rgba(239, 68, 68, 0.45); color: #fecaca; background: rgba(239, 68, 68, 0.12); }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 8px; }
.spec-table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  color: var(--text);
}
.spec-table th, .spec-table td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(30, 58, 95, 0.72);
}
.spec-table th {
  color: var(--accent);
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 13px;
  background: rgba(14, 165, 233, 0.08);
}
.spec-table tr:last-child td { border-bottom: 0; }
.contact-list { display: grid; gap: 18px; }
.contact-list p { display: grid; gap: 4px; padding-bottom: 16px; border-bottom: 1px solid rgba(30, 58, 95, 0.65); }
.contact-list strong { color: var(--text); }
.contact-list a { color: var(--accent); }
.response-box { margin-top: 26px; padding: 20px; border: 1px solid rgba(14, 165, 233, 0.36); border-radius: 8px; background: rgba(14, 165, 233, 0.08); }
.response-box strong { display: block; margin-top: 8px; font-size: 20px; }

.site-footer { padding: 54px 0 24px; background: #07111d; border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1.15fr 0.65fr 1fr; gap: 34px; }
.footer-grid h2 { font-size: 18px; margin-bottom: 14px; }
.footer-grid a { display: table; color: var(--text-muted); margin-top: 8px; }
.footer-grid a:hover { color: var(--accent); }
.footer-brand { margin-bottom: 18px; }
.footer-seo { margin-top: 30px; color: var(--text-muted); font-size: 14px; }
.social-row { display: flex; gap: 10px; margin-top: 14px; }
.social-row a { width: 42px; height: 42px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 4px; color: var(--accent); }
.social-row svg { width: 22px; height: 22px; }
.copyright { margin-top: 34px; padding-top: 20px; border-top: 1px solid rgba(30, 58, 95, 0.65); color: var(--text-muted); font-size: 14px; }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity 600ms ease, transform 600ms ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 90ms; }
.delay-2 { transition-delay: 160ms; }
.delay-3 { transition-delay: 230ms; }

@media (max-width: 920px) {
  .nav-toggle { display: block; }
  .nav-menu { position: fixed; top: 78px; left: 0; right: 0; display: grid; gap: 0; padding: 14px 20px 24px; background: rgba(13, 27, 42, 0.98); border-bottom: 1px solid var(--border); transform: translateY(-130%); opacity: 0; pointer-events: none; transition: transform 220ms ease, opacity 220ms ease; }
  .nav-menu.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .nav-menu a { padding: 15px 12px; }
  .hero-grid, .split-layout, .contact-layout { grid-template-columns: 1fr; }
  .card-grid.six, .card-grid.four, .three-grid, .product-grid, .process-grid, .process-grid.six-step, .process-grid.pcba-process, .small-card-grid, .inspection-grid, .hdi-grid, .badge-card-row, .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .service-block, .service-block.reverse { grid-template-columns: 1fr; }
  .service-block.reverse .service-icon { order: 0; }
  .service-block ul { grid-template-columns: 1fr; }
}

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

  .quote-card,
  .rfq-form {
    width: 100%;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  body {
    font-size: clamp(0.9rem, 2vw, 1rem);
  }

  .nav {
    min-height: 70px;
  }

  .nav-toggle {
    display: block;
    min-width: 48px;
    min-height: 48px;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    display: grid;
    gap: 0;
    width: 100%;
    padding: 8px 20px 18px;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    transform: translateY(-130%);
    opacity: 0;
    pointer-events: none;
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.32);
    transition: transform 220ms ease, opacity 220ms ease;
  }

  .nav-menu.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-menu a {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 48px;
    padding: 0 12px;
  }

  h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    overflow-wrap: anywhere;
  }

  h2,
  .section-heading h2 {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    overflow-wrap: anywhere;
  }

  p,
  li,
  label,
  input,
  select,
  textarea {
    font-size: max(16px, clamp(0.9rem, 2vw, 1rem));
  }

  .hero-lede,
  .page-hero p:not(.breadcrumb),
  .section-heading p:last-child,
  .prose {
    font-size: clamp(0.95rem, 2vw, 1rem);
  }

  .split-layout,
  .contact-layout,
  .form-grid,
  .product-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .card-grid.six,
  .card-grid.four,
  .three-grid,
  .process-grid,
  .process-grid.six-step,
  .process-grid.pcba-process,
  .small-card-grid,
  .inspection-grid,
  .hdi-grid,
  .badge-card-row {
    grid-template-columns: 1fr;
  }

  .feature-card,
  .value-card,
  .product-card,
  .process-step,
  .contact-panel,
  .rfq-form,
  .mission-card,
  .service-block,
  .quote-card,
  .capability-feature {
    width: 100%;
    max-width: 100%;
  }

  .table-wrap {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .spec-table {
    font-size: 0.85rem;
  }

  input,
  select,
  textarea {
    width: 100%;
    min-height: 48px;
    font-size: 16px;
  }

  .file-upload {
    min-height: 80px;
  }

  .btn,
  .btn-full,
  button {
    min-height: 52px;
  }

  .site-footer {
    padding: 44px 0 24px;
    text-align: center;
  }

  .footer-grid {
    gap: 28px;
  }

  .footer-grid a,
  .social-row {
    margin-left: auto;
    margin-right: auto;
  }

  .social-row a {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 600px) {
  .card-grid.six,
  .card-grid.four,
  .three-grid,
  .small-card-grid,
  .inspection-grid,
  .hdi-grid,
  .badge-card-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container { width: min(100% - 28px, var(--max-width)); }
  .nav { min-height: 70px; }
  .brand-main { font-size: 24px; }
  .brand-sub { font-size: 9px; }
  .nav-menu { top: 70px; }
  .home-hero { padding-top: 112px; }
  .page-hero { padding: 130px 0 66px; }
  h1 { font-size: clamp(2rem, 5vw, 3.5rem); }
  .button-row, .cta-inner { align-items: stretch; flex-direction: column; }
  .btn { width: 100%; }
  .stats-grid, .card-grid.six, .card-grid.four, .three-grid, .product-grid, .process-grid, .process-grid.six-step, .process-grid.pcba-process, .small-card-grid, .inspection-grid, .hdi-grid, .badge-card-row, .footer-grid, .form-grid { grid-template-columns: 1fr; }
  .timeline::before { display: none; }
  .timeline-item { grid-template-columns: 1fr; gap: 8px; }
  .feature-card, .value-card, .product-card, .process-step, .contact-panel, .rfq-form, .mission-card, .service-block, .quote-card, .capability-feature { padding: 22px; }
  .section-divider { align-items: stretch; flex-direction: column; text-align: center; }
  .section-divider::before, .section-divider::after { width: 100%; flex: none; }
}

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