/* ==========================================================================
   M&B ASSEMBLY CORPORATION, a design concept by KWA Digital
   --------------------------------------------------------------------------
   THE IDEA, in one line:
   the site should look like the thing the customer is buying: a clean,
   dimensioned, inspected engineering document.

   So the visual system is borrowed from the machine shop itself:

   - DYKEM BLUE       the layout fluid machinists spray on steel before
                      scribing. It is the accent everywhere.
   - DIMENSION LINES  section eyebrows sit between arrowed extension lines,
                      like a callout on a drawing.
   - RULER TICKS      section dividers are graduated scales, not hairlines.
   - TITLE BLOCK      every page footer is set as a drawing title block:
                      DWG NO / SHEET n OF 4 / REV. That is also where the
                      concept disclaimer lives, styled honestly.
   - THE DRO          the hero runs a live digital readout with a toolpath
                      being cut, because a machine shop's homepage should
                      machine something.

   No stock photography. The current site leans on watermarked stock imagery;
   until there is a real photo shoot on the floor, drawn technical graphics
   are more honest and look better.

   Plain HTML + CSS + one small JS file. No frameworks, no build step.
   ========================================================================== */

/* ---------- fonts (self-hosted, variable) ---------- */
@font-face {
  font-family: 'Archivo';
  src: url('../fonts/archivo-latin-standard-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}

/* ---------- tokens ---------- */
:root {
  /* surfaces */
  --paper:   #f3f4f0;   /* machined paper, slightly cool */
  --card:    #fbfbf8;
  --coal:    #14161b;   /* anodized black */
  --coal-2:  #1b1e26;
  --coal-3:  #232733;

  /* ink on paper */
  --ink:     #15171c;
  --ink-2:   #3d424d;
  --ink-3:   #5b616e;   /* muted, AA on paper */
  --line:    #d7d9d0;
  --line-2:  #c3c6bb;

  /* ink on coal */
  --chalk:   #edeee9;
  --chalk-2: #b9bdc7;
  --line-d:  #2b2f3a;

  /* brand */
  --blue:    #2038c8;   /* dykem layout fluid */
  --blue-2:  #1a2da3;   /* hover */
  --blue-d:  #6d85ff;   /* dykem on dark surfaces */
  --orange:  #e8600e;   /* inspection stamp, accents only, never small text */

  --sans: 'Archivo', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'IBM Plex Mono', 'Consolas', 'Courier New', monospace;

  --w: min(1180px, 92vw);
  --r: 3px;             /* machined edge: near-square */
}

/* ---------- reset-ish ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; background: var(--paper); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-2); }

.wrap { width: var(--w); margin-inline: auto; }

/* ---------- type ---------- */
h1, h2, h3 { font-weight: 800; line-height: 1.08; letter-spacing: -0.022em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.35rem); font-weight: 850; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); }
h3 { font-size: 1.22rem; letter-spacing: -0.012em; }

.lead { font-size: clamp(1.1rem, 1.7vw, 1.28rem); line-height: 1.6; color: var(--ink-2); max-width: 56ch; }
.small { font-size: 0.92rem; color: var(--ink-3); }

.mono {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* dimension-line eyebrow:  |<--  01 · LABEL  -->|  */
.dim {
  display: flex; align-items: center; gap: 0.9rem;
  font-family: var(--mono); font-size: 0.75rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--blue); white-space: nowrap;
  margin-bottom: 1.1rem;
}
@media (max-width: 480px) { .dim { font-size: 0.64rem; gap: 0.6rem; } }
.dim::before, .dim::after {
  content: ''; height: 1px; background: currentColor; flex: 1;
  max-width: 72px; position: relative; opacity: 0.85;
}
/* arrowheads + extension ticks */
.dim::before { clip-path: none; }
.dim i { font-style: normal; opacity: 0.6; }
.dim.left::before { display: none; }
.dim.left { justify-content: flex-start; }
.dim.left::after { flex: 0 1 72px; }
.on-dark .dim, .dim.on-dark { color: var(--blue-d); }

