
.zp-*, .zp-*::before, .zp-*::after {
  box-sizing: border-box; margin: 0; padding: 0;
}

/* ── SECTION ── */
.zp-section {
  position: relative;
  /* background: #f7f6f2; */
  padding: 10px 0 0px;
  overflow: hidden;
  font-family: 'DM Sans', sans-serif;
  /* border-top: 1px solid #e6e5e0; */
  /* border-bottom: 1px solid #e6e5e0; */
}

/* Subtle noise texture */
.zp-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
  opacity: 0.4;
  pointer-events: none;
}

/* Radial glow behind section centre */
.zp-section::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 70%;
  height: 60%;
  background: radial-gradient(ellipse, rgba(200,16,46,0.04) 0%, transparent 70%);
  pointer-events: none;
}

/* ── CONTAINER ── */
.zp-container {
  position: relative;
  z-index: 1;
  /* max-width: 1360px; */
  margin: 0 auto;
  /* padding: 0 60px; */
}

/* ── HEADER ── */
.zp-header {
  text-align: center;
  margin-bottom: 18px;
}
.zp-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-size: 0.67rem;
  font-weight: 500;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #c8102e;
  margin-bottom: 16px;
}
.zp-eyebrow span { display: block; }
.zp-eyebrow::before,
.zp-eyebrow::after {
  content: '';
  display: block;
  width: 36px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #c8102e);
  opacity: 0.55;
}
.zp-eyebrow::after { background: linear-gradient(90deg, #c8102e, transparent); }

.zp-heading {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(2.6rem, 4.2vw, 4rem);
  font-weight: 400;
  color: #0a0a0a;
  letter-spacing: -0.03em;
  line-height: 1.02;
}
.zp-heading em {
  font-style: italic;
  font-weight: 300;
  color: #c8102e;
}

/* ── DESKTOP STAGE ── */
.zp-stage {
  position: relative;
  width: 100%;
  /* height will be set by JS */
  /* min-height: 500px; */
}

/* ── SVG OVERLAY (drawn by JS) ── */
.zp-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
  z-index: 0;
}
.zp-path-ghost {
  fill: none;
  stroke: #ddddd8;
  stroke-width: 1.5;
  stroke-dasharray: 7 6;
}
.zp-path-live {
  fill: none;
  stroke: url(#zpGrad);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 3000;
  stroke-dashoffset: 3000;
  transition: stroke-dashoffset 2.6s cubic-bezier(0.4, 0, 0.2, 1);
  filter: drop-shadow(0 0 6px rgba(200,16,46,0.25));
}
.zp-path-live.zp-drawn { stroke-dashoffset: 0; }

/* Travelling dot along path */
.zp-traveller {
  display: none; /* enabled via JS after draw */
}

/* ── 4-COLUMN GRID ── */
.zp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
  z-index: 2;
  padding: 60px 0;
}

/* ── EACH STEP COLUMN ── */
.zp-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 14px;
  position: relative;
}

/* Alternating layout:
   Col 1 & 3: text ABOVE, bubble at bottom of top-half
   Col 2 & 4: bubble at top of bottom-half, text BELOW       */
.zp-col-top    { padding-top: 0;     padding-bottom: 48px; justify-content: flex-end; }
.zp-col-bottom { padding-top: 48px;  padding-bottom: 0;    justify-content: flex-start; }

/* ── TEXT BLOCK ── */
.zp-text {
  text-align: center;
  max-width: 210px;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.34,1.2,0.64,1);
}
.zp-text.zp-in { opacity: 1; transform: translateY(0); }

.zp-text-above { margin-bottom: 28px; order: 1; }
.zp-text-below { margin-top: 28px;    order: 3; }

/* Small connector line between text and bubble */
.zp-text-above::after {
  content: '';
  display: block;
  width: 1px;
  height: 20px;
  background: linear-gradient(180deg, #d0cfc8 0%, transparent 100%);
  margin: 12px auto 0;
}
.zp-text-below::before {
  content: '';
  display: block;
  width: 1px;
  height: 20px;
  background: linear-gradient(180deg, transparent 0%, #d0cfc8 100%);
  margin: 0 auto 12px;
}

.zp-num {
  display: block;
  font-size: 0.62rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #c8102e;
  opacity: 0.6;
  margin-bottom: 7px;
}
.zp-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.2rem;
  font-weight: 600;
  color: #111111;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin-bottom: 8px;
}
.zp-desc {
  font-size: 0.8rem;
  font-weight: 400;
  color: #888880;
  line-height: 1.7;
}

/* ── BUBBLE ── */
.zp-bubble-wrap {
  order: 2;
  position: relative;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.55s ease, transform 0.65s cubic-bezier(0.34,1.56,0.64,1);
}
.zp-bubble-wrap.zp-in { opacity: 1; transform: scale(1); }

/* Outer pulse ring */
.zp-bubble-wrap::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px solid rgba(200,16,46,0);
  transition: border-color 0.4s ease, inset 0.4s ease;
}
.zp-col:hover .zp-bubble-wrap::before {
  inset: -14px;
  border-color: rgba(200,16,46,0.18);
}

