/* Layout idea: the page is an engineering drawing sheet. Cool drafting paper, ink lines,
   brass as the only accent, mono type for every real spec (threads, grades, sizes). */
:root {
  --paper: #F2F4F3;
  --sheet: #FFFFFF;
  --ink: #15212B;
  --muted: #55626C;
  --line: #C6CED1;
  --brass: #C9A548;
  --brass-ink: #7A5C12;
  --on-brass: #15212B;
  --display: "Barlow Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "IBM Plex Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0F171D;
    --sheet: #16212A;
    --ink: #E8ECEA;
    --muted: #9BA8AF;
    --line: #2D3B45;
    --brass: #D0AD55;
    --brass-ink: #D9BA6A;
    --on-brass: #15212B;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #0F171D;
  --sheet: #16212A;
  --ink: #E8ECEA;
  --muted: #9BA8AF;
  --line: #2D3B45;
  --brass: #D0AD55;
  --brass-ink: #D9BA6A;
  --on-brass: #15212B;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-text-size-adjust: 100%;
}
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--brass-ink); outline-offset: 3px; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* Header */
.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-top: 16px; padding-bottom: 16px; }
.mark { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.mark svg { width: 30px; height: 30px; flex: none; }
.mark span { font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1; }
.mark small { font-family: var(--display); font-weight: 500; font-size: 24px; letter-spacing: 0.06em; color: var(--muted); }
nav { display: flex; flex-wrap: wrap; gap: 4px 22px; }
nav a { font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; text-decoration: none; color: var(--muted); padding: 4px 0; }
nav a:hover { color: var(--ink); }

/* Hero */
.hero .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding-top: 56px; padding-bottom: 56px; }
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brass-ink); margin: 0 0 14px; }
h1 { font-family: var(--display); font-weight: 700; font-size: clamp(44px, 7vw, 76px); line-height: 0.98; letter-spacing: 0.005em; text-transform: uppercase; margin: 0 0 20px; text-wrap: balance; }
h1 em { font-style: normal; color: var(--brass-ink); }
.lede { max-width: 34em; margin: 0 0 28px; color: var(--muted); font-size: 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-block; font-family: var(--display); font-weight: 600; font-size: 20px; letter-spacing: 0.05em; text-transform: uppercase; text-decoration: none; padding: 12px 22px; border: 1.5px solid var(--ink); border-radius: 2px; cursor: pointer; background: transparent; color: var(--ink); }
.btn.primary { background: var(--brass); border-color: var(--brass); color: var(--on-brass); }
.btn:hover { filter: brightness(0.94); }

