/* Sensocar prototype — precision-instrument aesthetic */
:root {
  --ink: #0d0d16;
  --ink-2: #14141f;
  --navy: #262639;
  --navy-2: #1c1c2b;
  --lav: #7272a1;
  --lav-2: #b6b6ce;
  --paper: #f0f0f5;
  --muted: #a5a5c2;
  --accent: #66ff8c;
  --accent-dim: rgba(102, 255, 140, .14);
  --warn: #ffc857;
  --danger: #ff5d5d;
  --line: rgba(182, 182, 206, .12);
  --line-2: rgba(182, 182, 206, .24);
  --specimen: #ececf2;

  --f-display: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(16px, 4vw, 56px);
  --max: 1440px;
  --header-h: 68px;
  --ease: cubic-bezier(.2, .7, .1, 1);
  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(--ink);
  color: var(--paper);
  font-family: var(--f-display);
  font-size: 17px;
  line-height: 1.55;
  font-variation-settings: "wdth" 100;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

/* Technical-drawing grid behind everything */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(to right, var(--line) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(182,182,206,.05) 1px, transparent 1px);
  background-size: calc((min(100vw, var(--max)) - 2 * var(--gutter)) / 12) 100%, 100% 96px;
  background-position: calc((100vw - min(100vw, var(--max))) / 2 + var(--gutter)) 0, 0 0;
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.55) 100%);
}
main, footer, header { position: relative; z-index: 1; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--f-mono); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(13, 13, 22, .72);
  backdrop-filter: blur(14px) saturate(1.3);
  -webkit-backdrop-filter: blur(14px) saturate(1.3);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 100%; }
.brand { display: flex; align-items: center; flex-shrink: 0; }
.brand img { height: 34px; width: auto; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a {
  text-decoration: none; font-size: 14px; letter-spacing: .01em; white-space: nowrap;
  padding: 8px 12px; border-radius: 999px; color: var(--muted);
  transition: color .2s, background .2s;
}
.nav a:hover { color: var(--paper); background: rgba(240,240,245,.06); }
.nav a[aria-current="page"] { color: var(--ink); background: var(--accent); }
.header-cta { margin-left: 8px; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line-2); border-radius: 999px; padding: 8px 14px; font-family: var(--f-mono); font-size: 12px; letter-spacing: .1em; cursor: pointer; }
.scroll-ruler { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

@media (max-width: 1180px) {
  .site-header .header-cta { display: none; }
}
@media (max-width: 960px) {
  .menu-btn { display: inline-flex; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; gap: 0; padding: 12px var(--gutter) 28px;
    background: var(--ink); border-bottom: 1px solid var(--line-2);
    transform: translateY(-8px); opacity: 0; pointer-events: none;
    transition: opacity .2s, transform .2s;
  }
  .nav.open { opacity: 1; transform: none; pointer-events: auto; }
  .nav a { font-size: 22px; padding: 14px 0; border-radius: 0; border-bottom: 1px solid var(--line); color: var(--paper); background: none !important; }
  .nav a[aria-current="page"] { color: var(--accent); }
}

/* ---------- Buttons / tags ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  font-weight: 600; font-size: 15px; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .2s var(--ease), background .2s, color .2s, border-color .2s;
}
.btn:active { transform: scale(.97); }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { background: #8dffaa; }
.btn-ghost { border-color: var(--line-2); color: var(--paper); background: transparent; }
.btn-ghost:hover { border-color: var(--paper); }
.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn .arr { font-family: var(--f-mono); transition: transform .2s var(--ease); }
.btn:hover .arr { transform: translateX(3px); }

.tag {
  display: inline-block; font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  padding: 4px 8px; border: 1px solid var(--line-2); border-radius: 4px; color: var(--lav-2);
}
.tag-accent { color: var(--accent); border-color: rgba(102,255,140,.4); }

/* ---------- Type ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  margin: 0 0 20px;
}
.eyebrow .idx { color: var(--accent); }
.eyebrow::after { content: ""; flex: 1; height: 1px; background: var(--line-2); max-width: 220px; }
.display {
  hyphens: manual;
  font-family: var(--f-display);
  font-weight: 800; font-variation-settings: "wdth" 112;
  font-size: clamp(2.6rem, 6.9vw, 7.6rem);
  line-height: .9; letter-spacing: -.035em;
  margin: 0; text-wrap: balance;
}
.h-xl { font-size: clamp(2.2rem, 6vw, 5.6rem); font-weight: 750; font-variation-settings: "wdth" 108; line-height: .95; letter-spacing: -.03em; margin: 0; text-wrap: balance; }
.h-lg { font-size: clamp(1.7rem, 3.6vw, 3.1rem); font-weight: 700; font-variation-settings: "wdth" 104; line-height: 1.02; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
.h-md { font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 650; line-height: 1.15; letter-spacing: -.01em; margin: 0; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.3rem); color: var(--muted); max-width: 58ch; line-height: 1.5; }
.accent { color: var(--accent); }
.dim { color: var(--muted); }

section { padding: clamp(72px, 11vw, 160px) 0; position: relative; }
.section-rule { border-top: 1px solid var(--line-2); }

/* Corner registration marks */
.reg { position: relative; }
.reg::before, .reg::after {
  content: ""; position: absolute; width: 14px; height: 14px; pointer-events: none;
  border-color: var(--lav); border-style: solid; opacity: .8;
}
.reg::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.reg::after { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }

/* ---------- Hero ---------- */
.hero { padding-top: calc(var(--header-h) + clamp(36px, 6vw, 72px)); padding-bottom: clamp(48px, 7vw, 96px); min-height: 100svh; display: flex; align-items: center; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(24px, 4vw, 64px); align-items: center; }
.hero .display .line { display: block; }
.hero .display em { font-style: normal; color: var(--accent); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 28px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line-2); font-family: var(--f-mono); font-size: 12px; color: var(--muted); letter-spacing: .06em; }
.hero-meta b { display: block; color: var(--paper); font-size: 22px; font-weight: 500; letter-spacing: -.01em; }
.cad-coords { position: absolute; right: calc(var(--gutter) + 110px); bottom: 18px; font-family: var(--f-mono); font-size: 11px; color: var(--lav); letter-spacing: .08em; pointer-events: none; }
@media (max-width: 980px) {
  .hero { min-height: 0; }
  .hero-grid { grid-template-columns: 1fr; }
  .cad-coords { display: none; }
}

