/* ==========================================================================
   Mechano Construction Ltd. — site stylesheet

   Structure:
     1. Fonts          — self-hosted Barlow / Barlow Condensed
     2. Design tokens  — colours, type, spacing (edit these to retune the look)
     3. Base elements
     4. Blueprint motif — the corner registration marks and photo tint
     5. Components     — buttons, cards, forms
     6. Page sections  — header, hero, stats, services, projects, about,
                         careers, contact, quote form, footer
     7. Dark mode      — follows the visitor's OS setting
   ========================================================================== */


/* 1. Fonts ================================================================ */

/* Each family ships three files. The unicode-range tells the browser which
   one it actually needs, so a normal English visitor downloads only the
   "latin" file and skips the other two. */

/* Barlow — body text */
@font-face {
  font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/barlow-400-vietnamese.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/barlow-400-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Barlow'; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/barlow-400-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/barlow-500-vietnamese.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/barlow-500-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Barlow'; font-style: normal; font-weight: 500; font-display: swap;
  src: url("fonts/barlow-500-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow'; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/barlow-700-vietnamese.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Barlow'; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/barlow-700-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Barlow'; font-style: normal; font-weight: 700; font-display: swap;
  src: url("fonts/barlow-700-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Barlow Condensed — headings, buttons, nav */
@font-face {
  font-family: 'Barlow Condensed'; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/barlow-condensed-400-vietnamese.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Barlow Condensed'; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/barlow-condensed-400-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Barlow Condensed'; font-style: normal; font-weight: 400; font-display: swap;
  src: url("fonts/barlow-condensed-400-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/barlow-condensed-600-vietnamese.woff2") format('woff2');
  unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB;
}
@font-face {
  font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/barlow-condensed-600-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Barlow Condensed'; font-style: normal; font-weight: 600; font-display: swap;
  src: url("fonts/barlow-condensed-600-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}


/* 2. Design tokens ========================================================
   Change a value here and it updates everywhere it's used on the site.
   ========================================================================== */

:root {
  --color-bg: #f2f2f3;
  --color-surface: #e9e9ea;
  --color-text: #1d1f20;
  --color-accent: #5980a6;
  --color-accent-2: #728fab;
  --color-divider: color-mix(in srgb, #1d1f20 16%, transparent);

  /* Tonal ramps — generated in OKLCH on one shared lightness scale, so the
     same step of any role matches the others in visual value. */
  --color-neutral-100: #f5f5f8;
  --color-neutral-200: #e7e7ea;
  --color-neutral-300: #d4d4d7;
  --color-neutral-400: #b7b7ba;
  --color-neutral-500: #98989b;
  --color-neutral-600: #7a7a7d;
  --color-neutral-700: #5d5d60;
  --color-neutral-800: #424244;
  --color-neutral-900: #2b2b2d;

  --color-accent-100: #eef6ff;
  --color-accent-200: #d6ebff;
  --color-accent-300: #b5d9fd;
  --color-accent-400: #94bce3;
  --color-accent-500: #749dc4;
  --color-accent-600: #597ea3;
  --color-accent-700: #416180;
  --color-accent-800: #2c455d;
  --color-accent-900: #1d2d3d;

  --color-accent-2-100: #eef6ff;
  --color-accent-2-200: #d6ebff;
  --color-accent-2-300: #bdd8f2;
  --color-accent-2-400: #9ebbd8;
  --color-accent-2-500: #7e9cb8;
  --color-accent-2-600: #627d98;
  --color-accent-2-700: #486077;
  --color-accent-2-800: #314457;
  --color-accent-2-900: #1f2d3a;

  /* The hero and quote bands. These used to hold one dark colour in both
     themes; they now follow the theme, so everything drawn on them needs a
     light-mode value here and a dark-mode value in section 7. The bands stay
     distinguishable from ordinary sections by their blueprint grid, not by
     background colour. */
  --color-ink: var(--color-bg);
  --color-on-ink: var(--color-text);
  --color-on-ink-muted: color-mix(in srgb, var(--color-text) 80%, transparent);
  --color-on-ink-faint: color-mix(in srgb, var(--color-text) 62%, transparent);
  --color-on-ink-line: color-mix(in srgb, var(--color-text) 50%, transparent);
  --color-on-ink-corner: color-mix(in srgb, var(--color-text) 62%, transparent);
  --color-ink-grid: color-mix(in srgb, var(--color-text) 7%, transparent);
  --color-accent-on-ink: var(--color-accent-700);

  /* The quote form sits on that band and needs its own pair too. Light forms
     are delineated by borders rather than fills — light-on-light can't carry
     much contrast — so the fields go white against a tinted panel. */
  --quote-panel: var(--color-neutral-200);
  --quote-field: #ffffff;
  --quote-field-border: color-mix(in srgb, var(--color-text) 50%, transparent);
  --quote-label: color-mix(in srgb, var(--color-text) 85%, transparent);
  --quote-placeholder: color-mix(in srgb, var(--color-text) 62%, transparent);
  --quote-note: var(--color-neutral-700);

  --font-heading: "Barlow Condensed", system-ui, sans-serif;
  --font-heading-weight: 600;
  --font-body: "Barlow", system-ui, sans-serif;

  --space-1: 3.4px;
  --space-2: 6.8px;
  --space-3: 10.2px;
  --space-4: 13.6px;
  --space-6: 20.4px;
  --space-8: 27.2px;

  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 7px;

  /* Elevation — soft ink-tinted shadows on the light theme; see the dark
     block at the bottom for the dark-theme versions. */
  --shadow-sm: 0 1px 2px color-mix(in srgb, #2b2b2d 14%, transparent);
  --shadow-md: 0 3px 10px color-mix(in srgb, #2b2b2d 16%, transparent);
  --shadow-lg: 0 12px 32px color-mix(in srgb, #2b2b2d 22%, transparent);

  --container: 1240px;
  --gutter: 24px;
  /* Widest the page itself is allowed to get. Beyond this the whole site —
     the full-bleed colour bands included — stops spreading and centres on a
     backdrop, instead of stretching further and further as you zoom out or
     open it on a very wide monitor. Ordinary displays never reach it. */
  --page-max: 2000px;
  /* Spacing of the blueprint grid drawn behind the banded sections. */
  --grid-step: 34px;
}


/* 3. Base elements ======================================================== */

*, *::before, *::after { box-sizing: border-box; }

/* The backdrop the page sits on once it hits --page-max. Derived from the
   theme colours rather than hard-coded, so it follows light and dark mode. */
html { background-color: color-mix(in srgb, var(--color-text) 12%, var(--color-bg)); }

body {
  margin: 0 auto;
  max-width: var(--page-max);
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  font-weight: 400;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  line-height: 1.12;
  letter-spacing: -0.015em;
  margin: 0 0 var(--space-2);
}
h1 { font-size: 42px; }
h2 { font-size: 32px; }
h3 { font-size: 25px; }
h4 { font-size: 20px; }
h5 { font-size: 16px; }
h6 { font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; }

p { margin: 0 0 var(--space-3); }
a { color: var(--color-accent); text-underline-offset: 3px; }
a:hover { color: var(--color-accent-700); }
img { display: block; max-width: 100%; }
figure { margin: 0; }
figcaption {
  font-size: 11px; margin-top: var(--space-1);
  color: color-mix(in srgb, var(--color-text) 55%, transparent);
}
input, textarea, select, button { font-family: inherit; }

.text-muted { color: color-mix(in srgb, var(--color-text) 55%, transparent); }

/* Every hover on the page used to snap straight between colours. A short ease
   makes them feel deliberate rather than abrupt. Only colour properties are
   transitioned — never layout ones — so nothing can shift or reflow on hover. */
a,
.btn, .btn-primary, .btn-secondary, .btn-cta,
.site-nav a, .site-header__phone,
.contact-card__phone a, .contact-card__detail a,
.input {
  transition: color 150ms ease, background-color 150ms ease,
              border-color 150ms ease;
}

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--color-accent); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--color-accent) 30%, transparent); }

/* Keyboard users get a "skip to content" link that only appears on focus. */
.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  padding: 10px 16px; background: var(--color-accent-700); color: #fff;
  font-family: var(--font-heading); text-transform: uppercase; text-decoration: none;
}
.skip-link:focus { left: 0; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.hr { height: 1px; border: 0; margin: var(--space-4) 0; background: var(--color-divider); }


/* 4. Blueprint motif ======================================================
   The hairline frame with the four registration marks at its corners — the
   detail that makes the whole site read as drawings rather than a brochure.
   Markup: <div class="blueprint">…<i class="corner tl"></i> ×4</div>
   ========================================================================== */

.blueprint {
  position: relative;
  border: 1px solid var(--color-divider);
  border-radius: 0;
}
/* The photo tint clips its overlay (overflow:hidden), but a blueprint frame
   draws its marks OUTSIDE the box — so when both share an element the frame
   has to win. */
.blueprint.duotone { overflow: visible; }

.blueprint > .corner {
  position: absolute; width: 11px; height: 11px;
  color: color-mix(in srgb, var(--color-text) 55%, transparent);
}
.blueprint > .corner::before, .blueprint > .corner::after {
  content: ""; position: absolute; background: currentColor;
}
.blueprint > .corner::before { left: 5px; top: 0; width: 1px; height: 100%; }
.blueprint > .corner::after  { top: 5px; left: 0; width: 100%; height: 1px; }
.blueprint > .corner.tl { top: -6px; left: -6px; }
.blueprint > .corner.tr { top: -6px; right: -6px; }
.blueprint > .corner.bl { bottom: -6px; left: -6px; }
.blueprint > .corner.br { bottom: -6px; right: -6px; }

/* On the dark bands the frame and its marks flip to light. */
.blueprint.on-ink { border-color: var(--color-on-ink-line); }
.blueprint.on-ink > .corner { color: var(--color-on-ink-corner); }

/* Photo tint — pushes a photo toward the brand blue, so a mixed bag of site
   pictures reads as one set. NOT currently used: the photos run in full
   colour. To bring the tint back, add `duotone` alongside `blueprint` on a
   photo frame in index.html. */
.duotone { position: relative; overflow: hidden; }
.duotone::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: var(--color-accent); mix-blend-mode: color;
}


/* 5. Components =========================================================== */

/* — buttons — */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  cursor: pointer; text-decoration: none;
  font-family: var(--font-heading); font-weight: var(--font-heading-weight);
  font-size: 14px; line-height: 1.2; color: var(--color-text);
  background: transparent; border: 1px solid var(--color-divider);
  padding: var(--space-2) calc(var(--space-3) * 1.2);
  border-radius: 0;
}
.btn svg { display: block; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn-primary { background: var(--color-accent); color: var(--color-bg); border-color: var(--color-accent); }
.btn-primary:hover { background: var(--color-accent-600); }
.btn-primary:active { background: var(--color-accent-700); }
.btn-secondary:hover { background: color-mix(in srgb, var(--color-text) 7%, transparent); }
.btn-secondary:active { background: color-mix(in srgb, var(--color-text) 14%, transparent); }
.btn-block { width: 100%; margin-top: var(--space-2); }

/* The "Contact Us" call-to-action, used in the header, hero and careers row. */
.btn-cta {
  display: inline-flex; align-items: center;
  font-family: var(--font-heading); font-weight: 600;
  font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase;
  padding: 10px 18px; text-decoration: none;
  background: var(--color-accent-700); color: var(--color-accent-300);
  border: 1px solid var(--color-accent-700);
}
.btn-cta:hover { background: var(--color-accent-800); border-color: var(--color-accent-800); color: var(--color-accent-200); }
.btn-cta--large { padding: 14px 26px; font-size: 15px; letter-spacing: 0.08em; }
/* There was a .btn-cta--hero variant here, one rung lighter, because the hero
   used to be near-black in both themes and accent-700 vanished against it.
   The hero now follows the theme — accent-700 is dark on the light band and
   light on the dark one — so the standard button works in both and the
   variant was removed. */

/* — forms — */
.field > label {
  display: block; font-size: 12px; margin-bottom: 5px;
  color: color-mix(in srgb, var(--color-text) 70%, transparent);
}
.input {
  width: 100%; min-height: 36px; padding: 6px 10px; font: inherit;
  font-size: 14px; color: var(--color-text); caret-color: var(--color-accent);
  background: var(--color-surface);
  border: 1px solid var(--color-divider); border-radius: 0;
}
.input:hover { border-color: color-mix(in srgb, var(--color-text) 45%, transparent); }
.input:focus-visible { border-color: var(--color-accent); outline-offset: 0; }
textarea.input { min-height: 90px; resize: vertical; }

/* — cards — */
.card {
  display: flex; flex-direction: column; gap: var(--space-2);
  padding: var(--space-3); border-radius: 0;
  background: transparent; border: 1px solid var(--color-divider);
}
.card-body { margin: 0; font-size: 13px; opacity: 0.8; flex: 1; }
.elev-sm { box-shadow: var(--shadow-sm); }
.elev-md { box-shadow: var(--shadow-md); }
.elev-lg { box-shadow: var(--shadow-lg); }


/* 6. Page sections ======================================================== */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(56px, 8vw, 104px); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
/* background-color, not the background shorthand — the shorthand would reset
   the blueprint grid image set on these same elements just below. */
.section--band { background-color: var(--color-neutral-100); border-block: 1px solid var(--color-divider); }
.section--ink { background-color: var(--color-ink); color: var(--color-on-ink); }

/* — blueprint grid —
   Graph-paper texture behind the banded sections, extending the corner-mark
   motif that runs through the cards and buttons. Deliberately near-invisible:
   it should register as tooth on the surface, not as a pattern competing with
   the photographs. Drawn with gradients, so it downloads nothing. Tune the
   visibility with the two --grid-line values, the scale with --grid-step. */
.section--band, .section--ink {
  background-image:
    repeating-linear-gradient(to right,  var(--grid-line) 0 1px, transparent 1px var(--grid-step)),
    repeating-linear-gradient(to bottom, var(--grid-line) 0 1px, transparent 1px var(--grid-step));
}
.section--band { --grid-line: color-mix(in srgb, var(--color-neutral-500) 14%, transparent); }
.section--ink  { --grid-line: var(--color-ink-grid); }
.section--ruled { border-top: 1px solid var(--color-divider); }

/* The small numbered label above each section heading ("01 — Capabilities"). */
.kicker {
  font-family: var(--font-heading); font-size: 13px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--color-accent-700);
}
.kicker--on-ink { color: var(--color-accent-on-ink); }

.section__title {
  font-size: clamp(30px, 4.2vw, 46px);
  text-transform: uppercase; letter-spacing: -0.01em;
  margin: 10px 0 32px;
}
.section__head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; margin-bottom: 40px;
}
.section__head .section__title { margin-bottom: 0; }
.section__intro { max-width: 44ch; margin: 0; color: var(--color-neutral-700); font-size: 16px; }

/* — header — */
/* The header is sticky, so a jump to #services would otherwise land the
   section flush with the top of the window and leave the bar covering its
   heading. scroll-padding-top holds every anchor jump clear of it.
   --header-h is measured in index.html because the header wraps to two or
   three rows on a phone, so its height isn't a number we can hard-code; the
   64px fallback is the unwrapped desktop height, for when JS hasn't run. */
html { scroll-padding-top: calc(var(--header-h, 64px) + 12px); }

.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(242, 242, 243, 0.94);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--color-divider);
}
.site-header__inner {
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
  padding-block: 14px;
}
.site-header__brand { display: block; margin-right: auto; }
/* <picture> is inline by default, which would add a stray baseline gap under
   the wordmark. Both logo instances are wrapped in one, so block it out. */
