/* ==========================================================================
   NTM — Newport Tool & Machine, Inc.
   Industrial / precision-machining design system — site-wide stylesheet
   ========================================================================== */

/* ----- Fonts ----- */
@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800;900&family=Archivo+Narrow:wght@500;600;700&family=Space+Mono:wght@400;700&display=swap');

/* ----- Design tokens ----- */
:root {
  /* Brand */
  --gold:        #ffd346;
  --gold-deep:   #f5b400;
  --teal:        #0a5a78;
  --teal-bright: #1287b0;
  --teal-deep:   #063b50;

  /* Steel neutrals */
  --ink:         #0c1418;   /* near-black steel */
  --ink-2:       #11201f;
  --steel-900:   #16242b;
  --steel-800:   #1d2f37;
  --steel-700:   #2a3f49;
  --steel-500:   #5d7884;
  --steel-300:   #9fb4bd;
  --steel-100:   #e3eaee;
  --paper:       #f4f6f7;
  --paper-warm:  #eef1f2;
  --white:       #ffffff;

  /* Type */
  --display: 'Archivo', system-ui, sans-serif;
  --cond:    'Archivo Narrow', 'Archivo', sans-serif;
  --mono:    'Space Mono', ui-monospace, monospace;

  /* Layout */
  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --radius: 4px;

  --shadow-lg: 0 24px 60px -24px rgba(6, 30, 40, .45);
  --shadow-md: 0 12px 30px -16px rgba(6, 30, 40, .4);

  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ----- Reset ----- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--display);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }

/* ----- Reusable structure ----- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 8vw, 110px); }
.section--tight { padding-block: clamp(40px, 5vw, 70px); }

.eyebrow {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--teal-bright);
  display: inline-flex;
  align-items: center;
  gap: .7em;
  font-weight: 700;
}
.eyebrow::before {
  content: "";
  width: 26px; height: 2px;
  background: var(--gold);
}
.eyebrow--center { justify-content: center; }

h1, h2, h3, h4 { font-weight: 800; line-height: 1.05; letter-spacing: -.01em; }
h2.heading {
  font-size: clamp(1.9rem, 4vw, 3.1rem);
  margin-top: .35em;
  text-wrap: balance;
}
.lead {
  font-size: clamp(1.05rem, 1.6vw, 1.28rem);
  color: var(--steel-700);
  max-width: 62ch;
  line-height: 1.55;
}

/* ----- Buttons ----- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .6em;
  font-family: var(--cond);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  font-size: 1rem;
  padding: 15px 28px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease);
  position: relative;
}
.btn svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--gold { background: var(--gold); color: var(--ink); box-shadow: 0 8px 24px -10px rgba(245,180,0,.7); }
.btn--gold:hover { background: var(--gold-deep); transform: translateY(-2px); }
.btn--ghost { border-color: var(--steel-500); color: var(--white); }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: var(--teal); transform: translateY(-2px); }
.btn--lg { padding: 18px 34px; font-size: 1.06rem; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.topbar {
  background: var(--ink);
  color: var(--steel-300);
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .04em;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.topbar .wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding-block: 8px;
  flex-wrap: wrap;
}
.topbar a { color: var(--steel-100); transition: color .2s; }
.topbar a:hover { color: var(--gold); }
.topbar .badges { display: flex; gap: 18px; flex-wrap: wrap; }
.topbar .badges span { color: var(--steel-500); }
.topbar .badges b { color: var(--gold); font-family: var(--display); font-weight: 700; }
.topbar .contact { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar .hiring-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--mono);
  font-weight: 700;
  font-size: .68rem;
  letter-spacing: .06em;
  padding: 3px 9px;
  border-radius: 3px;
  text-transform: uppercase;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.topbar .hiring-tag:hover {
  background: var(--gold-deep);
  color: var(--ink);
  transform: translateY(-1px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 23, 28, .92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,.08);
  transition: background .3s;
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 14px;
}
.brand img { height: 42px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-family: var(--cond);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: .95rem;
  color: var(--steel-100);
  padding: 10px 14px;
  border-radius: var(--radius);
  position: relative;
  transition: color .2s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 6px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s var(--ease);
}
.nav a:hover, .nav a.active { color: var(--white); }
.nav a:hover::after, .nav a.active::after { transform: scaleX(1); }
.nav .btn { margin-left: 10px; }
.nav .btn::after { display: none; }
.nav .btn--gold,
.nav .btn--gold:hover { color: var(--ink); }

/* ----- Nav dropdown (Services) ----- */
.nav-dd { position: relative; }
.nav-dd > .nav-dd-toggle { display: inline-flex; align-items: center; gap: 5px; }
.nav-dd .chev { width: 12px; height: 12px; transition: transform .25s var(--ease); }
.nav-dd:hover .chev,
.nav-dd:focus-within .chev { transform: rotate(180deg); }
.nav-dd-menu {
  position: absolute;
  top: 100%; left: -8px;
  min-width: 260px;
  background: rgba(13, 23, 28, .98);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 6px;
  padding: 8px;
  box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden;
  transform: translateY(-6px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
  z-index: 50;
}
.nav-dd:hover .nav-dd-menu,
.nav-dd:focus-within .nav-dd-menu {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-dd-menu a {
  display: block;
  padding: 10px 14px;
  font-family: var(--cond);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .05em;
  font-size: .88rem;
  color: var(--steel-100);
  border-radius: var(--radius);
  transition: background .2s var(--ease), color .2s var(--ease), padding .2s var(--ease);
}
.nav-dd-menu a::after { display: none; }
.nav-dd-menu a:hover,
.nav-dd-menu a.active { background: rgba(255,211,70,.08); color: var(--gold); padding-left: 20px; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px; height: 44px;
  position: relative;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 9px;
  height: 2px; width: 26px;
  background: var(--steel-100);
  transition: transform .3s var(--ease), opacity .2s;
}
.nav-toggle span { top: 21px; }
.nav-toggle span::before { top: -8px; }
.nav-toggle span::after { top: 8px; }
.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-8px) rotate(-45deg); }

