/* ============================================================
   Halden Instruments — site stylesheet
   Palette: light steel paper, graphite ink, single needle-red accent
   ============================================================ */

:root {
  --paper: #e8eaea;
  --surface: #f6f7f7;
  --surface-2: #fbfbfa;
  --ink: #11171a;
  --ink-2: #3d4a50;
  --ink-3: #707d83;
  --line: #cfd4d6;
  --line-strong: #9fa9ad;
  --needle: #be3126;
  --panel: #131819;
  --panel-2: #1b2224;
  --panel-line: #2f393d;
  --panel-text: #e6e9e9;
  --panel-dim: #94a0a4;

  --sans: "Barlow", system-ui, -apple-system, "Segoe UI", "Helvetica Neue", sans-serif;
  --cond: "Barlow Condensed", "Barlow", system-ui, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", "Consolas", monospace;

  --max: 1180px;
  --gut: 32px;
  --rule: 1px solid var(--line);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16.5px;
  line-height: 1.62;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }

/* grid and flex children must be allowed to shrink below content width */
.hero-copy, .hero-panel, .p-card, .cat-row > *, .detail-main, .detail-aside,
.prose, .cap-item, .inquiry-grid > *, .prose-grid > * { min-width: 0; }

a { color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--cond);
  font-weight: 700;
  letter-spacing: -0.005em;
  line-height: 1.02;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gut);
}

.mono {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.02em;
  font-weight: 400;
}

.kicker {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  line-height: 1.5;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(232, 234, 234, 0.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 66px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  flex: 0 0 auto;
}

.brand-mark { width: 26px; height: 26px; flex: 0 0 auto; color: var(--ink); }

.brand-text {
  font-family: var(--cond);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.06em;
  line-height: 1;
  white-space: nowrap;
}

.brand-text span { color: var(--needle); }

.nav {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}

.nav > a:not(.header-cta) {
  text-decoration: none;
  font-size: 14.5px;
  color: var(--ink-2);
  padding: 4px 0;
  border-bottom: 1px solid transparent;
}

.nav > a:not(.header-cta):hover { color: var(--ink); border-bottom-color: var(--ink); }

.nav > a:not(.header-cta)[aria-current="page"] { color: var(--ink); border-bottom-color: var(--needle); }

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 15px;
  background: var(--ink);
  color: var(--surface-2);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--ink);
  flex: 0 0 auto;
  white-space: nowrap;
}

.header-cta:hover { background: var(--needle); border-color: var(--needle); }

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* ---------- hero ---------- */

.hero { padding: 72px 0 0; }

.hero-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 28px;
  align-items: stretch;
}

.hero-copy { grid-column: 1 / span 5; padding: 6px 0 44px; display: flex; flex-direction: column; }

.hero-kicker {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 26px;
  color: var(--ink-2);
}

.hero-kicker .dot {
  width: 6px; height: 6px;
  background: var(--needle);
  border-radius: 50%;
  flex: 0 0 auto;
}

.hero h1 {
  font-size: clamp(42px, 5.4vw, 74px);
  letter-spacing: -0.012em;
  margin-bottom: 26px;
}

.hero h1 em {
  font-style: normal;
  color: var(--needle);
}

.hero-lede {
  font-size: 17px;
  color: var(--ink-2);
  max-width: 46ch;
  margin-bottom: auto;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 12px 20px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--surface-2);
  cursor: pointer;
}

.btn:hover { background: var(--needle); border-color: var(--needle); color: #fff; }

.btn.ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}

.btn.ghost:hover { background: transparent; border-color: var(--ink); color: var(--ink); }

.btn svg { width: 15px; height: 15px; flex: 0 0 auto; }

.hero-panel {
  grid-column: 6 / span 7;
  background: var(--panel);
  color: var(--panel-text);
  position: relative;
  overflow: hidden;
  min-height: 470px;
  display: flex;
  flex-direction: column;
}

.panel-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 34px 34px;
  pointer-events: none;
}

.panel-head {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--panel-line);
  color: var(--panel-dim);
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.05em;
}

.panel-gauge {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 26px 22px 12px;
}

.gauge-svg { width: 100%; max-width: 400px; height: auto; }

