/* ============================================================
   LIGHTS OUT MANUFACTURING — landing
   Design language: industrial dark, single red accent, angled
   geometry, heavy uppercase display type. Inspired by methods
   machine tools.
   ============================================================ */

:root {
  /* color */
  --c-bg: #0b0b0d;
  --c-bg-2: #111114;
  --c-bg-3: #16161a;
  --c-surface: #1c1c20;
  --c-line: #2a2a2f;
  --c-line-strong: #3a3a40;
  --c-text: #f4f4f5;
  --c-text-mute: #a8a8af;
  --c-text-dim: #75757c;
  --c-red: #e10600;
  --c-red-2: #ff2a1a;
  --c-red-deep: #b00500;

  /* type */
  --font-display: "Clash Display", "Helvetica Neue", "Inter", system-ui,
    sans-serif;
  --font-body: "Satoshi", "Inter", system-ui, sans-serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: clamp(1.5rem, 2.2vw, 2rem);
  --text-2xl: clamp(2rem, 3.4vw, 3rem);
  --text-3xl: clamp(2.5rem, 5vw, 4.25rem);
  --text-hero: clamp(3rem, 7.5vw, 6.5rem);

  /* space */
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* radius / shadow */
  --r-sm: 2px;
  --r-md: 4px;
  --shadow-card: 0 10px 30px rgba(0, 0, 0, 0.45);
}

