/* ══════════════════════════════════════════════════════
   Custom Projekt — Journey Page  (scoped: .cpj-*)
   ══════════════════════════════════════════════════════ */

/* ── Journey container (dot-grid texture base) ──────── */
.cpj-journey {
  position: relative;
  background-color: #f7f9fb;
  background-image: radial-gradient(rgba(34, 197, 94, .10) 1.2px, transparent 1.2px);
  background-size: 26px 26px;
  overflow: hidden;
}

/* ── SVG path: fade-in on load → then pulse ─────────── */
@keyframes cpj-path-fadein {
  from { opacity: 0; }
  to   { opacity: var(--base-op, 0.9); }
}

@keyframes cpj-path-pulse {
  0%, 100% { opacity: var(--base-op, 0.9); }
  50%       { opacity: calc(var(--base-op, 0.9) * 0.52); }
}

.cpj-path {
  animation:
    cpj-path-fadein 1s    var(--dly, 0s)                ease-out    both,
    cpj-path-pulse  var(--dur, 3.5s) calc(var(--dly, 0s) + 1s) ease-in-out infinite;
}

/* ── SVG dot ring pulse animation ───────────────────── */
@keyframes cpj-ring-pulse {
  0%, 100% { transform: scale(1);   opacity: 0.55; }
  50%       { transform: scale(2.6); opacity: 0;    }
}

.cpj-dot-ring {
  transform-box: fill-box;
  transform-origin: center;
  animation: cpj-ring-pulse 2.8s ease-in-out infinite;
}

/* ── Sections ───────────────────────────────────────── */
.cpj-section {
  position: relative;
  z-index: 2;
  padding: 92px 0;
}

/* Hero – full viewport height, content over path */
.cpj-section--hero {
  padding: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
}

/* Subtle left-side wash on hero to lift text over dot grid */
.cpj-section--hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to right,
    rgba(247, 249, 251, .85) 0%,
    rgba(247, 249, 251, .55) 44%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 0;
}

/* Light tint for Principals and KPI sections */
.cpj-section--tinted {
  background: rgba(240, 253, 244, .78);
}

.cpj-section--subtle {
  background: rgba(249, 250, 251, .72);
}

/* Step sections – transparent so path is visible */
.cpj-section--step,
.cpj-section--step-alt {
  padding: 64px 0;
}

/* ── Hero layout ────────────────────────────────────── */
.cpj-hero-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 120px 0 100px;
  max-width: 52%;
}

.cpj-hero__badge {
  display: inline-block;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: #16a34a;
  margin-bottom: 1.75rem;
}

.cpj-hero__title {
  font-size: clamp(2.75rem, 5.5vw, 4.25rem);
  font-weight: 900;
  letter-spacing: -.045em;
  color: #0f172a;
  line-height: 1.03;
  margin: 0 0 1.5rem;
}

.cpj-hero__title em {
  font-style: normal;
  color: #22c55e;
}

.cpj-hero__sub {
  font-size: 1.0625rem;
  color: #64748b;
  line-height: 1.8;
  max-width: 420px;
  margin: 0 0 2.5rem;
}

.cpj-hero__actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.cpj-btn--primary {
  display: inline-flex;
  align-items: center;
  padding: .9rem 1.875rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 10px;
  background: #22c55e;
  color: #fff;
  text-decoration: none;
  transition: background .18s, transform .18s, box-shadow .18s;
}

.cpj-btn--primary:hover {
  background: #16a34a;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(34, 197, 94, .38);
}

.cpj-btn--ghost {
  display: inline-flex;
  align-items: center;
  padding: .9rem 1.875rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 10px;
  background: transparent;
  color: #475569;
  border: 1px solid rgba(15, 23, 42, .18);
  text-decoration: none;
  transition: border-color .18s, color .18s, background .18s;
}

.cpj-btn--ghost:hover {
  border-color: rgba(34, 197, 94, .5);
  color: #16a34a;
  background: rgba(34, 197, 94, .05);
}

