/* ============================================================
   STANTECH CIVIL ENGINEERING LTD
   Industrial construction design system
   Direction: condensed display type, charcoal + cream bands,
   hazard-stripe dividers, outlined numerals, pill CTAs.
   Brand: deep purple #5B2D85 · charcoal · cream · safety yellow
   Display: Big Shoulders Display · Body: Plus Jakarta Sans
   ============================================================ */

:root {
  /* Brand */
  --purple: #5b2d85;
  --purple-deep: #3d1c5c;
  --purple-bright: #7b4fa8;
  --purple-soft: #f2ecf8;
  --purple-line: #ddd0ec;

  /* Industrial neutrals */
  --ink: #0d0f11;
  --ink-2: #15181c;
  --ink-3: #1e2227;
  --ink-4: #2a2f36;
  --cream: #efede6;
  --cream-2: #f7f5f0;
  --paper: #ffffff;

  /* Accent */
  --yellow: #ffd02e;
  --yellow-deep: #e8b800;
  --yellow-soft: #fff6d6;

  /* Text */
  --text: #1a1a1a;
  --body: #4d4d4d;
  --muted: #7a7a7a;
  --on-dark: #f2f0ea;
  --on-dark-muted: #a8a8a8;

  /* Lines */
  --line: #e2ded4;
  --line-strong: #cfc9bb;
  --line-dark: rgba(255, 255, 255, .13);

  /* Type */
  --display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Metrics */
  --max: 1280px;
  --gutter: 32px;
  --radius: 6px;
  --radius-lg: 14px;
  --shadow: 0 2px 8px rgba(13, 15, 17, .06), 0 18px 44px rgba(13, 15, 17, .08);
  --shadow-lg: 0 4px 14px rgba(13, 15, 17, .1), 0 30px 70px rgba(13, 15, 17, .16);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--purple); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--purple-deep); }

/* ---------- Display typography ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--display);
  font-weight: 800;
  color: var(--text);
  line-height: .94;
  letter-spacing: .005em;
  margin: 0 0 .45em;
  text-transform: uppercase;
}

h1 { font-size: clamp(2.9rem, 7vw, 5.6rem); font-weight: 900; }
h2 { font-size: clamp(2.1rem, 4.4vw, 3.6rem); font-weight: 800; }
h3 { font-size: clamp(1.35rem, 2.1vw, 1.85rem); font-weight: 700; line-height: 1.02; }
h4 { font-size: 1.15rem; font-weight: 700; letter-spacing: .02em; }
h5 { font-size: .95rem; font-weight: 700; letter-spacing: .04em; }

p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

strong { color: var(--text); font-weight: 700; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 900px; }

/* ---------- Eyebrow ---------- */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 20px;
}
.kicker::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--yellow);
  flex: none;
}
.kicker.on-dark { color: var(--yellow); }
.kicker.on-dark::before { background: var(--yellow); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 16px 28px;
  border-radius: 100px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
  white-space: nowrap;
  line-height: 1;
}
.btn svg { width: 15px; height: 15px; flex: none; transition: transform .2s ease; }
.btn:hover svg { transform: translateX(3px); }