/* ---------- base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.55;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  cursor: pointer;
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.02;
  margin: 0;
}
p {
  margin: 0;
}
ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 2.5rem);
}

/* ---------- section heads & eyebrows ---------- */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-red);
  font-weight: 700;
}
.section-eyebrow i {
  display: inline-block;
  width: 26px;
  height: 2px;
  background: var(--c-red);
}
.section-eyebrow--light {
  color: var(--c-red-2);
}
.section-head {
  max-width: 760px;
  margin-bottom: var(--space-12);
}
.section-head--centered {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-head--centered .section-eyebrow {
  justify-content: center;
}
.section-title {
  font-size: var(--text-3xl);
  text-transform: uppercase;
  margin-top: var(--space-4);
  letter-spacing: -0.015em;
}
.section-title--light {
  color: #fff;
}
.section-sub {
  margin-top: var(--space-6);
  font-size: var(--text-lg);
  color: var(--c-text-mute);
  max-width: 60ch;
  line-height: 1.6;
}
.section-sub--light {
  color: rgba(255, 255, 255, 0.78);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0.95rem 1.5rem;
  border-radius: var(--r-sm);
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease,
    border-color 0.2s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn .arrow {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn:hover .arrow {
  transform: translateX(4px);
}
.btn--primary {
  background: var(--c-red);
  color: #fff;
}
.btn--primary:hover {
  background: var(--c-red-2);
}
.btn--ghost {
  background: rgba(11, 11, 13, 0.55);
  color: var(--c-text);
  border-color: rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(4px);
}
.btn--ghost:hover {
  border-color: var(--c-red);
  color: var(--c-red);
  background: rgba(11, 11, 13, 0.75);
}
.btn--ghost-light {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}
.btn--ghost-light:hover {
  border-color: #fff;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}
.btn--lg {
  padding: 1.1rem 1.75rem;
  font-size: var(--text-sm);
}
.btn--xl {
  padding: 1.3rem 2.2rem;
  font-size: var(--text-base);
}

/* ---------- utility bar ---------- */
.utility-bar {
  background: #000;
  border-bottom: 1px solid #1d1d20;
  font-size: var(--text-xs);
  color: var(--c-text-mute);
}
.utility-bar__inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
  gap: var(--space-4);
}
.utility-bar__left {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}
.utility-bar__right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  letter-spacing: 0.04em;
}
.utility-bar__right a {
  color: var(--c-text);
  font-weight: 600;
  transition: color 0.2s ease;
}
.utility-bar__right a:hover {
  color: var(--c-red);
}
.utility-bar__sep {
  color: #3a3a40;
}
.cert-pill {
  display: inline-flex;
  align-items: center;
  letter-spacing: 0.2em;
  font-weight: 700;
  font-size: 10px;
  color: var(--c-text-dim);
  border-left: 2px solid var(--c-red);
  padding-left: 0.6rem;
  text-transform: uppercase;
}

/* ---------- header ---------- */
.header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 11, 13, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-line);
}
.header__inner {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}
.brand__logo {
  /* Stacked LIGHTS OUT / MANUFACTURING wordmark — natural ratio ~ 2.55:1 */
  height: 68px;
  width: auto;
  display: block;
}
.nav {
  display: flex;
  gap: var(--space-8);
  margin-left: auto;
}
.nav a {
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--c-text);
  position: relative;
  padding: 0.4rem 0;
  transition: color 0.2s ease;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  background: var(--c-red);
  transition: right 0.25s ease;
}
.nav a:hover {
  color: var(--c-red);
}
.nav a:hover::after {
  right: 0;
}
.header__cta {
  margin-left: 0;
}
.menu-toggle {
  display: none;
  background: transparent;
  border: 0;
  color: var(--c-text);
  width: 40px;
  height: 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin-left: auto;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: currentColor;
}

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: min(820px, 92vh);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  isolation: isolate;
  background: #000;
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% center;
  /* clip-path so the image sits on a "sliced" diagonal panel — Methods style */
  clip-path: polygon(38% 0, 100% 0, 100% 100%, 22% 100%);
}
.hero__media-tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(
      90deg,
      #0b0b0d 0%,
      #0b0b0d 30%,
      rgba(11, 11, 13, 0.55) 50%,
      rgba(11, 11, 13, 0.15) 70%,
      rgba(11, 11, 13, 0.25) 100%
    ),
    radial-gradient(
      ellipse at 80% 50%,
      rgba(225, 6, 0, 0.18) 0%,
      transparent 60%
    );
}
.hero__slash {
  position: absolute;
  z-index: -1;
  left: -8%;
  bottom: -10%;
  width: 60%;
  height: 60%;
  background: var(--c-bg-2);
  transform: skewX(-18deg);
  border-right: 2px solid var(--c-red);
}
.hero__red-wedge {
  position: absolute;
  z-index: 0;
  right: -5%;
  bottom: 0;
  width: 55%;
  height: 26%;
  background: var(--c-red);
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%);
  opacity: 0.95;
}
.hero__content {
  position: relative;
  z-index: 2;
  padding-top: clamp(2.5rem, 6vw, 5rem);
  padding-bottom: clamp(5rem, 9vw, 7rem);
}
.hero__kicker {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--c-text-mute);
  margin-bottom: var(--space-6);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
}
.hero__kicker::before {
  content: "";
  display: inline-block;
  width: 36px;
  height: 2px;
  background: var(--c-red);
}
.hero__title {
  font-size: var(--text-hero);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.015em;
  word-spacing: 0.05em;
  line-height: 0.92;
  max-width: 14ch;
}
.hero__title-line {
  display: block;
}
.hero__title-line--accent {
  color: var(--c-red);
}
.hero__subtitle {
  margin-top: var(--space-8);
  font-size: var(--text-lg);
  color: rgba(255, 255, 255, 0.82);
  max-width: 50ch;
  line-height: 1.55;
}
.hero__actions {
  margin-top: var(--space-10);
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* marquee strip */
.hero__strip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  background: #000;
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  overflow: hidden;
  padding: 0.9rem 0;
}
.hero__strip-track {
  display: flex;
  gap: 2.25rem;
  white-space: nowrap;
  animation: marquee 38s linear infinite;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-xs);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--c-text-mute);
}
.hero__strip-track .dot {
  color: var(--c-red);
}
@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* ---------- statement ---------- */
.statement {
  padding: clamp(5rem, 10vw, 9rem) 0 clamp(3rem, 6vw, 5rem);
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-line);
}
.statement__grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--space-16);
  align-items: start;
}
.statement__label {
  position: sticky;
  top: 120px;
}
.statement__headline {
  font-size: var(--text-2xl);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  line-height: 1.05;
}
.statement__lede {
  margin-top: var(--space-6);
  font-size: var(--text-lg);
  color: var(--c-text);
  line-height: 1.55;
}
.statement__body {
  margin-top: var(--space-6);
  color: var(--c-text-mute);
  font-size: var(--text-base);
  line-height: 1.7;
  max-width: 62ch;
}

/* stat row */
.stat-row {
  margin-top: clamp(3rem, 7vw, 5.5rem);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}
.stat {
  padding: var(--space-10) var(--space-6);
  border-right: 1px solid var(--c-line);
  position: relative;
}
.stat:last-child {
  border-right: 0;
}
.stat::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background: var(--c-red);
}
.stat__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.25rem, 4vw, 3.25rem);
  line-height: 1;
  color: #fff;
  letter-spacing: -0.02em;
}
.stat__label {
  margin-top: var(--space-4);
  font-size: var(--text-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-text-mute);
  font-weight: 700;
}