.cpj-hero__divider {
  height: 1px;
  background: rgba(15, 23, 42, .1);
  margin-bottom: 2.5rem;
}

.cpj-hero__stats {
  display: flex;
  gap: 3rem;
}

.cpj-stat__val {
  font-size: 1.75rem;
  font-weight: 800;
  color: #16a34a;
  letter-spacing: -.03em;
  line-height: 1;
  margin-bottom: .25rem;
}

.cpj-stat__label {
  font-size: .75rem;
  color: #94a3b8;
  line-height: 1.5;
}

/* ── Section header (label + title + intro) ─────────── */
.cpj-section-hdr {
  text-align: center;
  margin-bottom: 52px;
}

.cpj-label {
  display: block;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #22c55e;
  margin-bottom: .75rem;
}

.cpj-section-title {
  font-size: clamp(1.75rem, 3vw, 2.375rem);
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -.035em;
  line-height: 1.18;
  margin: 0 0 .875rem;
}

.cpj-section-intro {
  font-size: 1rem;
  color: #64748b;
  line-height: 1.78;
  max-width: 560px;
  margin: 0 auto;
}

/* ── Statement section ──────────────────────────────── */
.cpj-statement {
  text-align: center;
  max-width: 740px;
  margin: 0 auto;
}

.cpj-statement__text {
  font-size: clamp(1.0625rem, 1.8vw, 1.25rem);
  color: #64748b;
  line-height: 1.85;
  margin-bottom: 1.75rem;
}

.cpj-statement__bold {
  font-size: clamp(1.625rem, 2.6vw, 2.125rem);
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -.03em;
  line-height: 1.22;
}

/* ── Pillars grid ───────────────────────────────────── */
.cpj-pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.cpj-pillar {
  background: rgba(255, 255, 255, .88);
  border: 1px solid rgba(34, 197, 94, .16);
  border-radius: 20px;
  padding: 2.25rem 2rem;
  position: relative;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(34, 197, 94, .06);
}

.cpj-pillar__num {
  font-size: 5rem;
  font-weight: 900;
  color: rgba(34, 197, 94, .10);
  letter-spacing: -.05em;
  line-height: 1;
  margin-bottom: 1.25rem;
  user-select: none;
}

.cpj-pillar__title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -.02em;
  margin-bottom: .75rem;
}

.cpj-pillar__text {
  font-size: .875rem;
  color: #64748b;
  line-height: 1.8;
}

/* ── Workflow step cards ────────────────────────────── */
.cpj-step-card {
  max-width: calc(50% - 60px);
  padding: 2rem 2.25rem;
  background: rgba(255, 255, 255, .92);
  border: 1px solid rgba(34, 197, 94, .14);
  border-radius: 18px;
  box-shadow: 0 2px 16px rgba(0, 0, 0, .05), 0 0 0 0 rgba(34, 197, 94, 0);
  position: relative;
}

.cpj-step-card--r {
  margin-left: calc(50% + 60px);
}

.cpj-step-num {
  display: block;
  font-size: .6875rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #22c55e;
  margin-bottom: .5rem;
}

.cpj-step-title {
  font-size: 1.125rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -.015em;
  line-height: 1.3;
  margin: 0 0 .6rem;
}

.cpj-step-desc {
  font-size: .9rem;
  color: #64748b;
  line-height: 1.72;
  margin: 0;
}

/* Connector line from card edge to path center */
.cpj-step-card--l::after {
  content: '';
  position: absolute;
  top: 50%;
  right: -60px;
  width: 60px;
  height: 1px;
  background: linear-gradient(to right, rgba(34, 197, 94, .3), rgba(34, 197, 94, .04));
}

.cpj-step-card--r::before {
  content: '';
  position: absolute;
  top: 50%;
  left: -60px;
  width: 60px;
  height: 1px;
  background: linear-gradient(to left, rgba(34, 197, 94, .3), rgba(34, 197, 94, .04));
}