/* ---------- Load-cell rig ---------- */
.rig {
  position: relative;
  background: linear-gradient(180deg, var(--navy-2), var(--ink-2));
  border: 1px solid var(--line-2);
  border-radius: 18px;
  padding: clamp(14px, 2vw, 22px);
  user-select: none; -webkit-user-select: none;
  touch-action: none;
}
.rig-top { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }
.rig-top a { color: var(--accent); text-decoration: none; }
.rig-stage { position: relative; margin: 6px 0 4px; cursor: grab; outline: none; border-radius: 12px; }
.rig-stage:active { cursor: grabbing; }
.rig-stage svg { width: 100%; height: auto; display: block; overflow: visible; }
.rig-stage .hint {
  position: absolute; left: 50%; top: 8px; transform: translateX(-50%);
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink); background: var(--accent); padding: 5px 10px; border-radius: 999px; white-space: nowrap;
  transition: opacity .4s;
  animation: hint-bob 2.2s ease-in-out infinite;
}
.rig.touched .hint { opacity: 0; }
@keyframes hint-bob { 50% { transform: translate(-50%, 4px); } }

.svg-line { fill: none; stroke: var(--lav-2); stroke-width: 1.3; }
.svg-thin { fill: none; stroke: var(--lav); stroke-width: .8; }
.svg-dim { fill: none; stroke: var(--lav); stroke-width: .7; stroke-dasharray: 3 3; }
.svg-label { font-family: var(--f-mono); font-size: 9px; fill: var(--muted); letter-spacing: .06em; }
.svg-body { fill: url(#steel); stroke: var(--lav-2); stroke-width: 1.2; }
.svg-plate { fill: url(#steelTop); stroke: var(--paper); stroke-width: 1.2; }
.gauge { fill: var(--accent); opacity: .15; transition: fill .3s; }

.indicator {
  background: #08080d;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 14px 16px 12px;
  display: grid; gap: 8px;
}
.ind-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.annun { display: flex; gap: 10px; font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; }
.annun span { color: #3a3a52; transition: color .15s; }
.annun span.on { color: var(--accent); text-shadow: 0 0 8px rgba(102,255,140,.6); }
.annun span.on.warn { color: var(--warn); text-shadow: 0 0 8px rgba(255,200,87,.6); }
.annun span.on.err { color: var(--danger); text-shadow: 0 0 8px rgba(255,93,93,.6); }
.readout {
  font-family: var(--f-mono); font-weight: 500;
  font-size: clamp(2.4rem, 6.4vw, 4.1rem); line-height: 1; letter-spacing: -.02em;
  color: var(--accent); text-shadow: 0 0 18px rgba(102,255,140,.35);
  font-variant-numeric: tabular-nums;
  display: flex; align-items: baseline; justify-content: flex-end; gap: .25em;
}
.readout .unit { font-size: .38em; color: var(--muted); text-shadow: none; }
.readout.over { color: var(--danger); text-shadow: 0 0 18px rgba(255,93,93,.4); }
.ind-sub { font-family: var(--f-mono); font-size: 11px; color: var(--muted); letter-spacing: .04em; display: flex; gap: 14px; flex-wrap: wrap; }
.ind-sub b { color: var(--paper); font-weight: 500; }
.trace { width: 100%; height: 44px; display: block; }
.rig-controls { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip {
  font-family: var(--f-mono); font-size: 12px; letter-spacing: .04em;
  padding: 8px 12px; border-radius: 8px; cursor: pointer;
  background: rgba(240,240,245,.04); border: 1px solid var(--line-2); color: var(--paper);
  transition: background .15s, border-color .15s, color .15s;
}
.chip:hover { border-color: var(--lav-2); }
.chip[aria-pressed="true"], .chip.active { background: var(--accent); color: var(--ink); border-color: var(--accent); }
.chip.ghost { color: var(--muted); }

/* ---------- Category split ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line-2); border: 1px solid var(--line-2); border-radius: 20px; overflow: hidden; }
.split-card {
  position: relative; background: var(--ink); padding: clamp(28px, 4vw, 56px);
  min-height: clamp(360px, 46vw, 560px); display: flex; flex-direction: column; text-decoration: none;
  overflow: hidden; transition: background .4s var(--ease);
}
.split-card:hover { background: var(--navy-2); }
.split-card .count { font-family: var(--f-mono); font-size: clamp(4rem, 12vw, 10rem); line-height: .8; color: transparent; -webkit-text-stroke: 1px var(--lav); letter-spacing: -.04em; transition: color .4s, -webkit-text-stroke-color .4s; }
.split-card:hover .count { color: var(--accent); -webkit-text-stroke-color: var(--accent); }
.split-card .img { position: absolute; right: clamp(20px, 3vw, 44px); top: clamp(20px, 3vw, 44px); width: 38%; max-width: 280px; aspect-ratio: 1; object-fit: contain; padding: 4%; background: var(--specimen); border-radius: 16px; transition: transform .6s var(--ease); }
.split-card:hover .img { transform: translateY(-6px) rotate(-2deg); }
.split-card .body { margin-top: auto; max-width: 30ch; position: relative; z-index: 1; }
.split-card p { color: var(--muted); }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } .split-card .img { width: 42%; } }

/* ---------- Product cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--ink-2); border: 1px solid var(--line-2); border-radius: 16px; overflow: hidden;
  text-decoration: none; transition: transform .35s var(--ease), border-color .25s;
}
.card:hover { transform: translateY(-4px); border-color: var(--lav-2); }
.specimen {
  position: relative; aspect-ratio: 4 / 3; background: var(--specimen);
  background-image: linear-gradient(to right, rgba(38,38,57,.06) 1px, transparent 1px), linear-gradient(to bottom, rgba(38,38,57,.06) 1px, transparent 1px);
  background-size: 20px 20px;
  display: grid; place-items: center; overflow: hidden;
}
.specimen img { width: 78%; height: 82%; object-fit: contain; mix-blend-mode: multiply; transition: opacity .4s, transform .5s var(--ease); }
.specimen .alt { position: absolute; inset: 9%; width: 82%; height: 82%; margin: auto; opacity: 0; }
.card:hover .specimen.has-alt .main { opacity: 0; }
.card:hover .specimen .alt { opacity: 1; }
.card:hover .specimen:not(.has-alt) .main { transform: scale(1.05); }
.specimen .model { position: absolute; left: 12px; top: 10px; font-family: var(--f-mono); font-size: 11px; color: var(--navy); letter-spacing: .08em; }
.specimen .view { position: absolute; right: 12px; top: 10px; font-family: var(--f-mono); font-size: 10px; color: rgba(38,38,57,.6); letter-spacing: .08em; text-transform: uppercase; }
.card-body { padding: 18px 18px 20px; display: grid; gap: 8px; flex: 1; align-content: start; }
.card-title { font-family: var(--f-mono); font-size: 24px; font-weight: 500; letter-spacing: -.02em; margin: 0; }
.card-desc { color: var(--muted); font-size: 14px; margin: 0; }
.card-caps { font-family: var(--f-mono); font-size: 12px; color: var(--lav-2); display: flex; justify-content: space-between; gap: 12px; padding-top: 10px; margin-top: 4px; border-top: 1px dashed var(--line-2); }
.card-caps b { color: var(--accent); font-weight: 500; }
.card-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.card.enter { animation: card-in .45s var(--ease) both; }
@keyframes card-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }

/* Rail */
.rail-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 36px; flex-wrap: wrap; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 23%); gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 18px; scrollbar-width: thin; scrollbar-color: var(--lav) transparent; cursor: grab; }
.rail.dragging { cursor: grabbing; scroll-snap-type: none; }
.rail.dragging .card { pointer-events: none; }
.rail > * { scroll-snap-align: start; }
@media (max-width: 760px) { .rail { grid-auto-columns: 80%; } }
.rail-nav { display: flex; gap: 8px; }
.rail-nav button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); background: none; cursor: pointer; font-family: var(--f-mono); }
.rail-nav button:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Capabilities ---------- */
.caps { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line-2); }
.cap { padding: 28px 24px 8px 0; border-right: 1px solid var(--line); }
.cap + .cap { padding-left: 24px; }
.cap:last-child { border-right: 0; }
.cap img { width: 64px; height: 64px; margin-bottom: 22px; }
.cap .n { font-family: var(--f-mono); font-size: 11px; color: var(--accent); letter-spacing: .1em; }
.cap h3 { margin: 6px 0 10px; font-size: 22px; font-weight: 650; }
.cap p { color: var(--muted); font-size: 15px; margin: 0; }
@media (max-width: 980px) { .caps { grid-template-columns: 1fr 1fr; } .cap:nth-child(2) { border-right: 0; } .cap:nth-child(3) { padding-left: 0; } }
@media (max-width: 560px) { .caps { grid-template-columns: 1fr; } .cap, .cap + .cap { padding: 26px 0; border-right: 0; border-bottom: 1px solid var(--line); } }

/* Image link panels */
.panels { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; }
.panel { position: relative; border-radius: 20px; overflow: hidden; min-height: 420px; display: flex; align-items: flex-end; text-decoration: none; border: 1px solid var(--line-2); }
.panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(.4) contrast(1.05); transition: transform 1s var(--ease), filter .6s; }
.panel:hover img { transform: scale(1.04); filter: grayscale(0); }
.panel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,13,22,.1) 10%, rgba(13,13,22,.95) 85%); }
.panel .body { position: relative; z-index: 1; padding: clamp(22px, 3vw, 40px); }
.panel .go { font-family: var(--f-mono); font-size: 13px; color: var(--accent); margin-top: 14px; display: inline-block; }
@media (max-width: 860px) { .panels { grid-template-columns: 1fr; } .panel { min-height: 320px; } }

