/*
 * Kaiyi Industrial B2B layer
 * Loaded after styles.css to preserve existing product pages while introducing
 * a factory-first visual system inspired by high-trust manufacturing websites.
 */

:root {
  --ink: #122733;
  --ink-soft: #2d414c;
  --paper: #f4f6f7;
  --cream: #e9eff1;
  --sand: #ccd8dc;
  --red: #982532;
  --red-dark: #6d1722;
  --gold: #bd9561;
  --muted: #62737d;
  --line: rgba(15, 42, 56, 0.14);
  --white: #ffffff;
  --navy: #0d2533;
  --navy-soft: #173849;
  --steel: #dce5e8;
  --shadow: 0 26px 70px rgba(13, 37, 51, 0.12);
  --sans: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --serif: "Segoe UI", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --container: 1240px;
  --radius: 2px;
  --header-height: 76px;
}

body {
  color: var(--ink);
  background: var(--paper);
}

h1,
h2,
h3,
h4 {
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 750;
  letter-spacing: -0.045em;
}

h1 {
  line-height: 1.02;
}

h2 {
  line-height: 1.06;
}

p {
  color: var(--muted);
}

.site-header {
  border-top: 3px solid var(--red);
  background: rgba(248, 250, 250, 0.96);
}

.site-header.is-scrolled {
  box-shadow: 0 12px 32px rgba(13, 37, 51, 0.08);
}

.brand-mark {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 2px;
  color: var(--white);
  background: var(--red);
  font-family: var(--sans);
  font-weight: 800;
}

.brand-name {
  color: var(--navy);
  font-family: var(--sans);
  font-weight: 800;
  letter-spacing: 0.13em;
}

.brand-sub {
  color: #687983;
  letter-spacing: 0.14em;
}

.site-nav a {
  color: #314650;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.site-nav a:not(.btn)::after {
  height: 2px;
  background: var(--red);
}

.btn {
  min-height: 48px;
  border-radius: 2px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
}

.btn-primary {
  border-color: var(--red);
  background: var(--red);
}

.btn-primary:hover {
  border-color: var(--red-dark);
  background: var(--red-dark);
}

.section {
  padding: 96px 0;
}

.section-sm {
  padding: 68px 0;
}