.logo-picture { display: block; }
.site-header__logo { height: 34px; width: auto; }

.site-nav {
  display: flex; align-items: center; gap: 26px; flex-wrap: wrap;
  font-family: var(--font-heading); font-weight: 600; font-size: 15px;
  letter-spacing: 0.02em; text-transform: uppercase;
}
.site-nav a { color: var(--color-text); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--color-accent-700); }

/* Tap-to-call. Sized and padded to clear the 44px minimum touch target both
   Apple and Google recommend — this is the one control on the page most likely
   to be tapped one-handed, on a jobsite, possibly with gloves on. */
.site-header__phone {
  font-family: var(--font-heading); font-weight: 600; font-size: 17px;
  letter-spacing: 0.02em; color: var(--color-text); text-decoration: none;
  white-space: nowrap; padding: 11px 0; display: inline-flex; align-items: center;
}
.site-header__phone:hover { color: var(--color-accent-700); }

/* — hero — */
.hero__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  padding-block: clamp(48px, 7vw, 96px) clamp(40px, 6vw, 80px);
}
.hero__eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--color-on-ink-line); padding: 8px 16px;
  font-family: var(--font-heading); font-weight: 600;
  /* Fluid rather than a flat bump: it's a long string in a bordered pill, so
     holding it at 13px on a phone keeps it on one line, while desktop gets the
     extra presence against the headline below. */
  font-size: clamp(13px, 1.3vw, 17px);
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--color-accent-on-ink);
}
.hero__title {
  font-size: clamp(40px, 6.5vw, 72px); line-height: 1.02;
  letter-spacing: -0.02em; text-transform: uppercase;
  margin: 22px 0 0;
}
.hero__lede {
  font-size: clamp(17px, 2vw, 21px); line-height: 1.5;
  max-width: 46ch; margin: 20px 0 0; color: var(--color-on-ink-muted);
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
/* Portrait, so the full vertical run of the mechanical-room piping shows
   without the top and bottom being cropped away. */
.hero__media { aspect-ratio: 3 / 4; min-height: 260px; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }

/* — stats strip — */
.stats { background: var(--color-neutral-100); border-bottom: 1px solid var(--color-divider); }
.stats__inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }
.stats__item { padding-block: 26px; }
.stats__item + .stats__item { padding-left: 20px; }
.stats__item:not(:last-child) { border-right: 1px solid var(--color-divider); padding-right: 20px; }
/* Those dividers are vertical, which only reads correctly while the items are
   side by side. Once the grid wraps, a right-hand border becomes a hairline
   hanging off the edge of a full-width row — so below the width where three
   columns still fit, the rules turn horizontal instead. This is the one
   breakpoint in the stylesheet; the alternative (the gap-over-background trick
   used by .fact-grid) would have inset the first stat from the container edge
   and broken its alignment with the headings above and below. */
