:root {
  --ink: #111614;
  --muted: #63716b;
  --paper: #f4f1e8;
  --surface: #fffdf7;
  --line: #d7d0c0;
  --forest: #174c3f;
  --forest-2: #0e2f28;
  --copper: #b76b3f;
  --blueprint: #24445a;
  --sun: #e1ad4f;
  --shadow: 0 20px 60px rgba(17, 22, 20, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans SC", Arial, sans-serif;
  line-height: 1.55;
}

body.subpage {
  background: var(--paper);
}

.admin-bar .site-header {
  top: 32px;
}

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

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 30;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(18px, 4vw, 58px);
  color: #fff;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.language-link {
  min-width: 42px;
  padding: 7px 9px;
  border: 1px solid currentColor;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 850;
  text-align: center;
}

.site-header.is-scrolled,
.site-header.is-open {
  color: var(--ink);
  border-bottom: 1px solid rgba(215, 208, 192, 0.82);
  background: rgba(244, 241, 232, 0.94);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 820;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid currentColor;
  border-radius: 6px;
  font-size: 13px;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
  font-size: 14px;
  font-weight: 700;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu-button {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid currentColor;
  border-radius: 6px;
  color: inherit;
  background: transparent;
}

.menu-button span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 94vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 360px);
  align-items: end;
  gap: clamp(24px, 4vw, 52px);
  overflow: hidden;
  padding: 128px clamp(20px, 5vw, 72px) 58px;
  color: #fff;
}

.hero-image,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  object-fit: cover;
  object-position: center;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(9, 21, 18, 0.9) 0%, rgba(9, 21, 18, 0.72) 39%, rgba(9, 21, 18, 0.2) 100%),
    linear-gradient(0deg, rgba(9, 21, 18, 0.84) 0%, rgba(9, 21, 18, 0) 54%);
}

.hero-content,
.hero-panel {
  position: relative;
}

.hero-content {
  max-width: 820px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--sun);
  font-size: 12px;
  font-weight: 860;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 800px;
  margin-bottom: 22px;
  font-size: clamp(46px, 7vw, 92px);
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(30px, 4.5vw, 58px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
  line-height: 1.2;
}

.hero-lede {
  max-width: 720px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(18px, 2vw, 23px);
}

.hero-actions,
.contact-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border-radius: 6px;
  font-weight: 820;
}

.button.primary {
  color: #fff;
  background: var(--forest);
}

.button.secondary {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.72);
}

.hero-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-self: end;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(9, 21, 18, 0.48);
  backdrop-filter: blur(12px);
}

.hero-panel span {
  min-height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 780;
}

.signal-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.signal-bar span {
  min-height: 78px;
  display: grid;
  place-items: center;
  padding: 14px;
  border-right: 1px solid var(--line);
  color: var(--blueprint);
  font-weight: 820;
  text-align: center;
}

.service-links {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  background: var(--line);
}

.service-links a {
  min-height: 78px;
  display: grid;
  place-items: center;
  padding: 14px;
  color: var(--forest);
  background: #fbfaf4;
  font-size: 14px;
  font-weight: 820;
  text-align: center;
}

.section {
  padding: clamp(64px, 9vw, 112px) clamp(20px, 5vw, 72px);
}

.section-heading,
.benchmark,
.contact {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: start;
}

.intro {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(360px, 1fr) minmax(230px, 320px);
  gap: clamp(24px, 4vw, 54px);
  align-items: center;
}

.authority-head {
  align-self: start;
}

.authority-body {
  display: grid;
  gap: 22px;
}

.intro-copy p,
.benchmark-copy p,
.contact-panel p {
  max-width: 780px;
  color: var(--muted);
  font-size: 20px;
}

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

.authority-metrics span {
  min-height: 86px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--surface);
  font-size: 13px;
  font-weight: 760;
}

.authority-metrics strong {
  display: block;
  color: var(--forest);
  font-size: 28px;
  line-height: 1;
}

.diagnostic {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(28px, 5vw, 76px);
  background: #e8eee9;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.diagnostic-panel {
  display: grid;
  gap: 18px;
}

