/* ============================================================
   AIEN Global Site — base stylesheet
   Palette: graphite steel / kraft paper / safety amber
   ============================================================ */

:root {
  --ink: #12191f;
  --ink-2: #1c262e;
  --steel: #2b3a44;
  --rack: #6e7b85;
  --paper: #f4f1ea;
  --paper-2: #e8e3d8;
  --amber: #e0a02e;
  --amber-deep: #b97e17;
  --kraft: #c2a275;
  --line: rgba(18, 25, 31, 0.14);
  --line-dark: rgba(244, 241, 234, 0.16);
  --max: 1200px;
  --pad: clamp(1.15rem, 4vw, 3.5rem);
  --display: "Barlow Condensed", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
  --body: "Source Sans 3", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "PingFang SC", "Microsoft YaHei", monospace;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.62;
  text-wrap: pretty;
  overflow-wrap: break-word;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: rgba(224, 160, 46, 0.22);
}

body.nav-open { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.04;
  text-wrap: balance;
}

h1 { font-size: clamp(2.35rem, 5.4vw, 4.4rem); font-weight: 700; }
h2 { font-size: clamp(1.65rem, 3vw, 2.55rem); }
h3 { font-size: clamp(1.15rem, 1.7vw, 1.4rem); }

p { margin: 0 0 1rem; max-width: 62ch; }

.mono {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rack);
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-inline: var(--pad);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 1rem; top: -100px;
  z-index: 20;
  background: var(--amber);
  color: var(--ink);
  padding: 0.65rem 1rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.skip-link:focus { top: 1rem; }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 3px;
}

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

.topbar {
  background: var(--ink);
  color: var(--paper-2);
  border-bottom: 1px solid rgba(244, 241, 234, 0.08);
}

.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 34px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.62);
}

.topbar-inner .tick {
  display: inline-block;
  width: 7px; height: 7px;
  margin-right: 0.55rem;
  background: var(--amber);
  vertical-align: 1px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(244, 241, 234, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  font-family: var(--display);
  font-size: 1.14rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.brand-mark {
  width: 22px; height: 22px;
  background: var(--amber);
  position: relative;
  flex: none;
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 6px;
  background: var(--ink);
}

.brand > span > span:first-child { white-space: nowrap; }

.brand-sub {
  display: block;  font-family: var(--mono);
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  color: var(--rack);
  margin-top: 2px;
}

.nav-main { display: flex; align-items: center; min-width: 0; }

.nav-panel {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-width: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  font-size: 0.93rem;
  font-weight: 500;
  padding-block: 0.35rem;
  border-bottom: 2px solid transparent;
  transition: border-color 0.18s ease, color 0.18s ease;
}
.nav-links a:hover { border-bottom-color: var(--ink); }
.nav-links a[aria-current="page"] { border-bottom-color: var(--amber); }

.lang-switch {
  display: flex;
  gap: 0.15rem;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.lang-switch a {
  padding: 0.3rem 0.42rem;
  color: var(--rack);
  border: 1px solid transparent;
}
.lang-switch a:hover { color: var(--ink); border-color: var(--line); }
.lang-switch a[aria-current="true"] { color: var(--ink); background: var(--paper-2); border-color: var(--line); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.72rem 1.15rem;
  min-height: 44px;
  background: var(--ink);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 0.73rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--ink);
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}
.btn:hover { background: var(--amber); border-color: var(--amber); color: var(--ink); }

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: rgba(18, 25, 31, 0.4);
}
.btn-ghost:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }

.btn-light {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}
.btn-light:hover { background: var(--amber); border-color: var(--amber); color: var(--ink); }

.nav-toggle {
  display: none;
  min-height: 44px;
  min-width: 44px;
  background: none;
  border: 1px solid var(--line);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

/* ---------------- hero ---------------- */

.hero {
  position: relative;
  background: var(--ink);
  color: var(--paper);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.72;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(18, 25, 31, 0.92) 0%, rgba(18, 25, 31, 0.55) 38%, rgba(18, 25, 31, 0.02) 100%),
    linear-gradient(180deg, rgba(18, 25, 31, 0.12) 0%, rgba(18, 25, 31, 0.42) 100%);
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: center;
  min-height: clamp(520px, 78vh, 760px);
  padding-block: clamp(3.5rem, 8vh, 6rem);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  margin-bottom: 1.4rem;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--amber); flex: none; }

