@font-face {
  font-family: "Inter Tight";
  src: url("../fonts/InterTight-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/IBMPlexSans-Variable.ttf") format("truetype");
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Noto Sans CJK SC";
  src: url("../fonts/NotoSansCJK-Regular.ttc") format("truetype");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --bg-muted: #f4f5f7;
  --ink: #0c1116;
  --muted: #5a6168;
  --line: #e6e8eb;
  --line-strong: #c9ced4;
  --accent: #003d66;
  --accent-hover: #002847;
  --on-dark: #f3f5f7;
  --footer: #0c1116;
  --header-h: 68px;
  --wrap: 1200px;
  --gutter: 32px;
  --radius: 2px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: "IBM Plex Sans", "Noto Sans CJK SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4, .brand, .overline {
  font-family: "Inter Tight", "Noto Sans CJK SC", "Noto Sans SC", "PingFang SC", sans-serif;
  font-weight: 500;
  letter-spacing: -0.035em;
  line-height: 1.12;
  margin: 0;
}
.wrap { width: min(var(--wrap), calc(100% - var(--gutter) * 2)); margin: 0 auto; }

/* Header */
header.site {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.bar {
  display: flex;
  align-items: center;
  height: var(--header-h);
  gap: 36px;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  color: var(--ink);
  font-size: 20px;
  letter-spacing: -0.04em;
  text-decoration: none;
  flex: 0 0 auto;
}
.brand em { font-style: normal; font-weight: 400; color: var(--muted); letter-spacing: -0.03em; }
.brand:hover { text-decoration: none; }
nav.main { display: flex; align-items: center; gap: 2px; flex: 1; }
nav.main > a, nav.main > .has-mega > a {
  color: var(--ink);
  font-size: 14px;
  padding: 8px 12px;
  text-decoration: none;
  letter-spacing: -0.01em;
}
nav.main > a:hover, nav.main > .has-mega > a:hover { color: var(--accent); text-decoration: none; }
.has-mega { position: relative; }
.has-mega > a .chev { font-size: 9px; margin-left: 3px; opacity: 0.6; }
.mega {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-30%);
  width: min(860px, 80vw);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(12,17,22,0.10);
  padding: 22px 22px 16px;
  z-index: 90;
}
.has-mega:hover .mega, .has-mega:focus-within .mega { display: block; }
.mega-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.mega-card {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  align-items: center;
  padding: 8px;
  color: var(--ink);
  text-decoration: none;
  border: 1px solid transparent;
}
.mega-card:hover { background: var(--bg-muted); border-color: var(--line); text-decoration: none; }
.mega-card img { width: 92px; height: 64px; object-fit: cover; background: var(--bg-muted); }
.mega-card h4 { font-size: 14px; margin: 0 0 2px; }
.mega-card p { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.4; letter-spacing: 0; font-family: "IBM Plex Sans", "Noto Sans CJK SC", sans-serif; }
.mega-foot { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.utils { display: flex; align-items: center; gap: 16px; margin-left: auto; }
.lang-switch { font-size: 13px; color: var(--muted); }
.lang-switch a { color: var(--muted); }
.lang-switch a.on { color: var(--ink); font-weight: 500; }
.lang-switch .sep { margin: 0 6px; color: var(--line-strong); }
.burger { display: none; width: 40px; height: 40px; place-items: center; cursor: pointer; }
.burger span, .burger span:before, .burger span:after {
  display: block; width: 18px; height: 1.5px; background: var(--ink); position: relative; content: "";
}
.burger span:before { position: absolute; top: -6px; }
.burger span:after { position: absolute; top: 6px; }
.mobile-panel { display: none; }
#nav-toggle { display: none; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  font: 500 14px/1 "Inter Tight", "Noto Sans CJK SC", sans-serif;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  background: none;
  color: inherit;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { border-color: rgba(255,255,255,0.55); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,0.1); }