/* ---------- capabilities ---------- */
.capabilities {
  padding: clamp(5rem, 10vw, 9rem) 0;
  background: var(--c-bg-2);
  position: relative;
}
.cap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--c-line);
  border: 1px solid var(--c-line);
}
.cap-card {
  background: var(--c-bg-2);
  padding: var(--space-10) var(--space-8) var(--space-8);
  position: relative;
  transition: background 0.3s ease, transform 0.3s ease;
  display: flex;
  flex-direction: column;
  min-height: 320px;
}
.cap-card:hover {
  background: var(--c-bg-3);
}
.cap-card::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 3px;
  background: var(--c-red);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.cap-card:hover::after {
  width: 100%;
}
.cap-card__num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--c-red);
  margin-bottom: var(--space-6);
}
.cap-card__title {
  font-size: var(--text-xl);
  text-transform: uppercase;
  letter-spacing: -0.005em;
  color: #fff;
  margin-bottom: var(--space-4);
}
.cap-card p {
  color: var(--c-text-mute);
  line-height: 1.6;
  flex: 1;
}
.cap-card__link {
  margin-top: var(--space-6);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-text);
  align-self: flex-start;
  border-bottom: 1px solid var(--c-line-strong);
  padding-bottom: 0.3rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.cap-card__link:hover {
  color: var(--c-red);
  border-color: var(--c-red);
}

/* ---------- showcase ---------- */
.showcase {
  padding: clamp(5rem, 10vw, 8rem) 0;
  background: var(--c-bg);
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}
.showcase__grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}
.showcase__media {
  position: relative;
  overflow: hidden;
  border-radius: var(--r-sm);
}
.showcase__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 4/3;
  clip-path: polygon(0 0, 100% 0, 100% 88%, 92% 100%, 0 100%);
}
.showcase__tag {
  position: absolute;
  left: 0;
  bottom: 8%;
  background: var(--c-red);
  color: #fff;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-xs);
  letter-spacing: 0.2em;
  padding: 0.7rem 1.25rem;
  text-transform: uppercase;
}
.showcase__title {
  font-size: var(--text-2xl);
  text-transform: uppercase;
  margin-top: var(--space-4);
  letter-spacing: -0.01em;
}
.showcase__copy p {
  margin-top: var(--space-6);
  font-size: var(--text-lg);
  color: var(--c-text-mute);
  line-height: 1.6;
}
.check-list {
  margin-top: var(--space-8);
  display: grid;
  gap: 0.65rem;
}
.check-list li {
  position: relative;
  padding-left: 2rem;
  font-size: var(--text-base);
  color: var(--c-text);
  line-height: 1.5;
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 14px;
  height: 2px;
  background: var(--c-red);
}

/* ---------- industries ---------- */
.industries {
  padding: clamp(5rem, 10vw, 9rem) 0;
  background: var(--c-bg-2);
}
.ind-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
.ind-tile {
  position: relative;
  padding: var(--space-10) var(--space-8);
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease;
  display: flex;
  flex-direction: column;
}
.ind-tile--has-media {
  padding-top: 0;
}
.ind-tile__media {
  position: relative;
  margin: 0 calc(-1 * var(--space-8)) var(--space-8);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #000;
}
.ind-tile__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.ind-tile__media::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 40%;
  background: linear-gradient(to bottom, rgba(11, 11, 12, 0) 0%, var(--c-bg) 100%);
  pointer-events: none;
}
.ind-tile:hover .ind-tile__media img {
  transform: scale(1.04);
}
.ind-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--c-red) 0%, transparent 40%);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.ind-tile:hover {
  border-color: var(--c-red);
  transform: translateY(-4px);
}
.ind-tile:hover::before {
  opacity: 0.12;
}
.ind-tile__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  color: var(--c-red);
  margin-bottom: var(--space-6);
  letter-spacing: 0.08em;
}
.ind-tile h3 {
  font-size: var(--text-xl);
  text-transform: uppercase;
  letter-spacing: -0.005em;
  color: #fff;
  margin-bottom: var(--space-3);
}
.ind-tile p {
  color: var(--c-text-mute);
  line-height: 1.55;
  position: relative;
  z-index: 1;
}

/* ---------- equipment ---------- */
.equipment {
  position: relative;
  padding: clamp(5rem, 10vw, 9rem) 0;
  overflow: hidden;
  isolation: isolate;
  background: #000;
}
.equipment__bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}
.equipment__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.38;
}
.equipment__bg-tint {
  position: absolute;
  inset: 0;
  background: linear-gradient(
      180deg,
      rgba(0, 0, 0, 0.88) 0%,
      rgba(0, 0, 0, 0.78) 35%,
      rgba(0, 0, 0, 0.82) 65%,
      rgba(0, 0, 0, 0.95) 100%
    ),
    radial-gradient(
      ellipse at 18% 50%,
      rgba(225, 6, 0, 0.18) 0%,
      transparent 55%
    );
}
.equipment__inner {
  position: relative;
}
/* ============================================================
   ENGINEERING SERVICES SECTION
   ============================================================ */
.engineering {
  padding: clamp(5rem, 10vw, 9rem) 0;
  background: var(--c-bg);
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
  position: relative;
}

