/* ==========================================================================
   Alliance Test Equipment — Page-level layouts
   ========================================================================== */

/* ---------- Page header ---------- */
.page-head {
  position: relative;
  background: var(--navy-950);
  color: #fff;
  overflow: hidden;
  padding-block: clamp(3rem, 2rem + 3.5vw, 5.25rem);
}
.page-head::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 85% at 85% 40%, rgba(0,96,168,.17), transparent 68%);
  pointer-events: none;
}
.page-head .container { position: relative; z-index: 1; }
.page-head .breadcrumb { color: var(--steel-400); padding-block: 0 var(--sp-5); }
.page-head .breadcrumb a:hover { color: #fff; }
.page-head .breadcrumb .sep { color: var(--steel-600, #47576f); }
.page-head .breadcrumb [aria-current] { color: #fff; }
.page-head h1 { margin-bottom: var(--sp-4); max-width: 940px; }
.page-head__lede { color: var(--steel-300); font-size: clamp(.98rem, .94rem + .3vw, 1.1rem); max-width: 720px; line-height: 1.62; }
.page-head__meta {
  margin-top: var(--sp-5);
  display: flex;
  gap: var(--sp-5);
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  color: var(--steel-400);
}
.page-head__meta strong { color: #fff; font-weight: 500; }

/* ---------- Category / listing layout ---------- */
.listing {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  gap: clamp(1.5rem, 1rem + 2vw, 3rem);
  align-items: start;
}
@media (max-width: 1000px) { .listing { grid-template-columns: 1fr; } }

.filters {
  position: sticky;
  top: calc(var(--header-h-sm) + 16px);
  /* The rail scrolls with the page — no nested scrollbars */
  overflow: visible;
}
@media (max-width: 1000px) {
  .filters { position: static; }
}

.filter-group { padding-block: var(--sp-5); border-bottom: 1px solid var(--line); }
.filter-group:first-child { padding-top: 0; }
.filter-group__title {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--navy-900);
  margin-bottom: var(--sp-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.filter-list { display: grid; gap: 1px; }
.filter-opt {
  display: flex;
  align-items: flex-start;
  gap: .6rem;
  padding: .42rem .5rem;
  margin-inline: -.5rem;
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  color: var(--navy-800);
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.filter-opt:hover { background: var(--steel-50); }
.filter-opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.filter-opt__box {
  width: 16px; height: 16px;
  margin-top: 2px;
  flex: none;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--t-fast) var(--ease);
}
.filter-opt__box svg { opacity: 0; transform: scale(.6); transition: all var(--t-fast) var(--ease); }
.filter-opt input:checked + .filter-opt__box { background: var(--brand-blue); border-color: var(--brand-blue); }
.filter-opt input:checked + .filter-opt__box svg { opacity: 1; transform: none; }
.filter-opt input:focus-visible + .filter-opt__box { outline: 2px solid var(--brand-blue); outline-offset: 2px; }
.filter-opt__name {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  line-height: 1.35;
}
.filter-opt__count {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-subtle);
  flex: none;
  margin-top: 3px;
}

.filter-search { position: relative; margin-bottom: var(--sp-4); }
.filter-search .input { padding-left: 2.2rem; font-size: var(--fs-xs); }
.filter-search svg { position: absolute; left: .72rem; top: 50%; transform: translateY(-50%); color: var(--text-subtle); }

/* Listing toolbar */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  flex-wrap: wrap;
  padding-bottom: var(--sp-5);
  margin-bottom: var(--sp-5);
  border-bottom: 1px solid var(--line);
}
.toolbar__count { font-size: var(--fs-sm); color: var(--text-muted); }
.toolbar__count strong { color: var(--navy-900); font-weight: 640; font-variant-numeric: tabular-nums; }
.toolbar__right { display: flex; align-items: center; gap: var(--sp-3); flex-wrap: wrap; }
.toolbar .select { width: auto; min-width: 172px; padding-block: .5rem; font-size: var(--fs-xs); }

.view-toggle { display: flex; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); overflow: hidden; }
.view-toggle button {
  width: 36px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-subtle);
  transition: all var(--t-fast) var(--ease);
}
.view-toggle button + button { border-left: 1px solid var(--line-strong); }
.view-toggle button:hover { background: var(--steel-50); color: var(--navy-900); }
.view-toggle button.is-active { background: var(--navy-900); color: #fff; }

.active-filters { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin-bottom: var(--sp-5); }
.chip-clear {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  padding: .35rem .7rem;
  font-size: var(--fs-xs);
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  background: var(--white);
  color: var(--navy-800);
  transition: all var(--t-fast) var(--ease);
}
.chip-clear:hover { border-color: var(--brand-accent); color: var(--brand-accent-600); }
.chip-clear svg { opacity: .6; }

/* List view */
.prod-grid.is-list { grid-template-columns: 1fr; }
.prod-grid.is-list .prod-card { flex-direction: row; }
.prod-grid.is-list .prod-card__media {
  width: 190px; flex: none; aspect-ratio: 1 / 1;
  border-bottom: 0; border-right: 1px solid var(--line);
  padding: var(--sp-4);
}
.prod-grid.is-list .prod-card__body { flex-direction: column; }
.prod-grid.is-list .prod-card__desc { -webkit-line-clamp: 3; }
@media (max-width: 640px) {
  .prod-grid.is-list .prod-card { flex-direction: column; }
  .prod-grid.is-list .prod-card__media { width: 100%; aspect-ratio: 4/3; border-right: 0; border-bottom: 1px solid var(--line); }
}

/* Pagination */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  margin-top: var(--sp-8);
  flex-wrap: wrap;
}
.pagination button, .pagination span {
  min-width: 40px; height: 40px;
  padding: 0 .7rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  font-variant-numeric: tabular-nums;
  color: var(--navy-800);
  background: var(--white);
  transition: all var(--t-fast) var(--ease);
}
.pagination button:hover:not(:disabled) { border-color: var(--navy-900); background: var(--navy-900); color: #fff; }
.pagination button.is-active { background: var(--brand-blue); border-color: var(--brand-blue); color: #fff; }
.pagination button:disabled { opacity: .35; cursor: not-allowed; }
.pagination .dots { border: 0; background: none; color: var(--text-subtle); min-width: 24px; }

/* Filter drawer trigger (mobile) */
.filter-trigger { display: none; }
@media (max-width: 1000px) { .filter-trigger { display: inline-flex; } .filters--desktop { display: none; } }

/* ---------- Product detail ---------- */
.pdp {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: clamp(2rem, 1rem + 4vw, 4rem);
  align-items: start;
}
/* Keep the gallery visually anchored to the buy box rather than floating alone */
.pdp > div:last-child { display: flex; flex-direction: column; }
@media (max-width: 980px) { .pdp { grid-template-columns: 1fr; } }

.gallery { position: sticky; top: calc(var(--header-h-sm) + 24px); }
@media (max-width: 980px) { .gallery { position: static; } }
.gallery__main {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-4);
  overflow: hidden;
  margin-bottom: var(--sp-3);
}
.gallery__main img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: saturate(.94) contrast(1.02);
  transition: opacity var(--t) var(--ease), transform var(--t-slow) var(--ease-out);
}
.gallery__main .grid-pattern {
  background-image:
    linear-gradient(to right, rgba(10,18,32,.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(10,18,32,.03) 1px, transparent 1px);
  background-size: 28px 28px;
}
.gallery__zoom {
  position: absolute;
  right: var(--sp-4); bottom: var(--sp-4);
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition: all var(--t-fast) var(--ease);
}
.gallery__zoom:hover { color: var(--brand-blue); border-color: var(--brand-blue); }
.gallery__thumbs { display: flex; gap: var(--sp-3); flex-wrap: wrap; }
.gallery__thumb {
  width: 74px; height: 74px;
  padding: 6px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--t-fast) var(--ease);
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: contain; }
.gallery__thumb:hover { border-color: var(--line-strong); }
.gallery__thumb.is-active { border-color: var(--brand-blue); box-shadow: 0 0 0 2px rgba(0,96,168,.14); }

.pdp__mfr {
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand-blue);
  margin-bottom: var(--sp-3);
  display: block;
}
.pdp h1 { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem); margin-bottom: var(--sp-3); }
.pdp__tagline { font-size: 1.06rem; color: var(--text-muted); line-height: 1.55; margin-bottom: var(--sp-5); }
.pdp__badges { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin-bottom: var(--sp-5); }

