﻿/* ============================================================
   Fanxing Printing — stylesheet v4
   Warm paper + deep pine green. Grass green reserved for accents.
   ============================================================ */

@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-300.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-italic-400.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-300.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-italic-400.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-300.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-italic-400.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-300.woff2") format("woff2"); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("fonts/fraunces-italic-400.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/inter-800.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }

:root {
  /* surfaces — warm ivory, not stark white */
  --paper: #e8f1da;
  --paper-2: #dde9c8;
  --white: #f7fbf0;

  /* brand — muted sage / olive, Morandi range */
  --pine: #2e5b1e;
  --pine-2: #3f7329;
  --leaf: #4e8a2a;
  --grass: #7cb342;
  --grass-bright: #c9e39a;
  --sage: #dceec2;
  --sand: #cfe6a8;

  /* text */
  --ink: #1f2e17;
  --ink-2: #354a2c;
  --muted: #64775a;
  --line: rgba(31, 46, 23, 0.14);
  --line-strong: rgba(31, 46, 23, 0.24);
  --line-light: rgba(255, 255, 255, 0.16);

  --max: 1240px;
  --pad: clamp(20px, 4vw, 56px);
  --sans: "Inter", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI",
          Roboto, "PingFang SC", "Microsoft YaHei", sans-serif;
  --serif: "Fraunces", "Noto Serif SC", "Songti SC", Georgia, serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  font-feature-settings: "kern" 1, "liga" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--sans);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
}
h3, h4 { font-weight: 700; letter-spacing: -0.02em; }

/* Chinese headings: Noto Sans SC 700, upright, slightly looser leading */
html[lang^="zh"] h1,
html[lang^="zh"] h2 { font-family: var(--sans); font-weight: 700; letter-spacing: 0; line-height: 1.28; }
html[lang^="zh"] body { line-height: 1.85; }
html[lang^="zh"] .hero h1 { letter-spacing: 0.01em; line-height: 1.3; }
html[lang^="zh"] .lede { line-height: 1.9; }
html[lang^="zh"] .chapter p,
html[lang^="zh"] .pcard p,
html[lang^="zh"] .step p { line-height: 1.8; }
html[lang^="zh"] .hero h1 em { font-style: normal; font-weight: 600; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* ---------- header ---------- */

.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  background: var(--paper);
  border-bottom: 1px solid transparent;
  transition: background 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.site-header.scrolled { border-bottom-color: var(--line); box-shadow: 0 1px 24px rgba(18, 55, 42, 0.06); }

/* on the home page the header floats over the hero until you scroll */
body.home .site-header { background: var(--paper); border-bottom-color: var(--line); }

body:not(.home) { padding-top: 78px; }

.header-inner { display: flex; align-items: center; gap: 30px; height: 78px; }

.brand { display: flex; align-items: center; gap: 11px; font-weight: 700; letter-spacing: 0.14em; font-size: 15px; white-space: nowrap; color: var(--pine); }
.brand::before { content: ""; width: 22px; height: 22px; border-radius: 50%; background: var(--grass); flex: none; }
.site-header .brand::before { display: none; }
.brand .logo { height: 19px; width: auto; flex: none; }
.brand > span { display: inline-flex; align-items: baseline; gap: 8px; }
@media (max-width: 760px) { .brand .logo { height: 17px; } .brand > span { font-size: 12.5px; } }
.brand .cn { font-size: 12px; letter-spacing: 0.2em; color: var(--muted); font-weight: 500; }



.nav { display: flex; gap: 30px; margin-left: auto; font-size: 13px; letter-spacing: 0.02em; font-weight: 500; }
.nav a { color: var(--ink-2); position: relative; padding: 4px 0; transition: color 0.2s; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1.5px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 0.3s var(--ease);
}
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }

.lang {
  font-size: 12px; letter-spacing: 0.06em; border: 1px solid var(--line-strong);
  border-radius: 999px; padding: 6px 14px; color: var(--ink-2); white-space: nowrap; transition: all 0.2s;
}
.lang:hover { background: var(--pine); color: var(--paper); border-color: var(--pine); }

.burger { display: none; width: 42px; height: 42px; border: 1px solid var(--line-strong); border-radius: 6px; background: none; cursor: pointer; padding: 11px; }
.burger span { display: block; height: 1.5px; background: currentColor; margin: 4px 0; }