.answer-box {
  margin: 0;
  padding: 24px;
  color: var(--ink);
  border-left: 5px solid var(--copper);
  border-radius: 8px;
  background: var(--surface);
  font-size: 20px;
  box-shadow: 0 1px 0 rgba(17, 22, 20, 0.04);
}

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

.review-grid article {
  min-height: 210px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.review-grid span {
  display: block;
  margin-bottom: 38px;
  color: var(--copper);
  font-weight: 900;
}

.review-grid p {
  color: var(--muted);
}

.portrait-card {
  overflow: hidden;
  width: min(100%, 300px);
  justify-self: end;
  align-self: center;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 16px 42px rgba(17, 22, 20, 0.12);
}

.portrait-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 12%;
  background: #203142;
}

.portrait-card figcaption {
  padding: 12px 14px;
  color: var(--ink);
  background: var(--surface);
  font-size: 14px;
  font-weight: 780;
}

.companies {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.company-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 42px;
}

.company-grid article {
  min-height: 310px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf4;
}

.logo-plate {
  width: 176px;
  height: 96px;
  display: grid;
  place-items: center;
  margin-bottom: 44px;
  padding: 16px;
  border: 1px solid rgba(215, 208, 192, 0.88);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 253, 247, 0.96), rgba(237, 232, 220, 0.82)),
    #fbfaf4;
}

.logo-plate img {
  width: 100%;
  max-width: 132px;
  max-height: 64px;
  object-fit: contain;
}

.sunon-logo {
  width: 64px;
  height: 64px;
}

.yinfeng-logo {
  width: 64px;
  height: 64px;
  max-height: 64px;
}

.company-grid p {
  margin-bottom: 8px;
  color: var(--copper);
  font-size: 13px;
  font-weight: 850;
  text-transform: uppercase;
}

.company-grid span,
.product-grid h3,
.method-steps p,
.faq-list p {
  color: var(--muted);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 42px;
}

.product-grid article {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.product-grid img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #ece7dc;
}

.product-grid h3 {
  min-height: 74px;
  display: flex;
  align-items: center;
  margin: 0;
  padding: 18px;
  font-size: 18px;
}

.manufacturing {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.manufacturing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 42px;
}

.manufacturing-grid article {
  min-height: 250px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf4;
}

.manufacturing-grid h3 {
  margin-bottom: 48px;
}

.manufacturing-grid p {
  color: var(--muted);
}

.method {
  color: #fff;
  background: var(--forest-2);
}

.method .section-kicker {
  color: var(--sun);
}

.method-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.8fr);
  gap: 24px;
  margin-top: 42px;
}

.method-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: rgba(255, 255, 255, 0.16);
}

.method-steps article {
  min-height: 240px;
  padding: 28px;
  background: var(--forest-2);
}

.method-steps span {
  display: block;
  margin-bottom: 42px;
  color: var(--sun);
  font-weight: 900;
}

.method-steps p {
  color: rgba(255, 255, 255, 0.72);
}

figure {
  margin: 0;
}

.method figure {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: #fff;
}

.method figure img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.playbook {
  background: #16252f;
  color: #fff;
}

.playbook .section-kicker {
  color: var(--sun);
}

.playbook-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin-top: 42px;
  background: rgba(255, 255, 255, 0.16);
}

.playbook-grid article {
  min-height: 280px;
  padding: 28px;
  background: #16252f;
}

.playbook-grid span {
  display: block;
  margin-bottom: 54px;
  color: var(--sun);
  font-weight: 900;
}

.playbook-grid p {
  color: rgba(255, 255, 255, 0.74);
}

figcaption {
  padding: 16px 18px;
  color: rgba(255, 255, 255, 0.82);
  background: var(--blueprint);
}

.benchmark {
  background: #e8eee9;
  border-bottom: 1px solid var(--line);
}

.topic-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 820px;
}

.topic-list span {
  padding: 10px 12px;
  color: var(--blueprint);
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  font-weight: 780;
}

.faq {
  max-width: 1100px;
  margin: 0 auto;
}

.faq .section-heading {
  display: block;
  margin-bottom: 34px;
}

details {
  border-top: 1px solid var(--line);
}

details:last-child {
  border-bottom: 1px solid var(--line);
}

summary {
  cursor: pointer;
  padding: 22px 0;
  font-size: 20px;
  font-weight: 820;
}

