/* ====================================================================
 * product-development.preview.css · 2026-05-29 · bespoke restoration
 * Per-page CSS only. Brand decisions live in brand.css (locked).
 * --------------------------------------------------------------------
 * § JOURNEY · sketch → real prototype scroll-pinned story
 * ==================================================================== */

/* Body overflow-x: clip was previously breaking sticky in older browsers; modern
 * Chrome/Firefox/Safari (2023+) handle clip-on-one-axis with sticky correctly.
 * Reverting our override so the nav doesn't get a repaint-bounce from a body
 * overflow shift. If sticky regresses, restore: body { overflow-x: visible !important }. */

/* ====================================================================
 * § PD-JOURNEY · copied VERBATIM from src/wp-import/brand.preview.css
 * (lines 7244-7383). The LIVE brand.css doesn't ship these rules —
 * brand.preview.css does, but that's the dev-preview-only stylesheet.
 * cad-local-view.html uses brand.preview.css so it works; our LIVE page
 * uses brand.css so we need the rules page-scoped.
 * ==================================================================== */
.pd-journey-root {
  --pdj-ink: #0f1418;
  --pdj-ink-soft: #4a5560;
  --pdj-mint: #0ee7bf;
  --pdj-mint-deep: #06b497;
  --pdj-paper: #f7f5f2;
  --pdj-line: #d6d2cb;
  position: relative;
  background: transparent;
  color: var(--pdj-ink);
  width: 100vw;
  left: 50%;
  margin-left: -50vw;
}
/* Lock the nav with position: fixed (page-scoped via page-id-110).
 * The default `position: sticky` was vibrating because of interactions with
 * the journey-pin sticky chain + transform repaints below. */
body.page-id-110 header.site-header {
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
}
body.page-id-110 main, body.page-id-110 > main { padding-top: 130px; }
.pd-journey-root .pd-journey-intro {
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  position: sticky; top: 130px; z-index: 5;
  background: var(--pdj-paper);
  /* Tight padding so intro band is ~110px tall (not 236px) */
  padding: 14px 24px 12px;
  max-width: none; margin: 0 auto;
  text-align: center;
  border-bottom: 1px solid var(--pdj-line);
}
.pd-journey-root .pd-journey-intro h2 {
  font-size: clamp(18px, 1.9vw, 22px);
  font-weight: 700; letter-spacing: -0.01em; line-height: 1.15;
  color: var(--pdj-ink); margin: 0;
}
.pd-journey-root .pd-journey-intro p {
  margin: 4px 0 0; font-size: 13px;
  color: var(--pdj-ink-soft); max-width: 640px; line-height: 1.4;
}
.pd-journey-root .pd-journey-cue {
  margin-top: 6px; font-size: 11px;
}
.pd-journey-root .pd-journey-cue::after { content: ' ↓'; margin-left: 4px; }
.pd-journey-root .pd-journey-cue {
  color: var(--pdj-ink-soft);
  letter-spacing: 0.15em; text-transform: uppercase;
}
.pd-journey-root .pd-journey {
  position: relative;
  /* 520vh = ~420vh of pan scroll for 6 stages = ~70vh per stage. Slower, more comfortable. */
  height: 520vh;
}
.pd-journey-root .pd-journey-pin {
  position: sticky;
  /* Pin sits below nav (130px) + intro band (~110px after shrink) = 240px */
  top: 240px;
  height: calc(100vh - 240px - 40px);
  min-height: 420px;
  overflow: hidden;
  background: var(--pdj-paper);
}
.pd-journey-root .pd-journey-track {
  display: flex; height: 100%; will-change: transform;
  transition: transform 80ms linear;
}
.pd-journey-root .pd-stage {
  flex: 0 0 100vw; height: 100%;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center;
  padding-block: 56px 24px;
  /* Tight outer padding so adjacent stages don't have huge cream gaps between
   * them when panning. Was capping content at 1040px (200-440px gaps each side
   * at wide vps); now small fixed 64px outer padding. */
  padding-inline: 64px;
  gap: 40px;
  box-sizing: border-box;
}
.pd-journey-root .pd-stage-visual {
  position: relative;
  /* Square card — matches the 1:1 source images so they fill edge-to-edge with no
   * letterboxing. Wide images (iteration trio 1200×513) get centre-cropped. */
  aspect-ratio: 1 / 1;
  max-height: 56vh;
  border-radius: 14px;
  overflow: hidden;
  background: var(--pdj-line);
  box-shadow: 0 16px 40px -14px rgba(15,20,24,0.20);
}
.pd-journey-root .pd-stage-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Iteration trio is wide (1200×513) — for that stage specifically, use cover
 * with the leftmost prototype as focal point. */