@media (max-width: 647px) {
  .stats__item + .stats__item { padding-left: 0; }
  .stats__item:not(:last-child) {
    border-right: 0; padding-right: 0;
    border-bottom: 1px solid var(--color-divider);
  }
}

/* — accreditation strip —
   Third-party marks near the top of the page, where a contractor checking
   prequalification will see them without scrolling. */
.accreditation { border-bottom: 1px solid var(--color-divider); }
.accreditation__inner {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: clamp(18px, 3.5vw, 40px); padding-block: 20px;
}
.accreditation__label {
  font-family: var(--font-heading); font-weight: 600; font-size: 12px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--color-neutral-600);
}
/* Keeps the marks together as one flex item, so they move to the next line as a
   pair rather than the row splitting between them. */
.accreditation__marks {
  display: flex; align-items: center; flex-wrap: wrap;
  gap: clamp(18px, 3.5vw, 40px);
}
/* The source files are trimmed to their artwork, with no transparent margin
   left in them — otherwise a shared height renders two different visible sizes
   and they sit off a common baseline. Re-trim any mark added here. */
.accreditation__mark { height: 50px; width: auto; }
.stats__number {
  font-family: var(--font-heading); font-size: 38px; line-height: 1;
  color: var(--color-accent-700);
}
.stats__label {
  font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
  margin-top: 6px; color: var(--color-neutral-700);
}

