/* Hard To Find Bolts: the "spec sheet" system.
   Layout concept: a drawing set. Every page is a numbered sheet with a title block; dimensioned
   line drawings carry the visuals; safety orange marks the two things that matter to a buyer,
   dimensions and actions. Light theme is drafting paper; dark theme is a blueprint. */

@font-face { font-family: "Barlow"; src: url("../fonts/barlow-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("../fonts/barlow-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("../fonts/ibm-plex-mono-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  /* color */
  --paper: #f1f3f4;
  --sheet: #ffffff;
  --ink: #111820;
  --ink-2: #3a4752;
  --ink-3: #5f6c77;
  --rule: #cdd5db;
  --rule-2: #e2e7eb;
  --grid: rgba(22, 78, 124, 0.075);
  --accent: #ff5a1f;
  --accent-hover: #ff7440;
  --accent-ink: #b23f0e;
  --accent-wash: #fff0e8;
  --on-accent: #111820;
  --footer: #111820;
  --on-footer: #e9eef2;
  --on-footer-2: #a9b6c1;
  --ok: #1b7a4b;
  --warn: #9a6a00;
  --focus: #1b64d6;
  --confirm: #c2410c;
  /* drawing */
  --d-bg: var(--sheet);
  --d-line: #19222a;
  --d-plain: #c4ccd3;
  --d-galv: #e1e6ea;
  --d-galv-fleck: #a2aeb8;
  --d-zinc: #d3e0ec;
  --d-ss: #eef2f5;
  --d-dim: #dc4f15;
  --d-conc: #eceff1;
  --d-conc-dot: #c9d0d6;
  /* type */
  --f-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", system-ui, sans-serif;
  --f-body: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  /* space and shape */
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  --radius: 4px;
  --maxw: 1240px;
  --header-h: 60px;
  --dock-h: 0px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0b1824; --sheet: #0f2131; --ink: #e6edf3; --ink-2: #b7c5d1; --ink-3: #8d9fae;
    --rule: #284056; --rule-2: #1b3144; --grid: rgba(150, 196, 236, 0.07);
    --accent: #ff6a2e; --accent-hover: #ff8250; --accent-ink: #ff9665; --accent-wash: #2b1c14; --on-accent: #0b1824;
    --footer: #07111a; --on-footer: #e6edf3; --on-footer-2: #93a6b6;
    --ok: #4cc28a; --warn: #e3b341; --focus: #6aa7ff; --confirm: #ff9665;
    --d-line: #d8e4ee; --d-plain: #35506a; --d-galv: #45607a; --d-galv-fleck: #7590a7; --d-zinc: #3a5874; --d-ss: #577390; --d-dim: #ff7a3d; --d-conc: #132b3d; --d-conc-dot: #24425a;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0b1824; --sheet: #0f2131; --ink: #e6edf3; --ink-2: #b7c5d1; --ink-3: #8d9fae;
  --rule: #284056; --rule-2: #1b3144; --grid: rgba(150, 196, 236, 0.07);
  --accent: #ff6a2e; --accent-hover: #ff8250; --accent-ink: #ff9665; --accent-wash: #2b1c14; --on-accent: #0b1824;
  --footer: #07111a; --on-footer: #e6edf3; --on-footer-2: #93a6b6;
  --ok: #4cc28a; --warn: #e3b341; --focus: #6aa7ff; --confirm: #ff9665;
  --d-line: #d8e4ee; --d-plain: #35506a; --d-galv: #45607a; --d-galv-fleck: #7590a7; --d-zinc: #3a5874; --d-ss: #577390; --d-dim: #ff7a3d; --d-conc: #132b3d; --d-conc-dot: #24425a;
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  padding-bottom: var(--dock-h);
}
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: inherit; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: currentColor; }
p a, li a, td a, .prose a { color: var(--accent-ink); font-weight: 500; }
:focus-visible { outline: 2.5px solid var(--focus); outline-offset: 2px; border-radius: 2px; }
::selection { background: var(--accent); color: var(--on-accent); }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
h1, h2 { font-family: var(--f-display); font-weight: 700; letter-spacing: -0.005em; line-height: 0.98; }
h2 { font-weight: 600; font-size: clamp(1.75rem, 1.25rem + 1.9vw, 2.6rem); line-height: 1.02; }
h3 { font-size: 1.2rem; font-weight: 600; line-height: 1.25; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: var(--radius); }
.skip:focus { left: var(--gutter); }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.mono, .num { font-family: var(--f-mono); font-weight: 500; font-variant-numeric: tabular-nums; }
.label {
  font-family: var(--f-mono); font-weight: 500; font-size: 0.75rem; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-3);
}
.wrap { max-width: var(--maxw); margin-inline: auto; padding-left: var(--gutter); padding-right: var(--gutter-r); }
@media (min-width: 900px) { .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }
.prose { max-width: 66ch; }
.prose > * + * { margin-top: 1em; }
.lede { font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem); line-height: 1.5; color: var(--ink-2); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  min-height: 48px; padding: 0.7rem 1.2rem; border-radius: var(--radius);
  font: 600 1rem/1.1 var(--f-body); letter-spacing: 0.01em; text-decoration: none; cursor: pointer;
  border: 1.5px solid var(--ink); background: transparent; color: var(--ink);
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-quiet { border-color: var(--rule); }
.btn-sm { min-height: 36px; padding: 0.4rem 0.75rem; font-size: 0.9rem; }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.arrow-link { display: inline-flex; align-items: center; gap: 0.4em; font-weight: 600; color: var(--ink); text-decoration: none; }
.arrow-link::after { content: ""; width: 0.9em; height: 0.9em; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8h11M9 4l4 4-4 4' fill='none' stroke='black' stroke-width='1.8'/%3E%3C/svg%3E") center/contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8h11M9 4l4 4-4 4' fill='none' stroke='black' stroke-width='1.8'/%3E%3C/svg%3E") center/contain no-repeat; transition: transform 0.15s ease; }
.arrow-link:hover::after { transform: translateX(3px); }

/* ---------- header ---------- */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--paper); }
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: color-mix(in srgb, var(--paper) 94%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; min-width: 0; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-name { font-family: var(--f-display); font-weight: 700; font-size: 1.3rem; letter-spacing: 0.01em; text-transform: uppercase; line-height: 1; white-space: nowrap; }
.brand-name small { display: block; font-family: var(--f-mono); font-weight: 500; font-size: 0.62rem; letter-spacing: 0.12em; color: var(--ink-3); margin-top: 3px; }
.nav { display: none; }
.head-phone { display: none; }
.head-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius);
  border: 1.5px solid var(--rule); background: var(--sheet); color: var(--ink); cursor: pointer;
}
.icon-btn svg { width: 20px; height: 20px; }
@media (min-width: 1080px) {
  :root { --header-h: 72px; }
  .nav { display: flex; align-items: stretch; height: 100%; }
  .nav > ul { display: flex; list-style: none; align-items: stretch; }
  .nav > ul > li { position: relative; display: flex; }
  .nav-link {
    display: flex; align-items: center; gap: 6px; padding: 0 13px; font-weight: 500; font-size: 0.98rem;
    text-decoration: none; color: var(--ink-2); background: none; border: 0; cursor: pointer; font-family: inherit;
    border-bottom: 2px solid transparent;
  }
  .nav-link:hover, .nav-link[aria-expanded="true"], .nav-link[aria-current="page"] { color: var(--ink); border-bottom-color: var(--accent); }
  .nav-link svg { width: 10px; height: 10px; transition: transform 0.15s ease; }
  .nav-link[aria-expanded="true"] svg { transform: rotate(180deg); }
  .head-phone { display: flex; flex-direction: column; align-items: flex-end; text-decoration: none; color: var(--ink); line-height: 1.1; margin-left: 8px; }
  .head-phone .label { font-size: 0.64rem; }
  .head-phone .num { font-size: 1.02rem; }
  .menu-btn, .head-call { display: none; }
}
.mega {
  position: absolute; top: 100%; left: -16px; z-index: 40; min-width: 300px;
  background: var(--sheet); border: 1px solid var(--rule); border-top: 2px solid var(--accent);
  box-shadow: 0 18px 40px -18px rgba(10, 20, 30, 0.35); padding: 12px; display: none;
}
.mega.open { display: block; }
.mega.wide { width: min(760px, 80vw); display: none; grid-template-columns: repeat(2, 1fr); gap: 2px 16px; }
.mega.wide.open { display: grid; }
.mega a { display: grid; grid-template-columns: 64px 1fr; gap: 12px; align-items: center; padding: 8px; border-radius: var(--radius); text-decoration: none; }
.mega a:hover { background: var(--paper); }
.mega .thumb { width: 64px; height: 36px; display: grid; place-items: center; }
.mega .thumb svg { width: 100%; height: 100%; }
.mega strong { display: block; font-weight: 600; font-size: 0.98rem; }
.mega span.sub { display: block; color: var(--ink-3); font-size: 0.82rem; line-height: 1.3; }
.mega.simple a { grid-template-columns: 1fr; }

