/* ============================================================
   CSMFG 2026 — Design System
   "From Individual Parts to Complete, Tested Assemblies"
   Matched to csmfg.com identity: white header + red-triangle logo,
   CSMFG red (#c51b1f) accents, charcoal ink, Lato / Open Sans.
   ============================================================ */

:root {
  --ink: #292929;
  --ink-2: #4b5259;
  --muted: #75797e;
  --paper: #f7f8f9;
  --paper-2: #f0f1f2;
  --card: #ffffff;
  --line: rgba(41, 41, 41, 0.09);
  --line-strong: rgba(41, 41, 41, 0.16);
  --brand: #c51b1f;          /* CSMFG red */
  --brand-deep: #9e1114;
  --brand-ink: #1e1e20;      /* charcoal for dark sections / footer */
  --accent: #d10000;
  --ok: #1e9e6a;
  --bad: #c51b1f;
  --radius-xl: 1.6rem;
  --radius-lg: 1.2rem;
  --radius-md: 0.9rem;
  --shadow-soft: 0 24px 60px -24px rgba(30, 30, 32, 0.16), 0 6px 18px -8px rgba(30, 30, 32, 0.07);
  --shadow-hover: 0 32px 80px -28px rgba(30, 30, 32, 0.25), 0 8px 24px -10px rgba(30, 30, 32, 0.1);
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --font-display: "Lato", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Open Sans", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

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

/* faint engineering-grid texture */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(41, 41, 41, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(41, 41, 41, 0.03) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, black 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, black 0%, transparent 75%);
}

main { position: relative; z-index: 1; }

img { max-width: 100%; display: block; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-deep); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin: 0 0 0.5em;
  text-wrap: balance;
  font-weight: 800;
}
h1 { font-size: clamp(2.4rem, 5.2vw, 4.1rem); font-weight: 900; }
h2 { font-size: clamp(1.85rem, 3.3vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); font-weight: 700; }
h4 { font-size: 1.06rem; font-weight: 700; }
p { margin: 0 0 1em; color: var(--ink-2); }
.lead { font-size: clamp(1.02rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 48ch; }

.container { width: min(1180px, calc(100% - 3rem)); margin-inline: auto; }
section { padding-block: clamp(4.5rem, 9vw, 8rem); position: relative; }
section.tight { padding-block: clamp(3rem, 6vw, 5rem); }

/* ---------- eyebrow ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  padding: 0.32rem 0.85rem;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
  margin-bottom: 1.4rem;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 1px;
  transform: rotate(45deg);
  background: var(--brand);
}

/* ---------- nav (classic white bar, like csmfg.com) ---------- */
.nav-wrap {
  position: fixed;
  top: 0;
  left: 0; right: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 30px -22px rgba(30, 30, 32, 0.35);
}
.nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  width: min(1220px, calc(100% - 2rem));
  margin-inline: auto;
  min-height: 72px;
  padding: 0.4rem 0;
}
.nav .brand {
  display: flex; align-items: center; gap: 0.6rem;
  margin-right: auto;
}
.nav .brand img { height: 42px; width: auto; }
.nav .brand small {
  font-family: var(--font-body); font-weight: 700;
  font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--muted);
  border-left: 1px solid var(--line-strong);
  padding-left: 0.6rem;
  line-height: 1.4;
}
.nav-links { display: flex; align-items: center; gap: 0.1rem; margin-right: 0.6rem; }
.nav-links > .nav-item { position: relative; }
.nav-links a.top-link {
  display: inline-block;
  padding: 0.55rem 0.8rem;
  border-radius: 0.5rem;
  font-size: 14px; font-weight: 700;
  color: var(--ink-2);
  transition: background 0.5s var(--ease), color 0.5s var(--ease);
}
.nav-links a.top-link:hover,
.nav-links .nav-item:hover > a.top-link { background: rgba(197, 27, 31, 0.06); color: var(--brand); }
.nav-links a.top-link[aria-current="page"] { color: var(--brand); }

.dropdown {
  position: absolute;
  top: calc(100% + 0.6rem);
  left: 50%;
  transform: translate(-50%, 10px);
  min-width: 330px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line);
  border-radius: 1rem;
  box-shadow: var(--shadow-soft);
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s var(--ease), transform 0.45s var(--ease), visibility 0s linear 0.45s;
}
.nav-item:hover .dropdown,
.nav-item:focus-within .dropdown {
  opacity: 1; visibility: visible;
  transform: translate(-50%, 0);
  transition-delay: 0s;
}
.dropdown a {
  display: block;
  padding: 0.6rem 0.85rem;
  border-radius: 0.7rem;
  font-size: 14px; font-weight: 700; color: var(--ink-2);
  transition: background 0.4s var(--ease), color 0.4s var(--ease), transform 0.4s var(--ease);
}
.dropdown a span { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }
.dropdown a:hover { background: rgba(197, 27, 31, 0.05); color: var(--brand); transform: translateX(3px); }
.dropdown-components,
.dropdown-capabilities {
  width: min(660px, calc(100vw - 2rem));
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
  padding: 0.75rem;
}
.dropdown-group {
  min-width: 0;
  padding: 0.15rem;
}
.dropdown-group + .dropdown-group {
  border-left: 1px solid var(--line);
  padding-left: 0.8rem;
}
.dropdown-title {
  display: block;
  min-height: 2.9rem;
  margin: 0 0.45rem 0.4rem;
  padding: 0.35rem 0 0.65rem;
  border-bottom: 2px solid var(--brand);
  color: var(--brand);
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.12em;
  line-height: 1.35;
  text-transform: uppercase;
}
.dropdown-footer {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.15rem;
  padding: 0.45rem 0.35rem 0;
  border-top: 1px solid var(--line);
}
.dropdown-footer a {
  flex: 1;
  color: var(--brand);
}
.dropdown-company { min-width: 230px; }