.needle-group {
  transform-origin: 150px 150px;
  animation: sweep 1.5s cubic-bezier(0.22, 0.7, 0.1, 1) both;
}

@keyframes sweep {
  from { transform: rotate(-118deg); }
  to { transform: rotate(0deg); }
}

.panel-foot {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--panel-line);
}

.panel-foot div {
  padding: 14px 18px 16px;
  border-right: 1px solid var(--panel-line);
}

.panel-foot div:last-child { border-right: 0; }

.panel-foot .lbl { color: var(--panel-dim); font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; }

.panel-foot .val { font-family: var(--mono); font-size: 15px; margin-top: 5px; color: #fff; }

/* ---------- section frame ---------- */

.section { padding: 88px 0; }

.section-head {
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: 40px;
  align-items: end;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line-strong);
  margin-bottom: 0;
}

.section-head h2 { font-size: clamp(30px, 3.4vw, 44px); }

.section-head .note {
  color: var(--ink-2);
  font-size: 15.5px;
  max-width: 48ch;
  padding-bottom: 4px;
}

/* ---------- category index ---------- */

.cat-rows { display: block; }

.cat-row {
  display: grid;
  grid-template-columns: 56px 1.35fr 1.6fr 132px;
  gap: 24px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
  transition: background-color 0.18s ease, padding-left 0.18s ease;
}

.cat-row:hover { background: var(--surface-2); padding-left: 12px; }

.cat-code {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--needle);
  border: 1px solid var(--line-strong);
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
}

.cat-name {
  font-family: var(--cond);
  font-weight: 700;
  font-size: 26px;
  line-height: 1.05;
}

.cat-desc { color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }

.cat-meta {
  text-align: right;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.cat-meta svg { width: 16px; height: 16px; }

/* ---------- products ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-top: 0;
}

.p-card {
  background: var(--surface-2);
  padding: 26px 26px 22px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  min-height: 320px;
  transition: background-color 0.18s ease;
}

.p-card:hover { background: #fff; }

.p-visual {
  height: 148px;
  background:
    linear-gradient(to right, rgba(17, 23, 26, 0.05) 1px, transparent 1px) 0 0 / 26px 26px,
    linear-gradient(to bottom, rgba(17, 23, 26, 0.05) 1px, transparent 1px) 0 0 / 26px 26px,
    var(--paper);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  border: 1px solid var(--line);
  overflow: hidden;
}

.p-visual svg { width: 64px; height: 64px; color: var(--ink); opacity: 0.85; }
.p-visual img { width: 100%; height: 100%; object-fit: contain; }

.p-model {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  color: var(--ink-3);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}

.p-name {
  font-family: var(--cond);
  font-weight: 700;
  font-size: 27px;
  line-height: 1.06;
  margin-bottom: 10px;
}

.p-line { color: var(--ink-2); font-size: 14.5px; line-height: 1.55; margin-bottom: 18px; }

.p-specs {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 18px;
}

.p-specs div { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); }

.p-specs b { display: block; font-weight: 400; color: var(--ink); font-size: 12.5px; margin-top: 2px; }

/* ---------- capability ---------- */

.capability { background: var(--surface-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
}

.cap-item { padding: 0 32px 0 0; }
.cap-item + .cap-item { padding-left: 32px; border-left: 1px solid var(--line); }

.cap-item svg { width: 26px; height: 26px; color: var(--needle); margin-bottom: 18px; }

.cap-item h3 { font-size: 22px; margin-bottom: 10px; }

.cap-item p { font-size: 14.5px; color: var(--ink-2); line-height: 1.6; }

/* ---------- inquiry band ---------- */

.inquiry { background: var(--panel); color: var(--panel-text); padding: 74px 0; }

.inquiry-grid {
  display: grid;
  grid-template-columns: 6fr 5fr;
  gap: 48px;
  align-items: center;
}

.inquiry h2 {
  font-size: clamp(30px, 3.6vw, 46px);
  margin-bottom: 16px;
}

.inquiry h2 span { color: #e0655a; }

.inquiry p { color: var(--panel-dim); font-size: 15.5px; max-width: 46ch; }

.contact-lines { display: grid; grid-template-columns: 1fr; gap: 0; }

.contact-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 0;
  border-bottom: 1px solid var(--panel-line);
  text-decoration: none;
  color: var(--panel-text);
}

.contact-line:hover .cl-value { color: #e0655a; }

.cl-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em; color: var(--panel-dim); }

.cl-value { font-family: var(--mono); font-size: 14.5px; transition: color 0.15s ease; }

/* ---------- product listing page ---------- */

.page-head { padding: 64px 0 40px; border-bottom: 1px solid var(--line-strong); }

.crumbs { font-family: var(--mono); font-size: 11.5px; color: var(--ink-3); display: flex; gap: 8px; margin-bottom: 28px; }

.crumbs a { text-decoration: none; color: var(--ink-3); }
.crumbs a:hover { color: var(--ink); }

.page-head h1 { font-size: clamp(36px, 4.6vw, 60px); margin-bottom: 18px; }

.page-head p { color: var(--ink-2); max-width: 62ch; font-size: 16.5px; }

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 26px 0 18px;
}

.filter-search {
  flex: 1 1 320px;
  min-width: 0;
  font-family: var(--sans);
  font-size: 14px;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  color: var(--ink);
  border-radius: 0;
  appearance: none;
}

.filter-search::placeholder { color: var(--ink-3); }

.filter-search:focus { outline: 2px solid var(--needle); outline-offset: 1px; }

.result-count {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  padding: 0 2px;
}

.filter-bar.chips { padding-top: 0; }

.empty-note {
  margin: 0 0 22px;
  font-size: 14px;
  color: var(--ink-2);
  border-left: 2px solid var(--needle);
  padding: 2px 0 2px 14px;
  max-width: 62ch;
}

.spec-note {
  margin-top: 14px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--ink-3);
  max-width: 62ch;
}