/* News */
.news { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.news a { text-decoration: none; display: grid; gap: 12px; align-content: start; }
.news .thumb { aspect-ratio: 16/10; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-2); }
.news .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.news a:hover .thumb img { transform: scale(1.05); }
.news .date { font-family: var(--f-mono); font-size: 12px; color: var(--accent); }
.news h3 { margin: 0; font-size: 18px; line-height: 1.25; font-weight: 600; }
.news p { margin: 0; color: var(--muted); font-size: 14px; }
@media (max-width: 1080px) { .news { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .news { grid-template-columns: 1fr; } }

/* ---------- Page heads ---------- */
.page-head { padding-top: calc(var(--header-h) + clamp(48px, 8vw, 110px)); padding-bottom: clamp(36px, 5vw, 64px); }
.crumbs { font-family: var(--f-mono); font-size: 12px; color: var(--muted); letter-spacing: .06em; margin-bottom: 28px; display: flex; gap: 8px; flex-wrap: wrap; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); }
.page-head .row { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: end; }
@media (max-width: 860px) { .page-head .row { grid-template-columns: 1fr; } }

/* ---------- Finder ---------- */
.finder { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 20px); display: grid; gap: 26px; padding: 22px; background: var(--ink-2); border: 1px solid var(--line-2); border-radius: 16px; }
.filters h3 { font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; font-weight: 500; display: flex; justify-content: space-between; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cap-readout { font-family: var(--f-mono); font-size: 34px; color: var(--accent); line-height: 1; margin: 2px 0 12px; font-variant-numeric: tabular-nums; }
.cap-readout small { font-size: 13px; color: var(--muted); margin-left: 4px; }
.range { width: 100%; appearance: none; -webkit-appearance: none; height: 28px; background: transparent; cursor: pointer; }
.range::-webkit-slider-runnable-track { height: 2px; background: linear-gradient(to right, var(--accent) var(--fill, 0%), var(--line-2) var(--fill, 0%)); }
.range::-moz-range-track { height: 2px; background: var(--line-2); }
.range::-moz-range-progress { height: 2px; background: var(--accent); }
.range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -10px; border-radius: 50%; background: var(--ink); border: 2px solid var(--accent); box-shadow: 0 0 0 5px var(--accent-dim); }
.range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--ink); border: 2px solid var(--accent); }
.ticks { display: flex; justify-content: space-between; font-family: var(--f-mono); font-size: 10px; color: var(--lav); margin-top: 2px; }
.finder-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.result-count { font-family: var(--f-mono); font-size: 14px; color: var(--muted); }
.result-count b { color: var(--paper); font-size: 28px; font-weight: 500; margin-right: 4px; }
.search { flex: 1; max-width: 340px; background: transparent; border: 1px solid var(--line-2); border-radius: 999px; padding: 10px 16px; color: var(--paper); font-family: var(--f-mono); font-size: 13px; }
.search::placeholder { color: var(--lav); }
.type-help { font-size: 13px; color: var(--muted); margin: 10px 0 0; min-height: 3em; }
.empty { padding: 56px 24px; text-align: center; border: 1px dashed var(--line-2); border-radius: 16px; }
.filters-toggle { display: none; }
@media (max-width: 960px) {
  .finder { grid-template-columns: 1fr; }
  .filters { position: static; }
}