/* ---------- ruler divider ---------- */
.ruler {
  height: 14px;
  background:
    repeating-linear-gradient(90deg,
      var(--line-2) 0, var(--line-2) 1px, transparent 1px, transparent 12px),
    repeating-linear-gradient(90deg,
      var(--line-2) 0, var(--line-2) 1px, transparent 1px, transparent 60px);
  background-size: auto 7px, auto 14px;
  background-repeat: repeat-x;
  background-position: bottom left, bottom left;
  border-bottom: 1px solid var(--line-2);
}
.on-dark .ruler, .ruler.dark {
  border-color: var(--line-d);
  background:
    repeating-linear-gradient(90deg, var(--line-d) 0, var(--line-d) 1px, transparent 1px, transparent 12px),
    repeating-linear-gradient(90deg, var(--line-d) 0, var(--line-d) 1px, transparent 1px, transparent 60px);
  background-size: auto 7px, auto 14px;
  background-repeat: repeat-x;
  background-position: bottom left, bottom left;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font-family: var(--mono); font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; text-decoration: none;
  padding: 0.95rem 1.5rem; border-radius: var(--r);
  border: 1px solid transparent; cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
  min-height: 2.9rem;
}
.btn-fill { background: var(--blue); color: #fff; }
.btn-fill:hover { background: var(--blue-2); color: #fff; }
.btn-ghost { border-color: var(--line-2); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.on-dark .btn-ghost { border-color: #3a3f4d; color: var(--chalk); }
.on-dark .btn-ghost:hover { border-color: var(--chalk); color: var(--chalk); }
.btn-paper { background: var(--paper); color: var(--blue-2); }
.btn-paper:hover { background: #fff; color: var(--blue-2); }
.btn:active { transform: translateY(1px); }
.btn .arr { transition: transform 0.15s ease; }
.btn:hover .arr { transform: translateX(3px); }

/* ==========================================================================
   HEADER
   ========================================================================== */
.topbar {
  background: var(--coal); color: var(--chalk-2);
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.14em;
  text-transform: uppercase;
}
.topbar .wrap {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: 0.5rem 0; white-space: nowrap; overflow: hidden;
}
.topbar b { color: var(--chalk); font-weight: 500; }
.topbar .tb-r { color: var(--chalk-2); }
.topbar .tb-short { display: none; }
@media (max-width: 720px) {
  .topbar .tb-r { display: none; }
  .topbar .tb-full { display: none; }
  .topbar .tb-short { display: inline; }
}

header.site {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 92%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1.5rem; padding: 0.85rem 0;
}
.brand { display: flex; align-items: center; gap: 0.8rem; text-decoration: none; color: var(--ink); }
.brand .mk {
  width: 44px; height: 44px; flex: none;
}
.brand .bt { line-height: 1.05; }
.brand .bt b { display: block; font-size: 1.28rem; font-weight: 850; letter-spacing: -0.02em; }
.brand .bt span {
  display: block; font-family: var(--mono); font-size: 0.6rem;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--ink-3);
  margin-top: 2px;
}

nav.main { display: flex; align-items: center; gap: 1.6rem; }
nav.main a {
  font-family: var(--mono); font-size: 0.76rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-2); text-decoration: none; padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
}
nav.main a:hover { color: var(--ink); }
nav.main a[aria-current="page"] { color: var(--blue); border-bottom-color: var(--blue); }

.hdr-cta { display: flex; align-items: center; gap: 1.1rem; }
.hdr-tel {
  font-family: var(--mono); font-size: 0.82rem; letter-spacing: 0.04em;
  color: var(--ink); text-decoration: none; white-space: nowrap;
  padding: 0.55rem 0.2rem; display: inline-block;
}
.hdr-tel:hover { color: var(--blue); }
.hdr-cta .btn { padding: 0.7rem 1.1rem; min-height: 0; }

/* mobile nav */
.nav-toggle {
  display: none; background: none; border: 1px solid var(--line-2);
  border-radius: var(--r); padding: 0.55rem 0.7rem; cursor: pointer; color: var(--ink);
}
.nav-toggle svg { width: 20px; height: 20px; }
@media (max-width: 480px) {
  header.site .wrap { gap: 0.7rem; }
  .hdr-cta .btn { padding: 0.55rem 0.65rem; font-size: 0.66rem; letter-spacing: 0.06em; white-space: nowrap; }
  .brand { gap: 0.55rem; }
  .brand .bt span { letter-spacing: 0.12em; font-size: 0.53rem; }
  .brand .mk { width: 36px; height: 36px; }
}
@media (max-width: 920px) {
  nav.main {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 0.5rem 4vw 1rem;
  }
  nav.main.open { display: flex; }
  nav.main a { padding: 0.85rem 0.25rem; border-bottom: 1px solid var(--line); font-size: 0.85rem; }
  nav.main a[aria-current="page"] { border-bottom-color: var(--line); }
  .nav-toggle { display: inline-flex; }
  .hdr-tel { display: none; }
}

/* ==========================================================================
   HERO (index)
   ========================================================================== */
.hero {
  background: var(--coal); color: var(--chalk);
  border-bottom: 1px solid var(--line-d);
  position: relative; overflow: hidden;
}
.hero::before {
  /* faint blueprint grid */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    repeating-linear-gradient(90deg, rgba(109,133,255,0.05) 0 1px, transparent 1px 56px),
    repeating-linear-gradient(0deg,  rgba(109,133,255,0.05) 0 1px, transparent 1px 56px);
}
.hero .wrap {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
  padding: clamp(3.2rem, 7vw, 5.8rem) 0 clamp(2.6rem, 5vw, 4.2rem);
}
.hero h1 { color: #fff; margin: 0.2rem 0 1.2rem; }
.hero h1 em { font-style: normal; color: var(--blue-d); }
.hero .lead { color: var(--chalk-2); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.8rem; }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line-d); border: 1px solid var(--line-d);
  margin-top: clamp(2.2rem, 4vw, 3.4rem);
  border-radius: var(--r); overflow: hidden;
}
.hero-stats .st { background: var(--coal-2); padding: 1rem 1.1rem 0.9rem; }
.hero-stats b {
  display: block; font-family: var(--mono); font-weight: 500;
  font-size: clamp(1.05rem, 1.7vw, 1.4rem); letter-spacing: 0.02em; color: #fff;
  white-space: nowrap;
}
.hero-stats span {
  display: block; font-family: var(--mono); font-size: 0.62rem;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--chalk-2);
  margin-top: 0.35rem;
}
.hero-stats .st:first-child b { color: var(--blue-d); }
@media (max-width: 640px) { .hero-stats { grid-template-columns: 1fr 1fr; } }

/* the DRO machine card */
.dro {
  background: var(--coal-2); border: 1px solid var(--line-d);
  border-radius: var(--r); overflow: hidden;
  box-shadow: 0 30px 60px -30px rgba(0,0,0,0.6);
}
.dro-head {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 0.7rem 1rem; border-bottom: 1px solid var(--line-d);
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--chalk-2);
}
.dro-head b { color: var(--chalk); font-weight: 500; }
.dro-head .live { display: inline-flex; align-items: center; gap: 0.45rem; color: var(--blue-d); }
.dro-head .live i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--blue-d);
  animation: blink 1.4s steps(2, start) infinite;
}
@keyframes blink { 50% { opacity: 0.15; } }