/* burger */
.burger {
  display: none;
  width: 42px; height: 42px;
  border-radius: 0.6rem;
  border: 1px solid var(--line-strong);
  background: #fff;
  cursor: pointer;
  position: relative;
}
.burger i {
  position: absolute; left: 12px; right: 12px; height: 1.8px;
  background: var(--ink);
  transition: transform 0.55s var(--ease), top 0.55s var(--ease), opacity 0.3s;
}
.burger i:nth-child(1) { top: 15px; }
.burger i:nth-child(2) { top: 20px; }
.burger i:nth-child(3) { top: 25px; }
body.menu-open .burger i:nth-child(1) { top: 20px; transform: rotate(45deg); }
body.menu-open .burger i:nth-child(2) { opacity: 0; }
body.menu-open .burger i:nth-child(3) { top: 20px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 55;
  background: rgba(247, 248, 249, 0.94);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  display: flex; flex-direction: column; justify-content: center;
  padding: 5.5rem 2rem 2rem;
  opacity: 0; visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0s linear 0.5s;
  overflow-y: auto;
}
body.menu-open .mobile-menu { opacity: 1; visibility: visible; transition-delay: 0s; }
.mobile-menu a {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 5vw, 1.8rem);
  font-weight: 800; color: var(--ink);
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.mobile-menu a.small { font-size: 1.02rem; font-family: var(--font-body); font-weight: 700; color: var(--ink-2); }
.mobile-group {
  width: 100%;
  border-bottom: 1px solid var(--line);
}
.mobile-group summary {
  position: relative;
  padding: 0.45rem 2rem 0.45rem 0;
  color: var(--ink);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 5vw, 1.8rem);
  font-weight: 800;
  list-style: none;
}
.mobile-group summary::-webkit-details-marker { display: none; }
.mobile-group summary::after {
  content: "+";
  position: absolute;
  right: 0.2rem;
  color: var(--brand);
  font-weight: 400;
  transition: transform 0.45s var(--ease);
}
.mobile-group[open] summary::after { transform: rotate(45deg); }
.mobile-group a {
  padding: 0.4rem 0.25rem 0.4rem 1rem;
  border-bottom: 0;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 600;
}
.mobile-subtitle {
  display: block;
  margin: 0.7rem 0 0.2rem 1rem;
  color: var(--brand);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
body.menu-open .mobile-menu a { opacity: 1; transform: translateY(0); }
body.menu-open .mobile-menu a:nth-child(1) { transition-delay: 0.06s; }
body.menu-open .mobile-menu a:nth-child(2) { transition-delay: 0.1s; }
body.menu-open .mobile-menu a:nth-child(3) { transition-delay: 0.14s; }
body.menu-open .mobile-menu a:nth-child(4) { transition-delay: 0.18s; }
body.menu-open .mobile-menu a:nth-child(5) { transition-delay: 0.22s; }
body.menu-open .mobile-menu a:nth-child(6) { transition-delay: 0.26s; }
body.menu-open .mobile-menu a:nth-child(7) { transition-delay: 0.3s; }
body.menu-open .mobile-menu a:nth-child(8) { transition-delay: 0.34s; }
body.menu-open .mobile-menu a:nth-child(9) { transition-delay: 0.38s; }
body.menu-open .mobile-menu a:nth-child(10) { transition-delay: 0.42s; }
body.menu-open .mobile-menu a:nth-child(11) { transition-delay: 0.46s; }
body.menu-open .mobile-menu a:nth-child(12) { transition-delay: 0.5s; }
body.menu-open .mobile-menu a:nth-child(13) { transition-delay: 0.54s; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  border-radius: 999px;
  padding: 0.5rem 0.5rem 0.5rem 1.35rem;
  font-family: var(--font-body);
  font-size: 15px; font-weight: 700;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease), background 0.5s var(--ease), border-color 0.5s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn .disc {
  width: 34px; height: 34px;
  border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform 0.5s var(--ease);
  flex: none;
}
.btn:hover .disc { transform: translate(3px, -1px) scale(1.06); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 14px 34px -14px rgba(197, 27, 31, 0.6); }
.btn-primary:hover { background: var(--brand-deep); color: #fff; box-shadow: 0 20px 44px -16px rgba(158, 17, 20, 0.65); }
.btn-primary .disc { background: rgba(255, 255, 255, 0.18); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; color: #fff; }
.btn-dark .disc { background: rgba(255, 255, 255, 0.14); color: #fff; }
.btn-ghost { background: rgba(255, 255, 255, 0.75); border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); background: #fff; }
.btn-ghost .disc { background: rgba(197, 27, 31, 0.08); color: var(--brand); }
/* light button used on dark charcoal panels */
.btn-amber { background: #fff; color: var(--brand); box-shadow: 0 14px 34px -14px rgba(0, 0, 0, 0.5); }
.btn-amber:hover { background: #f3f3f3; color: var(--brand-deep); }
.btn-amber .disc { background: rgba(197, 27, 31, 0.1); color: var(--brand); }

/* ---------- double-bezel card ---------- */
.shell {
  background: rgba(41, 41, 41, 0.035);
  border: 1px solid rgba(41, 41, 41, 0.06);
  border-radius: var(--radius-xl);
  padding: 0.45rem;
}
.core {
  background: var(--card);
  border-radius: calc(var(--radius-xl) - 0.45rem);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.6), var(--shadow-soft);
  padding: clamp(1.4rem, 3vw, 2.2rem);
  height: 100%;
}
.shell.lift { transition: transform 0.6s var(--ease); }
.shell.lift:hover { transform: translateY(-5px); }
.shell.lift:hover .core { box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.6), var(--shadow-hover); }

/* dark card — charcoal like the logo's black wordmark */
.core.dark {
  background: linear-gradient(160deg, #2b2b2e 0%, var(--brand-ink) 55%, #161618 100%);
  border-color: rgba(255, 255, 255, 0.08);
  color: #d6d6d6;
}
.core.dark h2, .core.dark h3, .core.dark h4 { color: #fff; }
.core.dark p { color: #c3c3c3; }
.eyebrow.on-dark {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.16);
  color: #ff9d9d;
}
/* ---------- grids ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-12 { grid-template-columns: repeat(12, 1fr); }
.span-4 { grid-column: span 4; }
.span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; }
.span-7 { grid-column: span 7; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: span 12; }

/* ---------- media frames & placeholders ---------- */
.frame {
  margin: 0;
  background: rgba(41, 41, 41, 0.035);
  border: 1px solid rgba(41, 41, 41, 0.06);
  border-radius: var(--radius-lg);
  padding: 0.4rem;
}
.frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: calc(var(--radius-lg) - 0.4rem);
}
.frame .media { border-radius: calc(var(--radius-lg) - 0.4rem); overflow: hidden; height: 100%; }
.frame.cap-photo .media {
  display: flex;
  justify-content: center;
  align-items: center;
  height: auto;
}
.frame.cap-photo .media img,
.frame.cap-photo .media picture {
  width: 65%;
  max-width: 65%;
  height: auto;
  object-fit: contain;
}
.frame.cap-photo .media picture img {
  width: 100%;
  max-width: 100%;
}
.frame figcaption {
  font-size: 12.5px; color: var(--muted);
  padding: 0.55rem 0.6rem 0.25rem;
  letter-spacing: 0.02em;
}

.ph {
  margin: 0;
  border-radius: var(--radius-lg);
  border: 1.5px dashed rgba(41, 41, 41, 0.28);
  background:
    repeating-linear-gradient(-45deg, rgba(41, 41, 41, 0.035) 0 14px, transparent 14px 28px),
    linear-gradient(180deg, rgba(41, 41, 41, 0.04), rgba(41, 41, 41, 0.015));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 1.6rem 1.4rem;
  text-align: center;
  min-height: 200px;
  color: var(--ink-2);
}
.ph svg { width: 30px; height: 30px; opacity: 0.55; }
.ph .tag {
  font-size: 10px; font-weight: 800; letter-spacing: 0.24em;
  text-transform: uppercase; color: var(--brand);
}
.ph .desc { font-size: 13.5px; line-height: 1.5; color: var(--ink-2); max-width: 34ch; }
.ph.on-dark {
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.04);
  color: #c3c3c3;
}
.ph.on-dark .tag { color: #ff9d9d; }
.ph.on-dark .desc { color: #c3c3c3; }

/* ---------- stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.stats-3 { grid-template-columns: repeat(3, 1fr); }
.stat {
  border-left: 3px solid var(--brand);
  padding: 0.3rem 0 0.3rem 1.1rem;
}
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.stat span { font-size: 13px; color: var(--muted); font-weight: 600; }

/* ---------- before / after ---------- */
.ba { display: grid; grid-template-columns: 1fr auto 1fr; gap: 1.2rem; align-items: stretch; }
.ba .arrow {
  align-self: center;
  width: 52px; height: 52px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 14px 30px -12px rgba(197, 27, 31, 0.7);
  font-size: 20px;
}
.ba ul { list-style: none; margin: 0.8rem 0 0; padding: 0; }
.ba li {
  display: flex; align-items: baseline; gap: 0.65rem;
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--line);
  font-size: 15px; font-weight: 600; color: var(--ink-2);
}
.ba li:last-child { border-bottom: 0; }
.ba li b { font-family: var(--font-display); font-size: 1.25rem; min-width: 2.2ch; letter-spacing: -0.02em; font-weight: 900; }
.ba .before li b { color: var(--bad); }
.ba .after li b { color: var(--ok); }
.chip {
  display: inline-block;
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 0.3rem 0.8rem; border-radius: 999px;
}
.chip.red { background: rgba(197, 27, 31, 0.08); color: var(--bad); }
.chip.green { background: rgba(30, 158, 106, 0.12); color: var(--ok); }

/* ---------- checklist / feature list ---------- */
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li {
  display: flex; gap: 0.8rem; align-items: flex-start;
  padding: 0.55rem 0;
  color: var(--ink-2); font-size: 15px;
}
.check-list li::before {
  content: "";
  flex: none;
  width: 20px; height: 20px;
  margin-top: 2px;
  border-radius: 999px;
  background: rgba(197, 27, 31, 0.09) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c51b1f' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4 10-11'/%3E%3C/svg%3E") center/11px no-repeat;
}
.check-list li b { color: var(--ink); }
.core.dark .check-list li { color: #c3c3c3; }
.core.dark .check-list li b { color: #fff; }
.core.dark .check-list li::before { background-color: rgba(255, 255, 255, 0.1); }

/* ---------- process steps ---------- */
.steps { counter-reset: step; display: grid; gap: 1rem; }
.step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 1.1rem;
  padding: 1.15rem 1.3rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 30px -18px rgba(30, 30, 32, 0.14);
}
.step::before {
  content: "0" counter(step);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.5rem;
  color: rgba(197, 27, 31, 0.4);
  letter-spacing: -0.03em;
}
.step h4 { margin-bottom: 0.2rem; }
.step p { margin: 0; font-size: 14.5px; }

/* ---------- table ---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tbl th {
  text-align: left;
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
  padding: 0.7rem 0.9rem;
  border-bottom: 1px solid var(--line-strong);
}
.tbl td {
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  vertical-align: top;
}
.tbl td:first-child { font-weight: 700; color: var(--ink); }

/* ---------- forms ---------- */
.field { margin-bottom: 1.15rem; }
.field label {
  display: block;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.06em;
  color: var(--ink);
  margin-bottom: 0.4rem;
}
.field label small { color: var(--muted); font-weight: 500; }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field input[type="number"],
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: #fff;
  border-radius: 0.75rem;
  padding: 0.75rem 0.95rem;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(197, 27, 31, 0.1);
}
.field .hint { font-size: 12.5px; color: var(--muted); margin-top: 0.35rem; }
.choice-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
.choice {
  display: flex; align-items: center; gap: 0.55rem;
  border: 1px solid var(--line-strong);
  background: #fff;
  border-radius: 0.7rem;
  padding: 0.6rem 0.8rem;
  font-size: 14px; font-weight: 600; color: var(--ink-2);
  cursor: pointer;
  transition: border-color 0.35s var(--ease), background 0.35s var(--ease);
}
.choice:hover { border-color: var(--brand); }
.choice input { accent-color: var(--brand); width: 16px; height: 16px; }
.upload {
  border: 1.5px dashed rgba(197, 27, 31, 0.4);
  border-radius: 1rem;
  background: rgba(197, 27, 31, 0.03);
  padding: 1.6rem;
  text-align: center;
  color: var(--ink-2);
  font-size: 14px;
  cursor: pointer;
  transition: background 0.4s var(--ease);
}
.upload:hover { background: rgba(197, 27, 31, 0.06); }
.upload b { color: var(--brand); }
.rfq-file-picker {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 0.35rem 0 0.25rem;
}
.rfq-file-picker input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.rfq-file-choose-btn {
  padding: 0.45rem 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: var(--paper);
  cursor: pointer;
  font: inherit;
  color: var(--ink);
}
.rfq-file-name {
  font-size: 13px;
  color: var(--ink-2);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.rfq-file-note {
  margin: 0.35rem 0 0.9rem;
  font-size: 13px;
  color: var(--muted);
}
.rfq-upload-progress-wrap {
  display: none;
  margin: 0.75rem 0 1rem;
}
.rfq-upload-progress-wrap.is-active {
  display: block;
}
.rfq-upload-progress-track {
  height: 10px;
  background: var(--paper-2);
  border-radius: 999px;
  overflow: hidden;
}
.rfq-upload-progress-bar {
  height: 100%;
  width: 0%;
  background: var(--brand-ink);
  border-radius: 999px;
  transition: width 0.12s ease-out;
}
.rfq-upload-progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 0.35rem;
  font-size: 12px;
  color: var(--muted);
}

/* tabs */
.tabs {
  display: inline-flex;
  gap: 0.3rem;
  background: rgba(41, 41, 41, 0.05);
  border: 1px solid var(--line);
  padding: 0.3rem;
  border-radius: 999px;
}
.tabs button {
  border: 0;
  background: transparent;
  font-family: var(--font-body);
  font-size: 14.5px; font-weight: 700;
  color: var(--ink-2);
  border-radius: 999px;
  padding: 0.6rem 1.4rem;
  cursor: pointer;
  transition: background 0.45s var(--ease), color 0.45s var(--ease), box-shadow 0.45s var(--ease);
}
.tabs button.active {
  background: #fff;
  color: var(--brand);
  box-shadow: 0 8px 20px -10px rgba(30, 30, 32, 0.3);
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ---------- email-first RFQ flow ---------- */
.hero.quote-hero {
  padding-top: clamp(4.5rem, 6vw, 5.25rem);
  padding-bottom: 0.5rem;
}
.quote-hero h1 { margin-bottom: 0; }
.quote-flow .container { max-width: 900px; }
.quote-gate { max-width: 680px; margin-inline: auto; }
.quote-gate .core { padding: clamp(1.6rem, 4vw, 2.8rem); }
.quote-gate h3 { margin-top: 0.55rem; }
#rfq-next { scroll-margin-top: 92px; }
.form-step {
  display: inline-block;
  color: var(--brand);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.gate-note {
  margin: 1.4rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13.5px;
}
.form-status {
  display: inline-block;
  margin-left: 0.7rem;
  color: var(--muted);
  font-size: 13px;
}
.form-message {
  margin-top: 1rem;
  padding: 0.75rem 0.9rem;
  border-radius: 0.7rem;
  font-size: 13.5px;
}
.form-message.error {
  border: 1px solid rgba(197, 27, 31, 0.25);
  background: rgba(197, 27, 31, 0.06);
  color: var(--brand-deep);
}
.form-message.success {
  border: 1px solid rgba(30, 158, 106, 0.25);
  background: rgba(30, 158, 106, 0.07);
  color: #14764f;
}
.form-retry {
  margin-left: 0.65rem;
  border: 0;
  background: transparent;
  color: inherit;
  font: 800 12px var(--font-body);
  text-decoration: underline;
  cursor: pointer;
}
.quote-confirmation {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: #fff;
  color: var(--ink-2);
  font-size: 13.5px;
}
.quote-confirmation .form-step { margin-right: auto; }
.quote-confirmation button {
  border: 0;
  background: transparent;
  color: var(--brand);
  cursor: pointer;
  font: 700 12px var(--font-body);
}
.quote-after {
  margin-top: 2rem;
  padding: clamp(1.4rem, 3vw, 2rem);
  border-top: 1px solid var(--line-strong);
}
.quote-after > p { max-width: 68ch; }
.assembly-intro { margin: 0.35rem 0 1.25rem; color: var(--ink-2); }
.form-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 2.25rem 0 1.8rem;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.form-divider::before,
.form-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line-strong);
}
.detailed-form-title { margin-bottom: 1.25rem; }

/* ---------- robotic welding capability ---------- */
.welding-hero {
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(197, 27, 31, 0.05), transparent 34%),
    linear-gradient(180deg, #fff 0%, var(--paper-2) 100%);
}
.weld-cycle-hero {
  margin-top: clamp(1.8rem, 3vw, 2.6rem);
}
.weld-cycle-hero .weld-cycle-step {
  min-height: 0;
  padding: 1rem 0.85rem 1.05rem;
}
.weld-cycle-hero .weld-cycle-step p {
  font-size: 13px;
}
.weld-cycle-section,
.welding-video-section { background: var(--paper-2); }
.weld-cycle {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.75rem;
}
.weld-cycle-step {
  position: relative;
  min-height: 190px;
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
}
.weld-cycle-step b {
  display: block;
  margin-bottom: 1.2rem;
  color: var(--brand);
  font: 900 2rem/1 var(--font-display);
}
.weld-cycle-step h4 { margin-bottom: 0.45rem; }
.weld-cycle-step p { margin: 0; font-size: 14px; }
.negative-list li::before { content: "\00d7"; }
.welding-tech-grid .shell { overflow: hidden; }
.welding-tech-media {
  overflow: hidden;
  aspect-ratio: 1;
  background: #e8edf0;
}
.welding-tech-media picture,
.welding-tech-media img {
  display: block;
  width: 100%;
  height: 100%;
}
.welding-tech-media img { object-fit: cover; }
.welding-video {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--brand-ink);
  box-shadow: var(--shadow-soft);
}
.welding-video-grid > * { min-width: 0; }
.welding-video video {
  display: block;
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  background: #090a0b;
  object-fit: cover;
}
.welding-video figcaption {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 1rem 1.2rem;
  color: #fff;
}
.welding-video figcaption span { color: #aeb2b8; font-size: 13px; }
.welding-video-copy {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  justify-content: center;
}
.welding-video-copy .btn { align-self: flex-start; }
.media-credit { margin: 1rem 0 0; color: var(--muted); font-size: 12.5px; }

/* ---------- ProvenCell production samples ---------- */
.provencell-step-card .core {
  height: 100%;
}
.provencell-step-icon {
  display: grid;
  width: 68px;
  height: 68px;
  margin-bottom: 1.25rem;
  place-items: center;
  border: 1px solid rgba(197, 27, 31, 0.14);
  border-radius: 1rem;
  background: rgba(197, 27, 31, 0.055);
  color: var(--ink);
}
.provencell-step-icon svg {
  width: 46px;
  height: 46px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.provencell-step-icon .accent {
  stroke: var(--brand);
}
.production-cells { background: var(--paper-2); }
.production-cell-grid { align-items: stretch; }
.production-cell-card {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-soft);
}
.production-cell-card video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #090a0b;
  object-fit: cover;
}
.production-cell-card--portrait video {
  aspect-ratio: 17 / 30;
  object-fit: cover;
}
.production-cell-portrait-grid {
  max-width: 820px;
  margin: clamp(1rem, 2.5vw, 1.5rem) auto 0;
  align-items: start;
}
.production-cell-card figcaption { padding: clamp(1.25rem, 2.4vw, 1.8rem); }
.production-cell-card figcaption .eyebrow { margin-bottom: 0.65rem; }
.production-cell-card h3 {
  margin-bottom: 0.65rem;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
}
.production-cell-card p { margin: 0; font-size: 14.5px; }
.production-cell-card p a { font-weight: 800; }

/* ---------- hero ---------- */
.hero {
  padding-top: clamp(8rem, 13vw, 10.5rem);
  padding-bottom: clamp(4rem, 8vw, 7rem);
}
.hero .lead { max-width: 88ch; }
.hero .kicker-row { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }

.hero-home {
  padding-top: clamp(7.5rem, 11vw, 10rem);
  padding-bottom: clamp(3rem, 5vw, 4.5rem);
  background:
    radial-gradient(circle at 12% 18%, rgba(197, 27, 31, 0.05), transparent 34%),
    linear-gradient(180deg, #fff 0%, var(--paper-2) 100%);
}
.home-page main > section:not(.hero-home) {
  padding-block: clamp(2rem, 3.5vw, 3rem);
}
.home-page main > section[style*="padding-top:0"] {
  padding-top: 0 !important;
}
.home-page .sec-head {
  margin-bottom: clamp(1.65rem, 2.8vw, 2.4rem);
}
.home-consolidation-photo {
  display: block;
  width: 100%;
  max-width: 420px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.home-consolidation-photo img {
  display: block;
  width: 100%;
  height: auto;
}
@media (max-width: 900px) {
  .home-consolidation .grid-2 {
    grid-template-columns: 1fr;
  }
}
.home-process-card {
  display: block;
  overflow: hidden;
  color: var(--ink);
  text-align: center;
}
.home-process-card .core {
  padding: 0.85rem 0.85rem 1.05rem;
}
.home-process-card picture {
  display: flex;
  width: 100%;
  max-width: 150px;
  aspect-ratio: 1;
  margin: 0 auto;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--paper-2);
}
.home-process-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.home-process-card-cover img {
  object-fit: cover;
  object-position: center;
  transform: scale(1.5);
}
.home-process-card-text {
  padding: 0.85rem 0.5rem 0.2rem;
}
.home-process-card-text h4 { margin-bottom: 0.35rem; }
.home-process-card-text p { margin: 0; }
.hero-home-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}
.hero-home-copy h1 {
  max-width: 22ch;
  font-size: clamp(1.9rem, 3.8vw, 3rem);
  line-height: 1.04;
}
.hero-home-copy .lead {
  max-width: 42ch;
  margin-top: 1.15rem;
}
.hero-home-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem 1.4rem;
  margin-top: 2.2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--line);
}
.hero-home-metrics .stat {
  border-left: 0;
  padding: 0;
}
.hero-home-metrics .stat b {
  font-size: clamp(1.45rem, 2.4vw, 2rem);
}
.hero-home-metrics .stat span {
  display: block;
  max-width: 16ch;
  line-height: 1.35;
}

.hero-showcase {
  position: relative;
  overflow: hidden;
  margin: 0;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(15, 17, 20, 0.08);
  border-radius: var(--radius-lg);
  background: #101214;
  box-shadow: var(--shadow-deep);
}
.hero-showcase-caption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 3;
  margin: 0;
  padding: 0.4rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(12, 14, 16, 0.72);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}
.hero-showcase.showing-process-grid .hero-showcase-caption {
  opacity: 0;
  pointer-events: none;
}
.hero-carousel-slides { position: relative; width: 100%; height: 100%; }
.hero-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s var(--ease);
}
.hero-carousel-slide.is-active { opacity: 1; z-index: 1; }
.hero-carousel-slide,
.hero-carousel-slide img {
  display: block;
  width: 100%;
  height: 100%;
}
.hero-carousel-slide img { object-fit: cover; }
.hero-process-slide { background: #17191c; }
.hero-process-grid {
  display: grid;
  width: 100%;
  height: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 2px;
  background: #fff;
}
.hero-process-intro {
  display: flex;
  min-width: 0;
  padding: clamp(1rem, 2.5vw, 1.6rem);
  flex-direction: column;
  justify-content: center;
  background: var(--brand-ink);
  color: #fff;
}
.hero-process-intro span {
  margin-bottom: 0.55rem;
  color: #ff9d9d;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.hero-process-intro strong {
  font: 900 clamp(1.2rem, 2.5vw, 1.75rem)/1.05 var(--font-display);
  letter-spacing: -0.025em;
}
.hero-process-intro small {
  max-width: 24ch;
  margin-top: 0.7rem;
  color: #c4c7ca;
  font-size: 11px;
  line-height: 1.4;
}
.hero-process-tile {
  position: relative;
  overflow: hidden;
  min-width: 0;
  margin: 0;
  background: #292c30;
}
.hero-process-tile::after {
  content: "";
  position: absolute;
  inset: 35% 0 0;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(4, 6, 8, 0.88));
}
.hero-process-tile picture,
.hero-process-tile img {
  display: block;
  width: 100%;
  height: 100%;
}
.hero-process-tile img {
  object-fit: cover;
  transition: transform 5s ease;
}
.hero-carousel-slide.is-active .hero-process-tile img { transform: scale(1.035); }
.hero-process-tile figcaption {
  position: absolute;
  right: 0.7rem;
  bottom: 0.65rem;
  left: 0.7rem;
  z-index: 1;
  color: #fff;
  line-height: 1.2;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}