.hero h1 {
  max-width: 19ch;
  color: var(--paper);
}

.hero-lead {
  margin-top: 1.5rem;
  max-width: 52ch;
  color: rgba(244, 241, 234, 0.82);
  font-size: 1.06rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.hero-spec {
  position: relative;
  border-top: 1px solid var(--line-dark);
  margin-top: clamp(2.5rem, 6vh, 4rem);
  padding-top: 1.3rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.2rem 1.6rem;
}
.hero-spec dt,
.hero-spec .spec-label {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.5);
  margin-bottom: 0.25rem;
}
.hero-spec .spec-value {
  font-family: var(--display);
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  color: var(--paper);
}

/* page hero (inner pages) */
.page-hero {
  background: var(--ink);
  color: var(--paper);
  padding-block: clamp(3rem, 7vw, 5rem);
  position: relative;
}
.page-hero::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: repeating-linear-gradient(90deg, var(--amber) 0 34px, transparent 34px 44px);
  opacity: 0.9;
}
.page-hero h1 { max-width: 24ch; color: var(--paper); }
.page-hero .lead { margin-top: 1.2rem; max-width: 58ch; color: rgba(244, 241, 234, 0.8); }
.page-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.page-hero-media { margin: 0; background: var(--paper); border: 1px solid rgba(244, 241, 234, 0.16); }
.page-hero-media img {
  width: 100%; height: auto; display: block;
  aspect-ratio: 4 / 3; object-fit: cover; background: var(--paper);
}
@media (max-width: 820px) {
  .page-hero-inner { grid-template-columns: minmax(0, 1fr); }
  .page-hero-media { order: -1; margin-top: 0.4rem; }
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.55);
  margin-bottom: 1.6rem;
}
.breadcrumbs a:hover { color: var(--amber); }
.breadcrumbs .sep { color: rgba(244, 241, 234, 0.32); }

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

.section { padding-block: clamp(3.2rem, 8vw, 6rem); }

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.85fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: end;
  padding-bottom: 2.2rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rack);
  margin-bottom: 0.9rem;
}
.section-tag .parcel {
  width: 11px; height: 11px;
  border: 1px solid var(--amber);
  background: rgba(224, 160, 46, 0.16);
  flex: none;
}
.section-head p { margin: 0; color: var(--steel); font-size: 1.02rem; }

/* product cards */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.5rem;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: clamp(1.5rem, 3vw, 2.5rem);
}

.card {
  display: flex;
  flex-direction: column;
  background: #fbf9f4;
  border: 1px solid var(--line);
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.card:hover { border-color: var(--ink); transform: translateY(-3px); }

.card-media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}
.card-media img { width: 100%; height: 100%; object-fit: cover; }

.card-body {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.25rem 1.3rem 1.4rem;
  flex: 1;
}

.card-fn {
  font-family: var(--mono);
  font-size: 0.63rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-deep);
}

.card h3 { font-size: 1.32rem; }

.card p {
  margin: 0;
  font-size: 0.94rem;
  color: var(--steel);
  flex: 1;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 0.5rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.card-link::after { content: "→"; }
.card:hover .card-link { color: var(--amber-deep); }

/* flow section */
.flow {
  background: var(--paper-2);
  border-block: 1px solid var(--line);
}
.flow-line {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0;
  margin-top: 1rem;
  border-top: 1px solid var(--ink);
}
.flow-step {
  position: relative;
  padding: 1.5rem 1.4rem 1.6rem;
  border-right: 1px solid var(--line);
  background: transparent;
}
.flow-step:last-child { border-right: 0; }
.flow-step::before {
  content: "";
  position: absolute;
  top: -6px; left: 1.4rem;
  width: 11px; height: 11px;
  background: var(--ink);
}
.flow-step .step-no {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  color: var(--rack);
  text-transform: uppercase;
}
.flow-step h3 { font-size: 1.18rem; margin: 0.45rem 0 0.4rem; }
.flow-step p { font-size: 0.9rem; margin: 0; color: var(--steel); }

/* capability dark band */
.ink-band { background: var(--ink); color: var(--paper); }
.ink-band .section-head { border-bottom-color: var(--line-dark); }
.ink-band .section-head p,
.ink-band .section-tag { color: rgba(244, 241, 234, 0.68); }
.ink-band .section-head h2 { color: var(--paper); }

.cap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: clamp(1.6rem, 3vw, 2.6rem);
}
.cap-item { border-top: 1px solid var(--line-dark); padding-top: 1.3rem; }
.cap-item .cap-no {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: var(--amber);
  text-transform: uppercase;
}
.cap-item h3 { color: var(--paper); margin: 0.6rem 0 0.6rem; font-size: 1.28rem; }
.cap-item p { color: rgba(244, 241, 234, 0.74); font-size: 0.95rem; margin: 0; }
.cap-list {
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: rgba(244, 241, 234, 0.58);
}
.cap-list li::before { content: "· "; color: var(--amber); }