/* Services grid (4 capability tiles) */
.eng-services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--c-line);
  border: 1px solid var(--c-line);
  margin-top: var(--space-4);
}
.eng-service {
  background: var(--c-bg-2);
  padding: var(--space-8) var(--space-6) var(--space-8);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: background 0.3s ease;
  min-height: 280px;
}
.eng-service:hover {
  background: var(--c-bg-3);
}
.eng-service__num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--c-red);
  margin-bottom: var(--space-6);
}
.eng-service__title {
  font-size: var(--text-lg);
  text-transform: uppercase;
  letter-spacing: -0.005em;
  color: #fff;
  margin: 0 0 var(--space-4);
  line-height: 1.15;
}
.eng-service p {
  color: var(--c-text-mute);
  line-height: 1.55;
  font-size: var(--text-sm);
}

/* Case study container */
.case-study {
  margin-top: clamp(4rem, 8vw, 6rem);
  padding: clamp(2.5rem, 5vw, 4rem) clamp(2rem, 4vw, 3rem);
  background: linear-gradient(
    180deg,
    rgba(225, 6, 0, 0.06) 0%,
    rgba(0, 0, 0, 0) 100%
  );
  border: 1px solid var(--c-line);
  border-top: 3px solid var(--c-red);
  position: relative;
}
.case-study__head {
  max-width: 60ch;
  margin-bottom: var(--space-10);
}
.case-study__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-2xl);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: #fff;
  line-height: 1.05;
  margin: var(--space-4) 0 var(--space-6);
}
.case-study__sub {
  color: var(--c-text-mute);
  font-size: var(--text-base);
  line-height: 1.7;
}

/* Three-image strip */
.case-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-12);
}
.case-strip__item {
  margin: 0;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #000;
}
.case-strip__item img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.case-strip__item:hover img {
  transform: scale(1.04);
}
.case-strip__item figcaption {
  padding: var(--space-4) var(--space-6) var(--space-6);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.6);
}
.case-strip__tag {
  display: block;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-red);
  margin-bottom: 0.5rem;
}
.case-strip__cap {
  display: block;
  color: rgba(255, 255, 255, 0.82);
  font-size: var(--text-sm);
  line-height: 1.5;
}

/* Workflow timeline (numbered, two-column) */
.workflow__heading {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--c-red);
  margin: 0 0 var(--space-6);
  padding-top: var(--space-4);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}
.workflow {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
  border-top: 1px solid var(--c-line);
  margin: 0;
  padding: 0;
  list-style: none;
}
.workflow li {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: var(--space-5);
  padding: var(--space-6) var(--space-4);
  border-bottom: 1px solid var(--c-line);
  align-items: start;
}
.workflow li:nth-child(odd) {
  border-right: 1px solid var(--c-line);
}
.workflow__num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--c-red);
  line-height: 1;
  letter-spacing: -0.02em;
}
.workflow__body h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #fff;
  margin: 0 0 0.6rem;
}
.workflow__body p {
  color: var(--c-text-mute);
  font-size: var(--text-sm);
  line-height: 1.55;
  margin: 0 0 0.6rem;
}
.workflow__tools {
  display: inline-block;
  font-family: var(--font-body) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase;
  color: var(--c-red) !important;
  margin-top: 0.25rem !important;
  padding-top: 0.6rem !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  line-height: 1.55 !important;
  width: 100%;
}

/* Case outcome stats row */
.case-outcome {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 2px solid var(--c-red);
  margin-top: var(--space-10);
  padding-top: var(--space-6);
}
.case-outcome__row {
  padding: var(--space-6) var(--space-4);
  border-right: 1px solid var(--c-line);
  text-align: left;
}
.case-outcome__row:last-child {
  border-right: 0;
}
.case-outcome__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  line-height: 1;
  color: #fff;
  letter-spacing: -0.02em;
}
.case-outcome__num span {
  font-size: 0.45em;
  font-weight: 600;
  color: var(--c-text-mute);
  margin-left: 0.15rem;
  vertical-align: baseline;
}
.case-outcome__label {
  margin-top: var(--space-3);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-text-mute);
  line-height: 1.4;
}

/* Toolchain (two-column list of licensed tools) */
.toolchain {
  margin-top: clamp(4rem, 7vw, 5.5rem);
  padding-top: var(--space-10);
  border-top: 1px solid var(--c-line);
}
.toolchain__heading {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
}
.toolchain__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-2xl);
  text-transform: uppercase;
  letter-spacing: -0.01em;
  color: #fff;
  line-height: 1.05;
}
.toolchain__grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-4);
}
.toolchain__col {
  background: var(--c-bg-2);
  border: 1px solid var(--c-line);
  padding: var(--space-8) var(--space-6) var(--space-8);
  position: relative;
}
.toolchain__col::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 32px;
  height: 2px;
  background: var(--c-red);
}
.toolchain__label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--c-line);
  margin-bottom: var(--space-5);
}
.toolchain__list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
}
.toolchain__list li {
  position: relative;
  padding: 0.55rem 0 0.55rem 1.4rem;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.82);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.06);
}
.toolchain__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1rem;
  width: 10px;
  height: 2px;
  background: var(--c-red);
}

