/* Hallmark theme: custom; genre: editorial; posture: restrained; hero: banner; job: industrial company and product reference */
:root {
  --navy: #12395B;
  --slate: #385571;
  --accent: #F28C28;
  --accent-ink: #98500e;
  --ink: #26343f;
  --muted: #4d5e6c;
  --white: #fff;
  --surface: #f2f5f7;
  --line: #d3dce3;
  --ink-line: #738595;
  --wash: rgb(255 255 255 / 78%);
  --shadow: rgb(18 57 91 / 14%);
  --clear: transparent;
  --font-default: system-ui, "Segoe UI", sans-serif;
  --font-zh: "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
  --font-ja: "Yu Gothic", Meiryo, system-ui, sans-serif;
  --font-ko: "Malgun Gothic", system-ui, sans-serif;
  --font-th: "Leelawadee UI", Tahoma, system-ui, sans-serif;
  --font-page: var(--font-default);
  font-family: var(--font-page);
  --container: 1160px;
  --gutter: clamp(16px, 4vw, 44px);
  --gap: clamp(22px, 4vw, 56px);
  --header: 64px;
}

:root[lang="zh-Hant"] { --font-page: var(--font-zh); }
:root[lang="ja"] { --font-page: var(--font-ja); }
:root[lang="ko"] { --font-page: var(--font-ko); }
:root[lang="th"] { --font-page: var(--font-th); }

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
html { scroll-padding-top: calc(var(--header) + 12px); }
body { margin: 0; background: var(--white); color: var(--ink); line-height: 1.65; }
h1, h2, h3 { color: var(--navy); overflow-wrap: break-word; min-width: 0; line-height: 1.25; }
h1, h2 { text-wrap: balance; }
h2 {
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  margin: 0 0 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
h3 { margin: 0; font-size: 1.2rem; }
p { max-width: 75ch; margin: 0 0 16px; }
a { color: var(--navy); text-underline-offset: .18em; }
a:hover { text-decoration-thickness: 2px; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; min-width: 0; }
svg { display: block; width: 24px; height: 24px; flex: none; }
.icon-stroke {
  fill: var(--clear);
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}
button, input, select, textarea { font: inherit; }
a:focus-visible, summary:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible {
  outline: 3px solid var(--accent-ink);
  outline-offset: 3px;
}
.container { width: min(var(--container), calc(100% - var(--gutter) * 2)); margin-inline: auto; min-width: 0; }
.skip { position: fixed; z-index: 5; inset: 8px auto auto 8px; background: var(--white); padding: 8px 16px; }
.skip:not(:focus) { clip-path: inset(50%); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--white);
  box-shadow: 0 1px 8px var(--shadow);
}
.header-inner, .header-controls, .header-controls summary { display: flex; align-items: center; }
.header-inner { min-height: var(--header); justify-content: space-between; gap: 8px; }
.logo { width: clamp(112px, 23vw, 154px); flex: none; }
.header-controls { min-width: 0; gap: 12px; }
.header-controls summary { cursor: pointer; list-style: none; }
.header-controls summary::-webkit-details-marker { display: none; }
.language-picker { position: relative; color: var(--navy); }
.language-picker summary { min-height: 44px; gap: 8px; font-size: .9375rem; }
.language-picker summary svg { width: 19px; height: 19px; }
.language-picker ul, .menu-panel ul, .footer-links ul { list-style: none; margin: 0; padding: 0; }
.language-picker ul {
  position: absolute;
  inset: calc(100% + 6px) 0 auto auto;
  width: 160px;
  max-height: calc(100dvh - var(--header) - 12px);
  overflow-y: auto;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 4px 12px var(--shadow);
}
.language-picker a, .menu-panel a { display: block; padding: 8px 16px; text-decoration: none; }
.language-picker a:hover, .language-picker a[aria-current], .menu-panel a:hover { background: var(--surface); }
.menu-toggle {
  position: relative;
  z-index: 2;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: var(--navy);
  color: var(--white);
}
.menu-toggle:hover { background: var(--slate); }
.menu-toggle svg:last-child, .menu[open] .menu-toggle svg:first-child { display: none; }
.menu[open] .menu-toggle svg:last-child { display: block; }
.menu-panel {
  position: fixed;
  z-index: 1;
  inset: 0 0 0 auto;
  width: min(100%, 365px);
  padding: calc(var(--header) + 12px) var(--gutter) 24px;
  overflow-y: auto;
  background: var(--white);
  box-shadow: -8px 0 28px var(--shadow);
}
.menu[open] .menu-panel { animation: slide-in 220ms ease-out; }
.menu-panel a { border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
@keyframes slide-in { from { transform: translateX(100%); } to { transform: translateX(0); } }
@media (prefers-reduced-motion: reduce) {
  .menu[open] .menu-panel { animation: none; }
}

.banner {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 280px;
  background: var(--surface) url("assets/banner.jpg") center / cover no-repeat;
  isolation: isolate;
}
.banner::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--wash); }
.banner-title { align-self: center; text-align: center; padding-block: 24px; }
.banner h1 { margin: 0; font-size: clamp(2.6rem, 8vw, 6rem); font-weight: 800; line-height: 1.05; }
.banner p { color: var(--navy); font-size: clamp(1.1rem, 2.4vw, 1.55rem); margin: 12px auto 0; }
.breadcrumb {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  max-width: 100%;
  padding: 8px 16px;
  background: var(--slate);
  color: var(--white);
  font-size: .9375rem;
  overflow-wrap: anywhere;
}
.breadcrumb a, .section-bar a { color: var(--white); }
.breadcrumb a:focus-visible, .section-bar a:focus-visible { outline-color: var(--white); }