.hero-process-tile figcaption strong {
  display: block;
  font-size: clamp(11px, 1.3vw, 14px);
}
.hero-process-tile figcaption span {
  display: block;
  margin-top: 0.18rem;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(8px, 0.95vw, 10.5px);
}
.hero-carousel-dots {
  position: absolute;
  right: 0.85rem;
  bottom: 0.85rem;
  z-index: 4;
  display: flex;
  gap: 0.45rem;
}
.hero-carousel-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: transform 0.2s var(--ease), background 0.2s var(--ease);
}
.hero-carousel-dots button.is-active {
  background: #fff;
  transform: scale(1.15);
}

/* logo strip */
.logo-strip {
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; align-items: center;
  opacity: 0.85;
}
.logo-strip .frame { padding: 0.25rem; }
.logo-strip img {
  height: 44px; width: auto;
  border-radius: 0.6rem;
  filter: grayscale(0.5) contrast(0.95);
}
.customers-section { background: var(--paper-2); }
.customer-logo-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 0.75rem;
}
.customer-logo {
  display: flex;
  min-width: 0;
  min-height: 88px;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0.45rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: #fff;
}
.customer-logo img {
  display: block;
  width: 100%;
  max-width: 138px;
  height: auto;
  object-fit: contain;
  filter: grayscale(0.25) contrast(0.98);
}

