@font-face { font-family: "Space Grotesk"; src: url("../assets/fonts/space-grotesk-latin-variable.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }

:root {
  --page-gutter: clamp(24px, 4.5vw, 80px);
  --content-inset: clamp(18px, 2vw, 40px);
  --edge: var(--page-gutter);
  --section-width: calc(100% - 2 * var(--content-inset));
  --card-pad: clamp(22px, 2.5vw, 36px);
  --module-px: var(--card-pad);
  --module-py: clamp(32px, 3.8vw, 52px);
  --module-gap: clamp(14px, 1.4vw, 20px);
  --band-gap: clamp(72px, 7.5vw, 126px);
  --section-space: var(--module-py);
  --heading-size: clamp(30px, 3.2vw, 48px);
  --text-size: 16.5px;
  --header-height: 80px;
  --body: "Space Grotesk", "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  --display: "Space Grotesk", "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  --latin: "Space Grotesk", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-height) + 16px); }
body { margin: 0; color: var(--ink); background: var(--paper); font: var(--text-size)/1.7 var(--body); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
body.menu-open { overflow: hidden; }
h1, h2, h3, p, figure, dl, dd { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; }
button, summary { cursor: pointer; }
button, a, summary { -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
img:is([src$="/FX613S.webp"], [src$="/FX613S.png"]) { transform: scaleX(-1); }
svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.6; fill: none; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--action-hover); outline-offset: 3px; }
::selection { color: #fff; background: #0084bd; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: 12px; left: 20px; z-index: 100; padding: 10px 18px; border-radius: var(--r-card, 6px); background: var(--ink); color: #fff; font-size: 14px; font-weight: 500; transform: translateY(-180%); transition: transform 160ms ease; }
.skip-link:focus { transform: none; }

/* Shared page margins */
.home-page main { --section-width: min(calc(100% - 2 * var(--page-gutter)), 1560px); }
.container,
.grid-band {
  width: var(--section-width);
  margin-inline: auto;
}
.grid-band {
  margin-block: var(--band-gap) 0;
}
.monolith-section,
.technology-section,
.contact-section {
  width: var(--section-width);
  margin: var(--band-gap) auto 0;
  padding: 0;
}
.monolith-section > .container { width: 100%; max-width: none; margin: 0; }

h1, h2 { font-family: var(--display); font-weight: 600; letter-spacing: -.028em; }
h2 { font-size: var(--heading-size); line-height: 1.12; }
h3 { font: 600 clamp(20px, 1.7vw, 24px)/1.28 var(--body); letter-spacing: -.018em; }
h2, h3, p { text-wrap: pretty; }

/* Minimal signal dot + hardware model identifier */
.section-index {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 12px; padding: 0;
  font: 600 13px/1.3 var(--body); letter-spacing: .04em; color: var(--ink);
}
.section-index::before {
  content: ""; width: 6px; height: 6px; border-radius: 1px;
  background: var(--signal); flex-shrink: 0;
}
.technical-term { white-space: nowrap; }

/* Crisp 6px industrial buttons */
.button {
  min-height: 46px; min-width: 44px;
  display: inline-flex; justify-content: center; align-items: center; gap: 10px;
  padding: 10px 22px; border: 1px solid transparent; border-radius: var(--r-card, 6px);
  font-size: 15px; font-weight: 600; line-height: 1.4;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, transform 160ms ease;
}
.button svg { width: 17px; height: 17px; transition: transform 160ms ease; }
.button:hover svg { transform: translateX(3px); }
.button-primary, .button-dark { color: #ffffff; background: var(--ink); }
.button-primary:hover, .button-dark:hover { background: var(--action-hover); color: #ffffff; transform: translateY(-1px); }
.button-quiet { color: var(--ink); border-color: var(--control-border); background: var(--control-bg); }
.button-quiet:hover { border-color: var(--ink); background: var(--control-bg-hover); }

.text-link {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 44px; padding-block: 6px;
  font-size: 14.5px; font-weight: 600; color: var(--ink);
  transition: color 160ms ease;
}
.text-link:hover, .text-link:focus-visible { color: var(--action-hover); }
.text-link svg { width: 16px; height: 16px; color: var(--accent); transition: transform 160ms ease; }
.text-link:hover svg { transform: translateX(4px); }

/* Navigation base */
.site-header { position: sticky; top: 0; z-index: 40; background: var(--paper); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 64px; padding-inline: 24px; }
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { width: auto; height: 38px; object-fit: contain; }
.desktop-nav { display: flex; gap: clamp(18px, 2vw, 34px); margin-left: auto; }
.desktop-nav>a, .desktop-nav .nav-group>summary {
  display: inline-flex; align-items: center; gap: 5px;
  min-height: 44px; font-size: 14.5px; font-weight: 500; white-space: nowrap;
  border-bottom: 2px solid transparent; transition: color 160ms ease, border-color 160ms ease;
}
.nav-group>summary { cursor: pointer; list-style: none; }
.nav-group>summary::-webkit-details-marker { display: none; }
.nav-group>summary svg { width: 13px; height: 13px; opacity: .65; transition: transform 180ms ease, opacity 180ms ease; }
.nav-group[open]>summary svg { transform: rotate(180deg); opacity: 1; }
.desktop-nav .nav-group { position: relative; }
.desktop-nav .nav-group[open]>summary, .desktop-nav .nav-group[data-current]>summary { border-bottom-color: var(--signal); }
.desktop-nav .nav-dropdown {
  position: absolute; top: calc(100% + 8px); left: 0; width: 248px;
  max-width: calc(100vw - 2 * var(--page-gutter)); padding: 6px;
  color: var(--ink); background: var(--dropdown-bg, var(--paper));
  border: 1px solid var(--dropdown-border); border-radius: var(--r-card, 6px);
  box-shadow: 0 16px 36px -10px rgb(10 24 44 / 18%);
}
.desktop-nav :is([data-nav-group="resources"],[data-nav-group="company"]) .nav-dropdown { left: auto; right: 0; }
.site-header .nav-dropdown a {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 44px; padding: 8px 12px; border-radius: var(--r-sm, 4px);
  font-size: 14.5px; font-weight: 500; color: var(--ink);
  transition: background-color 150ms ease, color 150ms ease;
}
.site-header .nav-dropdown :is(a:hover,a[aria-current]) { background: var(--row-hover); color: var(--action-hover); }
.site-header .nav-dropdown a[aria-current] { font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: 6px; }
.menu-toggle { display: none; width: 44px; height: 44px; border: 0; border-radius: var(--r-card, 6px); background: transparent; padding: 11px; }
.menu-toggle:hover { background: var(--control-bg); }
.menu-toggle span { display: block; height: 1.5px; margin-block: 5.5px; background: var(--ink); border-radius: 1px; transition: transform 180ms ease; }
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
.mobile-nav { position: fixed; inset: var(--header-height) 0 0; overflow-y: auto; padding: 18px var(--card-pad) 36px; background: var(--dropdown-bg, var(--paper)); }
.mobile-nav>a, .mobile-nav .nav-group>summary {
  display: flex; justify-content: space-between; align-items: center;
  min-height: 52px; padding-block: 10px; font: 600 18px/1.4 var(--body);
}
.mobile-nav .nav-group[data-current]>summary, .mobile-nav>a[aria-current] { color: var(--action-hover); }
.mobile-nav .nav-dropdown { padding-block: 4px 10px; }

/* Gallery controls */
.view-switcher { display: inline-flex; gap: 2px; flex-shrink: 0; }
.view-button { min-height: 44px; min-width: 44px; padding: 8px 14px; border: 0; color: var(--muted); background: transparent; font-size: 14px; font-weight: 600; transition: background-color 160ms ease, color 160ms ease; }
.gallery-feedback { display: flex; align-items: center; gap: 12px; min-height: 28px; color: var(--muted); font-size: 14px; }
.gallery-retry { min-height: 44px; padding: 8px 14px; border-radius: var(--r-card, 6px); border: 1px solid var(--control-border); color: var(--ink); background: var(--control-bg); }

/* Section headings */
.band-header {
  display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap;
  gap: 16px 40px; margin-bottom: clamp(20px, 2.2vw, 28px);
}
.band-header h2 { max-width: 18ch; }
.band-header-meta { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; max-width: 44ch; }
.band-intro { font-size: 16px; color: var(--muted); max-width: 44ch; line-height: 1.68; }

/* Text columns */
.section-split { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.48fr); align-items: start; gap: clamp(32px, 4.5vw, 72px); }
.section-split-heading .section-intro { color: var(--muted); max-width: 36ch; margin-top: 14px; }

.company-metrics {
  width: 100%;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px;
  align-items: end;
}
.company-metrics>div {
  display: flex; flex-direction: column-reverse; align-items: flex-start; gap: 8px;
}
.company-metrics dt { font-size: 13.5px; font-weight: 500; color: var(--muted); }
.company-metrics dd { font: 600 clamp(42px, 4.4vw, 68px)/.98 var(--latin); letter-spacing: -.045em; font-variant-numeric: tabular-nums; color: var(--ink); }
.company-metrics dd span { margin-left: 4px; font: 500 14px/1.4 var(--body); letter-spacing: 0; color: var(--muted); }

/* Contact */
.contact-inner {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: clamp(32px, 4.5vw, 64px); align-items: start;
}
.contact-lead>p { font-size: 16px; color: var(--muted); margin-top: 14px; max-width: 40ch; }
.contact-lead .button { margin-top: 26px; }
.contact-card { min-width: 0; }
.contact-card address { font-style: normal; display: grid; gap: 14px; }
.contact-mailbox h3 { color: var(--muted); font-size: 14.5px; font-weight: 600; }
.contact-email {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font: 500 clamp(16px, 1.4vw, 20px)/1.4 var(--latin); overflow-wrap: anywhere;
}
.contact-card a:hover { color: var(--action-hover); }
.contact-meta-row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 20px; padding-top: 4px; }
.service-number { display: inline-flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--muted); }
.service-number>a { display: inline-flex; align-items: center; min-height: 44px; font-family: var(--latin); font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }

.office-list {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px;
  padding-top: 28px;
}
.office-card h3 { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.office-card h3::before { content: ""; width: 5px; height: 5px; border-radius: 1px; background: var(--signal); }
.office-card p { font-size: 14px; color: var(--muted); margin-top: 6px; line-height: 1.68; }

/* Cookie preferences */
.cookie-notice {
  position: fixed;
  z-index: 35;
  left: max(14px, env(safe-area-inset-left));
  bottom: max(14px, env(safe-area-inset-bottom));
  color: var(--ink);
  background: var(--panel);
  border: 1px solid var(--control-border);
  border-radius: 50%;
  box-shadow: 0 4px 20px rgb(9 22 37 / 14%);
}
.cookie-notice[open] {
  width: min(332px, calc(100% - max(14px, env(safe-area-inset-left)) - max(14px, env(safe-area-inset-right))));
  max-height: calc(100dvh - max(14px, env(safe-area-inset-bottom)) - 12px);
  overflow: auto;
  padding: 8px 18px 16px;
  border-radius: 12px;
}
.cookie-notice summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-width: 44px;
  min-height: 44px;
  border-radius: inherit;
  list-style: none;
}
.cookie-notice summary::-webkit-details-marker { display: none; }
.cookie-notice summary svg { width: 22px; height: 22px; color: var(--accent); }
.cookie-notice .cookie-title, .cookie-notice[open] .cookie-label { display: none; }
.cookie-notice[open] summary { justify-content: flex-start; border-radius: 4px; }
.cookie-notice[open] .cookie-title { display: inline; font-size: 1rem; font-weight: 600; }
.cookie-notice p { color: var(--muted); font-size: .875rem; line-height: 1.6; }
.cookie-choices { display: flex; gap: 8px; margin-top: 14px; }
.cookie-choices button {
  flex: 1;
  min-height: 44px;
  padding: 6px 10px;
  font-size: .875rem;
  font-weight: 600;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--control-border);
  border-radius: var(--r-card);
}
.cookie-choices [data-cookie-choice="accepted"] { color: var(--paper); background: var(--ink); }
.cookie-choices button:hover { border-color: var(--accent); }
.cookie-choices [aria-pressed="true"]::before { content: "✓ "; }
.cookie-info-toggle { min-height: 24px; padding: 0 2px; border: 0; background: transparent; color: var(--accent); font-weight: 500; text-decoration: underline; text-underline-offset: .2em; }
.cookie-notice #cookie-info { margin-top: 12px; }
body.menu-open .cookie-notice, body:has(.brand-intro:not([hidden])) .cookie-notice { visibility: hidden; }
@media print {
  .cookie-notice { display: none; }
}