/* ── Features grid ──────────────────────────────────── */
.cpj-feat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
  max-width: 760px;
  margin: 0 auto;
}

.cpj-feat-item {
  display: flex;
  align-items: flex-start;
  gap: .875rem;
  padding: 1rem 1.25rem;
  background: rgba(255, 255, 255, .88);
  border: 1px solid rgba(34, 197, 94, .12);
  border-radius: 12px;
  font-size: .9375rem;
  color: #374151;
  line-height: 1.6;
}

.cpj-feat-check {
  font-size: .875rem;
  font-weight: 700;
  color: #22c55e;
  flex-shrink: 0;
  margin-top: .1rem;
}

/* ── KPIs (light tinted) ────────────────────────────── */
.cpj-kpi-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.cpj-kpi {
  background: rgba(255, 255, 255, .88);
  border: 1px solid rgba(34, 197, 94, .16);
  border-radius: 16px;
  padding: 2.25rem 1.75rem;
  text-align: center;
  box-shadow: 0 2px 12px rgba(34, 197, 94, .06);
}

.cpj-kpi__val {
  font-size: 2.375rem;
  font-weight: 800;
  color: #16a34a;
  letter-spacing: -.04em;
  line-height: 1;
  margin-bottom: .6rem;
}

.cpj-kpi__label {
  font-size: .875rem;
  color: #64748b;
  line-height: 1.55;
}

/* ── CTA block ──────────────────────────────────────── */
.cpj-cta-block {
  text-align: center;
  max-width: 500px;
  margin: 0 auto;
}

.cpj-cta-title {
  font-size: clamp(1.875rem, 3vw, 2.5rem);
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -.03em;
  line-height: 1.18;
  margin: 0 0 1rem;
}

.cpj-cta-text {
  font-size: 1rem;
  color: #64748b;
  line-height: 1.78;
  margin: 0 0 2.25rem;
}

.cpj-cta-btn {
  display: inline-flex;
  align-items: center;
  padding: 1.0625rem 2.125rem;
  font-size: 1rem;
  font-weight: 600;
  border-radius: 10px;
  background: #0f172a;
  color: #fff;
  text-decoration: none;
  transition: background .18s, transform .18s, box-shadow .18s;
}

.cpj-cta-btn:hover {
  background: #22c55e;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(34, 197, 94, .38);
}

/* ── Line end cap ───────────────────────────────────── */
.cpj-line-end {
  display: flex;
  justify-content: center;
  padding: 0 0 80px;
  position: relative;
  z-index: 2;
}

.cpj-line-end__cap {
  width: 1px;
  height: 52px;
  background: linear-gradient(to bottom, rgba(34, 197, 94, .5), transparent);
}

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 1024px) {
  .cpj-hero-inner { max-width: 58%; }
}

@media (max-width: 900px) {
  .cpj-hero-inner { max-width: 100%; padding: 100px 0 80px; }
  .cpj-section--hero::before {
    background: rgba(247, 249, 251, .82);
  }
  .cpj-pillars-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }

  .cpj-step-card,
  .cpj-step-card--l,
  .cpj-step-card--r {
    max-width: 540px;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .cpj-step-card--l::after,
  .cpj-step-card--r::before { display: none; }
}

@media (max-width: 640px) {
  .cpj-section { padding: 64px 0; }
  .cpj-section--step,
  .cpj-section--step-alt { padding: 48px 0; }

  .cpj-hero__stats { gap: 2rem; }
  .cpj-hero-inner  { padding: 90px 0 72px; }

  .cpj-pillars-grid { grid-template-columns: 1fr; }
  .cpj-feat-grid    { grid-template-columns: 1fr; }
  .cpj-kpi-row      { grid-template-columns: repeat(2, 1fr); }

  .cpj-step-card,
  .cpj-step-card--l,
  .cpj-step-card--r { max-width: 100%; }
}

@media (max-width: 480px) {
  .cpj-hero-inner { padding: 72px 0 56px; }
  .cpj-kpi-row    { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  #cpj-journey svg { display: none; }
}