/* mobile menu */
.menu-sheet {
  position: fixed; inset: 0; z-index: 70; background: var(--paper); overflow-y: auto;
  padding: calc(env(safe-area-inset-top, 0px) + 12px) var(--gutter-r) calc(env(safe-area-inset-bottom, 0px) + 24px) var(--gutter);
}
.menu-sheet[hidden] { display: none; }
.menu-top { display: flex; align-items: center; justify-content: space-between; height: 48px; }
.menu-group { border-top: 1px solid var(--rule); padding: 14px 0; }
.menu-group .label { margin-bottom: 6px; display: block; }
.menu-group a { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; text-decoration: none; font-size: 1.08rem; font-weight: 500; }
.menu-cta { display: grid; gap: 10px; margin-top: 8px; }

/* phone dock */
.dock {
  position: fixed; z-index: 45; left: 0; right: 0; bottom: 0;
  display: grid; grid-template-columns: 1fr 1fr 1.5fr; gap: 8px;
  padding: 10px var(--gutter-r) calc(10px + env(safe-area-inset-bottom, 0px)) var(--gutter);
  background: color-mix(in srgb, var(--paper) 95%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid var(--rule);
}
.dock .btn { min-height: 48px; padding-inline: 0.6rem; font-size: 0.98rem; }
@media (max-width: 1079px) { :root { --dock-h: calc(70px + env(safe-area-inset-bottom, 0px)); } }
@media (min-width: 1080px) { .dock { display: none; } }
body.typing .dock { display: none; }
.dock[hidden] { display: none; }
.drw-one svg { width: 100%; height: auto; display: block; }

/* ---------- page scaffolding ---------- */
.band { padding-block: clamp(48px, 6vw, 96px); }
section[id], div[id] > .rfq, [id].band { scroll-margin-top: calc(var(--header-h) + 8px); }
.band + .band { border-top: 1px solid var(--rule); }
.band.tight { padding-block: clamp(36px, 4vw, 64px); }
.band.sheet-bg { background: var(--sheet); }
.band-head { display: grid; gap: 14px; margin-bottom: clamp(24px, 3vw, 40px); max-width: 760px; }
.band-head .label { color: var(--accent-ink); }
.grid-paper {
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    linear-gradient(color-mix(in srgb, var(--grid) 55%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--grid) 55%, transparent) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px, 16px 16px, 16px 16px;
  background-position: -1px -1px;
}

/* breadcrumbs */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 0.86rem; color: var(--ink-3); list-style: none; }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: var(--rule); }
.crumbs a { text-decoration: none; color: var(--ink-2); }
.crumbs a:hover { text-decoration: underline; }

