/* Union Lab 广邦智能 — "swatch card" lab system.
   Layout: a calm white lab bench; colour lives only in dye swatches (the 5-colour spectrum strip),
   instrument readouts set in mono, and the navy brand band. */
:root {
  --navy: #16204b;
  --navy-deep: #0e1636;
  --green: #12a04a;
  --green-ink: #0b7f39;
  --bg: #ffffff;
  --paper: #f4f6f9;
  --surface: #ffffff;
  --fg: #141a2e;
  --ink-strong: #16204b;
  --muted: #5b6479;
  --line: #e2e6ee;
  --line-strong: #c9d0dc;
  --photo-bg: #eef1f5;
  --on-navy: #ffffff;
  --on-navy-muted: rgb(255 255 255 / 0.72);
  /* dye swatches taken from the hero cloth */
  --dye-1: #23379a;
  --dye-2: #108a8c;
  --dye-3: #18a24b;
  --dye-4: #f0bd22;
  --dye-5: #d62b32;
  --focus: #2a6df4;
  --shadow: 0 1px 2px rgb(20 26 46 / 0.06), 0 8px 24px rgb(20 26 46 / 0.06);

  --font-sans: "Manrope", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --step--1: 0.8125rem;
  --step-0: 1rem;
  --step-1: 1.125rem;
  --step-2: 1.375rem;
  --step-3: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem);
  --step-4: clamp(1.875rem, 1.4rem + 2.2vw, 3.25rem);

  --radius: 6px;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --header-h: 68px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1120;
    --paper: #121829;
    --surface: #161d31;
    --fg: #e7eaf3;
    --ink-strong: #dfe5ff;
    --muted: #9ba4ba;
    --line: #252e47;
    --line-strong: #34405f;
    --photo-bg: #e9edf3;
    --green-ink: #3fcf78;
    --focus: #7aa7ff;
    --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px rgb(0 0 0 / 0.25);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0d1120;
  --paper: #121829;
  --surface: #161d31;
  --fg: #e7eaf3;
  --ink-strong: #dfe5ff;
  --muted: #9ba4ba;
  --line: #252e47;
  --line-strong: #34405f;
  --photo-bg: #e9edf3;
  --green-ink: #3fcf78;
  --focus: #7aa7ff;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 8px 24px rgb(0 0 0 / 0.25);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 60;
  background: var(--surface);
}
img { max-width: 100%; height: auto; display: block; }
table { font: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3 { color: var(--ink-strong); line-height: 1.25; text-wrap: balance; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: var(--radius); }
.skip:focus { top: calc(env(safe-area-inset-top, 0px) + 8px); }

.wrap { max-width: 1200px; margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.band { padding-block: clamp(56px, 7vw, 96px); }
.band-paper { background: var(--paper); }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }

/* ---------- Spectrum: the site's signature strip ---------- */
.spectrum { display: flex; height: 4px; width: 100%; }
.spectrum i { flex: 1; }
.spectrum i:nth-child(1) { background: var(--dye-1); }
.spectrum i:nth-child(2) { background: var(--dye-2); }
.spectrum i:nth-child(3) { background: var(--dye-3); }
.spectrum i:nth-child(4) { background: var(--dye-4); }
.spectrum i:nth-child(5) { background: var(--dye-5); }
.spectrum.short { width: 96px; height: 5px; }

/* ---------- Section heading ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 1.0625rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before { content: ""; width: 22px; height: 3px; background: var(--green); }
.head { display: grid; gap: 12px; max-width: 720px; margin-bottom: clamp(28px, 4vw, 48px); }
.head h2 { font-size: var(--step-4); font-weight: 800; letter-spacing: -0.01em; }
.head p { color: var(--muted); font-size: var(--step-1); max-width: 62ch; }
.head-row { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; margin-bottom: clamp(28px, 4vw, 48px); }
.head-row .head { margin-bottom: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 22px; border-radius: var(--radius);
  font-weight: 700; font-size: 0.975rem; text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: #0e8a3f; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: #22306b; }
.btn-line { border-color: var(--line-strong); color: var(--ink-strong); background: transparent; }
.btn-line:hover { border-color: var(--ink-strong); }
.btn-ghost-light { border-color: rgb(255 255 255 / 0.45); color: #fff; background: transparent; }
.btn-ghost-light:hover { border-color: #fff; background: rgb(255 255 255 / 0.08); }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 0.9rem; }
.arrow::after { content: "→"; font-family: var(--font-mono); }
.link-arrow { color: var(--green-ink); font-weight: 700; text-decoration: none; display: inline-flex; gap: 6px; }
.link-arrow:hover { text-decoration: underline; text-underline-offset: 4px; }
.link-arrow::after { content: "→"; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .bar { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.logo { display: inline-flex; flex-direction: column; text-decoration: none; line-height: 1; flex-shrink: 0; }
.logo b { font-family: "Manrope", sans-serif; font-weight: 800; font-size: 1.375rem; letter-spacing: -0.02em; color: var(--ink-strong); }
.logo b span { color: var(--green); }
.logo small { font-size: 0.72rem; letter-spacing: 0.32em; color: var(--muted); margin-top: 5px; }
.logo.inverse b { color: #fff; }
.logo.inverse b span { color: #5fd18b; }
.logo.inverse small { color: var(--on-navy-muted); }
.site-footer .logo b { font-size: 2rem; }
.site-footer .logo small { font-size: 0.95rem; margin-top: 8px; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  position: relative; text-decoration: none; padding: 8px 12px; border-radius: var(--radius);
  font-weight: 600; font-size: 0.95rem; color: var(--fg);
}
.nav a:hover { background: var(--paper); }
.nav a[aria-current="page"] { color: var(--ink-strong); }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 3px;
  background: linear-gradient(90deg, var(--dye-1) 0 20%, var(--dye-2) 20% 40%, var(--dye-3) 40% 60%, var(--dye-4) 60% 80%, var(--dye-5) 80%);
}
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-btn {
  min-height: 38px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: transparent; cursor: pointer; font-family: var(--font-mono); font-size: 0.85rem; font-weight: 600; color: var(--fg);
}
.lang-btn:hover { border-color: var(--ink-strong); }
.menu-btn { display: none; width: 42px; height: 42px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: transparent; cursor: pointer; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 18px; height: 2px; background: var(--fg); margin: 0 auto; position: relative; transition: transform 0.2s; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; }
.menu-btn span::after { top: 6px; }
.menu-btn[aria-expanded="true"] span { background: transparent; }
.menu-btn[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 960px) {
  .menu-btn { display: block; }
  .header-cta { display: none; }
  .nav {
    position: fixed; inset: calc(var(--header-h) + env(safe-area-inset-top, 0px)) 0 0 0; z-index: 49;
    flex-direction: column; gap: 0; margin: 0;
    padding: 12px var(--gutter-r) calc(24px + env(safe-area-inset-bottom, 0px)) var(--gutter-l);
    background: var(--surface); overflow-y: auto;
    transform: translateX(100%); visibility: hidden; transition: transform 0.25s ease, visibility 0.25s;
  }
  .nav.open { transform: none; visibility: visible; }
  .nav a { font-size: 1.25rem; padding: 16px 4px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a[aria-current="page"]::after { left: 4px; right: auto; width: 64px; bottom: 8px; }
  .nav .nav-cta { display: flex; margin-top: 20px; border: 0; color: #fff; font-size: 1rem; padding: 0 22px; border-radius: var(--radius); }
  .header-actions { margin-left: auto; }
}
.nav .nav-cta { display: none; }
@media (max-width: 960px) { .nav .nav-cta { display: inline-flex; } }

/* ---------- Hero (home) ---------- */
.hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; isolation: isolate; }
.hero-img { position: absolute; inset: 0; z-index: -1; }
.hero-img img { width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.hero-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #1a2160 0%, #1a2160 34%, rgb(26 33 96 / 0) 58%); }
.hero .wrap { padding-block: clamp(64px, 9vw, 128px); }
.hero-copy { max-width: 560px; display: grid; gap: 22px; }
.hero h1 { color: #fff; font-size: clamp(2.125rem, 1.4rem + 3vw, 3.75rem); font-weight: 800; letter-spacing: -0.015em; line-height: 1.15; }
.nb { display: inline-block; }
.hero h1 em { font-style: normal; display: block; color: #8fe0ad; }
html:not([lang^="en"]) .hero h1 em { white-space: nowrap; font-size: min(1em, calc((100vw - 40px) / 9.5)); }
.hero .lede { color: var(--on-navy-muted); font-size: var(--step-1); max-width: 46ch; }
.hero .tag-line { font-family: var(--font-mono); font-size: var(--step--1); letter-spacing: 0.1em; color: #b9c3ef; text-transform: uppercase; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.hero-readouts { display: flex; justify-content: space-between; gap: 14px 20px; margin-top: 10px; padding-top: 20px; border-top: 1px solid rgb(255 255 255 / 0.16); }
.hero-readouts div { display: grid; gap: 2px; }
.hero-readouts b { font-family: var(--font-mono); font-size: 1.25rem; font-weight: 600; color: #fff; }
.hero-readouts span { font-size: 0.8rem; color: var(--on-navy-muted); }
.hero-readouts span { white-space: nowrap; }
.ln { display: block; white-space: nowrap; }
.head:has(.one-line) { max-width: none; }
.head p.one-line, .page-hero p.one-line { max-width: none; }
@media (min-width: 820px) { .head p.one-line, .page-hero p.one-line { white-space: nowrap; } }
#cta-title .nb { display: block; white-space: nowrap; font-size: min(1em, calc((100vw - 40px) / 10.5)); }
@media (max-width: 560px) { .hero-readouts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .hero { display: flex; flex-direction: column-reverse; }
  .hero-img { position: relative; height: 220px; }
  .hero-img img { object-position: 78% center; }
  .hero-img::after { background: linear-gradient(180deg, #1a2160 0%, rgb(26 33 96 / 0) 40%); }
  .hero .wrap { padding-block: 44px 36px; }
}

/* ---------- Trust strip ---------- */
.trust { border-bottom: 1px solid var(--line); background: var(--surface); }
.trust ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 48px; }
.trust li { position: relative; display: grid; gap: 4px; align-content: start; padding: 26px 0; }
.trust li + li::before { content: ""; position: absolute; left: -24px; top: 26px; bottom: 26px; width: 1px; background: var(--line); }
.trust b { font-size: 1.05rem; line-height: 1.5; color: var(--ink-strong); }
.trust span { font-size: 0.875rem; color: var(--muted); line-height: 1.55; }
@media (max-width: 860px) {
  .trust ul { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
  .trust li { padding: 20px 0; border-top: 1px solid var(--line); }
  .trust li:nth-child(-n+2) { border-top: 0; }
  .trust li + li::before { display: none; }
}

/* ---------- Readout cards (core advantages) ---------- */
.readouts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.readout { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; gap: 14px; align-content: start; }
.readout .meter { display: flex; align-items: baseline; gap: 8px; padding: 14px 16px; background: var(--navy); color: #fff; border-radius: 4px; font-family: var(--font-mono); }
.readout .meter b { font-size: 2rem; font-weight: 600; letter-spacing: -0.02em; }
.readout .meter small { color: #aeb9e8; font-size: 0.8rem; }
.readout h3 { font-size: var(--step-2); }
.readout p { color: var(--muted); }
.readout .src { font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); border-top: 1px dashed var(--line-strong); padding-top: 10px; }
.readout .src { align-self: end; }
@supports (grid-template-rows: subgrid) {
  .readouts { row-gap: 20px; }
  .readout { grid-row: span 4; grid-template-rows: subgrid; row-gap: 14px; }
}
@media (max-width: 900px) { .readouts { grid-template-columns: 1fr; } }

/* ---------- Service cards ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.svc-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.svc { position: relative; display: grid; gap: 12px; align-content: start; padding: 26px 24px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: inherit; }
.svc::before { content: ""; position: absolute; top: -1px; left: 24px; width: 40px; height: 4px; background: var(--c, var(--dye-1)); }
a.svc:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.svc .code { font-family: var(--font-mono); font-size: 1.125rem; font-weight: 600; color: var(--muted); letter-spacing: 0.06em; }
.svc h3 { font-size: var(--step-1); }
.svc p { color: var(--muted); font-size: 0.95rem; }
.svc ul { margin: 4px 0 0; padding-left: 18px; color: var(--fg); font-size: 0.925rem; display: grid; gap: 4px; }
.svc ul li::marker { color: var(--green); }
.svc .more { margin-top: auto; }
@media (max-width: 1000px) { .svc-grid, .svc-grid.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .svc-grid, .svc-grid.three { grid-template-columns: 1fr; } }

/* ---------- Lab → bulk path ---------- */
.path { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); counter-reset: step; }
.path li { position: relative; padding: 26px 18px 0 0; display: grid; gap: 6px; align-content: start; }
.path li::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-mono); font-size: 1.125rem; font-weight: 600; color: var(--muted);
}
.path li::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--c); }
.path li:nth-child(1) { --c: var(--dye-1); }
.path li:nth-child(2) { --c: var(--dye-2); }
.path li:nth-child(3) { --c: var(--dye-3); }
.path li:nth-child(4) { --c: var(--dye-4); }
.path li:nth-child(5) { --c: var(--dye-5); }
.path.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.path b { font-size: var(--step-1); color: var(--ink-strong); }
.path span { color: var(--muted); font-size: 0.925rem; }
@media (max-width: 860px) {
  .path, .path.three { grid-template-columns: 1fr; gap: 0; }
  .path li { padding: 0 0 22px 22px; }
  .path li::after { top: 0; bottom: 0; left: 0; right: auto; width: 4px; height: auto; }
}

/* ---------- Quotes (example testimonials) ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.quote { position: relative; margin: 0; padding: 28px 26px 24px; background: var(--surface); border: 1px dashed var(--line-strong); border-radius: var(--radius); display: grid; gap: 16px; align-content: start; }
.quote .badge { position: absolute; top: -11px; right: 18px; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.04em; padding: 3px 9px; border-radius: 99px; background: var(--dye-4); color: #2a2100; font-weight: 600; }
.quote blockquote { margin: 0; font-size: 1.02rem; color: var(--fg); }
.quote blockquote::before { content: "“"; display: block; font-family: Georgia, serif; font-size: 2.6rem; line-height: 0.6; color: var(--line-strong); margin-bottom: 8px; }
.quote figcaption { font-size: 0.875rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; }
.quote figcaption b { color: var(--ink-strong); display: block; font-size: 0.95rem; }
.quote figcaption { align-self: end; }
@supports (grid-template-rows: subgrid) {
  .quote { grid-row: span 2; grid-template-rows: subgrid; row-gap: 16px; }
}
@media (max-width: 900px) { .quotes { grid-template-columns: 1fr; } }

/* ---------- Split (image + text) ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.split.rev > :first-child { order: 2; }
.split .photo { position: relative; }
.split .photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.split .photo .spectrum { position: absolute; left: 0; bottom: -10px; width: 60%; height: 6px; }
.split .body { display: grid; gap: 18px; align-content: start; min-width: 0; }
.split .body h2 { font-size: var(--step-4); font-weight: 800; }
.split .body p { color: var(--muted); }
.facts { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facts li { background: var(--surface); padding: 14px 16px; display: grid; gap: 2px; }
.facts b { font-family: var(--font-mono); font-size: 1.05rem; color: var(--ink-strong); }
.facts span { font-size: 0.85rem; color: var(--muted); }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split.rev > :first-child { order: 0; }
}

/* ---------- CTA band ---------- */
.cta-band { background: var(--navy); color: #fff; position: relative; }
.cta-band .wrap { padding-block: clamp(48px, 6vw, 80px); display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 24px 48px; align-items: center; }
.cta-band h2 { color: #fff; font-size: var(--step-4); font-weight: 800; }
.cta-band p { color: var(--on-navy-muted); margin-top: 10px; max-width: 56ch; }
.cta-band .actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 860px) { .cta-band .wrap { grid-template-columns: 1fr; } }

/* ---------- Inner page hero ---------- */
.page-hero { position: relative; background: var(--navy); color: #fff; isolation: isolate; overflow: hidden; }
.page-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(22 32 75 / 0.96) 0%, rgb(22 32 75 / 0.86) 45%, rgb(22 32 75 / 0.45) 100%); }
.page-hero .wrap { padding-block: clamp(56px, 8vw, 104px); display: grid; gap: 16px; }
.page-hero h1 { color: #fff; font-size: var(--step-4); font-weight: 800; max-width: 15em; }
.page-hero p { color: var(--on-navy-muted); font-size: var(--step-1); max-width: 56ch; }
.crumbs { font-family: var(--font-mono); font-size: 1.0625rem; font-weight: 600; color: #b9c3ef; display: flex; gap: 10px; flex-wrap: wrap; }
.crumbs a { color: #fff; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ---------- About ---------- */
.story { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); }
.story .lead { font-size: var(--step-2); color: var(--ink-strong); font-weight: 700; line-height: 1.5; }
.story .text { display: grid; gap: 16px; color: var(--muted); }
.mission { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.mission > div { background: var(--surface); padding: 28px; display: grid; gap: 10px; align-content: start; }
.mission .k { font-family: var(--font-mono); font-size: 0.78rem; letter-spacing: 0.08em; color: var(--muted); text-transform: uppercase; }
.mission h3 { font-size: var(--step-2); }
.mission p { color: var(--muted); }
@media (max-width: 860px) { .story, .mission { grid-template-columns: 1fr; } }
.pillars { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.pillars > div { padding: 24px 22px 8px 0; display: grid; gap: 8px; align-content: start; }
.pillars > div + div { padding-left: 22px; border-left: 1px solid var(--line); }
.pillars b { font-size: var(--step-1); color: var(--ink-strong); }
.pillars span { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 860px) {
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillars > div, .pillars > div + div { padding: 20px 14px 14px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* ---------- Note ---------- */
.note { font-size: 0.85rem; color: var(--muted); border-left: 3px solid var(--dye-4); padding: 4px 0 4px 12px; max-width: 80ch; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 0; border-top: 1px solid var(--line); max-width: 920px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; gap: 16px; align-items: baseline; padding: 20px 0; font-weight: 700; font-size: var(--step-1); color: var(--ink-strong); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .q { font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); font-weight: 500; flex-shrink: 0; }
.faq summary::after { content: "+"; margin-left: auto; font-family: var(--font-mono); font-size: 1.3rem; color: var(--muted); }
.faq details[open] summary::after { content: "−"; }
.faq .a { padding: 0 0 22px 44px; color: var(--muted); display: grid; gap: 10px; max-width: 72ch; }
@media (max-width: 600px) { .faq .a { padding-left: 0; } }

/* ---------- Products ---------- */
.filters { position: sticky; top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); z-index: 20; background: var(--bg); border-bottom: 1px solid var(--line); }
.filters .wrap { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; padding-block: 14px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; min-width: 0; flex: 1 1 520px; padding-bottom: 2px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0;
  min-height: 38px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line-strong);
  background: var(--surface); color: var(--fg); cursor: pointer; font-weight: 600; font-size: 0.9rem;
}
.chip i { width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--line-strong)); }
.chip .n { font-family: var(--font-mono); font-size: 0.75rem; color: var(--muted); }
.chip[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.chip[aria-pressed="true"] .n { color: #b9c3ef; }
.search { position: relative; flex: 0 1 280px; min-width: 0; }
.search input { width: 100%; min-height: 40px; padding: 0 12px 0 36px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); }
.search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--muted); }
@media (max-width: 620px) { .search { flex-basis: 100%; } }
.result-line { font-family: var(--font-mono); font-size: 0.82rem; color: var(--muted); margin-bottom: 18px; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 1000px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } }
.swatch { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow 0.2s, transform 0.2s; }
.swatch:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.swatch .chipline { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 14px; background: var(--c); color: #fff; font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.04em; }
.swatch .chipline span:last-child { opacity: 0.85; text-align: right; }
.swatch .ph { position: relative; background: var(--photo-bg); aspect-ratio: 4 / 3; overflow: hidden; }
.swatch .ph img { position: absolute; inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); max-width: none; object-fit: contain; mix-blend-mode: multiply; }
.swatch .info { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.swatch h3 { font-size: 1.1rem; }
.swatch .models { font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); overflow-wrap: anywhere; }
.swatch .sum { color: var(--muted); font-size: 0.9rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.kv { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 4px; }
.kv li { padding: 8px 10px; display: grid; gap: 1px; min-width: 0; }
.kv li + li { border-left: 1px solid var(--line); }
.kv b { font-family: var(--font-mono); font-size: 0.85rem; color: var(--ink-strong); font-weight: 600; overflow-wrap: anywhere; line-height: 1.35; }
.kv span { font-size: 0.72rem; color: var(--muted); }
.swatch .kv { margin-top: auto; }
.swatch .acts { display: flex; gap: 8px; margin-top: auto; padding-top: 6px; }
.swatch .kv + .acts { margin-top: 0; }
.swatch .acts .btn { flex: 1; min-height: 40px; padding: 0 10px; font-size: 0.9rem; }
.empty { padding: 48px 0; text-align: center; color: var(--muted); display: grid; gap: 12px; justify-items: center; }

/* spec dialog */
dialog.spec { width: min(960px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 8px; background: var(--surface); color: var(--fg); box-shadow: 0 30px 80px rgb(0 0 0 / 0.35); }
dialog.spec::backdrop { background: rgb(10 14 32 / 0.6); }
.spec-inner { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); }
.spec-photo { background: var(--photo-bg); display: flex; align-items: center; justify-content: center; padding: 24px; }
.spec-photo img { max-height: 380px; width: auto; mix-blend-mode: multiply; }
.spec-body { padding: 28px 28px 24px; display: grid; gap: 14px; align-content: start; min-width: 0; }
.spec-body h2 { font-size: var(--step-3); }
.spec-body .models { font-family: var(--font-mono); color: var(--muted); font-size: 0.85rem; }
.spec-body ol { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 0.95rem; }
.spec-body ol li::marker { color: var(--green); font-weight: 700; font-family: var(--font-mono); }
.spec-table-wrap { grid-column: 1 / -1; padding: 0 28px 28px; min-width: 0; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 4px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.spec-table th, .spec-table td { padding: 9px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.spec-table thead th { background: var(--navy); color: #fff; font-family: var(--font-mono); font-weight: 600; font-size: 0.8rem; white-space: nowrap; }
.spec-table tbody th { color: var(--muted); font-weight: 600; white-space: nowrap; width: 1%; }
.spec-table td { font-family: var(--font-mono); font-variant-numeric: tabular-nums; color: var(--fg); }
.spec-table tr:nth-child(even) td, .spec-table tr:nth-child(even) th { background: var(--paper); }
.dlg-close { position: absolute; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface); cursor: pointer; font-size: 1.2rem; line-height: 1; color: var(--fg); }
.spec-acts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; }
@media (max-width: 760px) {
  .spec-inner { grid-template-columns: 1fr; }
  .spec-photo img { max-height: 220px; }
  .spec-body, .spec-table-wrap { padding-left: 18px; padding-right: 18px; }
}

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 36px); display: grid; gap: 20px; }
.form-card h2 { font-size: var(--step-3); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font-weight: 600; font-size: 0.9rem; color: var(--ink-strong); }
.field label .req { color: var(--dye-5); margin-left: 2px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--bg);
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--focus); outline-offset: 0; border-color: transparent; }
.field .err { font-size: 0.8rem; color: var(--dye-5); min-height: 0; }
.field.invalid input, .field.invalid textarea { border-color: var(--dye-5); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form-foot small { color: var(--muted); font-size: 0.82rem; flex: 1 1 260px; }
.form-status { padding: 14px 16px; border-radius: var(--radius); font-size: 0.95rem; }
.form-status.ok { background: color-mix(in srgb, var(--green) 12%, var(--surface)); border: 1px solid color-mix(in srgb, var(--green) 40%, transparent); }
.form-status.warn { background: color-mix(in srgb, var(--dye-4) 16%, var(--surface)); border: 1px solid color-mix(in srgb, var(--dye-4) 50%, transparent); }

.info-stack { display: grid; gap: 16px; }
.info-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: grid; gap: 12px; }
.info-card h3 { font-size: var(--step-1); }
.info-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding-block: 8px; border-top: 1px solid var(--line); }
.info-row:first-of-type { border-top: 0; }
.info-row .lbl { font-size: 0.8rem; color: var(--muted); display: block; }
.info-row .val { font-family: var(--font-mono); font-size: 1.05rem; color: var(--ink-strong); user-select: all; overflow-wrap: anywhere; }
.copy-btn { min-height: 34px; padding: 0 12px; border-radius: var(--radius); border: 1px solid var(--line-strong); background: transparent; cursor: pointer; font-size: 0.82rem; font-weight: 600; color: var(--fg); }
.copy-btn:hover { border-color: var(--ink-strong); }
.qr-pair { display: flex; gap: 14px; flex-wrap: wrap; }
.qr-pair figure { margin: 0; display: grid; gap: 6px; justify-items: center; font-size: 0.8rem; color: var(--muted); }
.qr-pair img { width: 128px; height: 128px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 4px; padding: 6px; }