.btn-ghost-dark { border-color: var(--ink); color: var(--ink); }
.btn-ghost-dark:hover { background: var(--ink); color: #fff; }
.btn-sm { min-height: 36px; padding: 0 16px; font-size: 13px; }
.text-link { font-size: 14px; font-weight: 500; color: var(--accent); }
.text-link .arr { display: inline-block; transition: transform 0.15s; }
.text-link:hover .arr { transform: translateX(3px); }

/* Hero */
.hero {
  position: relative;
  min-height: 620px;
  max-height: 680px;
  height: 72vh;
  display: flex;
  align-items: flex-end;
  background: #1a222b center/cover no-repeat;
  color: #fff;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(8,12,18,0.78) 0%, rgba(8,12,18,0.50) 46%, rgba(8,12,18,0.22) 100%);
}
.hero .wrap { position: relative; z-index: 1; padding: 80px 0 72px; width: min(var(--wrap), calc(100% - var(--gutter) * 2)); }
.overline {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0.8;
}
.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  max-width: 14ch;
  margin: 12px 0 18px;
  color: #fff;
}
.hero .lead {
  max-width: 34em;
  font-size: 18px;
  line-height: 1.55;
  color: rgba(255,255,255,0.86);
  margin: 0 0 32px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Facts bar */
.facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.facts .fact {
  padding: 28px 28px 26px;
  border-right: 1px solid var(--line);
}
.facts .fact:last-child { border-right: 0; }
.facts .k { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; font-family: "Inter Tight", sans-serif; }
.facts .v { font-family: "Inter Tight", "Noto Sans CJK SC", sans-serif; font-size: 22px; letter-spacing: -0.03em; font-weight: 500; margin: 0; }

/* Sections */
.section { padding: 88px 0; }
.section-muted { background: var(--bg-muted); }
.section-dark { background: var(--footer); color: var(--on-dark); }
.section-dark .lede, .section-dark .overline { color: rgba(243,245,247,0.7); }
.section-head { max-width: 38em; margin-bottom: 40px; }
.section-head h2, .section h2 {
  font-size: clamp(1.8rem, 3vw, 2.55rem);
}
.lede { font-size: 17px; color: var(--muted); margin: 12px 0 0; max-width: 40em; }
.pagehead { padding: 56px 0 8px; }
.pagehead h1 { font-size: clamp(2.2rem, 4.5vw, 3.4rem); max-width: 18ch; }
.pagehead .lede { margin-top: 16px; }
.crumb { font-size: 13px; color: var(--muted); margin: 0 0 18px; }
.crumb a { color: var(--muted); }

/* Product / family cards */
.family-grid, .card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.family-tile, .prod-card, .app-card, .doc-card {
  background: #fff;
  color: inherit;
  text-decoration: none;
  display: flex;
  flex-direction: column;
}
.family-tile:hover, .prod-card:hover, .app-card:hover { text-decoration: none; }
.tile-img, .card-img {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #eceef0;
}
.tile-img img, .card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease; }
.family-tile:hover img, .prod-card:hover img { transform: scale(1.04); }
.tile-body, .card-body { padding: 18px 0 4px; }
.family-tile h3, .prod-card h3, .app-card h3 { font-size: 20px; margin: 0 0 6px; }
.kicker {
  display: block;
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 6px;
  font-family: "Inter Tight", sans-serif;
  font-weight: 500;
}
.tile-body p, .card-body p, .app-card p { margin: 0 0 14px; font-size: 14px; color: var(--muted); }

.industry-row { display: flex; flex-wrap: wrap; gap: 10px; }
.industry-item {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-size: 15px;
  text-decoration: none;
}
.industry-item:hover { border-color: var(--accent); color: var(--accent); text-decoration: none; }