/* ==========================================================================
   PAGE HERO (interior pages)
   ========================================================================== */
.page-hero {
  background: var(--ink);
  color: var(--white);
  position: relative;
  overflow: hidden;
  padding-block: clamp(56px, 9vw, 120px);
}
.page-hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 70% 30%, #000 0%, transparent 75%);
  pointer-events: none;
}
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero h1 {
  font-size: clamp(2.2rem, 5.5vw, 4rem);
  margin-top: .3em;
  max-width: 18ch;
  text-wrap: balance;
}
.page-hero .lead { color: var(--steel-300); margin-top: 1.1em; max-width: 60ch; }
.breadcrumb {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .08em;
  color: var(--steel-500);
  text-transform: uppercase;
}
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb span { color: var(--steel-700); margin-inline: 8px; }

/* ----- Per-page hero images ----- */
.page-hero--about,
.page-hero--services,
.page-hero--milling,
.page-hero--turning,
.page-hero--swiss,
.page-hero--edm,
.page-hero--grinding,
.page-hero--finishing,
.page-hero--inspection,
.page-hero--industries,
.page-hero--contact {
  background-color: var(--ink);
  background-blend-mode: normal;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-image:
    linear-gradient(100deg,
      rgba(8,16,20,.97) 0%,
      rgba(8,16,20,.94) 30%,
      rgba(8,16,20,.82) 50%,
      rgba(8,16,20,.45) 78%,
      rgba(10,90,120,.55) 100%),
    var(--hero-bg);
}
.page-hero--about      { --hero-bg: url('../assets/images/vintage-and-cnc.jpg'); }
.page-hero--services   { --hero-bg: url('../assets/images/five-axis-closeup.jpg'); }
.page-hero--milling    { --hero-bg: url('../assets/images/cnc-milling.jpg'); }
.page-hero--turning    { --hero-bg: url('../assets/images/cnc-turning.jpg'); }
.page-hero--swiss      { --hero-bg: url('../assets/images/swiss-screw-parts.jpg'); }
.page-hero--edm        { --hero-bg: url('../assets/images/wire-edm.jpg'); }
.page-hero--grinding   { --hero-bg: url('../assets/images/surface-grinding.jpg'); }
.page-hero--finishing  { --hero-bg: url('../assets/images/blackened-parts.jpg'); }
.page-hero--inspection { --hero-bg: url('../assets/images/cmm-inspection.jpg'); }
.page-hero--industries { --hero-bg: url('../assets/images/shop-with-operator.jpg'); }
.page-hero--contact    { --hero-bg: url('../assets/images/aluminum-housings.jpg'); }

/* ==========================================================================
   HOME — HERO
   ========================================================================== */
.hero {
  position: relative;
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
  padding-block: clamp(48px, 7vw, 92px);
}
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
}
.hero-overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(115deg, rgba(8,16,20,.88) 0%, rgba(8,16,20,.55) 55%, rgba(6,30,40,.72) 100%);
  z-index: 1;
  pointer-events: none;
}
.hero::after {
  /* teal glow */
  content: "";
  position: absolute;
  width: 60vw; height: 60vw;
  right: -18vw; top: -22vw;
  background: radial-gradient(circle, rgba(18,135,176,.28), transparent 62%);
  z-index: 2;
  pointer-events: none;
}
.hero .wrap {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: center;
}
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
}
.hero-copy h1 {
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  line-height: 1.02;
  margin-top: .4em;
  text-wrap: balance;
}
.hero-copy h1 .hl { color: var(--gold); }
.hero-copy .lead { color: var(--steel-300); margin-top: 1.2em; max-width: 48ch; }
.hero-actions { display: flex; gap: 14px; margin-top: 2em; flex-wrap: wrap; }
.hero-trust {
  display: flex;
  gap: 26px;
  margin-top: 2.4em;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: .74rem;
  letter-spacing: .04em;
  color: var(--steel-300);
}
.hero-trust div { display: flex; align-items: center; gap: 9px; }
.hero-trust .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }

/* ==========================================================================
   RFQ FORM — shared base (homepage hero + contact page).
   Light-theme override lives under .form-card below.
   ========================================================================== */