.chip {
  font-family: var(--sans);
  font-size: 14px;
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.chip:hover { border-color: var(--ink); color: var(--ink); }

.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--surface-2); }

.chip .count { font-family: var(--mono); font-size: 11px; opacity: 0.65; }

.list-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

/* ---------- product detail ---------- */

.detail-grid {
  display: grid;
  grid-template-columns: 6fr 5fr;
  gap: 48px;
  padding: 46px 0 80px;
}

.detail-main { min-width: 0; }

.detail-model {
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--needle);
  letter-spacing: 0.05em;
  margin-bottom: 12px;
}

.detail-main h1 { font-size: clamp(34px, 4.2vw, 52px); margin-bottom: 16px; }

.detail-lede { font-size: 17px; color: var(--ink-2); max-width: 56ch; margin-bottom: 30px; }

.visual-block {
  height: 300px;
  border: 1px solid var(--line);
  background:
    linear-gradient(to right, rgba(17, 23, 26, 0.05) 1px, transparent 1px) 0 0 / 30px 30px,
    linear-gradient(to bottom, rgba(17, 23, 26, 0.05) 1px, transparent 1px) 0 0 / 30px 30px,
    var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 34px;
}

.visual-block img { width: 100%; height: 100%; object-fit: contain; }
.visual-block svg { width: 104px; height: 104px; color: var(--ink); opacity: 0.85; }

.visual-note { margin-top: 10px; color: var(--ink-3); font-size: 11.5px; line-height: 1.5; }

.detail-section { padding: 28px 0; border-top: 1px solid var(--line); }

.detail-section h2 { font-size: 24px; margin-bottom: 16px; }

.detail-body .wrap {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  align-items: start;
  padding-top: 34px;
  padding-bottom: 66px;
  border-top: 1px solid var(--line-strong);
}

.body-h { font-size: 24px; margin-bottom: 16px; }

.detail-stack { display: grid; gap: 24px; }

.stack-item { padding-top: 22px; border-top: 1px solid var(--line); }

.stack-item:first-child { padding-top: 0; border-top: 0; }

.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }

.feature-list li { position: relative; padding-left: 17px; font-size: 15px; color: var(--ink-2); }

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 6px;
  height: 6px;
  background: var(--needle);
}

.spec-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 14.5px; }

