/* Harmony Modules (Features & Use Cases) — user-provided exact markup */
.bp-wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 12px 0; font-family: 'Inter', -apple-system, system-ui, sans-serif; }
.bp-card {
  background: #FDFAF4;
  border: 1px solid rgba(16,25,43,0.09);
  border-radius: 3px;
  padding: 20px 20px 16px;
  transition:
    border-color 380ms cubic-bezier(.2,.7,.2,1),
    transform 380ms cubic-bezier(.2,.7,.2,1),
    box-shadow 380ms cubic-bezier(.2,.7,.2,1);
  will-change: transform;
}
.bp-card:hover {
  border-color: rgba(16,25,43,0.22);
  transform: translateY(-2px);
  box-shadow: 0 8px 22px -18px rgba(16,25,43,0.22);
}
.bp-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.bp-num {
  width: 26px; height: 26px; border-radius: 50%;
  background: #10192B; color: #FDFAF4;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px; font-weight: 500;
  display: flex; align-items: center; justify-content: center;
  flex: 0 0 auto; letter-spacing: 0.5px;
  position: relative;
  transition: transform 420ms cubic-bezier(.2,.7,.2,1);
}
/* Whisper-quiet pulse ring on the M-number, subtle, slow */
.bp-num::after {
  content: "";
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(16,25,43,0.22);
  opacity: 0;
  animation: bpPulse 4.6s ease-out infinite;
}
@keyframes bpPulse {
  0%   { transform: scale(1);    opacity: 0; }
  30%  { opacity: 0.45; }
  100% { transform: scale(1.55); opacity: 0; }
}
.bp-card:hover .bp-num { transform: scale(1.04); }

.bp-title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400; font-size: 24px;
  letter-spacing: -0.02em; color: #10192B;
  line-height: 1.1;
}

