/**
 * Portfolio Process Timeline Stylesheet
 * Hand-drawn progressive vertical timeline for /people/growth-marketing-lead/
 * Zero excessive glow; crisp architectural styling.
 */

/* Section Container */
#approach.agy-portfolio-section {
  position: relative;
  background-color: #000000;
  padding: 100px 0 130px 0;
  overflow: hidden;
}

.agy-timeline-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 75px auto;
}

/* Eyebrow matching the site's cursive Pacifico aesthetic */
.agy-timeline-header .agy-eyebrow {
  margin: 0 auto 16px auto;
  display: table;
  font-family: var(--font-eyebrow, 'Pacifico', cursive);
  font-size: 23px;
  color: #A78BFA;
  letter-spacing: normal;
  text-transform: none;
}

.agy-timeline-header .agy-timeline-main-title {
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-size: clamp(2rem, 3.8vw, 2.85rem);
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.25;
  margin: 0 0 20px 0;
  letter-spacing: -0.02em;
}

.agy-timeline-header .agy-timeline-main-title .agy-handwritten {
  font-family: 'Caveat', cursive, sans-serif;
  font-weight: 600;
  color: #93C5FD;
  font-size: 1.15em;
  display: inline-block;
  transform: rotate(-1deg);
  margin: 0 4px;
}

.agy-timeline-header .agy-timeline-intro {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: rgba(240, 240, 248, 0.75);
  margin: 0 auto;
  max-width: 720px;
}

/* Timeline Layout Grid */
.agy-progressive-timeline-wrapper {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

/* Hand-drawn SVG Timeline Track - spans entire wrapper so coords match 1:1 */
.agy-timeline-svg-track {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.agy-timeline-svg-track svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.agy-svg-line-base {
  stroke: rgba(255, 255, 255, 0.12);
  stroke-width: 2px;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.agy-svg-line-active {
  stroke: #FFFFFF !important;
  stroke-width: 2.5px;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  transition: stroke-dashoffset 0.12s ease-out;
}

/* Stages List */
.agy-timeline-stages {
  display: flex;
  flex-direction: column;
  gap: 70px;
  position: relative;
  z-index: 2;
}

/* Single Stage Row */
.agy-timeline-stage {
  display: grid;
  grid-template-columns: 80px 1.15fr 1fr;
  gap: 40px;
  align-items: center;
  position: relative;
  opacity: 0.55;
  transform: translateY(10px);
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.agy-timeline-stage.is-active {
  opacity: 1;
  transform: translateY(0);
}

.agy-timeline-stage.is-completed {
  opacity: 0.88;
  transform: translateY(0);
}

/* Stage Node Column (Left) */
.agy-stage-node-col {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  height: 100%;
  padding-top: 6px;
}

.agy-stage-node {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #0E0D16;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-size: 0.95rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
  position: relative;
  z-index: 3;
  transition: all 0.35s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.agy-timeline-stage.is-active .agy-stage-node {
  background: #111827;
  border-color: #FFFFFF !important;
  color: #FFFFFF !important;
}

.agy-timeline-stage.is-active .agy-stage-node::after {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.8) !important;
}

.agy-timeline-stage.is-completed .agy-stage-node {
  background: #0D1929;
  border-color: #FFFFFF !important;
  color: #FFFFFF !important;
}

/* Stage Content Column (Middle) */
.agy-stage-content-col {
  padding-right: 15px;
}

.agy-stage-eyebrow-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-eyebrow, 'Pacifico', cursive) !important;
  font-size: 1.15rem !important;
  font-weight: 400 !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  color: #FFFFFF !important;
  background: linear-gradient(135deg, #FFFFFF 0%, #D6D2DC 60%, #A78BFA 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 12px;
}

.agy-stage-eyebrow-tag .agy-tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #FFFFFF !important;
  display: inline-block;
  -webkit-text-fill-color: initial;
}

.agy-stage-heading {
  font-family: var(--font-heading, 'Space Grotesk', sans-serif);
  font-size: clamp(1.4rem, 2.2vw, 1.85rem);
  font-weight: 600;
  color: #FFFFFF;
  line-height: 1.3;
  margin: 0 0 16px 0;
  letter-spacing: -0.015em;
  transition: color 0.3s ease;
}

.agy-timeline-stage:not(.is-active):not(.is-completed) .agy-stage-heading {
  color: rgba(255, 255, 255, 0.7);
}

.agy-stage-desc {
  font-size: 0.985rem;
  line-height: 1.7;
  color: rgba(240, 240, 248, 0.78);
  margin: 0 0 24px 0;
}

.agy-stage-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.agy-stage-bullet-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(240, 240, 248, 0.88);
}

.agy-bullet-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: #FFFFFF !important;
  stroke-width: 2px;
  fill: none;
}

/* Stage Visual Column (Right) */
.agy-stage-visual-col {
  background: #0E0D16;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 18px;
  padding: 24px;
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s ease, transform 0.3s ease;
}

.agy-timeline-stage.is-active .agy-stage-visual-col {
  border-color: rgba(59, 130, 246, 0.35);
  background: #100F1A;
}

.agy-visual-svg-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Schematic Diagram Styles - Crisp & No Excessive Glow */
.agy-diag-node {
  fill: #161B2E;
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: 1.5;
  transition: all 0.3s ease;
}

.agy-timeline-stage.is-active .agy-diag-node {
  stroke: #3B82F6;
}

.agy-diag-text {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 10px;
  font-weight: 600;
  fill: #FFFFFF;
  text-anchor: middle;
}

.agy-diag-subtext {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 8.5px;
  fill: rgba(240, 240, 248, 0.6);
  text-anchor: middle;
}

.agy-diag-line {
  stroke: rgba(255, 255, 255, 0.15);
  stroke-width: 1.5;
  stroke-dasharray: 3 3;
}

.agy-timeline-stage.is-active .agy-diag-line {
  stroke: rgba(59, 130, 246, 0.6);
}

.agy-diag-core {
  fill: #1E293B;
  stroke: #3B82F6;
  stroke-width: 2;
}

/* Responsive Behavior */
@media (max-width: 1024px) {
  .agy-timeline-stage {
    grid-template-columns: 60px 1.2fr 1fr;
    gap: 24px;
  }
  .agy-stage-node {
    width: 44px;
    height: 44px;
    font-size: 0.875rem;
  }
}

@media (max-width: 860px) {
  .agy-timeline-stage {
    grid-template-columns: 48px 1fr;
    gap: 20px;
  }
  .agy-stage-visual-col {
    grid-column: 2 / 3;
    margin-top: 10px;
  }
  .agy-stage-node {
    width: 40px;
    height: 40px;
    font-size: 0.8rem;
  }
}

@media (max-width: 580px) {
  #approach.agy-portfolio-section {
    padding: 60px 0 80px 0;
  }
  .agy-timeline-stages {
    gap: 48px;
  }
  .agy-timeline-header {
    margin-bottom: 50px;
  }
  .agy-stage-heading {
    font-size: 1.25rem;
  }
  .agy-stage-desc {
    font-size: 0.9rem;
  }
}

/* Solid White Illustration Cards for Approach Stages */
.agy-stage-illustration-col {
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  box-shadow: none !important;
}

.agy-stage-illustration-card {
  width: 100%;
  background: #FFFFFF;
  border-radius: 20px;
  padding: 12px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  overflow: hidden;
  box-sizing: border-box;
}

.agy-timeline-stage.is-active .agy-stage-illustration-card {
  transform: translateY(-4px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.6), 0 0 24px rgba(255, 255, 255, 0.12);
}

.agy-stage-illustration-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  border-radius: 12px;
}