.pdp__price-box {
  padding: var(--sp-5);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-bottom: var(--sp-5);
}
.pdp__price-label {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: .3rem;
}
.pdp__price {
  font-size: clamp(1.7rem, 1.4rem + 1.2vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -.035em;
  color: var(--navy-900);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.pdp__price-note { font-size: var(--fs-xs); color: var(--text-muted); margin-top: .45rem; }
.pdp__actions { display: flex; gap: var(--sp-3); flex-wrap: wrap; margin-top: var(--sp-5); }
.pdp__actions .btn { flex: 1; min-width: 168px; }

.pdp__quick {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: var(--sp-5);
}
.pdp__quick-item { background: var(--white); padding: var(--sp-4); display: flex; gap: .7rem; align-items: flex-start; }
.pdp__quick-item svg { flex: none; color: var(--brand-blue); margin-top: 2px; }
.pdp__quick-item strong { display: block; font-size: var(--fs-xs); font-weight: 620; color: var(--navy-900); }
.pdp__quick-item span { font-size: 11.5px; color: var(--text-muted); line-height: 1.45; }

.pdp__help {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.pdp__help svg { flex: none; color: var(--brand-accent); }
.pdp__help div { flex: 1; }
.pdp__help strong { display: block; font-size: var(--fs-sm); }
.pdp__help p { font-size: var(--fs-xs); color: var(--text-muted); }
.pdp__help a { font-family: var(--font-mono); font-weight: 500; color: var(--brand-blue); white-space: nowrap; }

/* Tabs */
.tabs { border-bottom: 1px solid var(--line); display: flex; gap: var(--sp-5); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  position: relative;
  padding: var(--sp-4) 0;
  font-size: var(--fs-sm);
  font-weight: 570;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color var(--t-fast) var(--ease);
}
.tab::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 2px;
  background: var(--brand-blue);
  transform: scaleX(0);
  transition: transform var(--t) var(--ease);
}
.tab:hover { color: var(--navy-900); }
.tab.is-active { color: var(--brand-blue); }
.tab.is-active::after { transform: scaleX(1); }
.tab-panel { display: none; padding-top: var(--sp-6); }
.tab-panel.is-active { display: block; animation: fadeUp 420ms var(--ease-out); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.prose { max-width: 820px; }
.prose p { color: var(--text-muted); line-height: 1.75; }
.prose p + p { margin-top: var(--sp-4); }
.prose h3 { margin-top: var(--sp-6); margin-bottom: var(--sp-3); }
.prose h3:first-child { margin-top: 0; }
.prose ul { display: grid; gap: .5rem; margin-top: var(--sp-4); }
.prose ul li {
  position: relative;
  padding-left: 1.3rem;
  color: var(--text-muted);
  font-size: var(--fs-sm);
  line-height: 1.62;
}
.prose ul li::before {
  content: '';
  position: absolute;
  left: 0; top: .68em;
  width: 7px; height: 1px;
  background: var(--brand-accent);
}
.prose ol { counter-reset: n; display: grid; gap: var(--sp-4); margin-top: var(--sp-4); }
.prose ol li { counter-increment: n; position: relative; padding-left: 2.2rem; color: var(--text-muted); font-size: var(--fs-sm); line-height: 1.7; }
.prose ol li::before {
  content: counter(n, decimal-leading-zero);
  position: absolute; left: 0; top: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--brand-accent);
  letter-spacing: .08em;
}
.prose strong { color: var(--navy-900); font-weight: 620; }

/* Spec table */
.spec-table { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; max-width: 820px; }
.spec-table tr { border-bottom: 1px solid var(--line); }
.spec-table tr:last-child { border-bottom: 0; }
.spec-table tr:nth-child(even) { background: var(--paper); }
.spec-table th, .spec-table td { padding: .82rem 1.1rem; text-align: left; font-size: var(--fs-sm); vertical-align: top; }
.spec-table th {
  width: 38%;
  font-family: var(--font-mono);
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: .05em;
  color: var(--text-muted);
  text-transform: uppercase;
  border-right: 1px solid var(--line);
}
.spec-table td { color: var(--navy-900); font-weight: 520; }
@media (max-width: 560px) { .spec-table th { width: 44%; } .spec-table th, .spec-table td { padding: .7rem .8rem; } }

.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-5); max-width: 900px; }
@media (max-width: 700px) { .info-grid { grid-template-columns: 1fr; } }
.info-card { padding: var(--sp-5); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.info-card h4 { margin-bottom: .6rem; display: flex; align-items: center; gap: .5rem; }
.info-card h4 svg { color: var(--brand-blue); flex: none; }
.info-card p { font-size: var(--fs-sm); color: var(--text-muted); line-height: 1.65; }

/* ---------- Quote cart drawer ---------- */
.qcart__empty { text-align: center; padding: var(--sp-8) var(--sp-4); }
.qcart__empty svg { color: var(--steel-200); margin: 0 auto var(--sp-5); }
.qcart__empty h4 { margin-bottom: .5rem; }
.qcart__empty p { font-size: var(--fs-sm); color: var(--text-muted); margin-bottom: var(--sp-5); }

.qitem {
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--line);
}
.qitem__img {
  width: 62px; height: 62px;
  flex: none;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  padding: 5px;
  object-fit: contain;
  background: var(--white);
}
.qitem__body { flex: 1; min-width: 0; }
.qitem__mfr {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-subtle);
}
.qitem__name {
  font-size: var(--fs-sm);
  font-weight: 590;
  line-height: 1.35;
  margin-bottom: .3rem;
  display: block;
}
.qitem__name:hover { color: var(--brand-blue); }
.qitem__ctrl { display: flex; align-items: center; gap: var(--sp-3); margin-top: .5rem; }
.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.qty button {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
  transition: all var(--t-fast) var(--ease);
}
.qty button:hover { background: var(--steel-50); color: var(--navy-900); }
.qty input {
  width: 38px;
  height: 28px;
  border: 0;
  border-inline: 1px solid var(--line-strong);
  text-align: center;
  font-size: var(--fs-xs);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
}
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qitem__remove {
  font-size: var(--fs-xs);
  color: var(--text-subtle);
  transition: color var(--t-fast) var(--ease);
  margin-left: auto;
}
.qitem__remove:hover { color: #B3261E; }

.qcart__note {
  display: flex;
  gap: .7rem;
  padding: var(--sp-4);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  margin-top: var(--sp-5);
  font-size: var(--fs-xs);
  color: var(--text-muted);
  line-height: 1.55;
}
.qcart__note svg { flex: none; color: var(--brand-blue); margin-top: 2px; }

/* ---------- Quote page ---------- */
.quote-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(1.75rem, 1rem + 3vw, 3.5rem);
  align-items: start;
}
@media (max-width: 960px) { .quote-layout { grid-template-columns: 1fr; } }
.quote-form {
  padding: clamp(1.5rem, 1rem + 2vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}
.form-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--sp-4); }
@media (max-width: 620px) { .form-row { grid-template-columns: 1fr; } }
.form-row .field + .field { margin-top: 0; }
.form-section + .form-section { margin-top: var(--sp-6); padding-top: var(--sp-6); border-top: 1px solid var(--line); }
.form-section__title {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: var(--sp-4);
}

