/*
VOICE: precise, confident engineering firm; dark workshop with light on the gauges.
IDEA: a metrology bench at night, instruments lit in MicronTech blue.
PICTURE: a custom illustration of a CMM probing a machined part, with dial gauge, SPC chart and gauge drawing, as the full-bleed hero, the services poster as the about image.
COLOUR and TYPE: the current site's black #000 / charcoal #2c2c2c / #333, grey text #adafae, logo blue #2a9fd6 (hover #227fab). Red Hat Display + Red Hat Text.
LAYOUT: black call-bar header, full-bleed hero, charcoal service cards, white contact band, dark footer as before.
*/
:root{color-scheme:dark;--black:#000;--char:#1c1d1f;--card:#2c2c2c;--line:#3a3a3a;--ink:#f1f3f5;--soft:#adafae;--blue:#2a9fd6;--blue2:#227fab;--foot:#292424}
*{box-sizing:border-box;min-width:0}
html{scroll-padding-top:80px;scroll-behavior:smooth}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
body{margin:0;background:var(--char);color:var(--ink);font:16.5px/1.6 "Red Hat Text",Arial,sans-serif;overflow-x:clip}
h1,h2,h3{font-family:"Red Hat Display",Arial,sans-serif;line-height:1.08;text-wrap:balance;margin:0 0 .5em;color:#fff}
h1{font-size:clamp(34px,5.4vw,56px);font-weight:700}
h2{font-size:clamp(27px,3.2vw,36px);font-weight:700}
h3{font-size:20px;font-weight:700;line-height:1.25}
p{margin:0 0 1em;max-width:68ch}
a{color:var(--blue)}
a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid var(--blue);outline-offset:3px}
.wrap{max-width:1240px;margin:0 auto}
.band{padding:clamp(40px,6vw,84px) max(5vw,16px)}

/* header */
.callbar{background:var(--black)}
.callbar .wrap{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px max(5vw,16px)}
.brand{display:flex;align-items:center;gap:12px;text-decoration:none}
.brand .ic{width:56px;height:auto}
.brand .wm{width:clamp(150px,22vw,240px);height:auto}
.call{color:#fff;text-align:right;font-size:15px;line-height:1.3}
.call a{color:#fff;font:700 clamp(18px,2.2vw,24px) "Red Hat Display",sans-serif;text-decoration:none;white-space:nowrap}
.call span{color:var(--soft)}
.menu{background:#333;position:sticky;top:0;z-index:10;border-bottom:2px solid var(--blue)}
.menu .wrap{display:flex;flex-wrap:wrap;gap:2px;padding:0 max(5vw,16px)}
.menu a{color:#fff;text-decoration:none;padding:12px 14px;min-height:46px;display:flex;align-items:center;font-weight:500}
.menu a:hover{background:#444}
.menu a[aria-current=page]{background:var(--blue)}

/* hero */
.hero{position:relative;color:#fff;background:#050607 url(images/hero-metrology.jpg) 72% center/cover no-repeat;min-height:clamp(420px,62vh,640px);display:flex;align-items:center}
.hero::before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.8) 0%,rgba(0,0,0,.45) 42%,rgba(0,0,0,0) 68%)}
.hero .wrap{position:relative;width:100%}
.hero p{color:#dfe3e6;font-size:19px;max-width:40ch}
.hero .tags{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 22px;padding:0;list-style:none}
.hero .tags li{border:1px solid rgba(255,255,255,.35);border-radius:999px;padding:5px 14px;font-size:14px;background:rgba(0,0,0,.35)}
.page-hero{background:#000;border-bottom:1px solid var(--line)}
.page-hero p{color:var(--soft);font-size:19px}
.crumb{font-size:14px;color:var(--soft);margin-bottom:10px}
.crumb a{color:#fff}

.btns{display:flex;flex-wrap:wrap;gap:12px}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:10px 22px;border-radius:6px;font-weight:700;text-decoration:none;background:var(--blue);color:#fff;border:2px solid var(--blue);font-size:16px;cursor:pointer;font-family:inherit}
.btn:hover{background:var(--blue2);border-color:var(--blue2)}
.btn.ghost{background:transparent;border-color:#fff}
.btn.ghost:hover{background:rgba(255,255,255,.12)}

/* section titles, like the old divider lines */
.rule{display:flex;align-items:center;gap:18px;margin-bottom:28px}
.rule h2{margin:0;flex:none}
.rule::after{content:"";height:2px;flex:1;background:linear-gradient(90deg,var(--blue),transparent)}
.lead{color:var(--soft);margin-top:-12px}

/* cards */
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,250px),1fr));gap:18px}
.card{background:var(--card);border:1px solid var(--line);border-radius:10px;padding:26px 24px;display:flex;flex-direction:column}
.card p,.card li{color:var(--soft)}
.card ul{padding-left:1.1em;margin:0 0 1em}
.card .ico{width:52px;height:52px;border-radius:50%;border:2px solid var(--blue);display:grid;place-items:center;margin-bottom:16px}
.card .ico svg{width:26px;height:26px;stroke:#fff;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.card .more{margin-top:auto;font-weight:700;text-decoration:none;color:var(--blue)}
.tools .card{border-top:3px solid var(--blue)}
.dark{background:#000}

.split{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(24px,4vw,56px);align-items:center}
.shot{margin:0;border-radius:10px;overflow:hidden;border:1px solid var(--line);background:#000}
.shot img{display:block;width:100%;height:auto}
.shot figcaption{padding:12px 16px;font-size:14px;color:var(--soft)}
.facts{display:flex;flex-wrap:wrap;gap:28px;margin:8px 0 0}
.facts div{border-left:3px solid var(--blue);padding-left:12px}
.facts b{display:block;font:700 30px "Red Hat Display",sans-serif;color:#fff}
.facts span{color:var(--soft);font-size:14px}

/* contact (white, as on the current site) */
.contact{background:#fff;color:#1a1a1a}
.contact h2{color:#000}
.contact p{color:#444}
.contact a{color:var(--blue2)}
.contact .rule::after{background:linear-gradient(90deg,var(--blue),transparent)}
.ways{list-style:none;padding:0;margin:0 0 20px}
.ways li{padding:10px 0;border-bottom:1px solid #e3e3e3}
.ways b{display:inline-block;width:5.5em;color:#000}
form{display:grid;gap:12px}
label{font-weight:700;font-size:15px;color:#000}
input,textarea{width:100%;font:16px "Red Hat Text",Arial,sans-serif;padding:11px 12px;border:1px solid #bbb;border-radius:6px;background:#fff;color:#111}
textarea{min-height:130px;resize:vertical}
.formnote{font-size:14px;color:#555;margin:0}
#sent{display:none;background:#e9f6fc;border-left:4px solid var(--blue);padding:12px 14px;color:#123}

/* community */
.sponsor{background:var(--card);border:1px solid var(--line);border-left:4px solid var(--blue);border-radius:10px;padding:24px}
.sponsor p{color:var(--soft)}

/* footer */
.foot{background:var(--foot);color:#ddd;font-size:15px}
.foot .wrap{display:flex;flex-wrap:wrap;justify-content:space-between;gap:20px}
.foot a{color:#fff}
.foot nav{display:flex;flex-wrap:wrap;gap:6px 18px}

@media(max-width:780px){.split{grid-template-columns:minmax(0,1fr)}}
@media(max-width:600px){.brand .ic{width:40px}.call span{display:none}.menu a{padding:10px}.hero::before{background:rgba(0,0,0,.7)}}