/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 28px; border-radius: 4px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.01em;
  border: 1px solid var(--pine); background: var(--pine); color: #fff;
  transition: background 0.22s, border-color 0.22s, transform 0.22s var(--ease);
}
.btn::after { content: "→"; font-size: 15px; transition: transform 0.25s var(--ease); }
.btn:hover { background: var(--pine-2); transform: translateY(-1px); }
.btn:hover::after { transform: translateX(4px); }
.btn-ghost { background: transparent; color: var(--pine); border-color: var(--line-strong); }
.btn-ghost:hover { background: transparent; border-color: var(--pine); }
.btn-ghost::after { content: none; }

/* ---------- hero (full-bleed image) ---------- */

.hero { position: relative; min-height: clamp(560px, 74vh, 760px); display: flex; align-items: flex-end; overflow: hidden; background: var(--pine); }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 35%; animation: heroIn 1.4s var(--ease) both; }
@keyframes heroIn { from { transform: scale(1.06); opacity: 0.6; } to { transform: scale(1); opacity: 1; } }

.hero-veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(32, 36, 30, 0.94) 0%, rgba(32, 36, 30, 0.86) 38%, rgba(32, 36, 30, 0.38) 68%, rgba(32, 36, 30, 0.10) 100%),
    linear-gradient(180deg, rgba(32, 36, 30, 0.55) 0%, rgba(32, 36, 30, 0.05) 32%, rgba(28, 32, 26, 0.72) 100%);
}

.hero-inner { position: relative; z-index: 2; width: 100%; padding-top: 140px; padding-bottom: clamp(44px, 6vw, 72px); }

