/* Relume-inspired vertical timeline, in the DE Infra palette. */
#program .section-heading { max-width: 1040px; }
#program .section-heading > p:last-child { max-width: 760px; }
#program .program-journey {
  --timeline-column: 64px;
  --timeline-gap: 28px;
  --timeline-x: calc(39.534884% + 11.55814px);
  position: relative;
  display: block !important;
  margin-top: 52px;
  isolation: isolate;
}
#program .program-timeline-step {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .85fr) var(--timeline-column) minmax(0, 1.3fr);
  column-gap: var(--timeline-gap);
  padding-bottom: 100px;
}
#program .program-timeline-step:last-child { padding-bottom: 0; }
#program .program-stage { min-width: 0; align-self: stretch; }
#program .program-stage-inner {
  position: sticky;
  top: calc(50vh - 48px);
  margin-top: 25px;
  padding-right: 12px;
  text-align: right;
  opacity: var(--step-opacity, 1);
  transition: opacity 300ms ease, color 300ms ease;
}
#program .program-stage-number {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: clamp(34px, 3.8vw, 48px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -.055em;
  transition: color 300ms ease;
}
#program .program-stage strong {
  display: block;
  color: var(--muted);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: -.035em;
  transition: color 300ms ease;
}
#program .program-timeline-marker { position: relative; align-self: stretch; }
#program .program-timeline-dot {
  position: sticky;
  top: calc(50vh - 8px);
  display: block;
  width: 16px;
  height: 16px;
  margin: 63px auto 0;
  border: 2px solid #5a536f;
  border-radius: 50%;
  background: var(--bg, #101318);
  box-shadow: 0 0 0 8px var(--bg, #101318);
  transition: border-color 300ms ease, background 300ms ease, box-shadow 300ms ease;
}
#program .program-timeline-rail {
  position: absolute;
  z-index: -1;
  left: var(--timeline-x);
  top: 71px;
  bottom: 8px;
  width: 2px;
  overflow: hidden;
  background: #a599e82b;
  border-radius: 2px;
}
#program .program-timeline-fill {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, #c5baff, var(--accent));
  transform: scaleY(var(--timeline-progress, 0));
  transform-origin: top center;
}
#program .program-timeline-step[data-step-state="current"] .program-stage-number,
#program .program-timeline-step[data-step-state="complete"] .program-stage-number { color: var(--accent); }
#program .program-timeline-step[data-step-state="current"] .program-stage strong { color: var(--text); }
#program .program-timeline-step[data-step-state="complete"] .program-stage strong { color: var(--soft); }
#program .program-timeline-step[data-step-state="current"] .program-timeline-dot {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 8px var(--bg, #101318), 0 0 0 11px #9c8dff20;
}
#program .program-timeline-step[data-step-state="complete"] .program-timeline-dot {
  border-color: var(--accent);
  background: var(--accent);
}
#program .program-timeline-step .program-card {
  opacity: var(--step-opacity, 1);
  transform: translateY(var(--step-shift, 0px));
}
#program .program-timeline-step[data-step-state="current"] .program-card { border-color: #9c8dff78; }
#program .program-timeline-step:focus-within .program-card,
#program .program-timeline-step .program-card:hover,
#program .program-card.is-expanded { opacity: 1; transform: none; }
#program .program-journey .program-card {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 350px;
  padding: 32px;
  overflow: visible;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: linear-gradient(145deg, #191c23, #15181e);
  transition: border-color 280ms ease, outline-color 280ms ease, opacity 300ms ease, transform 400ms cubic-bezier(.16,1,.3,1);
}

#program .program-card::before {
  display: none;
}

#program .program-card.is-expanded {
  border-color: #9c8dff75;
  background: linear-gradient(145deg, #191c23, #15181e);
}

#program .program-index {
  position: absolute;
  z-index: 0;
  top: 21px;
  right: 27px;
  color: #9c8dff24;
  font-size: clamp(86px, 8vw, 112px);
  font-weight: 300;
  line-height: .9;
  letter-spacing: -.075em;
  pointer-events: none;
  user-select: none;
}

#program .program-card > :not(.program-index) {
  position: relative;
  z-index: 1;
}

#program .program-card .card-number {
  display: block;
  max-width: calc(100% - 92px);
  margin-bottom: 26px;
  color: var(--soft);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: .08em;
}

/* The long final-stage heading starts below its decorative number. */
#program .program-step-5 .card-number { min-height: 76px; }

#program .program-card h3 {
  margin-bottom: 14px;
  color: var(--text);
  font-size: 28px;
  font-weight: 450;
  line-height: 1.2;
  letter-spacing: -.045em;
}