/* the title block: sheet number, revision, reviewer */
.title-block {
  display: grid; grid-template-columns: auto 1fr; border: 1px solid var(--ink); background: var(--sheet);
  font-family: var(--f-mono); font-size: 0.74rem; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.3;
  width: max-content; max-width: 100%;
}
.title-block > div { padding: 6px 10px; border-bottom: 1px solid var(--rule); }
.title-block > div:nth-child(odd) { color: var(--ink-3); border-right: 1px solid var(--rule); }
.title-block > div:nth-last-child(-n+2) { border-bottom: 0; }
.title-block strong { color: var(--ink); font-weight: 500; }

/* ---------- home hero ---------- */
.hero { padding-block: clamp(28px, 5vw, 72px) clamp(40px, 5vw, 80px); border-bottom: 1px solid var(--rule); }
.hero .wrap { display: grid; gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (min-width: 1080px) { .hero .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); } }
.hero-copy { display: grid; gap: 22px; align-content: start; padding-top: clamp(0px, 2vw, 24px); }
.hero h1 { font-size: clamp(2.7rem, 1.5rem + 5.4vw, 5.6rem); line-height: 0.92; letter-spacing: -0.01em; }
.hero h1 em { font-style: normal; color: var(--accent-ink); }
.hero .lede { max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 599px) { .hero-actions .btn, .head-actions .btn { flex: 1 1 100%; } }
.glance-wrap { margin-top: 8px; }
.proof-row { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; font-size: 0.92rem; color: var(--ink-2); }
.proof-row li { display: flex; gap: 8px; align-items: center; }
.proof-row li::before { content: ""; width: 7px; height: 7px; background: var(--accent); transform: rotate(45deg); flex: none; }