/* Comparison / technical tables */
.table-scroll { overflow-x: auto; }
table.compare, table.specs {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  min-width: 520px;
}
table.compare th, table.compare td,
table.specs th, table.specs td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.compare thead th {
  font-family: "Inter Tight", "Noto Sans CJK SC", sans-serif;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -0.02em;
  border-bottom: 2px solid var(--ink);
  background: #fff;
}
table.compare tbody th, table.specs th {
  font-weight: 500;
  color: var(--muted);
  width: 28%;
  background: var(--bg-muted);
}
table.compare td:empty::before, table.specs td:empty::before {
  content: "";
}
.wide-fig { margin: 0 0 48px; }
.wide-fig img { width: 100%; max-height: 520px; object-fit: cover; object-position: center; background: #eceef0; }
.family-cover { width: 100%; margin: 0 0 8px; background: #e8eaec; }
.family-cover img { width: 100%; height: min(58vh, 560px); object-fit: cover; display: block; object-position: center; }

/* Model page */
.detail-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}
.detail-grid figure { margin: 0; background: var(--bg-muted); }
.detail-grid img { width: 100%; height: auto; object-fit: contain; max-height: 560px; background: #eceeef; }
.fact-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 28px; }
.chip-fact {
  border: 1px solid var(--line-strong);
  padding: 8px 12px;
  font-size: 13px;
}
.chip-fact b { display: block; font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 500; font-family: "Inter Tight", sans-serif; }
.subnav {
  position: sticky;
  top: var(--header-h);
  z-index: 40;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.subnav .wrap {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding: 0;
}
.subnav a {
  flex: 0 0 auto;
  padding: 14px 16px;
  font-size: 13px;
  color: var(--muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.subnav a:hover { color: var(--ink); }
.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.benefits h3 { font-size: 20px; margin: 0 0 10px; }
.benefits p { margin: 0; color: var(--muted); font-size: 15px; }

/* Documents */
.dl-row, .doc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.doc-row:last-child, .dl-row:last-child { border-bottom: 1px solid var(--line); }
.doc-row h3, .dl-row h3 { font-size: 18px; margin: 0 0 4px; }
.doc-row p, .dl-row p { margin: 0; color: var(--muted); font-size: 14px; }
.doc-meta { font-size: 12px; color: var(--muted); margin-top: 4px; letter-spacing: 0.04em; text-transform: uppercase; }

/* Applications */
.app-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px 28px; }
.app-card { padding-bottom: 8px; }
.scan-page { width: 100%; border: 1px solid var(--line); background: #fff; }

/* Certifications */
ul.certs { margin: 0 0 40px; padding: 0; list-style: none; display: grid; gap: 0; }
ul.certs li {
  padding: 18px 0;
  border-top: 1px solid var(--line);
  font-size: 16px;
}
ul.certs li:last-child { border-bottom: 1px solid var(--line); }
.cert-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.cert-grid img { width: 100%; height: 280px; object-fit: cover; object-position: top; border: 1px solid var(--line); background: #fff; }

/* Selector */
.filter-bar { margin-bottom: 20px; }
.filter-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
.filter-row .lbl { width: 110px; font-size: 13px; color: var(--muted); flex: 0 0 110px; }
.chip {
  border: 1px solid var(--line-strong);
  background: #fff;
  padding: 7px 12px;
  font-size: 13px;
  cursor: pointer;
  color: var(--ink);
  font-family: inherit;
}
.chip[aria-pressed="true"] { background: var(--accent); color: #fff; border-color: var(--accent); }
.result-list { display: flex; flex-direction: column; }
.result-row, .model-table a {
  display: grid;
  grid-template-columns: 0.9fr 1.4fr auto;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
}
.result-row:hover, .model-table a:hover { color: var(--accent); text-decoration: none; }
.result-list .result-row:last-child, .model-table a:last-child { border-bottom: 1px solid var(--line); }
.rn, .mn { font-family: "Inter Tight", "Noto Sans CJK SC", sans-serif; font-weight: 500; font-size: 16px; letter-spacing: -0.02em; }
.rb, .mb { font-size: 14px; color: var(--muted); }
.mm { font-size: 13px; color: var(--accent); white-space: nowrap; }
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li {
  padding: 12px 0 12px 28px;
  border-bottom: 1px solid var(--line);
  position: relative;
  font-size: 14px;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 0; top: 16px;
  width: 14px; height: 14px;
  border: 1px solid var(--line-strong);
}
.split { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 64px; align-items: start; }
.prose p { margin: 0 0 16px; font-size: 17px; max-width: 40em; }
.gallery { display: grid; grid-template-columns: 1.3fr 1fr; gap: 12px; }
.gallery img { width: 100%; height: 220px; object-fit: cover; background: #eceef0; }
.gallery img:first-child { height: 100%; min-height: 280px; grid-row: span 2; }

/* Form */
form.rfq { display: grid; gap: 4px; }
form.rfq label {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 8px;
  font-size: 13px;
  color: var(--muted);
  padding: 10px 0 6px;
  border-bottom: 1px solid var(--ink);
}
form.rfq label input, form.rfq label select, form.rfq label textarea {
  width: 100%;
  border: 0;
  padding: 6px 0 8px;
  font: 16px/1.4 "IBM Plex Sans", "Noto Sans CJK SC", sans-serif;
  background: transparent;
  color: var(--ink);
  outline: none;
}
form.rfq textarea { min-height: 120px; resize: vertical; }
.req { color: var(--accent); }
.form-msg { display: none; font-size: 14px; color: var(--accent); margin: 12px 0 0; }
.form-msg.show { display: block; }
.file-ctrl { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 0 10px; }
.file-ctrl input[type=file] {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.file-btn {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--ink);
  font: 500 13px/1 "Inter Tight", "Noto Sans CJK SC", sans-serif;
  color: var(--ink);
  cursor: pointer;
  background: #fff;
}
.file-btn:hover { background: var(--ink); color: #fff; }
.file-name { font-size: 13px; color: var(--muted); }
.contacts p { margin: 0 0 8px; }

/* FAQ */
dl.faq { margin: 0; }
dl.faq dt {
  font-family: "Inter Tight", "Noto Sans CJK SC", sans-serif;
  font-size: 20px;
  font-weight: 500;
  letter-spacing: -0.03em;
  padding: 28px 0 8px;
  border-top: 1px solid var(--line);
}
dl.faq dt:first-child { border-top: 0; }
dl.faq dd { margin: 0 0 12px; color: var(--muted); max-width: 46em; }

/* Footer */
footer { background: var(--footer); color: #c5c9ce; padding: 64px 0 32px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.2fr; gap: 36px; }
.foot-brand { display: block; font-family: "Inter Tight", sans-serif; font-size: 20px; color: #fff; letter-spacing: -0.03em; margin-bottom: 10px; }
footer h4 { color: #fff; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; margin: 0 0 14px; }
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { margin: 0 0 8px; }
footer a { color: #c5c9ce; }
footer a:hover { color: #fff; }
footer p { margin: 0 0 8px; font-size: 14px; }
.legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid #242a31; color: #8b9096; font-size: 12px; }

@media (max-width: 980px) {
  .family-grid, .card-grid, .app-grid, .benefits { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
  .facts .fact:nth-child(2) { border-right: 0; }
  .detail-grid, .split, .gallery { grid-template-columns: 1fr; }
  .gallery img, .gallery img:first-child { height: 240px; grid-row: auto; }
  .foot-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .cert-grid { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  :root { --gutter: 20px; --header-h: 60px; }
  nav.main { display: none; }
  .utils .btn { display: none; }
  .burger { display: grid; }
  #nav-toggle:checked ~ .mobile-panel {
    display: block;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 8px 20px 24px;
  }
  .mobile-panel a { display: block; padding: 10px 0; color: var(--ink); border-bottom: 1px solid var(--line); }
  .mobile-panel .grp { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); padding: 16px 0 6px; }
  .mobile-panel .sub { padding-left: 12px; font-size: 14px; }
  .hero { height: auto; min-height: 480px; max-height: 580px; }
  .hero h1 { font-size: 2.4rem; max-width: none; }
  .hero .wrap { padding: 56px 0 48px; }
  .section { padding: 56px 0; }
  .family-grid, .card-grid, .app-grid, .benefits, .facts { grid-template-columns: 1fr; }
  .facts .fact { border-right: 0; border-bottom: 1px solid var(--line); }
  .result-row, .model-table a { grid-template-columns: 1fr; gap: 4px; }
  .filter-row .lbl { width: 100%; flex: 1 0 100%; margin-bottom: 2px; }
  .foot-grid { grid-template-columns: 1fr; }
  .pagehead { padding-top: 32px; }
  .mega { display: none !important; }
  .family-cover img { height: 260px; }
  .cutaway { padding: 56px 0; }
  .cutaway-frame { padding: 16px 10px; }
  .cutaway-frame img { max-height: 420px; }
}

/* Cutaway / construction visualization */
.cutaway {
  background: #eceeef;
  padding: 96px 0;
}
.cutaway .section-head { margin-bottom: 36px; }
.cutaway-frame {
  background: linear-gradient(180deg, #f6f7f8 0%, #e8eaec 100%);
  padding: 36px 28px;
}
.cutaway-frame img {
  width: 100%;
  max-height: 720px;
  object-fit: contain;
  margin: 0 auto;
}
.family-tile .kicker { letter-spacing: 0.08em; }

/* CJK hero line breaks: ch is a Latin-0 width and splits words like 控制 */
html[lang^="zh"] .hero h1 { max-width: 10.2em; }


/* ---------- v6 craft: motion, focus, press, 3D stage ---------- */
:root {
  --ease-ui: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 180ms;
  --focus: #003d66;
}
html { scroll-padding-top: calc(var(--header-h) + 12px); }
::selection { background: #003d66; color: #fff; }
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}
.btn:focus-visible { outline-offset: 3px; }

header.site {
  transition: height var(--dur) var(--ease-ui), box-shadow var(--dur) var(--ease-ui), background var(--dur) var(--ease-ui);
  background: rgba(255,255,255,0.86);
  backdrop-filter: saturate(1.2) blur(16px);
  -webkit-backdrop-filter: saturate(1.2) blur(16px);
}
header.site.is-scrolled {
  box-shadow: 0 1px 0 rgba(12,17,22,0.06), 0 8px 24px rgba(12,17,22,0.04);
}

.btn {
  transition: background-color var(--dur) var(--ease-ui), color var(--dur) var(--ease-ui), border-color var(--dur) var(--ease-ui), transform 140ms var(--ease-ui), box-shadow var(--dur) var(--ease-ui);
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.98); }
.btn-primary { box-shadow: 0 1px 0 rgba(0,0,0,0.12); }
.btn-primary:hover { box-shadow: 0 2px 8px rgba(0,61,102,0.22); }
.file-btn { transition: background-color var(--dur) var(--ease-ui), color var(--dur) var(--ease-ui); }
.file-btn:active { transform: scale(0.98); }

.text-link { transition: color var(--dur) var(--ease-ui); }
.text-link .arr { transition: transform 180ms var(--ease-out); }

.mega {
  display: block;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-30%) translateY(-6px);
  transition: opacity var(--dur) var(--ease-ui), transform var(--dur) var(--ease-out), visibility 0s linear var(--dur);
}
.has-mega:hover .mega, .has-mega:focus-within .mega {
  display: block;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-30%) translateY(0);
  transition: opacity var(--dur) var(--ease-ui), transform var(--dur) var(--ease-out), visibility 0s;
}
.mega-card { transition: background-color var(--dur) var(--ease-ui), border-color var(--dur) var(--ease-ui); }

.burger span, .burger span:before, .burger span:after {
  transition: transform 200ms var(--ease-ui), opacity 160ms var(--ease-ui);
}
header.site:has(#nav-toggle:checked) .burger span { background: transparent; }
header.site:has(#nav-toggle:checked) .burger span:before { transform: translateY(6px) rotate(45deg); }
header.site:has(#nav-toggle:checked) .burger span:after { transform: translateY(-6px) rotate(-45deg); }
.mobile-panel {
  display: block !important;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 280ms var(--ease-out), opacity 200ms var(--ease-ui);
}
#nav-toggle:checked ~ .mobile-panel,
header.site:has(#nav-toggle:checked) + .mobile-panel { }
#nav-toggle:checked ~ .mobile-panel {
  display: block !important;
  max-height: 80vh;
  opacity: 1;
  overflow: auto;
}

@media (min-width: 861px) {
  .mobile-panel, #nav-toggle:checked ~ .mobile-panel { display: none !important; max-height: none; opacity: 0; }
}

.family-tile, .prod-card, .app-card, .industry-item {
  transition: border-color var(--dur) var(--ease-ui), color var(--dur) var(--ease-ui);
}
.tile-img img, .card-img img, .family-cover img {
  transition: transform 0.7s var(--ease-out);
}
img.will-fade { opacity: 0; transition: opacity 500ms var(--ease-out); }
img.will-fade.is-loaded, img.is-loaded { opacity: 1; }

.can-motion main.page {
  animation: page-in 480ms var(--ease-out) both;
}
@keyframes page-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

nav.subnav a { position: relative; transition: color var(--dur) var(--ease-ui); }
nav.subnav a.is-active { color: var(--ink); }
nav.subnav a.is-active::after,
nav.subnav a:hover::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--accent);
}
form.rfq label { transition: border-color var(--dur) var(--ease-ui); }
form.rfq label:focus-within { border-bottom-color: var(--accent); }
form.rfq label input:focus-visible,
form.rfq label select:focus-visible,
form.rfq label textarea:focus-visible { outline: none; }
form.rfq.is-sent > *:not(.form-msg) { display: none; }
form.rfq.is-sent .form-msg {
  display: block;
  font-family: "Inter Tight", "Noto Sans CJK SC", sans-serif;
  font-size: 28px;
  letter-spacing: -0.03em;
  color: var(--ink);
  padding: 24px 0 48px;
}

h1, .hero h1 { text-wrap: balance; }

/* 3D + instance photos */
.viz-section { padding: 48px 0 24px; }
.viz-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 28px;
  align-items: stretch;
}
.viz-stage, .sg-viewer {
  position: relative;
  background: #eceeef;
  min-height: 520px;
}
.sg-viewer { display: flex; flex-direction: column; height: 100%; min-height: 520px; }
.sg-canvas { flex: 1; min-height: 480px; position: relative; }
.sg-canvas canvas { width: 100%; height: 100%; display: block; touch-action: none; }
.sg-toolbar {
  display: flex;
  gap: 0;
  justify-content: center;
  padding: 10px 12px 16px;
  background: #eceeef;
}
.sg-toolbar button {
  appearance: none;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--muted);
  font: 500 12px/1 "Inter Tight", "Noto Sans CJK SC", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 10px 16px;
  min-height: 36px;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease-ui), color var(--dur) var(--ease-ui), border-color var(--dur) var(--ease-ui);
}
.sg-toolbar button:first-child { border-right: 0; }
.sg-toolbar button.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.sg-toolbar button:active { transform: scale(0.98); }
.sg-fallback {
  background: #eceeef center/contain no-repeat;
  min-height: 420px;
}
.viz-photos { display: flex; flex-direction: column; gap: 12px; }
.viz-photos figure { margin: 0; background: var(--bg-muted); flex: 1; }
.viz-photos img { width: 100%; height: 100%; object-fit: cover; max-height: 560px; }
.viz-photos figcaption { display: none; } /* no defensive labels */

@media (max-width: 860px) {
  .viz-grid { grid-template-columns: 1fr; }
  .sg-viewer, .viz-stage, .sg-canvas { min-height: 380px; }
  .sg-canvas { min-height: 340px; }
  .viz-photos img { max-height: 280px; }
  .can-motion main.page { animation: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
  .can-motion main.page { animation: none; }
  .tile-img img, .card-img img { transition: none; }
  .mega { transition: none; }
}