summary::marker {
  color: var(--forest);
}

details p {
  max-width: 760px;
  padding-bottom: 24px;
}

.contact {
  background: var(--surface);
}

.contact-panel {
  justify-content: space-between;
  align-self: center;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfaf4;
  box-shadow: var(--shadow);
}

.contact-panel p {
  flex: 1 1 300px;
  margin-bottom: 0;
}

.contact-actions {
  display: flex;
  flex: 0 1 430px;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.contact-panel .button.secondary {
  color: var(--forest);
  border-color: rgba(15, 64, 55, 0.32);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(20px, 5vw, 72px);
  color: #d9e0dc;
  background: #0d1512;
}

.footer p {
  margin: 0;
}

.page-main {
  padding-top: 72px;
}

.page-hero {
  padding: clamp(72px, 10vw, 130px) clamp(20px, 5vw, 72px) clamp(44px, 7vw, 80px);
  color: #fff;
  background:
    linear-gradient(90deg, rgba(14, 47, 40, 0.94), rgba(36, 68, 90, 0.82)),
    url("../images/hero-manufacturing-consulting.png") center / cover;
}

.page-content {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(56px, 8vw, 96px) clamp(20px, 5vw, 72px);
}

.page-content h2 {
  margin-top: 1.2em;
  margin-bottom: 0.35em;
  font-size: clamp(28px, 3vw, 42px);
}

.page-content p,
.page-content li {
  color: var(--muted);
  font-size: 19px;
}

.post-card {
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  max-width: 980px;
}

.page-hero p:not(.section-kicker) {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 21px;
}

.page-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: clamp(56px, 8vw, 96px) clamp(20px, 5vw, 72px);
}

.page-grid article {
  min-height: 260px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.page-grid p {
  color: var(--muted);
}

@media (max-width: 1040px) {
  .hero,
  .method-layout,
  .section-heading,
  .intro,
  .diagnostic,
  .benchmark,
  .contact {
    grid-template-columns: 1fr;
  }

  .portrait-card {
    width: min(100%, 320px);
    justify-self: start;
  }

  .hero-panel {
    max-width: 520px;
  }

  .signal-bar,
  .service-links,
  .company-grid,
  .product-grid,
  .review-grid,
  .manufacturing-grid,
  .method-steps,
  .playbook-grid,
  .page-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .menu-button {
    display: block;
  }

  .nav {
    position: fixed;
    inset: 72px 14px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 10px;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 253, 247, 0.98);
    box-shadow: var(--shadow);
  }

  .header-actions {
    margin-left: auto;
  }

  .nav-list {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .site-header.is-open .nav {
    display: flex;
  }

  .nav a {
    padding: 14px;
  }
}

@media (max-width: 620px) {
  .hero {
    min-height: 90vh;
    padding: 112px 20px 42px;
  }

  .hero-shade {
    background:
      linear-gradient(90deg, rgba(9, 21, 18, 0.93) 0%, rgba(9, 21, 18, 0.72) 100%),
      linear-gradient(0deg, rgba(9, 21, 18, 0.86) 0%, rgba(9, 21, 18, 0.18) 58%);
  }

  h1 {
    font-size: 42px;
  }

  .hero-lede,
  .intro-copy p,
  .benchmark-copy p,
  .answer-box,
  .contact-panel p {
    font-size: 17px;
  }

  .authority-metrics {
    grid-template-columns: 1fr;
  }

  .authority-metrics span {
    min-height: 64px;
  }

  .portrait-card {
    width: min(100%, 300px);
    justify-self: center;
  }

  .button {
    width: 100%;
  }

  .hero-panel,
  .signal-bar,
  .service-links,
  .company-grid,
  .product-grid,
  .review-grid,
  .manufacturing-grid,
  .method-steps,
  .playbook-grid,
  .page-grid {
    grid-template-columns: 1fr;
  }

  .signal-bar span {
    min-height: 58px;
  }

  .section {
    padding: 56px 20px;
  }

  .company-grid article,
  .review-grid article,
  .manufacturing-grid article,
  .playbook-grid article,
  .page-grid article,
  .method-steps article {
    min-height: auto;
  }

  .footer {
    flex-direction: column;
  }
}
