/* ============================================================================
   PropFind — scroll timeline
   ----------------------------------------------------------------------------
   Vertical centre-line timeline with alternating left/right steps. Paired
   with /shared/timeline.js (IntersectionObserver). Opt in with
   <html class="js-reveal"> + a .pf-timeline section.
   ========================================================================== */

.pf-timeline {
  --tl-line: rgba(26, 26, 26, 0.12);
  --tl-node: var(--text-primary, #1A1A1A);
  --tl-accent: var(--accent-text, #6B4EFF);
  position: relative;
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 0 32px;
}

.pf-timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--tl-line);
  transform: translateX(-50%);
  transform-origin: top center;
}

.js-reveal .pf-timeline::before {
  transform: translateX(-50%) scaleY(0.08);
  transition: transform 1.1s cubic-bezier(.22, 1, .36, 1);
}
.js-reveal .pf-timeline.is-drawn::before {
  transform: translateX(-50%) scaleY(1);
}

.pf-tl-step {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1fr);
  gap: 0 28px;
  align-items: start;
  padding: 36px 0;
  min-height: 120px;
}

.pf-tl-node {
  grid-column: 2;
  width: 16px;
  height: 16px;
  margin: 8px auto 0;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--tl-node);
  box-shadow: 0 0 0 4px var(--bg-primary, #fff);
  z-index: 1;
  transition: transform .45s ease, background .45s ease, box-shadow .45s ease, border-color .45s ease;
}
.js-reveal .pf-tl-step.is-in .pf-tl-node {
  background: var(--tl-node);
  border-color: var(--tl-node);
  transform: scale(1.2);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent, #7B5BF5) 22%, transparent);
}

.pf-tl-card {
  width: 100%;
  max-width: 460px;
}
.pf-tl-step:nth-child(odd) .pf-tl-card {
  grid-column: 3;
  text-align: left;
  justify-self: start;
}
.pf-tl-step:nth-child(even) .pf-tl-card {
  grid-column: 1;
  text-align: right;
  justify-self: end;
}
.pf-tl-step:nth-child(even) .pf-tl-node { grid-column: 2; }
.pf-tl-step:nth-child(even) .pf-tl-spacer { grid-column: 3; }

.pf-tl-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--tl-accent);
  margin-bottom: 10px;
}
.pf-tl-card h3 {
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text-primary);
  margin: 0 0 12px;
}
.pf-tl-card p {
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0;
}

.js-reveal .pf-tl-card {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .65s ease, transform .65s cubic-bezier(.22, 1, .36, 1);
}
.js-reveal .pf-tl-step:nth-child(odd) .pf-tl-card { transform: translate(28px, 18px); }
.js-reveal .pf-tl-step:nth-child(even) .pf-tl-card { transform: translate(-28px, 18px); }
.js-reveal .pf-tl-step.is-in .pf-tl-card {
  opacity: 1;
  transform: translate(0, 0);
}

@media (max-width: 820px) {
  .pf-timeline { padding-left: 4px; max-width: none; }
  .pf-timeline::before { left: 15px; }
  .pf-tl-step {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 0 16px;
    padding: 26px 0;
  }
  .pf-tl-node { grid-column: 1; margin: 6px 0 0; }
  .pf-tl-step:nth-child(odd) .pf-tl-card,
  .pf-tl-step:nth-child(even) .pf-tl-card {
    grid-column: 2;
    text-align: left;
    justify-self: stretch;
    max-width: none;
  }
  .pf-tl-spacer { display: none; }
  .js-reveal .pf-tl-step:nth-child(odd) .pf-tl-card,
  .js-reveal .pf-tl-step:nth-child(even) .pf-tl-card {
    transform: translateY(18px);
  }
  .js-reveal .pf-tl-step.is-in .pf-tl-card { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .js-reveal .pf-timeline::before,
  .js-reveal .pf-tl-card,
  .js-reveal .pf-tl-node {
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
  .js-reveal .pf-timeline::before { transform: translateX(-50%) !important; }
}
