@font-face {
  font-family: "Noto Sans SC";
  src: url("./assets/fonts/noto-sans-sc.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
}
@font-face {
  font-family: "Noto Serif SC";
  src: url("./assets/fonts/noto-serif-sc-600.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Source Serif 4";
  src: url("./assets/fonts/source-serif-4-600.woff2") format("woff2");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #132137;
  --navy: #101b2b;
  --site-bg: #495c75;
  --muted: #4b5b6e;
  --line: #dce2e8;
  --light: #f2f5f8;
  --white: #fff;
  --paper: #f8f8f7;
  --paper-grain: url("./assets/paper-grain.webp");
  --accent: #ffc65b;
  --measure: 73rem;
  --font-display: "Noto Serif SC", "Songti SC", SimSun, serif;
  --display-tracking: .04em;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  font-size: 100%;
}
html:lang(en) {
  --font-display: "Source Serif 4", Georgia, serif;
  --display-tracking: -.015em;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(clamp(4.4rem, 7.4vw, 6.1rem) + .8rem); }
body { margin: 0; color: var(--ink); background: var(--paper) var(--paper-grain) repeat; line-height: 1.7; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.25; font-weight: 700; }
.hero h1, .section h2, .location-heading h2 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: var(--display-tracking);
}
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #ba6b0e; outline-offset: 4px; }
.container { width: min(var(--measure), calc(100% - 5rem)); margin-inline: auto; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; z-index: 5; top: .5rem; left: .5rem; padding: .5rem 1rem; background: var(--accent); color: var(--navy); }

.facts, .workshop-slide figcaption, .location-heading, .section-contact, .site-footer { background: #132844; color: var(--white); }
.site-header { position: sticky; top: 0; z-index: 4; background: var(--white); color: #000; border-bottom: 1px solid var(--line); }
.header-inner, .hero-inner, .facts dl { width: min(90rem, 90%); }
.header-inner { min-height: clamp(4.4rem, 7.4vw, 6.1rem); display: flex; align-items: center; justify-content: space-between; gap: clamp(.75rem, 2.5vw, 1.5rem); }
.brand { display: inline-flex; flex: none; align-items: center; gap: .75rem; text-decoration: none; white-space: nowrap; }
.brand-mark {
  flex: none;
  display: grid;
  place-items: center;
  width: clamp(4.9rem, 10.75vw, 9.75rem);
  height: clamp(2.25rem, 4vw, 3.1rem);
  border-radius: .15rem;
  background: var(--white);
}
.brand-logo { width: 96%; height: auto; }
.brand-type { display: flex; flex-direction: column; gap: .15rem; line-height: 1.15; }
.brand-type strong { font-size: clamp(1.08rem, 1.9vw, 1.6rem); }
.brand-type small { font-size: .76rem; font-weight: 750; letter-spacing: .13em; }
.primary-nav { display: flex; align-items: center; gap: clamp(1rem, 2.55vw, 2.7rem); margin-left: auto; }
.primary-nav a { text-decoration: none; font-size: clamp(.95rem, 1.4vw, 1.15rem); font-weight: 650; white-space: nowrap; }
.primary-nav a:hover { text-decoration: underline; text-underline-offset: .25em; }
.header-controls { display: flex; align-items: center; gap: .5rem; flex: none; }
.language-switch, .menu-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: .45rem .85rem;
  border: 1px solid #767676;
  border-radius: .22rem;
  color: inherit;
  background: transparent;
  font-size: .92rem;
  font-weight: 650;
  line-height: 1.3;
  text-decoration: none;
  white-space: nowrap;
}
.menu-toggle { cursor: pointer; }
.language-switch:hover, .menu-toggle:hover { border-color: currentColor; background: var(--light); }

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(27.5rem, 50.5vw, 46rem);
  padding-block: 3.5rem;
  color: var(--white);
  background: var(--site-bg);
}
.hero-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% 50%;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, #08121feb, #0a1626c4 33%, #0a16261f 66%, transparent);
}
.eyebrow { color: #556478; font-size: .89rem; font-weight: 750; letter-spacing: .1em; display: flex; align-items: center; gap: .65rem; margin-bottom: .9rem; }
.eyebrow span { width: 1.55rem; height: 2px; background: #bb7412; display: inline-block; }
.eyebrow.light { color: #d3ddec; }
.eyebrow.light span { background: var(--accent); }
.hero .eyebrow { margin-bottom: clamp(.7rem, 1.5vw, 1.25rem); font-size: clamp(.79rem, 1.33vw, 1.12rem); letter-spacing: .13em; text-transform: uppercase; }
.hero h1 { font-size: clamp(2.25rem, 5.7vw, 5.1rem); line-height: 1.14; }
.hero h1 span { color: #cfe2f2; }
.hero-summary { color: #e9eff6; max-width: 27em; margin-top: clamp(1rem, 2.3vw, 2rem); font-size: clamp(1rem, 1.65vw, 1.45rem); }
.hero :focus-visible, .section-contact :focus-visible { outline-color: var(--accent); }

.facts { border-bottom: 1px solid var(--line); }
.facts dl { display: grid; grid-template-columns: repeat(3, 1fr); }
.facts dl > div { display: flex; flex-direction: column; min-width: 0; padding: 1.4rem clamp(.7rem, 3.2vw, 2.7rem) 1.6rem; border-right: 1px solid var(--line); }
.facts dl > div:first-child { padding-left: 0; }
.facts dl > div:last-child { border: 0; }
.facts dd { order: -1; font: 780 clamp(1.52rem, 3.6vw, 2.85rem)/1.1 "Arial", sans-serif; letter-spacing: -.035em; }
.facts dd span { font-size: clamp(.82rem, 1.32vw, 1.1rem); letter-spacing: 0; }
.facts dt { margin-top: .42rem; font-size: .9rem; }

.section { padding-block: clamp(4rem, 7.3vw, 7.1rem); }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem 3rem; margin-bottom: 2rem; }
.section h2 { font-size: clamp(2rem, 4.25vw, 3.25rem); text-wrap: balance; }
.about-copy > p:not(.eyebrow) { color: var(--muted); }
.workflow { display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; padding: 0; margin: 0 0 1.5rem; gap: 1rem; }
.section-capabilities { padding-top: clamp(2.25rem, 5vw, 4rem); }
.workflow > li { padding: 1rem 0 .65rem; border-top: 2px solid #b08b46; }
.workflow h3 { font-size: 1.25rem; margin-bottom: .55rem; }
.workflow p { color: var(--muted); }
.capability-details { display: grid; grid-template-columns: 1.1fr 1fr; align-items: stretch; gap: 1rem; margin-bottom: 1.5rem; }
.equipment-sheet, .acceptance { min-width: 0; border: 1px solid #c7ced6; padding: clamp(1rem, 2.5vw, 1.5rem); }
.equipment-sheet h3, .acceptance h3 { margin-bottom: .5rem; font-size: 1.25rem; }
.equipment-sheet > p, .acceptance p, .acceptance li { color: var(--muted); }
.equipment-table { width: 100%; border-collapse: collapse; margin-top: .85rem; }
.equipment-table th, .equipment-table td { padding: .45rem .25rem; border-bottom: 1px solid var(--line); text-align: left; }
.equipment-table tr > :last-child { text-align: right; }
.equipment-table thead { color: var(--muted); font-size: .9rem; }
.equipment-table tbody tr:last-child > * { border-bottom: 0; }
.production-details { display: grid; gap: 1rem; }
.acceptance ul { margin: 0; padding-inline-start: 1.2rem; }
.workshop-gallery {
  --workshop-gap: clamp(.5rem, 1.15vw, 1.125rem);
  --workshop-edge: clamp(1.25rem, 11vw, 11rem);
  --workshop-height: clamp(15rem, 35vw, 34rem);
  width: min(100%, 100rem);
  margin-inline: auto;
}
.workshop-track {
  position: relative;
  display: flex;
  gap: var(--workshop-gap);
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
}
.workshop-track:focus-visible { outline-offset: -3px; }
.workshop-gallery[data-enhanced] .workshop-track { scrollbar-width: none; }
.workshop-slide {
  position: relative;
  flex: 0 0 calc(100% - 2 * (var(--workshop-edge) + var(--workshop-gap)));
  min-width: 0;
  height: var(--workshop-height);
  background: var(--light);
  scroll-snap-align: center;
}
.workshop-slide.workshop-portrait { flex-basis: calc(var(--workshop-height) * .45); }
.workshop-slide img { width: 100%; height: 100%; object-fit: cover; }
.workshop-portrait img { object-fit: contain; }
.workshop-gallery[data-enhanced] .workshop-slide:not([data-current]) img { filter: brightness(.68); }
.workshop-gallery[data-enhanced] .workshop-slide figcaption { display: none; }
.workshop-controls {
  width: min(var(--measure), calc(100% - 2rem));
  display: grid;
  grid-template-columns: 1fr minmax(0, auto) 1fr;
  align-items: center;
  gap: .65rem;
  margin: .85rem auto 0;
}
.workshop-controls button {
  justify-self: start;
  min-height: 2.75rem;
  padding: .3rem .85rem;
  border: 1px solid var(--navy);
  border-radius: .22rem;
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
  white-space: nowrap;
  font-size: .9rem;
  font-weight: 700;
}
.workshop-controls button:last-child { justify-self: end; }
.workshop-controls button:hover { background: var(--accent); }
.workshop-caption { font-size: .95rem; font-weight: 700; line-height: 1.4; text-align: center; }
.workshop-slide figcaption { position: absolute; bottom: 0; left: 0; padding: .47rem .86rem; font-size: .9rem; }

.section-portfolio { background: var(--light) var(--paper-grain) repeat; }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.15rem; }
.product { position: relative; min-width: 0; border: 1px solid var(--line); background: var(--white); color: var(--ink); }
.product-photo { width: 100%; aspect-ratio: 8 / 5; padding: clamp(.35rem, .9vw, .7rem); background: var(--white); border-bottom: 1px solid var(--line); }
.product-photo:has(.cutout) { padding: clamp(.7rem, 1.8vw, 1.25rem); }
.product-photo > img { width: 100%; height: 100%; object-fit: contain; }
[data-photo-matte], .product-photo img, #dialog-image, .gallery-thumbs img { mask: var(--photo-matte, none) center / contain no-repeat; }
.product-copy { padding: .9rem 1.15rem 1.05rem; }
.product-info { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .15rem .5rem; color: var(--muted); font-size: .88rem; margin-bottom: .26rem; }
.product-count { white-space: nowrap; }
.product h3 { font-size: 1.25rem; }
.product-description { color: var(--muted); margin-top: .5rem; }
.product-photos { margin-top: .5rem; }
.product-photos summary { cursor: pointer; }
.product-trigger { font: inherit; font-weight: inherit; color: inherit; background: none; border: 0; text-align: left; padding: 0; cursor: pointer; }
.product-trigger::after { content: ""; position: absolute; inset: 0; }
.product:has(.product-trigger:hover) { border-color: #8297ae; }
.product:has(.product-trigger:hover) h3 { text-decoration: underline; text-underline-offset: .2em; }

.about-grid { display: grid; grid-template-columns: 1fr 1.02fr; align-items: center; gap: clamp(2rem, 6.5vw, 6rem); }
.about-photo { position: relative; }
.about-photo img { width: 100%; height: clamp(15rem, 30vw, 23rem); object-fit: cover; object-position: center; }
.about-copy h2:lang(zh-CN) { word-break: keep-all; overflow-wrap: anywhere; }
.about-copy > p:not(.eyebrow) { margin-top: 1rem; font-size: 1.0625rem; line-height: 1.85; letter-spacing: .015em; }

.location-heading { padding-block: 1rem; }
.location-heading h2 { font-size: clamp(1.22rem, 2.2vw, 1.7rem); }
.location-map { display: block; width: 100%; height: clamp(19rem, 36vw, 30rem); border: 0; background: var(--light); }

.section-contact .eyebrow { color: inherit; }
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.contact-grid > div > p:not(.eyebrow) { max-width: 30rem; margin-top: 1.1rem; }
.contact-details { font-style: normal; }
.contact-details dl { border-top: 1px solid var(--line); }
.contact-details dl > div { display: grid; grid-template-columns: 5.5rem 1fr; gap: .25rem 1rem; padding: .93rem 0; border-bottom: 1px solid var(--line); }
.contact-details dd { overflow-wrap: anywhere; }
.contact-details a { text-underline-offset: .25rem; }
.contact-details a:hover { text-decoration-thickness: 2px; }
.site-footer { border-top: 1px solid var(--line); font-size: .88rem; }
.footer-inner { padding-block: 1.25rem; }

dialog { width: min(47rem, calc(100% - 1.5rem)); max-height: 90vh; max-height: 90dvh; color: var(--ink); padding: 0; border: 1px solid var(--line); border-radius: .3rem; overscroll-behavior: contain; }
dialog::backdrop { background: #0b1523c7; }
dialog form { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .65rem 1rem; background: var(--white); border-bottom: 1px solid var(--line); }
dialog form h2 { margin-right: auto; font-size: clamp(1.05rem, 3.1vw, 1.32rem); }
.dialog-close, .gallery-controls button { min-height: 2.5rem; color: var(--ink); background: var(--light); border: 1px solid var(--line); padding: .3rem .75rem; border-radius: .25rem; cursor: pointer; white-space: nowrap; font-size: .9rem; }
.dialog-close:hover, .gallery-controls button:hover { border-color: var(--navy); }
.dialog-photo { height: min(50dvh, 29rem); background: var(--white); }
#dialog-image { width: 100%; height: 100%; object-fit: contain; }
.gallery-controls { display: flex; align-items: center; justify-content: space-between; gap: .35rem; padding: .65rem 1rem .45rem; }
#gallery-position { text-align: center; color: var(--muted); font-size: .88rem; }
.gallery-thumbs { position: relative; display: flex; gap: .4rem; overflow-x: auto; padding: .35rem 1rem .5rem; }
.gallery-thumbs button { flex: 0 0 4rem; height: 3.1rem; padding: .1rem; overflow: hidden; border: 2px solid var(--line); background: var(--white); border-radius: .2rem; cursor: pointer; }
.gallery-thumbs button[aria-current="true"] { border-color: var(--ink); }
.gallery-thumbs button:focus-visible { outline-offset: 1px; }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: contain; }
.dialog-copy { padding: .8rem 1rem 1rem; }
.dialog-copy p { color: var(--muted); }
.gallery-photo-meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .25rem .75rem; margin-bottom: .4rem; font-size: .92rem; }
.gallery-photo-meta a { flex: none; text-underline-offset: .2em; }

@media (max-width: 880px) {
  .container { width: calc(100% - 3rem); }
  .header-inner, .hero-inner, .facts dl { width: 90%; }
}
@media (max-width: 760px) {
  html { scroll-padding-top: 5.2rem; }
  .container { width: calc(100% - 2rem); }
  .header-inner { min-height: 4.35rem; flex-wrap: wrap; gap: .65rem; padding-block: .65rem; }
  .primary-nav { order: 1; flex: 1 0 100%; display: flex; flex-wrap: wrap; gap: .6rem 1rem; padding-bottom: .35rem; margin-left: 0; }
  .brand { gap: .45rem; }
  .brand-mark { width: 5.2rem; height: 2rem; }
  .brand-type strong { font-size: .95rem; }
  .brand-type small { font-size: .67rem; }
  .language-switch, .menu-toggle { padding: .42rem .6rem; font-size: .88rem; }
  .js .primary-nav { position: absolute; inset: 100% 0 auto; flex-direction: column; align-items: stretch; gap: 0; padding: .6rem 1rem .9rem; background: var(--white); border-bottom: 1px solid var(--line); }
  .js .primary-nav[data-open="false"] { display: none; }
  .js .primary-nav a { padding: .55rem .75rem; }
  .facts dl > div { padding-block: .9rem 1rem; }
  .facts dt { font-size: .83rem; }
  .section-heading { display: block; margin-bottom: 1.45rem; }
  .workflow { grid-template-columns: 1fr; gap: .65rem; }
  .capability-details { grid-template-columns: minmax(0, 1fr); }
  .workshop-gallery { --workshop-edge: clamp(.9rem, 6vw, 2.5rem); --workshop-height: clamp(11rem, 46vw, 21rem); }
  .workshop-slide img { object-fit: contain; }
  .product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: .65rem; }
  .product-copy { padding: .65rem .6rem .85rem; }
  .product h3 { font-size: 1.03rem; }
  .about-grid, .contact-grid { grid-template-columns: minmax(0,1fr); gap: 1.6rem; }
  .about-photo { order: 2; }
}
@media (max-width: 500px) {
  .hero { align-items: end; min-height: 29.7rem; padding-block: 6.5rem 3.05rem; }
  html:lang(en) .hero h1 { font-size: clamp(1.625rem, 9.5vw, 2.25rem); }
  .hero-photo { height: 74%; object-position: 72% 50%; }
  .hero::before { background: linear-gradient(180deg, #0a162608, #0a162630 12%, #0a1626e0 51%, var(--site-bg) 74%); }
  .facts dd { font-size: clamp(1.2rem, 5.2vw, 1.5rem); white-space: nowrap; }
}
@media (max-width: 350px) {
  .facts dt { font-size: .76rem; }
  .facts dl > div { padding-inline: .4rem; }
  .contact-details dl > div { grid-template-columns: 4.1rem 1fr; gap: .25rem .6rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

