/* ============================================================
   HSY Clean — Design System
   Aesthetic: technical document / precision instrument
   Rule set: flat, thin rules, tabular numerals, no decoration
   ============================================================ */

:root {
  /* ink */
  --ink:        #12161A;
  --ink-2:      #3E474F;
  --ink-3:      #6A7580;
  --ink-4:      #9AA3AC;

  /* surface */
  --bg:         #FFFFFF;
  --bg-2:       #F7F8F9;
  --bg-3:       #EFF1F3;
  --bg-ink:     #12161A;

  /* line */
  --line:       #E4E7EA;
  --line-2:     #CBD1D7;
  --line-3:     #A8B1B9;

  /* signal */
  --accent:     #0E6E62;
  --accent-2:   #12A594;
  --accent-bg:  #EAF5F3;
  --warn:       #9A3412;

  /* geometry */
  --w:          1240px;
  --w-read:     760px;
  --r:          3px;

  /* type */
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
          "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", "Cascadia Mono",
          Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  font-feature-settings: "tnum" 1, "cv05" 1;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }

a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid var(--line-2);
  transition: border-color .15s, color .15s;
}
a:hover { border-bottom-color: var(--accent); color: var(--accent); }

::selection { background: var(--accent); color: #fff; }

/* ---------- layout ---------- */

.wrap {
  width: 100%;
  max-width: var(--w);
  margin: 0 auto;
  padding: 0 32px;
}
@media (max-width: 720px) { .wrap { padding: 0 20px; } }

.band { padding: 96px 0; }
.band--tight { padding: 64px 0; }
.band--2 { background: var(--bg-2); }
.band--ink { background: var(--bg-ink); color: #fff; }
@media (max-width: 720px) {
  .band { padding: 64px 0; }
  .band--tight { padding: 44px 0; }
}

.grid { display: grid; gap: 32px; }
.grid > * { min-width: 0; }
.g-2 { grid-template-columns: repeat(2, 1fr); }
.g-3 { grid-template-columns: repeat(3, 1fr); }
.g-4 { grid-template-columns: repeat(4, 1fr); }
.g-2-1 { grid-template-columns: 2fr 1fr; }
.g-1-2 { grid-template-columns: 1fr 2fr; }
@media (max-width: 900px) {
  .g-2, .g-3, .g-4, .g-2-1, .g-1-2 { grid-template-columns: 1fr; }
}

/* ---------- typography ---------- */

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-wrap: balance;
}

h1 { font-size: clamp(32px, 4.3vw, 54px); letter-spacing: -0.035em; }
h2 { font-size: clamp(26px, 3.2vw, 38px); letter-spacing: -0.03em; }
h3 { font-size: 20px; letter-spacing: -0.01em; }
h4 { font-size: 16px; letter-spacing: 0; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

.lead {
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink-2);
  max-width: 62ch;
}
@media (max-width: 720px) { .lead { font-size: 17px; } }

.eyebrow {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}
.band--ink .eyebrow { color: var(--accent-2); }

.muted { color: var(--ink-3); }
.small { font-size: 13.5px; line-height: 1.6; }
.tiny  { font-size: 12px; line-height: 1.5; }

.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.nowrap { white-space: nowrap; }

/* ---------- header ---------- */

.top {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.top__in {
  display: flex;
  align-items: center;
  gap: 40px;
  height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  border: 0;
  flex-shrink: 0;
}
.brand:hover { border: 0; color: inherit; }
.brand__mark {
  width: 30px; height: 30px;
  border-radius: 2px;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .02em;
  flex-shrink: 0;
}
.brand__txt { line-height: 1.2; }
.brand__name { font-size: 15px; font-weight: 650; letter-spacing: -0.01em; }
.brand__sub {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-top: 1px;
}

.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a {
  border: 0;
  font-size: 14px;
  color: var(--ink-2);
  white-space: nowrap;
}
.nav a:hover, .nav a[aria-current] { color: var(--ink); }
.nav a[aria-current] { font-weight: 600; }
@media (max-width: 960px) { .nav { display: none; } }

.lang {
  display: flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  overflow: hidden;
  flex-shrink: 0;
}
.lang a {
  border: 0;
  padding: 5px 11px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .06em;
  color: var(--ink-3);
  line-height: 1.5;
}
.lang a.on { background: var(--ink); color: #fff; }
.lang a:hover { color: var(--ink); }
.lang a.on:hover { color: #fff; }

/* ---------- hero ---------- */

.hero {
  padding: 84px 0 0;
  border-bottom: 1px solid var(--line);
}
.hero h1 { max-width: 21ch; }
.hero .lead { margin-top: 24px; }

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0 32px;
  margin-top: 40px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--ink-3);
}
.hero__meta b { color: var(--ink); font-weight: 600; }

/* figures */
.hero__fig {
  margin: 40px 0 -1px;
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: var(--r) var(--r) 0 0;
  overflow: hidden;
  background: var(--bg-2);
  position: relative;
}
.hero__fig img { width: 100%; height: clamp(260px, 34vw, 440px); object-fit: cover; }

.figcap {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 11px 16px;
  border-top: 1px solid var(--line);
  background: #fff;
  font-size: 12px;
  color: var(--ink-3);
}
.figcap b {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  flex-shrink: 0;
}

/* ---------- stat ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
@media (max-width: 900px) { .stats { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .stats { grid-template-columns: 1fr; } }

.stat {
  padding: 30px 28px;
  border-right: 1px solid var(--line);
}
.stat:last-child { border-right: 0; }
@media (max-width: 900px) {
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .stat { border-right: 0; border-bottom: 1px solid var(--line); }
  .stat:last-child { border-bottom: 0; }
}
.stat__n {
  font-family: var(--mono);
  font-size: clamp(28px, 3.4vw, 38px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}
.stat__n i {
  font-style: normal;
  font-size: .5em;
  color: var(--ink-3);
  font-weight: 500;
  margin-left: 3px;
  letter-spacing: 0;
}
.stat__l {
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-3);
  line-height: 1.45;
}

/* ---------- spec table ---------- */

.tbl-wrap {
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: auto;
  background: #fff;
  -webkit-overflow-scrolling: touch;
}
.tbl-wrap--flush { border-left: 0; border-right: 0; border-radius: 0; }

table.spec {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  min-width: 720px;
}
table.spec thead th {
  position: sticky;
  top: 0;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line-2);
  padding: 11px 12px;
  text-align: left;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
  z-index: 2;
}
table.spec tbody td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
  white-space: nowrap;
}
table.spec tbody tr:last-child td { border-bottom: 0; }
table.spec tbody tr:hover { background: #FAFBFB; }
table.spec td.n { font-family: var(--mono); font-variant-numeric: tabular-nums; }
table.spec td.model {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 13px;
  position: sticky;
  left: 0;
  background: #fff;
  z-index: 1;
}
table.spec tbody tr:hover td.model { background: #FAFBFB; }
table.spec tbody tr.hl td { background: var(--accent-bg); }
table.spec tbody tr.hl td.model { background: var(--accent-bg); }
table.spec .tag {
  display: inline-block;
  padding: 1px 7px;
  border-radius: 2px;
  background: var(--bg-3);
  color: var(--ink-2);
  font-size: 11px;
  font-family: var(--mono);
  letter-spacing: .03em;
}
table.spec .tag--acc { background: var(--accent-bg); color: var(--accent); }

/* ---------- cards ---------- */

.card {
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 28px;
  background: #fff;
  height: 100%;
}
.card--2 { background: var(--bg-2); }
.card h3 { margin-bottom: 10px; }
.card p { font-size: 14.5px; color: var(--ink-2); }

.card__num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .1em;
  color: var(--accent);
  margin-bottom: 14px;
  display: block;
}

/* ---------- numbered list ---------- */

.steps { counter-reset: s; }
.step {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 0 20px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step__n {
  counter-increment: s;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-4);
  padding-top: 3px;
}
.step__n::before { content: "0" counter(s); }
.step h3 { font-size: 17px; margin-bottom: 6px; }
.step p { font-size: 14.5px; color: var(--ink-2); margin: 0; }

/* ---------- quote / callout ---------- */

.quote {
  border-left: 2px solid var(--accent);
  padding: 4px 0 4px 22px;
  margin: 28px 0;
  font-size: 17px;
  color: var(--ink);
  line-height: 1.55;
}
.quote--mono {
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.7;
  background: var(--bg-2);
  border-left-color: var(--line-3);
  padding: 18px 22px;
  overflow-x: auto;
  white-space: pre-wrap;
}

.note {
  border: 1px solid var(--line-2);
  border-left: 3px solid var(--warn);
  background: #FDFAF7;
  padding: 16px 20px;
  border-radius: 0 var(--r) var(--r) 0;
  font-size: 13.5px;
  color: var(--ink-2);
}
.note b { color: var(--warn); }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  border-radius: var(--r);
  font-size: 14.5px;
  font-weight: 550;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: #fff;
  border-bottom-width: 1px;
  transition: background .15s, color .15s;
  white-space: nowrap;
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn--light { background: #fff; color: var(--ink); border-color: #fff; }
.btn--light:hover { background: var(--accent-2); border-color: var(--accent-2); color: #fff; }
.btn__arw { font-family: var(--mono); font-size: 13px; opacity: .6; }

.btnrow { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- svg product drawings ---------- */

.dwg {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: #fff;
  padding: 24px;
}
.dwg svg { width: 100%; height: auto; }
.dwg text { font-family: var(--mono); }

/* A dimensioned drawing has to stay legible. Below this width the figures
   would drop under 6 px, so the sheet scrolls sideways instead of shrinking
   — the way a drawing is read on a phone in every shop I have been in. */
@media (max-width: 760px) {
  .dwg {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 12px;
  }
  .dwg svg { min-width: 620px; }
}

/* ---------- footer ---------- */

.foot {
  border-top: 1px solid var(--line);
  padding: 64px 0 40px;
  background: var(--bg-2);
  font-size: 13.5px;
  color: var(--ink-2);
}
.foot__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
}
@media (max-width: 860px) { .foot__grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 520px) { .foot__grid { grid-template-columns: 1fr; } }
.foot h4 {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-4);
  margin-bottom: 14px;
  font-weight: 600;
}
.foot a { border: 0; display: block; margin-bottom: 7px; color: var(--ink-2); }
.foot a:hover { color: var(--accent); }
.foot__legal {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
  font-size: 11.5px;
  color: var(--ink-4);
  line-height: 1.6;
}
.foot__legal p { margin: 0; max-width: 62ch; }

/* ---------- image placeholder (until photos arrive) ---------- */

.ph {
  position: relative;
  background: var(--bg-2);
  border: 1px dashed var(--line-2);
  border-radius: var(--r);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 30px 26px;
  color: var(--ink-4);
  min-height: 220px;
}
.ph b {
  display: block;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 9px;
  font-weight: 600;
}
.ph span { font-size: 13px; line-height: 1.6; max-width: 36ch; display: block; }
/* the filename the slot is waiting for — visible so nobody has to guess */
.ph__slug {
  display: inline-block;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .04em;
  color: var(--accent);
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: 2px;
  padding: 2px 8px;
}
.ph--video { min-height: 320px; background: #FAFBFC; }

/* ---------- filled media slots ---------- */

.shot { margin: 0; }
.shot img,
.shot video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 2px;
  background: var(--bg-3);
}
.shot img { aspect-ratio: 4 / 3; object-fit: cover; }
.shot--wide video { aspect-ratio: 16 / 9; object-fit: cover; }
.shot figcaption {
  margin-top: 9px;
  font-size: 11.5px;
  line-height: 1.5;
  color: var(--ink-3);
}
.shot figcaption b {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 3px;
  font-weight: 600;
}

/* ---------- misc ---------- */

.sec-head { margin-bottom: 40px; max-width: 74ch; }
.sec-head h2 { margin-bottom: 14px; }
.sec-head p { color: var(--ink-2); font-size: 16px; }

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

.split-note {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.split-note > div { background: #fff; padding: 24px; }
@media (max-width: 760px) { .split-note { grid-template-columns: 1fr; } }

.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; font-size: 13.5px; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; font-family: var(--mono); font-variant-numeric: tabular-nums; }

.tagrow { display: flex; flex-wrap: wrap; gap: 8px; }
.pill {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .04em;
  padding: 4px 10px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  color: var(--ink-2);
  white-space: nowrap;
}

.band--ink .muted { color: #8A939B; }
.band--ink a { border-bottom-color: #3A4249; }
.band--ink a:hover { color: var(--accent-2); border-bottom-color: var(--accent-2); }

/* ---------- dark hero ---------- */

.hero--ink {
  background: var(--bg-ink);
  color: #fff;
  padding: 92px 0 0;
  border-bottom: 0;
  position: relative;
  overflow: hidden;
}
.hero--ink::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255,255,255,.032) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,.032) 1px, transparent 1px);
  background-size: 56px 56px;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, #000 0%, transparent 72%);
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 72%);
}
.hero--ink .wrap { position: relative; z-index: 1; }
.hero--ink h1 { color: #fff; max-width: 21ch; }
.hero--ink .lead { color: #A9B3BB; }
.hero--ink .hero__meta {
  border-top: 1px solid #262E35;
  color: #7E8890;
  margin-top: 52px;
  padding: 20px 0 26px;
}
.hero--ink .hero__meta b { color: #fff; font-weight: 550; }

/* hero inside dark band, no side padding issues */
.hero--ink + .stats { border-top: 0; }

/* ---------- figure with unified frame ---------- */
.dwg-fig {
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: #fff;
}
.dwg-fig .dwg { border: 0; border-radius: 0; }
.dwg-fig .figcap { border-top: 1px solid var(--line); }
.ph--flush { border: 0; border-radius: 0; }

/* tables inside cards must not blow out the grid column */
.card .tbl-wrap { max-width: 100%; }
.card table.spec { min-width: 460px; }
.card:nth-child(2) table.spec { min-width: 460px; }

/* ---------- compact model list inside cards ---------- */
.mlist { list-style: none; margin: 0; padding: 0; }
.mlist li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
}
.mlist li:last-child { border-bottom: 1px solid var(--line); }
.mlist .mid {
  font-family: var(--mono);
  font-weight: 600;
  font-size: 12.5px;
  width: 74px;
  flex-shrink: 0;
  letter-spacing: -0.01em;
}
.mlist .mtip { font-size: 12px; color: var(--ink-3); flex: 1; min-width: 0; }
.mlist .mnum {
  font-family: var(--mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex-shrink: 0;
}

/* ============================================================
   CHINESE TYPOGRAPHY
   Latin rules do not transfer: negative tracking crushes CJK,
   ch-based measures break the line too early, and 16px is a
   Latin reading size, not a Chinese one.
   ============================================================ */

html[lang="zh-CN"] body {
  font-size: 17px;
  line-height: 1.85;
  letter-spacing: 0.01em;
}
html[lang="zh-CN"] h1 {
  letter-spacing: -0.005em;
  font-size: clamp(28px, 3.6vw, 46px);
  line-height: 1.28;
}
html[lang="zh-CN"] h2 {
  letter-spacing: 0;
  line-height: 1.35;
}
html[lang="zh-CN"] h3 { letter-spacing: 0.01em; line-height: 1.45; }
html[lang="zh-CN"] h4 { letter-spacing: 0.01em; }

html[lang="zh-CN"] .lead {
  font-size: 17.5px;
  line-height: 1.85;
  letter-spacing: 0.015em;
}
html[lang="zh-CN"] .small { font-size: 14.5px; line-height: 1.8; }
html[lang="zh-CN"] .tiny  { font-size: 13px; line-height: 1.75; }

html[lang="zh-CN"] .hero h1,
html[lang="zh-CN"] .hero--ink h1 { max-width: 15em; }

html[lang="zh-CN"] .eyebrow {
  letter-spacing: 0.1em;
  font-size: 11.5px;
}
html[lang="zh-CN"] .stat__l { font-size: 14px; line-height: 1.55; }
html[lang="zh-CN"] .stat__n i { font-size: .42em; }
html[lang="zh-CN"] .card p { font-size: 15px; line-height: 1.8; }
html[lang="zh-CN"] table.spec { font-size: 13px; }
html[lang="zh-CN"] .note { font-size: 14.5px; line-height: 1.8; }
html[lang="zh-CN"] .quote { font-size: 17.5px; line-height: 1.8; }
html[lang="zh-CN"] .foot { font-size: 14px; }
html[lang="zh-CN"] .figcap { font-size: 12.5px; }
html[lang="zh-CN"] .mlist .mtip { font-size: 13px; }
html[lang="zh-CN"] .btn { letter-spacing: 0.02em; }

/* ---------- mobile: table scroll affordance ---------- */
.scroll-hint {
  display: none;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-4);
  padding: 0 0 7px 2px;
}
@media (max-width: 820px) {
  .scroll-hint { display: block; }
  .tbl-wrap { -webkit-overflow-scrolling: touch; }
}

/* tight numbers inside card lists need a little air */
.mlist .mnum + .mnum { margin-left: 4px; }