/* — services — */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 26px; }
/* The credential cards share the service-card treatment exactly — same card,
   same rhythm — so they're listed together rather than duplicated. */
.service-card, .credential-card { padding: 26px; gap: 14px; }
.service-card h3, .credential-card h3 {
  font-size: 21px; text-transform: uppercase; letter-spacing: 0.01em; margin: 0;
}
.service-card .card-body,
.credential-card .card-body { font-size: 15px; opacity: 0.85; line-height: 1.55; }

/* — projects — */
/* 450px, not 300px — deliberately too wide for a third column to fit inside
   the 1192px content area, so four projects land as an even 2x2 instead of a
   row of three with one orphan below. Raise this again if a fifth and sixth
   project return; 300px is the value that gives three across. */
.project-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(450px, 100%), 1fr)); gap: 30px; }
.project__media { aspect-ratio: 3 / 2; background: var(--color-neutral-200); }
.project__media img { width: 100%; height: 100%; object-fit: cover; }
/* The zoom has to be clipped by something, but it can't be .project__media —
   that carries the blueprint frame, whose registration marks are drawn 6px
   OUTSIDE the box and would be cut off. Hence this inner wrapper: it clips the
   photo while the frame and its corners stay clear. */
.project__frame { overflow: hidden; height: 100%; }
.project__media img { transition: transform 500ms ease; }
.project-grid article:hover .project__media img,
.project-grid article:focus-within .project__media img { transform: scale(1.04); }
.project__title { font-size: 21px; text-transform: uppercase; margin: 14px 0 0; }
/* Tag for a job still on the go, so a render doesn't read as a finished build. */
.project__status {
  display: inline-block; vertical-align: 3px; margin-left: 8px;
  padding: 3px 8px; border: 1px solid var(--color-divider);
  font-family: var(--font-heading); font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; color: var(--color-accent-700); white-space: nowrap;
}