/* Second pulse ring */
.zp-bubble-wrap::after {
  content: '';
  position: absolute;
  inset: -22px;
  border-radius: 50%;
  border: 1px solid rgba(200,16,46,0);
  transition: border-color 0.4s ease 0.06s, inset 0.4s ease 0.06s;
}
.zp-col:hover .zp-bubble-wrap::after {
  inset: -26px;
  border-color: rgba(200,16,46,0.08);
}

.zp-bubble {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  cursor: default;
  box-shadow:
    0 1px 0 #e8e7e2,
    0 4px 14px rgba(0,0,0,0.08),
    0 12px 40px rgba(0,0,0,0.06),
    inset 0 1px 0 rgba(255,255,255,1);
  border: 1px solid rgba(240,239,234,0.8);
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1),
              box-shadow  0.4s ease;
}
.zp-col:hover .zp-bubble {
  transform: scale(1.14) translateY(-3px);
  box-shadow:
    0 0 0 1px rgba(200,16,46,0.15),
    0 8px 28px rgba(200,16,46,0.15),
    0 20px 60px rgba(0,0,0,0.1),
    inset 0 1px 0 rgba(255,255,255,1);
}
.zp-bubble svg { width: 24px; height: 24px; display: block; }

/* Big ghost number */
.zp-ghost {
  position: absolute;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 10rem;
  font-weight: 300;
  color: rgba(200,16,46,0.05);
  letter-spacing: -0.06em;
  line-height: 1;
  pointer-events: none;
  user-select: none;
  z-index: 1;
  /* Positioned per-column via inline style */
}

/* Active step indicator — tiny red dot ON bubble */
.zp-bubble-dot {
  position: absolute;
  top: 6px; right: 6px;
  width: 8px; height: 8px;
  background: #c8102e;
  border-radius: 50%;
  border: 2px solid #fff;
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.3s, transform 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.zp-col:hover .zp-bubble-dot {
  opacity: 1;
  transform: scale(1);
}

/* ══════════════════════════════════════
   MOBILE TIMELINE
══════════════════════════════════════ */
.zp-mobile { display: none; margin-top: 48px; }

.zp-m-row {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 0;
}
.zp-m-spine {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}
.zp-m-bubble {
  width: 50px; height: 50px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #e8e7e2;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.zp-m-bubble svg { width: 20px; height: 20px; }
.zp-m-line {
  width: 1px;
  flex: 1;
  min-height: 32px;
  background: linear-gradient(180deg, #ddddd8 0%, #eeede8 100%);
  margin: 4px 0 0;
}
.zp-m-row:last-child .zp-m-line { display: none; }

.zp-m-body { padding: 8px 0 36px; flex: 1; }
.zp-m-num {
  font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: #c8102e; opacity: 0.65;
  display: block; margin-bottom: 5px;
}
.zp-m-name {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.25rem; font-weight: 600;
  color: #111; letter-spacing: -0.015em; margin-bottom: 6px;
}
.zp-m-desc { font-size: 0.875rem; color: #888880; line-height: 1.72; }

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 1100px) {
  .zp-container { padding: 0 40px; }
  .zp-desc { font-size: 0.77rem; }
}
@media (max-width: 900px) {
  .zp-container { padding: 0 28px; }
  .zp-bubble { width: 56px; height: 56px; }
  .zp-name { font-size: 1.05rem; }
}
@media (max-width: 767px) {
  .zp-section { padding: 72px 0 80px; }
  .zp-container { padding: 0 22px; }
  .zp-stage { display: none; }
  .zp-mobile { display: block; }
}
@media (max-width: 480px) {
  .zp-container { padding: 0 16px; }
  .zp-heading { font-size: 2.2rem; }
}