.section-bar { display: grid; align-items: center; padding-block: 8px; min-height: 44px; background: var(--navy); color: var(--white); font-weight: 600; }
.section-bar a { text-decoration: none; }
.section-bar a:hover { text-decoration: underline; }
.section-content { padding-block: clamp(28px, 5vw, 56px); }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.split > *, .product-intro > *, .field { min-width: 0; }
.company-layout { align-items: center; }
.profile-copy { font-size: 1.06rem; }
.profile-copy p { margin-bottom: 0; }
.company-layout img, .product-layout img, .gallery img { width: 100%; border: 1px solid var(--line); }
.product-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(175px, 27%);
  align-items: start;
  gap: var(--gap);
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.product-claim { margin: 8px 0 4px; font-weight: 600; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 20px; }
.button {
  display: inline-block;
  padding: 8px 20px;
  border: 1px solid var(--navy);
  background: var(--navy);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: var(--slate); }
.button:active, .menu-toggle:active { box-shadow: inset 0 0 0 2px var(--accent); }
.button:disabled { background: var(--surface); color: var(--muted); border-color: var(--line); cursor: default; }
.runout { padding-top: 8px; }
.runout::before { content: ""; display: block; width: 8px; height: 8px; margin-bottom: 8px; background: var(--accent); }
.runout strong { font-size: clamp(1.35rem, 3vw, 2rem); color: var(--navy); }
.runout p, .image-note { margin: 0; color: var(--muted); }
.feature-list, .audience-list { list-style: none; padding: 0; margin: 0; }
.feature-list li, .audience-list li { padding: 0 0 12px; border-bottom: 1px solid var(--line); }
.feature-list li + li, .audience-list li + li { padding-top: 12px; }
.feature-list strong { display: block; color: var(--navy); margin-block: 4px; }
.feature-list p, .audience-list p { margin: 4px 0 0; }
.comparison > div { border-top: 3px solid var(--line); padding: 16px 0 0; }
.comparison > div:last-child { border-color: var(--navy); }
.comparison ul, .steps { margin: 8px 0 0; padding-inline-start: 1.6em; }
.comparison li + li { margin-top: 4px; }
.steps { max-width: 78ch; }
.steps li { padding: 12px 0 12px 8px; border-bottom: 1px solid var(--line); }
.steps li::marker { color: var(--navy); font-weight: 700; }
.table-scroll { max-width: 100%; overflow-x: auto; }
table { width: 100%; min-width: 420px; border-collapse: collapse; }
th, td { border: 1px solid var(--line); padding: 12px 16px; text-align: start; vertical-align: top; }
th { width: 33%; background: var(--surface); color: var(--navy); }
.gallery img { aspect-ratio: 4 / 3; object-fit: cover; }
.image-note { margin-top: 12px; font-size: .9375rem; }