/* — about — */
.about__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: clamp(32px, 5vw, 68px); align-items: center;
}
/* Stays 4:3 — the mechanical-room shot is a 3:4 portrait, so the centre band
   crops to the tanks and heaters and drops the empty ceiling and floor. */
.about__media { aspect-ratio: 4 / 3; background: var(--color-neutral-200); }
.about__media img { width: 100%; height: 100%; object-fit: cover; }
.about__grid .section__title { margin-bottom: 18px; }
.about__text p { font-size: 17px; line-height: 1.6; color: var(--color-neutral-800); }

/* The two-up "own crews / repeat clients" panel. The 1px gap over a divider
   background is what draws the hairlines between cells. */
.fact-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr));
  gap: 1px; background: var(--color-divider);
  border: 1px solid var(--color-divider); margin-top: 30px;
}
.fact { background: var(--color-bg); padding: 18px 20px; }
.fact__title {
  font-family: var(--font-heading); font-size: 15px;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.fact__note { font-size: 13px; color: var(--color-neutral-600); margin-top: 4px; }

/* — careers — */
/* Was a flex row of text-then-button. Now two columns, text and photo, matching
   the About section's arrangement — this band was the thinnest on the page. */
.careers__inner {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: clamp(32px, 5vw, 64px); align-items: center;
}
.careers__cta { margin-top: 22px; }
.careers__media { aspect-ratio: 4 / 3; background: var(--color-neutral-200); }
.careers__media img { width: 100%; height: 100%; object-fit: cover; }
.careers__title { font-size: clamp(26px, 3.6vw, 38px); text-transform: uppercase; margin: 10px 0 8px; }
.careers__text { max-width: 48ch; margin: 0; color: var(--color-neutral-700); font-size: 16px; }

/* — contact details — */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 26px; }
.contact-card { padding: 28px; gap: 10px; }
.contact-card__role {
  font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--color-accent-700);
}
.contact-card__name { font-size: 24px; text-transform: uppercase; margin: 4px 0 10px; }
.contact-card__phone { font-family: var(--font-heading); font-size: 20px; }
.contact-card__phone a, .contact-card__detail a { color: inherit; text-decoration: none; }
.contact-card__phone a:hover, .contact-card__detail a:hover {
  color: var(--color-accent-700); text-decoration: underline;
}
.contact-card__detail { font-size: 16px; color: var(--color-neutral-800); margin-top: 2px; line-height: 1.5; }
/* The locations card holds both addresses, so the grid stays at three even
   columns. Its place names sit a rung below the 24px person names, and a
   hairline separates the two so they don't read as one run-on address. */