/* ---------- section headers ---------- */
.sec-head { max-width: 1000px; margin-bottom: clamp(2.2rem, 4vw, 3.6rem); }
.sec-head .lead { max-width: 88ch; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .eyebrow { margin-inline: auto; }

/* ---------- case cards ---------- */
.case-card { display: flex; flex-direction: column; height: 100%; }
.case-card .metrics { display: flex; gap: 1.4rem; margin: 1rem 0 1.2rem; flex-wrap: wrap; }
.case-card .metrics div b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--brand);
  letter-spacing: -0.02em;
}
.case-card .metrics div span { font-size: 12px; color: var(--muted); font-weight: 600; }
.case-card .link-more { margin-top: auto; font-weight: 700; font-size: 14.5px; }

/* ---------- custom-parts process cards ---------- */
.process-card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.process-card {
  display: block;
  overflow: hidden;
  color: var(--ink);
  text-align: center;
}
.process-card picture {
  display: flex;
  aspect-ratio: 1;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}
.process-card img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 200px;
  object-fit: contain;
}
.process-card h4 { margin: 0; padding: 1rem 0.75rem 1.1rem; }

/* ---------- testing QC cards ---------- */
.qc-test-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.qc-test-card {
  overflow: hidden;
  color: var(--ink);
}
.qc-test-card picture {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}
.qc-test-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.qc-test-card-copy { padding: 1.1rem 1.15rem 1.2rem; }
.qc-test-card-copy h4 { margin-bottom: 0.55rem; }
.qc-test-card-copy p { margin: 0; font-size: 14px; }

