/* 官网视觉系统：以生产现场和产品实拍为主，装饰只承担信息分层。 */
:root {
  --ink: #172d34;
  --ink-deep: #10252d;
  --text: #243940;
  --muted: #566a6d;
  --paper: #fafbf8;
  --soft: #eff2ef;
  --accent: #a64e2c;
  --accent-light: #e9b697;
  --line: #d5ddda;
  --line-light: rgba(255, 255, 255, 0.19);
  --sans: "PingFang SC", "Microsoft YaHei UI", "Noto Sans CJK SC", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  --container: 1540px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; background: var(--ink-deep); }
body {
  margin: 0;
  color: var(--text);
  background: var(--paper);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  overflow-x: hidden;
}
body.nav-open, body.dialog-open { overflow: hidden; }
::selection { color: #fff; background: var(--accent); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 18px;
  color: #fff;
  background: var(--ink);
  transform: translateY(-160%);
  transition: transform 180ms ease;
}
.skip-link:focus { transform: translateY(0); }
.container { width: min(var(--container), calc(100% - clamp(40px, 7vw, 144px))); margin-inline: auto; }
.section { padding: clamp(88px, 8vw, 136px) 0; }
.kicker {
  margin: 0 0 24px;
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.13em;
}
.kicker-light { color: var(--accent-light); }
.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  align-items: end;
  gap: clamp(32px, 7vw, 112px);
  margin-bottom: clamp(42px, 5vw, 72px);
}
.section-heading h2, .process-heading h2, .custom-intro h2, .contact-copy h2 {
  margin: 0;
  font-size: clamp(38px, 4.5vw, 68px);
  font-weight: 650;
  line-height: 1.23;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.section-heading > p {
  max-width: 450px;
  margin: 0 0 4px;
  color: var(--muted);
  line-height: 1.9;
}

/* 页头保留原有导航钩子，移动端菜单仍由 main.js 控制。 */
.utility-bar { color: #cbd6d5; background: var(--ink-deep); }
.utility-inner {
  min-height: 34px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 11px;
  letter-spacing: 0.06em;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(250, 251, 248, 0.98);
  transition: box-shadow 220ms ease, background 220ms ease;
}
.site-header.is-scrolled {
  background: rgba(250, 251, 248, 0.94);
  box-shadow: 0 12px 32px rgba(16, 37, 45, 0.08);
  backdrop-filter: blur(16px);
}
.header-inner { min-height: 82px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand-seal {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--ink);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}
.brand-copy { line-height: 1.2; }
.brand-copy strong { display: block; color: var(--ink); font-size: 17px; letter-spacing: 0.03em; }
.brand-copy small { display: block; margin-top: 6px; color: var(--muted); font-size: 10px; letter-spacing: 0.07em; }
.primary-nav { display: flex; align-items: center; gap: clamp(2px, 0.7vw, 12px); margin-left: auto; }
.primary-nav a {
  position: relative;
  padding: 12px 11px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: color 180ms ease;
}
.primary-nav a::after {
  content: "";
  position: absolute;
  right: 11px;
  bottom: 5px;
  left: 11px;
  height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 200ms ease;
}
.primary-nav a:hover, .primary-nav a.is-active { color: var(--ink); }
.primary-nav a:hover::after, .primary-nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.header-cta {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  padding: 0 17px;
  color: #fff;
  background: var(--ink);
  font-size: 13px;
  font-weight: 600;
  transition: background 200ms ease, transform 200ms ease;
}
.header-cta:hover { background: var(--accent); transform: translateY(-2px); }
.header-cta:active, .button:active { transform: translateY(1px); }
.header-cta svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
}
.nav-toggle span:not(.sr-only) { position: absolute; width: 19px; height: 2px; background: var(--ink); transition: transform 180ms ease; }
.nav-toggle span:nth-child(2) { transform: translateY(-4px); }
.nav-toggle span:nth-child(3) { transform: translateY(4px); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg); }

