/* ═════════ PROJECTS · SECTION 2 · GROWTH CAMPAIGNS IN PROGRESS ═════════
   Also holds the done / in-progress list (.stages), used again on the client pages. */
.pr-section2 {
  position: relative;
  padding: 130px 0 90px;
}

.pr2-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.pr2-card {
  display: flex;
  flex-direction: column;
  border-radius: 26px;
  border: 1px solid rgba(91, 149, 255, 0.22);
  background:
    radial-gradient(90% 45% at 50% 0%, rgba(20, 99, 243, 0.12), transparent 70%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 55%);
  box-shadow: var(--highlight);
  overflow: hidden;
}

.pr2-vis {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
}

.pr2-shot {
  position: absolute;
  inset: 0;
  will-change: transform;
}

.pr2-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pr2-vis.has-mark .mock {
  opacity: 0.4;
  transition: opacity 0.6s var(--ease);
}

.pr2-vis:hover .mock {
  opacity: 0.6;
}

.pr2-mark {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 0 24px;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: clamp(2rem, 4vw, 3.4rem);
  letter-spacing: -0.045em;
  color: #fff;
  text-align: center;
  text-shadow: 0 10px 40px rgba(4, 7, 15, 0.9);
  pointer-events: none;
  direction: ltr;
}

.pr2-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 26px 28px 28px;
}

.pr2-body h3 {
  font-family: var(--font-head);
  font-weight: 400;
  font-size: 1.9rem;
  letter-spacing: -0.035em;
  margin-bottom: 8px;
}

.pr2-body > p {
  max-width: 480px;
  margin-bottom: 22px;
  color: var(--text-dim);
  font-size: 0.95rem;
}

.pr2-body .stages {
  padding-top: 14px;
  border-top: 1px dashed var(--border-strong);
}

.pr2-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  align-self: flex-start;
  margin-top: auto;
  padding-top: 26px;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
}

.pr2-go {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-strong);
  transition: background 0.3s, border-color 0.3s, transform 0.4s var(--ease);
}

[dir="rtl"] .pr2-go svg {
  transform: scaleX(-1);
}

.pr2-link:hover .pr2-go {
  background: var(--blue);
  border-color: var(--blue);
  transform: translateX(4px);
}

[dir="rtl"] .pr2-link:hover .pr2-go {
  transform: translateX(-4px);
}

/* ─── done / in-progress list ───
   A thin line joins the dots: solid between finished parts, dashed toward work in progress.
   Rows light up one by one (.is-on, added by projects-page.js). */
.stages {
  list-style: none;
}

.stage {
  position: relative;
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 8px 0;
}

.stage::before {
  content: '';
  position: absolute;
  inset-inline-start: 10.5px;
  top: calc(50% + 11px);
  width: 1px;
  height: calc(100% - 22px);
  background: var(--border-strong);
  transition: background 0.5s;
}

.stage:last-child::before {
  display: none;
}

.stage.is-progress::before {
  background: repeating-linear-gradient(180deg, rgba(91, 149, 255, 0.45) 0 3px, transparent 3px 7px);
}

.stage.is-done.is-on::before {
  background: rgba(91, 149, 255, 0.7);
}

.stage.is-done:has(+ .is-progress)::before {
  background: repeating-linear-gradient(180deg, rgba(91, 149, 255, 0.45) 0 3px, transparent 3px 7px);
}

.stage-dot {
  position: relative;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-strong);
  background: var(--bg-2);
  color: #fff;
  transition: background 0.5s, border-color 0.5s, box-shadow 0.5s;
}

.stage-dot svg {
  opacity: 0;
  transform: scale(0.4);
  transition: opacity 0.4s, transform 0.5s var(--ease);
}

.stage b {
  font-weight: 400;
  font-size: 0.95rem;
  color: var(--text-dim);
  transition: color 0.5s;
}

.stage em {
  font-style: normal;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  white-space: nowrap;
  transition: color 0.5s;
}

.stage.is-on b {
  color: var(--text);
}

.stage.is-done.is-on .stage-dot {
  background: var(--blue);
  border-color: var(--blue);
  box-shadow: 0 0 14px var(--blue-glow);
}

.stage.is-done.is-on .stage-dot svg {
  opacity: 1;
  transform: none;
}

.stage.is-progress.is-on .stage-dot {
  border-color: rgba(91, 149, 255, 0.7);
}

.stage.is-progress.is-on .stage-dot::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue-light);
  box-shadow: 0 0 10px var(--blue-light);
  animation: stage-pulse 1.8s ease-in-out infinite;
}

.stage.is-progress.is-on em {
  color: var(--blue-soft);
}

@keyframes stage-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(0.55); opacity: 0.5; }
}

@media (max-width: 900px) {
  .pr-section2 { padding: 100px 0 70px; }
  .pr2-grid { grid-template-columns: 1fr; }
  .pr2-body { padding: 22px 20px 24px; }
  .pr2-body h3 { font-size: 1.6rem; }
}