#program .program-card p {
  max-width: none;
  font-size: 14.5px;
  line-height: 1.7;
}

#program .program-card .card-tags {
  margin-top: auto;
  padding-top: 22px;
  gap: 8px;
}

#program .program-action {
  margin-top: 20px;
  padding-top: 12px;
  color: var(--soft);
  font-size: 12px;
  box-shadow: none;
}

#program .program-details {
  padding-top: 18px;
}

#program .program-details[hidden] {
  display: none;
}

#program .program-details p {
  color: var(--soft);
  font-size: 14px;
}

#program .program-support {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 38px;
  row-gap: 0;
  min-height: 0;
  margin-top: 64px;
  padding: 28px 32px;
  overflow: visible;
  border-radius: 22px;
  background: #171a21;
}

#program .program-support .card-number {
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: none;
  margin-bottom: 12px;
}

#program .program-support h3 {
  margin-bottom: 10px;
  font-size: 24px;
  line-height: 1.25;
}

#program .program-support p {
  max-width: 780px;
}

#program .program-support .card-tags {
  align-self: center;
  max-width: 260px;
  margin: 0;
  padding: 0;
}

#program .program-support .program-action,
#program .program-support .program-details {
  grid-column: 1 / -1;
}

@media (hover: hover) and (pointer: fine) {
  #program .program-card:hover,
  #program .program-card:focus-within {
    border-color: #9c8dff95;
    filter: none;
  }

  #program .program-card:hover,
  #program .program-action:hover,
  #program .program-action:active {
    translate: none !important;
    scale: none !important;
    rotate: none !important;
    box-shadow: none;
  }

  #program .program-action:hover {
    transform: none !important;
  }
}


@media (max-width: 1000px) and (min-width: 761px) {
  #program .program-journey { --timeline-column: 48px; --timeline-gap: 22px; --timeline-x: calc(33.333333% + 14.33333px); }
  #program .program-timeline-step { grid-template-columns: minmax(0, .65fr) var(--timeline-column) minmax(0, 1.3fr); }
  #program .program-stage strong { font-size: 22px; }
  #program .program-journey .program-card { padding: 28px; }
}
@media (max-width: 760px) {
  #program .program-journey { --timeline-column: 26px; --timeline-gap: 18px; --timeline-x: 12px; margin-top: 34px; }
  #program .program-timeline-step {
    grid-template-columns: var(--timeline-column) minmax(0, 1fr);
    column-gap: var(--timeline-gap);
    padding-bottom: 64px;
  }
  #program .program-stage { display: none; }
  #program .program-timeline-marker { grid-column: 1; grid-row: 1; }
  #program .program-timeline-step .program-card { grid-column: 2; grid-row: 1; }
  #program .program-timeline-dot { width: 12px; height: 12px; margin-top: 31px; top: calc(50vh - 6px); box-shadow: 0 0 0 5px var(--bg, #101318); }
  #program .program-timeline-rail { top: 37px; bottom: 6px; }
  #program .program-timeline-step[data-step-state="current"] .program-timeline-dot { box-shadow: 0 0 0 5px var(--bg, #101318), 0 0 0 8px #9c8dff20; }
  #program .program-journey .program-card { min-height: 0; padding: 26px 24px; border-radius: 21px; }
  #program .program-index { top: 25px; right: 22px; font-size: 78px; }
  #program .program-card .card-number { max-width: calc(100% - 68px); margin-bottom: 26px; font-size: 9px; }
  #program .program-step-5 .card-number { min-height: 56px; }
  #program .program-card h3 { font-size: 26px; line-height: 1.22; }
  #program .program-card p { font-size: 14px; }
  #program .program-support { grid-template-columns: minmax(0, 1fr); column-gap: 0; margin-top: 42px; padding: 27px 24px; }
  #program .program-support .card-tags { max-width: none; padding-top: 20px; }
  #program .program-support h3 { font-size: 23px; }
}
@media (max-width: 400px) {
  #program .program-journey { --timeline-column: 20px; --timeline-gap: 12px; --timeline-x: 9px; }
  #program .program-journey .program-card { padding-inline: 20px; }
  #program .program-card h3 { font-size: 25px; }
  #program .program-card .card-tags { gap: 7px; }
  #program .card-tags > span { padding-inline: 9px; }
}
@media (prefers-reduced-motion: reduce) {
  #program .program-timeline-step .program-card,
  #program .program-stage-inner { opacity: 1; transform: none; }
  #program .program-card,
  #program .program-action,
  #program .expand-mark,
  #program .program-stage-number,
  #program .program-stage strong,
  #program .program-timeline-dot { transition: none; }
}
