/* Campaign photography and editorial layouts for the home and factory pages. */
main .entry-content .tm-home-hero {
  display: flex;
  align-items: stretch;
  isolation: isolate;
  min-height: clamp(480px, 43vw, 640px);
}
.tm-home-hero .tm-hero-wrap {
  display: flex;
  align-items: center;
  width: min(1200px, calc(100% - 48px));
  margin-inline: auto;
}
.tm-home-hero .tm-hero-wrap .zy-hero-full-text {
  z-index: 1;
  width: min(44%, 520px);
  max-width: none;
  margin: 0;
  padding: 48px 0;
}
main .entry-content .tm-home-hero h1 {
  font-size: clamp(44px, 4.15vw, 62px);
  line-height: 1.03;
  letter-spacing: -.045em;
  text-wrap: initial;
}
main .entry-content .tm-home-hero h1 span { display: block; }
html[lang="zh-CN"] main .entry-content .tm-home-hero h1 { max-width: none; letter-spacing: .025em; }
main .entry-content .tm-home-hero p { color: var(--tm-copy); max-width: 36ch; }
.tm-home-hero .tm-home-picture {
  position: absolute;
  inset: 0 0 0 31%;
  mask-image: linear-gradient(to right, transparent, #000 28%);
}
.tm-home-hero .tm-home-picture img {
  height: 100%;
  min-height: 0;
  object-position: 64% 52%;
}
.tm-home-hero .tm-home-picture::after { display: none; }

main .entry-content .tm-home-products { padding-block: clamp(36px, 4.2vw, 62px); }
.tm-home-products .zy-h2 { margin-bottom: clamp(16px, 2vw, 28px); }
.tm-home-products .zy-tile { gap: 11px; }
.tm-home-products .zy-tile-media { border-radius: 12px; box-shadow: 0 4px 14px #30281912; }
main .entry-content :is(.tm-home-products .zy-tile, .tm-product-categories .zy-cat) img {
  aspect-ratio: 1;
  object-fit: cover;
  object-position: center;
  mix-blend-mode: normal;
  padding: 0;
}
main .entry-content :is(.tm-home-products .zy-tile, .tm-product-categories .zy-cat) .tm-card-sets { object-position: center 57%; }
main .entry-content :is(.tm-home-products .zy-tile, .tm-product-categories .zy-cat) .tm-card-custom { object-position: 47% center; }

main .entry-content .tm-factory-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.03fr) minmax(0, .97fr);
  align-items: center;
  gap: clamp(22px, 6vw, 90px);
  width: min(1200px, calc(100% - 48px));
  margin: 0 auto;
  padding-block: clamp(30px, 4vw, 56px);
}
.tm-factory-intro h1 {
  color: var(--tm-green);
  font: 400 clamp(37px, 4.15vw, 61px) / 1.06 Georgia, 'Songti SC', SimSun, serif;
  letter-spacing: -.034em;
  margin: 0;
  text-wrap: balance;
}
html[lang="zh-CN"] .tm-factory-intro h1 { letter-spacing: .015em; }
.tm-factory-intro p { margin: 0; max-width: 57ch; line-height: 1.65; }
.tm-factory-intro .zy-button { margin-top: 14px; }
main .entry-content .tm-factory-photo { margin-block: 0 !important; }
.tm-factory-photo img {
  display: block;
  width: 100%;
  height: clamp(296px, 33vw, 515px);
  object-fit: cover;
  object-position: 55% 53%;
}
.tm-factory-photo figcaption {
  background: var(--tm-paper);
  color: var(--zy-muted);
  padding: 9px max(16px, calc((100% - 1200px) / 2));
  font-size: .78rem;
}
.tm-factory-facts { border-block: 1px solid var(--tm-line); }
.tm-factory-floor .zy-h2 { margin-bottom: 0; text-align: left; }
.tm-factory-floor-copy {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 18px 44px;
  margin-bottom: 24px;
}
.tm-factory-floor-copy p { margin: 0; max-width: 57ch; line-height: 1.65; }
.tm-factory-floor-copy dl {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-column: 1 / -1;
  gap: 14px 22px;
  margin: 0;
  padding: 16px 0;
  border-block: 1px solid var(--tm-line);
}
.tm-factory-floor-copy dt { font-size: .85rem; line-height: 1.45; font-weight: 650; color: var(--tm-green); }
.tm-factory-floor-copy dd { margin: .25rem 0 0; font-size: .85rem; line-height: 1.45; }
.tm-factory-floor .zy-proc { gap: clamp(13px, 1.6vw, 23px); }
.tm-factory-floor .zy-proc figure { margin: 0; }
.tm-factory-floor .zy-proc img { aspect-ratio: 4 / 3; border-radius: 8px; }
.tm-factory-floor .zy-proc figcaption { margin-top: 7px; font-size: .84rem; color: var(--tm-deep); }
.tm-factory-floor + .zy-steps,
.tm-factory-floor ~ .zy-certs { padding-block: clamp(36px, 4.8vw, 70px); }
.tm-factory-floor ~ .zy-certs { background: var(--tm-stone); color: var(--tm-deep); }
.tm-factory-floor ~ .zy-certs :is(h2,p,figcaption,figcaption strong,.zy-cert-text span) { color: var(--tm-deep); }
.tm-factory-floor ~ .zy-certs .zy-cert-text span { border-color: var(--tm-line); background: var(--tm-paper); }
.tm-factory-floor ~ #custom { scroll-margin-top: 85px; }

@media (max-width: 780px) {
  main .entry-content .tm-home-hero { display: grid; grid-template-columns: minmax(0,1fr); min-height: 0; }
  .tm-home-hero .tm-hero-wrap { width: calc(100% - 32px); }
  .tm-home-hero .tm-hero-wrap .zy-hero-full-text { width: 100%; padding: 24px 0 20px; }
  main .entry-content .tm-home-hero h1 { font-size: clamp(36px, 10.2vw, 49px); margin-bottom: 10px; }
  main .entry-content .tm-home-hero p { font-size: .875rem; line-height: 1.52; }
  .tm-home-hero .zy-actions { margin-top: 13px; }
  .tm-home-hero .tm-home-picture { position: relative; inset: auto; mask-image: none; }
  .tm-home-hero .tm-home-picture img { height: clamp(228px, 63vw, 390px); object-position: 50% 56%; }
  .tm-home-hero .tm-home-picture::after {
    display: block;
    background: linear-gradient(to bottom, #f8ead6, #f8ead600 30px);
  }
  main .entry-content .tm-factory-intro { grid-template-columns: minmax(0, 1fr); width: calc(100% - 32px); gap: 13px; padding-block: 24px; }
  .tm-factory-intro h1 { max-width: 16ch; }
  .tm-factory-photo img { height: clamp(222px, 64vw, 380px); object-position: 31% 54%; }
  .tm-factory-floor-copy { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .tm-factory-floor-copy dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 360px) {
  main .entry-content .tm-home-hero h1 { font-size: clamp(30px, 9.8vw, 36px); }
}