.part-value-grid .core { height: 100%; }
.quote-layout > * { min-width: 0; }
.quote-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}
.quote-detail {
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
}
.quote-detail > span {
  display: block;
  margin-bottom: 0.75rem;
  color: var(--brand);
  font: 800 11px/1 var(--font-display);
  letter-spacing: 0.14em;
}
.quote-detail h4 { margin-bottom: 0.4rem; }
.quote-detail p { margin: 0; font-size: 13.5px; }
.quote-resources {
  margin-top: 1rem;
  padding: 1rem 1.15rem;
  border-left: 3px solid var(--brand);
  background: var(--paper-2);
}
.quote-resources b { display: block; margin-bottom: 0.55rem; }
.quote-resources div { display: flex; flex-wrap: wrap; gap: 0.35rem 1.2rem; }
.quote-resources a { font-size: 13.5px; font-weight: 700; }
.quote-machining-photo picture,
.quote-machining-photo img { display: block; width: 100%; height: auto; }

/* ---------- about page photography ---------- */
.about-team-photo,
.company-building-photo,
.leadership-photo {
  display: block;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
}
.about-team-photo {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.about-team-photo img,
.company-building-photo img,
.leadership-photo img {
  display: block;
  width: 100%;
  height: auto;
}
.company-building-photo {
  width: min(100%, 420px);
  margin-inline: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}
.leadership-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1.35rem;
  align-items: start;
}
.leadership-photo {
  width: 120px;
  border-radius: 50%;
}
.leadership-card h4 { margin-top: 0.25rem; }