/* Footer */
.site-footer {
  width: var(--section-width);
  margin: var(--module-gap) auto clamp(16px, 2vw, 28px);
  padding: clamp(32px, 3.8vw, 48px) 0 24px;
}
.footer-inner { width: 100%; }
.footer-top { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.footer-brand { display: inline-flex; align-items: center; }
.footer-brand img { width: auto; height: 40px; object-fit: contain; }
.back-top {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 8px 16px; border-radius: var(--r-card, 6px);
  border: 1px solid var(--control-border); background: var(--control-bg);
  font-size: 14px; font-weight: 600;
  transition: border-color 160ms ease, background-color 160ms ease;
}
.back-top svg { width: 16px; height: 16px; }
.back-top:hover { border-color: var(--ink); background: var(--control-bg-hover); }
.footer-legal {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 24px;
  padding-top: 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px;
}
.footer-legal>a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-legal a:hover { color: var(--action-hover); }
.no-js .menu-toggle, .no-js .view-switcher, .no-js .gallery-feedback { display: none; }

@media (max-width: 1199px) {
  .contact-inner { column-gap: 32px; }
  .section-split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); gap: 32px; }
}
@media (max-width: 899px) {
  :root { --page-gutter: 28px; --card-pad: 22px; --module-py: 32px; --band-gap: 66px; --header-height: 74px; }
  .desktop-nav { display: none; }
  .js .menu-toggle { display: block; }
  .no-js .header-inner { flex-wrap: wrap; padding-block: 14px; }
  .no-js .desktop-nav { display: flex; width: 100%; order: 3; flex-wrap: wrap; margin-left: 0; }
  .section-split { grid-template-columns: 1fr; gap: 22px; }
  .contact-inner { grid-template-columns: 1fr; gap: 24px; }
  .office-list { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 760px) {
  :root { --page-gutter: 20px; --card-pad: 18px; --module-py: 26px; --module-gap: 12px; --band-gap: 56px; --heading-size: clamp(26px, 6.8vw, 34px); --text-size: 16px; }
  .button { padding: 10px 18px; }
  .company-metrics { gap: 12px; }
  .company-metrics dd { font-size: clamp(30px, 8.2vw, 42px); }
  .company-metrics dd span { font-size: 12.5px; }
  .company-metrics dt { font-size: 12.5px; }
  .footer-brand img { height: 36px; }
  .footer-legal { gap: 6px 16px; }
  .footer-legal>p { width: 100%; }
}
@media (max-width: 359px) {
  :root { --page-gutter: 18px; --card-pad: 14px; }
  .button { padding-inline: 14px; }
  .company-metrics { grid-template-columns: 1fr; gap: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (forced-colors: active) {
  .button, .view-button[aria-pressed="true"] { border: 2px solid ButtonText; }
}

/* Shared full-width contact and brand sign-off */
.home-footer {
  --footer-surface: #28292b;
  --footer-ink: #eceded;
  --footer-accent: #95c8dc;
  --footer-secondary: color-mix(in srgb, var(--footer-ink) 78%, var(--footer-surface));
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  margin-top: var(--band-gap);
  /* The header clearance is inside this full-screen section. */
  scroll-margin-top: calc(-1 * (var(--header-height) + 16px));
  background: var(--footer-surface);
  color: var(--footer-ink);
}
.home-footer-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: clamp(24px, 5vh, 64px);
  min-width: 0;
  padding: max(calc(var(--header-height) + 16px), 10vh) var(--content-inset) max(24px, env(safe-area-inset-bottom));
}
.home-footer-contacts {
  display: grid;
  grid-template-columns: 0.62fr 1fr 1.95fr;
  column-gap: clamp(24px, 3.5vw, 64px);
  align-items: start;
}
.home-footer-contacts > h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-top: 2px;
  color: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .04em;
}
.home-footer-contacts > h2::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--footer-accent);
}
.home-footer .office-list {
  grid-column: auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 34px clamp(24px, 3.5vw, 64px);
  padding: 0;
}
.home-footer .office-card:first-child { grid-row: span 2; }
.home-footer .office-card h3, .home-footer .contact-mailbox h3 {
  display: block;
  font-size: 0.9375rem;
  font-weight: 500;
  color: inherit;
}
.home-footer .office-card h3::before { content: none; }
.home-footer .office-card p {
  margin-top: 13px;
  color: inherit;
  font-size: 1rem;
  line-height: 1.75;
}
.home-footer .contact-card address { gap: 20px; }
.home-footer .contact-email { color: inherit; font-weight: 400; }
.home-footer .service-number { color: var(--footer-secondary); }
.home-footer .service-number a { color: var(--footer-ink); font-weight: 400; }
.home-footer a:hover { color: var(--footer-accent); text-decoration: underline; }
.home-footer :focus-visible { outline-color: var(--footer-accent); }
.home-footer-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 24px;
  padding-top: 18px;
  border-top: 1px solid color-mix(in srgb, var(--footer-ink) 18%, transparent);
  color: var(--footer-secondary);
  font-size: .875rem;
}
.home-footer-meta > div { display: flex; align-items: center; flex-wrap: wrap; gap: 0 24px; }
.home-footer-meta a { display: inline-flex; align-items: center; min-height: 44px; }
.home-footer-wordmark {
  position: relative;
  color: color-mix(in srgb, var(--footer-ink) 21%, var(--footer-surface));
}
.home-footer-wordmark svg { display: block; width: 100%; height: auto; overflow: hidden; }
.home-footer-wordmark .wordmark-light {
  position: absolute;
  inset: 0;
  pointer-events: none;
  color: #abb1b4;
  opacity: 0;
  mask-image: radial-gradient(circle clamp(100px, 14vw, 240px) at var(--light-x, 50%) var(--light-y, 50%), #000, transparent 90%);
  transition: opacity 300ms ease;
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .home-footer-wordmark.is-lit .wordmark-light { opacity: 1; }
}
@media (max-width: 1100px) {
  .home-footer-contacts { grid-template-columns: 1fr 1.95fr; row-gap: 42px; }
  .home-footer-contacts > h2 { grid-column: 1 / -1; }
}
@media (max-width: 740px) {
  .home-footer-inner { gap: 20px; }
  .home-footer-contacts, .home-footer .office-list { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .home-footer .contact-card address { gap: 8px; }
  .home-footer .office-card:first-child { grid-row: auto; }
  .home-footer .office-card p { margin-top: 4px; line-height: 1.6; }
  .home-footer-meta { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; padding-top: 10px; }
  .home-footer-meta > div { align-self: center; }
}
