#home-view { --home-left: 3%; --home-right: 2.45%; }
.product-paths { left: var(--home-left); right: var(--home-right); }
.factory-story {
  color: #102648;
  padding: clamp(26px,2.7vw,56px) var(--home-right) clamp(35px,3.8vw,78px) var(--home-left);
  background: linear-gradient(180deg,#edf6ff 0,#fff 36rem);
}
.factory-story, #quality-documents { scroll-margin-top: var(--nav-h,74px); }
.factory-story h2 { font-size: clamp(30px,2.75vw,62px); font-weight: 635; letter-spacing: -.052em; line-height: 1.07; }
.factory-story h3 { font-size: clamp(19px,1.48vw,30px); font-weight: 630; letter-spacing: -.035em; line-height: 1.17; }
.section-label,.document-issuer { margin: 0 0 11px; font-size: clamp(11px,.78vw,15px); font-weight: 650; line-height: 1.4; }
.section-label { color: #10549b; letter-spacing: .09em; text-transform: uppercase; }
.document-issuer { color: #325a77; }
.editorial-link { color: #0756ad; display: inline-flex; align-items: center; gap: 12px; width: fit-content; min-height: 36px; font-size: clamp(14px,.95vw,18px); line-height: 1.4; font-weight: 605; }
.editorial-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.section-intro { display: flex; justify-content: space-between; align-items: end; gap: 18px 35px; margin-bottom: clamp(18px,1.7vw,32px); }
.section-intro > p { font-size: clamp(14px,1vw,19px); color: #425b72; max-width: 48ch; }
.quality-overview,.export-section,.water-guide { margin-top: clamp(35px,4.2vw,86px); }
.document-pair { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(13px,1.65vw,36px); }
.delivery-steps dt { color: #183857; font-weight: 640; font-size: clamp(14px,1.02vw,19px); line-height: 1.4; }
.delivery-steps dd,.built-project div > p:not(.document-issuer),.document-item div > p:not(.document-issuer) { color: #425b70; font-size: clamp(14px,1.02vw,18px); line-height: 1.5; margin: 5px 0 0; }
.document-pair { border-block: 1px solid #bfd4e5; gap: 0; }
.document-item { display: grid; grid-template-columns: minmax(100px,.54fr) minmax(0,1.2fr); align-items: center; gap: clamp(16px,2vw,45px); padding: clamp(20px,1.75vw,40px) clamp(18px,1.8vw,40px) clamp(20px,1.75vw,40px) 0; }
.document-item + .document-item { border-left: 1px solid #c7d9e6; padding-left: clamp(18px,2.3vw,53px); }
.document-cover { display: grid; place-items: center; padding: clamp(12px,1.2vw,25px); background: #eef4f8; border-radius: 10px; }
.document-cover img { width: 100%; height: clamp(135px,11vw,255px); object-fit: contain; filter: drop-shadow(0 2px 5px #10395938); }
.document-item h3 { margin-bottom: 8px; }
.doc-data { margin: 14px 0 7px; font-size: clamp(12px,.92vw,16px); }
.doc-data div { display: flex; flex-wrap: wrap; gap: 3px 10px; margin: 4px 0; }
.doc-data dt { color: #50637a; }
.doc-data dd { margin: 0; font-weight: 550; }
.document-item .editorial-link span { font-size: .82em; font-weight: 520; }
.export-section { display: grid; grid-template-columns: 1.75fr 1fr; gap: clamp(24px,3vw,74px); align-items: center; }
.delivery-steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); margin: 23px 0 0; gap: clamp(14px,1.8vw,36px); }
.delivery-steps div { border-top: 2px solid #8eb4d3; padding-top: 12px; }
.built-project { display: grid; grid-template-columns: .7fr 1fr; align-items: center; gap: clamp(15px,1.2vw,28px); padding: clamp(12px,1.2vw,26px); background: #eff6fa; border-radius: 12px; }
.built-project img { width: 100%; height: clamp(105px,8.8vw,205px); object-fit: cover; border-radius: 6px; }
.built-project h3 { font-size: clamp(18px,1.4vw,28px); }
.built-project:hover .editorial-link { text-decoration: underline; }
.water-guide { border-top: 1px solid #bfd4e5; padding-top: clamp(19px,2vw,40px); }
.water-guide h2 { font-size: clamp(24px,2vw,38px); }
#challenge-list { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: clamp(12px,1.7vw,38px); }
#challenge-list a { display: block; padding: 0 15px 0 0; }
#challenge-list strong { display: flex; justify-content: space-between; gap: 10px; color: #0756ad; font-size: clamp(15px,1.15vw,22px); }
#challenge-list small { display: block; font-size: clamp(13px,.95vw,17px); line-height: 1.45; color: #435c74; margin-top: 5px; }
#challenge-list a:hover strong { text-decoration: underline; }
/* The factory feature shares the product section's outside gutters. */
.factory-story .factory-spread {
  --tour-blue: #0753ad;
  --tour-navy: #123556;
  --tour-text: #40596c;
  --tour-line: #cfdeea;
  --tour-gutter: clamp(16px, 2.1vw, 48px);
  --tour-gap: clamp(16px, 1.5vw, 36px);
  width: 100%;
  color: var(--tour-navy); background: #fff; border: 1px solid var(--tour-line);
  border-radius: 14px; overflow: hidden; box-shadow: none;
}
.tour-masthead {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center;
  gap: clamp(14px, 2.1vw, 30px); padding: 23px var(--tour-gutter);
  background: linear-gradient(90deg, #fff 30%, #f4faff 63%, #e7f6ffe6 78%, #daf2ffba), url("assets/inner-water.webp") right 47% / 48% auto no-repeat;
  border-bottom: 3px solid #0d65b1;
}
.tour-brand { display: flex; align-items: center; gap: 7px; padding-right: 25px; border-right: 1px solid #b7d4e7; color: var(--tour-blue); }
.tour-brand img { width: 43px; height: auto; mix-blend-mode: multiply; }
.tour-brand span { font: 700 clamp(20px, 1.12vw, 27px)/1.1 Inter, Arial, sans-serif; letter-spacing: -.045em; }
.factory-spread .tour-heading h2 { font-size: clamp(25px, 2.15vw, 40px); line-height: 1.14; font-weight: 600; margin: 0; }
.tour-heading p { display: flex; flex-wrap: wrap; gap: 2px 14px; margin: 6px 0 0; font-size: clamp(13px, .7vw, 16px); color: var(--tour-text); line-height: 1.45; }
.tour-address { padding-inline-start: 13px; border-inline-start: 1px solid #b8d1e1; }
.tour-gallery-link, .tour-contact {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: fit-content;
  font: 600 14px/1.35 var(--font-ui, sans-serif); cursor: pointer;
}
.tour-gallery-link { min-height: 39px; padding: 8px 14px; border: 1px solid #94b9d3; border-radius: 6px; background: #fff; color: var(--tour-blue); }
.tour-gallery-link:hover { border-color: var(--tour-blue); background: #eef8ff; }
.tour-gallery-link .icon, .tour-contact .icon { flex: none; width: 14px; height: 14px; }
.tour-overview { padding: clamp(16px, 1.2vw, 27px) var(--tour-gutter) 0; }
.tour-highlights { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--tour-gap); }
.tour-chapters {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--tour-gap);
  margin: clamp(17px, 1.4vw, 30px) var(--tour-gutter) 0;
  border-top: 1px solid var(--tour-line); padding-block: clamp(17px, 1.15vw, 25px);
}
.tour-chapter {
  display: grid; min-width: 0; align-items: start; align-content: start;
  grid-template-columns: minmax(0,.94fr) minmax(0,1.06fr); column-gap: clamp(13px, 1.2vw, 28px);
}
.factory-spread h3 {
  font-size: clamp(19px, 1.18vw, 27px); line-height: 1.2; font-weight: 600; margin: 0 0 12px; color: var(--tour-navy);
}
.tour-chapter h3 { grid-column: 1/-1; }
.tour-overview h3, .tour-chapter h3 { display: flex; align-items: center; gap: 9px; }
.tour-overview h3::before, .tour-chapter h3::before { content: ""; width: 5px; height: .85em; border-radius: 1px 5px 1px 2px; background: #117cbd; }
.factory-spread figure { margin: 0; min-width: 0; }
.factory-spread .scene-image { position: relative; display: block; overflow: hidden; background: #eaf2f6; cursor: zoom-in; border-radius: 6px; }
.factory-spread .scene-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.factory-spread .scene-image::after {
  content: "⤢"; display: grid; place-items: center; position: absolute; bottom: 5px; right: 5px;
  width: 22px; height: 22px; border-radius: 50%; background: #123455cd; color: white; font: 17px/1 Arial, sans-serif;
}
.factory-spread .scene-image:hover::after { background: var(--tour-blue); }
.factory-spread :is(a,button):focus-visible { outline: 3px solid #0b63bf; outline-offset: 3px; }
.factory-spread h4 { font: 600 clamp(16px, .9vw, 20px)/1.3 var(--font-ui, sans-serif); color: var(--tour-navy); letter-spacing: 0; margin: 0; }
.factory-spread figcaption p { max-width: 66ch; color: var(--tour-text); font-size: clamp(14px, .77vw, 18px); line-height: 1.5; margin: 4px 0 0; }
.tour-feature .scene-image { height: clamp(140px, 12.5vw, 310px); }
.tour-feature[data-home-photo="C19"] img { object-position: 50% 33%; }
.tour-feature[data-home-photo="QY15"] img { object-position: 50% 55%; }
.tour-feature[data-home-photo="C10"] img { object-position: 50% 56%; }
.tour-feature figcaption, .tour-lead figcaption { padding-top: 10px; }
.factory-spread .tour-feature h4 { font-size: clamp(18px, 1.05vw, 24px); }
.tour-lead { grid-row: span 2; }
.tour-lead .scene-image { height: clamp(108px, 8.6vw, 200px); }
.tour-lead[data-home-photo="C04"] img { object-position: 50% 55%; }
.tour-lead[data-home-photo="C05"] img { object-position: 50% 62%; }
.tour-detail, .tour-visitor { display: grid; grid-template-columns: auto minmax(0,1fr); align-items: center; gap: 13px; }
.tour-detail + .tour-detail { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--tour-line); }
.tour-detail .scene-image { width: clamp(72px, 5.5vw, 136px); height: clamp(60px, 4.2vw, 100px); }
.tour-detail[data-home-photo="C06"] img { object-position: 50% 56%; }
.tour-detail[data-home-photo="C07"] img { object-position: 50% 51%; }
.tour-detail .scene-image::after, .tour-visitor .scene-image::after { width: 17px; height: 17px; font-size: 13px; bottom: 3px; right: 3px; }
.tour-project { margin: 0 var(--tour-gutter); border-top: 1px solid var(--tour-line); padding-block: clamp(16px, 1.4vw, 28px); }
.tour-project-link { --case-photo-height: clamp(145px, 14vw, 260px); display: grid; grid-template-columns: minmax(0, 1fr) calc(var(--case-photo-height) * 1.17) minmax(0, .88fr); gap: var(--tour-gap); align-items: center; color: inherit; text-decoration: none; }
.tour-project-intro { max-width: 47ch; }
.factory-spread .tour-project h3 { margin-bottom: 8px; }
.tour-project-intro p { color: var(--tour-text); font-size: clamp(14px, .85vw, 18px); line-height: 1.5; margin: 0; }
.tour-project-cta { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--tour-blue); font-size: 14px; font-weight: 600; }
.tour-project-cta .icon { width: 14px; height: 14px; }
.tour-project-link:hover .tour-project-cta { text-decoration: underline; text-underline-offset: 3px; }
.tour-project figure img { display: block; width: 100%; height: var(--case-photo-height); border-radius: 6px; object-fit: cover; object-position: 50% 51%; }
.tour-project figure:first-of-type img { object-position: 50% 65%; }
.tour-project figcaption { color: var(--tour-text); font-size: 13px; line-height: 1.4; margin-top: 5px; }
@media (max-width: 800px) {
  .tour-project-link { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px var(--tour-gap); }
  .tour-project-intro { grid-column: 1 / -1; max-width: 68ch; }
  .tour-project-cta { margin-top: 7px; }
  .tour-project figure img { height: auto; aspect-ratio: 1.3; }
}
.tour-reception {
  display: grid; grid-template-columns: minmax(145px, .55fr) repeat(2, minmax(0,1fr));
  align-items: center; gap: clamp(16px,2vw,30px); padding: 17px var(--tour-gutter);
  border-top: 1px solid var(--tour-line); background: #eef6fa;
}
.factory-spread .tour-visit-intro h3 { margin-bottom: 9px; }
.tour-contact { padding: 3px 0; min-height: 35px; color: var(--tour-blue); border: 0; background: transparent; text-align: start; }
.tour-contact:hover { text-decoration: underline; }
.tour-visitor .scene-image { width: clamp(96px, 5vw, 124px); height: clamp(112px, 5.7vw, 141px); }
.tour-visitor .scene-image img { object-fit: contain; }
@media (max-width: 1150px) {
  .tour-chapters { grid-template-columns: 1fr; gap: 20px; }
  .tour-chapter { grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr); }
  .tour-lead .scene-image { height: clamp(110px, 18vw, 160px); }
  .tour-detail .scene-image { width: clamp(75px, 10vw, 106px); height: 70px; }
}
@media (max-width: 1000px) {
  .tour-detail { gap: 9px; }
  .tour-brand { padding-right: 14px; }
  .tour-address { padding-inline-start: 0; border: 0; }
  .tour-reception { grid-template-columns: 1fr 1fr; }
  .tour-visit-intro { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
  .factory-spread .tour-visit-intro h3 { margin: 0; }
}
@media (max-width: 740px) {
  .tour-masthead { grid-template-columns: auto 1fr; gap: 14px; padding-block: 16px; }
  .tour-heading { grid-column: 1 / -1; }
  .tour-brand { border: 0; padding: 0; }
  .tour-brand img { width: 32px; }
  .tour-brand span { font-size: 18px; }
  .tour-gallery-link { grid-area: 1 / 2; justify-self: end; }
}
@media (max-width: 600px) {
  .factory-story .factory-spread { border-radius: 9px; }
  .tour-highlights { grid-template-columns: 1fr; gap: 12px; }
  .tour-chapters { gap: 18px; margin-top: 15px; }
  .tour-chapter { display: block; }
  .factory-spread .tour-chapter h3 { font-size: 19px; margin-bottom: 10px; }
  .factory-spread .tour-feature, .factory-spread .tour-lead { display: grid; grid-template-columns: 111px minmax(0, 1fr); gap: 12px; align-items: center; }
  .tour-feature .scene-image, .tour-lead .scene-image { height: 83px; }
  .tour-feature figcaption, .tour-lead figcaption { padding: 0; }
  .factory-spread .tour-feature h4 { font-size: 16px; }
  .tour-detail, .tour-visitor { grid-template-columns: 89px minmax(0, 1fr); gap: 12px; }
  .tour-lead + .tour-detail, .tour-detail + .tour-detail { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--tour-line); }
  .tour-detail .scene-image { width: 89px; height: 61px; }
  .tour-reception { grid-template-columns: 1fr; gap: 12px; }
  .tour-visit-intro { flex-wrap: wrap; gap: 3px 8px; }
  .tour-visitor .scene-image { width: 89px; height: 98px; }
  .factory-spread figcaption p { font-size: 13px; }
}
[data-factory-album] { margin: 0 0 clamp(32px, 4vw, 60px); color: #102d48; }
.factory-album-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 14px; }
.factory-album-head h2 { font-size: clamp(24px, 2.35vw, 35px); letter-spacing: -.03em; line-height: 1.18; }
.factory-album-total { font-size: 14px; color: #49647b; }
.factory-album-groups { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.factory-album-groups button { min-height: 40px; padding: 7px 13px; border: 1px solid #c2d5e3; border-radius: 6px; color: #20415c; background: white; font: inherit; font-size: 14px; cursor: pointer; }
.factory-album-groups button:hover { border-color: #4181b5; }
.factory-album-groups button[aria-pressed="true"] { background: #153c63; border-color: #153c63; color: white; }
.factory-album-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 1.2vw, 19px); }
.factory-album-photo { display: flex; flex-direction: column; align-items: stretch; min-width: 0; overflow: hidden; padding: 0; border: 1px solid #cfdee8; border-radius: 8px; background: white; text-align: start; font: inherit; color: inherit; cursor: zoom-in; }
.factory-album-photo img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: contain; background: #eaf0f3; }
.factory-album-photo .factory-photo-title { padding: 12px 14px 0; font-size: 16px; font-weight: 650; line-height: 1.35; }
.factory-album-photo .factory-photo-caption { padding: 6px 14px 15px; font-size: 14px; line-height: 1.55; color: #405a6e; }
.factory-album-photo:hover { border-color: #5488ac; }
.factory-album-photo:hover .factory-photo-title { color: #0756ad; }
#photo-viewer { position: fixed; margin: auto; width: min(940px, 94vw); max-width: none; max-height: 94dvh; padding: 0; border: none; border-radius: 12px; overflow: auto; background: white; color: #15344d; box-shadow: 0 12px 54px #04172955; }
#photo-viewer::backdrop { background: #071d30ce; }
.tour-viewer-head, .tour-viewer-details { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; }
.tour-viewer-head { font-size: 14px; color: #415b70; }
#photo-viewer button { font: inherit; cursor: pointer; }
#photo-viewer [data-photo-close], .tour-viewer-nav button { display: grid; place-content: center; min-width: 40px; height: 40px; padding: 0; border: 1px solid #c3d4df; border-radius: 6px; background: white; color: #163957; font-size: 21px; }
#photo-viewer .tour-photo-stage { position: relative; display: grid; place-items: center; width: 100%; padding: 0; border: none; background: #10283e; cursor: zoom-in; }
.tour-photo-stage img { display: block; width: 100%; height: clamp(175px, 60dvh, 650px); object-fit: contain; }
.tour-zoom-label { position: absolute; bottom: 10px; right: 12px; padding: 6px 12px; color: white; background: #0d253be8; border: 1px solid #b8cedb; border-radius: 5px; font-size: 14px; }
.tour-viewer-details { align-items: flex-start; padding-block: 13px 16px; }
.tour-viewer-details h2 { margin: 0; font-size: clamp(17px, 1.65vw, 24px); line-height: 1.25; }
.tour-viewer-details p { margin: 5px 0 0; color: #435c70; font-size: 15px; line-height: 1.5; }
.tour-viewer-nav { display: flex; gap: 6px; flex-shrink: 0; }
@media (max-width: 700px) {
  .factory-album-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .factory-album-groups button { padding: 6px 10px; }
  .factory-album-photo .factory-photo-title { padding: 10px 10px 0; }
  .factory-album-photo .factory-photo-caption { padding: 6px 10px 12px; }
  #photo-viewer { width: 96vw; max-height: 94dvh; }
  .tour-photo-stage img { height: clamp(175px, 55dvh, 520px); }
  .tour-viewer-details, .tour-viewer-head { padding-inline: 11px; }
}
@media (max-width: 490px) { .factory-album-grid { grid-template-columns: 1fr; } }
.integration-equipment { background: #eff6fa; margin: 0 0 14px; border: 1px solid #dce9f1; border-radius: 12px; text-align: center; padding: 12px; }
.integration-equipment img { display: block; width: 100%; height: clamp(190px,18vw,280px); object-fit: contain; }
.integration-equipment figcaption { font-size: 12px; margin-top: 6px; color: #425d74; }
footer .foot { width: 100%; padding-inline: 3% 2.45%; }
@media(max-width:1100px) {
  .export-section { grid-template-columns: 1.5fr 1fr; }
  .built-project { grid-template-columns: 1fr; }
  .built-project img { max-height: 120px; }
}
@media(max-width:800px) {
  #home-view { --home-left: 3.5%; --home-right: 3.5%; }
  .product-paths { margin-inline: var(--home-left) var(--home-right); }
  footer .foot { padding-inline: 3.5%; }
  .document-item { grid-template-columns: 1fr; align-content: start; }
  .document-cover img { height: 165px; }
  .export-section { grid-template-columns: 1fr; }
  .built-project { grid-template-columns: minmax(110px,.42fr) minmax(0,1fr); }
  .built-project img { height: 115px; max-height: none; }
}
@media(max-width:600px) {
  .factory-story { padding-top: 22px; }
  .section-intro { display: grid; gap: 8px; }
  .document-pair { grid-template-columns: 1fr; gap: 13px; }
  .document-item,.document-item + .document-item { grid-template-columns: minmax(65px,.34fr) minmax(0,1fr); align-items: start; padding: 17px 0; gap: 12px; border-left: 0; }
  .document-item + .document-item { border-top: 1px solid #d1dfe8; }
  .document-cover { padding: 6px; }
  .document-cover img { height: auto; }
  .document-pair { gap: 0; }
  .delivery-steps { grid-template-columns: 1fr; margin-top: 16px; }
  #challenge-list { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px 12px; }
  .doc-data { overflow-wrap: anywhere; }
  .built-project { grid-template-columns: minmax(70px,.46fr) minmax(0,1fr); }
}
@media(prefers-reduced-motion:reduce) { #photo-viewer { scroll-behavior: auto; } }