/* ---------- equip-grid (visual machine + part catalog) ---------- */
.equip-grid {
  margin-top: var(--space-10);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
.equip-card {
  display: flex;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  overflow: hidden;
  position: relative;
  transition: border-color 0.3s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.equip-card::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 3px;
  background: var(--c-red);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.equip-card:hover {
  border-color: rgba(225, 6, 0, 0.45);
  transform: translateY(-4px);
}
.equip-card:hover::after {
  width: 100%;
}
.equip-card__machine,
.equip-card__part {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000;
}
.equip-card__machine img,
.equip-card__part img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.equip-card:hover .equip-card__machine img,
.equip-card:hover .equip-card__part img {
  transform: scale(1.04);
}
.equip-card__divider {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 0;
  background: rgba(0, 0, 0, 0.85);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.equip-card__divider span {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.3em;
  color: var(--c-red);
  position: relative;
  padding: 0 0.85rem;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1;
}
.equip-card__divider::before {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: 50%;
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
}
.equip-card__body {
  padding: var(--space-6) var(--space-6) var(--space-8);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.equip-card__model {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  text-transform: uppercase;
  letter-spacing: -0.005em;
  color: #fff;
  line-height: 1.15;
  margin: 0;
}
.equip-card__type {
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.5;
  margin: 0;
}
.equip-card__part-label {
  margin-top: auto;
  padding-top: var(--space-4);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--c-red);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* ---------- QMS / process (AS9100D-aligned) ---------- */
.process {
  padding: clamp(5rem, 10vw, 9rem) 0;
  background: var(--c-bg);
  position: relative;
}

/* PDCA flowchart */
.qms-flow {
  margin-top: var(--space-12);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-8);
  position: relative;
}
.qms-flow__col {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  position: relative;
}
.qms-flow__phase {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding: 0 0 var(--space-4);
  border-bottom: 2px solid var(--c-red);
  margin-bottom: var(--space-2);
}
.qms-flow__phase-label {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1;
}
.qms-flow__phase-sub {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-red);
}
.qms-flow__card {
  background: var(--c-bg-2);
  border: 1px solid var(--c-line);
  padding: var(--space-6) var(--space-5);
  position: relative;
  flex: 1;
  min-height: 200px;
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}
.qms-flow__card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 2px;
  background: var(--c-red);
}
.qms-flow__card:hover {
  background: var(--c-bg-3);
  border-color: rgba(225, 6, 0, 0.35);
  transform: translateY(-2px);
}
.qms-flow__num {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--c-red);
  margin-top: var(--space-3);
  margin-bottom: var(--space-3);
}
.qms-flow__card h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.2;
  margin: 0 0 var(--space-3);
}
.qms-flow__card p {
  color: var(--c-text-mute);
  font-size: 0.85rem;
  line-height: 1.55;
  margin: 0;
}

/* Inter-column arrows */
.qms-flow__arrow {
  position: absolute;
  color: var(--c-red);
  display: block;
  pointer-events: none;
}
.qms-flow__arrow--right {
  /* sits in the gap between columns, vertically centered on the column */
  top: 50%;
  right: calc(-1 * var(--space-8));
  width: var(--space-8);
  height: 16px;
  transform: translateY(-50%);
}
.qms-flow__arrow svg {
  display: block;
  width: 100%;
  height: 100%;
}

/* Continual improvement loop */
.qms-flow__loop {
  margin-top: var(--space-8);
  position: relative;
  height: 60px;
  color: rgba(225, 6, 0, 0.55);
}
.qms-flow__loop-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.qms-flow__loop-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--c-bg);
  padding: 0 var(--space-4);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--c-red);
}

/* Pillars sub-strip */
.qms-pillars {
  margin-top: clamp(3rem, 6vw, 4.5rem);
  padding-top: var(--space-10);
  border-top: 1px solid var(--c-line);
}
.qms-pillars__heading {
  margin-bottom: var(--space-8);
}
.qms-pillars__title {
  margin-top: var(--space-4);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-xl);
  text-transform: uppercase;
  letter-spacing: -0.005em;
  color: #fff;
  line-height: 1.15;
  max-width: 60ch;
}
.qms-pillars__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--c-line);
  border: 1px solid var(--c-line);
}
.qms-pillar {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: var(--space-5) var(--space-6);
  background: var(--c-bg-2);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
  color: #fff;
  transition: background 0.3s ease, color 0.3s ease;
}
.qms-pillar:hover {
  background: var(--c-bg-3);
  color: var(--c-red);
}
.qms-pillar__mark {
  flex-shrink: 0;
  width: 22px;
  height: 2px;
  background: var(--c-red);
}

