:root {
  color-scheme: dark;
  --base: #14181d;
  --ink: #f4f6f8;
  --muted: #c8d1d8;
  --blue: #b9e5ff;
  --aqua: #8dd7ff;
  --line: #424e59;
  --rule: rgb(176 197 211 / .23);
  --margin: clamp(21px,6.2vw,112px);
  color: var(--ink);
  background: var(--base);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 12px; }
body, h1, h2, h3, p, dl, dd { margin: 0; }
body { isolation: isolate; }
.wrap { width: min(calc(100% - var(--margin) * 2),1440px); margin-inline: auto; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--blue); outline-offset: 5px; }
.skip { position: fixed; left: 12px; top: -6em; z-index: 5; background: var(--ink); color: var(--base); padding: 12px; }
.skip:focus { top: 12px; }
.backdrop { position: fixed; inset: 0; overflow: hidden; z-index: -1; pointer-events: none; background:
    radial-gradient(ellipse at 91% 26%, rgb(103 156 184 / .38), transparent 36%),
    linear-gradient(116deg, #111519 12%, #1d2329 50%, #343e46 76%, #252b31 100%); }
.backdrop::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(124deg, transparent 47%, rgb(176 224 252 / .15) 47.13%, transparent 47.28%), repeating-linear-gradient(124deg, transparent 0 28px, rgb(190 219 235 / .08) 28px 29px, transparent 29px 80px);
  background-size: cover;
  mask-image: linear-gradient(105deg,transparent 26%,#000 74%,rgba(0,0,0,.3));
}
.stage {
  position: absolute; inset: 0; opacity: .37;
  mask-image: linear-gradient(105deg,rgba(0,0,0,.52),rgba(0,0,0,.82) 46%,#000 79%);
}
.stage video { display: block; width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); }
@media (max-aspect-ratio: 1/1), (min-aspect-ratio: 2/1) {
  .stage video { object-fit: contain; }
}
header { border-bottom: 1px solid var(--rule); background: rgb(17 20 24 / .89); }
.header-inner, nav, .actions { display: flex; align-items: center; }
.header-inner { min-height: 77px; gap: clamp(18px,3vw,48px); }
.brand { display: grid; place-items: center; margin-right: auto; }
.brand img { display: block; width: clamp(192px,18vw,248px); height: auto; }
nav { gap: clamp(16px,2.8vw,42px); }
nav a, .nav-contact, .text-link { font-size: 14px; font-weight: 600; }
nav a { padding-block: 12px; color: #d2dbe4; }
nav a:hover, .text-link:hover, footer a:hover { color: var(--blue); }
.nav-contact { display: flex; align-items: center; gap: 14px; border: 1px solid #587180; border-radius: 2px; padding: 9px 14px; }
.nav-contact b, .text-link b { color: var(--aqua); }
.nav-contact:hover { background: #263740; }
b { font: 1.1em/1 Arial,sans-serif; }
.hero { position: relative; min-height: clamp(530px,70vh,800px); display: flex; align-items: center; padding-block: clamp(55px,7vh,95px); }
.intro { position: relative; z-index: 1; width: min(100%,55rem); }
.film-frame { position: absolute; pointer-events: none; inset: 10% 0 12% 62%; color: #a4dcff; opacity: .64; }
.film-frame::before, .film-frame::after { content: ""; position: absolute; width: 38px; height: 15px; }
.film-frame::before { top: 0; right: 0; border-top: 1px solid; border-right: 1px solid; }
.film-frame::after { left: 0; bottom: 0; border-left: 1px solid; border-bottom: 1px solid; }
.section-label, dt { font: 600 11px/1.65 "IBM Plex Mono",Consolas,monospace; letter-spacing: .13em; text-transform: uppercase; }
h1 { font-weight: 600; letter-spacing: -.052em; }
.hero-wordmark { display: block; width: min(100%,clamp(430px,40vw,680px)); height: auto; }
.name-rest { display: block; margin-top: 14px; font-size: clamp(32px,3.35vw,54px); color: #e1e8ed; line-height: 1.18; letter-spacing: -.037em; }
.legal-form { white-space: nowrap; }
[lang="zh-Hant"] { font-family: "Microsoft JhengHei","PingFang TC",sans-serif; }
.lead, .about-copy p, .contact-intro p { color: var(--muted); font-size: clamp(16px,1.13vw,19px); line-height: 1.7; }
.lead { margin-top: 24px; max-width: 55ch; }
.actions { flex-wrap: wrap; gap: 23px; margin-top: 30px; }
.primary, .text-link { display: inline-flex; align-items: center; justify-content: center; gap: 14px; }
.primary { padding: 13px 20px; font-size: 14px; font-weight: 700; color: #10232e; background: var(--aqua); border-radius: 2px; }
.primary:hover { background: #b8e7ff; }
.content-band { padding-block: clamp(52px,6vw,94px); border-top: 1px solid var(--rule); }
.services { background: linear-gradient(110deg,rgb(22 27 32 / .84),rgb(27 33 38 / .58)); }
h2 { font-size: clamp(32px,3.35vw,54px); font-weight: 600; letter-spacing: -.05em; line-height: 1.1; }
.services-grid { margin-top: clamp(26px,3vw,42px); }
.services-grid article {
  position: relative; display: grid; grid-template-columns: minmax(0,.8fr) minmax(0,1.3fr);
  align-items: start; gap: clamp(22px,3.2vw,54px); padding-block: clamp(22px,2.4vw,36px); border-top: 1px solid var(--line);
}
.services-grid article:last-child { border-bottom: 1px solid var(--line); }
.services-grid article::before { content: ""; position: absolute; top: -1px; left: 0; width: 24px; height: 2px; background: #8dd7ff; }
h3 { font-size: clamp(19px,1.5vw,25px); font-weight: 600; line-height: 1.25; letter-spacing: -.026em; }
.services-grid p { max-width: 66ch; font-size: 15px; line-height: 1.65; color: var(--muted); }

nav a[aria-current] { color: var(--aqua); box-shadow: inset 0 -2px var(--aqua); }
.case-page .stage { opacity: .15; }
.case-main { max-width: 1200px; padding-block: clamp(36px,5vw,78px) clamp(58px,7vw,102px); }
.page-heading { margin-bottom: clamp(24px,3vw,42px); }
.page-heading h1 { max-width: 23ch; font-size: clamp(34px,4.2vw,64px); line-height: 1.05; letter-spacing: -.043em; }
.return-link { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); margin-bottom: 23px; min-height: 32px; font-size: 14px; }
.return-link:hover { color: var(--aqua); }
.case-catalog { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: clamp(18px,2.5vw,32px); }
.case-tile { display: grid; grid-template-rows: auto 1fr; overflow: hidden; border: 1px solid var(--line); background: #1c2329; border-radius: 3px; }
.case-tile:hover, .case-tile:focus-visible { border-color: var(--aqua); background: #252e36; }
.tile-photo { width: 100%; height: auto; aspect-ratio: 2.15; object-fit: cover; filter: grayscale(1); object-position: center 51%; }
.tile-copy { padding: clamp(16px,2.3vw,28px); }
.tile-copy h3 { font-size: clamp(20px,1.8vw,29px); color: var(--ink); }
.tile-copy p { margin-top: 15px; color: var(--muted); line-height: 1.7; }
.tile-action { display: inline-flex; align-items: center; gap: 5px; margin-top: 18px; color: var(--aqua); font-size: 13px; }
.tile-action b { margin-left: 9px; }
.concept-section { margin-top: clamp(35px,5vw,65px); }
.concept-section h2 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin-bottom: 18px; font-size: clamp(24px,2.2vw,34px); }
.concept-tile { grid-template-columns: minmax(140px,.52fr) 1fr; grid-template-rows: auto; }
.concept-tile .tile-photo { height: 100%; max-height: 200px; object-position: center 53%; }
.case-body { background: rgb(23 29 34 / .88); border: 1px solid var(--line); padding: clamp(14px,2.2vw,30px); display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,1fr); align-items: start; gap: clamp(20px,3.5vw,52px); }
.case-media { margin: 0; }
.case-media img, .case-media video { display: block; width: 100%; height: auto; border-radius: 2px; background: #171b20; filter: grayscale(1); }
.case-media video { aspect-ratio: 16 / 9; object-fit: contain; }
.inquiry-columns { display: grid; grid-template-columns: minmax(230px,.75fr) minmax(0,1.4fr); gap: clamp(24px,6vw,84px); align-items: start; }
.inquiry-info h2 { font-size: clamp(21px,2.1vw,30px); letter-spacing: .02em; }
.inquiry-info h2 { margin-bottom: 25px; }
.inquiry-info dl { grid-template-columns: 1fr; gap: 15px; }
.email-inquiry { padding: clamp(16px,2.5vw,34px); border: 1px solid var(--line); background: #1e252b; }
.inquiry-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 19px; margin-bottom: 20px; }
.inquiry-fields label { font-size: 15px; line-height: 1.5; }
.inquiry-fields .required-mark { color: var(--aqua); }
.inquiry-fields input, .inquiry-fields textarea { display: block; box-sizing: border-box; margin-top: 6px; width: 100%; border-radius: 2px; border: 1px solid #647681; background: #13191e; color: var(--ink); padding: 10px; font: inherit; }
.inquiry-fields textarea { resize: vertical; }
.inquiry-fields :is(input,textarea):focus-visible { outline: 2px solid var(--aqua); outline-offset: 1px; }
.message-field { grid-column: 1 / -1; }
.email-inquiry button { border: none; cursor: pointer; }
.inquiry-status:not(:empty) { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
@media (max-width: 720px) { .inquiry-columns { grid-template-columns: 1fr; } }
@media (max-width: 460px) { .inquiry-fields { grid-template-columns: 1fr; gap: 14px; } }
.case-media img:not(:first-child) { margin-top: 16px; }
.warehouse-media video { aspect-ratio: 16 / 9; }
.case-media figcaption { font-size: 12px; color: var(--muted); margin-top: 6px; }
.case-copy p { color: var(--muted); font-size: 16px; line-height: 1.75; }
.case-copy h2 { font-size: clamp(20px,1.7vw,27px); margin: 0 0 14px; }
.case-copy p + p { margin-top: 13px; }
.product-story { align-items: center; }
.case-media .product-photo, .concept-tile .product-photo { background: #fff; object-fit: contain; filter: none; }
.workflow-section { padding-block: clamp(30px,4vw,56px); }
.workflow-section h2, .warehouse-subtitle { font-size: clamp(25px,2.2vw,36px); margin-bottom: 20px; }
.workflow-section .flow-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
.flow-grid dd { font-size: 14px; line-height: 1.7; color: var(--muted); }
@media (max-width: 700px) {
  .workflow-section .flow-grid { grid-template-columns: 1fr; }
  .case-body { grid-template-columns: 1fr; }
  .case-catalog { grid-template-columns: 1fr; }
  .concept-tile { grid-template-columns: minmax(80px,.45fr) 1fr; }
  .concept-tile .tile-photo { max-height: none; }

}
.about { background: linear-gradient(108deg,rgb(48 58 66 / .65),rgb(21 26 31 / .44) 76%); }
.about-layout { display: grid; grid-template-columns: .92fr 1.08fr; gap: 9%; align-items: start; }
.section-label { margin-bottom: 13px; color: var(--aqua); }
.about h2 { max-width: 17ch; line-height: 1.15; }
.about-copy { max-width: 58ch; }
footer { background: rgb(15 18 22 / .76); border-top: 1px solid var(--rule); }
.contact-layout { padding-block: clamp(46px,5.8vw,88px); display: grid; grid-template-columns: .7fr 1.3fr; gap: 7%; }
.contact-intro p { margin-top: 15px; max-width: 35ch; }
.inquiry { display: inline-block; margin-top: 14px; padding-bottom: 2px; border-bottom: 1px solid var(--line); font-size: 14px; }
.line-contact {
  display: grid;
  grid-template-columns: 120px auto;
  align-items: center;
  gap: 16px;
  width: fit-content;
  max-width: 100%;
  margin-top: 22px;
  text-decoration: none;
}
.line-contact img {
  display: block;
  width: 120px;
  height: 120px;
  background: white;
  border-radius: 2px;
}
.line-contact-copy { display: grid; gap: 3px; color: var(--muted); font-size: 13px; line-height: 1.45; }
.line-contact-copy strong { font-size: 16px; color: var(--ink); }
.line-contact-copy strong span, .line-handle { color: var(--aqua); }
.line-contact:is(:hover, :focus-visible) strong { text-decoration: underline; text-underline-offset: 3px; }
address { margin: 0; font-style: normal; min-width: 0; }
dl { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 23px 28px; }
dl div { border-top: 1px solid var(--line); padding-top: 12px; }
dt { color: var(--aqua); }
dd { margin-top: 5px; font-size: 15px; line-height: 1.55; overflow-wrap: anywhere; }
dd b { margin-left: 2px; color: var(--blue); }
.colophon { border-top: 1px solid var(--rule); color: var(--muted); display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 20px; font-size: 13px; }
.colophon a { white-space: nowrap; }
.footer-brand { display: inline-flex; gap: 10px; align-items: center; }
.footer-brand img { width: 30px; height: auto; flex: none; }
@media (max-width: 950px) {
  .services-grid article { grid-template-columns: minmax(0,.8fr) minmax(0,1.25fr); gap: 12px 28px; }
  .contact-layout { grid-template-columns: .66fr 1.34fr; gap: 5%; }
  dl { gap: 22px 16px; }
}
@media (max-width: 700px) {
  .header-inner { min-height: 62px; gap: 19px; }
  .brand img { width: clamp(150px,26vw,180px); }
  nav { gap: 15px; }
  nav a, .nav-contact { font-size: 13px; }
  .nav-contact { padding: 7px 9px; gap: 5px; }
  .stage { opacity: .32; mask-image: none; }
  .hero { min-height: clamp(445px,61svh,560px); padding-block: 43px; }
  .intro { max-width: 100%; }
  .film-frame { display: none; }
  .hero-wordmark { width: min(88%,440px); }
  .name-rest { font-size: clamp(25px,5.85vw,36px); margin-top: 9px; }
  .lead { font-size: 15px; max-width: 43ch; }
  .actions { gap: 15px; margin-top: 22px; }
  .primary { padding: 11px 13px; }
  .primary, .text-link { font-size: 13px; gap: 8px; }
  .services-grid article { grid-template-columns: 1fr; gap: 9px; padding-block: 20px 23px; }
  .services-grid h3 { margin-bottom: 3px; }
  .about-layout, .contact-layout { grid-template-columns: 1fr; gap: 26px; }
  .contact-intro p { max-width: 44ch; }
}
@media (max-width: 480px) {
  dl { grid-template-columns: 1fr; gap: 17px; }
  .colophon { font-size: 12px; }
}
@media (max-width: 540px) {
  .brand img { width: 39px; }
}
@media (max-width: 420px) {
  .header-inner { gap: 10px; }
  nav { gap: 10px; }
  .brand img { width: 36px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

@media (max-width: 600px) {
  .header-inner { width: calc(100% - 24px); gap: 8px; }
  .brand img { width: 36px; }
  nav { gap: clamp(7px,2.4vw,14px); }
  nav a, .nav-contact { font-size: 12px; white-space: nowrap; }
  .nav-contact { padding: 6px 7px; gap: 3px; }
}
@media (max-width: 359px) {
  .header-inner { width: calc(100% - 14px); gap: 5px; }
  .brand img { width: 29px; }
  nav { gap: 7px; }
  .nav-contact b { display: none; }
}

.email-inquiry button:disabled { opacity: .7; cursor: wait; }
@media (max-width: 540px) {
  .header-inner { column-gap: 8px; }
  .header-inner nav { flex: 1; justify-content: space-around; gap: 3px; }
  .header-inner .brand { margin-right: 0; }
  .header-inner .brand img { width: 27px; }
  .header-inner .nav-contact { padding: 6px 4px; }
  .header-inner .nav-contact b { display: none; }
}

/* Language selector and the compact, single-language masthead. */
.language-switch {
  display: inline-flex; flex: none; padding: 3px; gap: 2px;
  border: 1px solid var(--line); border-radius: 5px; background: #10161b;
}
.language-switch[hidden] { display: none; }
.language-switch button {
  min-width: 40px; min-height: 34px; padding: 5px 8px; border: 0; border-radius: 2px;
  line-height: 1.25; font-family: inherit; font-size: 13px; font-weight: 600;
  color: var(--muted); background: transparent; cursor: pointer;
}
.language-switch button[aria-pressed="true"] { background: #a7dbf5; color: #13222c; }
.language-switch button:focus-visible { outline: 2px solid white; outline-offset: 2px; }
.language-switch button:hover:not([aria-pressed="true"]) { background: #26343e; color: white; }
.hero .actions { margin-top: 28px; }
.film-frame { border-right: 1px solid rgb(169 219 247 / .16); }
html:lang(zh-Hant) :is(h1,h2,h3,.name-rest) { letter-spacing: .015em; line-height: 1.28; }
html:lang(zh-Hant) .lead { max-width: 33em; }
html:lang(zh-Hant) .services-grid p { line-height: 1.82; }
.case-copy p, .flow-grid dd { text-wrap: pretty; }
@media (max-width: 1000px) and (min-width: 761px) {
  .header-inner { gap: 14px; }
  .brand img { width: 150px; }
  nav { gap: 13px; }
}
@media (max-width: 760px) {
  .header-inner {
    display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center;
    gap: 0 12px; padding-top: 9px; width: calc(100% - 32px);
  }
  .header-inner .brand { grid-column: 1; grid-row: 1; justify-self: start; }
  .header-inner .brand img { width: 144px; }
  .header-inner .nav-contact { grid-column: 2; grid-row: 1; min-height: 36px; padding-inline: 9px; }
  .language-switch { grid-column: 3; grid-row: 1; }
  .header-inner nav {
    grid-column: 1 / -1; grid-row: 2; display: flex; justify-content: space-between;
    gap: 8px; margin-top: 7px; border-top: 1px solid var(--rule);
  }
  .header-inner nav a { padding: 10px 0; font-size: 13px; }
}
@media (max-width: 370px) {
  .header-inner { gap: 0 6px; width: calc(100% - 24px); }
  .header-inner .brand img { width: 115px; }
}