/* 顶部采用 1920×640 宽屏横幅，左侧留白承载页面文案。 */
.hero {
  min-height: clamp(520px, 33.333vw, 640px);
  display: flex;
  align-items: center;
  color: var(--ink);
  background-color: #eef2ed;
  background-image: url("../banners/hexingchuang/hero-1920x640.svg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}
.hero-layout {
  width: 100%;
  padding-block: 74px 86px;
}
.hero-content {
  min-width: 0;
  max-width: 610px;
  margin-left: clamp(264px, calc(12vw + 200px), 420px);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.13em;
}
.eyebrow span { width: 24px; height: 2px; background: currentColor; }
.hero h1 {
  margin: 30px 0 28px;
  font-size: clamp(48px, 4.7vw, 78px);
  font-weight: 650;
  line-height: 1.23;
  letter-spacing: -0.055em;
  text-wrap: balance;
}
.hero h1 em { color: var(--accent); font-style: normal; }
.hero-lead { max-width: 570px; margin: 0; color: var(--muted); font-size: clamp(16px, 1.15vw, 18px); line-height: 1.95; }
.hero-actions, .contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 30px; margin-top: 38px; }
.hero-actions { justify-content: center; }
.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 24px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 650;
  transition: transform 200ms ease, background 200ms ease, color 200ms ease, border-color 200ms ease;
}
.button:hover { transform: translateY(-3px); }
.button-accent, .button-mint { color: #fff; background: var(--accent); }
.button-accent:hover, .button-mint:hover { background: #883d20; }
.button-dark { color: #fff; background: var(--ink); }
.button-dark:hover { background: var(--accent); }
.button-light { color: var(--ink); border-color: var(--line); background: var(--paper); }
.button-light:hover { border-color: var(--ink); }
.button-outline { color: var(--ink); border-color: var(--ink); }
.button-outline:hover { color: #fff; background: var(--ink); }
.hero-text-link, .text-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding-block: 8px;
  border-bottom: 1px solid currentColor;
  font-size: 14px;
  font-weight: 600;
  transition: color 200ms ease;
}
.hero-text-link:hover { color: var(--accent); }
.text-link:hover { color: var(--accent-light); }
.hero-text-link span, .text-link span { font-size: 19px; line-height: 1; transition: transform 200ms ease; }
.hero-text-link:hover span, .text-link:hover span { transform: translate(3px, -3px); }
.proof-strip { color: var(--ink); border-bottom: 1px solid var(--line); background: #fff; }
.proof-strip-inner { min-height: 152px; display: flex; align-items: center; justify-content: space-between; gap: 44px; }
.proof-strip-inner > p { margin: 0; font-size: 17px; line-height: 1.65; }
.proof-strip-inner > p strong { font-weight: 650; }
.hero-facts { display: flex; justify-content: flex-end; gap: 0; margin: 0; }
.hero-facts div { min-width: 175px; padding: 0 clamp(24px, 4vw, 64px); border-left: 1px solid var(--line); }
.hero-facts dt { color: var(--ink); font-family: var(--mono); font-size: 34px; font-weight: 600; line-height: 1.1; font-variant-numeric: tabular-nums; }
.hero-facts dt small { font-family: var(--sans); font-size: 13px; }
.hero-facts dd { margin: 7px 0 0; color: var(--muted); font-size: 12px; }

/* 产品方向用一张真实样品照片与五条目录，避免六张同质卡片。 */
.product-directions { background: var(--paper); }
.direction-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: clamp(32px, 5vw, 86px); }
.direction-card {
  min-width: 0;
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 23px 0;
  border-bottom: 1px solid var(--line);
}
.direction-card:not(.direction-card-featured) { grid-column: 2; }
.direction-card:nth-child(2) { border-top: 1px solid var(--line); }
.direction-index { align-self: start; padding-top: 7px; color: var(--accent); font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; }
.direction-card h3 { margin: 0 0 4px; color: var(--ink); font-size: clamp(19px, 1.6vw, 25px); font-weight: 650; line-height: 1.35; }
.direction-card p { margin: 0; color: var(--muted); font-size: 14px; }
.direction-card-featured {
  position: relative;
  grid-column: 1;
  grid-row: 1 / span 5;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  min-height: 660px;
  padding: clamp(26px, 3vw, 44px);
  border: 0;
  background: #e7ebe6;
  overflow: hidden;
}
.direction-card-featured::after { content: ""; position: absolute; inset: auto 0 0; height: 5px; background: var(--accent); }
.direction-card-featured .direction-index { position: relative; z-index: 1; padding: 0; color: var(--ink); }
.direction-card-featured img { align-self: center; width: min(78%, 365px); aspect-ratio: 1; object-fit: contain; mix-blend-mode: multiply; transition: transform 500ms cubic-bezier(.2, .7, .3, 1); }
.direction-card-featured:hover img { transform: scale(1.04); }
.direction-card-featured > div { position: relative; z-index: 1; }
.direction-card-featured h3 { margin-bottom: 10px; font-size: clamp(28px, 2.2vw, 36px); }
.direction-card-featured p { max-width: 360px; }
.gallery-panel { margin-top: clamp(100px, 9vw, 160px); }
.gallery-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 28px; }
.gallery-toolbar h3 { margin: 0; color: var(--ink); font-size: clamp(32px, 3vw, 46px); font-weight: 650; line-height: 1.2; }
.filter-group { display: flex; flex-wrap: wrap; gap: 8px; }
.filter-button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  font-size: 13px;
  transition: color 180ms ease, background 180ms ease, border-color 180ms ease;
}
.filter-button:hover { border-color: var(--ink); }
.filter-button.is-active { color: #fff; border-color: var(--ink); background: var(--ink); }
.product-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.product-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 1px solid var(--line);
  background: #fff;
  cursor: zoom-in;
  text-align: left;
  transition: border-color 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}
.product-card:hover { border-color: #aabcb9; transform: translateY(-4px); box-shadow: 0 14px 36px rgba(16, 37, 45, 0.09); }
.product-card.is-hidden { display: none; }
.product-image { width: 100%; aspect-ratio: 1; display: grid; place-items: center; padding: 12px; background: #f1f3f0; overflow: hidden; }
.product-card:nth-child(5n + 2) .product-image { background: #ecf0ed; }
.product-card:nth-child(5n + 3) .product-image { background: #f3f0eb; }
.product-card:nth-child(5n + 4) .product-image { background: #edf1f2; }
.product-image img { width: 88%; height: 88%; object-fit: contain; mix-blend-mode: multiply; transition: transform 400ms cubic-bezier(.2, .7, .3, 1); }
.product-card:hover .product-image img { transform: scale(1.065); }
.product-meta { display: flex; flex-direction: column; gap: 3px; padding: 16px 17px 18px; }
.product-meta b { color: var(--ink); font-size: 14px; font-weight: 650; }
.product-meta small { color: var(--muted); font-size: 12px; }
.gallery-note, .process-note { margin: 22px 0 0; color: var(--muted); font-size: 12px; }

/* 定制横带与工厂影像形成深浅交替的阅读节奏。 */
.custom-section { position: relative; color: #fff; background: var(--ink-deep); overflow: hidden; }
.custom-section::before {
  content: "";
  position: absolute;
  top: 0;
  right: 47%;
  bottom: 0;
  width: 1px;
  background: var(--line-light);
  pointer-events: none;
}
.custom-layout { position: relative; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(50px, 8vw, 136px); align-items: center; }
.custom-intro h2 { color: #fff; }
.custom-intro > p:not(.kicker) { max-width: 520px; margin: 30px 0 0; color: #cad5d3; line-height: 1.95; }
.text-link { margin-top: 34px; color: #fff; }
.text-link span { color: var(--accent-light); }
.capability-board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line-light); border-left: 1px solid var(--line-light); }
.capability-board article { min-height: 230px; display: flex; flex-direction: column; padding: clamp(22px, 2.4vw, 38px); border-right: 1px solid var(--line-light); border-bottom: 1px solid var(--line-light); transition: background 220ms ease; }
.capability-board article:hover { background: rgba(255, 255, 255, 0.065); }
.capability-board span { color: var(--accent-light); font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; }
.capability-board h3 { margin: auto 0 9px; padding-top: 32px; color: #fff; font-size: 23px; font-weight: 650; }
.capability-board p { margin: 0; color: #bac9c7; font-size: 13px; line-height: 1.8; }
.factory-section { background: var(--soft); }
.factory-gallery { display: grid; grid-template-columns: 1.38fr 0.62fr; grid-template-rows: repeat(2, minmax(260px, 325px)); gap: 14px; }
.factory-gallery figure { position: relative; min-width: 0; margin: 0; background: var(--ink); overflow: hidden; }
.factory-gallery .factory-main { grid-row: 1 / 3; }
.factory-gallery img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.83); transition: transform 600ms cubic-bezier(.2, .7, .3, 1), filter 400ms ease; }
.factory-gallery figure:hover img { filter: saturate(1); transform: scale(1.035); }
.factory-gallery figcaption { position: absolute; right: 0; bottom: 0; left: 0; display: flex; flex-direction: column; gap: 4px; padding: 48px 22px 18px; color: #fff; background: linear-gradient(0deg, rgba(10, 29, 37, 0.85), transparent); }
.factory-gallery figcaption span { color: #d1dcd9; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; }
.factory-gallery figcaption b { font-size: 16px; font-weight: 600; }
.factory-stats { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 36px 0 0; border-top: 1px solid var(--line); }
.factory-stats div { min-width: 0; display: flex; flex-direction: column; gap: 26px; padding: 26px 16px 8px 20px; border-left: 1px solid var(--line); }
.factory-stats div:first-child { border-left: 0; padding-left: 0; }
.factory-stats dt { color: var(--ink); font-family: var(--mono); font-size: clamp(30px, 2.7vw, 44px); font-weight: 600; line-height: 1.1; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.factory-stats dt small { margin-left: 3px; font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: 0; }
.factory-stats dd { margin: 0; color: var(--muted); font-size: 12px; }

/* 合作流程是信息列表，不使用彩色节点装饰。 */
.process-section { background: var(--paper); }
.process-heading { max-width: 800px; }
.process-line { position: relative; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; margin: 76px 0 0; padding: 0; list-style: none; }
.process-line::before { content: ""; position: absolute; top: 0; right: 0; left: 0; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform 900ms cubic-bezier(.2, .7, .3, 1); }
.process-line.is-drawn::before, .no-js .process-line::before { transform: scaleX(1); }
.process-line li { padding-top: 28px; }
.process-number { display: block; margin-bottom: 40px; color: var(--accent); font-family: var(--mono); font-size: 16px; font-weight: 600; }
.process-line h3 { margin: 0 0 9px; color: var(--ink); font-size: 20px; font-weight: 650; }
.process-line p { max-width: 210px; margin: 0; color: var(--muted); font-size: 13px; }
.process-note { margin-top: 50px; }

/* 联系区保留真实 1688 入口与企业联系信息。 */
.contact-section { padding: clamp(88px, 8vw, 136px) 0; background: #e7edeb; }
.contact-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.83fr); gap: clamp(50px, 9vw, 150px); align-items: center; }
.contact-copy h2 { color: var(--ink); }
.contact-copy > p:not(.kicker) { max-width: 540px; margin: 24px 0 0; color: var(--muted); }
.contact-actions { gap: 14px; }
.contact-details { margin: 0; padding: clamp(24px, 3vw, 46px); background: #fff; }
.contact-details > div { position: relative; display: grid; grid-template-columns: 94px minmax(0, 1fr); gap: 18px; padding: 17px 0; border-bottom: 1px solid var(--line); }
.contact-details > div:first-child { padding-top: 0; }
.contact-details > div:last-child { padding-bottom: 0; border-bottom: 0; }
.contact-details dt { color: var(--muted); font-size: 12px; }
.contact-details dd { min-width: 0; margin: 0; color: var(--ink); font-size: 14px; font-weight: 600; overflow-wrap: anywhere; }
.site-footer { padding: 66px 0 24px; color: #fff; background: var(--ink-deep); }
.footer-top { display: grid; grid-template-columns: 1fr 0.85fr auto; align-items: center; gap: clamp(24px, 5vw, 80px); padding-bottom: 56px; }
.footer-brand { display: flex; align-items: center; gap: 15px; }
.footer-brand .brand-seal { color: var(--ink); background: #d9e3de; }
.footer-brand strong, .footer-brand > div > span { display: block; }
.footer-brand strong { color: #fff; font-size: 18px; font-weight: 650; }
.footer-brand > div > span { margin-top: 4px; color: #b5c5c3; font-family: var(--mono); font-size: 10px; letter-spacing: 0.06em; }
.footer-top > p { max-width: 450px; margin: 0; color: #c3d0cd; font-size: 13px; }
.footer-top > a { padding-bottom: 5px; border-bottom: 1px solid #8aa4a4; font-size: 13px; font-weight: 600; white-space: nowrap; }
.footer-top > a span { color: var(--accent-light); }
.footer-top > a:hover { color: var(--accent-light); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; padding-top: 20px; border-top: 1px solid var(--line-light); color: #b9c9c7; font-size: 11px; }
.footer-bottom a { text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom a:hover { color: #fff; }

/* 悬浮咨询入口在移动端避开安全区；减少动态效果沿用全局规则。 */
.floating-consult {
  position: fixed;
  right: calc(24px + env(safe-area-inset-right, 0px));
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  color: #fff;
  background: var(--ink);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  animation: consult-breathe 2.6s ease-in-out infinite;
  transition: background 180ms ease;
}
.floating-consult:hover { background: var(--accent); }
.floating-consult span { font-size: 18px; line-height: 1; }
@keyframes consult-breathe {
  0%, 100% { box-shadow: 0 10px 28px rgba(16, 37, 45, 0.22), 0 0 0 0 rgba(166, 78, 44, 0.28); }
  50% { box-shadow: 0 14px 34px rgba(16, 37, 45, 0.26), 0 0 0 10px rgba(166, 78, 44, 0); }
}

/* 原生 dialog 继续承担产品预览和焦点管理。 */
.lightbox { width: min(980px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 32px); padding: 0; border: 0; color: var(--text); background: var(--paper); box-shadow: 0 38px 100px rgba(5, 23, 30, 0.35); overflow: visible; }
.lightbox::backdrop { background: rgba(8, 27, 34, 0.78); backdrop-filter: blur(5px); }
.lightbox-close { position: absolute; top: -14px; right: -14px; z-index: 2; width: 44px; height: 44px; padding: 0; color: #fff; border: 1px solid #b6c2c1; background: var(--ink); cursor: pointer; font-size: 28px; line-height: 1; }
.lightbox-close:hover { background: var(--accent); }
.lightbox-body { display: grid; grid-template-columns: 1.06fr 0.94fr; min-height: 500px; }
.lightbox-image-wrap { display: grid; place-items: center; padding: 44px; background: var(--soft); }
.lightbox-image-wrap img { width: min(100%, 420px); max-height: 65dvh; object-fit: contain; mix-blend-mode: multiply; }
.lightbox-copy { align-self: center; padding: 48px; }
.lightbox-copy h2 { margin: 0; color: var(--ink); font-size: clamp(30px, 3vw, 42px); line-height: 1.25; }
.lightbox-copy p:not(.kicker) { margin: 22px 0 32px; color: var(--muted); font-size: 14px; }

/* 进入动画仅修改 transform/opacity；无 JS 或减少动态效果时始终可见。 */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity 600ms cubic-bezier(.2, .7, .3, 1), transform 600ms cubic-bezier(.2, .7, .3, 1); }
.reveal.is-visible, .no-js .reveal { opacity: 1; transform: none; }
.hero-content.is-visible > * { animation: hero-enter 650ms cubic-bezier(.2, .7, .3, 1) both; }
.hero-content.is-visible > :nth-child(2) { animation-delay: 90ms; }
.hero-content.is-visible > :nth-child(3) { animation-delay: 180ms; }
.hero-content.is-visible > :nth-child(4) { animation-delay: 270ms; }
@keyframes hero-enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

@media (max-width: 1280px) {
  .header-cta { display: none; }
  .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .factory-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .factory-stats div { border-bottom: 1px solid var(--line); }
  .factory-stats div:nth-child(4) { border-left: 0; padding-left: 0; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-top > a { justify-self: start; }
}
@media (max-width: 960px) {
  .section { padding-block: 92px; }
  .header-inner { min-height: 74px; }
  .nav-toggle { position: relative; display: grid; place-items: center; }
  .primary-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: grid;
    gap: 0;
    max-height: calc(100dvh - 74px);
    margin: 0;
    padding: 10px max(24px, calc((100vw - 720px) / 2)) 22px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    box-shadow: 0 20px 40px rgba(16, 37, 45, 0.12);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-10px);
    transition: visibility 200ms ease, opacity 200ms ease, transform 200ms ease;
  }
  .primary-nav.is-open { visibility: visible; opacity: 1; transform: none; }
  .primary-nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .primary-nav a::after { right: auto; bottom: 10px; left: 0; width: 36px; }
  .no-js .primary-nav { position: static; display: flex; max-height: none; padding: 0; border: 0; box-shadow: none; visibility: visible; opacity: 1; transform: none; }
  .no-js .nav-toggle { display: none; }
  .hero-content { margin-left: clamp(24px, 6vw, 64px); }
  .section-heading { grid-template-columns: 1fr; gap: 22px; }
  .direction-grid { grid-template-columns: 1fr 1fr; gap: 0 34px; }
  .direction-card-featured { grid-column: 1 / -1; grid-row: auto; min-height: 380px; margin-bottom: 18px; flex-direction: row; align-items: flex-end; gap: 24px; }
  .direction-card-featured .direction-index { align-self: flex-start; }
  .direction-card-featured img { position: absolute; top: 6%; right: 5%; width: min(40%, 240px); }
  .direction-card-featured > div { max-width: 62%; }
  .direction-card:not(.direction-card-featured) { grid-column: auto; }
  .direction-card:nth-child(2) { border-top: 0; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .custom-section::before { display: none; }
  .custom-layout { grid-template-columns: 1fr; gap: 50px; }
  .custom-intro > p:not(.kicker) { max-width: 700px; }
  .factory-gallery { grid-template-rows: repeat(2, 260px); }
  .process-line { grid-template-columns: 1fr; gap: 0; margin-top: 50px; }
  .process-line::before { top: 0; right: auto; bottom: 0; left: 17px; width: 1px; height: auto; transform: scaleY(0); transform-origin: top; }
  .process-line.is-drawn::before, .no-js .process-line::before { transform: scaleY(1); }
  .process-line li { display: grid; grid-template-columns: 42px 1fr; align-items: start; gap: 12px; padding: 0 0 26px; }
  .process-number { position: relative; z-index: 1; margin: 0; padding-top: 2px; background: var(--paper); }
  .process-line li > div { padding-bottom: 12px; border-bottom: 1px solid var(--line); }
  .process-line p { max-width: none; }
  .contact-card { grid-template-columns: 1fr; gap: 48px; }
}
@media (max-width: 800px) {
  .hero { min-height: 0; background-position: 62% center; }
  .hero-layout { padding-block: 68px 76px; }
  .hero-content { max-width: 650px; margin-left: 0; }
}
@media (max-width: 640px) {
  html { scroll-padding-top: 74px; }
  .container { width: calc(100% - 36px); }
  .section { padding-block: 74px; }
  .utility-inner { min-height: 30px; font-size: 10px; }
  .utility-inner span:last-child { display: none; }
  .brand-seal { width: 40px; height: 40px; }
  .brand-copy strong { font-size: 15px; }
  .brand-copy small { font-size: 9px; }
  .hero-layout { gap: 34px; padding-block: 60px 68px; }
  .hero h1 { margin: 22px 0; font-size: clamp(42px, 10.5vw, 58px); line-height: 1.27; }
  .eyebrow { font-size: 11px; letter-spacing: 0.05em; }
  .eyebrow span { width: 14px; }
  .hero-lead { font-size: 15px; }
  .hero-actions { align-items: center; flex-direction: column; gap: 16px; margin-top: 28px; }
  .proof-strip-inner { display: block; padding-block: 26px; }
  .proof-strip-inner > p { font-size: 15px; }
  .proof-strip-inner > p br { display: none; }
  .hero-facts { justify-content: space-between; margin-top: 22px; }
  .hero-facts div { min-width: 0; flex: 1; padding: 0 12px; }
  .hero-facts div:first-child { padding-left: 0; border-left: 0; }
  .hero-facts dt { font-size: clamp(20px, 6vw, 27px); }
  .hero-facts dd { font-size: 10px; }
  .section-heading h2, .process-heading h2, .custom-intro h2, .contact-copy h2 { font-size: clamp(34px, 8.5vw, 48px); }
  .section-heading { margin-bottom: 36px; }
  .section-heading > p { font-size: 14px; }
  .direction-grid { display: block; }
  .direction-card-featured { min-height: 0; flex-direction: column; align-items: flex-start; gap: 16px; margin-bottom: 12px; padding: 22px; }
  .direction-card-featured .direction-index { white-space: nowrap; }
  .direction-card-featured img { position: static; align-self: center; width: min(58%, 210px); height: auto; }
  .direction-card-featured > div { max-width: 100%; }
  .direction-card { grid-template-columns: 42px minmax(0, 1fr); padding: 16px 0; }
  .direction-card.direction-card-featured { padding: 22px; }
  .direction-card h3 { font-size: 18px; }
  .direction-card.direction-card-featured h3 { font-size: 25px; }
  .direction-card p { font-size: 12px; }
  .gallery-panel { margin-top: 78px; }
  .gallery-toolbar { align-items: flex-start; flex-direction: column; gap: 20px; }
  .filter-group { width: 100%; display: flex; flex-wrap: nowrap; padding-bottom: 5px; overflow-x: auto; scrollbar-width: thin; }
  .filter-button { flex: 0 0 auto; white-space: nowrap; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .product-image { padding: 6px; }
  .product-meta { padding: 12px 10px 14px; }
  .product-meta b { font-size: 12px; }
  .product-meta small { font-size: 10px; line-height: 1.45; }
  .capability-board article { min-height: 205px; padding: 22px; }
  .capability-board h3 { font-size: 19px; }
  .capability-board p { font-size: 12px; }
  .factory-gallery { grid-template-columns: 1fr 1fr; grid-template-rows: 300px 190px; gap: 8px; }
  .factory-gallery .factory-main { grid-column: 1 / -1; grid-row: auto; }
  .factory-gallery figcaption { padding: 36px 12px 12px; }
  .factory-gallery figcaption span { font-size: 9px; }
  .factory-gallery figcaption b { font-size: 12px; }
  .factory-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 26px; }
  .factory-stats div:nth-child(odd) { padding-left: 0; border-left: 0; }
  .factory-stats div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
  .factory-stats dt { font-size: 31px; }
  .process-note { margin-top: 28px; }
  .contact-section { padding-block: 74px 90px; }
  .contact-card { gap: 36px; }
  .contact-actions { align-items: flex-start; flex-direction: column; }
  .contact-actions .button { width: 100%; }
  .contact-details { padding: 24px 18px; }
  .contact-details > div { grid-template-columns: 68px minmax(0, 1fr); gap: 8px; }
  .contact-details dd { font-size: 12px; }
  .site-footer { padding-top: 54px; }
  .footer-top { grid-template-columns: 1fr; gap: 23px; padding-bottom: 40px; }
  .footer-bottom { display: grid; }
  .floating-consult {
    right: calc(16px + env(safe-area-inset-right, 0px));
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }
  .lightbox { max-height: calc(100dvh - 20px); }
  .lightbox-close { top: 8px; right: 8px; }
  .lightbox-body { grid-template-columns: 1fr; min-height: 0; max-height: calc(100dvh - 20px); overflow-y: auto; }
  .lightbox-image-wrap { min-height: 38dvh; padding: 26px; }
  .lightbox-image-wrap img { max-height: 36dvh; }
  .lightbox-copy { padding: 30px 24px; }
}
@media (max-width: 390px) {
  .brand-copy small { display: none; }
  .hero h1 { font-size: clamp(36px, 9.6vw, 40px); }
  .capability-board { grid-template-columns: 1fr; }
  .capability-board article { min-height: 140px; }
  .capability-board h3 { margin-top: 18px; padding-top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .hero-content.is-visible > * { animation: none; }
  .process-line::before { transform: none; }
}