/* ---------- legacy process classes (no longer used) ---------- */
.process__grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: var(--space-16);
  align-items: start;
}
.process__copy {
  position: sticky;
  top: 120px;
}
.process__copy p {
  margin-top: var(--space-6);
  color: var(--c-text-mute);
  font-size: var(--text-lg);
  line-height: 1.6;
}
.process__steps {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--c-line);
}
.process__steps li {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: var(--space-6);
  padding: var(--space-8) 0;
  border-bottom: 1px solid var(--c-line);
  align-items: start;
}
.process__step-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--c-red);
  line-height: 1;
}
.process__steps h3 {
  font-size: var(--text-lg);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
  margin-bottom: var(--space-3);
}
.process__steps p {
  color: var(--c-text-mute);
  line-height: 1.6;
}

/* ---------- Subpage hero (engineering / equipment pages) ---------- */
.subhero {
  position: relative;
  padding: clamp(5rem, 11vw, 9rem) 0 clamp(3rem, 6vw, 5rem);
  background: linear-gradient(
      180deg,
      var(--c-bg) 0%,
      var(--c-bg-2) 100%
    );
  border-bottom: 1px solid var(--c-line);
  overflow: hidden;
  isolation: isolate;
}
.subhero::before {
  /* angled red accent bar in the lower-right corner */
  content: "";
  position: absolute;
  right: -4%;
  bottom: -6%;
  width: 40%;
  height: 18%;
  background: var(--c-red);
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%);
  opacity: 0.85;
  z-index: -1;
}
.subhero::after {
  /* dark slash in the lower-left, matching hero language */
  content: "";
  position: absolute;
  left: -6%;
  bottom: -10%;
  width: 50%;
  height: 50%;
  background: var(--c-bg-3);
  transform: skewX(-18deg);
  border-right: 2px solid var(--c-red);
  z-index: -2;
}
.subhero__kicker {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--c-text-mute);
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: var(--space-6);
}
.subhero__kicker::before {
  content: "";
  display: inline-block;
  width: 36px;
  height: 2px;
  background: var(--c-red);
}
.subhero__title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: -0.025em;
  line-height: 0.95;
  color: #fff;
  margin: 0;
  max-width: 22ch;
}
.subhero__lede {
  margin-top: var(--space-8);
  max-width: 60ch;
  font-size: var(--text-lg);
  color: var(--c-text-mute);
  line-height: 1.55;
}

/* ---------- Home-page section teasers (engineering + equipment cards) ---------- */
.teasers {
  padding: clamp(5rem, 10vw, 8rem) 0;
  background: var(--c-bg);
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}
.teaser-grid {
  margin-top: var(--space-12);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-6);
}
.teaser-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}
.teaser-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1280px) {
  .teaser-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 1024px) {
  .teaser-grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
}
.teaser-card {
  display: flex;
  flex-direction: column;
  background: var(--c-bg-2);
  border: 1px solid var(--c-line);
  overflow: hidden;
  position: relative;
  transition: border-color 0.3s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  color: inherit;
  text-decoration: none;
}
.teaser-card::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 3px;
  background: var(--c-red);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.teaser-card:hover {
  border-color: rgba(225, 6, 0, 0.45);
  transform: translateY(-4px);
}
.teaser-card:hover::after {
  width: 100%;
}
.teaser-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #000;
}
.teaser-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.teaser-card:hover .teaser-card__media img {
  transform: scale(1.04);
}
.teaser-card__body {
  padding: var(--space-8) var(--space-6);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.teaser-card__eyebrow {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-red);
}
.teaser-card__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.005em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.1;
  margin: 0;
}
.teaser-card__body p {
  color: var(--c-text-mute);
  font-size: var(--text-base);
  line-height: 1.55;
  margin: 0;
}
.teaser-card__cta {
  margin-top: auto;
  padding-top: var(--space-4);
  border-top: 1px solid var(--c-line);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-text);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.teaser-card:hover .teaser-card__cta {
  color: var(--c-red);
}
.teaser-card:hover .teaser-card__cta .arrow {
  transform: translateX(4px);
}
.teaser-card__cta .arrow {
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Certifications strip ---------- */
.certs {
  padding: clamp(4rem, 8vw, 7rem) 0;
  background: var(--c-bg);
  border-top: 1px solid var(--c-line);
}
.certs__head {
  max-width: 60ch;
  margin-bottom: var(--space-12);
}
.certs__lede {
  margin-top: var(--space-6);
  font-size: var(--text-lg);
  color: var(--c-text-mute);
  line-height: 1.5;
}
.certs__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-6);
}
.certs__badge {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: var(--space-6);
  align-items: center;
  background: var(--c-bg-2);
  border: 1px solid var(--c-line);
  padding: var(--space-6);
  position: relative;
  min-height: 220px;
  transition: border-color 0.3s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.certs__badge::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--c-red);
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.certs__badge:hover {
  border-color: rgba(225, 6, 0, 0.45);
  transform: translateY(-2px);
}
.certs__badge:hover::after {
  width: 100%;
}
.certs__badge-img {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  background: #0e0e11;
  border: 1px solid var(--c-line);
  border-radius: 2px;
  min-height: 160px;
  overflow: hidden;
}
.certs__badge-img--light {
  background: #fff;
}
.certs__badge-img img {
  width: 100%;
  max-height: 180px;
  height: auto;
  object-fit: contain;
  display: block;
}
.certs__badge-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-lg);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--c-line);
}
.certs__badge-text {
  color: var(--c-text-mute);
  font-size: var(--text-sm);
  line-height: 1.55;
  margin: 0;
}

