/* ============================================================
   ZWK Precision Instruments — sensor.zwk.autos
   Design system: European precision-instrument aesthetic
   ============================================================ */

:root {
  --paper: #FCFCFB;
  --paper-2: #F2F4F3;
  --paper-3: #EAEDEC;
  --ink: #10171D;
  --steel: #525E66;
  --faint: #7C868D;
  --line: #E0E4E2;
  --line-2: #CBD1CF;
  --brand: #0A4A6E;
  --brand-deep: #062E45;
  --accent: #C41230;
  --night: #0B1216;
  --night-2: #101A20;
  --night-line: #1D2A31;
  --night-text: #C7D2D8;
  --sans: "Helvetica Neue", "Segoe UI", -apple-system, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Consolas", monospace;
  --w: 1180px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: #CFE3EC; }

.wrap { max-width: var(--w); margin: 0 auto; padding: 0 28px; }

/* ---------- micro type ---------- */
.lbl {
  font-size: 10.5px; letter-spacing: .24em; text-transform: uppercase;
  font-weight: 600; color: var(--brand);
}
.lbl::before {
  content: ""; display: inline-block; width: 22px; height: 1px;
  background: var(--accent); vertical-align: middle; margin-right: 12px;
}
.lbl.no-rule::before { display: none; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* ---------- header ---------- */
.hd {
  position: sticky; top: 0; z-index: 60;
  background: rgba(252, 252, 251, .88);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.hd-in { display: flex; align-items: center; gap: 34px; height: 66px; }
.logo { display: flex; align-items: baseline; gap: 10px; margin-right: auto; }
.logo b { font-size: 23px; letter-spacing: .06em; font-weight: 700; color: var(--ink); }
.logo b i { color: var(--brand); font-style: normal; }
.logo span {
  font-size: 9.5px; letter-spacing: .3em; color: var(--faint);
  text-transform: uppercase; font-weight: 600;
}
.nav { display: flex; gap: 26px; }
.nav a {
  font-size: 13px; font-weight: 500; color: var(--steel);
  letter-spacing: .02em; padding: 6px 0; border-bottom: 1.5px solid transparent;
  transition: color .2s, border-color .2s;
}
.nav a:hover { color: var(--ink); border-color: var(--brand); }
.hd-cta {
  font-size: 12.5px; font-weight: 600; letter-spacing: .04em;
  border: 1.5px solid var(--ink); padding: 8px 18px; border-radius: 2px;
  transition: background .2s, color .2s;
}
.hd-cta:hover { background: var(--ink); color: #fff; }
.burger { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.burger span { display: block; width: 20px; height: 1.6px; background: var(--ink); margin: 4.5px 0; transition: .25s; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  opacity: .35;
  mask-image: radial-gradient(120% 90% at 70% 20%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 90% at 70% 20%, #000 30%, transparent 78%);
}
.hero-in {
  display: grid; grid-template-columns: 1.06fr .94fr; gap: 40px;
  align-items: center; padding: 84px 0 72px; position: relative;
}
.hero h1 {
  font-size: clamp(2.5rem, 4.6vw, 4.05rem);
  line-height: 1.04; letter-spacing: -.022em; font-weight: 600;
  margin: 26px 0 22px;
}
.hero h1 em { font-style: normal; color: var(--brand); }
.hero p.lede { font-size: 17.5px; color: var(--steel); max-width: 46ch; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .05em;
  padding: 13px 26px; border-radius: 2px; border: 1.5px solid transparent;
  transition: transform .15s, background .2s, border-color .2s, color .2s;
}
.btn:active { transform: translateY(1px); }
.btn-solid { background: var(--brand); color: #fff; }
.btn-solid:hover { background: var(--brand-deep); }
.btn-line { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn-line:hover { border-color: var(--ink); }
.hero-fig { position: relative; }
.hero-fig svg { width: 100%; height: auto; }
.hero-fig .plate {
  position: absolute; left: 8%; bottom: 6%;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em;
  color: var(--faint);
}

/* ---------- key figures ---------- */
.figures { border-bottom: 1px solid var(--line); background: var(--paper); }
.figs {
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 30px 0 26px;
}
.fig { padding: 4px 34px; border-left: 1px solid var(--line); }
.fig:first-child { border-left: 0; padding-left: 0; }
.fig b {
  font-family: var(--mono); font-weight: 600; font-size: 26px;
  letter-spacing: -.01em; color: var(--ink); display: block;
}
.fig b sup { font-size: 14px; color: var(--accent); }
.fig span { font-size: 12px; color: var(--faint); letter-spacing: .06em; text-transform: uppercase; }

/* ---------- trust strip ---------- */
.trust { border-bottom: 1px solid var(--line); background: var(--paper-2); }
.trust-in {
  display: flex; flex-wrap: wrap; gap: 14px 44px; padding: 14px 0;
  font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--steel); font-weight: 600;
}
.trust-in i { font-style: normal; color: var(--accent); margin-right: 10px; }

/* ---------- sections ---------- */
.sec { padding: 96px 0; }
.sec.alt { background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 54px; }
.sec-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 600;
  letter-spacing: -.015em; line-height: 1.12; margin-top: 16px; max-width: 22ch;
}
.sec-head .more { font-size: 13px; font-weight: 600; color: var(--brand); white-space: nowrap; }
.sec-head .more:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- families ---------- */
.fams { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.fam {
  background: #fff; border: 1px solid var(--line); border-radius: 3px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow .25s, transform .25s, border-color .25s;
}
.fam:hover { box-shadow: 0 16px 44px -18px rgba(16, 23, 29, .22); transform: translateY(-3px); border-color: var(--line-2); }
.fam-fig {
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0/28px 28px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0/28px 28px,
    var(--paper-2);
  border-bottom: 1px solid var(--line);
  padding: 30px 26px 20px; position: relative;
}
.fam-fig svg { width: 100%; height: auto; }
.fam-fig .code {
  position: absolute; top: 14px; right: 16px;
  font-family: var(--mono); font-size: 10px; letter-spacing: .2em; color: var(--faint);
}
.fam-bd { padding: 26px 26px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.fam-bd h3 { font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.fam-bd .tag { font-size: 12px; color: var(--brand); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.fam-bd p { font-size: 13.5px; color: var(--steel); flex: 1; }
.fam-bd .range {
  font-family: var(--mono); font-size: 12px; color: var(--ink);
  border-top: 1px solid var(--line); padding-top: 14px; margin-top: 6px;
  display: flex; justify-content: space-between; align-items: center;
}
.fam-bd .range a { color: var(--brand); font-weight: 600; font-family: var(--sans); font-size: 12.5px; }
.fam-bd .range a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- model matrix ---------- */
.matrix-tabs { display: flex; gap: 8px; margin-bottom: 26px; flex-wrap: wrap; }
.mtab {
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  padding: 9px 18px; border: 1px solid var(--line-2); border-radius: 2px;
  background: transparent; color: var(--steel); cursor: pointer;
  font-family: var(--sans); transition: all .2s;
}
.mtab:hover { border-color: var(--ink); color: var(--ink); }
.mtab.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.matrix { width: 100%; border-collapse: collapse; }
.matrix th {
  text-align: left; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--faint); font-weight: 600; padding: 10px 14px; border-bottom: 2px solid var(--ink);
}
.matrix td {
  padding: 13px 14px; border-bottom: 1px solid var(--line);
  font-size: 14px; font-family: var(--mono); font-variant-numeric: tabular-nums;
}
.matrix td:first-child { font-family: var(--sans); font-weight: 600; letter-spacing: .02em; }
.matrix tr:hover td { background: #fff; }
.matrix a.model-link:hover { color: var(--brand); }
.matrix .fam-chip {
  font-family: var(--sans); font-size: 10px; font-weight: 700; letter-spacing: .14em;
  padding: 3px 8px; border-radius: 2px; margin-right: 12px;
}
.fam-chip.hsdn { color: #fff; background: var(--brand); }
.fam-chip.hsjn { color: #fff; background: #34535E; }
.fam-chip.hsfh { color: #fff; background: #7A2E3C; }
.fam-chip.ft   { color: #fff; background: #563A6B; }
.fam-chip.hslf { color: #fff; background: #3D5245; }
.type-col { font-family: var(--sans); font-size: 12.5px; color: var(--steel); letter-spacing: .02em; }
.tp-co {
  margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--night-line);
  font-size: 10px; letter-spacing: .12em; color: #5F7480; font-family: var(--sans);
  font-weight: 600;
}
.matrix-wrap { overflow-x: auto; }

/* ---------- technology ---------- */
.tech { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.tech-txt h2 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); font-weight: 600; letter-spacing: -.015em; line-height: 1.15; margin: 16px 0 20px; }
.tech-txt p { color: var(--steel); font-size: 15px; margin-bottom: 16px; max-width: 52ch; }
.tech-list { list-style: none; margin-top: 26px; }
.tech-list li {
  padding: 14px 0 14px 34px; border-top: 1px solid var(--line);
  font-size: 14.5px; font-weight: 500; position: relative;
}
.tech-list li::before {
  content: "—"; position: absolute; left: 0; color: var(--accent); font-weight: 700;
}
.tech-fig svg { width: 100%; height: auto; }

/* ---------- digital id (dark) ---------- */
.did { background: var(--night); color: var(--night-text); }
.did .lbl { color: #6FB1CE; }
.did .lbl::before { background: var(--accent); }
.did-in { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; padding: 96px 0; }
.did h2 { color: #F2F6F8; font-size: clamp(1.7rem, 2.8vw, 2.4rem); font-weight: 600; letter-spacing: -.015em; line-height: 1.15; margin: 16px 0 20px; }
.did p { font-size: 15px; color: var(--night-text); max-width: 50ch; margin-bottom: 14px; }
.did p b { color: #fff; font-weight: 600; }

.typeplate {
  background: linear-gradient(160deg, #1A262E, #0E161B);
  border: 1px solid var(--night-line);
  border-radius: 4px; padding: 34px 36px 30px;
  font-family: var(--mono);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 24px 60px -24px rgba(0,0,0,.7);
  position: relative; overflow: hidden;
}
.typeplate::after {
  content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(45deg, transparent 0 3px, rgba(255,255,255,.012) 3px 4px);
  pointer-events: none;
}
.tp-brand { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 1px solid var(--night-line); padding-bottom: 16px; margin-bottom: 18px; }
.tp-brand b { color: #EAF1F4; font-size: 19px; letter-spacing: .1em; font-family: var(--sans); font-weight: 700; }
.tp-brand span { font-size: 10px; letter-spacing: .2em; color: #5F7480; }
.tp-row { display: grid; grid-template-columns: 110px 1fr; gap: 10px; padding: 7px 0; font-size: 13px; letter-spacing: .08em; }
.tp-row i { font-style: normal; color: #5F7480; font-size: 10.5px; letter-spacing: .22em; padding-top: 2px; }
.tp-row b { color: #DCE7EC; font-weight: 500; }
.tp-cal { margin-top: 18px; border-top: 1px dashed var(--night-line); padding-top: 14px; font-size: 11px; color: #5F7480; letter-spacing: .1em; display: flex; justify-content: space-between; }
.tp-cal b { color: #8FC3DB; font-weight: 500; }

/* ---------- applications ---------- */
.apps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.app { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 30px 28px 26px; background: #fff; transition: background .25s; }
.app:hover { background: var(--paper-2); }
.app .no { font-family: var(--mono); font-size: 11px; color: var(--accent); letter-spacing: .18em; }
.app h3 { font-size: 16.5px; font-weight: 600; margin: 12px 0 8px; letter-spacing: -.005em; }
.app p { font-size: 13px; color: var(--steel); }

/* ---------- contact ---------- */
.contact-in { display: grid; grid-template-columns: 1.2fr .8fr; gap: 64px; align-items: start; }
.contact h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); font-weight: 600; letter-spacing: -.018em; line-height: 1.08; margin: 18px 0 22px; }
.contact p { color: var(--steel); max-width: 48ch; font-size: 15.5px; }
.c-card { background: var(--paper-2); border: 1px solid var(--line); border-radius: 3px; padding: 32px 34px; }
.c-row { display: flex; justify-content: space-between; gap: 20px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.c-row:last-of-type { border-bottom: 0; }
.c-row i { font-style: normal; color: var(--faint); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; font-weight: 600; padding-top: 2px; }
.c-row b { font-weight: 600; font-family: var(--mono); font-size: 13.5px; }
.c-card .btn { width: 100%; text-align: center; margin-top: 20px; }

/* ---------- footer ---------- */
.ft { background: var(--night); color: #9FB0B9; margin-top: 96px; }
.ft-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding: 60px 0 44px; }
.ft-brand b { font-size: 21px; letter-spacing: .06em; color: #EAF1F4; font-weight: 700; }
.ft-brand b i { color: #6FB1CE; font-style: normal; }
.ft-brand p { font-size: 13px; margin-top: 12px; max-width: 30ch; line-height: 1.7; }
.ft h4 { font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: #5F7480; margin-bottom: 16px; font-weight: 600; }
.ft ul { list-style: none; }
.ft li { margin-bottom: 10px; font-size: 13.5px; }
.ft a:hover { color: #fff; }
.ft-base { border-top: 1px solid var(--night-line); padding: 20px 0; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 12px; color: #5F7480; font-family: var(--mono); letter-spacing: .04em; }

/* ---------- product page ---------- */
.crumb { padding: 26px 0 0; font-size: 12px; color: var(--faint); letter-spacing: .04em; }
.crumb a:hover { color: var(--brand); }
.crumb .sep { margin: 0 10px; color: var(--line-2); }

.p-hero { display: grid; grid-template-columns: 1fr .92fr; gap: 60px; align-items: center; padding: 40px 0 64px; }
.p-hero-fig {
  background:
    linear-gradient(var(--line) 1px, transparent 1px) 0 0/32px 32px,
    linear-gradient(90deg, var(--line) 1px, transparent 1px) 0 0/32px 32px,
    var(--paper-2);
  border: 1px solid var(--line); border-radius: 3px; padding: 44px 40px 30px; position: relative;
}
.p-hero-fig svg { width: 100%; height: auto; }
.p-hero-fig .fig-note {
  position: absolute; left: 18px; bottom: 12px; font-family: var(--mono);
  font-size: 10px; letter-spacing: .16em; color: var(--faint);
}
.p-hero h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); font-weight: 600; letter-spacing: -.02em; margin: 14px 0 8px; }
.p-hero .p-fam { color: var(--brand); font-weight: 600; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; }
.p-hero .p-sub { color: var(--steel); font-size: 15.5px; margin: 14px 0 26px; max-width: 46ch; }
.p-kv { display: flex; gap: 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); margin-top: 8px; }
.p-kv > div { flex: 1; padding: 14px 20px 14px 0; }
.p-kv > div + div { border-left: 1px solid var(--line); padding-left: 20px; }
.p-kv b { font-family: var(--mono); font-size: 15px; display: block; }
.p-kv span { font-size: 10.5px; color: var(--faint); letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }

.p-plate { margin-top: 34px; }
.p-plate .typeplate { background: linear-gradient(160deg, #1A262E, #0E161B); }

/* spec table */
.spec { width: 100%; border-collapse: collapse; }
.spec th {
  text-align: left; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--faint); font-weight: 600; padding: 12px 16px 12px 0;
  border-bottom: 2px solid var(--ink); width: 30%;
}
.spec td { font-family: var(--mono); font-size: 14.5px; padding: 14px 0 14px 16px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.spec tr:last-child td { border-bottom: 0; }

.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); margin-top: 40px; }
.feat { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 26px 28px; }
.feat b { font-size: 14.5px; font-weight: 600; display: block; margin-bottom: 6px; }
.feat p { font-size: 13px; color: var(--steel); }

.blueprint { background: #fff; border: 1px solid var(--line); border-radius: 3px; padding: 34px; }
.blueprint svg { width: 100%; height: auto; }
.bp-note { font-size: 12px; color: var(--faint); margin-top: 14px; font-family: var(--mono); letter-spacing: .04em; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.chip {
  font-size: 12px; font-weight: 600; letter-spacing: .06em;
  border: 1px solid var(--line-2); border-radius: 2px; padding: 8px 14px; color: var(--steel);
  background: #fff;
}
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 26px; }
.rel {
  border: 1px solid var(--line); border-radius: 3px; padding: 20px 22px; background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.rel:hover { border-color: var(--brand); box-shadow: 0 10px 30px -16px rgba(10, 74, 110, .35); }
.rel b { font-size: 16px; }
.rel .mono { font-size: 12px; color: var(--steel); display: block; margin-top: 4px; }
.rel span.go { display: inline-block; margin-top: 12px; font-size: 12px; color: var(--brand); font-weight: 600; }

.p-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }

.nf { text-align: center; padding: 120px 0; }
.nf h1 { font-size: 2rem; margin: 18px 0 10px; letter-spacing: -.02em; }
.nf p { color: var(--steel); margin-bottom: 30px; }

/* ---------- reveal ---------- */
.rv { opacity: 0; transform: translateY(16px); transition: opacity .7s ease, transform .7s ease; transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .hero-in, .tech, .did-in, .contact-in, .p-hero { grid-template-columns: 1fr; gap: 44px; }
  .fams { grid-template-columns: 1fr 1fr; }
  .apps { grid-template-columns: 1fr 1fr; }
  .figs { grid-template-columns: 1fr 1fr; gap: 22px 0; }
  .fig { padding: 4px 26px; }
  .fig:nth-child(odd) { border-left: 0; padding-left: 0; }
  .ft-in { grid-template-columns: 1fr 1fr; }
  .related { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  .sec { padding: 64px 0; }
  .hd-in { gap: 16px; }
  .nav {
    display: none; position: absolute; top: 66px; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; padding: 18px 28px; gap: 14px;
  }
  .nav.open { display: flex; }
  .burger { display: block; }
  .hd-cta { display: none; }
  .fams { grid-template-columns: 1fr; }
  .apps { grid-template-columns: 1fr; }
  .features { grid-template-columns: 1fr; }
  .related { grid-template-columns: 1fr; }
  .figs { grid-template-columns: 1fr; }
  .fig { border-left: 0; padding: 4px 0; }
  .hero-in { padding: 60px 0 56px; }
  .did-in, .contact-in { padding: 64px 0; }
  .did-in { gap: 40px; }
  .typeplate { padding: 26px 22px; }
  .p-kv { flex-direction: column; }
  .p-kv > div + div { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .matrix th:nth-child(4), .matrix td:nth-child(4) { display: none; }
}

/* ---------- print (datasheet) ---------- */
@media print {
  .hd, .ft, .hero-grid-bg, .burger, .matrix-tabs, .p-actions, .crumb, .did-in > div:first-child p:last-child { display: none !important; }
  body { font-size: 12px; }
  .sec { padding: 24px 0; }
  .p-hero { padding: 10px 0 20px; }
  a { color: inherit; }
}
