:root {
  color-scheme: light;
  --ink: #132137;
  --navy: #101b2b;
  --navy-deep: #0b1523;
  --muted: #4b5b6e;
  --line: #dce2e8;
  --light: #f2f5f8;
  --white: #fff;
  --accent: #ffc65b;
  --dark-muted: #bbc7d6;
  --measure: 73rem;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  font-size: 100%;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 6rem; }
body { margin: 0; color: var(--ink); background: var(--white); line-height: 1.65; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.16; font-weight: 780; }
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); }

.site-header { position: sticky; top: 0; z-index: 4; background: var(--navy-deep); color: var(--white); border-bottom: 1px solid #ffffff1a; }
.header-inner { min-height: 5.05rem; display: flex; align-items: center; justify-content: space-between; gap: clamp(.75rem, 2.5vw, 1.5rem); }
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; white-space: nowrap; }
.brand-mark { width: 2.5rem; height: 2.5rem; display: grid; place-items: center; color: var(--navy); background: var(--accent); font: 800 1.65rem/1 "Arial", sans-serif; border-radius: .15rem .55rem .15rem .15rem; }
.brand-type { display: flex; flex-direction: column; gap: .15rem; line-height: 1.15; }
.brand-type strong { font-size: 1.05rem; letter-spacing: .075em; }
.brand-type small { color: var(--dark-muted); 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 { color: #dce5f0; text-decoration: none; font-size: .95rem; font-weight: 650; white-space: nowrap; }
.primary-nav a:hover { color: var(--accent); }
.primary-nav .nav-contact, .menu-toggle { color: var(--accent); border: 1px solid #ffc65b85; border-radius: .22rem; padding: .48rem .9rem; }
.primary-nav .nav-contact:hover, .menu-toggle:hover { background: var(--accent); color: var(--navy); }
.menu-toggle { background: transparent; cursor: pointer; }
.header-controls { display: flex; align-items: center; gap: .5rem; flex: none; }
.language-switch { display: inline-flex; align-items: center; min-height: 2.5rem; padding: .45rem .85rem; border: 1px solid #bfcadb76; border-radius: .22rem; color: var(--white); font-size: .92rem; font-weight: 650; line-height: 1.3; text-decoration: none; white-space: nowrap; }
.language-switch:hover { border-color: var(--accent); color: var(--accent); }

.hero {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(90deg, #111d2d 2%, #111d2df5 32%, #142438b8),
    repeating-linear-gradient(90deg, transparent 0 59px, #9bb4cf20 59px 60px),
    repeating-linear-gradient(0deg, transparent 0 59px, #9bb4cf20 59px 60px),
    #142438;
}
.hero-inner { min-height: 34.2rem; display: grid; grid-template-columns: .92fr 1.08fr; align-items: center; gap: clamp(2.1rem, 6.1vw, 6rem); padding-block: 3.25rem 3.75rem; }
.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 h1 { font-size: clamp(3.25rem, 6.3vw, 6.05rem); letter-spacing: -.075em; line-height: 1.13; }
.hero h1 span { color: var(--accent); }
html[lang="en"] .hero h1 { font-size: clamp(2.55rem, 5vw, 5rem); letter-spacing: -.055em; }
.hero-summary { color: var(--dark-muted); max-width: 25rem; font-size: clamp(1rem, 1.55vw, 1.16rem); line-height: 1.9; margin-top: 1.45rem; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem; margin-top: 1.9rem; }
.button { min-height: 3rem; padding: .72rem 1.12rem; display: inline-flex; align-items: center; justify-content: center; font-size: .95rem; font-weight: 740; line-height: 1.35; text-decoration: none; border-radius: .22rem; border: 1px solid transparent; transition: background .18s, color .18s, border-color .18s; }
.button-accent { background: var(--accent); color: #102036; }
.button-accent:hover { background: #ffe0a3; }
.button-quiet { color: var(--white); border-color: #bfcadb76; }
.button-quiet:hover { border-color: var(--white); background: #ffffff15; }
.site-header :focus-visible, .hero :focus-visible, .section-contact :focus-visible, .site-footer :focus-visible { outline-color: var(--accent); }
.hero-figure { border: 1px solid #a7bdd054; padding: .65rem; position: relative; background: #142337; }
.hero-figure::before, .hero-figure::after { content: ""; position: absolute; width: 1.3rem; height: 1.3rem; pointer-events: none; z-index: 1; }
.hero-figure::before { top: -1px; left: -1px; border-top: 2px solid var(--accent); border-left: 2px solid var(--accent); }
.hero-figure::after { bottom: -1px; right: -1px; border-bottom: 2px solid var(--accent); border-right: 2px solid var(--accent); }
.hero-image { aspect-ratio: 1.25; background: repeating-linear-gradient(90deg, transparent 0 59px, #a5b9d21a 59px 60px), linear-gradient(90deg, #19283a, #2b3c50 50%, #19283a); }
.hero-image img { width: 100%; height: 100%; object-fit: contain; }
.hero-figure figcaption { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: .35rem .75rem; padding: .72rem .25rem .12rem; color: var(--dark-muted); font-size: .8rem; }
.hero-figure figcaption span:first-child { display: flex; align-items: center; gap: .55rem; }
.hero-figure figcaption i { width: .45rem; height: .45rem; border: 1px solid var(--accent); transform: rotate(45deg); }
.hero-figure figcaption [lang] { font-family: ui-monospace, "Consolas", monospace; letter-spacing: .07em; }

.facts { border-bottom: 1px solid var(--line); background: #f5f7fa; }
.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; color: var(--muted); 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); letter-spacing: -.045em; }
.section-heading > p, .about-copy > p:not(.eyebrow) { color: var(--muted); }
.section-heading > p { max-width: 23rem; padding-bottom: .16rem; }
.workflow { display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; padding: 0; margin: 0 0 1.5rem; gap: 1rem; }
.workflow > li { padding: 1.35rem 1.5rem 1.45rem; border: 1px solid var(--line); border-top: 3px solid #233b58; }
.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 var(--line); background: var(--light); 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-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.workshop-grid figure { position: relative; background: var(--navy); overflow: hidden; }
.workshop-grid img { width: 100%; height: clamp(11.5rem, 20vw, 15rem); object-fit: cover; }
.workshop-grid figcaption, .about-photo figcaption { position: absolute; bottom: 0; left: 0; padding: .47rem .86rem; background: var(--navy); color: var(--white); font-size: .9rem; }

.section-portfolio { background: var(--light); }
.filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .65rem; }
.filters button { color: var(--ink); background: var(--white); border: 1px solid #c9d2dc; border-radius: .25rem; padding: .45rem .85rem; cursor: pointer; font-size: .92rem; }
.filters button:hover { border-color: var(--navy); }
.filters button[aria-pressed="true"] { color: var(--white); background: var(--navy); border-color: var(--navy); }
.filter-status { color: var(--muted); font-size: .9rem; margin-bottom: 1rem; }
.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); }
.product > img { width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: contain; padding: clamp(.35rem, .9vw, .7rem); background: #e9edf1; border-bottom: 1px solid var(--line); }
.product > img.cutout { padding: clamp(.7rem, 1.8vw, 1.25rem); background: radial-gradient(ellipse at 48% 40%, #f8fafb, #dfe6ed); }
.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 > p:not(.eyebrow) { margin-top: 1rem; line-height: 1.85; }

.section-contact { background: var(--navy); color: var(--white); }
.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; color: var(--dark-muted); }
.contact-details { font-style: normal; }
.contact-details dl { border-top: 1px solid #637085; }
.contact-details dl > div { display: grid; grid-template-columns: 5.5rem 1fr; gap: .25rem 1rem; padding: .93rem 0; border-bottom: 1px solid #637085; }
.contact-details dt { color: var(--dark-muted); }
.contact-details dd { overflow-wrap: anywhere; }
.contact-details a { color: var(--white); text-underline-offset: .25rem; }
.contact-details a:hover { color: var(--accent); }
.quote-template { max-width: 42rem; margin-top: 1.75rem; border-top: 1px solid #637085; border-bottom: 1px solid #637085; }
.quote-template summary { padding-block: .75rem; color: var(--accent); font-weight: 700; cursor: pointer; }
.quote-panel { padding-bottom: 1rem; }
.quote-panel > p { color: var(--dark-muted); margin-bottom: .65rem; }
.quote-panel textarea { display: block; width: 100%; padding: .75rem; resize: vertical; border: 1px solid #637085; border-radius: .22rem; background: var(--navy-deep); color: var(--white); font: inherit; }
.quote-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem .8rem; margin-top: .75rem; }
.quote-actions .button { background: transparent; cursor: pointer; }
.quote-actions .button:hover { background: #ffffff15; }
#quote-status { color: var(--dark-muted); font-size: .88rem; }
.site-footer { color: var(--dark-muted); background: var(--navy-deep); font-size: .88rem; }
.footer-inner { display: flex; justify-content: space-between; gap: .5rem 1.4rem; flex-wrap: wrap; padding-block: 1.25rem; }
.footer-inner a { text-underline-offset: .26rem; }

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-image { width: 100%; height: min(50dvh, 29rem); object-fit: contain; background: #e9edf1; }
.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(--light); border-radius: .2rem; cursor: pointer; }
.gallery-thumbs button[aria-current="true"] { border-color: var(--ink); background: var(--accent); }
.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); }
  .hero-inner { gap: 2rem; min-height: 28rem; }
  .hero h1 { font-size: clamp(2.8rem, 6.8vw, 4.5rem); }
  .hero-summary { margin-top: 1rem; }
  .workflow > li { padding: 1rem; }
}
@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: .5rem; }
  .brand-mark { width: 2rem; height: 2rem; font-size: 1.4rem; }
  .brand-type strong { font-size: .95rem; }
  .brand-type small { font-size: .67rem; }
  .language-switch, .menu-toggle { min-height: 2.5rem; padding: .42rem .6rem; font-size: .86rem; }
  .js .primary-nav { position: absolute; inset: 100% 0 auto; flex-direction: column; align-items: stretch; gap: 0; padding: .6rem 1rem .9rem; background: var(--navy-deep); border-bottom: 1px solid #ffffff30; }
  .js .primary-nav[data-open="false"] { display: none; }
  .js .primary-nav a { padding: .55rem .75rem; }
  .js .primary-nav .nav-contact { margin-top: .4rem; }
  .hero-inner { grid-template-columns: minmax(0,1fr); gap: 1.7rem; padding-block: 2.4rem 1.8rem; }
  .hero h1 { font-size: clamp(3rem, 10vw, 4.3rem); }
  html[lang="en"] .hero h1 { font-size: clamp(2.35rem, 8vw, 4.3rem); }
  .hero-image { aspect-ratio: 1.18; }
  .hero .actions { margin-top: 1.23rem; }
  .facts dl > div { padding-block: .9rem 1rem; }
  .facts dt { font-size: .83rem; }
  .section-heading { display: block; margin-bottom: 1.45rem; }
  .section-heading > p { margin-top: .75rem; }
  .workflow { grid-template-columns: 1fr; gap: .65rem; }
  .capability-details { grid-template-columns: minmax(0, 1fr); }
  .workshop-grid, .product-grid { grid-template-columns: repeat(2, minmax(0,1fr)); gap: .65rem; }
  .workshop-grid img { height: 9rem; }
  .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: 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; }
}