.dro canvas { width: 100%; height: auto; background: var(--coal-2); }

.dro-read {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--line-d); border-top: 1px solid var(--line-d);
}
.dro-read .ax { background: var(--coal); padding: 0.65rem 0.9rem; }
.dro-read .ax span {
  display: block; font-family: var(--mono); font-size: 0.6rem;
  letter-spacing: 0.18em; color: var(--chalk-2); text-transform: uppercase;
}
.dro-read .ax b {
  display: block; font-family: var(--mono); font-weight: 500;
  font-size: 0.98rem; color: var(--blue-d); font-variant-numeric: tabular-nums;
  margin-top: 0.15rem; white-space: nowrap;
}
.dro-foot {
  padding: 0.6rem 1rem; border-top: 1px solid var(--line-d);
  font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--chalk-2);
  display: flex; justify-content: space-between; gap: 1rem;
}
.dro-foot b { color: var(--orange); font-weight: 500; }

@media (max-width: 920px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .dro { max-width: 560px; }
}

/* ==========================================================================
   SECTIONS
   ========================================================================== */
section.band { padding: clamp(3.2rem, 7vw, 5.6rem) 0; }
section.band.tight { padding: clamp(2.4rem, 5vw, 3.8rem) 0; }
.band.dark { background: var(--coal); color: var(--chalk); }
.band.dark h2 { color: #fff; }
.band.dark .lead { color: var(--chalk-2); }
.band.blue { background: var(--blue); color: #fff; }

.sec-head { max-width: 60ch; margin-bottom: clamp(1.8rem, 4vw, 3rem); }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .dim { justify-content: center; }
.sec-head h2 { margin-bottom: 0.9rem; }

/* ---------- cert cards ---------- */
.certs {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
.cert {
  background: var(--card); border: 1px solid var(--line);
  border-top: 3px solid var(--blue);
  border-radius: var(--r); padding: 1.3rem 1.3rem 1.15rem;
  display: flex; flex-direction: column; gap: 0.5rem;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.cert:hover { transform: translateY(-3px); box-shadow: 0 16px 30px -18px rgba(21,23,28,0.35); }
.cert .tag {
  font-family: var(--mono); font-size: 0.62rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--ink-3);
}
.cert h3 { font-size: 1.12rem; }
.cert p { font-size: 0.9rem; color: var(--ink-2); line-height: 1.5; flex: 1; }
.cert a {
  font-family: var(--mono); font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
  display: inline-flex; align-items: center; gap: 0.45rem; margin-top: 0.4rem;
  min-height: 2rem;
}
.cert a:hover { text-decoration: underline; }
@media (max-width: 980px) { .certs { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .certs { grid-template-columns: 1fr; } }

.usa-line {
  margin-top: 1.6rem; display: flex; align-items: center; gap: 0.7rem;
  font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--ink-2);
}
.usa-line .flag { color: var(--blue); }

/* ---------- mission split ---------- */
.split {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(2rem, 5vw, 4.5rem); align-items: start;
}
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }

/* spec sheet (drawing title-block style info card) */
.spec {
  border: 1px solid var(--line-2); border-radius: var(--r);
  background: var(--card); overflow: hidden;
}
.spec-title {
  padding: 0.75rem 1.1rem; background: var(--coal); color: var(--chalk);
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.16em;
  text-transform: uppercase; display: flex; justify-content: space-between; gap: 1rem;
}
.spec-title span { color: var(--chalk-2); }
.spec dl { display: grid; grid-template-columns: 1fr 1fr; }
.spec dl > div {
  padding: 0.85rem 1.1rem; border-top: 1px solid var(--line);
}
.spec dl > div:nth-child(odd) { border-right: 1px solid var(--line); }
.spec dt {
  font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--ink-3);
}
.spec dd { font-family: var(--mono); font-size: 0.9rem; font-weight: 500; margin-top: 0.2rem; }
.spec dd.hl { color: var(--blue); }
@media (max-width: 420px) {
  .spec dl { grid-template-columns: 1fr; }
  .spec dl > div:nth-child(odd) { border-right: 0; }
}

/* ---------- capability tiles ---------- */
.caps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem;
}
.cap {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.4rem 1.35rem 1.3rem; position: relative;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.cap:hover { transform: translateY(-3px); border-color: var(--line-2); box-shadow: 0 16px 30px -18px rgba(21,23,28,0.3); }
.cap .glyph { color: var(--blue); margin-bottom: 0.9rem; }
.cap .glyph svg { width: 34px; height: 34px; }
.cap h3 { margin-bottom: 0.4rem; }
.cap p { font-size: 0.92rem; color: var(--ink-2); line-height: 1.55; }
.cap .inhouse {
  position: absolute; top: 1.05rem; right: 1.05rem;
  font-family: var(--mono); font-size: 0.58rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: #813a06; background: #ffe4cd; border: 1px solid #f0b98c;
  padding: 0.22rem 0.5rem; border-radius: 2px;
}
@media (max-width: 980px) { .caps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .caps { grid-template-columns: 1fr; } }

/* full capability list (capabilities page) */
.capgroup { margin-bottom: clamp(2.2rem, 5vw, 3.4rem); }
.capgroup .dim { margin-bottom: 1.4rem; }
.oplist { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.7rem; }
.op {
  display: flex; align-items: center; gap: 0.8rem;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 0.8rem 1rem; font-weight: 600; font-size: 0.98rem;
}
.op .n {
  font-family: var(--mono); font-size: 0.62rem; font-weight: 500;
  color: var(--ink-3); letter-spacing: 0.08em; flex: none; width: 2rem;
}
.op .ih {
  margin-left: auto; flex: none;
  font-family: var(--mono); font-size: 0.56rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: #813a06; background: #ffe4cd; border: 1px solid #f0b98c;
  padding: 0.18rem 0.45rem; border-radius: 2px;
}
@media (max-width: 880px) { .oplist { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .oplist { grid-template-columns: 1fr; } }

.legend {
  margin-top: 1.2rem; font-size: 0.88rem; color: var(--ink-3);
  display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap;
}
.legend .ih {
  font-family: var(--mono); font-size: 0.56rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: #813a06; background: #ffe4cd; border: 1px solid #f0b98c;
  padding: 0.18rem 0.45rem; border-radius: 2px;
}

/* ---------- industries ---------- */
.inds { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.ind {
  background: var(--coal-2); border: 1px solid var(--line-d); border-radius: var(--r);
  padding: 1.5rem 1.4rem 1.4rem; color: var(--chalk);
  display: flex; flex-direction: column; gap: 0.55rem;
}
.ind .num { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.16em; color: var(--blue-d); }
.ind h3 { color: #fff; }
.ind p { font-size: 0.9rem; color: var(--chalk-2); line-height: 1.55; flex: 1; }
@media (max-width: 980px) { .inds { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .inds { grid-template-columns: 1fr; } }

/* industries page: deep sections */
.ind-row {
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(1.8rem, 4.5vw, 4rem); align-items: start;
  padding: clamp(2rem, 4.5vw, 3.2rem) 0; border-top: 1px solid var(--line);
}
.ind-row:first-of-type { border-top: 0; padding-top: 0; }
.ind-row .k { position: sticky; top: 6.2rem; }
.ind-row h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0.4rem 0 0.8rem; }
.ind-row .fits { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.1rem; }
.fit {
  font-family: var(--mono); font-size: 0.66rem; font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase;
  border: 1px solid var(--line-2); color: var(--ink-2);
  padding: 0.35rem 0.65rem; border-radius: 2px; background: var(--card);
}
@media (max-width: 880px) {
  .ind-row { grid-template-columns: 1fr; }
  .ind-row .k { position: static; }
}

/* ---------- process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; counter-reset: step; }
.step {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--r);
  padding: 1.5rem 1.4rem 1.4rem; position: relative;
}
.step .n {
  font-family: var(--mono); font-weight: 500; font-size: 0.8rem;
  color: var(--blue); letter-spacing: 0.1em; display: block; margin-bottom: 0.7rem;
}
.step h3 { margin-bottom: 0.45rem; }
.step p { font-size: 0.93rem; color: var(--ink-2); line-height: 1.55; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.band.blue .wrap {
  display: grid; grid-template-columns: minmax(0, 1.2fr) auto;
  gap: 2rem; align-items: center;
}
.band.blue h2 { color: #fff; margin-bottom: 0.5rem; }
.band.blue p { color: #d9defc; max-width: 52ch; }
.band.blue .mono-note { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: #b9c2f5; margin-top: 0.9rem; }
@media (max-width: 760px) { .band.blue .wrap { grid-template-columns: 1fr; } }

/* ==========================================================================
   SUBPAGE HERO
   ========================================================================== */
.page-hero { padding: clamp(2.8rem, 6vw, 4.6rem) 0 clamp(2rem, 4vw, 3rem); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); margin-bottom: 1rem; }
.page-hero .lead { max-width: 62ch; }

/* ==========================================================================
   CONTACT
   ========================================================================== */
.contact-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4rem); align-items: start;
}
@media (max-width: 880px) { .contact-grid { grid-template-columns: 1fr; } }

form.rfq { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
form.rfq .full { grid-column: 1 / -1; }
form.rfq label {
  display: block; font-family: var(--mono); font-size: 0.66rem; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-2);
  margin-bottom: 0.4rem;
}
form.rfq label em { color: var(--blue); font-style: normal; }
form.rfq input, form.rfq textarea, form.rfq select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--card); border: 1px solid var(--line-2); border-radius: var(--r);
  padding: 0.8rem 0.95rem;
}
form.rfq input:focus, form.rfq textarea:focus, form.rfq select:focus {
  outline: 2px solid var(--blue); outline-offset: 1px; border-color: var(--blue);
}
form.rfq textarea { min-height: 9.5rem; resize: vertical; }
form.rfq .btn { justify-self: start; }
form.rfq .form-note { font-size: 0.85rem; color: var(--ink-3); }
@media (max-width: 560px) { form.rfq { grid-template-columns: 1fr; } }

