.factory-combined .lang-en {
  display: none;
}

html[data-lang="en"] .factory-combined .lang-zh {
  display: none;
}

html[data-lang="en"] .factory-combined .lang-en {
  display: inline;
}

html[data-lang="en"] .factory-combined p.lang-en,
html[data-lang="en"] .factory-combined span.lang-en {
  display: block;
}

.quality-story {
  width: min(1320px, calc(100% - 48px));
  margin-inline: auto;
  padding: 145px 0 100px;
}

.quality-story header,
.quality-craft header {
  max-width: 920px;
  margin: 0 auto 62px;
  text-align: center;
}

.quality-story h1,
.quality-foundation > h2,
.quality-craft h2,
.quality-flow h2,
.risk-copy h2,
.quality-reports h2,
.quality-cta h2 {
  margin: 0;
  font-size: clamp(34px, 3.4vw, 52px);
  font-weight: 500;
  line-height: 1.25;
}

.quality-story header p,
.quality-craft header p {
  max-width: 800px;
  margin: 20px auto 0;
  color: var(--body);
  font-size: 14px;
  line-height: 2;
}

.story-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.story-cards figure {
  margin: 0;
}

.story-cards img {
  width: 100%;
  aspect-ratio: 0.88;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.02);
}

.story-cards figcaption {
  display: grid;
  gap: 7px;
  padding-top: 25px;
  font-size: 16px;
  text-align: center;
}

.story-cards small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.08em;
}

.quality-foundation {
  padding: 85px 24px 105px;
}

.quality-foundation > h2 {
  margin-bottom: 45px;
  text-align: center;
}

.foundation-panel {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  width: min(1320px, 100%);
  min-height: 600px;
  margin-inline: auto;
  padding: 70px 64px;
  background: #efefed;
}

.foundation-year {
  align-self: start;
}

.foundation-year > p {
  margin: 0 0 42px;
  color: var(--muted);
  font-size: 15px;
}

.foundation-year > p::after {
  content: "";
  display: block;
  width: 56px;
  height: 1px;
  margin-top: 7px;
  background: #89857d;
}

.foundation-year > p span {
  margin-left: 18px;
  color: var(--ink-soft);
  font-size: 28px;
}

.foundation-year > div {
  display: flex;
  gap: 2px;
}

.foundation-year b {
  display: grid;
  place-items: center;
  width: 120px;
  height: 170px;
  color: var(--white);
  background: #1b1b1b;
  font-size: 58px;
}

.foundation-panel > figure {
  height: 290px;
  margin: 0;
  overflow: hidden;
}

.foundation-panel > figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 48%;
  filter: saturate(0.9) contrast(1.03);
}

.foundation-copy {
  grid-column: 1 / -1;
  align-self: end;
  margin-top: 45px;
}

.foundation-copy p {
  margin: 0 0 12px;
  color: var(--body);
  font-size: 13px;
  line-height: 1.9;
}

.quality-craft {
  padding: 100px 24px 130px;
}

.quality-craft header {
  margin-bottom: 55px;
}

.craft-collage {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr 0.9fr 1.55fr;
  grid-template-rows: repeat(3, 180px);
  gap: 10px;
  width: min(1180px, 100%);
  margin-inline: auto;
}

.craft-collage figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: var(--paper);
}

.craft-collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.88) contrast(1.03);
}

.craft-collage figure::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(17, 16, 13, 0.66));
}

.craft-collage figcaption {
  position: absolute;
  z-index: 1;
  right: 15px;
  bottom: 13px;
  left: 15px;
  color: var(--white);
  font-size: 12px;
}

.craft-a { grid-column: 1 / 3; grid-row: 1 / 3; }
.craft-b { grid-column: 3 / 5; grid-row: 1 / 2; }
.craft-c { grid-column: 3 / 4; grid-row: 2 / 3; }
.craft-d { grid-column: 4 / 5; grid-row: 2 / 4; }
.craft-e { grid-column: 1 / 2; grid-row: 3 / 4; }
.craft-f { grid-column: 2 / 3; grid-row: 3 / 4; }
.craft-g { grid-column: 3 / 4; grid-row: 3 / 4; }