.bp-sub {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 9px; letter-spacing: 0.18em;
  text-transform: uppercase; color: #6C6660;
  margin-top: 3px;
  transition: color 420ms ease;
}
.bp-card:hover .bp-sub { color: #10192B; }

.bp-svg {
  width: 100%; height: auto; display: block; margin-top: 4px;
}

/* Hover description — quiet reveal below the SVG */
.bp-desc {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 14px;
  line-height: 1.42;
  color: #10192B;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(16,25,43,0.09);
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transform: translateY(-4px);
  transition:
    max-height 420ms cubic-bezier(.2,.7,.2,1),
    opacity 320ms ease 80ms,
    transform 420ms cubic-bezier(.2,.7,.2,1),
    padding-top 420ms cubic-bezier(.2,.7,.2,1),
    margin-top 420ms cubic-bezier(.2,.7,.2,1),
    border-color 320ms ease;
  border-top-color: transparent;
  padding-top: 0;
  margin-top: 0;
  text-wrap: pretty;
}
.bp-card:hover .bp-desc {
  max-height: 220px;
  opacity: 1;
  transform: translateY(0);
  padding-top: 12px;
  margin-top: 12px;
  border-top-color: rgba(16,25,43,0.12);
}

/* Stagger the pulse across the grid so they don't all breathe in sync */
.bp-wrap > .bp-card:nth-child(1) .bp-num::after { animation-delay: 0s; }
.bp-wrap > .bp-card:nth-child(2) .bp-num::after { animation-delay: 0.5s; }
.bp-wrap > .bp-card:nth-child(3) .bp-num::after { animation-delay: 1.0s; }
.bp-wrap > .bp-card:nth-child(4) .bp-num::after { animation-delay: 1.5s; }
.bp-wrap > .bp-card:nth-child(5) .bp-num::after { animation-delay: 2.0s; }
.bp-wrap > .bp-card:nth-child(6) .bp-num::after { animation-delay: 2.5s; }
.bp-wrap > .bp-card:nth-child(7) .bp-num::after { animation-delay: 3.0s; }
.bp-wrap > .bp-card:nth-child(8) .bp-num::after { animation-delay: 3.5s; }
.bp-wrap > .bp-card:nth-child(9) .bp-num::after { animation-delay: 4.0s; }

@media (prefers-reduced-motion: reduce) {
  .bp-card, .bp-card * { transition: none !important; animation: none !important; }
}

@media (max-width: 900px) { .bp-wrap { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .bp-wrap { grid-template-columns: 1fr; } }

/* ══════════════════════════════════════════════════════════════
   Module browser — editorial "index + detail" layout.
   Left: numbered table of contents (all 9 visible at once).
   Right: stage pane showing the active module's animation + copy.
   ══════════════════════════════════════════════════════════════ */
.mod-browser {
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 48px;
  padding: 12px 0 36px;
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  align-items: start;
}
.mod-idx {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid rgba(16,25,43,0.12);
}
.mod-idx-label {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #6C6660;
  padding: 10px 0 14px;
  border-bottom: 1px solid rgba(16,25,43,0.12);
  margin-bottom: 4px;
}
.mod-idx-item {
  all: unset;
  cursor: pointer;
  display: grid;
  grid-template-columns: auto 1fr auto;
  grid-template-rows: auto auto;
  column-gap: 14px;
  align-items: center;
  padding: 14px 4px 14px 2px;
  border-bottom: 1px solid rgba(16,25,43,0.09);
  transition: background 280ms ease, padding-left 320ms cubic-bezier(.2,.7,.2,1);
}
.mod-idx-item:hover { background: rgba(16,25,43,0.02); padding-left: 8px; }
.mod-idx-item.is-active { background: rgba(16,25,43,0.04); padding-left: 10px; }
.mod-idx-item.is-stuck { background: rgba(30,58,138,0.06); }
.mod-idx-item.is-stuck .mod-idx-arrow { color: #1E3A8A; }
.mod-idx-num {
  grid-row: 1 / span 2;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #6C6660;
  padding-right: 2px;
  align-self: center;
}
.mod-idx-item.is-active .mod-idx-num { color: #10192B; font-weight: 600; }
.mod-idx-title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: #10192B;
  line-height: 1.15;
}
.mod-idx-sub {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6C6660;
  margin-top: 3px;
}
.mod-idx-arrow {
  grid-row: 1 / span 2;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 14px;
  color: #10192B;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 260ms ease, transform 320ms cubic-bezier(.2,.7,.2,1);
  align-self: center;
}
.mod-idx-item:hover .mod-idx-arrow,
.mod-idx-item.is-active .mod-idx-arrow { opacity: 1; transform: translateX(0); }
.mod-idx-item.is-coming .mod-idx-title,
.mod-idx-item.is-coming .mod-idx-sub { color: #A69F93; }

.mod-stage {
  background: #F5EDE5;
  border: 1px solid rgba(16,25,43,0.09);
  border-radius: 4px;
  padding: 32px 36px 32px;
  position: relative;
  min-height: 560px;
}
.mod-slide {
  position: absolute;
  inset: 32px 36px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 380ms cubic-bezier(.2,.7,.2,1);
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(240px, 0.9fr);
  gap: 44px;
  align-items: stretch;
}
.mod-slide.is-active { opacity: 1; visibility: visible; }
.mod-slide-body {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  min-width: 0;
}
.mod-slide-text {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  min-width: 0;
}
.mod-slide-head { display: flex; gap: 14px; align-items: flex-start; }
.mod-slide-num {
  width: 34px; height: 34px; border-radius: 50%;
  background: #10192B; color: #FDFAF4;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; font-weight: 500;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: 0.5px;
  flex: 0 0 auto;
}
.mod-slide-title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-size: 30px;
  letter-spacing: -0.02em;
  color: #10192B;
  line-height: 1.05;
  margin: 0;
}
.mod-slide-sub {
  display: block;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #6C6660;
  margin-top: 6px;
}
.mod-slide-body svg.bp-svg { width: 100%; height: auto; max-height: 460px; display: block; }
.mod-slide-body .bp-placeholder-body {
  width: 100%; max-width: 420px; height: 220px;
}
.mod-slide-desc {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 16px;
  line-height: 1.5;
  color: #10192B;
  margin: 0;
  max-width: 44ch;
  text-wrap: pretty;
}
@media (max-width: 1100px) {
  .mod-slide {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
  }
  .mod-slide-body { grid-column: 1; grid-row: 1; }
  .mod-slide-text { grid-column: 1; grid-row: 2; }
}
@media (max-width: 900px) {
  .mod-browser { grid-template-columns: 1fr; gap: 24px; }
  .mod-stage { min-height: 420px; padding: 24px; }
  .mod-slide { inset: 24px; }
}

/* Placeholder card styling (matches bp-card but greyed) */
.bp-card.bp-placeholder { opacity: 0.55; }
.bp-card.bp-placeholder .bp-title { color: #6C6660; }
.bp-card.bp-placeholder .bp-sub { color: #9E968C; }
.bp-placeholder-body { height: 160px; display: flex; align-items: center; justify-content: center; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 10px; letter-spacing: 0.24em; color: #A69F93; text-transform: uppercase; border: 1px dashed rgba(16,25,43,0.18); border-radius: 3px; margin-top: 4px; }


/* ══════════════════════════════════════════════════════════════
   M10 — Custom Factory Solutions closing card
   Full-width visual+text block that flows after the 9 modules.
   ══════════════════════════════════════════════════════════════ */
.features-custom {
  margin-top: 72px;
  padding-top: 48px;
  border-top: 1px solid rgba(16,25,43,0.12);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 1.1fr);
  gap: 56px;
  align-items: center;
}
.features-custom-visual {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 0;
}
.features-custom-visual svg.bp-svg {
  width: 100%;
  max-width: 460px;
  height: auto;
  max-height: 320px;
  display: block;
}
.features-custom-text {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}
.features-custom-label {
  display: flex;
  align-items: center;
  gap: 12px;
}
.features-custom-num {
  width: 34px; height: 34px; border-radius: 50%;
  background: #10192B; color: #FDFAF4;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; font-weight: 500;
  display: inline-flex; align-items: center; justify-content: center;
  letter-spacing: 0.5px;
}
.features-custom-meta {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #6C6660;
}
.features-custom-title {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 400;
  font-size: 30px;
  letter-spacing: -0.018em;
  color: #10192B;
  line-height: 1.06;
  margin: 0;
}
.features-custom-body {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 16px;
  line-height: 1.5;
  color: #10192B;
  margin: 0;
  max-width: 44ch;
  text-wrap: pretty;
}
.features-custom-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  margin-top: 8px;
}
.features-custom-tags span {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 9.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #10192B;
  background: rgba(16,25,43,0.05);
  border: 1px solid rgba(16,25,43,0.12);
  padding: 7px 10px;
  border-radius: 2px;
}

@media (max-width: 1100px) {
  .features-custom {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}