.hero-copy { max-width: 700px; color: #fff; animation: fadeUp 1s var(--ease) 0.15s both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

.eyebrow {
  font-size: 10.5px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap;
  color: var(--leaf); margin-bottom: 24px; display: flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; opacity: 0.6; }
.hero .eyebrow { color: var(--grass-bright); opacity: 0.9; }

.hero h1 { font-size: clamp(2.3rem, 3.6vw, 3.2rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.12; color: #fff; max-width: 22ch; text-shadow: 0 2px 28px rgba(0, 0, 0, 0.35); }
.hero h1 em { font-style: normal; font-weight: 800; color: #d9cdb0; }

.hero .lede { margin-top: 24px; max-width: 46ch; font-size: clamp(1rem, 1.25vw, 1.12rem); color: rgba(255, 255, 255, 0.86); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero .btn { background: #fff; color: var(--pine); border-color: #fff; }
.hero .btn:hover { background: var(--sage); border-color: var(--sage); }
.hero .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.5); }
.hero .btn-ghost:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }

.hero-foot {
  position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 14px 40px;
  margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 13px; color: rgba(255, 255, 255, 0.8);
  animation: fadeUp 1s var(--ease) 0.35s both;
}
.hero-foot span { display: flex; align-items: center; gap: 9px; }
.hero-foot span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--grass-bright); }

/* ---------- stat strip ---------- */

.stat-band { background: var(--paper); border-bottom: 1px solid var(--line); }
.stat-band .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { padding: 44px 30px 44px 0; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; padding-right: 0; }
.stat:not(:first-child) { padding-left: 30px; }
.stat .n { font-size: clamp(1.9rem, 3vw, 2.6rem); font-weight: 600; letter-spacing: -0.04em; color: var(--pine); line-height: 1; }
.stat .l { font-size: 12px; letter-spacing: 0.04em; color: var(--muted); margin-top: 10px; }

/* ---------- sections ---------- */

.section { padding-top: clamp(72px, 9vw, 128px); padding-bottom: clamp(72px, 9vw, 128px); }
.section.paper-2 { background: var(--paper-2); }
.section.pine { background: var(--pine); color: #fff; }
.section.pine .section-head { border-bottom-color: var(--line-light); }
.section.pine .section-head p { color: rgba(255, 255, 255, 0.65); }

.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 48px; margin-bottom: clamp(40px, 5vw, 64px); padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.section-head h2 { font-size: clamp(1.9rem, 3.2vw, 2.6rem); font-weight: 800; letter-spacing: -0.035em; }
.section-head p { max-width: 40ch; margin: 0; font-size: 15px; color: var(--muted); line-height: 1.6; }

/* ---------- products ---------- */

.products { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }

.pcard { background: var(--white); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; display: flex; flex-direction: column; transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.25s; }
.pcard:hover { transform: translateY(-5px); box-shadow: 0 18px 44px rgba(18, 55, 42, 0.10); border-color: transparent; }
.pcard .ph { aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); }
.pcard .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ease); }
.pcard:hover .ph img { transform: scale(1.05); }
.pcard .body { padding: 24px 24px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pcard h3 { font-size: 1.08rem; letter-spacing: -0.02em; }
.pcard p { font-size: 14px; color: var(--ink-2); margin: 0; line-height: 1.6; }
.pcard .meta { margin-top: auto; padding-top: 16px; font-size: 11px; letter-spacing: 0.02em; color: var(--muted); }

/* ---------- industries ---------- */

.industries { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ind {
  display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 18px; align-items: center;
  background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 14px;
  transition: border-color 0.25s, transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.ind:hover { border-color: var(--sage); transform: translateY(-2px); box-shadow: 0 10px 26px rgba(58, 65, 54, 0.08); }
.ind img { width: 104px; height: 104px; object-fit: cover; border-radius: 4px; }
.ind h3 { font-size: 1rem; letter-spacing: -0.02em; margin-bottom: 4px; }
.ind p { font-size: 12.5px; color: var(--muted); margin: 0; line-height: 1.5; }

/* ---------- workshop split ---------- */

.split { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.split-copy h2 { font-size: clamp(1.9rem, 3.2vw, 2.7rem); margin-bottom: 20px; letter-spacing: -0.035em; }
.split-copy p { color: rgba(255, 255, 255, 0.72); font-size: 15.5px; }
.split-copy .eyebrow { color: var(--grass-bright); }

.factory { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.factory figure { margin: 0; }
.factory img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.factory figcaption { font-size: 12px; margin-top: 10px; color: rgba(255, 255, 255, 0.55); }

/* ---------- credentials ---------- */

.cred-figs { display: grid; gap: 14px; }
.cred-figs figure { margin: 0; }
.cred-figs img { width: 100%; border-radius: 4px; border: 1px solid var(--line); }
.cred-figs figcaption { font-size: 11.5px; color: var(--muted); margin-top: 8px; line-height: 1.5; }

.cred { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.cred figure { margin: 0; }
.cred figure img { width: 100%; border-radius: 4px; border: 1px solid var(--line); }
.cred figcaption { font-size: 12px; margin-top: 12px; color: var(--muted); }
.cred-list li { padding: 22px 0; border-top: 1px solid var(--line); display: grid; gap: 8px; }
.cred-list li:last-child { border-bottom: 1px solid var(--line); }
.cred-list .k { font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 10px; }
.cred-list .k::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--grass); flex: none; }
.cred-list .v { font-size: 14px; color: var(--ink-2); line-height: 1.65; }

/* ---------- steps ---------- */

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.step { counter-increment: step; padding-top: 24px; border-top: 1px solid var(--line-strong); }
.step::before { content: "0" counter(step); font-size: 12px; font-weight: 600; letter-spacing: 0.1em; color: var(--leaf); display: block; margin-bottom: 14px; }
.step h3 { font-size: 1.02rem; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--ink-2); margin: 0; line-height: 1.6; }

/* ---------- cta ---------- */

.band { background: var(--pine); color: #fff; padding: clamp(72px, 9vw, 120px) 0; }
.band h2 { font-size: clamp(2rem, 3.8vw, 3rem); max-width: 18ch; letter-spacing: -0.04em; }
.band p { max-width: 46ch; margin-top: 18px; color: rgba(255, 255, 255, 0.68); }
.band .btn { margin-top: 32px; background: var(--grass-bright); color: var(--pine); border-color: var(--grass-bright); }
.band .btn:hover { background: #d6dfc8; border-color: #d6dfc8; }
.band .btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.4); }
.band .btn-ghost:hover { background: rgba(255, 255, 255, 0.1); }

/* ---------- inner pages ---------- */

.page-head { padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(36px, 5vw, 56px); border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(2.1rem, 4.4vw, 3.2rem); max-width: 17ch; letter-spacing: -0.04em; }
.page-head p { margin-top: 22px; max-width: 54ch; color: var(--ink-2); }

.prose { max-width: 68ch; }
.prose h2 { font-size: 1.5rem; margin: 40px 0 12px; letter-spacing: -0.03em; }
.prose h3 { font-size: 1.05rem; margin: 26px 0 8px; }
.prose p, .prose li { color: var(--ink-2); }
.prose li { margin-bottom: 10px; padding-left: 18px; position: relative; }
.prose li::before { content: ""; position: absolute; left: 0; top: 0.72em; width: 6px; height: 1.5px; background: var(--leaf); }

.facts { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 28px 0; }
.facts th { text-align: left; width: 34%; padding: 13px 16px 13px 0; border-bottom: 1px solid var(--line); color: var(--muted); font-weight: 400; vertical-align: top; }
.facts td { padding: 13px 0; border-bottom: 1px solid var(--line); }

.spec-card { border: 1px solid var(--line); background: var(--white); border-radius: 6px; overflow: hidden; }
.spec-card .cap { font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; padding: 14px 20px; border-bottom: 1px solid var(--line); background: var(--pine); color: var(--grass-bright); font-weight: 600; }
.spec-row { display: flex; justify-content: space-between; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--line); font-size: 14px; }
.spec-row:last-child { border-bottom: 0; }
.spec-row dt { color: var(--muted); }
.spec-row dd { margin: 0; font-weight: 500; text-align: right; }

.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.spec { width: 100%; border-collapse: collapse; font-size: 14.5px; background: var(--white); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
table.spec th, table.spec td { text-align: left; padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.spec th { font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; background: var(--paper-2); color: var(--ink-2); }
table.spec tr:last-child td { border-bottom: 0; }
table.spec td.num { font-size: 13.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }

.product { padding: 56px 0; border-top: 1px solid var(--line); }
.product:first-of-type { border-top: 0; padding-top: 0; }
.product-head { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 24px 56px; align-items: start; margin-bottom: 26px; }
.product-head h3 { font-size: clamp(1.35rem, 2.1vw, 1.6rem); margin-bottom: 10px; letter-spacing: -0.03em; }
.product-head .desc { color: var(--ink-2); font-size: 15px; }
.product-shot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.notes { font-size: 13px; color: var(--muted); margin-top: 18px; }

.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; font-weight: 500; }
.field input, .field textarea, .field select {
  width: 100%; padding: 14px 16px; font: inherit; font-size: 15px; color: var(--ink);
  background: var(--white); border: 1px solid var(--line-strong); border-radius: 4px; transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--leaf); box-shadow: 0 0 0 3px rgba(63, 125, 82, 0.12); }
.field textarea { min-height: 130px; resize: vertical; }

.contact-list dt { font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; font-weight: 500; }
.contact-list dd { margin: 0 0 24px; font-size: 15.5px; }
.contact-list dd a { border-bottom: 1px solid var(--line-strong); }
.contact-list dd a:hover { border-bottom-color: var(--leaf); color: var(--leaf); }

.notice { border-left: 2px solid var(--leaf); background: var(--paper-2); padding: 20px 24px; font-size: 14px; color: var(--ink-2); margin: 26px 0; border-radius: 0 4px 4px 0; }

.grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card { background: var(--white); display: flex; flex-direction: column; min-height: 100%; }
.card .body { padding: 28px 28px 32px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card h3 { font-size: 1.1rem; letter-spacing: -0.02em; }
.card p { font-size: 14.5px; color: var(--ink-2); margin: 0; }

/* ---------- footer ---------- */

.site-footer { background: var(--pine); color: rgba(255, 255, 255, 0.72); padding: 72px 0 36px; font-size: 14px; }
.site-footer .brand { color: #fff; }
.site-footer .brand::before { background: var(--grass-bright); }
.site-footer .brand .cn { color: rgba(255, 255, 255, 0.55); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 48px; }
.site-footer h4 { font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255, 255, 255, 0.45); margin-bottom: 16px; font-weight: 600; }
.site-footer li { margin-bottom: 9px; }
.site-footer a:hover { color: var(--grass-bright); }
.footer-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line-light);
  display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: space-between;
  font-size: 12px; color: rgba(255, 255, 255, 0.45);
}

/* ---------- motion ---------- */

.reveal { opacity: 0; transform: translateY(20px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: var(--d, 0ms); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .hero-bg, .hero-copy, .hero-foot { opacity: 1 !important; transform: none !important; animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */

@media (max-width: 1024px) {
  .hero { min-height: 620px; }
  .products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .split { grid-template-columns: 1fr; }
  .cred { grid-template-columns: 1fr; }
  .stat-band .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat { border-bottom: 1px solid var(--line); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-child(odd) { padding-left: 0; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 26px; }
  .product-head { grid-template-columns: 1fr; gap: 12px; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .grid.cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  body:not(.home) { padding-top: 64px; }
  .header-inner { height: 64px; gap: 16px; }
  .nav {
    position: absolute; top: 64px; left: 0; right: 0; flex-direction: column; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 10px var(--pad) 18px; display: none; box-shadow: 0 18px 30px rgba(18, 55, 42, 0.08);
  }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--ink-2); }
  .nav a:last-child { border-bottom: 0; }
  .burger { display: block; margin-left: 6px; }
  .lang { margin-left: auto; }
  .hero { min-height: 92vh; align-items: flex-end; }
  .hero-inner { padding-top: 120px; }
  .hero-foot { gap: 12px 22px; font-size: 12px; }
  .products, .grid.cols-3, .grid.cols-2 { grid-template-columns: 1fr; }
  .factory { grid-template-columns: 1fr; }
  .stat-band .wrap { grid-template-columns: 1fr 1fr; }
  .stat { padding: 28px 18px 28px 0; }
  .stat:not(:first-child) { padding-left: 18px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero h1 { max-width: none; }
  .page-head h1 { max-width: none; }
  .steps { grid-template-columns: 1fr; }
}

/* ---------- product detail ---------- */

.product-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.pd-media img { width: 100%; border-radius: 6px; border: 1px solid var(--line); }
.pd-tag { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--leaf); font-weight: 700; margin-bottom: 10px; }
.pd-body h2 { font-size: 1.1rem; margin: 26px 0 12px; letter-spacing: -0.02em; }
.pd-body table.spec { margin-bottom: 6px; }
.pd-apps { display: grid; gap: 9px; margin-bottom: 26px; }
.pd-apps li { position: relative; padding-left: 18px; font-size: 14.5px; color: var(--ink-2); }
.pd-apps li::before { content: ""; position: absolute; left: 0; top: 0.62em; width: 6px; height: 6px; border-radius: 50%; background: var(--grass); }
a.pcard { color: inherit; text-decoration: none; }
@media (max-width: 900px) { .product-detail { grid-template-columns: 1fr; } }
/* ---------- capability chips ---------- */

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chip {
  font-size: 12px; letter-spacing: 0.02em; padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.28); border-radius: 999px;
  color: #e8f0da; background: rgba(255, 255, 255, 0.06);
}
/* ---------- 1688 store link ---------- */

.foot-store { margin: 14px 0 0; font-size: 13px; }
.foot-store a { color: var(--grass-bright); border-bottom: 1px solid rgba(201, 227, 154, 0.45); padding-bottom: 1px; }
.foot-store a:hover { color: #fff; border-bottom-color: #fff; }
/* ---------- factory profile ---------- */

.profile { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.profile > div { background: var(--white); padding: 20px 22px; display: grid; gap: 6px; }
.profile .pk { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.profile .pv { font-size: 15px; font-weight: 600; color: var(--pine); letter-spacing: -0.01em; }
@media (max-width: 1024px) { .profile { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .profile { grid-template-columns: 1fr; } }

/* ---------- image protection (best effort) ---------- */

img, .hero-bg, .pd-media img {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
  user-drag: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  pointer-events: none;
}
.hero-bg { pointer-events: none; }

/* ---------- 1688 store button + strip ---------- */

.store-btn {
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em;
  padding: 7px 13px; border-radius: 999px;
  background: var(--pine); color: #fff; border: 1px solid var(--pine);
  white-space: nowrap; transition: background .2s, border-color .2s;
}
.store-btn:hover { background: var(--leaf); border-color: var(--leaf); }

.store-strip {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: 6px;
  padding: 22px 26px; margin: 26px 0 8px;
}
.store-strip strong { display: block; font-size: 1rem; letter-spacing: -0.02em; }
.store-strip span { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; }
.store-strip .btn { margin: 0; }
@media (max-width: 720px) { .store-btn { display: none; } }
/* ---------- catalogue ---------- */

.cat-title { font-size: 1.1rem; margin: 38px 0 14px; letter-spacing: -0.02em; padding-bottom: 8px; border-bottom: 1px solid var(--line-strong); }
.cat-title:first-of-type { margin-top: 0; }

.store-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.store-actions .btn { padding: 12px 20px; }

/* 5-up product grid for the home page (10 cards = two clean rows) */
@media (min-width: 1201px) {
  .products.grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
  .products.grid-5 .pcard h3 { font-size: 1rem; }
  .products.grid-5 .pcard p { font-size: 13px; }
  .products.grid-5 .pcard .meta { font-size: 10px; }
}
@media (min-width: 1025px) and (max-width: 1200px) {
  .products.grid-5 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* mobile pass */
picture { display: contents; }

@media (max-width: 760px) {
  /* hero: shorter, readable, workshop photo */
  .hero { min-height: 68vh; }
  .hero-bg { object-position: 62% 34%; }
  .hero-inner { padding-top: 84px; padding-bottom: 30px; }
  .hero h1 { font-size: clamp(1.85rem, 7.6vw, 2.35rem); line-height: 1.16; }
  .hero-copy { max-width: none; }
  .hero .lede { font-size: 14.5px; line-height: 1.7; margin-top: 16px; }
  .hero-actions { margin-top: 22px; gap: 10px; }
  .hero-actions .btn { padding: 13px 20px; font-size: 13px; }
  .hero-foot { margin-top: 24px; padding-top: 16px; gap: 7px 16px; font-size: 11.5px; }

  /* tables become stacked cards */
  table.spec { border: 0; background: transparent; }
  table.spec thead { display: none; }
  table.spec, table.spec tbody, table.spec tr, table.spec td { display: block; width: 100%; }
  table.spec tr {
    background: var(--white); border: 1px solid var(--line); border-radius: 8px;
    padding: 14px 16px; margin-bottom: 10px;
  }
  table.spec td { border: 0; padding: 2px 0; }
  table.spec td:first-child { font-weight: 700; font-size: 15px; letter-spacing: -0.01em; }
  table.spec td:not(:first-child) { font-size: 13px; color: var(--ink-2); }
  table.spec td.num { white-space: normal; font-size: 13px; }
  table.spec td a { display: inline-block; padding: 7px 0; font-weight: 600; color: var(--leaf); }

  /* three-column catalogue rows: name + link on one line, spec under it */
  table.spec tr:has(> td:nth-child(3)) { display: grid; grid-template-columns: 1fr auto; column-gap: 14px; row-gap: 2px; }
  table.spec tr:has(> td:nth-child(3)) > td:nth-child(1) { grid-column: 1; grid-row: 1; }
  table.spec tr:has(> td:nth-child(3)) > td:nth-child(2) { grid-column: 1; grid-row: 2; }
  table.spec tr:has(> td:nth-child(3)) > td:nth-child(3) { grid-column: 2; grid-row: 1 / span 2; align-self: center; text-align: right; }
  table.spec tr:has(> td:nth-child(3)) > td:nth-child(3) a { padding: 4px 0; }

  /* chapter heads: number above, text below */
  .chapter { grid-template-columns: 1fr; gap: 8px; padding-top: 18px; margin-bottom: 26px; }
  .chapter .ch-num { padding-top: 0; font-size: 11px; }
  .chapter h2 { font-size: clamp(1.5rem, 6vw, 1.9rem); }
  .chapter p { font-size: 13.5px; }

  /* profile grid: two columns reads better than one on a phone */
  .profile { grid-template-columns: 1fr 1fr; }
  .profile > div { padding: 16px; }
  .profile .pv { font-size: 14px; }

  /* cards */
  .pcard .ph { aspect-ratio: 4 / 3; }
  .pcard .body { padding: 16px 16px 20px; }
  .pcard h3 { font-size: 1rem; }

  /* section rhythm */
  .section { padding-top: 48px; padding-bottom: 48px; }
  .section-head { margin-bottom: 26px; padding-bottom: 16px; }
  .section-head h2 { font-size: clamp(1.5rem, 6vw, 1.9rem); }
  .section-head p { font-size: 13.5px; }

  /* store strip + cta */
  .store-strip { padding: 18px; }
  .band h2 { font-size: clamp(1.5rem, 6.4vw, 2rem); }

  /* footer */
  .site-footer { padding: 44px 0 28px; }
  .footer-bottom { font-size: 11px; }
}
