.factory-hero {
  background: #102d36;
  color: #f6faf8;
  padding: calc(var(--header-height) + clamp(22px, 2.6vw, 44px)) 0 clamp(24px, 2.8vw, 46px);
}
.factory-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  grid-template-areas: "title film" "summary film";
  gap: 0 clamp(32px, 6vw, 110px);
}
.factory-intro { grid-area: title; align-self: end; }
.factory-summary { grid-area: summary; align-self: start; }
.hero-film { grid-area: film; margin: 0; width: 100%; min-width: 0; align-self: center; }
.hero-film-frame { position: relative; isolation: isolate; overflow: hidden; background: #0b2027; }
.hero-film-frame::before {
  content: ""; position: absolute; inset: -14px; z-index: -1;
  background: var(--film-still) center / cover;
  filter: blur(18px) brightness(.34) saturate(.55);
}
.hero-film video {
  display: block; width: 100%; height: clamp(290px, 59vh, 620px); height: clamp(290px, 59svh, 620px);
  object-fit: contain;
}
.hero-film video:fullscreen { height: 100%; background: #000; }
.hero-film figcaption {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 12px;
  margin-top: 11px; color: #e6eeeb; font-size: .82rem; line-height: 1.5;
}
.hero-film figcaption span:last-child { color: #aac4be; font-variant-numeric: tabular-nums; }
.factory-name, .workshop-label {
  font: 650 .69rem/1.55 var(--sans);
  text-transform: uppercase;
  letter-spacing: .115em;
}
.factory-name { color: #a9d9cd; }
.factory-intro h1 {
  margin: 20px 0 25px;
  font-size: clamp(3rem, 4.85vw, 5.65rem);
  font-weight: 520;
  line-height: 1.07;
  letter-spacing: -.055em;
}
.factory-intro h1 span { display: block; }
.factory-intro h1 span:last-child { color: #adddcf; }
:lang(zh-CN) .factory-intro h1 { font-size: clamp(2.65rem, 4.4vw, 5.2rem); line-height: 1.2; }
.factory-lead { max-width: 45ch; color: #d7e5e4; font-size: clamp(.95rem, 1.16vw, 1.18rem); line-height: 1.76; }
:lang(zh-CN) .factory-lead { max-width: 30em; line-height: 1.94; }
.factory-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 28px; }
.factory-actions .primary-btn, .factory-contact .primary-btn { background: #b9ead9; color: #12362f; }
.factory-actions .primary-btn:hover, .factory-contact .primary-btn:hover { background: #daf6eb; }
.factory-actions .line-link { border-color: #739690; }
.workshop-gallery, .border-photo { min-width: 0; margin: 0; }
.workshop-image { aspect-ratio: 1.42; overflow: hidden; background: #bfcac7; }
.workshop-image img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.workshop-image img.is-portrait { object-fit: contain; }
.workshop-gallery figcaption {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-top: 15px; padding-top: 13px; border-top: 1px solid #54716f;
}
.workshop-caption { display: grid; gap: 4px; }
.workshop-label { color: var(--teal); font-size: .66rem; }
#workshop-caption { color: var(--ink); max-width: 55ch; font-size: .84rem; line-height: 1.55; }
.workshop-controls { display: flex; flex: none; align-items: center; gap: 8px; }
.workshop-controls[hidden] { display: none; }
.workshop-controls button { display: grid; place-items: center; width: 37px; height: 37px; padding: 0; border: 1px solid #8ba7a1; border-radius: 50%; background: transparent; color: var(--ink); }
.workshop-controls button:hover { background: #dcece6; }
.workshop-controls svg { width: 15px; height: 15px; }
#photo-number { font: 500 .72rem/1 var(--english); font-variant-numeric: tabular-nums; white-space: nowrap; }
.factory-equipment { background: #f7f8f5; }
.equipment-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .86fr); align-items: start; gap: clamp(28px, 7vw, 100px); }
.factory-equipment .application-heading { align-items: end; }
.equipment-grid .workshop-gallery figcaption { border-color: var(--line); }
.factory-process { background: #eff3f0; }
.factory-section-head { display: grid; align-items: end; grid-template-columns: 1fr .95fr; gap: 8%; margin-bottom: clamp(26px, 3vw, 48px); }
.factory-equipment h2, .factory-process h2, .factory-products h2, .factory-contact h2 {
  margin: 0; font-size: clamp(2rem, 3.8vw, 4.2rem); font-weight: 530;
  letter-spacing: -.048em; line-height: 1.12; text-wrap: balance;
}
:lang(zh-CN) :is(.factory-equipment, .factory-process, .factory-products, .factory-contact) h2 { line-height: 1.28; }
.factory-section-head p, .fabrication-notes dd, .application-grid p, .factory-contact p {
  color: var(--muted); font-size: clamp(.93rem, 1.04vw, 1.08rem); line-height: 1.76;
}
.fabrication-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .95fr); gap: 8%; align-items: start; }
.border-photo img { width: 100%; height: auto; max-height: 460px; object-fit: contain; background: #e7e9e5; }
.border-photo figcaption { margin-top: 10px; color: var(--muted); font-size: .84rem; line-height: 1.6; }
.fabrication-notes { margin: 0; border-top: 1px solid #a5b9b4; }
.fabrication-notes > div { padding: clamp(16px, 1.6vw, 27px) 0; border-bottom: 1px solid var(--line); }
.fabrication-notes dt, .application-grid h3 { font-weight: 570; font-size: clamp(1.13rem, 1.6vw, 1.65rem); line-height: 1.28; letter-spacing: -.024em; }
.fabrication-notes dd, .application-grid p { margin: 7px 0 0; }
.fabrication-grid .line-link { margin-top: 16px; color: var(--teal); }
.factory-products { background: #e9f0ec; }
.application-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px; margin-bottom: clamp(24px, 3.4vw, 54px); }
.application-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(20px, 2.3vw, 40px); }
.application-grid a { padding: 17px 0; border-top: 2px solid #7c9a92; }
.application-grid a:hover { border-color: var(--teal); }
.application-grid a > div { display: flex; align-items: baseline; justify-content: space-between; gap: 9px; }
.application-grid .icon-arrow { width: 15px; height: 15px; flex: none; color: var(--teal); }
.application-grid h3 { overflow-wrap: anywhere; }
.application-grid a:hover h3 { color: var(--teal); }
.factory-contact { padding-block: clamp(42px, 4.8vw, 82px); background: #234c4d; color: white; }
.factory-contact .container { display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.factory-contact h2 { font-size: clamp(1.8rem, 2.9vw, 3.4rem); }
.factory-contact p { max-width: 68ch; margin-top: 12px; color: #d4e4e0; }
.factory-contact .primary-btn { flex: none; }

@media (max-width:1000px) {
  .factory-hero-grid { column-gap: 28px; }
  .factory-section-head, .fabrication-grid { gap: 5%; }
  .application-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 26px; }
}
@media (max-width:780px) {
  .factory-hero { padding-top: calc(var(--header-height) + 16px); }
  .factory-hero-grid, .factory-section-head, .fabrication-grid, .equipment-grid { grid-template-columns: 1fr; }
  .factory-hero-grid { grid-template-areas: "title" "film" "summary"; row-gap: 14px; }
  .hero-film-frame video { height: clamp(235px, 51vh, 450px); height: clamp(235px, 51svh, 450px); }
  .factory-intro h1 { margin: 14px 0 17px; font-size: clamp(2.7rem, 8.6vw, 4.4rem); }
  :lang(zh-CN) .factory-intro h1 { font-size: clamp(2.4rem, 7.5vw, 3.9rem); }
  .factory-lead { max-width: 57ch; }
  .factory-actions { margin-top: 18px; }
  .workshop-image { aspect-ratio: 1.55; }
  .factory-section-head { gap: 13px; }
  .fabrication-grid { gap: 24px; }
  .border-photo img { max-height: 350px; }
  .factory-contact .container { flex-wrap: wrap; }
}
@media (max-width:520px) {
  .factory-hero { padding-bottom: 25px; }
  .factory-name { font-size: .63rem; letter-spacing: .09em; }
  .factory-hero-grid { row-gap: 12px; }
  .factory-intro h1 { margin-bottom: 0; }
  .hero-film figcaption { margin-top: 6px; font-size: .77rem; }
  .workshop-gallery figcaption { align-items: start; gap: 12px; padding-top: 10px; margin-top: 9px; }
  .workshop-controls { gap: 7px; }
  .workshop-controls button { width: 34px; height: 34px; }
  .workshop-caption { gap: 1px; }
  #workshop-caption { font-size: .78rem; }
  .application-grid { grid-template-columns: 1fr; gap: 0; }
  .application-grid a { padding-block: 18px; border-top-width: 1px; }
  .factory-equipment.section-space, .factory-process.section-space, .factory-products.section-space { padding-block: 40px; }
}
@media (max-height: 500px) and (orientation: landscape) {
  .factory-hero { padding-top: calc(var(--header-height) + 10px); }
  .factory-hero-grid { grid-template-columns: 1fr 1fr; grid-template-areas: "title film" "summary film"; }
  .hero-film-frame video { height: calc(100svh - var(--header-height) - 52px); }
  .factory-intro h1 { font-size: clamp(1.7rem, 3.8vw, 2.8rem); margin-block: 6px 8px; }
  .factory-actions { margin-top: 10px; }
}