/* Editorial */
.editorial { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(28px, 5vw, 80px) clamp(28px, 5vw, 64px); }
.editorial article h3 { font-size: clamp(1.3rem, 2vw, 1.75rem); line-height: 1.15; margin: 0 0 16px; font-weight: 650; }
.editorial article .n { font-family: var(--f-mono); color: var(--accent); font-size: 12px; letter-spacing: .1em; display: block; margin-bottom: 14px; }
.editorial article :is(p, li) { color: var(--muted); font-size: 16px; }
.editorial article a { color: var(--paper); text-decoration-color: var(--lav); }
.editorial article strong { color: var(--paper); font-weight: 600; }
@media (max-width: 860px) { .editorial { grid-template-columns: 1fr; } }

/* ---------- Product detail ---------- */
.pd-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
@media (max-width: 960px) { .pd-grid { grid-template-columns: 1fr; } }
.zoom {
  position: relative; aspect-ratio: 1 / 1; background: var(--specimen); border-radius: 18px; overflow: hidden; cursor: zoom-in;
  background-image: linear-gradient(to right, rgba(38,38,57,.07) 1px, transparent 1px), linear-gradient(to bottom, rgba(38,38,57,.07) 1px, transparent 1px);
  background-size: 24px 24px; touch-action: pan-y;
}
.zoom.on { cursor: zoom-out; touch-action: none; }
.zoom img { width: 100%; height: 100%; object-fit: contain; padding: 8%; mix-blend-mode: multiply; transition: transform .25s var(--ease); transform-origin: var(--ox, 50%) var(--oy, 50%); }
.zoom.on img { transform: scale(2.6); transition: transform .25s var(--ease), transform-origin 0s; }
.zoom .zoom-tip { position: absolute; right: 12px; bottom: 12px; font-family: var(--f-mono); font-size: 11px; color: var(--navy); background: rgba(255,255,255,.75); padding: 5px 9px; border-radius: 999px; pointer-events: none; }
.zoom .dimtag { position: absolute; left: 14px; top: 12px; font-family: var(--f-mono); font-size: 11px; color: var(--navy); letter-spacing: .08em; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.thumbs button { width: 72px; height: 72px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--specimen); padding: 6px; cursor: pointer; }
.thumbs button[aria-current="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }

.pd-title {
  --col: calc(100vw - 2 * var(--gutter));
  font-family: var(--f-mono); font-weight: 500; line-height: .95; letter-spacing: -.05em; margin: 0 0 14px;
  /* scale long model names to fit the column instead of breaking mid-word */
  font-size: max(1.8rem, min(6.6rem, 14vw, calc(var(--col) / (var(--len, 6) * .58))));
}
@media (min-width: 961px) { .pd-title { --col: calc((min(100vw, var(--max)) - 2 * var(--gutter)) * .44); } }
.keyfacts { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line-2); margin: 28px 0; }
.keyfacts div { padding: 14px 0; border-bottom: 1px solid var(--line); }
.keyfacts div:nth-child(odd) { padding-right: 16px; border-right: 1px solid var(--line); }
.keyfacts div:nth-child(even) { padding-left: 16px; }
.keyfacts dt { font-family: var(--f-mono); font-size: 11px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.keyfacts dd { margin: 4px 0 0; font-size: 18px; font-weight: 550; }
.pd-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line-2); overflow-x: auto; scrollbar-width: none; }
.tabs button { background: none; border: 0; padding: 14px 16px; font-size: 15px; color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; margin-bottom: -1px; }
.tabs button[aria-selected="true"] { color: var(--paper); border-color: var(--accent); }
.tabpanel { padding: 28px 0 0; }
.tabpanel[hidden] { display: none; }
.unit-toggle { display: inline-flex; border: 1px solid var(--line-2); border-radius: 999px; padding: 3px; gap: 2px; }
.unit-toggle button { border: 0; background: none; padding: 6px 14px; border-radius: 999px; font-family: var(--f-mono); font-size: 12px; cursor: pointer; color: var(--muted); }
.unit-toggle button[aria-pressed="true"] { background: var(--accent); color: var(--ink); }
.spec-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 14px; flex-wrap: wrap; }
.specs { width: 100%; border-collapse: collapse; font-size: 15px; }
.specs th, .specs td { text-align: left; padding: 13px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.specs th { font-weight: 450; color: var(--muted); width: 42%; padding-right: 20px; }
.specs td { font-family: var(--f-mono); font-size: 14px; color: var(--paper); }
.specs tr { transition: background .2s; }
.specs tr:hover { background: rgba(240,240,245,.03); }
.specs .val-chip { display: inline-block; padding: 3px 8px; margin: 0 4px 4px 0; border: 1px solid var(--line-2); border-radius: 6px; }
.specs .flash { animation: flash .6s; }
@keyframes flash { from { color: var(--accent); } }
.docs { display: grid; gap: 8px; }
.doc { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 18px; border: 1px solid var(--line-2); border-radius: 12px; text-decoration: none; transition: border-color .2s, background .2s; }
.doc:hover { border-color: var(--accent); background: var(--accent-dim); }
.doc .t { font-weight: 550; }
.doc .m { font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.doc.gated { opacity: .6; }
.model-box { aspect-ratio: 4/3; max-height: 72vh; width: 100%; border-radius: 18px; overflow: hidden; background: radial-gradient(circle at 50% 40%, #2c2c44, var(--ink-2)); border: 1px solid var(--line-2); }
.model-box model-viewer { width: 100%; height: 100%; --poster-color: transparent; }
.list-plain { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.list-plain li { padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; display: flex; justify-content: space-between; gap: 16px; }
.list-plain li .k { font-family: var(--f-mono); }
.list-plain li .v { color: var(--muted); text-align: right; font-size: 14px; }
.versions { width: 100%; border-collapse: collapse; font-family: var(--f-mono); font-size: 12px; }
.versions th, .versions td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: center; }
.versions th:first-child, .versions td:first-child { text-align: left; }
.versions thead th { color: var(--muted); font-weight: 400; writing-mode: initial; }
.versions .yes { color: var(--accent); }
.versions-wrap { overflow-x: auto; }
.long { color: var(--muted); max-width: 70ch; }
.long b, .long strong { color: var(--paper); }

/* ---------- About ---------- */
.chapter-nav { position: sticky; top: var(--header-h); z-index: 10; background: rgba(13,13,22,.85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.chapter-nav .wrap { display: flex; gap: 6px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; scrollbar-width: none; }
.chapter-nav a { font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; padding: 8px 12px; border-radius: 999px; text-decoration: none; color: var(--muted); white-space: nowrap; border: 1px solid transparent; }
.chapter-nav a.active { color: var(--accent); border-color: rgba(102,255,140,.4); }
.chapter { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(24px, 5vw, 80px); align-items: start; }
.chapter .sticky { position: sticky; top: calc(var(--header-h) + 90px); }
.chapter .big-n { font-family: var(--f-mono); font-size: clamp(5rem, 14vw, 12rem); line-height: .8; color: transparent; -webkit-text-stroke: 1px var(--lav); letter-spacing: -.06em; margin-bottom: 20px; }
.photo-stack { display: grid; gap: 16px; }
.photo-stack figure { margin: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--line-2); position: relative; }
.photo-stack figure img { width: 100%; height: auto; transition: transform 1s var(--ease); }
.photo-stack .duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.photo-stack figcaption { position: absolute; left: 12px; bottom: 10px; font-family: var(--f-mono); font-size: 11px; color: var(--paper); background: rgba(13,13,22,.7); padding: 4px 8px; border-radius: 6px; }
.article-block { margin-top: 28px; }
.article-block h3 { font-size: 22px; margin: 0 0 8px; font-weight: 650; }
.article-block p { color: var(--muted); margin: 0; }
.service-list { list-style: none; padding: 0; margin: 0; counter-reset: s; }
.service-list li { counter-increment: s; display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 22px 0; border-top: 1px solid var(--line-2); font-size: clamp(1.1rem, 1.7vw, 1.45rem); line-height: 1.3; }
.service-list li::before { content: "0" counter(s); font-family: var(--f-mono); font-size: 13px; color: var(--accent); padding-top: 6px; }
@media (max-width: 860px) { .chapter { grid-template-columns: 1fr; } .chapter .sticky { position: static; } }

.certs { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(20px, 3vw, 44px); }
.certs img { height: 36px; width: auto; opacity: .75; transition: opacity .2s; }
.certs img:hover { opacity: 1; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.contact-big a { display: block; font-family: var(--f-mono); font-size: min(6.2vw, 3rem); white-space: nowrap; letter-spacing: -.03em; text-decoration: none; line-height: 1.15; padding: 10px 0; border-bottom: 1px solid var(--line-2); transition: color .2s; }
@media (min-width: 861px) { .contact-big a { font-size: min(2.9vw, 3rem); } }
.contact-big a:hover { color: var(--accent); }
.contact-big .lbl { font-family: var(--f-mono); font-size: 11px; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; margin-top: 26px; display: block; }
.form { display: grid; gap: 14px; padding: clamp(20px, 3vw, 36px); background: var(--ink-2); border: 1px solid var(--line-2); border-radius: 18px; }
.field { display: grid; gap: 6px; }
.field label { font-family: var(--f-mono); font-size: 11px; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }
.field input, .field textarea { background: transparent; border: 0; border-bottom: 1px solid var(--line-2); padding: 10px 0; color: var(--paper); font: inherit; font-size: 17px; border-radius: 0; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--accent); }
.field textarea { min-height: 120px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.check input { accent-color: var(--accent); width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; }
.form-note { font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.form-status { font-family: var(--f-mono); font-size: 13px; color: var(--accent); min-height: 1.2em; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { text-align: center; }
.cta-band .h-xl { margin: 0 auto 28px; max-width: 16ch; }
.cta-band .actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line-2); padding: 64px 0 32px; background: linear-gradient(180deg, transparent, rgba(38,38,57,.35)); }
.foot-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; gap: 32px; }
.foot-grid h4 { font-size: 16px; margin: 0 0 8px; font-weight: 650; }
.foot-grid p { color: var(--muted); font-size: 14px; margin: 0; }
.foot-nav { display: grid; gap: 6px; }
.foot-nav a { color: var(--muted); text-decoration: none; font-size: 14px; }
.foot-nav a:hover { color: var(--accent); }
.foot-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line); font-family: var(--f-mono); font-size: 12px; color: var(--muted); }
.foot-bottom a { color: var(--muted); }
.foot-certs { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--line); }
.proto-badge { pointer-events: none; position: fixed; right: 12px; bottom: 12px; z-index: 60; font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; background: var(--warn); color: var(--ink); padding: 5px 9px; border-radius: 6px; }
@media (max-width: 960px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot-grid { grid-template-columns: 1fr; } }

/* ---------- Reveal ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js .split-words .w { display: inline-block; opacity: 0; transform: translateY(.4em); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i) * 45ms); }
.js .split-words.in .w { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js [data-reveal], .js .split-words .w { opacity: 1; transform: none; }
}
@media (max-width: 760px) { .proto-badge { display: none; } .rig-top span { max-width: 70%; } }
.list-plain li a.k { color: var(--accent); text-decoration: none; }

/* ---------- News list + article ---------- */
.news-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 36px; }
.news-lead { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(20px, 3vw, 48px); align-items: end; text-decoration: none; margin-bottom: 64px; }
.news-lead .thumb { aspect-ratio: 16/10; border-radius: 18px; overflow: hidden; border: 1px solid var(--line-2); }
.news-lead .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.news-lead:hover .thumb img { transform: scale(1.03); }
.news-lead .date { font-family: var(--f-mono); font-size: 12px; color: var(--accent); }
.news-lead p { color: var(--muted); }
@media (max-width: 860px) { .news-lead { grid-template-columns: 1fr; } }
.news .tagline { display: flex; gap: 10px; align-items: center; }
.more-wrap { display: flex; justify-content: center; margin-top: 48px; }
.article-head { max-width: 980px; }
.article-head .meta { display: flex; gap: 12px; align-items: center; font-family: var(--f-mono); font-size: 12px; color: var(--accent); margin-bottom: 24px; }
.article-hero { margin: 0 0 clamp(36px, 6vw, 72px); border-radius: 20px; overflow: hidden; border: 1px solid var(--line-2); max-height: 72vh; }
.article-hero img { width: 100%; height: 100%; object-fit: cover; }
.prose { max-width: 72ch; margin: 0 auto; font-size: 18px; line-height: 1.7; color: #d6d6e4; }
.prose :is(h2, h3, h4) { color: var(--paper); line-height: 1.2; margin: 1.8em 0 .6em; letter-spacing: -.01em; }
.prose h2 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.prose h3 { font-size: 1.3rem; }
.prose p { margin: 0 0 1.1em; }
.prose a { color: var(--accent); }
.prose strong, .prose b { color: var(--paper); }
.prose img { border-radius: 12px; margin: 1.5em 0; height: auto; }
.prose ul, .prose ol { padding-left: 1.2em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--accent); }
.article-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; max-width: 980px; margin: 72px auto 0; }
.article-nav a { padding: 20px; border: 1px solid var(--line-2); border-radius: 14px; text-decoration: none; display: grid; gap: 6px; transition: border-color .2s; }
.article-nav a:hover { border-color: var(--accent); }
.article-nav .dir { font-family: var(--f-mono); font-size: 11px; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.article-nav .next { text-align: right; }
@media (max-width: 640px) { .article-nav { grid-template-columns: 1fr; } .article-nav .next { text-align: left; } }
.legal { max-width: 80ch; }
.legal table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 1em 0 2em; display: block; overflow-x: auto; }
.legal th, .legal td { border-bottom: 1px solid var(--line-2); padding: 10px 12px 10px 0; text-align: left; vertical-align: top; }
.legal h1 { display: none; }