/* industries */
.ind-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  border-top: 1px solid var(--line);
}
.ind-item {
  padding: 1.35rem 1.2rem 1.4rem 0;
  border-bottom: 1px solid var(--line);
}
.ind-item h3 { font-size: 1.12rem; margin-bottom: 0.35rem; }
.ind-item p { margin: 0; font-size: 0.9rem; color: var(--steel); }

/* split media block */
.split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: stretch;
  border: 1px solid var(--line);
  background: #fbf9f4;
}
.split-media { min-height: 280px; }
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-body { padding: clamp(1.4rem, 3.5vw, 3rem); display: flex; flex-direction: column; justify-content: center; }
.split-body h2 { margin-bottom: 0.9rem; }
.split-body p { color: var(--steel); }

/* detail gallery */
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
  margin-top: 1.9rem;
}
.detail-fig {
  margin: 0;
  border: 1px solid var(--line);
  background: #fbf9f4;
  overflow: hidden;
}
.detail-fig img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #0f1a22;
}
.detail-fig figcaption {
  padding: 0.85rem 1rem 0.95rem;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--steel);
  border-top: 1px solid var(--line);
}

/* spec table */
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 0;
}
.spec-table caption {
  caption-side: top;
  text-align: left;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rack);
  padding-bottom: 0.7rem;
}
.spec-table th,
.spec-table td {
  text-align: left;
  padding: 0.72rem 0.8rem 0.72rem 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.spec-table th {
  width: 38%;
  font-family: var(--mono);
  font-size: 0.71rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rack);
}
.spec-table td { color: var(--ink); }

.spec-note {
  margin-top: 0.8rem;
  font-size: 0.78rem;
  color: var(--rack);
  font-family: var(--mono);
  letter-spacing: 0.02em;
}

/* lists */
.checklist {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.65rem;
  font-size: 0.95rem;
  color: var(--steel);
}
.checklist li { display: grid; grid-template-columns: 18px 1fr; gap: 0.65rem; align-items: start; }
.checklist .mark {
  width: 12px; height: 12px;
  margin-top: 0.28rem;
  background: var(--amber);
  flex: none;
}

/* FAQ */
.faq {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.faq-item { border-bottom: 1px solid var(--line); padding: 1.3rem 0; }
.faq-item h3 { font-size: 1.16rem; margin-bottom: 0.5rem; }
.faq-item p { margin: 0; font-size: 0.95rem; color: var(--steel); }

/* CTA band */
.cta-band {
  background: var(--amber);
  color: var(--ink);
  padding-block: clamp(2.6rem, 6vw, 4.2rem);
}
.cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) auto;
  align-items: center;
  gap: 2rem;
}
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2.3rem); max-width: 26ch; }
.cta-band p { margin: 0.7rem 0 0; max-width: 52ch; color: rgba(18, 25, 31, 0.76); }
.cta-inner .btn { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.cta-inner .btn:hover { background: #fff; color: var(--ink); }

/* contact form */
.form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem 1.1rem;
}
.field { display: grid; gap: 0.4rem; }
.field label {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rack);
}
.field input,
.field select,
.field textarea {
  font-family: var(--body);
  font-size: 0.95rem;
  padding: 0.7rem 0.75rem;
  min-height: 44px;
  background: #fbf9f4;
  border: 1px solid rgba(18, 25, 31, 0.24);
  color: var(--ink);
  border-radius: 0;
}
.field textarea { min-height: 132px; resize: vertical; grid-column: 1 / -1; }
.field-full { grid-column: 1 / -1; }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.form-note { font-size: 0.82rem; color: var(--rack); margin: 0; }

