/* Homepage journey below hero  capability spine + differentiated sections */
.home-journey {
  --hj-ae: #5eead4;
  --hj-blue: #60a5fa;
  --hj-out: #93c5fd;
  --hj-copper: #d4a574;
  --hj-ink: rgba(236, 244, 255, 0.94);
  --hj-muted: rgba(198, 216, 240, 0.8);
  --hj-line: rgba(140, 180, 255, 0.16);
  position: relative;
  width: min(1120px, calc(100% - 32px));
  margin: 28px auto 40px;
  padding: 12px 0 8px;
  color: var(--hj-ink);
}
.home-journey h2 {
  letter-spacing: -0.02em;
  line-height: 1.12;
}
.home-journey p { color: var(--hj-muted); line-height: 1.6; }

.home-spine {
  position: absolute;
  left: max(8px, calc((100% - 1120px) / 2 + 4px));
  top: 40px;
  bottom: 80px;
  width: 18px;
  pointer-events: none;
  z-index: 0;
}
.home-spine-line,
.home-spine-fill {
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  border-radius: 2px;
}
.home-spine-line { background: rgba(140, 180, 255, 0.14); }
.home-spine-fill {
  bottom: auto;
  height: calc(var(--home-spine-progress, 0) * 100%);
  background: linear-gradient(180deg, var(--hj-ae), var(--hj-blue), var(--hj-copper));
  transition: height 520ms ease;
}
.home-spine-node {
  position: absolute;
  left: 4px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid rgba(147, 197, 253, 0.35);
  background: rgba(7, 12, 22, 0.9);
  transition: border-color 450ms ease, background 450ms ease, box-shadow 450ms ease;
}
.home-spine-node[data-spine="ambition"] { top: 6%; }
.home-spine-node[data-spine="direction"] { top: 18%; }
.home-spine-node[data-spine="delivery"] { top: 42%; }
.home-spine-node[data-spine="memory"] { top: 66%; }
.home-spine-node[data-spine="conversation"] { top: 92%; }
.home-spine-node.is-lit {
  border-color: var(--hj-ae);
  background: rgba(94, 234, 212, 0.35);
  box-shadow: 0 0 0 4px rgba(94, 234, 212, 0.1);
}

.home-section-intro { position: relative; z-index: 1; margin-bottom: 28px; }
.home-section-intro h2 {
  margin: 10px 0 0;
  font-size: clamp(1.55rem, 2.5vw, 2.2rem);
  max-width: 22ch;
}
.home-section-intro-center { text-align: center; }
.home-section-intro-center h2 { margin-left: auto; margin-right: auto; }
.home-section-intro-left { padding-left: 28px; }

/* Capability Bridge */
.home-bridge-section {
  position: relative;
  z-index: 1;
  margin: 0 0 72px;
  padding: 8px 0 8px 20px;
}
.home-bridge {
  position: relative;
  padding: 8px 0 0;
}
.home-bridge-ends {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 8px;
}
.home-bridge-end {
  max-width: 220px;
  padding: 10px 0;
}
.home-bridge-finish { text-align: right; margin-left: auto; }
.home-bridge-end-label {
  display: block;
  font-weight: 650;
  color: var(--hj-out);
  margin-bottom: 4px;
}
.home-bridge-end-copy {
  display: block;
  font-size: 0.9rem;
  color: var(--hj-muted);
}
.home-bridge-route {
  height: 110px;
  margin: 0 8px -18px;
}
.home-bridge-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}
.home-bridge-path {
  fill: none;
  stroke: rgba(96, 165, 250, 0.28);
  stroke-width: 2.2;
  stroke-linecap: round;
}
.home-bridge-path-active {
  fill: none;
  stroke: #5eead4;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 550ms ease;
}
.home-bridge[data-active="0"] .home-bridge-path-active { stroke-dashoffset: 0.82; }
.home-bridge[data-active="1"] .home-bridge-path-active { stroke-dashoffset: 0.64; }
.home-bridge[data-active="2"] .home-bridge-path-active { stroke-dashoffset: 0.42; }
.home-bridge[data-active="3"] .home-bridge-path-active { stroke-dashoffset: 0.22; }
.home-bridge[data-active="4"] .home-bridge-path-active { stroke-dashoffset: 0; }