.info-card { border: 1px solid var(--line-2); border-radius: var(--r); background: var(--card); overflow: hidden; margin-bottom: 1.2rem; }
.info-card .ic-h {
  padding: 0.7rem 1.1rem; background: var(--coal); color: var(--chalk);
  font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase;
}
.info-card .ic-b { padding: 1.1rem; }
.info-row { display: flex; gap: 0.85rem; align-items: flex-start; padding: 0.45rem 0; }
.info-row svg { width: 18px; height: 18px; flex: none; color: var(--blue); margin-top: 0.2rem; }
.info-row a { color: var(--ink); text-decoration: none; display: inline-block; padding: 0.3rem 0; margin: -0.3rem 0; min-height: 2rem; }
.info-row a:hover { color: var(--blue); }
.info-row .sub { font-size: 0.85rem; color: var(--ink-3); }

.hours { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.hours td { padding: 0.5rem 0; border-top: 1px solid var(--line); }
.hours tr:first-child td { border-top: 0; }
.hours td:last-child { text-align: right; font-family: var(--mono); font-size: 0.85rem; }
.hours .closed td:last-child { color: var(--ink-3); }

.checklist { list-style: none; }
.checklist li { display: flex; gap: 0.7rem; padding: 0.42rem 0; font-size: 0.95rem; color: var(--ink-2); }
.checklist li::before {
  content: ''; flex: none; width: 15px; height: 15px; margin-top: 0.28rem;
  border: 1.5px solid var(--blue); border-radius: 2px;
  background:
    linear-gradient(transparent, transparent) padding-box;
}
.checklist li b { color: var(--ink); font-weight: 650; }

/* ==========================================================================
   FOOTER: engineering drawing title block
   ========================================================================== */
footer.site { background: var(--coal); color: var(--chalk); border-top: 3px solid var(--blue); }
.ft-top { padding: clamp(2.6rem, 5vw, 4rem) 0 2rem; }
.ft-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 2rem; }
.ft-grid h2 {
  font-family: var(--mono); font-size: 0.66rem; font-weight: 500;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--chalk-2);
  margin-bottom: 0.9rem;
}
.ft-grid p, .ft-grid li { font-size: 0.92rem; color: var(--chalk-2); line-height: 1.7; }
.ft-grid ul { list-style: none; }
.ft-grid a { color: var(--chalk); text-decoration: none; display: inline-block; padding: 0.32rem 0; min-height: 2rem; }
.ft-grid a:hover { color: var(--blue-d); }
.ft-brand b { display: block; font-size: 1.25rem; font-weight: 850; color: #fff; letter-spacing: -0.02em; }
.ft-brand span {
  display: block; font-family: var(--mono); font-size: 0.6rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--chalk-2); margin: 0.25rem 0 1rem;
}
@media (max-width: 880px) { .ft-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .ft-grid { grid-template-columns: 1fr; } }