.rfq-card {
  background: linear-gradient(180deg, var(--steel-900), var(--steel-800));
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 8px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.rfq-head {
  background:
    linear-gradient(90deg, rgba(255,211,70,.12), transparent),
    var(--ink);
  padding: 14px 20px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.rfq-head h2 {
  font-size: 1.12rem;
  letter-spacing: -.01em;
}
.rfq-head .tag {
  font-family: var(--mono);
  font-size: .62rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  background: var(--gold);
  padding: 4px 8px;
  border-radius: 3px;
  font-weight: 700;
  white-space: nowrap;
}
.rfq-body { padding: 16px 20px 18px; }

.rfq-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.field { margin-bottom: 10px; }
.field label {
  display: block;
  font-family: var(--cond);
  text-transform: uppercase;
  letter-spacing: .07em;
  font-size: .72rem;
  font-weight: 600;
  color: var(--steel-300);
  margin-bottom: 4px;
}
.field label .req { color: var(--gold); }
.field input,
.field select,
.field textarea {
  width: 100%;
  font-family: var(--display);
  font-size: .92rem;
  color: var(--white);
  background: rgba(8,16,20,.6);
  border: 1px solid var(--steel-700);
  border-radius: var(--radius);
  padding: 9px 12px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 100px; }
.field select { appearance: none; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%239fb4bd' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center;
  padding-right: 34px;
}
.field input::placeholder,
.field textarea::placeholder { color: var(--steel-500); }
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(8,16,20,.9);
  box-shadow: 0 0 0 3px rgba(255,211,70,.16);
}
.field.invalid input,
.field.invalid select,
.field.invalid textarea { border-color: #ff7a6b; }
.field .err {
  display: none;
  font-family: var(--mono);
  font-size: .68rem;
  color: #ff9d92;
  margin-top: 5px;
}
.field.invalid .err { display: block; }
.rfq-body .btn { width: 100%; justify-content: center; margin-top: 4px; padding: 12px 24px; }
.rfq-note {
  font-family: var(--mono);
  font-size: .66rem;
  color: var(--steel-500);
  text-align: center;
  margin-top: 8px;
  line-height: 1.45;
}
.rfq-note a { color: var(--steel-300); text-decoration: underline; }
.file-row {
  display: flex; align-items: center; gap: 10px;
  border: 1px dashed var(--steel-700);
  border-radius: var(--radius);
  padding: 8px 12px;
  color: var(--steel-300);
  font-size: .82rem;
  cursor: pointer;
  transition: border-color .2s, color .2s;
}
.file-row:hover { border-color: var(--gold); color: var(--white); }
.file-row svg { width: 17px; height: 17px; flex-shrink: 0; }
.file-row input { display: none; }
.file-row .fname { font-family: var(--mono); font-size: .72rem; color: var(--gold); margin-left: auto; }

.rfq-success {
  display: none;
  text-align: center;
  padding: 18px 6px 8px;
}
.rfq-success.show { display: block; }
.rfq-success .check {
  width: 56px; height: 56px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: rgba(255,211,70,.14);
  border: 2px solid var(--gold);
  display: grid; place-items: center;
}
.rfq-success .check svg { width: 26px; height: 26px; color: var(--gold); }
.rfq-success h3 { font-size: 1.3rem; color: var(--white); }
.rfq-success p { color: var(--steel-300); margin-top: 8px; font-size: .94rem; }

/* ==========================================================================
   HOME — STATS STRIP
   ========================================================================== */
.stats {
  background: var(--gold);
  color: var(--ink);
}
.stats .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding-block: 0;
}
.stat {
  padding: 30px 22px;
  position: relative;
}
.stat + .stat::before {
  content: "";
  position: absolute; left: 0; top: 24px; bottom: 24px;
  width: 1px; background: rgba(12,20,24,.18);
}
.stat .num {
  font-size: clamp(1.7rem, 3.2vw, 2.6rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.stat .lab {
  font-family: var(--cond);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 600;
  font-size: .86rem;
  margin-top: 8px;
  color: var(--teal-deep);
}

/* ==========================================================================
   HOME — INTRO / VALUE
   ========================================================================== */
.intro { background: var(--paper); }
.intro .wrap {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  grid-template-areas:
    "head head"
    "points figure";
  column-gap: clamp(36px, 6vw, 80px);
  row-gap: clamp(32px, 5vw, 56px);
  align-items: center;
}
/* .intro-head { grid-area: head; max-width: 80ch; } */
.intro-head { grid-area: head; }
.intro-head .lead { max-width: none; }
.intro-points { grid-area: points; display: grid; gap: 18px; }
.intro-figure { grid-area: figure; }
.intro-point { display: flex; gap: 16px; align-items: flex-start; }
.intro-point .ic {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--gold);
  display: grid; place-items: center;
}
.intro-point .ic svg { width: 22px; height: 22px; }
.intro-point h4 { font-size: 1.08rem; }
.intro-point p { color: var(--steel-700); font-size: .96rem; margin-top: 3px; }
.intro-figure {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: var(--ink);
  min-height: 300px;
  border: 1px solid var(--steel-700);
  box-shadow: var(--shadow-md);
}
.intro-figure .blueprint {
  position: absolute; inset: 0;
  background:
    linear-gradient(135deg, rgba(8,16,20,.55), rgba(8,16,20,.25) 50%, rgba(10,90,120,.4)),
    url('../assets/images/dark-shop-floor.jpg') center/cover var(--ink);
}
.intro-figure .fig-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 30px;
  background: linear-gradient(160deg, transparent 35%, rgba(10,90,120,.45));
}
.intro-figure .est {
  font-family: var(--display);
  font-weight: 900;
  font-size: clamp(3rem, 8vw, 5.5rem);
  color: rgba(255,255,255,.2);
  line-height: .9;
  letter-spacing: -.03em;
  position: absolute;
  top: 24px; left: 28px;
}
.intro-figure .fig-cap {
  position: relative;
  color: var(--white);
}
.intro-figure .fig-cap .k {
  font-family: var(--mono); font-size: .7rem; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold);
}
.intro-figure .fig-cap p { font-size: 1.05rem; line-height: 1.5; margin-top: 8px; }