.map-card { position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); background: var(--paper); }
.map-card svg { display: block; width: 100%; height: auto; }
.map-card .map-meta { padding: 16px 18px; display: grid; gap: 10px; background: var(--surface); border-top: 1px solid var(--line); }
.map-card .map-links { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-deep); color: var(--on-navy-muted); font-size: 0.925rem; }
.site-footer .grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 32px; padding-block: 56px 36px; }
.site-footer h2 { color: #fff; font-size: 0.85rem; font-family: var(--font-mono); letter-spacing: 0.08em; text-transform: uppercase; font-weight: 600; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--on-navy-muted); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.site-footer .about p { margin-top: 16px; max-width: 34ch; line-height: 1.7; }
.site-footer .slogan { color: #8fe0ad; margin-top: 8px; }
.site-footer .mono { color: #fff; }
.social { display: flex; gap: 10px; flex-wrap: wrap; }
.site-footer .social button { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 12px; border-radius: var(--radius); border: 1px solid rgb(255 255 255 / 0.22); background: transparent; color: #fff; cursor: pointer; font-size: 0.85rem; text-decoration: none; }
.site-footer .social button:hover { border-color: #fff; text-decoration: none; }
.social svg { width: 16px; height: 16px; }
.site-footer .legal { border-top: 1px solid rgb(255 255 255 / 0.12); padding-block: 18px calc(18px + env(safe-area-inset-bottom, 0px)); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 0.8rem; color: rgb(255 255 255 / 0.5); }
@media (max-width: 900px) { .site-footer .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .site-footer .about { grid-column: 1 / -1; } }
@media (max-width: 480px) { .site-footer .grid { grid-template-columns: 1fr; } }

/* ---------- Floating contact rail ---------- */
.rail { position: fixed; right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 40; display: grid; gap: 8px; }
.rail button, .rail a {
  position: relative; display: grid; place-items: center; gap: 2px; width: 60px; height: 60px; border-radius: 8px; border: 0;
  background: var(--navy); color: #fff; cursor: pointer; text-decoration: none; font-size: 0.7rem; box-shadow: 0 6px 18px rgb(14 22 54 / 0.25);
}
.rail button:hover, .rail a:hover { background: #22306b; }
.rail .r-green { background: var(--green); }
.rail .r-green:hover { background: #0e8a3f; }
.rail svg { width: 20px; height: 20px; }
.rail .pop {
  position: absolute; right: 70px; top: 50%; transform: translateY(-50%); width: max-content; max-width: 260px;
  background: var(--surface); color: var(--fg); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; box-shadow: var(--shadow);
  display: grid; gap: 6px; text-align: left; font-size: 0.85rem;
}
.rail .pop .val { font-family: var(--font-mono); font-size: 1rem; color: var(--ink-strong); user-select: all; }
.rail-top { opacity: 0; pointer-events: none; transition: opacity 0.2s; }
.rail-top.show { opacity: 1; pointer-events: auto; }
@media (max-width: 760px) {
  .rail {
    left: 0; right: 0; bottom: 0; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 0;
    padding: 0 env(safe-area-inset-right, 0px) env(safe-area-inset-bottom, 0px) env(safe-area-inset-left, 0px);
    background: var(--navy); box-shadow: 0 -4px 16px rgb(14 22 54 / 0.2);
  }
  .rail button, .rail a { width: auto; height: 56px; border-radius: 0; box-shadow: none; font-size: 0.75rem; }
  .rail .rail-top { display: none; }
  .rail .pop { right: auto; left: 8px; top: auto; bottom: 64px; transform: none; }
  body { padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- QR dialog ---------- */
dialog.qr { border: 0; border-radius: 10px; padding: 28px; background: var(--surface); color: var(--fg); max-width: calc(100vw - 24px); }
dialog.qr::backdrop { background: rgb(10 14 32 / 0.6); }
dialog.qr h2 { font-size: var(--step-2); margin-bottom: 6px; }
dialog.qr p { color: var(--muted); font-size: 0.9rem; margin-bottom: 18px; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 70; background: var(--fg); color: var(--bg); padding: 10px 16px; border-radius: 6px; font-size: 0.9rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
.lb { display: block; }
.map-wrap { margin-top: clamp(28px, 4vw, 48px); }
.map-card.map-wide svg { height: clamp(220px, 30vw, 400px); }
@media (min-width: 760px) { .map-card.map-wide .map-meta { grid-template-columns: 1fr auto; align-items: center; padding: 18px 24px; } }
@media (min-width: 901px) {
  .contact-grid { align-items: stretch; }
  .form-card { grid-template-rows: auto 1fr auto; }
  .form-card .form-grid { grid-template-rows: auto auto auto 1fr; }
  .form-card .field:has(textarea) { grid-template-rows: auto 1fr auto; }
  .form-card .field textarea { height: 100%; }
}
@media (max-width: 1023px) { #adv-title + p.one-line { white-space: normal; } }