/* ---------- spec builder ---------- */
.builder { background: var(--sheet); border: 1px solid var(--ink); box-shadow: 8px 8px 0 -1px var(--rule-2), 8px 8px 0 0 var(--rule); min-width: 0; }
.builder-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--ink); }
.builder-head h2 { font-size: 1.35rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.02em; }
.builder-head .label { font-size: 0.68rem; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border-bottom: 1px solid var(--rule); }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span {
  display: grid; place-items: center; min-height: 46px; padding: 6px 4px; font-weight: 600; font-size: 0.95rem; color: var(--ink-2);
  border-right: 1px solid var(--rule); text-align: center; line-height: 1.1;
}
.seg label:last-child span { border-right: 0; }
.seg input:checked + span { color: var(--ink); background: var(--accent-wash); box-shadow: inset 0 -3px 0 var(--accent); }
.seg input:focus-visible + span { outline: 2.5px solid var(--focus); outline-offset: -3px; }
.builder-drawing { position: relative; background: var(--d-bg); border-bottom: 1px solid var(--rule); padding: 10px 6px 4px; min-height: 150px; display: grid; place-items: center; }
.builder-drawing svg { width: 100%; height: auto; }
.builder-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 12px; padding: 14px; }
@media (min-width: 560px) { .builder-fields { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.field { display: grid; gap: 5px; min-width: 0; }
.field > label, .field > .flabel { font-size: 0.8rem; font-weight: 600; color: var(--ink-2); letter-spacing: 0.01em; }
.hint { font-size: 0.8rem; color: var(--ink-3); line-height: 1.4; }
.builder-fields .span2 { grid-column: span 2; }
.builder select.inp { font-family: var(--f-body); font-weight: 500; }
.inp, select.inp, textarea.inp {
  width: 100%; min-height: 46px; padding: 0.55rem 0.7rem; border-radius: var(--radius);
  border: 1.5px solid var(--rule); background: var(--paper); color: var(--ink);
  font: 500 1rem/1.3 var(--f-body);
}
.inp.mono, .builder .inp { font-family: var(--f-mono); font-size: 0.98rem; }
select.inp { appearance: none; -webkit-appearance: none; padding-right: 2rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 4l4 4 4-4' fill='none' stroke='%235f6c77' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 0.65rem center; background-size: 12px; }
.inp:hover { border-color: color-mix(in srgb, var(--ink) 35%, var(--rule)); }
.inp:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px color-mix(in srgb, var(--focus) 22%, transparent); }
.inp[aria-invalid="true"] { border-color: var(--confirm); }
.unit { position: relative; }
.unit .inp { padding-right: 2.1rem; }
.unit::after { content: attr(data-unit); position: absolute; right: 0.7rem; top: 50%; transform: translateY(-50%); font-family: var(--f-mono); font-size: 0.82rem; color: var(--ink-3); pointer-events: none; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.builder-extra { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
.readback { border-top: 1px solid var(--ink); padding: 12px 14px; display: grid; gap: 10px; background: var(--paper); }
.readback .label { color: var(--accent-ink); }
.readback output { font-family: var(--f-mono); font-size: 0.95rem; line-height: 1.5; color: var(--ink); word-break: break-word; }
.readback-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.builder-note { font-size: 0.8rem; color: var(--ink-3); padding: 0 14px 12px; background: var(--paper); }
.builder-msg { font-size: 0.85rem; color: var(--confirm); grid-column: 1 / -1; }
.builder-msg:empty { display: none; }

/* ---------- catalog product photo above the drawing ---------- */
.spec-card .product-photo { background: #e7e9eb; border-bottom: 1px solid var(--rule); }
.spec-card .product-photo img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }

/* ---------- field photos ---------- */
.photo { margin: 0; background: var(--sheet); border: 1px solid var(--rule); min-width: 0; }
.photo img { display: block; width: 100%; height: auto; }
.photo figcaption { border-top: 1px solid var(--rule-2); padding: 10px 14px; font-size: 0.88rem; color: var(--ink-3); display: flex; gap: 10px; line-height: 1.45; }
.photo figcaption .label { color: var(--ink); flex: none; padding-top: 2px; }
.photo-band { padding-block: 0 clamp(36px, 4vw, 64px); }
.band.tight + .photo-band { border-top: 0; }
.photo-band img { aspect-ratio: 2752 / 1106; object-fit: cover; }
@media (max-width: 699px) { .photo-band img { aspect-ratio: 1706 / 1536; } }

/* ---------- three facts strip ---------- */
.facts3 { display: grid; gap: 0; border: 1px solid var(--rule); background: var(--sheet); }
@media (min-width: 860px) { .facts3 { grid-template-columns: repeat(3, 1fr); } }
.facts3 > div { padding: clamp(20px, 2.4vw, 32px); display: grid; gap: 10px; align-content: start; }
.facts3 > div + div { border-top: 1px solid var(--rule); }
@media (min-width: 860px) { .facts3 > div + div { border-top: 0; border-left: 1px solid var(--rule); } }
.facts3 h3 { font-family: var(--f-display); font-size: 1.6rem; font-weight: 700; line-height: 1.02; }
.facts3 p { color: var(--ink-2); }

/* ---------- cards ---------- */
.cards { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 268px), 1fr)); }
.card {
  position: relative; display: grid; grid-template-rows: auto 1fr; background: var(--sheet); border: 1px solid var(--rule);
  text-decoration: none; color: var(--ink); transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.card:hover { border-color: var(--ink); transform: translateY(-2px); box-shadow: 0 10px 24px -16px rgba(10, 20, 30, 0.45); }
.card > * { min-width: 0; }
.card-art { position: relative; overflow: hidden; aspect-ratio: 16 / 7; border-bottom: 1px solid var(--rule-2); background-color: var(--d-bg);
  background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 16px 16px; }
.card-art svg { position: absolute; inset: 10px 14px; width: calc(100% - 28px); height: calc(100% - 20px); }
.card-body { padding: 14px 16px 16px; display: grid; gap: 6px; align-content: start; }
.card-body h3 { font-family: var(--f-display); font-weight: 700; font-size: 1.45rem; line-height: 1.05; }
.card-body p { font-size: 0.95rem; color: var(--ink-2); line-height: 1.45; }
.card .spec { font-family: var(--f-mono); font-size: 0.78rem; color: var(--ink-3); letter-spacing: 0.02em; }
.card .sheetno { position: absolute; top: 8px; right: 10px; font-family: var(--f-mono); font-size: 0.66rem; color: var(--ink-3); letter-spacing: 0.08em; }
.card.feature { border-color: var(--ink); }
.card.feature .card-art { background-color: var(--accent-wash); }

/* applications: wide cards with drawings */
.apps { display: grid; gap: 14px; }
@media (min-width: 900px) { .apps { grid-template-columns: repeat(3, 1fr); } }
.app-card { display: grid; background: var(--sheet); border: 1px solid var(--rule); text-decoration: none; transition: border-color 0.15s ease; }
.app-card:hover { border-color: var(--ink); }
.app-card .card-art { aspect-ratio: 32 / 15; }
.app-card .card-body h3 { font-size: 1.6rem; }

/* ---------- steps: a real sequence ---------- */
.steps { list-style: none; display: grid; gap: 0; counter-reset: step; border-top: 1px solid var(--ink); }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: step; padding: 18px 18px 22px 0; display: grid; gap: 8px; align-content: start; border-bottom: 1px solid var(--rule); }
@media (min-width: 900px) { .steps li { border-bottom: 0; padding-right: 22px; } .steps li + li { padding-left: 22px; border-left: 1px solid var(--rule); } }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--f-mono); font-size: 0.8rem; color: var(--accent-ink); letter-spacing: 0.08em; }
.steps h3 { font-family: var(--f-display); font-size: 1.5rem; font-weight: 700; }
.steps p { color: var(--ink-2); font-size: 0.98rem; }