/* ==========================================================================
   HOME — SERVICES
   ========================================================================== */
.services { background: var(--steel-100); position: relative; }
.services-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 42px; }
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.svc-card {
  background: var(--white);
  border: 1px solid var(--steel-100);
  border-radius: 6px;
  padding: 0;
  position: relative;
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
  display: flex; flex-direction: column;
}
.svc-card::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 4px; background: var(--teal);
  transform: scaleY(0); transform-origin: top;
  transition: transform .3s var(--ease);
  z-index: 2;
}
.svc-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: transparent; }
.svc-card:hover::before { transform: scaleY(1); }
.svc-card-img {
  width: 100%;
  height: clamp(170px, 18vw, 220px);
  object-fit: cover;
  display: block;
  transition: transform .5s var(--ease);
}
.svc-card:hover .svc-card-img { transform: scale(1.05); }
.svc-card-body {
  padding: 22px 24px 24px;
  display: flex; flex-direction: column;
  flex-grow: 1;
}
.svc-card h3 { font-size: 1.22rem; }
.svc-card p { color: var(--steel-700); font-size: .94rem; margin-top: 8px; flex-grow: 1; }
.svc-card .more {
  margin-top: 16px;
  font-family: var(--cond); font-weight: 700; text-transform: uppercase;
  letter-spacing: .06em; font-size: .85rem; color: var(--teal);
  display: inline-flex; align-items: center; gap: 7px;
}
.svc-card .more svg { width: 14px; height: 14px; transition: transform .25s var(--ease); }
.svc-card:hover .more svg { transform: translateX(4px); }

/* ==========================================================================
   HOME — INDUSTRIES band
   ========================================================================== */
.industries { background: var(--ink); color: var(--white); position: relative; overflow: hidden; }
.industries::before {
  /* faded engineering drawing pinned upper-right */
  content: "";
  position: absolute;
  top: 4%; right: -8%;
  width: 62%; height: 82%;
  background-image: url('../assets/images/blueprint-flange.jpg');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  opacity: .28;
  transform: rotate(-2deg);
  mix-blend-mode: screen;
  mask-image: radial-gradient(ellipse at center, #000 38%, transparent 82%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 38%, transparent 82%);
  pointer-events: none;
  z-index: 0;
}
.industries::after {
  content:""; position:absolute; left:-15vw; bottom:-25vw;
  width: 55vw; height: 55vw;
  background: radial-gradient(circle, rgba(10,90,120,.3), transparent 60%);
  z-index: 0;
  pointer-events: none;
}
.industries .wrap { position: relative; z-index: 2; }
.ind-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 6px;
  overflow: hidden;
  margin-top: 42px;
}
.ind-cell {
  background: var(--steel-900);
  padding: 26px 22px;
  transition: background .3s;
  position: relative;
}
.ind-cell:hover { background: var(--steel-800); }
.ind-cell .ic { color: var(--gold); margin-bottom: 14px; }
.ind-cell .ic svg { width: 26px; height: 26px; }
.ind-cell h4 { font-size: 1.05rem; }
.ind-cell p { color: var(--steel-300); font-size: .85rem; margin-top: 6px; line-height: 1.5; }

/* ==========================================================================
   HOME — CREDENTIALS / LEGACY
   ========================================================================== */
.creds { background: var(--paper); }
.creds .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-areas:
    "head head"
    "cards figure";
  column-gap: clamp(34px, 5vw, 70px);
  row-gap: clamp(32px, 5vw, 56px);
  align-items: center;
}
/* .creds-head { grid-area: head; max-width: 80ch; } */
.creds-head { grid-area: head; }
.cred-list { grid-area: cards; display: grid; gap: 16px; }
.legacy-figure { grid-area: figure; }
.cred-item {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--white);
  border: 1px solid var(--steel-100);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  padding: 20px 22px;
}
.cred-item .ic {
  flex-shrink: 0;
  width: 44px; height: 44px;
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--gold);
  display: grid; place-items: center;
}
.cred-item .ic svg { width: 22px; height: 22px; }
.cred-item .cred-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cred-item .badge {
  font-family: var(--mono); font-weight: 700; font-size: .68rem; letter-spacing: .12em;
  color: var(--teal); white-space: nowrap;
}
.cred-item h4 { font-size: 1.05rem; margin-top: 1px; }
.cred-item p { color: var(--steel-700); font-size: .9rem; margin-top: 3px; line-height: 1.5; }
.cred-link {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 10px;
  font-family: var(--cond);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-size: .78rem;
  color: var(--teal);
  transition: color .2s var(--ease), gap .2s var(--ease);
}
.cred-link svg { width: 13px; height: 13px; transition: transform .2s var(--ease); }
.cred-link:hover { color: var(--gold-deep); gap: 9px; }
.cred-link:hover svg { transform: translateX(3px); }
.legacy-figure {
  background:
    linear-gradient(115deg, rgba(8,16,20,.86), rgba(8,16,20,.72) 55%, rgba(6,30,40,.88)),
    url('../assets/images/vintage-and-cnc.jpg') center/cover var(--ink);
  border-radius: 8px; padding: 38px;
  color: var(--white); position: relative; overflow: hidden;
  box-shadow: var(--shadow-md);
}
.legacy-figure::before {
  content:""; position:absolute; inset:0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at 80% 20%, #000, transparent 70%);
}
.legacy-figure .inner { position: relative; z-index: 2; }
.gen-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-top: 28px; }
.gen {
  border: 1px solid var(--steel-700); border-radius: var(--radius);
  padding: 16px; text-align: center;
}
.gen .g { font-family: var(--mono); font-size: .64rem; letter-spacing: .12em; color: var(--teal-bright); }
.gen .name { font-weight: 800; font-size: 1.05rem; margin-top: 6px; }
.gen .role { font-size: .78rem; color: var(--steel-300); margin-top: 2px; }