/* ---------- RFQ CTA ---------- */
.rfq {
  position: relative;
  background: var(--c-red);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.rfq__slash {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    var(--c-red-deep) 0%,
    var(--c-red) 50%,
    var(--c-red-2) 100%
  );
  z-index: -1;
}
.rfq__slash::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 40%;
  background: rgba(0, 0, 0, 0.18);
  clip-path: polygon(28% 0, 100% 0, 100% 100%, 0 100%);
}
.rfq__inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: var(--space-10);
  align-items: center;
  padding: clamp(3rem, 6vw, 5rem) clamp(1rem, 3vw, 2.5rem);
}
.rfq__title {
  font-size: var(--text-2xl);
  text-transform: uppercase;
  margin-top: var(--space-3);
  letter-spacing: -0.015em;
  color: #fff;
}
.rfq__sub {
  margin-top: var(--space-4);
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.88);
  max-width: 50ch;
  line-height: 1.55;
}
.rfq__actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  align-items: stretch;
}
.rfq .btn--primary {
  background: #000;
  color: #fff;
}
/* Eyebrow on the red RFQ background needs to be white for contrast */
.rfq .section-eyebrow,
.rfq .section-eyebrow--light {
  color: #fff;
}
.rfq .section-eyebrow i {
  background: #fff;
}
.rfq .btn--primary:hover {
  background: #111;
}
.rfq .btn--ghost-light {
  /* Match the phone button to the email button: solid black background. */
  background: #000;
  color: #fff;
  border-color: #000;
}
.rfq .btn--ghost-light:hover {
  background: #111;
  border-color: #111;
  color: #fff;
}
.rfq__address {
  /* Plain white address line beneath the phone button. */
  display: block;
  padding: 0.5rem 0 0;
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: 0.01em;
  font-size: 0.95rem;
  line-height: 1.4;
  text-align: center;
  transition: color 0.2s ease;
  white-space: nowrap;
}
.rfq__address:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- footer ---------- */
.footer {
  background: #050506;
  padding: clamp(3rem, 6vw, 5rem) 0 var(--space-6);
  border-top: 1px solid var(--c-line);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: var(--space-12);
  align-items: start;
  padding-bottom: var(--space-10);
  border-bottom: 1px solid var(--c-line);
}
.footer__brand {
  /* Width-cap the brand block so logo + tag share the same width axis.
     Lift the brand up so the logo's vertical center aligns with the
     CAPABILITIES / COMPANY / CONTACT column headings. */
  max-width: 280px;
  /* The wordmark PNG has ~17% top whitespace; lift to align the visible
     top of "LIGHTS" with the top of the CAPABILITIES h4. */
  margin-top: -1rem;
}
.footer__logo {
  width: 100%;
  height: auto;
  display: block;
}
.footer__tag {
  margin-top: var(--space-4);
  color: var(--c-text-mute);
  width: 100%;
  line-height: 1.45;
  font-size: var(--text-sm);
  text-align: center;
}
.footer__col h4 {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--c-red);
  margin-bottom: var(--space-6);
  font-weight: 700;
}
.footer__col a {
  display: block;
  padding: 0.35rem 0;
  color: var(--c-text);
  font-size: var(--text-sm);
  transition: color 0.2s ease;
}
.footer__col a:hover {
  color: var(--c-red);
}
.footer__addr {
  margin-top: var(--space-4);
  color: var(--c-text-mute);
  font-size: var(--text-sm);
}
.footer__bottom {
  padding-top: var(--space-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-4);
  color: var(--c-text-dim);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
}
.footer__compliance {
  letter-spacing: 0.22em;
  font-weight: 700;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1024px) {
  .nav {
    display: none;
  }
  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }
  .header__cta {
    display: none;
  }
  .cap-grid,
  .ind-grid,
  .equip-grid,
  .eng-services {
    grid-template-columns: repeat(2, 1fr);
  }
  /* PDCA flowchart: collapse to 2 cols on tablet with down arrows */
  .qms-flow {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-12) var(--space-8);
  }
  .qms-flow__arrow--right {
    /* on tablet, only the arrow after column 2 (DO) needs to point down to row 2 */
    top: auto;
    right: 50%;
    bottom: calc(-1 * var(--space-12));
    transform: translateX(50%) rotate(90deg);
  }
  /* hide the arrow at the end of column 4 (was off-canvas anyway) */
  .qms-flow__col:nth-child(2) .qms-flow__arrow--right {
    display: none;
  }
  .qms-pillars__grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .case-strip {
    grid-template-columns: 1fr;
  }
  .workflow {
    grid-template-columns: 1fr;
  }
  .workflow li:nth-child(odd) {
    border-right: 0;
  }
  .case-outcome {
    grid-template-columns: repeat(2, 1fr);
  }
  .case-outcome__row:nth-child(2) {
    border-right: 0;
  }
  .case-outcome__row:nth-child(1),
  .case-outcome__row:nth-child(2) {
    border-bottom: 1px solid var(--c-line);
  }
  .toolchain__grid {
    grid-template-columns: 1fr;
  }
  .certs__grid {
    grid-template-columns: 1fr;
  }
  .stat-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .stat:nth-child(2) {
    border-right: 0;
  }
  .stat:nth-child(1),
  .stat:nth-child(2) {
    border-bottom: 1px solid var(--c-line);
  }
  .statement__grid,
  .showcase__grid,
  .process__grid,
  .rfq__inner {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }
  .statement__label,
  .process__copy {
    position: static;
  }
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-10);
  }
  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 700px) {
  .utility-bar__left {
    display: none;
  }
  .header__inner {
    gap: var(--space-4);
  }
  .brand__logo {
    height: 56px;
  }
  .hero {
    min-height: 100vh;
  }
  .hero__media img {
    clip-path: polygon(0 55%, 100% 35%, 100% 100%, 0 100%);
    object-position: center;
  }
  .hero__media-tint {
    background: linear-gradient(
        180deg,
        #0b0b0d 0%,
        #0b0b0d 35%,
        rgba(11, 11, 13, 0.6) 55%,
        rgba(11, 11, 13, 0.2) 80%
      ),
      radial-gradient(
        ellipse at 50% 90%,
        rgba(225, 6, 0, 0.22) 0%,
        transparent 60%
      );
  }
  .hero__slash {
    display: none;
  }
  .hero__red-wedge {
    width: 100%;
    height: 14%;
  }
  .hero__title {
    max-width: none;
  }
  .cap-grid,
  .ind-grid,
  .equip-grid,
  .eng-services {
    grid-template-columns: 1fr;
  }
  /* PDCA flowchart: full vertical stack with down arrows */
  .qms-flow {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }
  .qms-flow__col:nth-child(2) .qms-flow__arrow--right {
    display: block;
  }
  .qms-flow__arrow--right {
    top: auto;
    right: 50%;
    bottom: calc(-1 * var(--space-10));
    transform: translateX(50%) rotate(90deg);
    width: 60px;
  }
  .qms-flow__loop {
    /* hide the horizontal return loop on mobile; the cycle is implied by content */
    display: none;
  }
  .teaser-grid {
    grid-template-columns: 1fr;
  }
  .qms-pillars__grid {
    grid-template-columns: 1fr;
  }
  .case-outcome {
    grid-template-columns: 1fr;
  }
  .case-outcome__row {
    border-right: 0;
    border-bottom: 1px solid var(--c-line);
  }
  .case-outcome__row:last-child {
    border-bottom: 0;
  }
  .toolchain__list {
    grid-template-columns: 1fr;
  }
  .certs__badge {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
  .certs__badge-img {
    max-width: 200px;
    margin: 0 auto;
  }
  .stat-row {
    grid-template-columns: 1fr;
  }
  .stat {
    border-right: 0;
    border-bottom: 1px solid var(--c-line);
  }
  .stat:last-child {
    border-bottom: 0;
  }
  .equip-list li {
    grid-template-columns: 1fr;
    gap: var(--space-2);
  }
  .footer__grid {
    grid-template-columns: 1fr;
  }
  .rfq__actions .btn {
    justify-content: center;
  }
}

/* mobile menu open state */
.nav.is-open {
  display: flex;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  background: var(--c-bg);
  border-bottom: 1px solid var(--c-line);
  padding: var(--space-6) clamp(1rem, 3vw, 2.5rem);
  gap: var(--space-4);
}
.nav.is-open a {
  padding: 0.5rem 0;
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero__strip-track {
    animation: none;
  }
  * {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