/* facts */
.fact-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.2rem 2rem;
  border-top: 1px solid var(--line);
  padding-top: 1.4rem;
}
.fact .fact-label {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rack);
  margin-bottom: 0.3rem;
}
.fact .fact-value { font-family: var(--display); font-size: 1.5rem; letter-spacing: 0.01em; }

/* footer */
.site-footer {
  background: var(--ink);
  color: rgba(244, 241, 234, 0.72);
  padding-block: clamp(2.5rem, 5vw, 4rem) 1.5rem;
  margin-top: 0;
}
.footer-top {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(auto-fit, minmax(150px, 1fr));
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line-dark);
}
.footer-brand .brand { color: var(--paper); }
.footer-brand p { margin-top: 1rem; font-size: 0.9rem; max-width: 34ch; color: rgba(244, 241, 234, 0.6); }
.footer-col h4 {
  font-family: var(--mono);
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 241, 234, 0.45);
  margin-bottom: 0.8rem;
}
.footer-col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.45rem; font-size: 0.88rem; }
.footer-col a:hover { color: var(--amber); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.2rem;
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  color: rgba(244, 241, 234, 0.42);
}

/* ============================================================
   Responsive — tablet / small laptop (≤900px)
   ============================================================ */
@media (max-width: 900px) {
  .section-head { grid-template-columns: 1fr; align-items: start; }
  .cta-inner { grid-template-columns: 1fr; }

  /* the second top-bar line cannot share a phone-width row */
  .topbar-r { display: none; }
  .topbar-inner { font-size: 0.64rem; letter-spacing: 0.1em; }

  /* nav collapses into a full-width panel below the sticky bar */
  .nav { position: relative; }
  .nav-main { display: block; }
  .nav-panel {
    display: none;
    position: absolute;
    top: calc(100% + 1px);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    max-height: calc(100svh - 64px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 0.3rem var(--pad) 1.1rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 22px 34px -26px rgba(18, 25, 31, 0.5);
  }
  .nav-panel.is-open { display: flex; }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0;
  }
  .nav-links li { width: 100%; }
  .nav-links a {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 48px;
    padding: 0.55rem 0;
    border-bottom: 1px solid var(--line);
  }
  .nav-links a[aria-current="page"] { border-bottom-color: var(--amber); }

  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav-toggle[aria-expanded="true"] { background: var(--paper-2); border-color: var(--ink); }
  .nav-quote { display: none; }

  .lang-switch {
    width: 100%;
    margin: 0.95rem 0 0;
    padding-top: 0.95rem;
    border-top: 1px solid var(--line);
    gap: 0.4rem;
  }
  .lang-switch a {
    flex: 1 1 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.3rem 0.5rem;
  }
}

/* ============================================================
   Responsive — phones (≤640px)
   ============================================================ */