/* ==========================================================================
   CTA BAND — shared across home + interior pages
   ========================================================================== */
.cta-band {
  background: linear-gradient(115deg, var(--teal-deep), var(--teal));
  color: var(--white);
  position: relative; overflow: hidden;
}
.cta-band::after {
  content:""; position:absolute; right:-10vw; top:-10vw; width:40vw; height:40vw;
  background: radial-gradient(circle, rgba(255,211,70,.18), transparent 60%);
}
.cta-band .wrap {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  gap: 30px; flex-wrap: wrap;
}
.cta-band h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); max-width: 26ch; }
.cta-band p { color: rgba(255,255,255,.85); margin-top: 10px; max-width: 66ch; }

/* ==========================================================================
   INTERIOR — SERVICE INTRO SPLIT
   ========================================================================== */
.svc-intro { background: var(--paper); }
.svc-intro .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(34px, 5vw, 64px); align-items: start; }
.svc-statement {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 700;
  line-height: 1.4;
  color: var(--ink);
  text-wrap: pretty;
}
.svc-intro .body { color: var(--steel-700); margin-top: 22px; font-size: 1.04rem; }
.svc-intro .body p + p { margin-top: 16px; }

/* spec card (sidebar) */
.spec-card {
  background: var(--ink);
  color: var(--white);
  border-radius: 8px;
  padding: 30px;
  position: sticky;
  top: 96px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.spec-card::before {
  content:""; position:absolute; inset:0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px,transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px,transparent 1px);
  background-size: 30px 30px;
  mask-image: radial-gradient(circle at 90% 0%, #000, transparent 70%);
}
.spec-card .inner { position: relative; z-index: 2; }
.spec-card h3 {
  font-family: var(--cond); text-transform: uppercase; letter-spacing: .1em;
  font-size: 1rem; color: var(--gold); margin-bottom: 18px;
}
.spec-list li {
  display: flex; gap: 12px; padding: 11px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  font-size: .92rem; color: var(--steel-100); line-height: 1.45;
  align-items: flex-start;
}
.spec-list li:last-child { border-bottom: 0; }
.spec-list li svg { width: 16px; height: 16px; color: var(--teal-bright); flex-shrink: 0; margin-top: 4px; }
.spec-card .btn { width: 100%; justify-content: center; margin-top: 22px; }

/* ==========================================================================
   INTERIOR — PROCESS STEPS
   ========================================================================== */
.process { background: var(--steel-100); }
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 44px; counter-reset: step; }
.step {
  background: var(--white); border-radius: 6px; padding: 24px 20px;
  border-top: 3px solid var(--teal);
  position: relative;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step .n {
  font-family: var(--mono); font-weight: 700; font-size: .82rem;
  color: var(--gold-deep); background: var(--ink);
  width: 34px; height: 34px; border-radius: var(--radius);
  display: grid; place-items: center; margin-bottom: 16px;
}
.step h4 { font-size: 1.05rem; }
.step p { font-size: .9rem; color: var(--steel-700); margin-top: 7px; line-height: 1.5; }

/* ==========================================================================
   INTERIOR — PROSE / CALLOUT
   ========================================================================== */
.prose-band { background: var(--paper); }
.callout {
  background: linear-gradient(120deg, var(--ink), var(--steel-900));
  color: var(--white);
  border-radius: 8px;
  padding: clamp(28px, 4vw, 48px);
  position: relative; overflow: hidden;
  box-shadow: var(--shadow-md);
}
.callout::before {
  /* atmospheric shop shot — full-cover, masked to fade out toward the left */
  content: "";
  position: absolute; inset: 0;
  background-image: url('../assets/images/shop-lathe-action.jpg');
  background-size: cover;
  background-position: center right;
  mask-image: linear-gradient(to left, #000 0%, rgba(0,0,0,.85) 25%, transparent 65%);
  -webkit-mask-image: linear-gradient(to left, #000 0%, rgba(0,0,0,.85) 25%, transparent 65%);
  pointer-events: none;
  z-index: 1;
}
.callout::after {
  content:""; position:absolute; right:-6vw; bottom:-10vw; width: 30vw; height: 30vw;
  background: radial-gradient(circle, rgba(18,135,176,.3), transparent 60%);
  z-index: 1;
  pointer-events: none;
}
.callout .inner { position: relative; z-index: 2; max-width: 60ch; }
.callout h3 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
.callout p { color: var(--steel-300); margin-top: 14px; font-size: 1.05rem; }
.callout .btn { margin-top: 24px; }

/* ==========================================================================
   INTERIOR — RELATED SERVICES
   ========================================================================== */
.related { background: var(--steel-100); }
.related-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-top: 36px; }
.related-card {
  background: var(--white); border: 1px solid var(--steel-100);
  border-radius: 6px; padding: 22px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
  display: flex; flex-direction: column; gap: 8px;
}
.related-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.related-card .ic { color: var(--teal); }
.related-card .ic svg { width: 24px; height: 24px; }
.related-card h4 { font-size: 1.08rem; }
.related-card p { font-size: .9rem; color: var(--steel-700); }
.related-card .more { font-family: var(--cond); font-weight: 700; text-transform: uppercase; font-size: .82rem; letter-spacing: .06em; color: var(--teal); margin-top: auto; padding-top: 8px; }

/* ==========================================================================
   INTERIOR — FAQ ACCORDION
   ========================================================================== */
.faq { background: var(--paper); }
.faq .wrap > .reveal { text-align: center; }
.faq-list { margin: 38px auto 0; max-width: 860px; }
.faq-item { border-bottom: 1px solid var(--steel-100); }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0;
  padding: 22px 14px; display: flex; justify-content: space-between; gap: 20px;
  align-items: center; font-family: var(--display); font-weight: 700;
  font-size: clamp(1.02rem, 1.6vw, 1.18rem); color: var(--ink);
  border-radius: var(--radius);
  transition: color .25s var(--ease), background .25s var(--ease);
}
.faq-q:hover { color: var(--teal); background: rgba(10,90,120,.05); }
.faq-q .pm {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid var(--teal); position: relative;
  transition: background .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.faq-q:hover .pm { transform: scale(1.1); }
.faq-q .pm::before, .faq-q .pm::after {
  content:""; position:absolute; background: var(--teal);
  left: 50%; top: 50%; transform: translate(-50%,-50%);
}
.faq-q .pm::before { width: 12px; height: 2px; }
.faq-q .pm::after { width: 2px; height: 12px; transition: transform .25s var(--ease); }
.faq-item.open .faq-q .pm { background: var(--teal); }
.faq-item.open .faq-q .pm::before,
.faq-item.open .faq-q .pm::after { background: var(--white); }
.faq-item.open .faq-q .pm::after { transform: translate(-50%,-50%) scaleY(0); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq-a .inner { padding: 0 50px 24px 14px; color: var(--steel-700); font-size: 1rem; line-height: 1.65; }

/* ==========================================================================
   INTERIOR — RICH PROSE / ABOUT
   ========================================================================== */
.rich { max-width: 760px; }
.rich h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 1.6em; }
.rich h2:first-child { margin-top: 0; }
.rich h3 { font-size: 1.2rem; margin-top: 1.4em; color: var(--teal); }
.rich p { color: var(--steel-700); margin-top: 1em; font-size: 1.06rem; line-height: 1.7; }
.rich p:first-of-type { margin-top: .6em; }
.rich a { color: var(--teal); text-decoration: underline; text-underline-offset: 3px; }
.rich a:hover { color: var(--gold-deep); }
.rich ul.bullets { margin-top: 1.1em; display: grid; gap: 12px; }
.rich ul.bullets li { display: flex; gap: 12px; color: var(--steel-700); line-height: 1.6; }
.rich ul.bullets li svg { width: 18px; height: 18px; color: var(--teal); flex-shrink: 0; margin-top: 4px; }

.about-split { background: var(--paper); }
.about-split .wrap { display: grid; grid-template-columns: 1fr 320px; gap: clamp(34px,5vw,64px); align-items: start; }
.about-aside { position: sticky; top: 96px; display: grid; gap: 16px; }
.fact-card {
  background: var(--white); border: 1px solid var(--steel-100);
  border-radius: 6px; padding: 22px; border-top: 3px solid var(--gold);
}
.fact-card .k { font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
.fact-card .v { font-size: 1.7rem; font-weight: 900; line-height: 1.1; margin-top: 6px; letter-spacing: -.02em; }
.fact-card p { font-size: .86rem; color: var(--steel-700); margin-top: 6px; }

/* ==========================================================================
   INTERIOR — GALLERY (masonry via CSS columns, used on about.html)
   ========================================================================== */
.gallery { background: var(--paper); }
.gallery .gallery-grid {
  margin-top: clamp(28px, 4vw, 48px);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.gallery-item {
  display: block;
  aspect-ratio: 1 / 1;
  border-radius: 6px;
  overflow: hidden;
  background: var(--steel-100);
  box-shadow: var(--shadow-md);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
  cursor: zoom-in;
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform .55s var(--ease), filter .35s var(--ease);
}
.gallery-item:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.gallery-item:hover img {
  transform: scale(1.06);
  filter: brightness(1.06);
}
@media (max-width: 940px) {
  .gallery .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .gallery .gallery-grid { grid-template-columns: 1fr; }
}

/* ----- Gallery lightbox ----- */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(6, 12, 16, .94);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 90px;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s var(--ease), visibility .25s;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox-figure {
  margin: 0;
  max-width: 100%;
  max-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.lightbox-img {
  max-width: 100%;
  max-height: calc(100vh - 160px);
  display: block;
  border-radius: 4px;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
  animation: lightboxFade .25s var(--ease);
}
@keyframes lightboxFade {
  from { opacity: 0; transform: scale(.97); }
  to   { opacity: 1; transform: scale(1); }
}
.lightbox-caption {
  color: var(--steel-300);
  font-family: var(--display);
  font-size: .95rem;
  text-align: center;
  max-width: 60ch;
  line-height: 1.45;
}
.lightbox-count {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--steel-500);
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .14em;
}
.lightbox-close, .lightbox-prev, .lightbox-next {
  position: absolute;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.14);
  color: var(--white);
  border-radius: 50%;
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.lightbox-close svg, .lightbox-prev svg, .lightbox-next svg {
  width: 22px; height: 22px;
}
.lightbox-close { top: 22px; right: 22px; }
.lightbox-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 22px; top: 50%; transform: translateY(-50%); }
.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255,211,70,.18);
  border-color: var(--gold);
}
.lightbox-prev:hover { transform: translateY(-50%) translateX(-3px); }
.lightbox-next:hover { transform: translateY(-50%) translateX(3px); }

@media (max-width: 640px) {
  .lightbox { padding: 50px 16px 70px; }
  .lightbox-close, .lightbox-prev, .lightbox-next { width: 42px; height: 42px; }
  .lightbox-close svg, .lightbox-prev svg, .lightbox-next svg { width: 18px; height: 18px; }
  .lightbox-close { top: 14px; right: 14px; }
  .lightbox-prev { left: 8px; }
  .lightbox-next { right: 8px; }
  .lightbox-img { max-height: calc(100vh - 180px); }
  .lightbox-caption { font-size: .85rem; }
}

/* ==========================================================================
   INTERIOR — TEAM
   ========================================================================== */
.team { background: var(--steel-100); }
.team-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; margin-top: 40px; }
.member {
  background: var(--white); border-radius: 6px; padding: 26px;
  border: 1px solid var(--steel-100);
  display: flex; gap: 18px; align-items: center;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.member:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.member .avatar {
  width: 58px; height: 58px; flex-shrink: 0;
  border-radius: 50%; background: var(--ink); color: var(--gold);
  display: grid; place-items: center; font-weight: 900; font-size: 1.15rem;
  font-family: var(--display); letter-spacing: -.02em;
}
.member h4 { font-size: 1.08rem; }
.member .role { font-family: var(--mono); font-size: .72rem; color: var(--teal); letter-spacing: .04em; }
.member .yrs { font-size: .86rem; color: var(--steel-700); margin-top: 4px; }

/* ==========================================================================
   INTERIOR — INDUSTRIES PAGE
   ========================================================================== */
.ind-page { background: var(--paper); }
.ind-page-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 18px; }
.ind-block {
  background: var(--white); border: 1px solid var(--steel-100); border-radius: 8px;
  padding: 30px; position: relative; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.ind-block:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.ind-block .ic {
  width: 52px; height: 52px; border-radius: var(--radius);
  background: var(--ink); color: var(--gold); display: grid; place-items: center; margin-bottom: 18px;
}
.ind-block .ic svg { width: 28px; height: 28px; }
.ind-block h3 { font-size: 1.3rem; }
.ind-block p { color: var(--steel-700); margin-top: 10px; font-size: .98rem; line-height: 1.6; }
.ind-block .tag {
  display: inline-block; margin-top: 14px;
  font-family: var(--mono); font-size: .68rem; letter-spacing: .08em;
  color: var(--teal); border: 1px solid var(--steel-100); padding: 5px 10px; border-radius: 3px;
}

/* ==========================================================================
   INTERIOR — CONTACT
   ========================================================================== */
.contact-sec { background: var(--paper); }
.contact-sec .wrap { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(34px,5vw,64px); align-items: start; }
.contact-info .lead { margin-top: 18px; }
.contact-cards { display: grid; gap: 14px; margin-top: 30px; }
.cc {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--white); border: 1px solid var(--steel-100);
  border-radius: 6px; padding: 20px 22px;
}
.cc .ic { width: 44px; height: 44px; border-radius: var(--radius); background: var(--ink); color: var(--gold); display: grid; place-items: center; flex-shrink: 0; }
.cc .ic svg { width: 22px; height: 22px; }
.cc .k { font-family: var(--cond); text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; color: var(--steel-500); font-weight: 600; }
.cc .v { font-size: 1.12rem; font-weight: 700; margin-top: 3px; }
.cc .v a:hover { color: var(--teal); }
.cc .sub { font-size: .86rem; color: var(--steel-700); margin-top: 2px; }