.section-cream {
  background:
    linear-gradient(rgba(18, 39, 51, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 39, 51, 0.018) 1px, transparent 1px),
    linear-gradient(135deg, #f0f3f4, #e7edef);
  background-size: 48px 48px, 48px 48px, auto;
}

.section-dark {
  background:
    radial-gradient(circle at 85% 15%, rgba(152, 37, 50, 0.22), transparent 30%),
    linear-gradient(135deg, #102833, #081821);
}

.section-dark h2,
.section-dark h3,
.section-dark h4 {
  color: var(--white);
}

.eyebrow {
  margin-bottom: 18px;
  color: var(--red);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.eyebrow::before {
  width: 34px;
  height: 2px;
}

.section-dark .eyebrow {
  color: #e0bc87;
}

.lede,
.page-hero p {
  font-family: var(--sans);
  font-weight: 500;
}

.section-heading {
  margin-bottom: 44px;
}

.section-heading h2 {
  max-width: 820px;
}

.section-heading p {
  line-height: 1.75;
}

.page-hero {
  position: relative;
  overflow: hidden;
  padding: 88px 0 72px;
  background:
    linear-gradient(rgba(15, 42, 56, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 42, 56, 0.035) 1px, transparent 1px),
    linear-gradient(135deg, #f5f7f8, #e7edef);
  background-size: 48px 48px, 48px 48px, auto;
}

.page-hero::after {
  position: absolute;
  top: -170px;
  right: -80px;
  width: 460px;
  height: 460px;
  border: 1px solid rgba(152, 37, 50, 0.12);
  content: "";
  transform: rotate(28deg);
}

.page-hero .container {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  max-width: 960px;
  font-size: clamp(3rem, 5.8vw, 5.8rem);
}

.page-hero p {
  color: var(--ink-soft);
  font-size: 1.02rem;
}

.breadcrumbs {
  color: #6a7b85;
}

/* Manufacturing hero */

.manufacturing-hero {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  color: var(--white);
  background: var(--navy);
}

.manufacturing-hero-media,
.manufacturing-hero-shade {
  position: absolute;
  inset: 0;
}

.manufacturing-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 46%;
}

.manufacturing-hero-shade {
  background:
    linear-gradient(90deg, rgba(6, 20, 28, 0.92) 0%, rgba(7, 24, 33, 0.72) 43%, rgba(7, 24, 33, 0.18) 73%, rgba(7, 24, 33, 0.3) 100%),
    linear-gradient(180deg, rgba(5, 18, 25, 0.18) 0%, rgba(5, 18, 25, 0.06) 46%, rgba(5, 18, 25, 0.78) 100%);
}

.manufacturing-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 760px;
  padding-top: 128px;
  padding-bottom: 54px;
  grid-template-columns: minmax(0, 1.22fr) minmax(350px, 0.58fr);
  gap: 66px;
  align-items: end;
}

.manufacturing-hero-copy {
  max-width: 900px;
  padding-bottom: 12px;
}

.hero-kicker {
  display: inline-flex;
  margin-bottom: 24px;
  padding: 9px 15px;
  align-items: center;
  gap: 10px;
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(8, 28, 38, 0.54);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.hero-kicker::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d4a76e;
  content: "";
}

.manufacturing-hero h1 {
  max-width: 900px;
  margin-bottom: 24px;
  color: var(--white);
  font-size: clamp(4rem, 7vw, 7.1rem);
  line-height: 0.98;
  letter-spacing: -0.065em;
}

.manufacturing-hero h1 span {
  color: #e0bc87;
}

.manufacturing-hero .lede {
  max-width: 720px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.82);
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  line-height: 1.72;
}

.manufacturing-hero .hero-actions {
  margin-bottom: 30px;
}

.manufacturing-hero .btn-light {
  border-color: rgba(255, 255, 255, 0.68);
  background: rgba(255, 255, 255, 0.02);
}

.hero-micro-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.66rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-micro-proof span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-micro-proof span::before {
  width: 5px;
  height: 5px;
  background: #d4a76e;
  content: "";
}

.hero-capability-panel {
  padding: 26px;
  color: var(--ink);
  border: 1px solid rgba(255, 255, 255, 0.42);
  background: rgba(249, 250, 250, 0.93);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(14px);
}

.hero-capability-label {
  margin: 0 0 16px;
  color: var(--red);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-capability-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.hero-capability {
  min-height: 120px;
  padding: 18px 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.hero-capability strong {
  display: block;
  margin-bottom: 6px;
  color: var(--red);
  font-size: clamp(1.62rem, 2.6vw, 2.2rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.hero-capability span {
  color: #61727b;
  font-size: 0.62rem;
  font-weight: 750;
  line-height: 1.45;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Product categories */

.category-section {
  padding-top: 72px;
}

.industry-product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.industry-product-card {
  position: relative;
  display: flex;
  min-height: 390px;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 18px 50px rgba(13, 37, 51, 0.08);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.industry-product-card:hover {
  border-color: rgba(152, 37, 50, 0.34);
  box-shadow: 0 28px 64px rgba(13, 37, 51, 0.13);
  transform: translateY(-6px);
}

.industry-card-media {
  position: relative;
  display: grid;
  min-height: 208px;
  overflow: hidden;
  place-items: center;
  background:
    radial-gradient(circle at 50% 28%, rgba(255, 255, 255, 0.98), rgba(238, 243, 244, 0.9) 62%, rgba(219, 228, 231, 0.8));
}

.industry-card-media::after {
  position: absolute;
  right: 14%;
  bottom: 18px;
  left: 14%;
  height: 18px;
  border-radius: 50%;
  background: rgba(19, 44, 57, 0.12);
  content: "";
  filter: blur(10px);
}

.industry-card-media img {
  position: relative;
  z-index: 1;
  width: 78%;
  height: 82%;
  object-fit: contain;
  transition: transform 300ms ease;
}

.industry-product-card:hover .industry-card-media img {
  transform: translateY(-4px) scale(1.025);
}

.industry-card-media.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.industry-card-number {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 5px 8px;
  color: var(--white);
  background: rgba(13, 37, 51, 0.82);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.industry-card-body {
  display: flex;
  padding: 24px 22px 25px;
  flex: 1;
  flex-direction: column;
}

.industry-card-kicker {
  margin-bottom: 9px;
  color: var(--red);
  font-size: 0.61rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.industry-card-body h3 {
  margin-bottom: 10px;
  font-size: 1.42rem;
  letter-spacing: -0.035em;
}

.industry-card-body p {
  flex: 1;
  margin-bottom: 20px;
  font-size: 0.84rem;
}

.industry-card-body .text-link {
  color: var(--ink);
}

/* Company and factory layouts */

.company-proof-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 64px;
  align-items: stretch;
}

.company-proof-photo {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  background: #d7e0e2;
}

.company-proof-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.company-proof-photo::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(8, 24, 33, 0.62));
  content: "";
}

.company-photo-caption {
  position: absolute;
  right: 28px;
  bottom: 24px;
  left: 28px;
  z-index: 1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.63rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.company-proof-copy {
  padding: 22px 0;
}

.company-proof-copy h2 {
  margin-bottom: 24px;
}

.company-proof-copy > p {
  margin-bottom: 18px;
}

.factory-metric-strip {
  display: grid;
  margin: 34px 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.factory-metric {
  min-height: 118px;
  padding: 22px 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
}

.factory-metric strong {
  display: block;
  margin-bottom: 6px;
  color: var(--red);
  font-size: clamp(1.6rem, 2.6vw, 2.25rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.04em;
}

.factory-metric span {
  color: #687983;
  font-size: 0.63rem;
  font-weight: 750;
  line-height: 1.4;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.factory-showcase {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    #0b202b;
  background-size: 52px 52px, 52px 52px, auto;
}

.factory-photo-grid {
  display: grid;
  grid-auto-rows: 220px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.factory-photo {
  position: relative;
  overflow: hidden;
  margin: 0;
  background: #193743;
}

.factory-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 480ms ease;
}

.factory-photo:hover img {
  transform: scale(1.035);
}

.factory-photo::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(7, 22, 30, 0.76));
  content: "";
}

.factory-photo figcaption {
  position: absolute;
  right: 18px;
  bottom: 16px;
  left: 18px;
  z-index: 1;
  color: var(--white);
  font-size: 0.65rem;
  font-weight: 750;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.factory-photo.large {
  grid-column: span 2;
  grid-row: span 2;
}

.factory-photo.tall {
  grid-row: span 2;
}

.factory-photo.wide {
  grid-column: span 2;
}

/* Certificates */

.certificate-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.certificate-card {
  display: grid;
  min-height: 330px;
  overflow: hidden;
  grid-template-columns: 0.88fr 1.12fr;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: 0 18px 48px rgba(13, 37, 51, 0.08);
  transition: transform 220ms ease, box-shadow 220ms ease;
}

.certificate-card:hover {
  box-shadow: 0 28px 64px rgba(13, 37, 51, 0.14);
  transform: translateY(-5px);
}

.certificate-thumb {
  display: grid;
  overflow: hidden;
  padding: 20px;
  place-items: center;
  background:
    linear-gradient(135deg, #edf2f3, #dce6e9);
}

.certificate-thumb img {
  max-width: 100%;
  max-height: 295px;
  object-fit: contain;
  box-shadow: 0 12px 28px rgba(13, 37, 51, 0.15);
}

.certificate-content {
  display: flex;
  padding: 28px 26px;
  flex-direction: column;
}

.certificate-type {
  margin-bottom: 12px;
  color: var(--red);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.certificate-content h3 {
  margin-bottom: 13px;
  font-size: 1.58rem;
}

.certificate-content p {
  margin-bottom: 18px;
  font-size: 0.85rem;
}

.certificate-meta {
  display: grid;
  margin-top: auto;
  border-top: 1px solid var(--line);
}

.certificate-meta div {
  display: grid;
  padding: 9px 0;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 10px;
  border-bottom: 1px solid var(--line);
}

.certificate-meta span {
  color: #72818a;
  font-size: 0.57rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.certificate-meta strong {
  color: var(--ink);
  font-size: 0.68rem;
  font-weight: 750;
}

.certificate-link {
  display: inline-flex;
  margin-top: 18px;
  align-items: center;
  gap: 8px;
  color: var(--red);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.certificate-link::after {
  content: "\2192";
}

/* Product card and process overrides */

.product-card {
  overflow: hidden;
  border-color: var(--line);
  border-radius: 2px;
  box-shadow: 0 16px 44px rgba(13, 37, 51, 0.065);
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.product-card:hover {
  border-color: rgba(152, 37, 50, 0.35);
  box-shadow: 0 26px 62px rgba(13, 37, 51, 0.13);
  transform: translateY(-5px);
}

.product-card-image,
.product-card:nth-child(2n) .product-card-image,
.product-card:nth-child(3n) .product-card-image {
  background:
    radial-gradient(circle at 50% 25%, #ffffff, #eef2f3 64%, #dce5e8);
}

.product-card-image::before,
.product-card-image::after,
.product-card:nth-child(2n) .product-card-image::before,
.product-card:nth-child(3n) .product-card-image::before,
.product-card:nth-child(3n) .product-card-image::after {
  display: none;
}

.product-card-image img,
.section-dark .new-product-card .product-card-image img {
  height: 100%;
  padding: 18px;
  opacity: 1;
  object-fit: contain;
  background: #fff;
}

.product-card-body {
  background: var(--white);
}

.product-card h3 {
  font-size: 1.34rem;
  letter-spacing: -0.035em;
}

.section-dark .new-product-card {
  color: var(--ink);
  border-color: rgba(255, 255, 255, 0.12);
  background: var(--white);
}

.section-dark .new-product-card .product-card-image {
  background:
    radial-gradient(circle at 50% 25%, #ffffff, #eef2f3 64%, #dce5e8);
}

.section-dark .new-product-card .product-card-body h3 {
  color: var(--ink);
}

.section-dark .new-product-card .product-card-body p {
  color: var(--muted);
}

.section-dark .new-product-card .text-link {
  color: var(--red);
}

.section-dark .new-product-card.product-card-photo .product-card-image::before,
.section-dark .new-product-card.product-card-photo .product-card-image::after {
  display: none;
}

.process-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  border: 0;
  background: transparent;
}

.process-step {
  min-height: 225px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  background: rgba(255, 255, 255, 0.035);
}

.process-step span {
  margin-bottom: 44px;
  color: #e0bc87;
}

.process-step h3 {
  font-size: 1.32rem;
}

.value-grid {
  border-color: var(--line);
}

.value-card {
  min-height: 230px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.52);
}

.value-card h3 {
  font-size: 1.36rem;
}

.value-card-number {
  margin-bottom: 44px;
}

.cta-band {
  background:
    linear-gradient(135deg, rgba(7, 23, 31, 0.28), transparent),
    var(--red);
}

.cta-band-inner {
  padding: 68px 0;
}

.site-footer {
  border-top: 4px solid var(--red);
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    #081c27;
  background-size: 48px 48px, 48px 48px, auto;
}

.footer-brand .brand-mark {
  background: rgba(255, 255, 255, 0.12);
}

.footer-brand .brand-name {
  color: var(--white);
}

.footer-brand .brand-sub {
  color: rgba(255, 255, 255, 0.48);
}

.info-card {
  background: rgba(255, 255, 255, 0.6);
}

.contact-item a,
.contact-item strong {
  font-family: var(--sans);
  font-size: 1.05rem;
  font-weight: 700;
}

/* Factory page */

.factory-page-hero {
  position: relative;
  min-height: 500px;
  display: flex;
  padding: 96px 0 72px;
  align-items: end;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(6, 22, 31, 0.94), rgba(6, 22, 31, 0.48)),
    url("/assets/images/factory-emulsification-v2.jpg") center 44% / cover no-repeat;
}

.quality-page-hero {
  position: relative;
  min-height: 500px;
  display: flex;
  padding: 96px 0 72px;
  align-items: end;
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(6, 22, 31, 0.94), rgba(6, 22, 31, 0.44)),
    url("/assets/images/factory-rd-lab.jpg") center 44% / cover no-repeat;
}

.quality-page-hero h1,
.quality-page-hero p,
.quality-page-hero .breadcrumbs {
  color: var(--white);
}

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

.quality-page-hero p {
  color: rgba(255, 255, 255, 0.76);
}

.quality-page-hero .breadcrumbs {
  opacity: 0.66;
}

.factory-page-hero h1,
.factory-page-hero p,
.factory-page-hero .breadcrumbs {
  color: var(--white);
}

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

.factory-page-hero p {
  color: rgba(255, 255, 255, 0.76);
}

.factory-page-hero .breadcrumbs {
  opacity: 0.66;
}

.factory-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.factory-gallery-item {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  margin: 0;
  background: #d9e2e5;
}

.factory-gallery-item.portrait {
  min-height: 720px;
  grid-row: span 2;
}

.factory-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.factory-gallery-item::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(6, 22, 31, 0.78));
  content: "";
}

.factory-gallery-item figcaption {
  position: absolute;
  right: 24px;
  bottom: 22px;
  left: 24px;
  z-index: 1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  color: var(--white);
}

.factory-gallery-item figcaption strong {
  font-size: 1.22rem;
  font-weight: 750;
}

.factory-gallery-item figcaption span {
  font-size: 0.6rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.buyer-guide {
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(7, 24, 33, 0.96), rgba(7, 24, 33, 0.72)),
    url("/assets/images/factory-rd-lab.jpg") center / cover no-repeat;
}

.buyer-guide h2,
.buyer-guide h3 {
  color: var(--white);
}

.buyer-guide p {
  color: rgba(255, 255, 255, 0.68);
}

.buyer-guide-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 64px;
  align-items: start;
}

.buyer-parameter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.buyer-parameter {
  min-height: 138px;
  padding: 22px;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.buyer-parameter span {
  display: block;
  margin-bottom: 20px;
  color: #e0bc87;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.buyer-parameter h3 {
  margin-bottom: 8px;
  font-size: 1.1rem;
}

.buyer-parameter p {
  margin: 0;
  font-size: 0.79rem;
}

/* Flagship product */

.flagship-feature {
  position: relative;
  overflow: hidden;
  padding: 88px 0;
  background:
    radial-gradient(circle at 78% 22%, rgba(189, 149, 97, 0.16), transparent 28%),
    linear-gradient(rgba(18, 39, 51, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 39, 51, 0.022) 1px, transparent 1px),
    #f9faf9;
  background-size: auto, 52px 52px, 52px 52px, auto;
}

.flagship-feature-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: center;
}

.flagship-visual {
  position: relative;
  display: grid;
  min-height: 600px;
  padding: 40px;
  place-items: center;
  border: 1px solid rgba(18, 39, 51, 0.09);
  background:
    radial-gradient(circle at 50% 38%, #fff 0%, #f7f8f7 44%, #e7ecee 100%);
  box-shadow: 0 34px 90px rgba(13, 37, 51, 0.12);
}

.flagship-visual::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--red), #d3ad77, transparent);
  content: "";
}

.flagship-visual img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 540px;
  height: 100%;
  max-height: 560px;
  object-fit: contain;
  filter: drop-shadow(0 26px 32px rgba(38, 40, 35, 0.16));
}

.flagship-label {
  position: absolute;
  top: 22px;
  left: 22px;
  z-index: 2;
  padding: 8px 12px;
  color: var(--white);
  background: var(--red);
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.flagship-ph {
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: 2;
  padding: 12px 15px;
  color: var(--ink);
  border: 1px solid rgba(18, 39, 51, 0.12);
  background: rgba(255, 255, 255, 0.9);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.flagship-ph strong {
  display: block;
  margin-bottom: 3px;
  color: var(--red);
  font-size: 1.18rem;
}

.flagship-content h2 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(2.8rem, 4.7vw, 5rem);
}

.flagship-lede {
  max-width: 720px;
  margin-bottom: 26px;
  color: var(--ink-soft);
  font-size: 1.02rem;
  line-height: 1.74;
}

.flagship-points {
  display: grid;
  margin: 30px 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.flagship-point {
  min-height: 130px;
  padding: 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.56);
}

.flagship-point span {
  display: block;
  margin-bottom: 20px;
  color: var(--red);
  font-size: 0.59rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.flagship-point h3 {
  margin-bottom: 7px;
  font-size: 1.02rem;
  letter-spacing: -0.02em;
}

.flagship-point p {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.55;
}

.patent-line {
  display: flex;
  margin: 22px 0 28px;
  padding: 14px 16px;
  align-items: center;
  gap: 14px;
  border-left: 3px solid var(--red);
  background: rgba(152, 37, 50, 0.055);
  color: #4c5e68;
  font-size: 0.72rem;
  line-height: 1.55;
}

.patent-line strong {
  flex: 0 0 auto;
  color: var(--ink);
  font-size: 0.62rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.product-gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.product-gallery-item {
  position: relative;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  background: #eef2f2;
}

.product-gallery-item img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
}

.product-gallery-item figcaption {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  padding: 12px 14px;
  color: var(--white);
  background: rgba(9, 30, 40, 0.72);
  font-size: 0.61rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.product-detail-image img[src*="after-perm-dye-cream-main"] {
  padding: 30px;
  object-fit: contain;
  background:
    radial-gradient(circle at 50% 40%, #fff, #edf1f1 68%, #d7e1e4);
}

@media (max-width: 1100px) {
  .manufacturing-hero-inner {
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 34px;
  }

  .industry-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .category-card {
    min-height: 420px;
  }

  .certificate-card {
    grid-template-columns: 0.95fr 1.05fr;
  }

  .factory-photo-grid {
    grid-auto-rows: 190px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .factory-photo.large {
    grid-column: span 2;
  }

  .factory-photo.wide {
    grid-column: span 2;
  }

  .flagship-feature-grid {
    grid-template-columns: minmax(320px, 0.82fr) minmax(0, 1.18fr);
    gap: 40px;
  }
}

@media (max-width: 860px) {
  .manufacturing-hero,
  .manufacturing-hero-inner {
    min-height: 760px;
  }

  .manufacturing-hero-inner {
    padding-top: 100px;
    grid-template-columns: 1fr;
    gap: 26px;
    align-items: end;
  }

  .manufacturing-hero-copy {
    max-width: 680px;
  }

  .manufacturing-hero h1 {
    font-size: clamp(3.4rem, 11vw, 5.7rem);
  }

  .hero-capability-panel {
    max-width: 620px;
  }

  .company-proof-grid,
  .buyer-guide-grid,
  .certificate-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .company-proof-photo {
    min-height: 460px;
  }

  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .factory-photo-grid {
    grid-auto-rows: 210px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .factory-photo.large,
  .factory-photo.wide {
    grid-column: span 2;
  }

  .factory-photo.tall {
    grid-row: span 1;
  }

  .factory-gallery-grid {
    grid-template-columns: 1fr;
  }

  .factory-gallery-item.portrait {
    min-height: 420px;
    grid-row: auto;
  }

  .flagship-feature-grid,
  .product-gallery-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .flagship-visual {
    min-height: 520px;
  }
}

@media (max-width: 600px) {
  .section {
    padding: 72px 0;
  }

  .site-nav a {
    font-family: var(--sans);
    font-size: 1.05rem;
    letter-spacing: 0.04em;
  }

  .manufacturing-hero,
  .manufacturing-hero-inner {
    min-height: 760px;
  }

  .manufacturing-hero-inner {
    padding-top: 90px;
    padding-bottom: 28px;
  }

  .manufacturing-hero h1 {
    font-size: clamp(3rem, 14vw, 4.6rem);
  }

  .manufacturing-hero .lede {
    font-size: 0.98rem;
  }

  .hero-capability-panel {
    padding: 18px;
  }

  .hero-capability {
    min-height: 94px;
    padding: 14px 12px;
  }

  .industry-product-grid,
  .factory-metric-strip,
  .certificate-card,
  .buyer-parameter-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .industry-product-card {
    min-height: 360px;
  }

  .industry-card-media {
    min-height: 235px;
  }

  .company-proof-photo {
    min-height: 390px;
  }

  .factory-photo-grid {
    display: grid;
    grid-auto-rows: 220px;
    grid-template-columns: 1fr;
  }

  .factory-photo.large,
  .factory-photo.wide {
    grid-column: auto;
  }

  .certificate-card {
    min-height: 0;
  }

  .certificate-thumb {
    min-height: 340px;
  }

  .certificate-content {
    padding: 24px 20px;
  }

  .factory-gallery-item {
    min-height: 300px;
  }

  .factory-page-hero {
    min-height: 470px;
    padding-bottom: 54px;
  }

  .quality-page-hero {
    min-height: 470px;
    padding-bottom: 54px;
  }

  .buyer-parameter {
    min-height: 120px;
  }

  .flagship-feature {
    padding: 70px 0;
  }

  .flagship-visual {
    min-height: 430px;
    padding: 26px;
  }

  .flagship-visual img {
    max-height: 410px;
  }

  .flagship-content h2 {
    font-size: clamp(2.5rem, 11vw, 3.65rem);
  }

  .flagship-points {
    grid-template-columns: 1fr;
  }

  .patent-line {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-gallery-item img {
    min-height: 340px;
  }
}