.craft-note {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.quality-flow {
  padding: clamp(100px, 11vw, 160px) max(24px, calc((100vw - var(--content)) / 2));
  background: var(--paper);
}

.quality-flow header {
  max-width: 820px;
}

.quality-flow header > p,
.risk-copy > p,
.quality-reports header > p,
.quality-cta p {
  margin: 0 0 18px;
  color: var(--champagne);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
}

.quality-flow header > span,
.quality-reports header > span {
  display: block;
  margin-top: 22px;
  color: var(--body);
  font-size: 14px;
  line-height: 1.8;
}

.flow-board {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  margin-top: 65px;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.flow-board article {
  min-height: 350px;
  padding: 28px 20px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.flow-board strong {
  display: block;
  padding-bottom: 23px;
  color: var(--olive-dark);
  font-size: 18px;
  border-bottom: 2px solid var(--champagne);
}

.flow-board ol {
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.flow-board li {
  position: relative;
  min-height: 54px;
  padding: 0 0 18px 29px;
  color: var(--body);
  font-size: 12px;
  line-height: 1.5;
}

.flow-board li::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: 0;
  left: 0;
  color: var(--champagne);
  font-size: 9px;
}

.flow-board li::after {
  content: "";
  position: absolute;
  top: 19px;
  bottom: 1px;
  left: 7px;
  width: 1px;
  background: var(--line);
}

.risk-prevention {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  min-height: 720px;
}

.risk-image {
  min-height: 650px;
  overflow: hidden;
}

.risk-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.03);
}

.risk-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(52px, 7vw, 100px);
  background: var(--white);
}

.risk-table {
  margin-top: 40px;
  border-top: 1px solid var(--line);
}

.risk-table article {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.risk-table strong {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
}

.risk-table span {
  color: var(--body);
  font-size: 13px;
  line-height: 1.7;
}

.quality-reports {
  width: min(var(--content), calc(100% - 48px));
  margin-inline: auto;
  padding: clamp(110px, 12vw, 180px) 0;
}

.quality-reports header {
  max-width: 840px;
  margin-bottom: 65px;
}

.report-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.report-list article {
  min-height: 310px;
  padding: 35px 30px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.report-list article > span {
  color: var(--champagne);
  font-size: 9px;
  font-weight: 700;
}

.report-list h3 {
  margin: 70px 0 12px;
  font-size: 22px;
}

.report-list p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.report-list button {
  margin-top: 40px;
  padding: 12px 17px;
  color: var(--muted);
  background: transparent;
  border: 1px solid var(--line);
  font-size: 11px;
}

.report-list .report-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 40px;
  min-height: 42px;
  padding: 0 17px;
  color: var(--white);
  background: var(--olive);
  border: 1px solid var(--olive);
  font-size: 11px;
  font-weight: 700;
}

.quality-cta {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 70px;
  padding: clamp(90px, 10vw, 145px) max(24px, calc((100vw - var(--content)) / 2));
  color: var(--white);
  background: var(--olive-dark);
}

.quality-cta span {
  display: block;
  max-width: 760px;
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  line-height: 1.8;
}

.quality-cta a {
  display: inline-grid;
  grid-template-columns: auto auto;
  gap: 12px;
  align-items: center;
  min-height: 58px;
  padding: 0 28px;
  border: 1px solid rgba(255, 255, 255, 0.54);
  font-size: 13px;
  font-weight: 700;
}

.quality-cta a small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 10px;
  font-weight: 400;
}

html[data-lang] .quality-cta a small {
  display: none;
}

@media (max-width: 1050px) {
  .foundation-panel {
    grid-template-columns: 1fr;
  }

  .foundation-panel > figure {
    margin-top: 40px;
  }

  .flow-board {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 760px) {
  .story-cards,
  .risk-prevention,
  .quality-cta {
    grid-template-columns: 1fr;
  }

  .story-cards {
    gap: 42px;
  }

  .story-cards img {
    aspect-ratio: 1.05;
  }

  .foundation-panel {
    padding: 48px 28px;
  }

  .foundation-year b {
    width: 82px;
    height: 120px;
    font-size: 42px;
  }

  .craft-collage {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(4, 200px);
  }

  .craft-a,
  .craft-b,
  .craft-c,
  .craft-d,
  .craft-e,
  .craft-f,
  .craft-g {
    grid-column: auto;
    grid-row: auto;
  }

  .craft-a,
  .craft-d {
    grid-row: span 2;
  }

  .flow-board {
    grid-template-columns: repeat(2, 1fr);
  }

  .risk-image {
    min-height: 480px;
  }

  .report-list {
    grid-template-columns: 1fr;
  }

  .quality-cta a {
    width: fit-content;
  }
}

@media (max-width: 520px) {
  .quality-story {
    width: calc(100% - 32px);
    padding-top: 125px;
  }

  .quality-story h1,
  .quality-foundation > h2,
  .quality-craft h2,
  .quality-flow h2,
  .risk-copy h2,
  .quality-reports h2,
  .quality-cta h2 {
    font-size: 34px;
  }

  .quality-foundation {
    padding-inline: 16px;
  }

  .foundation-year b {
    width: 66px;
    height: 100px;
    font-size: 36px;
  }

  .foundation-panel > figure {
    height: 230px;
  }

  .quality-craft {
    padding-inline: 16px;
  }

  .craft-collage {
    grid-template-rows: repeat(4, 160px);
    gap: 7px;
  }

  .flow-board article {
    min-height: 300px;
    padding: 24px 16px;
  }

  .risk-image {
    min-height: 360px;
  }

  .risk-copy {
    padding: 58px 24px;
  }

  .quality-cta a {
    width: 100%;
    justify-content: center;
  }
}
