/* WePro Mechanical: all site styling. Colours and fonts are the variables in :root below.
   Design notes: docs/DESIGN.md */

/* @fonts: written by tools/fonts.mjs */
@font-face{font-family:'Archivo';font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/archivo-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Archivo';font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/archivo-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}
@font-face{font-family:'Archivo';font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/archivo-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Archivo';font-style:normal;font-weight:700;font-display:swap;src:url(/fonts/archivo-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}
@font-face{font-family:'Archivo';font-style:normal;font-weight:800;font-display:swap;src:url(/fonts/archivo-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'Archivo';font-style:normal;font-weight:800;font-display:swap;src:url(/fonts/archivo-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}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/ibm-plex-mono-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'IBM Plex Mono';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/ibm-plex-mono-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:'IBM Plex Sans';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/ibm-plex-sans-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:400;font-display:swap;src:url(/fonts/ibm-plex-sans-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:'IBM Plex Sans';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/ibm-plex-sans-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:500;font-display:swap;src:url(/fonts/ibm-plex-sans-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:'IBM Plex Sans';font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/ibm-plex-sans-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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:'IBM Plex Sans';font-style:normal;font-weight:600;font-display:swap;src:url(/fonts/ibm-plex-sans-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}
/* /@fonts */

:root {
  --ink: #15171a;            /* graphite: header, footer, dark bands */
  --ink-2: #1e2125;          /* raised panels on graphite */
  --ink-3: #2a2e33;          /* lines on graphite */
  --paper: #f4f3ef;          /* page background */
  --card: #ffffff;
  --text: #1b1e22;
  --muted: #545a62;          /* secondary text on paper, 6.6:1 */
  --line: #d8d5cd;
  --on-ink: #eef0f2;
  --on-ink-muted: #aab0b8;   /* 8.1:1 on graphite */
  --gold: #c9a24f;           /* from the logo; on graphite 8.0:1 */
  --gold-soft: #e3c98c;
  --gold-deep: #7a5c1c;      /* gold text on paper, 5.6:1 */
  --supply: #2c6a8e;         /* "supply air" blue, used for diagrams and focus on light */
  --supply-soft: #9fc6dc;

  --f-head: 'Archivo', 'Arial Narrow', Arial, sans-serif;
  --f-body: 'IBM Plex Sans', 'Segoe UI', Roboto, Arial, sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, Consolas, monospace;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 6px;
  --section: clamp(56px, 8vw, 104px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font: 400 1.0625rem/1.65 var(--f-body);
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
picture { display: block; }
a { color: var(--supply); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--supply); outline-offset: 3px; border-radius: 2px; }
.on-ink :focus-visible, .site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--gold); }

h1, h2, h3, h4 { font-family: var(--f-head); font-weight: 700; line-height: 1.08; letter-spacing: -0.015em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 1.5rem + 3.2vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 1.25rem + 1.9vw, 2.65rem); }
h3 { font-size: clamp(1.2rem, 1.1rem + .4vw, 1.4rem); line-height: 1.2; letter-spacing: -0.005em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.2em; }
strong { font-weight: 600; }
.lead { font-size: clamp(1.1rem, 1rem + .4vw, 1.3rem); line-height: 1.55; color: var(--muted); max-width: 62ch; }
.on-ink .lead { color: var(--on-ink-muted); }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--tight { padding: calc(var(--section) * .65) 0; }
.section--card { background: var(--card); border-block: 1px solid var(--line); }
.on-ink { background: var(--ink); color: var(--on-ink); }
.on-ink a:not(.btn) { color: var(--gold-soft); }

/* Sheet tag: the small mono label like on a drawing ("M-01  Commercial HVAC") */
.tag {
  display: inline-flex; align-items: center; gap: .7em; margin: 0 0 1.1rem;
  font: 500 .78rem/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--gold-deep);
}
.tag b { font-weight: 500; padding: .38em .55em; border: 1px solid currentColor; border-radius: 3px; }
.on-ink .tag { color: var(--gold); }

.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head p:not(.tag) { color: var(--muted); font-size: 1.1rem; }
.on-ink .section-head p:not(.tag) { color: var(--on-ink-muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: .75em 1.35em; border-radius: var(--radius); border: 2px solid transparent;
  font: 600 1rem/1.1 var(--f-body); text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--gold { background: var(--gold); color: var(--ink); }
.btn--gold:hover { background: var(--gold-soft); }
.btn--ink { background: var(--ink); color: var(--on-ink); }
.btn--ink:hover { background: #2b2f35; }
.btn--line { border-color: rgba(238, 240, 242, .45); color: var(--on-ink); }
.btn--line:hover { border-color: var(--on-ink); background: rgba(255, 255, 255, .06); }
.btn--line-ink { border-color: var(--ink); color: var(--ink); }
.btn--line-ink:hover { background: rgba(21, 23, 26, .06); }
.btn--outline { border-color: var(--line); color: var(--text); background: var(--card); }
.btn--outline:hover { border-color: var(--text); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.link-arrow { font-weight: 600; text-decoration: none; display: inline-flex; gap: .4em; align-items: center; }
.link-arrow::after { content: "→"; transition: transform .15s; }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------- Header ---------- */
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: var(--ink); padding: 10px 14px; border-radius: var(--radius); font-weight: 600; }
.skip-link:focus { top: 12px; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(21, 23, 26, .97); color: var(--on-ink); border-bottom: 1px solid var(--ink-3); }
.site-header__bar { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: block; flex: none; margin-right: auto; }
.brand img { height: 38px; width: auto; }
.nav__toggle {
  display: none; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; margin-left: 4px;
  background: transparent; color: var(--on-ink); border: 1px solid var(--ink-3); border-radius: var(--radius); font: 600 .95rem var(--f-body); cursor: pointer;
}
.nav__toggle-icon, .nav__toggle-icon::before, .nav__toggle-icon::after { display: block; width: 18px; height: 2px; background: currentColor; position: relative; transition: transform .2s; }
.nav__toggle-icon::before, .nav__toggle-icon::after { content: ""; position: absolute; left: 0; }
.nav__toggle-icon::before { top: -6px; } .nav__toggle-icon::after { top: 6px; }
.nav__toggle[aria-expanded="true"] .nav__toggle-icon { background: transparent; }
.nav__toggle[aria-expanded="true"] .nav__toggle-icon::before { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-icon::after { transform: translateY(-6px) rotate(-45deg); }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.nav__list a { display: block; padding: 10px 12px; color: var(--on-ink); text-decoration: none; font-weight: 500; font-size: .98rem; border-radius: 4px; }
.nav__list a:hover { background: var(--ink-2); }
.nav__list a[aria-current="page"] { color: var(--gold); box-shadow: inset 0 -2px 0 var(--gold); border-radius: 0; }
.site-header__call { display: inline-flex; align-items: center; gap: 8px; color: var(--on-ink); text-decoration: none; font-weight: 600; white-space: nowrap; }
.site-header__call svg { width: 18px; height: 18px; color: var(--gold); }
.site-header__call:hover { color: var(--gold-soft); }
.site-header__cta { min-height: 42px; padding: .6em 1.1em; white-space: nowrap; }

@media (max-width: 1080px) {
  .site-header__call span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .site-header__call { width: 44px; height: 44px; justify-content: center; border: 1px solid var(--ink-3); border-radius: var(--radius); }
}
@media (max-width: 960px) {
  .nav { order: 3; }
  .nav__toggle { display: inline-flex; }
  html.js .nav__list { display: none; }
  html.js .nav__list.is-open { display: block; }
  .nav__list {
    position: absolute; left: 0; right: 0; top: 100%; background: var(--ink); border-bottom: 1px solid var(--ink-3);
    padding: 8px var(--gutter) 20px; max-height: calc(100vh - 68px); overflow-y: auto;
  }
  html:not(.js) .nav__list { position: static; display: flex; flex-wrap: wrap; padding: 0; border: 0; }
  .nav__list a { padding: 14px 4px; font-size: 1.1rem; border-bottom: 1px solid var(--ink-3); border-radius: 0; }
  .nav__list a[aria-current="page"] { box-shadow: none; }
  .site-header__bar { flex-wrap: wrap; }
}
@media (max-width: 520px) {
  .site-header__cta { display: none; }
  .brand img { height: 32px; }
  .site-header__bar { gap: 8px; }
  .nav__toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .nav__toggle { width: 44px; justify-content: center; padding: 0; }
}

/* ---------- Home hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(40px, 6vw, 88px) clamp(48px, 7vw, 96px); }
.hero h1 { color: #fff; margin-bottom: .45em; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lead { margin-bottom: 1.8rem; }
.hero__facts { list-style: none; padding: 0; margin: 2.2rem 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--ink-3); }
.hero__facts li { padding: 14px 14px 0 0; font-size: .95rem; color: var(--on-ink-muted); line-height: 1.4; }
.hero__facts li + li { padding-left: 14px; border-left: 1px solid var(--ink-3); }
.hero__facts b { display: block; color: var(--on-ink); font: 600 1rem/1.3 var(--f-body); margin-bottom: 2px; }
.hero__media { position: relative; }
.hero__media img { border-radius: var(--radius); width: 100%; }
.hero__media::before { /* thin gold frame offset behind the photo */
  content: ""; position: absolute; inset: 14px -14px -14px 14px; border: 1px solid rgba(201, 162, 79, .55); border-radius: var(--radius); pointer-events: none;
}

/* Title block: like the corner of an engineering drawing */
.titleblock {
  position: absolute; left: -28px; bottom: 28px; width: min(88%, 380px);
  background: var(--ink); color: var(--on-ink); border: 1px solid var(--gold); border-radius: 3px;
  display: grid; grid-template-columns: 1fr 1fr; font-size: .86rem; box-shadow: 0 20px 50px rgba(0, 0, 0, .45);
}
.titleblock div { padding: 9px 12px; border-bottom: 1px solid var(--ink-3); }
.titleblock div:nth-child(odd) { border-right: 1px solid var(--ink-3); }
.titleblock .wide { grid-column: 1 / -1; border-right: 0 !important; }
.titleblock div:last-child { border-bottom: 0; }
.titleblock dt { font: 500 .66rem/1.2 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin-bottom: 3px; }
.titleblock dd { margin: 0; font-weight: 500; line-height: 1.3; }
.titleblock .sheet { display: flex; justify-content: space-between; align-items: baseline; }
.titleblock .sheet dd { font: 600 1.05rem/1 var(--f-mono); color: var(--gold); }

@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { max-width: 560px; }
  .titleblock { left: 12px; bottom: 12px; }
}
@media (max-width: 560px) {
  .hero__facts { grid-template-columns: 1fr; }
  .hero__facts li, .hero__facts li + li { padding: 12px 0; border-left: 0; border-bottom: 1px solid var(--ink-3); }
  .titleblock { position: relative; left: auto; bottom: auto; width: 100%; margin-top: -2px; border-radius: 0 0 3px 3px; }
  .hero__media::before { display: none; }
}

/* ---------- Two paths (commercial / residential) ---------- */
.paths { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 28px); }
.path { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.path picture img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.path__body { padding: clamp(20px, 3vw, 32px); display: flex; flex-direction: column; flex: 1; }
.path__body p { color: var(--muted); }
.path ul { list-style: none; padding: 0; margin: 0 0 1.4rem; display: grid; gap: 8px; }
.path li { position: relative; padding-left: 22px; }
.path li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 2px; background: var(--gold); }
.path .btn-row { margin-top: auto; }
.path--wide { grid-column: 1 / -1; flex-direction: row; background: var(--ink); color: var(--on-ink); border-color: var(--ink); }
.path--wide .path__body p { color: var(--on-ink-muted); }
.path--wide picture { flex: 0 0 42%; }
.path--wide picture img { height: 100%; aspect-ratio: auto; min-height: 280px; }
.path--wide ul { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
@media (max-width: 820px) {
  .paths { grid-template-columns: 1fr; }
  .path--wide { flex-direction: column; }
  .path--wide picture img { aspect-ratio: 3 / 2; min-height: 0; }
  .path--wide ul { grid-template-columns: 1fr; }
}

/* ---------- Schedule table (renovation scenarios, project data) ---------- */
.schedule { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; font-size: 1rem; }
.schedule caption { text-align: left; font: 500 .78rem/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--gold-deep); padding: 0 0 12px; }
.schedule th, .schedule td { text-align: left; vertical-align: top; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.schedule thead th { font: 500 .74rem/1.2 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: #faf9f6; }
.schedule tbody tr:last-child > * { border-bottom: 0; }
.schedule .ref { font: 500 .85rem/1.5 var(--f-mono); color: var(--gold-deep); white-space: nowrap; width: 1%; }
.schedule td:last-child { color: var(--muted); }
.schedule strong { color: var(--text); display: block; margin-bottom: 2px; }
.schedule tbody th { font-weight: 400; color: var(--muted); width: 36%; }
@media (max-width: 720px) {
  .schedule thead { display: none; }
  .schedule, .schedule tbody, .schedule tr, .schedule td, .schedule th { display: block; width: 100%; }
  .schedule tr { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .schedule tbody tr:last-child { border-bottom: 0; }
  .schedule th, .schedule td { padding: 2px 0; border: 0; }
  .schedule tbody th { width: 100%; }
  .schedule caption { display: block; padding: 14px 16px 12px; border-bottom: 1px solid var(--line); }
  .schedule td[data-label]::before { content: attr(data-label); display: block; margin-top: 8px; font: 500 .7rem/1.4 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
}

/* ---------- Split layouts ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.split--top { align-items: start; }
.split--wide-left { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); }
.split img { border-radius: var(--radius); width: 100%; }
.split--reverse > :first-child { order: 2; }
@media (max-width: 860px) {
  .split, .split--wide-left { grid-template-columns: 1fr; }
  .split--reverse > :first-child { order: 0; }
}
.figure-caption { font-size: .88rem; color: var(--muted); margin-top: 10px; }
.on-ink .figure-caption { color: var(--on-ink-muted); }

/* ---------- Cards and lists ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: clamp(14px, 2vw, 22px); }
.cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .cards--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .cards--3 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 2.5vw, 28px); }
.card h3 { margin-bottom: .4em; }
.card p:last-child, .card ul:last-child { margin-bottom: 0; }
.card p { color: var(--muted); }
.card__ref { font: 500 .74rem/1 var(--f-mono); letter-spacing: .06em; color: var(--gold-deep); display: block; margin-bottom: 14px; }
.on-ink .card { background: var(--ink-2); border-color: var(--ink-3); }
.on-ink .card p { color: var(--on-ink-muted); }
.on-ink .card__ref { color: var(--gold); }

.ticks { list-style: none; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: .3em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 10.5l3.2 3L15 7' fill='none' stroke='%2315171a' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.ticks--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
@media (max-width: 640px) { .ticks--2 { grid-template-columns: 1fr; } }

/* ---------- Process steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; counter-reset: step; position: relative; }
.steps li { position: relative; padding: 46px 18px 0 0; counter-increment: step; }
.steps li::before {
  content: "0" counter(step); position: absolute; left: 0; top: 0; z-index: 1;
  font: 500 .8rem/1 var(--f-mono); color: var(--ink); background: var(--gold); padding: 7px 9px; border-radius: 3px;
}
.steps li::after { content: ""; position: absolute; left: 0; right: 0; top: 14px; height: 2px; background: linear-gradient(90deg, var(--gold) 0 40%, transparent 40%) 0 0 / 12px 2px repeat-x; }
.steps li:last-child::after { right: auto; width: 40px; }
.steps h3 { font-size: 1.12rem; margin-bottom: .35em; }
.steps p { font-size: .97rem; color: var(--muted); margin: 0; }
.on-ink .steps p { color: var(--on-ink-muted); }
@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .steps li { padding: 0 0 0 64px; }
  .steps li::after { left: 16px; right: auto; top: 30px; bottom: -26px; width: 2px; height: auto; background: linear-gradient(180deg, var(--gold) 0 40%, transparent 40%) 0 0 / 2px 12px repeat-y; }
  .steps li:last-child::after { display: none; }
}

/* ---------- Project feature ---------- */
.project-feature { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (max-width: 900px) { .project-feature { grid-template-columns: 1fr; } }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: 1.5rem 0; border: 1px solid var(--ink-3); border-radius: 3px; }
.facts div { padding: 12px 14px; border-bottom: 1px solid var(--ink-3); }
.facts div:nth-child(odd) { border-right: 1px solid var(--ink-3); }
.facts div:nth-last-child(-n+2) { border-bottom: 0; }
.facts dt { font: 500 .68rem/1.3 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin-bottom: 3px; }
.facts dd { margin: 0; font-weight: 500; }
.section--card .facts, .facts--light { border-color: var(--line); background: var(--card); }
.facts--light div, .section--card .facts div { border-color: var(--line) !important; }
.facts--light dt { color: var(--gold-deep); }
@media (max-width: 480px) {
  .facts { grid-template-columns: 1fr; }
  .facts div { border-right: 0 !important; border-bottom: 1px solid var(--ink-3) !important; }
  .facts--light div { border-bottom-color: var(--line) !important; }
  .facts div:last-child { border-bottom: 0 !important; }
}

/* Schematic diagram (inline SVG) */
.schematic { background: var(--ink-2); border: 1px solid var(--ink-3); border-radius: var(--radius); padding: clamp(14px, 2vw, 22px); }
.schematic svg { width: 100%; }
.schematic .legend { display: flex; flex-wrap: wrap; gap: 8px 18px; list-style: none; padding: 0; margin: 14px 0 0; font-size: .82rem; color: var(--on-ink-muted); }
.schematic .legend li { display: inline-flex; align-items: center; gap: 8px; }
.schematic .legend i { width: 18px; height: 3px; border-radius: 2px; display: inline-block; }
.schematic .flow { stroke-dasharray: 6 8; animation: flow 1.6s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -28; } }

/* ---------- Page header (inner pages) ---------- */
.page-head { padding: clamp(40px, 6vw, 80px) 0 clamp(40px, 6vw, 72px); }
.page-head__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.page-head h1 { color: #fff; }
.page-head .lead { margin-bottom: 1.6rem; }
.page-head img { border-radius: var(--radius); }
.page-head--plain .page-head__grid { grid-template-columns: minmax(0, 820px); }
@media (max-width: 860px) { .page-head__grid { grid-template-columns: 1fr; } }

.jump { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.jump a { display: inline-block; padding: 8px 14px; border: 1px solid var(--ink-3); border-radius: 999px; color: var(--on-ink); text-decoration: none; font-size: .92rem; }
.jump a:hover { border-color: var(--gold); color: var(--gold-soft); }

/* ---------- Standards strip ---------- */
.standards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); overflow: hidden; }
.standards div { padding: 18px 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 0 -1px -1px 0; }
.standards dt { font: 500 .95rem/1.2 var(--f-mono); color: var(--gold-deep); margin-bottom: 6px; }
.standards dd { margin: 0; color: var(--muted); font-size: .95rem; line-height: 1.45; }

/* ---------- Audience list ---------- */
.audience { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.audience div { padding: 22px 22px 0 0; }
.audience div + div { padding-left: 22px; border-left: 1px solid var(--line); }
.audience h3 { font-size: 1.08rem; }
.audience p { color: var(--muted); font-size: .97rem; margin: 0; }
@media (max-width: 900px) {
  .audience { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .audience div:nth-child(3) { padding-left: 0; border-left: 0; }
  .audience div { padding-bottom: 22px; }
}
@media (max-width: 520px) {
  .audience { grid-template-columns: 1fr; }
  .audience div, .audience div + div { padding: 18px 0; border-left: 0; border-bottom: 1px solid var(--line); }
}

/* ---------- Engineer note ---------- */
.engineer { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 24px; align-items: start; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: var(--radius); padding: clamp(20px, 3vw, 32px); }
.engineer__mark { width: 120px; height: 120px; border-radius: 50%; background: var(--ink); color: var(--gold); display: grid; place-items: center; font: 700 2.2rem/1 var(--f-head); letter-spacing: .02em; }
.engineer h3 { margin-bottom: .2em; }
.engineer .role { color: var(--gold-deep); font: 500 .82rem/1.4 var(--f-mono); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 1em; }
.engineer p { color: var(--muted); }
@media (max-width: 560px) { .engineer { grid-template-columns: 1fr; } .engineer__mark { width: 84px; height: 84px; font-size: 1.6rem; } }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 44px 20px 0; position: relative;
  font: 600 1.1rem/1.35 var(--f-head); letter-spacing: -0.005em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font: 500 1.5rem/1 var(--f-mono); color: var(--gold-deep); }
.faq details[open] summary::after { content: "–"; }
.faq details > div { padding: 0 0 20px; color: var(--muted); max-width: 72ch; }
.faq details > div p:last-child { margin-bottom: 0; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(12px, 2vw, 20px); }
.gallery figure { margin: 0; }
.gallery img { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.gallery figcaption { font-size: .9rem; color: var(--muted); margin-top: 8px; }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .gallery { grid-template-columns: 1fr; } }

/* ---------- Note / callout ---------- */
.note { border: 1px dashed var(--line); background: #fbfaf7; border-radius: var(--radius); padding: 16px 18px; color: var(--muted); font-size: .97rem; }
.note strong { color: var(--text); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--gold); color: var(--ink); padding: clamp(40px, 6vw, 64px) 0; }
.cta-band__inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 28px 48px; align-items: center; }
.cta-band h2 { margin-bottom: .3em; }
.cta-band p { margin: 0; font-size: 1.1rem; max-width: 56ch; }
.cta-band__actions { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.cta-band__phone { color: var(--ink); font-weight: 600; text-align: center; }
.cta-band :focus-visible { outline-color: var(--ink); }
@media (max-width: 820px) { .cta-band__inner { grid-template-columns: 1fr; } .cta-band__actions { align-items: flex-start; } .cta-band__phone { text-align: left; } }

/* ---------- Contact / form ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.form { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 36px); }
.form fieldset { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.form legend { font: 600 1.05rem/1.3 var(--f-head); margin-bottom: 10px; padding: 0; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label, .field .label { font-weight: 600; font-size: .97rem; }
.field .hint { font-size: .88rem; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 11px 13px; font: 400 1rem/1.4 var(--f-body); color: var(--text);
  background: #fff; border: 1.5px solid #b9b5ab; border-radius: var(--radius);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid var(--supply-soft); outline-offset: 0; border-color: var(--supply); }
.field [aria-invalid="true"] { border-color: #b3261e; }
.field .error { color: #b3261e; font-size: .9rem; font-weight: 500; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span { display: inline-flex; align-items: center; min-height: 44px; padding: 9px 14px; border: 1.5px solid #b9b5ab; border-radius: 999px; font-size: .96rem; font-weight: 500; background: #fff; cursor: pointer; }
.chips input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); }
.chips input:focus-visible + span { outline: 3px solid var(--supply); outline-offset: 2px; }
.form__actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 8px; }
.form__small { font-size: .88rem; color: var(--muted); margin: 14px 0 0; }
.form-status { margin-top: 18px; padding: 18px 20px; border-radius: var(--radius); border: 1px solid var(--line); background: #fbfaf7; }
.form-status[data-state="ok"] { border-color: #6d9a6f; background: #f2f8f1; }
.form-status h3 { font-size: 1.15rem; }
.form-status .btn-row { margin-top: 12px; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.contact-card { background: var(--ink); color: var(--on-ink); border-radius: var(--radius); padding: clamp(20px, 3vw, 30px); }
.contact-card h2 { font-size: 1.4rem; }
.contact-card dl { margin: 0; display: grid; gap: 16px; }
.contact-card dt { font: 500 .7rem/1.3 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin-bottom: 2px; }
.contact-card dd { margin: 0; font-weight: 500; }
.contact-card a { color: var(--on-ink); }
.contact-card + .contact-card, .contact-card + .note { margin-top: 16px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-ink-muted); padding: clamp(48px, 6vw, 72px) 0 28px; font-size: .97rem; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.site-footer h2 { font: 500 .74rem/1.3 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin: 0 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--on-ink); text-decoration: none; }
.site-footer a:hover { color: var(--gold-soft); text-decoration: underline; }
.site-footer__logo { height: 40px; width: auto; margin-bottom: 16px; }
.site-footer p { margin: 0 0 .5em; }
.site-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--ink-3); font-size: .88rem; }
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ---------- Floating call/WhatsApp bar on phones ---------- */
.quickbar { display: none; }
@media (max-width: 640px) {
  .quickbar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); background: rgba(21, 23, 26, .97); border-top: 1px solid var(--ink-3);
  }
  .quickbar .btn { min-height: 46px; padding: .6em .8em; font-size: .97rem; }
  body { padding-bottom: 66px; }
}

/* ---------- Utilities ---------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.mt-l { margin-top: clamp(28px, 4vw, 48px); }
.center { text-align: center; }
.muted { color: var(--muted); }
.maxw { max-width: 760px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

@media print {
  .site-header, .site-footer, .cta-band, .quickbar, .form { display: none; }
  body { background: #fff; }
}

/* ---------- Late additions ---------- */
@media (min-width: 961px) { .steps--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pair img { border-radius: var(--radius); width: 100%; }
.schematic.on-ink { background: var(--ink); }