/* ---------- product page ---------- */
.page-head { padding-block: clamp(20px, 3vw, 36px) clamp(28px, 4vw, 52px); border-bottom: 1px solid var(--rule); }
.page-head .wrap { display: grid; gap: 18px; }
.page-head-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.page-head h1 { font-size: clamp(2.4rem, 1.6rem + 3.2vw, 4.1rem); line-height: 0.96; }
.page-head .eyebrow { color: var(--accent-ink); }
.page-head .answer { font-size: clamp(1.1rem, 1rem + 0.45vw, 1.28rem); line-height: 1.52; color: var(--ink-2); max-width: 46em; }
.head-grid { display: grid; gap: clamp(24px, 3vw, 44px); align-items: start; }
@media (min-width: 1000px) { .head-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); } }
.head-grid .head-copy { display: grid; gap: 16px; align-content: start; }
.head-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }
.figure { margin: 0; background: var(--d-bg); border: 1px solid var(--rule); }
.figure .fig-draw { padding: 14px 10px 6px; }
.figure .fig-draw svg { width: 100%; height: auto; }
.figure figcaption { border-top: 1px solid var(--rule-2); padding: 10px 14px; font-size: 0.88rem; color: var(--ink-3); display: flex; gap: 10px; }
.figure figcaption .label { color: var(--ink); flex: none; }
.drw-sm { display: block; }
.drw-lg { display: none; }
@container fig (min-width: 520px) { .drw-sm { display: none; } .drw-lg { display: block; } }
.fig-draw { container: fig / inline-size; }