.spec-table col.c1 { width: 34%; }
.spec-table col.c2 { width: 66%; }

.spec-table th, .spec-table td {
  text-align: left;
  vertical-align: top;
  padding: 11px 14px 11px 0;
  border-bottom: 1px solid var(--line);
}

.spec-table th {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.02em;
}

.spec-table td { color: var(--ink); font-size: 14px; }

.detail-aside { position: relative; align-self: start; }

.quote-panel {
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
  padding: 26px;
}

.side-panel {
  border: 1px solid var(--line);
  background: var(--surface-2);
  padding: 20px 22px 22px;
  margin-top: 12px;
}

.side-panel .kicker { display: block; margin-bottom: 12px; }

.side-panel .q-facts { margin-top: 0; border-top: 0; padding-top: 0; }

.quote-panel .kicker { display: block; margin-bottom: 12px; }

.quote-panel h3 { font-size: 23px; margin-bottom: 14px; }

.quote-panel p { font-size: 14px; color: var(--ink-2); line-height: 1.55; margin-bottom: 18px; }

.qf { display: grid; gap: 10px; margin-bottom: 14px; }

.qf label { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.05em; color: var(--ink-3); margin-bottom: 4px; }

.qf input, .qf textarea, .qf select {
  width: 100%;
  font-family: var(--sans);
  font-size: 14.5px;
  padding: 9px 11px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
  border-radius: 0;
}

.qf input:focus, .qf textarea:focus, .qf select:focus {
  outline: 2px solid var(--needle);
  outline-offset: -1px;
  border-color: var(--needle);
}

.quote-panel .btn { width: 100%; justify-content: center; }

.quote-panel .alt {
  display: block;
  text-align: center;
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
  text-decoration: none;
}

.quote-panel .alt:hover { color: var(--needle); }

.q-facts { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 16px; display: grid; gap: 9px; }

.q-facts div { display: flex; justify-content: space-between; gap: 12px; font-family: var(--mono); font-size: 11.5px; }

.q-facts span:first-child { color: var(--ink-3); }

/* ---------- about / contact ---------- */

.prose-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; }

.prose { font-size: 16.5px; line-height: 1.72; color: var(--ink-2); }
.prose p + p { margin-top: 16px; }

.fact-table { width: 100%; border-collapse: collapse; table-layout: fixed; }

.fact-table col.c1 { width: 38%; }
.fact-table col.c2 { width: 62%; }

.fact-table th, .fact-table td {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
  font-size: 14px;
}

.fact-table th { font-family: var(--mono); font-weight: 400; font-size: 11.5px; color: var(--ink-3); }

.contact-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.contact-card { background: var(--surface-2); padding: 26px; }

.contact-card svg { width: 22px; height: 22px; color: var(--needle); margin-bottom: 16px; }

.contact-card .kicker { display: block; margin-bottom: 10px; }

.contact-card a { font-family: var(--mono); font-size: 14px; text-decoration: none; word-break: break-word; }

.contact-card .cv { display: block; font-family: var(--mono); font-size: 14px; word-break: break-word; }

.contact-card a:hover { color: var(--needle); }

.form-band { background: var(--surface-2); border-top: 1px solid var(--line); }

.form-band h2 { font-size: 32px; }

.form-note { margin: 12px 0 26px; }

.c-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 18px; max-width: 720px; }

.c-form .full { grid-column: 1 / -1; }

.c-form label {
  display: block;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  margin-bottom: 5px;
}

.c-form input,
.c-form textarea,
.c-form select {
  width: 100%;
  font-family: var(--sans);
  font-size: 14.5px;
  padding: 10px 12px;
  border: 1px solid var(--line-strong);
  background: #fff;
  color: var(--ink);
  border-radius: 0;
}

.c-form input:focus,
.c-form textarea:focus,
.c-form select:focus {
  outline: 2px solid var(--needle);
  outline-offset: -1px;
  border-color: var(--needle);
}

.c-form textarea { min-height: 130px; resize: vertical; }

.c-form .form-hint { display: block; margin-top: 10px; color: var(--ink-3); font-size: 12px; }

.list-gap { margin-top: 16px; }