/* Drawing sheet */
.sheet { margin: 0; background: var(--sheet); border: 1.5px solid var(--ink); }
.sheet svg { display: block; width: 100%; height: auto; }
.sheet .ln { stroke: var(--ink); fill: none; }
.sheet .thin { stroke: var(--muted); fill: none; stroke-width: 1; }
.sheet .dim { stroke: var(--brass-ink); fill: none; stroke-width: 1; }
.sheet text { font-family: var(--mono); font-size: 13px; fill: var(--brass-ink); }
.sheet .body-fill { fill: var(--brass); fill-opacity: 0.22; }
.block { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1.5px solid var(--ink); margin: 0; }
.block div { padding: 8px 10px; border-left: 1px solid var(--line); min-width: 0; }
.block div:first-child { border-left: 0; }
.block dt { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.block dd { margin: 2px 0 0; font-family: var(--mono); font-size: 13px; font-weight: 500; overflow-wrap: anywhere; }
.sheet figcaption { border-top: 1px solid var(--line); padding: 8px 10px; font-size: 13px; color: var(--muted); }

/* Sections */
section { border-top: 1px solid var(--line); }
section > .wrap { padding-top: 56px; padding-bottom: 56px; }
h2 { font-family: var(--display); font-weight: 700; font-size: clamp(32px, 4.6vw, 46px); line-height: 1.02; text-transform: uppercase; letter-spacing: 0.01em; margin: 0 0 10px; text-wrap: balance; }
.intro { max-width: 38em; color: var(--muted); margin: 0 0 32px; }

/* Product rows */
.rows { border-top: 1.5px solid var(--ink); }
.row { display: grid; grid-template-columns: 72px 1.1fr 1.3fr; gap: 8px 28px; align-items: start; padding: 24px 0; border-bottom: 1px solid var(--line); }
.row svg { width: 64px; height: 64px; color: var(--brass-ink); }
.row h3 { font-family: var(--display); font-weight: 600; font-size: 28px; line-height: 1.05; text-transform: uppercase; margin: 0 0 6px; }
.row h3 b { font-family: var(--mono); font-weight: 500; font-size: 13px; color: var(--muted); letter-spacing: 0.06em; display: block; margin-bottom: 6px; }
.row p { margin: 0; color: var(--muted); font-size: 16px; }
.spec { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; font-family: var(--mono); font-size: 13.5px; }
.spec dt { color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; font-size: 12px; padding-top: 1px; }
.spec dd { margin: 0; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1.5px solid var(--ink); background: var(--sheet); counter-reset: s; }
.steps li { counter-increment: s; padding: 20px 18px 22px; border-left: 1px solid var(--line); }
.steps li:first-child { border-left: 0; }
.steps li::before { content: "0" counter(s); font-family: var(--mono); font-size: 13px; color: var(--brass-ink); display: block; margin-bottom: 10px; }
.steps strong { font-family: var(--display); font-weight: 600; font-size: 23px; text-transform: uppercase; line-height: 1.05; display: block; margin-bottom: 6px; }
.steps span { color: var(--muted); font-size: 15.5px; }

/* Quality + materials */
.two { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: start; }
.two > *, .cgrid > *, .hero .wrap > *, .row > * { min-width: 0; }
.checks { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.checks li { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.checks b { font-family: var(--mono); font-weight: 500; font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--brass-ink); padding-top: 3px; }
.checks span { color: var(--ink); font-size: 16px; }
.tablewrap { overflow-x: auto; border: 1.5px solid var(--ink); background: var(--sheet); }
table { border-collapse: collapse; width: 100%; min-width: 420px; font-size: 15px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
th { font-family: var(--mono); font-weight: 500; font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); border-bottom: 1.5px solid var(--ink); }
td.m { font-family: var(--mono); font-size: 13.5px; }
.tags { margin: 18px 0 0; font-family: var(--mono); font-size: 13.5px; color: var(--muted); }
.tags b { color: var(--ink); font-weight: 500; }

/* Contact */
.contact { background: var(--sheet); }
.cgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.need { margin: 0 0 24px; padding-left: 1.2em; }
.need li { margin: 4px 0; }
.details { margin: 0; border-top: 1.5px solid var(--ink); }
.details div { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.details dt { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); padding-top: 3px; }
.details dd { margin: 0; overflow-wrap: anywhere; }
.fill { border-bottom: 1.5px dashed var(--brass-ink); }
.hint { margin: 14px 0 0; font-size: 14.5px; color: var(--muted); max-width: 30em; overflow-wrap: anywhere; }

footer .wrap { padding-top: 22px; padding-bottom: 28px; display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: space-between; font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
footer { border-top: 1.5px solid var(--ink); }

@media (max-width: 820px) {
  .hero .wrap, .two, .cgrid { grid-template-columns: 1fr; }
  .hero .wrap { padding-top: 36px; padding-bottom: 40px; gap: 28px; }
  section > .wrap { padding-top: 40px; padding-bottom: 40px; }
  .row { grid-template-columns: 56px 1fr; }
  .row svg { width: 48px; height: 48px; }
  .row .spec { grid-column: 2; margin-top: 8px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .steps li:nth-child(3) { border-left: 0; }
  .steps li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 460px) {
  .block { grid-template-columns: 1fr 1fr; }
  .block div:nth-child(3) { border-left: 0; }
  .block div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .steps { grid-template-columns: 1fr; }
  .steps li { border-left: 0; }
  .steps li:nth-child(n+2) { border-top: 1px solid var(--line); }
  .mark small { display: none; }
}

/* ---- multi-page additions ---- */
nav a[aria-current="page"] { color: var(--ink); border-bottom: 1.5px solid var(--brass-ink); }
.row h3 a { text-decoration: none; }
.row h3 a:hover { color: var(--brass-ink); }
.more { display: inline-block; margin-top: 8px; font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--brass-ink); }
.crumb { font-family: var(--mono); font-size: 12.5px; color: var(--muted); padding-top: 18px; }
.crumb a { color: var(--muted); }
.crumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0; padding: 0; }
.crumb li + li::before { content: "/"; margin-right: 8px; }
.phero .wrap { display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 40px; align-items: center; padding-top: 28px; padding-bottom: 52px; }
.phero .wrap > * { min-width: 0; }
.phero h1 { font-size: clamp(38px, 5.6vw, 60px); }
.big-draw { padding: 26px 22%; }
.big-draw svg { color: var(--brass-ink); }
.big-draw svg * { vector-effect: non-scaling-stroke; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.cols > * { min-width: 0; }
.plain { margin: 0; padding-left: 1.2em; }
.plain li { margin: 5px 0; }
.kv { margin: 0; border-top: 1.5px solid var(--ink); }
.kv div { display: grid; grid-template-columns: 7.5em 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.kv dt { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--brass-ink); padding-top: 3px; }
.kv dd { margin: 0; font-size: 16px; }
.faq { border-top: 1.5px solid var(--ink); max-width: 46em; }
.faq div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.faq h3 { font-family: var(--body); font-weight: 600; font-size: 18px; margin: 0 0 6px; }
.faq p { margin: 0; color: var(--muted); }
.cta { background: var(--sheet); }
.cta .wrap { display: flex; flex-wrap: wrap; gap: 20px 40px; align-items: center; justify-content: space-between; }
.cta h2 { margin: 0 0 6px; }
.cta p { margin: 0; color: var(--muted); max-width: 34em; }
.others { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1.5px solid var(--ink); background: var(--sheet); }
.others a { padding: 18px; text-decoration: none; border-left: 1px solid var(--line); font-family: var(--display); font-weight: 600; font-size: 23px; text-transform: uppercase; line-height: 1.08; }
.others a:first-child { border-left: 0; }
.others a span { display: block; font-family: var(--mono); font-weight: 400; font-size: 12.5px; letter-spacing: 0.05em; color: var(--brass-ink); margin-top: 8px; }
.others a:hover { background: var(--paper); }
@media (max-width: 820px) {
  .phero .wrap, .cols { grid-template-columns: 1fr; }
  .phero .wrap { padding-bottom: 40px; gap: 26px; }
  .big-draw { padding: 20px 30%; }
  .others { grid-template-columns: 1fr; }
  .others a { border-left: 0; border-top: 1px solid var(--line); }
  .others a:first-child { border-top: 0; }
}

/* ---- UX pass ---- */
/* Self-hosted fonts: faster, and no visitor data sent to Google */
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/barlow-condensed-500.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/barlow-condensed-600.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/barlow-condensed-700.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-sans-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-sans-500.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-sans-600.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-mono-400.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-mono-500.woff2") format("woff2"); }

/* Skip link for keyboard users */
.skip { position: absolute; left: 16px; top: -64px; z-index: 50; background: var(--ink); color: var(--paper); padding: 10px 14px; font-family: var(--mono); font-size: 13px; text-decoration: none; }
.skip:focus { top: 10px; }

/* Sticky header with a quote button; nav folds into a menu on smaller screens */
.top { position: sticky; top: 0; z-index: 30; background: var(--paper); }
.top .bar { flex-wrap: nowrap; gap: 8px 26px; padding-top: 10px; padding-bottom: 10px; }
.top .mark { margin-right: auto; min-height: 44px; }
.top nav { gap: 0 22px; }
.top nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0; }
nav a[aria-current="page"] { border-bottom: 0; color: var(--ink); text-decoration: underline; text-decoration-color: var(--brass-ink); text-decoration-thickness: 1.5px; text-underline-offset: 6px; }
.btn.sm { font-size: 17px; padding: 8px 14px; white-space: nowrap; }
.menu-btn { display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; background: transparent; color: var(--ink); border: 1.5px solid var(--line); border-radius: 2px; font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; cursor: pointer; }
.menu-btn svg { width: 16px; height: 16px; }
.menu-btn[aria-expanded="true"] .i-open, .menu-btn[aria-expanded="false"] .i-close { display: none; }
main[id], section[id] { scroll-margin-top: 76px; }
@media (max-width: 960px) {
  .top .bar { flex-wrap: wrap; }
  .top nav { order: 3; flex-basis: 100%; flex-wrap: wrap; }
  .js .menu-btn { display: inline-flex; }
  .js .top nav { display: none; flex-direction: column; border-top: 1px solid var(--line); margin-bottom: -10px; }
  .js .top nav.open { display: flex; }
  .js .top nav a { min-height: 50px; font-size: 14px; border-bottom: 1px solid var(--line); }
  .js .top nav a:last-child { border-bottom: 0; }
}
@media (max-width: 420px) {
  .hide-sm { display: none; }
  .top .bar { gap: 8px 10px; }
}

/* Proof strip under the home hero */
.proof { background: var(--sheet); border-top: 1.5px solid var(--ink); }
.proof + section { border-top: 1px solid var(--line); }
.proof > .wrap { padding-top: 0; padding-bottom: 0; }
.proof ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.proof li { padding: 18px 18px 20px; border-left: 1px solid var(--line); }
.proof li:first-child { border-left: 0; padding-left: 0; }
.proof b { display: block; font-family: var(--display); font-weight: 600; font-size: 21px; text-transform: uppercase; line-height: 1.1; letter-spacing: 0.02em; }
.proof span { display: block; margin-top: 4px; color: var(--muted); font-size: 14.5px; line-height: 1.45; }
@media (max-width: 820px) {
  .proof ul { grid-template-columns: 1fr 1fr; }
  .proof li { padding: 16px 14px 18px; }
  .proof li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .proof li:nth-child(n+3) { border-top: 1px solid var(--line); }
}

/* Bigger hit areas for small text links */
.more { margin-top: 2px; padding: 12px 0; }
.details dd a { display: inline-block; padding: 10px 0; margin: -10px 0; }
.hint { margin: 14px 0 0; font-size: 14.5px; color: var(--muted); max-width: 32em; overflow-wrap: anywhere; }
.cta .hint { margin-top: 10px; }
.cta-box { display: flex; flex-direction: column; align-items: flex-start; }

/* Product page drawing on drafting-grid paper */
.big-draw { padding: 30px 26%; background-image: linear-gradient(color-mix(in srgb, var(--line) 45%, transparent) 1px, transparent 1px), linear-gradient(90deg, color-mix(in srgb, var(--line) 45%, transparent) 1px, transparent 1px); background-size: 16px 16px; background-position: -1px -1px; }

/* Home hero gives the headline a little more room (desktop only) */
@media (min-width: 821px) { .hero .wrap { grid-template-columns: 1.1fr 0.9fr; } }

/* Tables become labelled cards on phones instead of scrolling sideways */
@media (max-width: 640px) {
  .tablewrap table { min-width: 0; }
  .tablewrap thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .tablewrap tbody, .tablewrap tr, .tablewrap td { display: block; }
  .tablewrap tr { padding: 12px 14px 10px; border-bottom: 1px solid var(--line); }
  .tablewrap tr:last-child { border-bottom: 0; }
  .tablewrap td { border: 0; padding: 3px 0; display: grid; grid-template-columns: 124px 1fr; gap: 12px; }
  .tablewrap td::before { content: attr(data-label); font-family: var(--mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); padding-top: 2px; }
  .tablewrap td:first-child { display: block; font-weight: 600; font-size: 16.5px; padding-bottom: 6px; }
  .tablewrap td:first-child::before { content: none; }
}

/* Footer with products and contact */
footer .foot { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 28px 40px; padding-top: 36px; padding-bottom: 24px; font-family: var(--body); font-size: 15px; color: var(--ink); justify-content: initial; }
.foot-brand p { margin: 10px 0 0; color: var(--muted); max-width: 26em; }
.foot-h { margin: 0 0 6px; font-family: var(--mono); font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { min-height: 40px; display: flex; align-items: center; overflow-wrap: anywhere; }
.foot li a { text-decoration: none; padding: 9px 0; }
.foot li a:hover { text-decoration: underline; }
footer .legal { border-top: 1px solid var(--line); padding-top: 14px; padding-bottom: 20px; }
@media (max-width: 820px) {
  footer .foot { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 460px) {
  footer .foot { grid-template-columns: 1fr; }
}