.glance { display: grid; grid-template-columns: minmax(0, 1fr); border: 1px solid var(--ink); background: var(--sheet); }
@media (min-width: 640px) { .glance { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.glance > div { display: grid; grid-template-columns: 9.5em 1fr; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--rule-2); align-items: baseline; }
.glance dt { font-family: var(--f-mono); font-size: 0.72rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
.glance dd { margin: 0; font-weight: 500; font-size: 0.98rem; }
.glance-wrap { display: grid; gap: 8px; }
.glance-wrap .label { color: var(--ink); }

.content-grid { display: grid; gap: clamp(32px, 4vw, 64px); }
@media (min-width: 1080px) { .content-grid { grid-template-columns: minmax(0, 1fr) 340px; } }
.content-main { min-width: 0; display: grid; gap: clamp(40px, 5vw, 64px); }
.content-aside { display: none; }
@media (min-width: 1080px) { .content-aside { display: block; } .content-aside .sticky { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 16px; } }
.toc { border: 1px solid var(--rule); background: var(--sheet); padding: 14px 16px; }
.toc ol { list-style: none; display: grid; gap: 2px; margin-top: 8px; counter-reset: toc; }
.toc a { display: block; padding: 5px 0; text-decoration: none; color: var(--ink-2); font-size: 0.94rem; line-height: 1.3; }
.toc a:hover, .toc a.on { color: var(--ink); }
.toc a.on { box-shadow: inset 2px 0 0 var(--accent); padding-left: 8px; }
.aside-cta { border: 1px solid var(--ink); background: var(--sheet); padding: 16px; display: grid; gap: 10px; }
.aside-cta h2 { font-size: 1.5rem; }
.aside-cta p { font-size: 0.94rem; color: var(--ink-2); }
.aside-cta .num { font-size: 1.15rem; }

.sec { display: grid; gap: 16px; scroll-margin-top: calc(var(--header-h) + 20px); }
.sec h2 { font-size: clamp(1.7rem, 1.3rem + 1.4vw, 2.3rem); }
.sec .prose p { color: var(--ink); }
.bullets { list-style: none; display: grid; gap: 8px; max-width: 66ch; }
.bullets li { position: relative; padding-left: 22px; }
.bullets li::before { content: ""; position: absolute; left: 2px; top: 0.62em; width: 8px; height: 8px; border: 1.5px solid var(--accent); transform: rotate(45deg); }

/* spec tables */
.table-block { display: grid; gap: 10px; min-width: 0; }
.table-cap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 16px; }
.table-cap h3 { font-family: var(--f-display); font-size: 1.35rem; font-weight: 700; }
.table-scroll { overflow-x: auto; border: 1px solid var(--ink); background: var(--sheet); -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.spec-table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 0.95rem; }
.spec-table th, .spec-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--rule-2); vertical-align: top; }
.spec-table thead th { font-family: var(--f-mono); font-weight: 500; font-size: 0.7rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); background: var(--paper); border-bottom: 1px solid var(--ink); position: sticky; top: 0; }
.spec-table tbody th { font-family: var(--f-mono); font-weight: 500; min-width: 4.5em; position: sticky; left: 0; background: var(--sheet); box-shadow: 1px 0 0 var(--rule-2); }
.spec-table td { font-variant-numeric: tabular-nums; }
.spec-table td.n { font-family: var(--f-mono); font-size: 0.88rem; white-space: nowrap; }
.spec-table td.list { font-variant-numeric: tabular-nums; }
.spec-table tbody tr:hover th, .spec-table tbody tr:hover td { background: var(--accent-wash); }
.spec-table .quote-cell { text-align: right; white-space: nowrap; }
.spec-table .row-quote { font-size: 0.84rem; font-weight: 600; color: var(--accent-ink); text-decoration: none; white-space: nowrap; }
.spec-table .row-quote:hover { text-decoration: underline; }
.spec-table tr.mto th, .spec-table tr.mto td { background: color-mix(in srgb, var(--accent-wash) 70%, var(--sheet)); }
.table-note { font-size: 0.86rem; color: var(--ink-3); max-width: 70ch; }
.swatch { display: inline-block; width: 0.8em; height: 0.8em; border: 1px solid var(--ink); vertical-align: -0.05em; margin-right: 6px; }

/* checklist and pitfalls */
.checklist { list-style: none; display: grid; gap: 0; border: 1px solid var(--rule); background: var(--sheet); counter-reset: ck; }
.checklist li { counter-increment: ck; display: grid; grid-template-columns: 2.4em 1fr; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--rule-2); }
.checklist li:last-child { border-bottom: 0; }
.checklist li::before { content: counter(ck, decimal-leading-zero); font-family: var(--f-mono); font-size: 0.8rem; color: var(--accent-ink); padding-top: 2px; }
.pitfalls { display: grid; gap: 12px; }
@media (min-width: 720px) { .pitfalls { grid-template-columns: repeat(2, 1fr); } }
.pitfall { border: 1px solid var(--rule); border-left: 3px solid var(--accent); background: var(--sheet); padding: 14px 16px; display: grid; gap: 6px; }
.pitfall h3 { font-size: 1.05rem; }
.pitfall p { font-size: 0.96rem; color: var(--ink-2); }

/* FAQ */
.faq { border-top: 1px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 16px; padding: 16px 0; font-weight: 600; font-size: 1.08rem; line-height: 1.35; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--f-mono); font-size: 1.3rem; line-height: 1; color: var(--accent-ink); transition: transform 0.2s ease; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .answer { padding: 0 0 18px; color: var(--ink-2); max-width: 70ch; }

/* related */
.related { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); }
.related a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px; border: 1px solid var(--rule); background: var(--sheet); text-decoration: none; font-weight: 600; }
.related a:hover { border-color: var(--ink); }
.related a span.label { display: block; font-size: 0.64rem; margin-bottom: 2px; }