/* fact bar on case pages */
.facts {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
}
.fact {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 1rem 1.2rem;
}
.fact span { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.fact b { display: block; font-size: 15.5px; color: var(--ink); margin-top: 0.25rem; }

/* ---------- CTA band ---------- */
.cta-band .core.dark { text-align: center; padding: clamp(2.5rem, 6vw, 4.5rem); }
.cta-band .actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; margin-top: 1.8rem; }

/* ---------- footer ---------- */
footer {
  position: relative; z-index: 1;
  background: var(--brand-ink);
  color: #c3c3c3;
  margin-top: clamp(3rem, 6vw, 5rem);
  padding: clamp(3rem, 6vw, 4.5rem) 0 2rem;
  font-size: 14.5px;
  border-top: 4px solid var(--brand);
}
footer h4 { color: #fff; font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 1rem; }
footer a { color: #b9b9b9; display: block; padding: 0.22rem 0; }
footer a:hover { color: #fff; }
.foot-grid { display: grid; grid-template-columns: 1.25fr 1.1fr 0.9fr 1fr 1.1fr; gap: 2rem; }
.foot-brand img { height: 40px; width: auto; background: #fff; padding: 6px 10px; border-radius: 0.5rem; }
.foot-bottom {
  margin-top: 2.5rem; padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: 13px; color: #8f8f8f;
}

/* ---------- reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(38px);
  filter: blur(6px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease);
}
.reveal.in { opacity: 1; transform: translateY(0); filter: blur(0); }
.reveal.d1 { transition-delay: 0.08s; }
.reveal.d2 { transition-delay: 0.16s; }
.reveal.d3 { transition-delay: 0.24s; }
.reveal.d4 { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; filter: none; transition: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 1020px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .process-card-grid { grid-template-columns: repeat(3, 1fr); }
  .qc-test-grid { grid-template-columns: repeat(2, 1fr); }
  .customer-logo-grid { grid-template-columns: repeat(6, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .span-4, .span-5, .span-6, .span-7, .span-8 { grid-column: span 12; }
  .nav .brand small { display: none; }
  .weld-cycle { grid-template-columns: repeat(2, 1fr); }
  .hero-home-layout { grid-template-columns: 1fr; gap: 2rem; }
  .hero-home-copy h1 { max-width: 18ch; }
}
@media (max-width: 768px) {
  body { font-size: 15.5px; }
  .container { width: calc(100% - 2rem); }
  .nav-links { display: none; }
  .nav .btn { display: none; }
  .burger { display: block; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .ba { grid-template-columns: 1fr; }
  .ba .arrow { transform: rotate(90deg); margin-inline: auto; }
  .facts { grid-template-columns: 1fr 1fr; }
  .choice-grid { grid-template-columns: 1fr; }
  .process-card-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .qc-test-grid { grid-template-columns: 1fr; }
  .quote-detail-grid { grid-template-columns: 1fr; }
  .customer-logo-grid { grid-template-columns: repeat(3, 1fr); gap: 0.55rem; }
  .quote-confirmation { align-items: flex-start; flex-wrap: wrap; }
  .quote-confirmation .form-step { width: 100%; }
  .leadership-card { grid-template-columns: 88px 1fr; gap: 1rem; }
  .leadership-photo { width: 88px; }
  .weld-cycle { grid-template-columns: 1fr; }
  .weld-cycle-step { min-height: 0; }
  .foot-grid { grid-template-columns: 1fr; gap: 1.6rem; }
  .hero { padding-top: 7rem; }
  .hero-home-metrics { grid-template-columns: 1fr 1fr; }
  .hero-showcase { max-width: 640px; margin-inline: auto; }
}