form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; max-width: 780px; }
.field { display: grid; gap: 4px; }
.field-wide { grid-column: 1 / -1; }
label { font-weight: 600; }
input, select, textarea {
  min-height: 44px;
  width: 100%;
  padding: 8px 12px;
  border: 1px solid var(--ink-line);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
}
textarea { resize: vertical; min-height: 126px; }
.form-end { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 12px 20px; }
.form-end p { flex: 1 1 250px; margin: 0; color: var(--muted); }

.site-footer { background: var(--surface); }
.footer-inner { display: grid; justify-items: center; padding-block: 36px; text-align: center; }
.company-name { color: var(--navy); font-weight: 700; margin: 12px 0 16px; }
address { display: grid; gap: 8px; font-style: normal; margin-bottom: 16px; text-align: start; overflow-wrap: anywhere; }
address div { display: flex; align-items: baseline; gap: 8px; }
address svg { width: 17px; height: 17px; align-self: start; margin-top: 4px; color: var(--navy); }
.footer-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  width: min(100%, 760px);
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  text-align: start;
  overflow-wrap: anywhere;
}
.footer-links a { display: inline-block; padding: 4px 0; }
.copyright { background: var(--white); text-align: center; padding: 12px 0; color: var(--muted); font-size: .875rem; }

@media (max-width: 710px) {
  .split, .product-intro { grid-template-columns: minmax(0, 1fr); }
  .comparison, .gallery { gap: 20px; }
}
@media (max-width: 480px) {
  form { grid-template-columns: minmax(0, 1fr); }
  .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-links ul:last-child { grid-column: 1 / -1; columns: 2; }
}

.home-intro { display: grid; gap: 16px; align-content: start; }
.menu-panel a[aria-current] { color: var(--navy); font-weight: 700; background: var(--surface); }
.intro-screen { display: none; }
.intro .intro-screen { position: fixed; inset: 0; z-index: 100; display: grid; place-content: center; justify-items: center; gap: 16px; background: var(--white); color: var(--navy); animation: intro-out 0.5s ease 1.9s forwards; }
.intro-screen svg { width: 180px; height: 135px; overflow: visible; }
.intro-screen path { fill: var(--navy); }
.intro-screen rect { fill: var(--accent); }
.intro-screen p { margin: 0; font-size: 2rem; letter-spacing: 0.08em; font-weight: 700; color: var(--navy); }
.intro .intro-top { animation: intro-top 0.7s cubic-bezier(.2,.8,.2,1) both; }
.intro .intro-bottom { animation: intro-bottom 0.7s cubic-bezier(.2,.8,.2,1) both; }
.intro .intro-block { transform-origin: 137px 48px; transform-box: view-box; animation: intro-block 0.45s ease 0.6s both; }
.intro .intro-screen p { animation: intro-text 0.6s ease 0.95s both; }
@keyframes intro-top { from { transform: translate(-60px, -30px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes intro-bottom { from { transform: translate(-60px, 30px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes intro-block { from { transform: scale(0); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes intro-text { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes intro-out { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .intro .intro-screen { display: none; animation: none; } .intro .intro-screen * { animation: none; } }