/* ---------- quote form ---------- */
.rfq { background: var(--sheet); border: 1px solid var(--ink); }
.rfq-head { padding: 16px 18px; border-bottom: 1px solid var(--ink); display: grid; gap: 6px; }
.rfq-head h2 { font-size: clamp(1.8rem, 1.3rem + 1.6vw, 2.5rem); }
.rfq form { display: grid; gap: 0; }
.rfq fieldset { border: 0; margin: 0; padding: 18px; display: grid; gap: 14px; border-bottom: 1px solid var(--rule); min-width: 0; }
.rfq legend { float: left; width: 100%; padding: 0; margin-bottom: 4px; display: flex; gap: 10px; align-items: baseline; font-family: var(--f-display); font-size: 1.4rem; font-weight: 700; }
.rfq legend .label { color: var(--accent-ink); font-size: 0.72rem; }
.rfq legend + * { clear: both; }
.form-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 760px) { .form-grid.four { grid-template-columns: repeat(4, minmax(0, 1fr)); } .form-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.form-grid .full { grid-column: 1 / -1; }
.req { color: var(--accent-ink); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-flex; align-items: center; min-height: 44px; padding: 0.4rem 0.9rem; border: 1.5px solid var(--rule); border-radius: 999px; font-weight: 500; font-size: 0.95rem; cursor: pointer; background: var(--paper); }
.chips input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.chips input:focus-visible + span { outline: 2.5px solid var(--focus); outline-offset: 2px; }
.drop { display: grid; gap: 6px; place-items: center; text-align: center; padding: 20px; border: 1.5px dashed var(--rule); border-radius: var(--radius); background: var(--paper); cursor: pointer; }
.drop:hover, .drop.over { border-color: var(--ink); }
.drop strong { font-weight: 600; }
.drop small { color: var(--ink-3); }
.file-list { list-style: none; display: grid; gap: 4px; font-family: var(--f-mono); font-size: 0.84rem; }
.rfq-foot { padding: 18px; display: grid; gap: 12px; }
.rfq-foot .fine { font-size: 0.82rem; color: var(--ink-3); }
.form-error { color: var(--confirm); font-weight: 600; font-size: 0.92rem; }
.form-error:empty { display: none; }
.done { padding: 22px 18px; display: grid; gap: 14px; }
.done h2 { font-size: 2rem; }
.done .rfq-no { font-family: var(--f-mono); font-size: 1.3rem; color: var(--accent-ink); }
.timeline { list-style: none; display: grid; gap: 0; border-left: 2px solid var(--accent); margin-left: 4px; }
.timeline li { padding: 4px 0 12px 16px; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 10px; width: 10px; height: 10px; background: var(--sheet); border: 2px solid var(--accent); border-radius: 50%; }

/* person card */
.person { display: grid; gap: 18px; align-items: center; background: var(--sheet); border: 1px solid var(--rule); padding: clamp(18px, 2.4vw, 28px); }
@media (min-width: 720px) { .person { grid-template-columns: 120px 1fr auto; } }
.avatar { width: 96px; height: 96px; border: 1.5px solid var(--ink); display: grid; place-items: center; font-family: var(--f-display); font-weight: 700; font-size: 2.4rem; background: var(--paper); position: relative; }
.avatar .brand-mark { width: 58px; height: 58px; }
.person .person-name { font-family: var(--f-display); font-size: 1.8rem; font-weight: 700; line-height: 1.05; }
.person p { color: var(--ink-2); max-width: 54ch; }
.person .acts { display: grid; gap: 8px; }

/* contact cards */
.contact-grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.contact-card { border: 1px solid var(--rule); background: var(--sheet); padding: 16px; display: grid; gap: 6px; align-content: start; }
.contact-card .num { font-size: 1.25rem; }

/* big call to action band */
.cta-band { background: var(--ink); color: var(--paper); }
.cta-band .wrap { display: grid; gap: 22px; align-items: center; }
@media (min-width: 900px) { .cta-band .wrap { grid-template-columns: 1fr auto; } }
.cta-band h2 { font-size: clamp(2.1rem, 1.4rem + 2.6vw, 3.6rem); }
.cta-band p { color: color-mix(in srgb, var(--paper) 78%, var(--ink)); max-width: 40em; margin-top: 10px; }
.cta-band .btn { border-color: var(--paper); color: var(--paper); }
.cta-band .btn-primary { border-color: var(--accent); color: var(--on-accent); }
:root[data-theme="dark"] .cta-band, :root:not([data-theme="light"]) .cta-band { }

/* ---------- footer ---------- */
.site-footer { background: var(--footer); color: var(--on-footer); padding-block: 56px calc(28px + var(--dock-h)); }
.site-footer a { color: var(--on-footer); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.foot-grid { display: grid; gap: 32px; }
@media (min-width: 900px) { .foot-grid { grid-template-columns: 1.4fr repeat(4, 1fr); } }
.foot-grid h2 { font-family: var(--f-mono); font-weight: 500; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-footer-2); margin-bottom: 10px; line-height: 1.2; }
.foot-grid ul { list-style: none; display: grid; gap: 6px; font-size: 0.95rem; }
.foot-brand { display: grid; gap: 12px; align-content: start; }
.foot-brand .brand-name { color: var(--on-footer); }
.site-footer .brand { color: var(--on-footer); }
.site-footer .brand-mark path:first-child { fill: transparent; }
.foot-brand .brand-name small { color: var(--on-footer-2); }
.foot-brand p { color: var(--on-footer-2); font-size: 0.95rem; max-width: 34ch; }
.foot-brand .num { font-size: 1.2rem; }
.foot-legal { margin-top: 40px; padding-top: 18px; border-top: 1px solid color-mix(in srgb, var(--on-footer) 18%, transparent); display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 0.84rem; color: var(--on-footer-2); }
.foot-legal button { background: none; border: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; padding: 0; }

/* ---------- concept notes ---------- */
.notes-panel {
  position: fixed; z-index: 80; right: max(12px, env(safe-area-inset-right, 0px)); bottom: calc(12px + var(--dock-h)); width: min(420px, calc(100vw - 24px));
  max-height: min(70vh, 640px); overflow: auto; background: var(--sheet); color: var(--ink); border: 1.5px solid var(--ink); box-shadow: 0 24px 60px -20px rgba(0, 0, 0, 0.5);
}
.notes-panel[hidden] { display: none; }
.notes-panel header { position: sticky; top: 0; background: var(--sheet); display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--ink); }
.notes-panel h2 { font-size: 1.4rem; }
.notes-panel .notes-body { padding: 12px 14px 16px; display: grid; gap: 12px; font-size: 0.92rem; }
.notes-panel ul { padding-left: 18px; display: grid; gap: 6px; }
.notes-panel .notes-body h3 { font-size: 0.95rem; margin-top: 4px; }
html.show-confirm [data-confirm] { outline: 2px dashed var(--confirm); outline-offset: 3px; position: relative; }
html.show-confirm [data-confirm]:hover::after {
  content: "To confirm: " attr(data-confirm); position: absolute; z-index: 30; left: 0; top: 100%; margin-top: 6px; width: max-content; max-width: 280px;
  background: var(--ink); color: var(--paper); font: 500 0.78rem/1.35 var(--f-body); padding: 6px 8px; border-radius: 3px; white-space: normal;
}