.office-block { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 18px; }
.office-block .kicker { display: block; margin-bottom: 6px; }
.office-block p { font-size: 14px; color: var(--ink-2); line-height: 1.6; }

/* ---------- footer ---------- */

.site-footer { background: var(--panel); color: var(--panel-text); padding: 56px 0 30px; }

.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--panel-line);
}

.foot-brand .brand { color: var(--panel-text); margin-bottom: 16px; }
.foot-brand .brand-mark { color: var(--panel-text); }
.foot-brand p { color: var(--panel-dim); font-size: 14px; max-width: 34ch; }

.foot-col h4 {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  font-weight: 400;
  color: var(--panel-dim);
  margin-bottom: 14px;
}

.foot-col a, .foot-col p {
  display: block;
  color: var(--panel-text);
  font-size: 14px;
  text-decoration: none;
  margin-bottom: 9px;
}

.foot-col a:hover { color: #e0655a; }

.foot-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding-top: 22px;
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--panel-dim);
  flex-wrap: wrap;
}

/* ---------- 404 ---------- */

.center-page {
  min-height: 62vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 0;
}

.center-page h1 { font-size: clamp(40px, 6vw, 72px); margin-bottom: 18px; }

/* ---------- responsive ---------- */

@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: repeat(6, 1fr); }
  .hero-copy { grid-column: 1 / -1; padding-bottom: 8px; }
  .hero-panel { grid-column: 1 / -1; min-height: 420px; margin-top: 24px; }
  .hero-lede { max-width: 62ch; }
  .section-head { grid-template-columns: 1fr; gap: 14px; align-items: start; }
  .cat-row { grid-template-columns: 40px 1fr; grid-template-areas: "code name" "code desc" ". meta"; row-gap: 6px; }
  .cat-row > .cat-code { grid-area: code; align-self: start; }
  .cat-row > .cat-name { grid-area: name; }
  .cat-row > .cat-desc { grid-area: desc; }
  .cat-row > .cat-meta { grid-area: meta; justify-content: flex-start; margin-top: 6px; }
  .detail-grid { grid-template-columns: 1fr; gap: 32px; }
  .detail-body .wrap { grid-template-columns: 1fr; gap: 30px; }
  .quote-panel { position: static; }
  .list-grid { grid-template-columns: repeat(2, 1fr); }
  .prose-grid { grid-template-columns: 1fr; gap: 36px; }
  .inquiry-grid { grid-template-columns: 1fr; gap: 34px; }
  .cap-grid { grid-template-columns: 1fr; gap: 30px; }
  .cap-item { padding: 0; }
  .cap-item + .cap-item { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); padding-top: 30px; }
  .contact-cards { grid-template-columns: 1fr; }
  .c-form { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  :root { --gut: 20px; }
  body { font-size: 16px; }
  .gauge-svg { max-width: 290px; }
  .panel-head { flex-wrap: wrap; row-gap: 4px; }
  .panel-gauge { padding: 20px 12px 8px; }
  .nav { display: none; }
  .nav-toggle { display: flex; }
  .header-cta { display: none; }
  .nav.open {
    display: flex;
    position: fixed;
    inset: 66px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--surface-2);
    border-bottom: 1px solid var(--line);
    padding: 8px 20px 18px;
    margin: 0;
  }
  .nav.open a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 16px; border-bottom-color: var(--line); }
  .nav.open a[aria-current="page"] { border-bottom-color: var(--needle); }
  .section { padding: 60px 0; }
  .hero { padding-top: 46px; }
  .card-grid, .list-grid { grid-template-columns: 1fr; }
  .p-card { min-height: 0; }
  .panel-foot { grid-template-columns: 1fr; }
  .panel-foot div { border-right: 0; border-bottom: 1px solid var(--panel-line); }
  .panel-foot div:last-child { border-bottom: 0; }
  .foot-grid { grid-template-columns: 1fr; gap: 28px; }
  .page-head { padding: 44px 0 30px; }
  .visual-block { height: 220px; }
  .q-facts div { flex-direction: column; gap: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .needle-group { animation: none; }
}

:focus-visible { outline: 2px solid var(--needle); outline-offset: 3px; }
