/* =========================================================================
   MANUFACTURING — manufacturing.html
   ========================================================================= */

/* ---------------- HERO ---------------- */
.manufacturing-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--charcoal);
  color: var(--milled);
  overflow: hidden;
}
#manufacturing-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.manufacturing-hero-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, var(--charcoal) 100%);
  pointer-events: none;
}
.manufacturing-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}
.manufacturing-hero h1 {
  font-size: var(--size-hero);
  color: var(--milled);
  margin: 1rem 0 1.6rem;
}
.manufacturing-hero .intro-lede { max-width: 44ch; }

.manufacturing-hero.no-webgl {
  background:
    radial-gradient(ellipse at 25% 25%, rgba(200,160,10,0.15), transparent 55%),
    radial-gradient(ellipse at 80% 75%, rgba(0,150,63,0.18), transparent 55%),
    var(--charcoal);
}
.manufacturing-hero.no-webgl #manufacturing-canvas { display: none; }

/* ---------------- JOURNEY (SCROLL-PINNED SEQUENCE) ----------------
   Accessible default: a normal stacked list, fully readable with no JS.
   Enhanced (.is-pinned-experience, added by manufacturing.js only when
   GSAP/ScrollTrigger are available and motion isn't reduced): panels
   stack absolutely and crossfade as the section pins on scroll. */
.journey-pinned { min-height: 60vh; }
.journey-pin-inner { width: 100%; }
.journey-pinned h2 { max-width: 20ch; }

.journey-stage {
  position: relative;
  margin-top: 3.5rem;
  display: flex;
  flex-direction: column;
  gap: 2.6rem;
}
.journey-panel {
  display: flex;
  align-items: baseline;
  gap: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line-dark);
}
.journey-panel-num {
  font-family: var(--font-mono);
  font-size: 1.6rem;
  color: var(--grain-gold);
  flex-shrink: 0;
  width: 3ch;
}
.journey-panel-content h3 {
  font-size: 1.15rem;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}
.journey-panel-content p {
  font-size: 0.95rem;
  color: var(--milled);
  opacity: 0.75;
  text-transform: none;
  max-width: 46ch;
}
.journey-dots { display: none; }

/* Enhanced pinned/crossfade layout — only applied once JS adds the class */
.journey-pinned.is-pinned-experience {
  min-height: 100vh;
  display: flex;
  align-items: center;
}
.is-pinned-experience .journey-stage {
  height: 260px;
  margin-top: 3.5rem;
  display: block;
}
.is-pinned-experience .journey-panel {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: 2.4rem;
  border-bottom: none;
  padding-bottom: 0;
  opacity: 0;
  transition: opacity 0.5s var(--ease-out);
  pointer-events: none;
}
.is-pinned-experience .journey-panel.is-active {
  opacity: 1;
  pointer-events: auto;
}
.is-pinned-experience .journey-panel-num {
  font-size: clamp(4rem, 9vw, 7rem);
  width: auto;
  line-height: 1;
}
.is-pinned-experience .journey-panel-content h3 { font-size: clamp(1.6rem, 3vw, 2.4rem); }
.is-pinned-experience .journey-panel-content p { font-size: 1.05rem; max-width: 40ch; }
.is-pinned-experience .journey-dots {
  display: flex;
  gap: 0.7rem;
  margin-top: 2.5rem;
}
.journey-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--line-dark);
  transition: background var(--dur-fast) var(--ease-out);
}
.journey-dot.is-active { background: var(--grain-gold); }

/* ---------------- QUALITY PROOF POINTS ---------------- */
.quality-section h2 { max-width: 20ch; }
.proof-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem 2rem;
  margin-top: 3.5rem;
  padding-top: 2.2rem;
  border-top: 1px solid var(--line-light);
  list-style: none;
}
.proof-point { flex: 1 1 180px; }
.proof-num {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  color: var(--paddy);
  margin-bottom: 0.8rem;
}
.proof-point h3 { font-size: 1.05rem; letter-spacing: 0.02em; }

/* ---------------- VERIFIED TECHNOLOGY ---------------- */
.technology-section h2 { max-width: 22ch; color: var(--milled); }
.technology-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gutter);
  margin-top: 3.5rem;
  padding-top: 2.2rem;
  border-top: 1px solid var(--line-dark);
}
.tech-field h3 {
  font-family: var(--font-mono);
  font-size: 0.7rem; 
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--grain-gold-soft);
  margin-bottom: 0.8rem;
}
.tech-field p {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--milled);
  text-transform: none;
}

/* ---------------- FINAL CTA ---------------- */
.manufacturing-final-cta { text-align: center; }
.manufacturing-final-cta .wrap { display: flex; flex-direction: column; align-items: center; gap: 2.2rem; }
.manufacturing-final-cta h2 { max-width: 16ch; }

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 900px) {
  .technology-grid { grid-template-columns: repeat(2, 1fr); }
  .is-pinned-experience .journey-stage { height: 320px; }
  .is-pinned-experience .journey-panel { flex-direction: column; align-items: flex-start; gap: 1rem; }
}
@media (max-width: 640px) {
  .technology-grid { grid-template-columns: 1fr; }
  .proof-rail { gap: 1.8rem; }
  .journey-panel { flex-direction: column; gap: 0.6rem; }
}