/* ---------- drawings ---------- */
.drw { overflow: visible; }
.drw .d-obj { stroke: var(--d-line); stroke-width: 1.4; }
.drw .d-edge { stroke: var(--d-line); stroke-width: 1.6; }
.drw .d-thin { stroke: var(--d-line); stroke-width: 0.7; opacity: 0.6; }
.drw .d-thread { stroke: var(--d-line); stroke-width: 0.9; opacity: 0.55; fill: none; }
.drw .d-center { stroke: var(--d-line); stroke-width: 0.7; stroke-dasharray: 14 3 3 3; opacity: 0.45; fill: none; }
.drw .d-dim { stroke: var(--d-dim); stroke-width: 1; }
.drw .d-ext { stroke: var(--d-dim); stroke-width: 0.75; opacity: 0.85; }
.drw .d-lead { stroke: var(--d-dim); stroke-width: 1; }
.drw .d-dot { fill: var(--d-dim); }
.drw .d-lblbg { fill: var(--d-bg); }
.drw .d-lbl { fill: var(--d-dim); font-family: var(--f-mono); font-weight: 500; }
.drw .d-strong { fill: var(--ink); }
.drw .d-note { fill: var(--ink-3); font-family: var(--f-mono); font-weight: 500; letter-spacing: 0.04em; paint-order: stroke fill; stroke: var(--d-bg); stroke-width: 4px; stroke-linejoin: round; }
.drw .d-cut { fill: var(--d-bg); }
.drw .d-plate { fill: var(--d-plain); stroke: var(--d-line); stroke-width: 1.3; }
.drw .d-pole { fill: var(--d-zinc); stroke: var(--d-line); stroke-width: 1.3; }
.drw .d-hole { fill: var(--d-bg); stroke: var(--d-line); stroke-width: 1.3; }
.drw .d-conc { fill: var(--d-conc); stroke: var(--d-line); stroke-width: 0.6; stroke-opacity: 0.4; }

/* utilities */
.stack { display: grid; gap: 16px; }
.split { display: grid; gap: clamp(24px, 4vw, 56px); align-items: start; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 1fr; } .split.wide-left { grid-template-columns: 1.2fr 1fr; } }
.muted { color: var(--ink-3); }
.small { font-size: 0.9rem; }
.center { text-align: center; }
.mt-s { margin-top: 10px; } .mt-m { margin-top: 20px; } .mt-l { margin-top: 36px; }
.hide-mobile { display: none; }
@media (min-width: 900px) { .hide-mobile { display: initial; } .hide-desktop { display: none !important; } }

/* forms: the spam trap nobody sees (display none, so browser AutoFill skips it too), links in errors */
.hp { display: none !important; }
.form-error a { color: inherit; text-decoration: underline; }
button[disabled] { opacity: 0.7; cursor: progress; }

/* legal documents (Privacy Policy, Terms & Conditions, Accessibility Statement) */
.prose.legal { max-width: 70ch; }
.legal h2 { font-size: clamp(1.45rem, 1.2rem + 0.8vw, 1.8rem); line-height: 1.1; margin-top: 1.8em; }
.legal h2 + * { margin-top: 0.6em; }
.legal ul { padding-left: 1.3em; display: grid; gap: 0.45em; }
.legal ul li::marker { color: var(--accent-ink); }
.legal .legal-updated { font-family: var(--f-mono); font-size: 0.82rem; letter-spacing: 0.04em; color: var(--ink-3); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .dock, .site-footer, .builder, .rfq, .notes-panel { display: none !important; }
  body { background: #fff; }
}