/* Hero test bench: fit the whole bench in short laptop viewports (e.g. 1280x720, 1440x780) */
@media (min-width: 981px) {
  .hero { min-height: 100vh; min-height: 100dvh; padding-top: calc(var(--header-h) + clamp(12px, 2.4dvh, 40px)); padding-bottom: clamp(12px, 2.4dvh, 40px); }
  .hero .display { font-size: min(6.9vw, 11dvh, 7.6rem); }
  .hero .lead { margin-top: clamp(14px, 2.6dvh, 28px) !important; }
  .hero-actions { margin-top: clamp(18px, 3.4dvh, 36px); }
  .hero-meta { margin-top: clamp(20px, 4.4dvh, 48px); }
  .rig { padding: clamp(10px, 1.6dvh, 22px) clamp(12px, 1.6vw, 22px); }
  .rig-stage { margin: 2px 0; }
  .rig-stage svg { max-height: calc(100dvh - var(--header-h) - 2 * clamp(12px, 2.4dvh, 40px) - var(--rig-reserve, 278px)); }
  .indicator { padding: clamp(8px, 1.3dvh, 14px) 14px clamp(8px, 1.2dvh, 12px); gap: clamp(4px, .8dvh, 8px); }
  .readout { font-size: clamp(2rem, 6.4dvh, 4.1rem); }
  .trace { height: clamp(24px, 4.4dvh, 44px); }
  .rig-controls { margin-top: clamp(8px, 1.2dvh, 12px); }
  .rig-controls .chip { padding: clamp(6px, .9dvh, 8px) 11px; }
}