.contact-card__place-name {
  font-family: var(--font-heading); font-size: 17px;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.contact-card__place + .contact-card__place {
  padding-top: 14px; border-top: 1px solid var(--color-divider);
}

/* — quote form — */
.quote__inner {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  gap: clamp(36px, 5vw, 72px);
}
.quote__title { font-size: clamp(30px, 4.2vw, 46px); text-transform: uppercase; margin: 10px 0 16px; }
.quote__lede { font-size: 17px; line-height: 1.6; color: var(--color-on-ink-muted); max-width: 44ch; }
.quote__media { aspect-ratio: 4 / 3; margin-top: 30px; }
.quote__media img { width: 100%; height: 100%; object-fit: cover; }

/* The form has to read as a distinct object, not as more band. On a wide
   screen it sits beside the heading so position alone does that; stacked
   beneath it on a phone, position doesn't, and without a panel it dissolves.
   Every colour here comes from the --quote-* pair so the same structure works
   in both themes: panel distinct from the band, fields distinct from the
   panel, and typed text well clear of its field. */
.quote-form {
  padding: clamp(24px, 3vw, 36px);
  display: grid; gap: 18px; align-content: start;
  background-color: var(--quote-panel);
}
.quote-form h3 { font-size: 22px; text-transform: uppercase; letter-spacing: 0.04em; margin: 0; }
.quote-form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 16px; }
.quote-form .field > label { color: var(--quote-label); }
.quote-form .input {
  background: var(--quote-field);
  border-color: var(--quote-field-border);
  color: var(--color-on-ink);
  min-height: 44px;
}
.quote-form .input::placeholder { color: var(--quote-placeholder); }
.quote-form .input:hover { border-color: var(--color-on-ink); }
.quote-form .input:focus-visible { border-color: var(--color-accent); }
.quote-form select.input option { color: var(--color-text); background: var(--color-bg); }
.quote-form textarea.input { min-height: 120px; }
.quote-form__submit {
  position: relative; min-height: 50px;
  font-size: 15px; letter-spacing: 0.1em; text-transform: uppercase;
}
.quote-form__note { font-size: 12px; color: var(--quote-note); }
.quote-form__note a { color: var(--color-accent-on-ink); }
/* Honeypot: a field real people never see and never fill in. If something
   puts text in it, the submission is a bot. */