.radio-row { display: flex; gap: var(--sp-3); flex-wrap: wrap; }
.radio-pill { position: relative; }
.radio-pill input { position: absolute; opacity: 0; width: 0; height: 0; }
.radio-pill span {
  display: inline-flex;
  align-items: center;
  gap: .5em;
  padding: .6rem 1.1rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  font-size: var(--fs-sm);
  font-weight: 550;
  cursor: pointer;
  transition: all var(--t-fast) var(--ease);
  background: var(--white);
}
.radio-pill:hover span { border-color: var(--steel-400); }
.radio-pill input:checked + span {
  border-color: var(--brand-blue);
  background: rgba(0,96,168,.06);
  color: var(--brand-blue);
}
.radio-pill input:focus-visible + span { outline: 2px solid var(--brand-blue); outline-offset: 2px; }

.quote-summary {
  position: sticky;
  top: calc(var(--header-h-sm) + 24px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  overflow: hidden;
}
@media (max-width: 960px) { .quote-summary { position: static; } }
.quote-summary__head {
  padding: var(--sp-5);
  border-bottom: 1px solid var(--line);
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
}
.quote-summary__head h3 { font-size: var(--fs-h4); }
.quote-summary__body { padding: var(--sp-5); max-height: 460px; overflow-y: auto; }
.quote-summary__foot { padding: var(--sp-5); border-top: 1px solid var(--line); background: var(--white); }

.form-success {
  display: none;
  text-align: center;
  padding: clamp(2rem, 1.5rem + 3vw, 3.5rem) var(--sp-5);
}
.form-success.is-visible { display: block; animation: fadeUp 480ms var(--ease-out); }
.form-success__icon {
  width: 62px; height: 62px;
  margin: 0 auto var(--sp-5);
  border-radius: 50%;
  background: var(--ok-bg);
  color: var(--ok);
  display: flex; align-items: center; justify-content: center;
}
.form-success h3 { margin-bottom: var(--sp-3); }
.form-success p { color: var(--text-muted); font-size: var(--fs-sm); max-width: 460px; margin: 0 auto var(--sp-5); }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(1.75rem, 1rem + 3vw, 3.5rem);
  align-items: start;
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.contact-item {
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-5);
  border-bottom: 1px solid var(--line);
  background: var(--white);
  transition: background var(--t-fast) var(--ease);
}
.contact-item:last-child { border-bottom: 0; }
.contact-item:hover { background: var(--paper); }
.contact-item__icon {
  width: 40px; height: 40px;
  flex: none;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--brand-blue);
}
.contact-item h4 {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: .4rem;
  font-weight: 500;
}
.contact-item p, .contact-item a { font-size: var(--fs-sm); color: var(--navy-900); line-height: 1.6; }
.contact-item .big {
  font-family: var(--font-mono);
  font-size: 1.16rem;
  font-weight: 500;
  letter-spacing: -.02em;
  color: var(--brand-blue);
  display: block;
}
.contact-item a:hover { color: var(--brand-blue); }

