﻿/* Services Timeline - "The Process Timeline" (Editorial / Asymmetrical) */

.process-timeline-wrapper {
  background: var(--light-ground);
  padding: 0;
  position: relative;
  padding-bottom: 8rem;
}

.timeline-container {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 3rem;
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
  padding-top: 4rem;
}

@media (max-width: 768px) {
  .timeline-container {
    grid-template-columns: 40px 1fr;
    gap: 2rem;
    padding-inline: 1.5rem;
  }
}

.timeline-track-container {
  position: absolute;
  left: 39px; /* center of 80px column minus 1px for 2px line */
  top: -100px; /* pull up into hero */
  bottom: 0;
  width: 2px;
  z-index: 0;
}

@media (max-width: 768px) {
  .timeline-track-container {
    left: 19px; /* center of 40px column */
  }
}

.timeline-track {
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    transparent,
    var(--sky) 150px,
    var(--sky) 40%,
    var(--navy) 80%,
    transparent 100%
  );
}

.timeline-step {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 45fr 55fr;
  gap: 4rem;
  margin-bottom: 8rem;
  align-items: center;
}

/* On mobile, stack text on top of schema */
@media (max-width: 992px) {
  .timeline-step {
    grid-template-columns: 1fr;
    gap: 3rem;
    margin-bottom: 6rem;
  }
}

.timeline-node {
  position: absolute;
  left: -53px;
  top: 1rem;
  width: 14px;
  height: 14px;
  background: var(--hero-ground);
  border: 2px solid var(--sky);
  border-radius: 50%;
  z-index: 2;
}

@media (max-width: 768px) {
  .timeline-node {
    left: -32px;
  }
}

/* Text directly on background, no cards */
.timeline-content {
  position: relative;
  padding: 0;
}

.timeline-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--sky);
  margin-bottom: 1rem;
  display: block;
}

.timeline-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--body-ink);
  margin-bottom: 1.25rem;
  line-height: 1.1;
  text-wrap: balance;
}

.timeline-desc {
  color: var(--muted-ink);
  font-size: 1.1rem;
  line-height: 1.65;
  margin-bottom: 2rem;
  max-width: 48ch;
}

.deliverables-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.deliverables-list li {
  position: relative;
  padding-left: 2rem;
  color: var(--body-ink);
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.4;
}

.deliverables-list li::before {
  content: "\2014";
  position: absolute;
  left: 0;
  top: -1px;
  color: var(--navy);
  font-weight: 300;
  font-size: 1.1rem;
  opacity: 0.6;
}

.timeline-schema {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

/* Custom SVG container for abstract schematics */
.schema-svg {
  width: 100%;
  max-width: 500px;
  height: auto;
}

/* Service CTA Area */
.services-footer-cta {
  text-align: center;
  padding: 6rem 1.5rem;
  background: var(--light-surface);
  border-top: 1px solid var(--divider);
}

.services-footer-cta h2 {
  font-size: var(--fs-headline);
  margin-bottom: 1.25rem;
}

.services-footer-cta p {
  color: var(--muted-ink);
  font-size: 1.125rem;
  margin-bottom: 2.5rem;
  max-width: 56ch;
  margin-inline: auto;
}

/* Animations */
.schema-spin-slow {
  transform-origin: center;
  animation: spin 30s linear infinite;
}
.schema-spin-reverse {
  transform-origin: center;
  animation: spin-reverse 40s linear infinite;
}
.schema-pulse {
  animation: pulse-opacity 4s ease-in-out infinite alternate;
}
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes spin-reverse {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}
@keyframes pulse-opacity {
  0% { opacity: 0.2; }
  100% { opacity: 0.8; }
}

@media (prefers-reduced-motion: reduce) {
  .schema-spin-slow,
  .schema-spin-reverse,
  .schema-pulse {
    animation: none !important;
  }
  .schema-motion {
    display: none !important;
  }
  .reveal {
    transition-property: opacity !important;
    transform: none !important;
  }
}