.home-bridge-nodes {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 8px 0 18px;
}
.home-bridge-node {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-height: 88px;
  padding: 12px 12px 14px;
  border: 0;
  border-bottom: 2px solid rgba(96, 165, 250, 0.22);
  background: transparent;
  color: var(--hj-ink);
  text-align: left;
  cursor: pointer;
  transition: transform 500ms ease, border-color 500ms ease, color 500ms ease;
}
.home-bridge-node:hover,
.home-bridge-node:focus-visible {
  transform: translateY(-4px);
  outline: none;
  border-color: rgba(94, 234, 212, 0.55);
}
.home-bridge-node.is-active {
  transform: translateY(-6px);
  border-color: var(--hj-ae);
  color: #fff;
}
.home-bridge-mark {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  border: 1px solid rgba(94, 234, 212, 0.45);
  color: var(--hj-ae);
}
.home-bridge-detail {
  min-height: 92px;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid rgba(94, 234, 212, 0.18);
  background: rgba(8, 14, 28, 0.35);
}
.home-bridge-detail h3 { margin: 0 0 8px; font-size: 1.08rem; }
.home-bridge-detail p { margin: 0; max-width: 70ch; }
.home-bridge-action { margin-top: 22px; }

/* Partner dual-track preview */
.home-partner-preview {
  position: relative;
  z-index: 1;
  margin: 0 0 80px;
  padding: 36px 8px 8px;
}
.home-partner-preview-copy {
  max-width: 62ch;
  margin: 14px auto 0;
}
.home-dual {
  display: grid;
  grid-template-columns: 1fr minmax(200px, 0.85fr) 1fr;
  gap: 16px;
  align-items: stretch;
  margin: 34px 0 28px;
  position: relative;
}
.home-dual::before,
.home-dual::after {
  content: "";
  position: absolute;
  top: 18%;
  bottom: 28%;
  width: 2px;
  opacity: 0.45;
  pointer-events: none;
}
.home-dual::before {
  left: 16%;
  background: linear-gradient(180deg, transparent, var(--hj-ae), transparent);
}
.home-dual::after {
  right: 16%;
  background: linear-gradient(180deg, transparent, var(--hj-copper), transparent);
}
.home-dual-track {
  padding: 18px 16px;
  border-radius: 16px;
  border: 1px solid var(--hj-line);
  background: rgba(7, 12, 22, 0.28);
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 600ms ease, transform 600ms ease;
}
.home-dual.is-revealed .home-dual-track {
  opacity: 1;
  transform: none;
}
.home-dual-ae {
  border-color: rgba(94, 234, 212, 0.28);
  transform: translateX(-24px) translateY(10px);
}
.home-dual-ip {
  border-color: rgba(212, 165, 116, 0.3);
  transform: translateX(24px) translateY(10px);
}
.home-dual.is-revealed .home-dual-ae,
.home-dual.is-revealed .home-dual-ip { transform: none; }
.home-dual-ae { transition-delay: 80ms; }
.home-dual-ip { transition-delay: 160ms; }
.home-dual-track h3 { margin: 0 0 12px; font-size: 1.05rem; }
.home-dual-track ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--hj-muted);
  line-height: 1.55;
}
.home-dual-track li + li { margin-top: 6px; }
.home-dual-center {
  text-align: center;
  padding: 22px 16px 16px;
  border-radius: 18px;
  border: 1px solid rgba(147, 197, 253, 0.28);
  background:
    radial-gradient(circle at 50% 20%, rgba(147, 197, 253, 0.16), transparent 55%),
    rgba(8, 14, 28, 0.4);
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 650ms ease 240ms, transform 650ms ease 240ms;
}
.home-dual.is-revealed .home-dual-center {
  opacity: 1;
  transform: none;
}
.home-dual-node {
  display: block;
  width: 14px;
  height: 14px;
  margin: 0 auto 12px;
  border-radius: 50%;
  border: 2px solid var(--hj-out);
  background: linear-gradient(135deg, rgba(94, 234, 212, 0.5), rgba(212, 165, 116, 0.45));
  box-shadow: 0 0 18px rgba(147, 197, 253, 0.25);
}
.home-dual-center strong {
  display: block;
  margin-bottom: 8px;
  font-size: 1.05rem;
}
.home-dual-center p { margin: 0; }
.home-partner-preview-action { text-align: center; }