/* form card — light-theme override of the RFQ base above */
.form-card {
  background: var(--white); border: 1px solid var(--steel-100);
  border-radius: 8px; padding: clamp(26px, 4vw, 40px);
  box-shadow: var(--shadow-md);
}
.form-card .field label { color: var(--steel-700); }
.form-card .field input,
.form-card .field select,
.form-card .field textarea {
  color: var(--ink); background: var(--paper-warm); border-color: var(--steel-100);
}
.form-card .field input::placeholder,
.form-card .field textarea::placeholder { color: var(--steel-500); }
.form-card .field input:focus,
.form-card .field select:focus,
.form-card .field textarea:focus {
  background: var(--white); border-color: var(--teal); box-shadow: 0 0 0 3px rgba(18,135,176,.14);
}
.form-card .field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235d7884' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
}
.form-card .field select:focus {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235d7884' d='M6 8 0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
}
.form-card .file-row { color: var(--steel-700); border-color: var(--steel-100); }
.form-card .file-row:hover { border-color: var(--teal); color: var(--ink); }
.form-card .file-row .fname { color: var(--teal); }
.form-card .field textarea { min-height: 160px; }
.form-card .btn { width: 100%; justify-content: center; }
.form-card h2 { font-size: 1.5rem; }
.form-card .form-sub { color: var(--steel-700); margin-top: 6px; margin-bottom: 22px; font-size: .96rem; }
.form-card .rfq-note { font-family: var(--display); color: var(--steel-700); font-size: .92rem; margin-top: 22px; line-height: 1.55; }
.form-card .rfq-note a { color: var(--teal); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.form-card .rfq-success h3 { color: var(--ink); }
.form-card .rfq-success p { color: var(--steel-700); }
.form-card .rfq-success .check { background: rgba(10,90,120,.1); border-color: var(--teal); }
.form-card .rfq-success .check svg { color: var(--teal); }

.map-embed {
  margin-top: 30px; border-radius: 8px; overflow: hidden;
  border: 1px solid var(--steel-100); height: 280px; background: var(--steel-100);
}
.map-embed iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  background: var(--ink);
  color: var(--steel-300);
  padding-top: clamp(50px, 7vw, 80px);
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--teal), var(--gold), var(--teal));
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  gap: 40px;
}
.site-footer .brand img { height: 46px; margin-bottom: 18px; }
.site-footer p { font-size: .92rem; line-height: 1.7; max-width: 34ch; }
.footer-col h4 {
  font-family: var(--cond);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .85rem;
  color: var(--white);
  margin-bottom: 16px;
}
.footer-col ul li { margin-bottom: 9px; }
.footer-col a { font-size: .92rem; color: var(--steel-300); transition: color .2s, padding .2s; }
.footer-col a:hover { color: var(--gold); padding-left: 4px; }
.footer-contact li { display: flex; gap: 10px; font-size: .92rem; margin-bottom: 12px; align-items: flex-start; }
.footer-contact svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 4px; color: var(--teal-bright); }
.footer-cert { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 4px; }
.footer-cert .chip {
  font-family: var(--mono);
  font-size: .68rem;
  letter-spacing: .05em;
  border: 1px solid var(--steel-700);
  color: var(--steel-100);
  padding: 6px 10px;
  border-radius: var(--radius);
}
.footer-bottom {
  margin-top: clamp(40px, 5vw, 60px);
  border-top: 1px solid rgba(255,255,255,.08);
  padding-block: 22px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-family: var(--mono);
  font-size: .72rem;
  color: var(--steel-500);
}