.btn-primary { background: var(--purple); color: #fff; }
.btn-primary:hover { background: var(--purple-deep); color: #fff; }

.btn-yellow { background: var(--yellow); color: var(--ink); }
.btn-yellow:hover { background: var(--yellow-deep); color: var(--ink); }

.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: var(--ink-3); color: #fff; }

.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }

.btn-outline { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-outline:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

.btn-sm { padding: 12px 20px; font-size: .7rem; }

/* ---------- Utility bar ---------- */
.utility {
  background: var(--ink);
  color: var(--on-dark-muted);
  font-size: .74rem;
  letter-spacing: .04em;
  border-bottom: 1px solid rgba(255, 255, 255, .07);
}
.utility .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 42px;
  flex-wrap: wrap;
}
.utility-left, .utility-right { display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.utility a { color: var(--on-dark-muted); }
.utility a:hover { color: var(--yellow); }
.utility .u-item { display: inline-flex; align-items: center; gap: 8px; }
.utility .u-item svg { width: 13px; height: 13px; color: var(--yellow); flex: none; }
.utility .socials { display: flex; gap: 14px; }
.utility .socials a { font-weight: 700; letter-spacing: .1em; text-transform: uppercase; font-size: .68rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(255, 255, 255, .97);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 84px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-mark {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--purple);
  color: #fff;
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1;
  border-radius: 4px;
  flex: none;
}
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text);
}
.brand-sub {
  font-size: .58rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 4px;
}

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--text);
  padding: 10px 14px;
  border-radius: 100px;
  transition: background .18s ease, color .18s ease;
}
.nav a:hover { background: var(--cream); color: var(--purple); }
.nav a.active { color: var(--purple); }
.nav a.active::after {
  content: "";
  display: block;
  height: 2px;
  background: var(--yellow);
  margin-top: 4px;
  border-radius: 2px;
}
.nav a.nav-cta {
  background: var(--purple);
  color: #fff;
  margin-left: 10px;
  padding: 13px 22px;
}
.nav a.nav-cta:hover { background: var(--purple-deep); color: #fff; }
.nav a.nav-cta::after { display: none; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 10px;
  cursor: pointer;
}
.nav-toggle span { width: 24px; height: 2px; background: var(--text); display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg, rgba(13, 15, 17, .94) 0%, rgba(13, 15, 17, .82) 42%, rgba(13, 15, 17, .45) 100%),
    linear-gradient(0deg, rgba(13, 15, 17, .7), transparent 55%);
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr);
  gap: 60px;
  align-items: end;
  padding: clamp(70px, 9vw, 130px) 0 clamp(56px, 7vw, 96px);
}
.hero h1 { color: #fff; margin-bottom: .3em; }
.hero h1 em {
  font-style: normal;
  color: var(--yellow);
  display: block;
}
.hero-lead {
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  color: #d5d3cc;
  max-width: 56ch;
  margin-bottom: 34px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* Hero stat card */
.hero-card {
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .16);
  backdrop-filter: blur(14px);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.hero-card .hc-num {
  font-family: var(--display);
  font-size: 3.4rem;
  font-weight: 900;
  line-height: .9;
  color: var(--yellow);
  display: block;
}
.hero-card .hc-label {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #cfcdc6;
  margin-top: 8px;
}
.hero-card .hc-divider { height: 1px; background: rgba(255, 255, 255, .16); margin: 22px 0; }
.avatar-stack { display: flex; align-items: center; }
.avatar-stack img {
  width: 40px; height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--ink);
  margin-left: -12px;
}
.avatar-stack img:first-child { margin-left: 0; }
.hero-card .hc-note {
  font-size: .78rem;
  color: #b9b7b0;
  margin-top: 12px;
  line-height: 1.5;
}

/* ---------- Hazard stripe ---------- */
.hazard {
  height: 14px;
  background: repeating-linear-gradient(
    -45deg,
    var(--yellow) 0 18px,
    var(--ink) 18px 36px
  );
}

/* ---------- Stats strip ---------- */
.stats-strip {
  background: var(--ink);
  color: #fff;
  border-top: 1px solid rgba(255, 255, 255, .08);
}
.stats-strip .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding-top: 0;
  padding-bottom: 0;
}
.stats-strip > .wrap > div {
  padding: 40px 26px;
  border-left: 1px solid rgba(255, 255, 255, .1);
}
.stats-strip > .wrap > div:first-child { border-left: 0; padding-left: 0; }
.stats-strip strong {
  display: block;
  font-family: var(--display);
  font-size: clamp(2.2rem, 3.4vw, 3.1rem);
  font-weight: 900;
  line-height: .9;
  color: #fff;
}
.stats-strip span {
  display: block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  margin-top: 10px;
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 8vw, 110px) 0; }
.section.tight { padding: clamp(48px, 5vw, 72px) 0; }
.section.alt { background: var(--cream); }
.section.cream2 { background: var(--cream-2); }
.section.dark { background: var(--ink); color: var(--on-dark); }
.section.dark h1, .section.dark h2, .section.dark h3, .section.dark h4 { color: #fff; }
.section.dark p { color: #b9b7b0; }
.section.purple { background: var(--purple); color: #fff; }
.section.purple h1, .section.purple h2, .section.purple h3, .section.purple h4 { color: #fff; }
.section.purple p { color: #e0d3ee; }

.section-head { max-width: 760px; margin-bottom: clamp(36px, 4vw, 56px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .kicker { justify-content: center; }
.section-head p { font-size: 1.02rem; color: var(--body); }
.section.dark .section-head p { color: #b9b7b0; }
.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: clamp(36px, 4vw, 56px);
}
.section-head-row .section-head { margin-bottom: 0; }

/* ---------- Split (about) ---------- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5vw, 76px);
  align-items: center;
}
.split-media { position: relative; }
.split-media > img {
  width: 100%;
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
  border-radius: var(--radius-lg);
}
.split-media .float-img {
  position: absolute;
  right: -18px;
  bottom: -34px;
  width: 46%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--radius-lg);
  border: 6px solid var(--paper);
  box-shadow: var(--shadow-lg);
}
.section.alt .split-media .float-img { border-color: var(--cream); }

.badge-rot {
  position: absolute;
  left: -14px;
  top: 26px;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--display);
  font-size: .95rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 10px 18px;
  transform: rotate(-4deg);
  box-shadow: 0 8px 20px rgba(13, 15, 17, .18);
}

/* ---------- Feature list ---------- */
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.feature-list li { display: flex; gap: 14px; align-items: flex-start; }
.feature-list .tick {
  flex: none;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  background: var(--purple-soft);
  color: var(--purple);
  border-radius: 50%;
  font-size: .8rem;
  font-weight: 800;
  margin-top: 2px;
}
.section.dark .feature-list .tick { background: rgba(255, 208, 46, .16); color: var(--yellow); }
.feature-list strong { display: block; font-size: .98rem; margin-bottom: 2px; }
.section.dark .feature-list strong,
.section.purple .feature-list strong { color: #fff; }
.feature-list p { font-size: .9rem; margin: 0; color: var(--muted); }
.section.dark .feature-list p { color: #a8a8a8; }
.section.purple .feature-list p { color: #e0d3ee; }
.section.dark .card strong, .section.purple .card strong { color: #fff; }

/* ---------- Service cards (image, outlined number) ---------- */
.svc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.svc-card {
  position: relative;
  display: block;
  min-height: 380px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: #fff;
  isolation: isolate;
  background: var(--ink-3);
}
.svc-card img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
  transition: transform .6s cubic-bezier(.2, .7, .3, 1);
}
.svc-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(13, 15, 17, .18) 0%, rgba(13, 15, 17, .55) 48%, rgba(13, 15, 17, .95) 100%);
}
.svc-card:hover img { transform: scale(1.06); }
.svc-card:hover { color: #fff; }
.svc-body { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding: 28px; }
.svc-num {
  position: absolute;
  top: 22px; left: 26px;
  font-family: var(--display);
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.5px var(--yellow);
  opacity: .95;
}
.svc-card h3 { color: #fff; margin-bottom: 10px; font-size: 1.5rem; }
.svc-card p { color: #cfcdc6; font-size: .9rem; margin-bottom: 20px; }
.svc-arrow {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  display: grid; place-items: center;
  transition: transform .25s ease, background .25s ease;
}
.svc-arrow svg { width: 17px; height: 17px; }
.svc-card:hover .svc-arrow { transform: translateX(4px); background: #fff; }

/* ---------- Marquee ---------- */
.marquee {
  background: var(--yellow);
  color: var(--ink);
  overflow: hidden;
  border-top: 1px solid rgba(13, 15, 17, .12);
  border-bottom: 1px solid rgba(13, 15, 17, .12);
}
.marquee-track {
  display: flex;
  gap: 0;
  width: max-content;
  animation: marquee 34s linear infinite;
}
.marquee-track span {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 16px 26px;
  display: inline-flex;
  align-items: center;
  gap: 26px;
  white-space: nowrap;
}
.marquee-track span::after { content: "◆"; font-size: .7rem; opacity: .55; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee-track { animation: none; } }

/* ---------- Project cards ---------- */
.proj-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.proj-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  color: var(--text);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.proj-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); color: var(--text); }
.proj-media { position: relative; aspect-ratio: 16 / 11; overflow: hidden; background: var(--cream); }
.proj-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.proj-card:hover .proj-media img { transform: scale(1.05); }
.proj-tag {
  position: absolute;
  left: 14px; top: 14px;
  background: var(--yellow);
  color: var(--ink);
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 100px;
}
.proj-body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.proj-loc {
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 10px;
}
.proj-body h3 { font-size: 1.3rem; margin-bottom: 10px; }
.proj-body p { font-size: .9rem; color: var(--muted); margin-bottom: 18px; }
.proj-meta {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: .78rem;
  color: var(--muted);
}
.proj-meta strong { color: var(--text); font-weight: 800; }

/* ---------- Numbered service rows ---------- */
.svc-rows { border-top: 1px solid var(--line); }
.svc-row {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 24px;
  align-items: center;
  padding: 26px 8px;
  border-bottom: 1px solid var(--line);
  transition: background .2s ease, padding-left .2s ease;
}
.svc-row:hover { background: var(--cream-2); padding-left: 18px; }
.svc-row .s-num {
  font-family: var(--display);
  font-size: 2.1rem;
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.2px var(--purple);
}
.svc-row .s-name {
  font-family: var(--display);
  font-size: clamp(1.1rem, 1.7vw, 1.45rem);
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text);
  line-height: 1.1;
}
.svc-row .s-tag {
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--purple);
  background: var(--purple-soft);
  padding: 7px 14px;
  border-radius: 100px;
  white-space: nowrap;
}

/* ---------- Generic cards ---------- */
.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.card:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.card .num {
  font-family: var(--display);
  font-size: 2.4rem;
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.2px var(--purple);
  display: block;
  margin-bottom: 16px;
}
.card h3 { font-size: 1.25rem; margin-bottom: 10px; }
.card p { font-size: .92rem; color: var(--muted); margin: 0; }
.section.dark .card { background: var(--ink-2); border-color: var(--line-dark); }
.section.dark .card p { color: #a8a8a8; }
.section.dark .card .num { -webkit-text-stroke-color: var(--yellow); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.page-hero .ph-bg { position: absolute; inset: 0; z-index: -2; }
.page-hero .ph-bg img { width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.page-hero::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(100deg, rgba(13, 15, 17, .95) 0%, rgba(13, 15, 17, .8) 55%, rgba(13, 15, 17, .55) 100%);
}
.page-hero .wrap { padding-top: clamp(56px, 7vw, 96px); padding-bottom: clamp(48px, 6vw, 80px); }
.page-hero h1 { color: #fff; margin-bottom: .25em; max-width: 20ch; }
.page-hero .ph-lead { color: #cfcdc6; max-width: 62ch; font-size: 1.05rem; margin-bottom: 0; }
.crumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  margin-bottom: 22px;
}
.crumbs a { color: var(--on-dark-muted); }
.crumbs a:hover { color: var(--yellow); }
.crumbs .sep { color: var(--yellow); }

/* ---------- Spec strip ---------- */
.spec-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--ink);
  color: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.spec-strip > div { padding: 30px 26px; border-left: 1px solid rgba(255, 255, 255, .1); }
.spec-strip > div:first-child { border-left: 0; }
.spec-strip strong {
  display: block;
  font-family: var(--display);
  font-size: 2.1rem;
  font-weight: 900;
  line-height: .95;
  color: var(--yellow);
}
.spec-strip span {
  display: block;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  margin-top: 8px;
}

/* ---------- Product cards ---------- */
.prod-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .25s ease, border-color .25s ease, transform .25s ease;
}
.prod-card:hover { box-shadow: var(--shadow); border-color: var(--line-strong); transform: translateY(-3px); }
.prod-media {
  aspect-ratio: 4 / 3;
  background: var(--cream-2);
  display: grid;
  place-items: center;
  padding: 26px;
  border-bottom: 1px solid var(--line);
}
.prod-media img { max-height: 100%; width: auto; object-fit: contain; }
.prod-body { padding: 24px; flex: 1; display: flex; flex-direction: column; }
.prod-idx {
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 8px;
}
.prod-body h3 { font-size: 1.2rem; margin-bottom: 14px; }
.prod-body ul { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 8px; }
.prod-body li {
  position: relative;
  padding-left: 18px;
  font-size: .86rem;
  color: var(--muted);
  line-height: 1.5;
}
.prod-body li::before {
  content: "";
  position: absolute;
  left: 0; top: .55em;
  width: 6px; height: 6px;
  background: var(--yellow);
  border-radius: 1px;
}
.prod-brand {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text);
}

/* ---------- PPE range cards ---------- */
.range-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.range-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.range-card.wide { grid-column: span 2; }
.range-media { aspect-ratio: 4 / 3; background: var(--cream-2); overflow: hidden; }
.range-card.wide .range-media { aspect-ratio: 16 / 8; }
.range-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.range-card:hover .range-media img { transform: scale(1.04); }
.range-body { padding: 24px; }
.range-body h3 { font-size: 1.2rem; margin-bottom: 8px; }
.range-body p { font-size: .9rem; color: var(--muted); margin: 0; }

/* ---------- Quote form ---------- */
.quote-section { background: var(--cream); }
.quote-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, .75fr);
  gap: 32px;
  align-items: start;
}
.quote-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 3vw, 42px);
  box-shadow: var(--shadow);
}
.quote-form { display: grid; gap: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field label, .field-label {
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text);
}
.req { color: var(--purple); }
.field-hint { font-size: .8rem; color: var(--muted); margin: -2px 0 4px; }
.form-field input[type="text"],
.form-field input[type="email"],
.form-field input[type="tel"],
.form-field textarea,
.form-field select {
  width: 100%;
  font-family: var(--sans);
  font-size: .95rem;
  color: var(--text);
  background: var(--cream-2);
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.form-field textarea { resize: vertical; min-height: 120px; }
.form-field input:focus, .form-field textarea:focus, .form-field select:focus {
  outline: none;
  border-color: var(--purple);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(91, 45, 133, .12);
}
.form-field.invalid input, .form-field.invalid textarea { border-color: #c0392b; background: #fdf3f2; }
.field-error { display: none; font-size: .76rem; color: #c0392b; font-weight: 600; }
.form-field.invalid .field-error { display: block; }

/* Item rows with per-item quantity */
.item-list { display: grid; gap: 8px; margin-top: 4px; }
.item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  background: var(--cream-2);
  transition: border-color .18s ease, background .18s ease;
}
.item-row.is-on { border-color: var(--purple); background: var(--purple-soft); }
.item-row.is-bad { border-color: #c0392b; background: #fdf3f2; }
.item-check { display: flex; align-items: center; gap: 12px; cursor: pointer; flex: 1; min-width: 0; }
.item-check input[type="checkbox"] {
  width: 18px; height: 18px;
  accent-color: var(--purple);
  flex: none;
  cursor: pointer;
}
.item-name { font-size: .9rem; font-weight: 600; color: var(--text); }
.item-qty { display: flex; align-items: center; gap: 8px; flex: none; }
.item-qty input[type="number"] {
  width: 78px;
  font-family: var(--sans);
  font-size: .9rem;
  font-weight: 700;
  color: var(--text);
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--radius);
  padding: 9px 10px;
  text-align: center;
  transition: border-color .18s ease, opacity .18s ease;
}
.item-qty input[type="number"]:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(91, 45, 133, .12); }
.item-qty input[type="number"]:disabled { opacity: .45; background: var(--cream); cursor: not-allowed; }
.qty-unit { font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); min-width: 34px; }
.items-summary { font-size: .8rem; font-weight: 700; color: var(--purple); margin-top: 4px; }
#items-field.invalid .field-error { display: block; }

.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; }

.form-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.form-actions .btn[disabled] { opacity: .6; cursor: wait; }
.form-status { display: none; padding: 16px 18px; border-radius: var(--radius); font-size: .9rem; line-height: 1.6; }
.form-status.show { display: block; }
.form-status.error { background: #fdf3f2; border: 1px solid #e8b4ae; color: #8e2b20; }
.form-status:not(.error) { background: var(--purple-soft); border: 1px solid var(--purple-line); color: var(--purple-deep); }
.form-status a { font-weight: 800; text-decoration: underline; }

.quote-aside {
  background: var(--ink);
  color: var(--on-dark);
  border-radius: var(--radius-lg);
  padding: clamp(26px, 3vw, 36px);
  position: sticky;
  top: 104px;
}
.quote-aside h3 { color: #fff; font-size: 1.3rem; margin-bottom: 20px; }
.quote-aside ol { list-style: none; margin: 0 0 26px; padding: 0; display: grid; gap: 18px; counter-reset: step; }
.quote-aside ol li { display: flex; gap: 14px; counter-increment: step; }
.quote-aside ol li::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--display);
  font-size: 1.1rem;
  font-weight: 900;
  color: var(--yellow);
  flex: none;
  line-height: 1.3;
}
.quote-aside ol strong { display: block; color: #fff; font-size: .92rem; margin-bottom: 2px; }
.quote-aside ol p { font-size: .84rem; color: #a8a8a8; margin: 0; }
.quote-aside .aside-contact { border-top: 1px solid var(--line-dark); padding-top: 22px; display: grid; gap: 12px; }
.quote-aside .aside-contact a { color: #fff; font-weight: 700; font-size: .92rem; display: flex; align-items: center; gap: 10px; }
.quote-aside .aside-contact a:hover { color: var(--yellow); }
.quote-aside .aside-contact svg { width: 15px; height: 15px; color: var(--yellow); flex: none; }

/* ---------- CTA band ---------- */
.cta {
  background: var(--purple);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  right: -80px; top: -80px;
  width: 320px; height: 320px;
  border: 40px solid rgba(255, 255, 255, .06);
  border-radius: 50%;
}
.cta .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  flex-wrap: wrap;
  padding-top: clamp(48px, 6vw, 76px);
  padding-bottom: clamp(48px, 6vw, 76px);
  position: relative;
}
.cta h2 { color: #fff; margin-bottom: .2em; }
.cta p { color: #e0d3ee; margin: 0; max-width: 52ch; }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Testimonials ---------- */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.tcard {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 30px;
  display: flex;
  flex-direction: column;
}
.tcard .stars { color: var(--yellow-deep); letter-spacing: 3px; font-size: .9rem; margin-bottom: 16px; }
.tcard blockquote { margin: 0 0 22px; font-size: .98rem; color: var(--text); line-height: 1.65; }
.tcard .who { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.tcard .who img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.tcard .who strong { display: block; font-size: .9rem; }
.tcard .who span { font-size: .78rem; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.contact-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.contact-card .ci {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--purple-soft);
  color: var(--purple);
  display: grid; place-items: center;
  flex: none;
}
.contact-card .ci svg { width: 19px; height: 19px; }
.contact-card h4 { font-size: .72rem; letter-spacing: .16em; color: var(--muted); margin-bottom: 8px; }
.contact-card p, .contact-card a { font-size: .95rem; font-weight: 600; color: var(--text); margin: 0; display: block; }
.contact-card a:hover { color: var(--purple); }

.detail-table { width: 100%; border-collapse: collapse; }
.detail-table tr { border-bottom: 1px solid var(--line); }
.detail-table tr:last-child { border-bottom: 0; }
.detail-table th {
  text-align: left;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 16px 0;
  width: 42%;
  vertical-align: top;
}
.detail-table td { padding: 16px 0; font-size: .92rem; font-weight: 600; color: var(--text); }

/* ---------- Leadership ---------- */
.lead-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.lead-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px;
  text-align: left;
}
.lead-card .initials {
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 900;
  margin-bottom: 18px;
}
.lead-card h3 { font-size: 1.1rem; margin-bottom: 4px; }
.lead-card p { font-size: .8rem; color: var(--muted); margin: 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--ink);
  color: var(--on-dark-muted);
  position: relative;
  overflow: hidden;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding: clamp(56px, 6vw, 84px) 0 48px;
}
.site-footer .brand-name { color: #fff; }
.site-footer .brand-sub { color: #8a8a8a; }
.site-footer .brand-mark { background: var(--purple); }
.footer-about { font-size: .9rem; color: #a8a8a8; margin-top: 20px; max-width: 34ch; }
.site-footer h4 {
  color: #fff;
  font-family: var(--sans);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.site-footer ul a, .site-footer ul li { color: #a8a8a8; font-size: .88rem; }
.site-footer ul a:hover { color: var(--yellow); }
.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding: 24px 0 30px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  font-size: .76rem;
  color: #7a7a7a;
}
.footer-wordmark {
  font-family: var(--display);
  font-size: clamp(4rem, 15vw, 13rem);
  font-weight: 900;
  line-height: .8;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 255, 255, .1);
  text-align: center;
  padding-bottom: 10px;
  user-select: none;
  pointer-events: none;
}

/* ---------- Misc ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-2 { margin-top: 18px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 44px; }
.small { font-size: .86rem; }
.lead { font-size: 1.06rem; color: var(--body); }
.divider { height: 1px; background: var(--line); margin: 40px 0; }
.section.dark .divider { background: var(--line-dark); }

.band-yellow { background: var(--yellow); color: var(--ink); }
.band-yellow .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  padding-top: clamp(40px, 5vw, 60px);
  padding-bottom: clamp(40px, 5vw, 60px);
}
.band-yellow h2 { color: var(--ink); margin: 0; }
.band-yellow p { color: #4a3d00; margin: 6px 0 0; }

/* ---------- Product catalogue blocks (PPE page) ---------- */
.cat-block { margin-bottom: clamp(44px, 5vw, 68px); }
.cat-block:last-child { margin-bottom: 0; }
.cat-head {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 16px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--line);
}
.cat-head .cat-num {
  font-family: var(--display);
  font-size: 1.9rem;
  font-weight: 900;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.2px var(--purple);
  flex: none;
}
.cat-head h3 {
  font-size: clamp(1.3rem, 2.4vw, 1.85rem);
  margin: 0;
  flex: 1;
}
.cat-head .cat-count {
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
  flex: none;
}
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }

/* ---------- Specification tables ---------- */
.spec-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
  min-width: 620px;
}
.spec-table thead th {
  text-align: left;
  font-family: var(--sans);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--purple);
  padding: 0 18px 14px 0;
  border-bottom: 2px solid var(--purple);
  vertical-align: bottom;
}
.spec-table tbody td {
  padding: 16px 18px 16px 0;
  border-bottom: 1px solid var(--line);
  color: var(--body);
  vertical-align: top;
  line-height: 1.55;
}
.spec-table tbody td:first-child {
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}
.spec-table tbody td:nth-child(3) { white-space: nowrap; font-weight: 600; }
.spec-table tbody tr:last-child td { border-bottom: 0; }
.section.dark .spec-table thead th { color: var(--yellow); border-bottom-color: var(--yellow); }
.section.dark .spec-table tbody td { color: #b9b7b0; border-bottom-color: var(--line-dark); }
.section.dark .spec-table tbody td:first-child { color: #fff; }
.section.alt .spec-table tbody tr:hover { background: rgba(13, 15, 17, .025); }

/* ---------- Standards grid ---------- */
.std-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.std-card {
  background: var(--paper);
  padding: 26px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.std-card strong {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1;
  color: var(--purple);
  letter-spacing: .01em;
}
.std-card span { font-size: .84rem; color: var(--muted); line-height: 1.55; }

/* ---------- Callout ---------- */
.callout {
  margin-top: 28px;
  padding: 22px 26px;
  background: var(--purple-soft);
  border-left: 4px solid var(--purple);
  border-radius: var(--radius);
}
.callout p { margin: 0; font-size: .92rem; color: var(--purple-deep); }
.callout strong { color: var(--purple-deep); }
.section.alt .callout { background: var(--paper); }

/* ---------- Gallery strip ---------- */
.gallery-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}
.gallery-strip figure {
  margin: 0;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.gallery-strip img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  padding: 12px;
  background: var(--paper);
  transition: transform .5s ease;
}
.gallery-strip figure:hover img { transform: scale(1.06); }
.gallery-strip figcaption {
  padding: 10px 12px;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text);
  border-top: 1px solid var(--line);
}

/* ---------- Grouped item list in the quote form ---------- */
.item-list { gap: 22px; }
.item-group { display: grid; gap: 8px; }
.item-group-title {
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--purple);
  padding-bottom: 4px;
  border-bottom: 1px solid var(--purple-line);
}

/* ============================================================
   RESPONSIVE SYSTEM  (rewritten for phone-first correctness)
   Breakpoints: 1080 (tablet landscape) · 900 (tablet/mobile nav)
                640 (phone) · 420 (small phone)
   ============================================================ */

/* ---------- Mobile navigation chrome (hidden on desktop) ---------- */
.nav-head { display: none; }
.nav-backdrop { display: none; }
.nav-close { display: none; }

/* ---------- 1080px : tablet landscape ---------- */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; align-items: start; }
  .hero-card { max-width: 460px; }
  .svc-grid, .proj-grid, .quote-grid, .range-grid, .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .range-card.wide { grid-column: span 2; }
  .std-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-strip { grid-template-columns: repeat(3, 1fr); }
  .lead-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .quote-layout { grid-template-columns: 1fr; }
  .quote-aside { position: static; }
  .split { grid-template-columns: 1fr; }
  .split-media .float-img { width: 40%; right: 0; bottom: -24px; }
}

/* ---------- 900px : mobile navigation + tablet ---------- */
@media (max-width: 900px) {
  :root { --gutter: 20px; }

  /* --- Drawer: display:none when closed so it can never widen the page --- */
  .nav {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(340px, 88vw);
    max-width: 100vw;
    background: var(--paper);
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 0 18px 28px;
    box-shadow: -24px 0 70px rgba(13, 15, 17, .22);
    z-index: 95;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  .nav.open {
    display: flex;
    animation: navSlideIn .28s cubic-bezier(.2, .7, .3, 1) both;
  }
  @keyframes navSlideIn {
    from { transform: translateX(100%); }
    to   { transform: translateX(0); }
  }

  .nav-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 0 16px;
    margin-bottom: 8px;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    background: var(--paper);
    z-index: 2;
  }
  .nav-head-title {
    font-family: var(--sans);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .nav-close {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    flex: none;
    background: var(--cream);
    border: 0;
    border-radius: 50%;
    color: var(--text);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .nav-close svg { width: 20px; height: 20px; }
  .nav-close:active { background: var(--line); }

  .nav a {
    display: flex;
    align-items: center;
    min-height: 50px;
    padding: 12px 14px;
    font-size: .88rem;
    letter-spacing: .06em;
    border-radius: var(--radius);
    border-bottom: 1px solid var(--line);
  }
  .nav a:last-of-type { border-bottom: 0; }
  .nav a.active { background: var(--purple-soft); }
  .nav a.active::after { display: none; }
  .nav a.nav-cta {
    margin: 16px 0 0;
    min-height: 52px;
    justify-content: center;
    text-align: center;
    border-bottom: 0;
    border-radius: var(--radius);
    font-size: .82rem;
  }

  .nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(13, 15, 17, .55);
    backdrop-filter: blur(2px);
    z-index: 94;
    animation: fadeIn .22s ease both;
  }
  .nav-backdrop[hidden] { display: none; }
  @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

  /* Scroll lock while the drawer is open */
  html.nav-open, html.nav-open body { overflow: hidden; }

  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    padding: 0;
    margin-left: auto;
    border-radius: var(--radius);
    z-index: 96;
    -webkit-tap-highlight-color: transparent;
  }
  .nav-toggle span { width: 24px; height: 2px; }
  .nav-toggle:active { background: var(--cream); }

  .header-inner { min-height: 72px; gap: 12px; }

  /* Utility bar */
  .utility .wrap { justify-content: center; gap: 10px; }
  .utility-left .u-item:nth-child(2) { display: none; }
  .utility-right { display: none; }
  .utility .u-item { font-size: .66rem; }

  /* Stats + spec strips */
  .stats-strip .wrap { grid-template-columns: repeat(2, 1fr); }
  .stats-strip > .wrap > div { padding: 26px 16px; }
  .stats-strip > .wrap > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .stats-strip > .wrap > div:nth-child(odd) { padding-left: 0; }
  .spec-strip { grid-template-columns: repeat(2, 1fr); }
  .spec-strip > div:nth-child(3) { border-left: 0; }

  /* Grids */
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .svc-row { grid-template-columns: 56px 1fr; gap: 14px; }
  .svc-row .s-tag { display: none; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .section-head-row { flex-direction: column; align-items: flex-start; gap: 18px; }

  /* Prevent grid/flex children from forcing width */
  .contact-grid > *, .grid-2 > *, .grid-3 > *, .grid-4 > *,
  .split > *, .quote-layout > *, .footer-grid > *, .lead-grid > *,
  .svc-grid > *, .proj-grid > *, .cat-grid > *, .range-grid > *,
  .std-grid > *, .gallery-strip > * { min-width: 0; }

  /* Tap targets */
  .site-footer ul a, .footer-bottom a, .contact-card a, .utility a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .site-footer ul { gap: 0; }
  .site-footer ul a { padding: 4px 0; }
  .footer-bottom a { padding: 4px 0; }

  /* Tables scroll cleanly */
  .spec-table-wrap { max-width: 100%; overflow-x: auto; }
  .detail-table { table-layout: fixed; }
  .detail-table th { width: 40%; }
  .detail-table td { word-break: break-word; }

  /* Media */
  .split-media .float-img { right: 0; bottom: -18px; width: 44%; }
  .badge-rot { left: 0; }
  .band-yellow .wrap { flex-direction: column; align-items: flex-start; }
}

/* ---------- 640px : phone ---------- */
@media (max-width: 640px) {
  :root { --gutter: 18px; }

  body { font-size: 15.5px; line-height: 1.65; }

  h1 { font-size: clamp(2.35rem, 10.5vw, 3.1rem); line-height: .96; }
  h2 { font-size: clamp(1.85rem, 8vw, 2.4rem); line-height: .98; }
  h3 { font-size: clamp(1.25rem, 5.4vw, 1.5rem); }
  h4 { font-size: 1.02rem; }

  .section { padding: 52px 0; }
  .section.tight { padding: 40px 0; }
  .section-head { margin-bottom: 30px; }
  .section-head p { font-size: .96rem; }

  .kicker { font-size: .72rem; letter-spacing: .18em; margin-bottom: 14px; }
  .kicker::before { width: 20px; }

  /* Hero */
  .hero-inner { padding: 52px 0 44px; gap: 30px; }
  .hero-lead { font-size: .98rem; margin-bottom: 26px; }
  .hero-actions { gap: 10px; }
  .hero-actions .btn, .cta-actions .btn { flex: 1 1 100%; justify-content: center; }
  .hero-card { max-width: 100%; padding: 22px; }
  .hero-card .hc-num { font-size: 2.8rem; }
  .hero-card .hc-divider { margin: 18px 0; }
  .avatar-stack img { width: 36px; height: 36px; }

  .hazard { height: 10px; }

  /* Stats */
  .stats-strip > .wrap > div { padding: 22px 14px; }
  .stats-strip strong { font-size: 2rem; }
  .stats-strip span { font-size: .66rem; letter-spacing: .12em; margin-top: 8px; }

  /* Grids collapse to one column */
  .svc-grid, .proj-grid, .quote-grid, .range-grid, .grid-2, .grid-3, .grid-4,
  .lead-grid, .cat-grid, .std-grid, .contact-grid { grid-template-columns: 1fr; }
  .gallery-strip { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .range-card.wide { grid-column: span 1; }
  .range-card.wide .range-media { aspect-ratio: 4 / 3; }

  /* Cards */
  .card { padding: 22px; }
  .card[style*="padding:34px"] { padding: 22px !important; }
  .svc-card { min-height: 300px; }
  .svc-body { padding: 22px; }
  .svc-card h3 { font-size: 1.35rem; }
  .svc-card p { font-size: .88rem; margin-bottom: 16px; }
  .lead-card { padding: 22px; }

  /* Section heads */
  .cat-head { flex-wrap: wrap; gap: 8px 12px; padding-bottom: 12px; margin-bottom: 20px; }
  .cat-head .cat-num { font-size: 1.5rem; }
  .cat-head .cat-count { font-size: .62rem; }

  /* Tables */
  .spec-table { font-size: .82rem; min-width: 520px; }
  .spec-table thead th { font-size: .62rem; padding: 0 12px 10px 0; }
  .spec-table tbody td { padding: 12px 12px 12px 0; }
  .spec-table tbody td:first-child { white-space: normal; }

  /* Detail table stacks into label/value blocks */
  .detail-table, .detail-table tbody, .detail-table tr,
  .detail-table th, .detail-table td { display: block; width: 100%; }
  .detail-table tr { padding: 13px 0; border-bottom: 1px solid var(--line); }
  .detail-table tr:last-child { border-bottom: 0; }
  .detail-table th { padding: 0 0 3px; width: auto; font-size: .64rem; }
  .detail-table td { padding: 0; font-size: .9rem; }

  /* Buttons */
  .btn { min-height: 48px; padding: 14px 22px; font-size: .74rem; }
  .btn-sm { min-height: 44px; padding: 12px 18px; }

  /* Quote form */
  .quote-card { padding: 20px; }
  .quote-form { gap: 16px; }
  .form-field input[type="text"], .form-field input[type="email"],
  .form-field input[type="tel"], .form-field textarea, .form-field select {
    font-size: 16px; /* stops iOS zoom-on-focus */
    padding: 13px 14px;
    min-height: 48px;
  }
  .form-field textarea { min-height: 110px; }
  .form-field label, .field-label { font-size: .68rem; }

  .item-list { gap: 16px; }
  .item-group { gap: 7px; }
  .item-group-title { font-size: .62rem; letter-spacing: .13em; }
  .item-row {
    flex-wrap: wrap;
    gap: 10px;
    padding: 12px;
    min-height: 56px;
  }
  .item-check { flex: 1 1 100%; gap: 11px; min-height: 30px; }
  .item-check input[type="checkbox"] { width: 22px; height: 22px; }
  .item-name { font-size: .9rem; line-height: 1.35; }
  .item-qty {
    width: 100%;
    justify-content: space-between;
    gap: 10px;
    padding-left: 33px;
  }
  .item-qty input[type="number"] {
    width: auto;
    flex: 1 1 auto;
    max-width: none;
    min-height: 44px;
    font-size: 16px;
    padding: 10px 12px;
  }
  .qty-unit { min-width: 40px; font-size: .66rem; }
  .items-summary { font-size: .78rem; }
  .form-actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .form-actions .btn { width: 100%; justify-content: center; }
  .form-status { font-size: .86rem; padding: 14px 16px; }

  /* Quote aside */
  .quote-aside { padding: 24px; }
  .quote-aside h3 { font-size: 1.2rem; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .site-footer { padding-top: 48px; }
  .site-footer h4 { font-size: .66rem; margin-bottom: 10px; }
  .site-footer ul a, .site-footer ul li { font-size: .9rem; }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 20px 0 26px;
    font-size: .74rem;
  }
  .footer-wordmark { font-size: clamp(3.2rem, 17vw, 5rem); -webkit-text-stroke-width: .6px; }

  /* Misc */
  .divider { margin: 28px 0; }
  .mt-3 { margin-top: 22px; }
  .mt-4 { margin-top: 30px; }
  .callout { padding: 18px 20px; }
  .callout p { font-size: .88rem; }
  .std-card { padding: 20px; }
  .std-card strong { font-size: 1.3rem; }
  .gallery-strip figcaption { font-size: .62rem; padding: 8px 10px; }
  .marquee-track span { font-size: .8rem; }
}

/* ---------- 420px : small phone ---------- */
@media (max-width: 420px) {
  :root { --gutter: 16px; }
  h1 { font-size: clamp(2.1rem, 10vw, 2.6rem); }
  h2 { font-size: clamp(1.7rem, 7.6vw, 2.1rem); }
  .section { padding: 44px 0; }
  .hero-inner { padding: 44px 0 38px; }
  .stats-strip > .wrap > div { padding: 18px 10px; }
  .stats-strip strong { font-size: 1.75rem; }
  .stats-strip span { font-size: .6rem; }
  .card { padding: 18px; }
  .quote-card { padding: 16px; }
  .item-row { padding: 10px; }
  .item-qty { padding-left: 0; }
  .gallery-strip { grid-template-columns: 1fr; }
  .footer-wordmark { font-size: 3rem; }
}

/* ============================================================
   HEAVY DUTY EQUIPMENT PAGE
   Variant chips on machine cards + the per-group note.
   ============================================================ */
.eq-variants {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 14px;
}
.eq-variants span {
  display: inline-flex;
  align-items: center;
  font-size: .64rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--purple);
  background: var(--purple-soft);
  border: 1px solid var(--purple-line);
  border-radius: 100px;
  padding: 4px 10px;
  line-height: 1.2;
  white-space: nowrap;
}
.section.dark .eq-variants span {
  color: var(--yellow);
  background: rgba(255, 208, 46, .1);
  border-color: rgba(255, 208, 46, .28);
}
.eq-note {
  margin: 22px 0 0;
  padding: 16px 20px;
  border-left: 3px solid var(--yellow);
  background: var(--cream-2);
  font-size: .92rem;
  color: var(--body);
  line-height: 1.6;
}
.eq-note:last-child { margin-bottom: 0; }

@media (max-width: 900px) {
  .eq-variants span { font-size: .7rem; padding: 5px 11px; }
  .eq-note { font-size: .95rem; padding: 14px 16px; }
}
@media (max-width: 640px) {
  .eq-variants { gap: 5px; margin-bottom: 12px; }
  .cat-head { flex-wrap: wrap; gap: 8px 12px; }
  .cat-head .cat-count { flex: 0 0 100%; white-space: normal; }
}

/* ------------------------------------------------------------
   Equipment cards: the machine shots are native 16:9, so the
   4:3 catalogue frame would letterbox them. Give this page its
   own ratio so the plant fills the frame edge to edge.
   ------------------------------------------------------------ */
.eq-page .prod-media {
  aspect-ratio: 16 / 9;
  padding: 0;
  background: #fff;
  overflow: hidden;
}
.eq-page .prod-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.eq-page .prod-media { border-bottom: 1px solid var(--line); }

/* ---------- Real logo (original brand mark) ---------- */
.brand-logo {
  height: 62px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
}
.site-footer .brand-logo--footer {
  height: 74px;
  max-width: 220px;
  opacity: .95;
}
@media (max-width: 900px) {
  .brand-logo { height: 50px; max-width: 160px; }
  .site-footer .brand-logo--footer { height: 62px; max-width: 190px; }
}
@media (max-width: 640px) {
  .brand-logo { height: 44px; max-width: 140px; }
  .site-footer .brand-logo--footer { height: 54px; max-width: 160px; }
}

/* ---------- Developer credit ---------- */
.footer-bottom .dev-credit { color: #7a7a7a; }
.footer-bottom .dev-credit a { color: #a8a8a8; font-weight: 700; }
.footer-bottom .dev-credit a:hover { color: var(--yellow); }

/* ============================================================
   MOBILE POLISH PASS — overflow guards, legible micro-type,
   comfortable tap targets
   ============================================================ */
@media (max-width: 900px) {
  /* Flex/grid children must be allowed to shrink */
  .contact-card { min-width: 0; }
  .contact-card > div { min-width: 0; flex: 1 1 auto; }
  .contact-card p, .contact-card a {
    overflow-wrap: anywhere;
    word-break: break-word;
  }
  .contact-card a { min-height: 44px; display: flex; align-items: center; }

  /* Breadcrumbs: comfortable tap height */
  .crumbs { flex-wrap: wrap; row-gap: 2px; }
  .crumbs a { display: inline-flex; align-items: center; min-height: 40px; }

  /* Micro-type floor: nothing below 11.5px */
  .stats-strip span { font-size: .72rem; }
  .proj-loc { font-size: .72rem; }
  .proj-tag { font-size: .7rem; }
  .site-footer h4 { font-size: .72rem; }
  .cat-head .cat-count { font-size: .68rem; }
  .gallery-strip figcaption { font-size: .7rem; }
  .qty-unit { font-size: .7rem; }
  .item-group-title { font-size: .68rem; }
  .footer-bottom { font-size: .78rem; }
  .utility .u-item { font-size: .7rem; }
  .kicker { font-size: .74rem; }
  .spec-table thead th { font-size: .68rem; }
  .std-card span { font-size: .86rem; }
  .field-hint { font-size: .82rem; }
  .field-error { font-size: .8rem; }
  .items-summary { font-size: .82rem; }
  .hero-card .hc-label { font-size: .74rem; }
  .hero-card .hc-note { font-size: .82rem; }
  .svc-num { font-size: .8rem; }
  .brand-sub { font-size: .62rem; }
}

@media (max-width: 640px) {
  /* Checkbox rows: the whole label is the tap target */
  .item-check { min-height: 44px; }
  .item-check input[type="checkbox"] { width: 24px; height: 24px; }

  /* Long words / emails never push the page wide */
  body, p, li, td, th, h1, h2, h3, h4, a, span { overflow-wrap: break-word; }
  .contact-card a, .site-footer a, .footer-bottom span { overflow-wrap: anywhere; }

  /* Tables: keep the scroll affordance visible */
  .spec-table-wrap {
    position: relative;
    border-radius: var(--radius);
    box-shadow: inset -14px 0 14px -14px rgba(13, 15, 17, .22);
  }

  /* Section heads breathe */
  .section-head-row { gap: 14px; }
  .section-head-row .btn { width: 100%; justify-content: center; }

  /* Hero card sits flush */
  .hero-card { border-radius: var(--radius); }

  /* Footer wordmark never overflows */
  .footer-wordmark { overflow: hidden; }
}

/* ============================================================
   MOBILE FINAL PASS — tap targets & micro-type floor
   ============================================================ */
@media (max-width: 900px) {
  /* Leadership / contact card links become full-width tap rows */
  .card p > a[href^="tel:"],
  .card p > a[href^="mailto:"] {
    display: flex;
    align-items: center;
    min-height: 44px;
    font-size: .95rem;
    overflow-wrap: anywhere;
  }
  /* The " / " separator between two numbers becomes a quiet divider */
  .card p > a[href^="tel:"] + a[href^="tel:"]::before { content: none; }

  /* Spec strip + stat labels */
  .spec-strip span, .spec-strip strong { font-size: .74rem; }
  .spec-strip strong { font-size: 1.5rem; }

  /* Detail table labels */
  .detail-table th { font-size: .7rem; }

  /* Breadcrumbs */
  .crumbs, .crumbs a { font-size: .74rem; }

  /* Any remaining micro labels */
  .proj-meta, .proj-meta span, .range-meta, .range-meta span { font-size: .72rem; }
  .std-card strong { font-size: 1.35rem; }
  .callout p { font-size: .9rem; }
  .quote-aside ol p { font-size: .86rem; }
  .quote-aside ol strong { font-size: .94rem; }
  .site-footer ul a, .site-footer ul li { font-size: .9rem; }
  .footer-bottom { font-size: .8rem; }
}

@media (max-width: 640px) {
  /* Two phone numbers in one paragraph: stack them */
  .card p > a[href^="tel:"] { width: 100%; }
  .card p:has(> a[href^="tel:"]) { display: grid; gap: 0; }
  .card p > a[href^="tel:"] + a[href^="tel:"] { border-top: 1px solid var(--line); }

  /* Detail table labels a touch larger on phone */
  .detail-table th { font-size: .68rem; letter-spacing: .1em; }
  .detail-table td { font-size: .92rem; }

  /* Spec strip stacks to 2 columns with readable labels */
  .spec-strip { grid-template-columns: repeat(2, 1fr); }
  .spec-strip > div { padding: 18px 12px; }
  .spec-strip strong { font-size: 1.4rem; }
  .spec-strip span { font-size: .72rem; line-height: 1.35; }
}

/* ============================================================
   MOBILE TYPE FLOOR — every label at least 12px on a phone
   ============================================================ */
@media (max-width: 900px) {
  .proj-tag { font-size: .75rem; padding: 7px 13px; }
  .proj-loc { font-size: .75rem; }
  .prod-idx { font-size: .75rem; }
  .prod-brand { font-size: .75rem; }
  .cat-head .cat-count { font-size: .75rem; }
  .detail-table th { font-size: .75rem; }
  .spec-table thead th { font-size: .75rem; }
  .item-group-title { font-size: .75rem; }
  .qty-unit { font-size: .75rem; }
  .gallery-strip figcaption { font-size: .75rem; }
  .site-footer h4 { font-size: .75rem; }
  .stats-strip span { font-size: .75rem; }
  .spec-strip span { font-size: .75rem; }
  .crumbs, .crumbs a { font-size: .78rem; }
  .kicker { font-size: .78rem; }
  .brand-sub { font-size: .68rem; }
  .svc-num { font-size: .82rem; }
  .hero-card .hc-label { font-size: .78rem; }
  .field-hint { font-size: .85rem; }
  .items-summary { font-size: .85rem; }
  .footer-bottom { font-size: .82rem; }
  .utility .u-item { font-size: .75rem; }
  .std-card span { font-size: .88rem; }
  .quote-aside ol p { font-size: .88rem; }
  .callout p { font-size: .92rem; }
  .proj-body p, .range-body p, .prod-body li { font-size: .92rem; }
}

@media (max-width: 640px) {
  .proj-tag { font-size: .76rem; }
  .prod-idx, .prod-brand { font-size: .76rem; }
  .detail-table th { font-size: .72rem; }
  .spec-table thead th { font-size: .72rem; }
  .item-group-title { font-size: .72rem; }
  .qty-unit { font-size: .76rem; }
  .stats-strip span { font-size: .72rem; }
  .spec-strip span { font-size: .74rem; }
  .site-footer h4 { font-size: .74rem; }
  .footer-bottom { font-size: .8rem; }
  .kicker { font-size: .76rem; }
}

/* Form labels on phone: 12px floor */
@media (max-width: 900px) {
  .form-field label, .field-label { font-size: .75rem; }
}

/* ============================================================
   NAV LAYERING FIX — the hamburger must never sit above the
   open drawer (it was intercepting taps on the close button)
   ============================================================ */
@media (max-width: 900px) {
  .nav-toggle { z-index: 90; }
  html.nav-open .nav-toggle {
    opacity: 0;
    pointer-events: none;
    visibility: hidden;
  }
  .nav { z-index: 95; }
  .nav-backdrop { z-index: 94; }
  .nav-close { position: relative; z-index: 3; }
}

/* ============================================================
   CRITICAL FIX — backdrop-filter on .site-header creates a
   containing block for position:fixed descendants, which trapped
   the drawer and backdrop inside the 72px header. Removing it on
   mobile lets the drawer size to the viewport.
   ============================================================ */
@media (max-width: 900px) {
  .site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    background: #fff;
  }
  .nav, .nav-backdrop {
    /* belt and braces: size to the visual viewport */
    top: 0;
    bottom: 0;
    height: 100%;
    max-height: 100vh;
    max-height: 100dvh;
  }
  .nav-backdrop { height: 100vh; height: 100dvh; }
}

/* ============================================================
   SPEC TABLES → STACKED CARDS ON PHONES
   No horizontal scrolling: each row becomes a labelled block.
   ============================================================ */
@media (max-width: 700px) {
  .spec-table-wrap {
    overflow-x: visible;
    box-shadow: none;
    border-radius: 0;
  }
  .spec-table {
    min-width: 0;
    width: 100%;
    font-size: .92rem;
    display: block;
  }
  .spec-table thead { display: none; }
  .spec-table tbody { display: block; }

  .spec-table tbody tr {
    display: block;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 4px 16px;
    margin-bottom: 12px;
  }
  .spec-table tbody tr:last-child { margin-bottom: 0; }

  .spec-table tbody td {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
    white-space: normal !important;
    line-height: 1.55;
  }
  .spec-table tbody td:last-child { border-bottom: 0; }

  /* The label, from data-label */
  .spec-table tbody td::before {
    content: attr(data-label);
    display: block;
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
    color: var(--purple);
    margin-bottom: 4px;
  }
  .spec-table tbody td:first-child {
    font-family: var(--display);
    font-size: 1.15rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .01em;
    color: var(--text);
    padding-top: 14px;
  }
  .spec-table tbody td:first-child::before { color: var(--muted); }

  /* Dark sections keep their palette */
  .section.dark .spec-table tbody tr {
    background: var(--ink-3);
    border-color: var(--line-dark);
  }
  .section.dark .spec-table tbody td { border-bottom-color: var(--line-dark); }
  .section.dark .spec-table tbody td::before { color: var(--yellow); }
  .section.dark .spec-table tbody td:first-child { color: #fff; }
  .section.dark .spec-table tbody td:first-child::before { color: var(--on-dark-muted); }
}

/* ============================================================
   CONTACT PAGE PHONE FIXES
   ============================================================ */
@media (max-width: 900px) {
  /* Hide the " / " between two phone numbers; the stacked rows
     already read as separate numbers */
  .tel-sep { display: none; }

  /* Email addresses: keep them on one line by shrinking slightly
     rather than breaking mid-word */
  .contact-card a[href^="mailto:"] {
    font-size: .88rem;
    letter-spacing: -.01em;
    overflow-wrap: normal;
    word-break: normal;
  }
}

@media (max-width: 420px) {
  .contact-card a[href^="mailto:"] { font-size: .82rem; }
}

/* Contact cards: give the text column more room on phones */
@media (max-width: 900px) {
  .contact-card { padding: 20px; gap: 14px; }
  .contact-card .ci { width: 40px; height: 40px; flex: none; }
  .contact-card .ci svg { width: 17px; height: 17px; }
  .contact-card a[href^="mailto:"] { font-size: .84rem; }
}
@media (max-width: 420px) {
  .contact-card { padding: 16px; gap: 12px; }
  .contact-card .ci { width: 36px; height: 36px; }
  .contact-card a[href^="mailto:"] { font-size: .78rem; }
}

/* ---------- WordPress menu markup ---------- */
.nav .nav-list,
.nav ul {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav .nav-list li { margin: 0; }
.nav .nav-list a { display: block; }
@media (max-width: 900px) {
  .nav .nav-list,
  .nav ul { flex-direction: column; align-items: stretch; gap: 2px; width: 100%; }
  .nav .nav-list li { width: 100%; }
  .nav .nav-list a { min-height: 50px; display: flex; align-items: center; }
}