.titleblock {
  border: 1px solid var(--line-d); border-radius: var(--r);
  margin: 1.6rem 0 0; overflow: hidden;
  display: grid; grid-template-columns: repeat(5, auto);
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.06em;
}
.titleblock > div { padding: 0.6rem 1rem; border-right: 1px solid var(--line-d); min-width: 0; }
.titleblock > div:last-child { border-right: 0; }
.titleblock span { display: block; font-size: 0.56rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--chalk-2); }
.titleblock b { display: block; color: var(--chalk); font-weight: 500; margin-top: 0.2rem; white-space: nowrap; }
.titleblock .rev b { color: var(--orange); }
@media (max-width: 880px) {
  .titleblock { grid-template-columns: 1fr 1fr; }
  .titleblock > div { border-top: 1px solid var(--line-d); }
  .titleblock > div:nth-child(-n+2) { border-top: 0; }
  .titleblock > div:nth-child(2n) { border-right: 0; }
  .titleblock b { white-space: normal; }
}

.ft-legal {
  border-top: 1px solid var(--line-d); padding: 1.1rem 0 1.4rem;
  font-size: 0.8rem; color: var(--chalk-2);
}
.ft-legal .wrap { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.ft-legal a { color: var(--chalk-2); display: inline-block; padding: 0.45rem 0.1rem; margin: -0.45rem -0.1rem; }
.ft-legal a:hover { color: var(--chalk); }

/* ==========================================================================
   REVEALS
   ========================================================================== */
.rv { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.rv.in { opacity: 1; transform: none; }
.rv2 { transition-delay: 0.08s; } .rv3 { transition-delay: 0.16s; } .rv4 { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) {
  .rv { opacity: 1; transform: none; transition: none; }
  .dro-head .live i { animation: none; }
}

/* skip link */
.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--blue); color: #fff; padding: 0.7rem 1.1rem;
  font-family: var(--mono); font-size: 0.8rem; text-decoration: none;
}
.skip:focus { left: 0; }

::selection { background: var(--blue); color: #fff; }