/* ==========================================================================
   ANIMATIONS — scroll reveal
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 940px) {
  /* Header / nav drawer */
  .nav-toggle { display: block; }
  .nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(82vw, 360px);
    flex-direction: column;
    align-items: stretch;
    background: var(--steel-900);
    padding: 90px 26px 40px;
    gap: 6px;
    transform: translateX(100%);
    transition: transform .35s var(--ease);
    box-shadow: var(--shadow-lg);
    overflow-y: auto;
  }
  .nav.open { transform: none; }
  .nav a { font-size: 1.15rem; padding: 14px 12px; border-bottom: 1px solid rgba(255,255,255,.06); }
  .nav a::after { display: none; }
  .nav .btn { margin: 14px 0 0; justify-content: center; }
  .nav-backdrop {
    position: fixed; inset: 0;
    background: rgba(5,15,20,.6);
    backdrop-filter: blur(2px);
    opacity: 0; visibility: hidden;
    transition: opacity .3s;
    z-index: 99;
  }
  .nav-backdrop.show { opacity: 1; visibility: visible; }

  /* Dropdown becomes an inline, always-visible sub-list inside the drawer */
  .nav-dd { width: 100%; }
  .nav-dd-menu {
    position: static;
    opacity: 1; visibility: visible; transform: none;
    background: transparent;
    border: 0; box-shadow: none;
    backdrop-filter: none;
    padding: 2px 0 6px 14px;
    min-width: 0;
  }
  .nav-dd-menu a {
    padding: 11px 10px;
    font-size: .98rem;
    border-bottom: 1px solid rgba(255,255,255,.04);
  }
  .nav-dd-menu a:hover,
  .nav-dd-menu a.active { padding-left: 14px; background: transparent; }
  .nav-dd .chev { display: none; }

  /* Home layout */
  .hero .wrap { grid-template-columns: 1fr; }
  .intro .wrap, .creds .wrap { grid-template-columns: 1fr; }
  .intro .wrap, .creds .wrap { grid-template-areas: none; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .ind-grid { grid-template-columns: repeat(2, 1fr); }
  .stats .wrap { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3)::before { display: none; }

  /* Interior layout */
  .svc-intro .wrap { grid-template-columns: 1fr; }
  .spec-card { position: static; }
  .steps { grid-template-columns: repeat(2,1fr); }
  .related-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2,1fr); }
  .about-split .wrap { grid-template-columns: 1fr; }
  .about-aside { position: static; grid-template-columns: repeat(3,1fr); display: grid; }
  .ind-page-grid { grid-template-columns: 1fr; }
  .contact-sec .wrap { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .topbar .contact { display: none; }
}

@media (max-width: 600px) {
  .services-grid { grid-template-columns: 1fr; }
  .ind-grid { grid-template-columns: 1fr 1fr; }
  .rfq-row { grid-template-columns: 1fr; }
  .gen-row { grid-template-columns: 1fr; }
  .stat:nth-child(2)::before { display: none; }
  .steps { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .about-aside { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}