@media (max-width: 640px) {
  :root { --pad: clamp(1.05rem, 4.6vw, 1.4rem); }

  body { font-size: 16px; line-height: 1.68; }

  h1 { font-size: clamp(1.95rem, 8.4vw, 2.55rem); line-height: 1.1; }
  h2 { font-size: clamp(1.45rem, 6.2vw, 1.95rem); line-height: 1.16; }
  h3 { font-size: 1.14rem; }

  /* top bar: one line only, tighter tracking */
  .topbar-inner {
    min-height: 30px;
    gap: 0.75rem;
    font-size: 0.58rem;
    letter-spacing: 0.08em;
  }
  .topbar-r { display: none; }

  /* header: shorter bar, brand and menu only */
  .nav { min-height: 62px; gap: 0.85rem; }
  .brand { font-size: 1.02rem; letter-spacing: 0.06em; gap: 0.55rem; }
  .brand-mark { width: 18px; height: 18px; }
  .brand-sub { font-size: 0.5rem; letter-spacing: 0.12em; }

  /* hero: vertical scrim so white copy never sits on a bright crop */
  .hero-inner {
    min-height: 500px;
    min-height: clamp(480px, 72svh, 640px);
    padding-block: 2.6rem 2.1rem;
  }
  .hero-media { object-position: 74% 50%; opacity: 0.6; }
  .hero-scrim {
    background:
      linear-gradient(180deg, rgba(18, 25, 31, 0.42) 0%, rgba(18, 25, 31, 0.72) 46%, rgba(18, 25, 31, 0.93) 100%);
  }
  .hero h1 { max-width: 100%; }
  .hero-lead { margin-top: 1.1rem; font-size: 1rem; line-height: 1.6; }
  .hero-actions { flex-direction: column; align-items: stretch; margin-top: 1.5rem; gap: 0.6rem; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .hero-spec {
    grid-template-columns: 1fr 1fr;
    gap: 0.7rem 0.9rem;
    margin-top: 1.75rem;
    padding-top: 1rem;
  }
  .hero-spec .spec-value { font-size: 0.98rem; }

  /* page hero on inner pages */
  .page-hero { padding-block: 2.2rem 2.4rem; }
  .page-hero-inner { gap: 1.3rem; }
  .page-hero h1 { max-width: 100%; }
  .page-hero .lead { margin-top: 0.9rem; font-size: 0.98rem; }
  .page-hero-media img { aspect-ratio: 16 / 10; }
  .breadcrumbs { font-size: 0.58rem; gap: 0.32rem; margin-bottom: 1.1rem; }

  .section { padding-block: 2.7rem; }
  .section-head { padding-bottom: 1.4rem; margin-bottom: 1.6rem; gap: 0.9rem; }
  .section-head p { font-size: 0.96rem; }

  /* stacks */
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 1rem; }
  .detail-grid { grid-template-columns: 1fr; gap: 0.9rem; }
  .split { grid-template-columns: 1fr; }
  .split-media { min-height: 180px; }
  .split-media img { aspect-ratio: 16 / 10; }
  .split-body { padding: 1.35rem 1.2rem 1.5rem; }
  .cap { grid-template-columns: 1fr; gap: 1.5rem; }
  .ind-list { grid-template-columns: 1fr; }
  .ind-item { padding-right: 0; }
  .fact-row { grid-template-columns: 1fr 1fr; gap: 0.9rem 1rem; }
  .fact .fact-value { font-size: 1.28rem; }

  .card-media { aspect-ratio: 16 / 10; }
  .card-body { padding: 1.05rem 1.1rem 1.2rem; }
  .card h3 { font-size: 1.18rem; }

  .flow-step {
    padding: 1.15rem 0 1.25rem 1.15rem;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .flow-step:last-child { border-bottom: 0; }
  .flow-step::before { left: 0; }
  .flow-line { grid-template-columns: 1fr; }

  /* spec tables read better stacked than squeezed into 2 columns */
  .spec-table th { width: 40%; }
  .spec-table { font-size: 0.9rem; }

  /* forms: 16px avoids iOS auto-zoom, buttons full width */
  .form { grid-template-columns: 1fr; gap: 0.9rem; }
  .field input, .field select, .field textarea { font-size: 16px; width: 100%; }
  .form-actions .btn { width: 100%; justify-content: center; }

  .cta-band { padding-block: 2.3rem; }
  .cta-inner { gap: 1.3rem; }
  .cta-inner .btn { width: 100%; justify-content: center; }

  .footer-top { grid-template-columns: 1fr; gap: 1.7rem; }
  .footer-col ul { gap: 0.5rem; }
  .footer-bottom { flex-direction: column; gap: 0.45rem; }
  .site-footer { padding-bottom: calc(1.4rem + env(safe-area-inset-bottom)); }

  html[lang="zh-CN"] body { line-height: 1.82; }
  html[lang="zh-CN"] .hero h1 { font-size: clamp(1.85rem, 7.6vw, 2.35rem); line-height: 1.22; }
  html[lang="zh-CN"] p { max-width: 100%; }
}

/* ============================================================
   Responsive — very narrow phones (≤520px)
   ============================================================ */
@media (max-width: 520px) {
  /* spec table becomes a label-over-value list */
  .spec-table,
  .spec-table tbody,
  .spec-table tr,
  .spec-table th,
  .spec-table td { display: block; width: 100%; }
  .spec-table tr { padding: 0.5rem 0 0.6rem; border-bottom: 1px solid var(--line); }
  .spec-table th,
  .spec-table td { border: 0; padding: 0; }
  .spec-table th { font-size: 0.62rem; margin-bottom: 0.14rem; }
  .spec-table td { font-size: 0.95rem; line-height: 1.55; }
  .spec-table caption { padding-bottom: 0.55rem; }
}

/* ============================================================
   Responsive — small phones (≤400px)
   ============================================================ */
@media (max-width: 400px) {
  .brand { font-size: 0.95rem; letter-spacing: 0.04em; }
  .brand-sub { display: none; }
  .nav { min-height: 58px; }
  .hero-spec .spec-value { font-size: 0.92rem; }
  .fact-row { grid-template-columns: 1fr; }
  .spec-table th { width: 44%; }
  .btn { padding-inline: 0.9rem; }
}

@media (max-width: 340px) {
  .hero-spec { grid-template-columns: 1fr; }
}

/* touch devices: no hover lift, no tap delay */
@media (hover: none) {
  .card:hover { transform: none; border-color: var(--line); }
  .card:active { border-color: var(--ink); }
  a, button { touch-action: manipulation; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card, .btn, .nav-links a { transition: none; }
  .card:hover { transform: none; }
}

@media print {
  .site-header, .topbar, .cta-band, .site-footer { display: none; }
}

/* ---------------- additions ---------------- */

.btn-outline-light {
  background: transparent;
  color: var(--paper);
  border-color: rgba(244, 241, 234, 0.42);
}
.btn-outline-light:hover {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.nav-quote { margin-left: 0.2rem; white-space: nowrap; padding-inline: 1.35rem; }

/* CJK typography */
html[lang="zh-CN"] body { line-height: 1.78; }
html[lang="zh-CN"] h1,
html[lang="zh-CN"] h2,
html[lang="zh-CN"] h3 { letter-spacing: 0.01em; line-height: 1.2; }
html[lang="zh-CN"] .hero h1 { line-height: 1.18; font-size: clamp(2.1rem, 4vw, 3.2rem); max-width: 26ch; }
html[lang="zh-CN"] .hero-lead { max-width: 31em; }
html[lang="zh-CN"] p { max-width: 40em; }

@media (max-width: 900px) {
  .nav-quote { display: none; }
}


/* ---------------- contact channels + WhatsApp float ---------------- */

.channel-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.channel-row .btn { max-width: 100%; }
.channel-row .btn[href^="mailto"] { text-transform: none; letter-spacing: 0.02em; }

.wa-float {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.7rem 1.05rem;
  border-radius: 999px;
  background: #1f9d55;
  color: #fff;
  font: 500 0.92rem/1 var(--sans, inherit);
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.wa-float:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28); }
.wa-float svg { flex: none; }
.wa-float-text { white-space: nowrap; }

@media (max-width: 640px) {
  .wa-float { right: 0.85rem; bottom: 0.85rem; padding: 0.6rem; }
  .wa-float-text { display: none; }
  .channel-row .btn { width: 100%; justify-content: center; }
}


@media (max-width: 700px) {
  html[lang="zh-CN"] .hero h1 { font-size: clamp(1.65rem, 6.2vw, 2.1rem); line-height: 1.24; max-width: 100%; word-break: break-word; }
  .hero h1 { max-width: 100%; }
}

/* page-hero headline: long Chinese sentences must wrap, never overflow */
html[lang="zh-CN"] .page-hero-copy h1 { font-size: clamp(1.9rem, 3.1vw, 2.7rem); line-height: 1.2; }
@media (max-width: 700px) {
  .page-hero-copy h1 { font-size: clamp(1.55rem, 6vw, 1.95rem); line-height: 1.26; word-break: break-word; }
}

/* quote form status */
.form-note.is-ok { color: #1f7a4d; }
.form-note.is-err { color: #b03a2e; }
.form [name="email"] { }