/* EDMP Decision Memory Lens */
.home-edmp-lens {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(260px, 0.92fr) minmax(0, 1.08fr);
  gap: 28px 40px;
  align-items: center;
  margin: 0 0 72px;
  padding: 28px 22px 28px 28px;
  border-radius: 24px;
  background:
    radial-gradient(ellipse at 18% 45%, rgba(212, 165, 116, 0.12), transparent 42%),
    linear-gradient(120deg, rgba(6, 12, 26, 0.82), rgba(8, 14, 28, 0.35));
  border: 1px solid rgba(212, 165, 116, 0.14);
}
.home-edmp-visual { position: relative; }
.home-edmp-svg {
  width: 100%;
  height: auto;
  display: block;
}
.home-edmp-svg text {
  fill: rgba(210, 228, 255, 0.72);
  font-size: 11px;
  letter-spacing: 0.03em;
}
.home-edmp-trace {
  fill: none;
  stroke: rgba(212, 165, 116, 0.22);
  stroke-width: 1.4;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.home-edmp-flow {
  fill: none;
  stroke: rgba(96, 165, 250, 0.35);
  stroke-width: 1.6;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}
.home-edmp-dot {
  fill: rgba(8, 14, 28, 0.9);
  stroke: rgba(147, 197, 253, 0.55);
  stroke-width: 1.6;
  opacity: 0.35;
  transition: opacity 450ms ease, stroke 450ms ease;
}
.home-edmp-decision {
  stroke: var(--hj-copper);
  stroke-width: 2.2;
  fill: rgba(212, 165, 116, 0.18);
}
.home-edmp-ring {
  fill: none;
  stroke: rgba(212, 165, 116, 0.28);
  stroke-width: 1.2;
  opacity: 0.25;
}
.home-edmp-visual.is-sequenced .home-edmp-trace,
.home-edmp-visual.is-sequenced .home-edmp-flow {
  animation: homeEdmpDraw 700ms ease forwards;
}
.home-edmp-visual.is-sequenced .home-edmp-flow { animation-delay: 180ms; }
.home-edmp-visual.is-sequenced .home-edmp-dot {
  animation: homeEdmpFade 500ms ease forwards;
}
.home-edmp-visual.is-sequenced .home-edmp-dot[data-edmp="evidence"] { animation-delay: 120ms; }
.home-edmp-visual.is-sequenced .home-edmp-dot[data-edmp="decision"] { animation-delay: 320ms; }
.home-edmp-visual.is-sequenced .home-edmp-dot[data-edmp="ownership"] { animation-delay: 480ms; }
.home-edmp-visual.is-sequenced .home-edmp-dot[data-edmp="execution"] { animation-delay: 640ms; }
.home-edmp-visual.is-sequenced .home-edmp-dot[data-edmp="learning"] { animation-delay: 800ms; }
.home-edmp-visual.is-sequenced .home-edmp-ring {
  animation: homeEdmpFade 600ms ease 360ms forwards;
}
@keyframes homeEdmpDraw {
  from { stroke-dashoffset: 1; }
  to { stroke-dashoffset: 0; }
}
@keyframes homeEdmpFade {
  to { opacity: 1; }
}
.home-edmp-dot.is-active {
  opacity: 1 !important;
  stroke: var(--hj-copper);
}
.home-edmp-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.home-edmp-chip {
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(212, 165, 116, 0.28);
  background: rgba(8, 14, 28, 0.45);
  color: var(--hj-muted);
  cursor: pointer;
  font-size: 0.82rem;
  transition: border-color 450ms ease, color 450ms ease, background 450ms ease;
}
.home-edmp-chip.is-active,
.home-edmp-chip:focus-visible {
  color: #fff;
  border-color: rgba(212, 165, 116, 0.7);
  background: rgba(212, 165, 116, 0.14);
  outline: none;
}
.home-edmp-detail {
  margin-top: 12px;
  min-height: 72px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(212, 165, 116, 0.16);
  background: rgba(8, 14, 28, 0.4);
}
.home-edmp-detail h3 { margin: 0 0 6px; font-size: 1rem; }
.home-edmp-detail p { margin: 0; }
.home-edmp-copy h2 {
  margin: 10px 0 14px;
  font-size: clamp(1.45rem, 2.3vw, 2rem);
  max-width: 18ch;
}
.home-edmp-copy p { margin: 0 0 12px; max-width: 54ch; }
.home-edmp-copy .hero-actions { margin-top: 20px; }

/* Decision Gateway */
.home-gateway {
  position: relative;
  z-index: 1;
  text-align: center;
  margin: 24px 0 20px;
  padding: 56px 18px 48px;
  overflow: hidden;
}
.home-gateway-glow {
  position: absolute;
  left: 50%;
  top: 42%;
  width: min(520px, 88vw);
  height: min(520px, 88vw);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.16), rgba(94, 234, 212, 0.05) 42%, transparent 68%);
  pointer-events: none;
}
.home-gateway-rings {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.home-gateway-rings span {
  position: absolute;
  left: 50%;
  top: 46%;
  border: 1px solid rgba(147, 197, 253, 0.14);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}
.home-gateway-rings span:nth-child(1) { width: 220px; height: 220px; }
.home-gateway-rings span:nth-child(2) { width: 340px; height: 340px; }
.home-gateway-rings span:nth-child(3) { width: 460px; height: 460px; opacity: 0.7; }
.home-gateway h2 {
  position: relative;
  margin: 0 auto 14px;
  max-width: 18ch;
  font-size: clamp(1.7rem, 3vw, 2.45rem);
}
.home-gateway > p {
  position: relative;
  margin: 0 auto 24px;
  max-width: 52ch;
}
.home-gateway-intents {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0 auto 22px;
  max-width: 720px;
}
.home-gateway-intent {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(140, 180, 255, 0.22);
  background: rgba(7, 12, 22, 0.35);
  color: var(--hj-muted);
  cursor: pointer;
  font-size: 0.86rem;
  transition: border-color 450ms ease, color 450ms ease, background 450ms ease;
}
.home-gateway-intent.is-active,
.home-gateway-intent:focus-visible {
  color: #fff;
  border-color: rgba(94, 234, 212, 0.55);
  background: rgba(94, 234, 212, 0.1);
  outline: none;
}
.home-gateway-actions {
  position: relative;
  justify-content: center;
}
.home-gateway-actions .btn-secondary {
  opacity: 0.88;
}

@media (max-width: 980px) {
  .home-spine { display: none; }
  .home-section-intro-left { padding-left: 0; }
  .home-bridge-nodes { grid-template-columns: 1fr 1fr; }
  .home-dual {
    grid-template-columns: 1fr;
  }
  .home-dual::before,
  .home-dual::after { display: none; }
  .home-dual-ae,
  .home-dual-ip { transform: translateY(12px); }
  .home-edmp-lens {
    grid-template-columns: 1fr;
    padding: 22px 16px;
  }
}

@media (max-width: 820px) {
  .home-journey { width: calc(100% - 24px); }
  .home-bridge-ends { flex-direction: column; gap: 8px; }
  .home-bridge-finish { text-align: left; margin-left: 0; }
  .home-bridge-route { height: 72px; }
  .home-bridge-nodes { grid-template-columns: 1fr; }
  .home-bridge-node {
    flex-direction: row;
    align-items: center;
    min-height: 0;
    border-bottom: 0;
    border-left: 2px solid rgba(96, 165, 250, 0.25);
    padding-left: 14px;
  }
  .home-bridge-node.is-active,
  .home-bridge-node:hover,
  .home-bridge-node:focus-visible {
    transform: none;
    border-left-color: var(--hj-ae);
  }
  .home-gateway { padding: 40px 8px 36px; }
  .home-gateway-rings span:nth-child(3) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .home-spine-fill,
  .home-bridge-node,
  .home-bridge-path-active,
  .home-dual-track,
  .home-dual-center,
  .home-edmp-dot,
  .home-edmp-chip,
  .home-gateway-intent {
    transition: none !important;
    animation: none !important;
  }
  .home-bridge-path-active,
  .home-edmp-trace,
  .home-edmp-flow {
    stroke-dashoffset: 0 !important;
  }
  .home-dual-track,
  .home-dual-center,
  .home-edmp-dot,
  .home-edmp-ring {
    opacity: 1 !important;
    transform: none !important;
  }
}