.pd-journey-root .pd-stage[data-stage="3"] .pd-stage-visual { aspect-ratio: 4 / 3; }
.pd-journey-root .pd-stage[data-stage="3"] .pd-stage-visual img { object-position: center; }
.pd-journey-root .pd-stage-visual svg { width: 100%; height: 100%; display: block; }
.pd-journey-root .pd-stage-visual--napkin {
  background: #f4ecdb;
  box-shadow: 0 30px 80px -20px rgba(120,90,40,0.35), inset 0 0 0 1px rgba(0,0,0,0.04);
}
.pd-journey-root .pd-stage-visual--nda { position: relative; overflow: hidden; }
.pd-journey-root .pd-stage-visual--nda img {
  filter: blur(14px) saturate(0.85) brightness(0.95);
  transform: scale(1.06);
}
.pd-journey-root .pd-stage-visual--nda::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(15,20,24,0.06) 0%, rgba(15,20,24,0.18) 100%);
  pointer-events: none;
}
.pd-journey-root .pd-nda-badge {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  background: rgba(15,20,24,0.92); color: white;
  font-family: 'SF Mono', 'JetBrains Mono', Consolas, monospace;
  font-size: 10px; font-weight: 600; letter-spacing: 0.20em;
  padding: 6px 12px; border-radius: 100px;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.18);
}
.pd-journey-root .pd-stage-copy { max-width: 520px; }
.pd-journey-root .pd-stage-num {
  display: inline-block;
  font-size: 12px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: #015a4a; margin-bottom: 14px;
  padding: 6px 12px; background: rgba(14,231,191,0.18); border-radius: 100px;
}
.pd-journey-root .pd-stage-h2 {
  font-size: clamp(20px, 2vw, 26px);
  font-weight: 700; line-height: 1.2; letter-spacing: -0.015em;
  margin-bottom: 12px; color: var(--pdj-ink);
}
.pd-journey-root .pd-stage-body { font-size: 15px; color: var(--pdj-ink-soft); line-height: 1.55; }
.pd-journey-root .pd-stage-body strong { color: var(--pdj-ink); font-weight: 600; }
.pd-journey-root .pd-journey-progress {
  position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 6px; z-index: 5;
}
.pd-journey-root .pd-progress-seg {
  width: 36px; height: 3px;
  background: rgba(15,20,24,0.15); border-radius: 100px;
  transition: background 0.3s;
}
.pd-journey-root .pd-progress-seg.is-done { background: var(--pdj-ink); }
.pd-journey-root .pd-progress-seg.is-active { background: var(--pdj-mint-deep); }
.pd-journey-root .pd-scroll-hint {
  position: absolute; bottom: 28px; right: 28px;
  font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--pdj-ink-soft);
  display: flex; align-items: center; gap: 10px; z-index: 6;
  background: rgba(247, 245, 242, 0.86);
  backdrop-filter: blur(8px); padding: 8px 12px; border-radius: 100px;
  border: 1px solid rgba(15,20,24,0.08);
}
.pd-journey-root .pd-skip-link {
  color: var(--pdj-ink); background: rgba(15,20,24,0.06);
  padding: 5px 10px; border-radius: 100px; text-decoration: none;
  border: 1px solid rgba(15,20,24,0.12);
  font-weight: 600; letter-spacing: 0.12em; font-size: 10px;
}
.pd-journey-root .pd-skip-link:hover { background: rgba(15,20,24,0.1); }
.pd-journey-root .pd-stage-cta-inline {
  display: inline-block; margin-top: 16px;
  padding: 10px 20px; font-size: 14px; font-weight: 600;
  color: var(--pdj-mint-deep); background: transparent;
  border: 1.5px solid var(--pdj-mint-deep); border-radius: 100px;
  text-decoration: none;
}
.pd-journey-root .pd-stage-cta-inline:hover { background: var(--pdj-mint-deep); color: white; }

/* Mobile fallback: linear stack, no scroll-pin */
@media (max-width: 860px) {
  .pd-journey-root { width: 100%; left: 0; margin-left: 0; }
  .pd-journey-root .pd-journey-intro { position: static; padding: 20px 16px; }
  .pd-journey-root .pd-journey { height: auto; }
  .pd-journey-root .pd-journey-pin { position: static; height: auto; min-height: 0; top: auto; }
  .pd-journey-root .pd-journey-track { display: block; transform: none !important; }
  .pd-journey-root .pd-stage {
    flex: 0 0 auto; width: 100%; height: auto;
    grid-template-columns: 1fr;
    padding: 28px 18px; gap: 18px;
  }
  .pd-journey-root .pd-stage-visual { max-height: 50vh; }
  .pd-journey-root .pd-stage-h2 { font-size: clamp(22px, 6vw, 30px); }
  .pd-journey-root .pd-journey-progress, .pd-journey-root .pd-scroll-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .pd-journey-root .pd-journey { height: auto; }
  .pd-journey-root .pd-journey-pin { position: static; height: auto; min-height: 0; }
  .pd-journey-root .pd-journey-track { display: block; transform: none !important; }
  .pd-journey-root .pd-stage { flex: 0 0 auto; height: auto; }
}


/* ====================================================================
 * § B2-2 · TRUST BAND · remove the boxed card around the 3 stats
 * brand.css sets #sec-025 { background, border, border-radius } — strip
 * those so the stats sit freestanding on the page bg.
 * ==================================================================== */
#sec-025 {
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding-left: 0;
  padding-right: 0;
}