.quote-form__trap {
  position: absolute; left: -9999px;
  width: 1px; height: 1px; overflow: hidden;
}

/* — footer — */
.site-footer { border-top: 1px solid var(--color-divider); }
.site-footer__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap; padding-block: 36px;
}
.site-footer__logo { height: 28px; width: auto; }
.site-footer__meta { font-size: 13px; color: var(--color-neutral-600); letter-spacing: 0.04em; }

/* — placeholder for a photo that hasn't been supplied yet —
   Delete the .photo-placeholder div and drop an <img> in its place. */
.photo-placeholder {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 24px; text-align: center;
  background: repeating-linear-gradient(
    45deg,
    color-mix(in srgb, var(--color-neutral-500) 12%, transparent) 0 10px,
    transparent 10px 20px
  );
  font-family: var(--font-heading); font-size: 13px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--color-neutral-600);
}


/* 7. Dark mode ============================================================
   Follows the visitor's operating-system setting. The steel accent stays the
   accent; the neutral ramp inverts so light bands become dark ones.
   ========================================================================== */

@media (prefers-color-scheme: dark) {
  :root {
    --color-bg: #16181a;
    --color-surface: #1e2124;
    --color-text: #ececee;
    --color-divider: color-mix(in srgb, #ececee 20%, transparent);
    --color-neutral-100: #1c1f21;
    --color-neutral-200: #24282b;
    --color-neutral-300: #32373a;
    --color-neutral-400: #4a5054;
    --color-neutral-500: #767c80;
    --color-neutral-600: #9aa0a4;
    --color-neutral-700: #b6bcc0;
    --color-neutral-800: #d3d8db;
    --color-neutral-900: #eceff1;
    --color-accent-100: #182530;
    --color-accent-200: #1f303e;
    --color-accent-300: #2a4055;
    --color-accent-800: #bcd7f2;
    --color-accent: #94bce3;
    --color-accent-600: #7ba5cd;
    --color-accent-700: #a8cbee;
    --color-accent-900: #101c26;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 3px 10px rgba(0, 0, 0, 0.55);
    --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.6);

    /* The ink bands. Deliberately #2b2b2d rather than the page colour — a
       shade lighter than the background, so they still read as bands here. */
    --color-ink: #2b2b2d;
    --color-on-ink: #f2f2f3;
    --color-on-ink-muted: rgba(242, 242, 243, 0.82);
    --color-on-ink-faint: rgba(242, 242, 243, 0.55);
    --color-on-ink-line: rgba(242, 242, 243, 0.38);
    --color-on-ink-corner: rgba(242, 242, 243, 0.6);
    --color-ink-grid: rgba(242, 242, 243, 0.06);
    --color-accent-on-ink: var(--color-accent-400);

    /* Quote form on the dark band. These are the measured values: the panel
       lifts off the band, the fields sink below the panel, and white text on
       those wells reads at better than 12:1. Re-measure if you change them. */
    --quote-panel: rgba(242, 242, 243, 0.20);
    --quote-field: rgba(0, 0, 0, 0.45);
    --quote-field-border: rgba(242, 242, 243, 0.55);
    --quote-label: rgba(242, 242, 243, 0.88);
    --quote-placeholder: rgba(242, 242, 243, 0.62);
    --quote-note: rgba(242, 242, 243, 0.78);
  }

  .site-header { background: rgba(22, 24, 26, 0.94); }

  /* No plate needed — index.html serves a light version of the wordmark
     (assets/logo-mechano-dark.png) via <picture> when dark mode is on. */

  /* The accreditation marks DO get a plate, and this is not an oversight.
     They are other organisations' registered trademarks: the COR badge and the
     NLCSA gear are largely black, and brand guidelines for marks like these
     prohibit recolouring or inverting them. Sitting them on a light field is
     the standard compliant fix. That is why they are handled differently from
     the Mechano wordmark above, which is our own asset and ships as a
     purpose-made light variant instead. Do not "tidy this up". */
  .accreditation__mark {
    background: #f2f2f3; padding: 8px 12px; box-sizing: content-box;
  }

  /* The CTA inverts in dark mode (accent-700 becomes the LIGHT end of the
     ramp), so its label has to go dark to stay readable. */
  .btn-cta { color: #10161c; }
  .btn-cta:hover { color: #10161c; }
  .btn-primary { color: #10161c; }
}


/* Reduced motion — some people set this at the OS level because movement on
   screen makes them ill. Honour it: the hover colours still change, they just
   stop animating, and the project photos hold still. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
  .project-grid article:hover .project__media img,
  .project-grid article:focus-within .project__media img { transform: none; }
}


/* Print — the estimating side of the business does print pages out. */
@media print {
  .site-header, .quote-form, .btn-cta { display: none; }
  body { background: #fff; color: #000; }
  .section, .section--tight { padding-block: 24px; }
}