.map-embed {
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--steel-50);
  position: relative;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- About stats / timeline ---------- */
.stat-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line-dark);
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  overflow: hidden;
}
@media (max-width: 780px) { .stat-band { grid-template-columns: repeat(2, 1fr); } }
.stat-band__cell { background: var(--navy-900); padding: var(--sp-5); }
.stat-band__value {
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -.035em;
  color: #fff;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  margin-bottom: .3rem;
}
.stat-band__value .suffix { color: var(--brand-accent); }
.stat-band__label {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--steel-400);
}

/* ---------- Legal / doc pages ---------- */
.doc-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: clamp(2rem, 1rem + 3vw, 4rem);
  align-items: start;
}
@media (max-width: 900px) { .doc-layout { grid-template-columns: 1fr; } }
.doc-nav { position: sticky; top: calc(var(--header-h-sm) + 24px); }
@media (max-width: 900px) { .doc-nav { position: static; } }
.doc-nav__title {
  font-family: var(--font-mono);
  font-size: var(--fs-label);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: var(--sp-4);
}
.doc-nav a {
  display: block;
  padding: .45rem .8rem;
  font-size: var(--fs-xs);
  color: var(--text-muted);
  border-left: 2px solid var(--line);
  transition: all var(--t-fast) var(--ease);
}
.doc-nav a:hover, .doc-nav a.is-active { color: var(--brand-blue); border-left-color: var(--brand-blue); background: var(--steel-50); }