/* ====================================================================
 * § EXAMPLES WEDGE GRID · "3D printing YES · moulding NO" 6-tile grid
 * Page-layout override for .wedge-grid (default brand.css is stacked).
 * ==================================================================== */
.wedge-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 40px;
}
.wedge-grid .wedge-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 1px 0 rgba(15,20,24,0.05), 0 8px 24px -12px rgba(15,20,24,0.12);
  border: 1px solid rgba(15,20,24,0.06);
  transition: transform 0.2s, box-shadow 0.2s;
}
.wedge-grid .wedge-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 1px 0 rgba(15,20,24,0.06), 0 16px 36px -14px rgba(15,20,24,0.18);
}
.wedge-grid .wedge-card .visual {
  position: relative;
  width: 100%;
  height: auto !important;
  aspect-ratio: 1 / 1 !important;
  overflow: hidden;
  background: #f4f3ef !important;
  padding: 16px;
  box-sizing: border-box;
  display: block !important;
}
.wedge-grid .wedge-card .visual > img,
.wedge-grid .wedge-card .visual img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  display: block;
  border-radius: 8px;
}
.wedge-grid .wedge-card .body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}
.wedge-grid .wedge-card .body h4 {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0;
}
.wedge-grid .wedge-card .body p {
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
  color: #4a5560;
}
.wedge-grid .wedge-card .body p strong { color: #0f1418; font-weight: 600; }
.wedge-grid .wedge-card .body .impossible {
  margin-top: auto;
  padding-top: 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #8b3a3a;
  border-top: 1px dashed rgba(15,20,24,0.10);
}

@media (max-width: 1024px) {
  .wedge-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
}
@media (max-width: 600px) {
  .wedge-grid { grid-template-columns: 1fr; gap: 18px; }
}

/* ====================================================================
 * § B2-3 · CASE STUDIES section heading (above the Jet ski + Robot arm cards)
 * ==================================================================== */
.case-studies-heading {
  max-width: 1100px;
  margin: 56px auto 28px;
  padding: 0 24px;
  text-align: center;
}
.case-studies-heading .eyebrow {
  display: inline-block;
  font-family: 'SF Mono', 'JetBrains Mono', Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #015a4a;
  padding: 6px 12px;
  background: rgba(14,231,191,0.18);
  border-radius: 100px;
  margin-bottom: 14px;
}
.case-studies-heading h2 {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: #0f1418;
  margin: 0;
}
@media (max-width: 600px) {
  .case-studies-heading { margin: 40px auto 20px; }
}

/* ====================================================================
 * § B2-7 · WHY-3DPE 3-card shading (progressive paper → mint → lavender)
 * ==================================================================== */
.why-grid .why-card:nth-child(1) {
  background: #faf8f3 !important;
  border-color: rgba(15,20,24,0.06) !important;
}
.why-grid .why-card:nth-child(2) {
  background: #e6f7f2 !important;
  border-color: rgba(14,231,191,0.20) !important;
}
.why-grid .why-card:nth-child(3) {
  background: #ede4f0 !important;
  border-color: rgba(58,37,73,0.18) !important;
}
.why-grid .why-card { transition: transform 0.2s, box-shadow 0.2s; }
.why-grid .why-card:hover { transform: translateY(-2px); }


/* ====================================================================
 * § ICON SIZE GUARD · stop SVG icons blowing up at unrestricted widths
 * (the .pd-icon spans in .pricing-drivers render at 268×268 on mobile
 * without this — re-added after the CSS strip removed the original).
 * ==================================================================== */
.pd-icon {
  display: inline-flex !important;
  width: 18px !important;
  height: 18px !important;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
}
.pd-icon svg {
  width: 18px !important;
  height: 18px !important;
  display: block;
}
.pricing-drivers .pd-icon { margin-right: 10px; }
.pricing-drivers li { display: flex; align-items: center; gap: 8px; }
.obj .icon svg, .why-card .icon svg, .case .icon svg { max-width: 28px; max-height: 28px; }

/* ICP avatar — bigger photo per user feedback (brand.css default was 200px) */
.icp-card .avatar { height: 460px !important; border-radius: 16px !important; }
.icp-card .avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 860px) {
  .icp-card .avatar { height: 280px !important; }
}

/* ====================================================================
 * § SEO PRIMARY-KEYWORD BAND — between hero and trust band
 * Single H2 carrying "rapid prototyping" + body density support
 * ==================================================================== */
.pd-kw-band {
  padding: 40px 24px 20px;
  text-align: center;
  background: transparent;
}
.pd-kw-h2 {
  font-family: var(--font-display, 'Archivo'), -apple-system, system-ui, sans-serif;
  font-size: clamp(22px, 2.4vw, 32px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 auto 14px;
  max-width: 820px;
  color: var(--ink, #0f1418);
}
.pd-kw-sub {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-600, #4a5560);
  max-width: 720px;
  margin: 0 auto;
}
.pd-kw-freshness { font-size: 12px; color: var(--ink-600, #6b7280); margin-top: 14px; font-style: italic; }
.pd-kw-freshness time { font-style: normal; font-weight: 600; }