.doc-body h2 {
  font-size: var(--fs-h3);
  margin-top: var(--sp-7);
  margin-bottom: var(--sp-4);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h-sm) + 24px);
}
.doc-body h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.doc-body p { color: var(--text-muted); line-height: 1.75; font-size: var(--fs-sm); }
.doc-body p + p { margin-top: var(--sp-4); }


/* ==========================================================================
   Product detail — technical backdrop
   The same engineering grid and measurement rules as the hero, so the gallery
   reads as an instrument on a bench rather than a plain white tile.
   ========================================================================== */
.gallery__main {
  background:
    linear-gradient(to right, rgba(10,18,32,.028) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(to bottom, rgba(10,18,32,.028) 1px, transparent 1px) 0 0 / 28px 28px,
    radial-gradient(ellipse 70% 60% at 50% 46%, rgba(0,96,168,.055), transparent 70%),
    var(--white);
}
/* Measurement rules crossing the frame, kept faint enough to sit behind */
.gallery__main::before,
.gallery__main::after {
  content: '';
  position: absolute;
  background: rgba(10,18,32,.07);
  pointer-events: none;
}
.gallery__main::before { left: 0; right: 0; top: 18%; height: 1px; }
.gallery__main::after  { top: 0; bottom: 0; right: 22%; width: 1px; }

/* A soft ground shadow so the instrument sits on a surface */
.gallery__main .gallery__shadow {
  position: absolute;
  left: 18%; right: 18%;
  bottom: 12%;
  height: 26px;
  background: radial-gradient(ellipse at center, rgba(10,18,32,.16), transparent 72%);
  filter: blur(11px);
  z-index: 0;
  pointer-events: none;
}
