section.process-timeline-section {
  padding: clamp(82px, 9vw, 130px) 0 100px;
  background: #f6f7f4;
  color: #1a2b2f;
  scroll-margin-top: 0;
}

.timeline-heading {
  max-width: 790px;
  margin: 0 auto 74px;
  text-align: center;
}

.timeline-eyebrow,
.timeline-phase,
.timeline-outro > span {
  color: #ad5429;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .15em;
}

.timeline-heading .section-title {
  margin: 17px 0 23px;
  font-size: clamp(48px, 5.2vw, 74px);
  line-height: 1.08;
  text-wrap: balance;
}

.timeline-heading p {
  max-width: 590px;
  margin: 0 auto;
  color: #536368;
  font-size: 18px;
  line-height: 1.65;
}

.timeline-shell {
  position: relative;
  max-width: 1160px;
  margin: 0 auto;
}

.timeline-rail {
  position: absolute;
  z-index: 0;
  top: var(--timeline-top, 150px);
  left: var(--timeline-left, 50%);
  width: 2px;
  height: var(--timeline-height, calc(100% - 300px));
  overflow: hidden;
  background: #cbd5d0;
  transform: translateX(-50%);
}

.timeline-rail-fill {
  display: block;
  width: 100%;
  height: calc(var(--timeline-progress, 0) * 100%);
  background: #d36b35;
  transition: height .14s linear;
}

.timeline-list {
  display: grid;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline-item {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 62px minmax(0, 1fr);
  column-gap: clamp(24px, 3.8vw, 54px);
  align-items: center;
  min-height: 300px;
}

.timeline-copy {
  grid-column: 3;
  grid-row: 1;
  max-width: 440px;
  padding: 24px 0;
}

.timeline-copy h3 {
  max-width: 430px;
  margin: 15px 0 12px;
  font: 400 clamp(30px, 2.45vw, 38px)/1.14 Anton, Impact, sans-serif;
  letter-spacing: -.01em;
  text-wrap: balance;
}

.timeline-copy p {
  max-width: 410px;
  margin: 0;
  color: #536368;
  font-size: 16px;
  line-height: 1.65;
}

.timeline-marker {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  justify-self: center;
  border: 1px solid #d0a891;
  border-radius: 50%;
  background: #f6f7f4;
  box-shadow: 0 0 0 10px #f6f7f4;
  color: #aa5429;
  font: 400 22px/1 Anton, Impact, sans-serif;
  transition: background .45s ease, border-color .45s ease, color .45s ease, transform .65s cubic-bezier(.2,.7,.2,1), opacity .65s ease;
}

.timeline-item.is-passed .timeline-marker {
  border-color: #d36b35;
  background: #d36b35;
  color: #fff;
}

.timeline-visual {
  grid-column: 1;
  grid-row: 1;
  width: min(100%, 490px);
  aspect-ratio: 1.65;
  justify-self: end;
  overflow: hidden;
  border-radius: 12px;
  background: #d9ded8;
  box-shadow: 0 18px 42px rgba(23, 45, 46, .12);
}

.timeline-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.2,.7,.2,1);
}

.timeline-item:hover .timeline-visual img { transform: scale(1.035); }

.timeline-item:nth-child(even) .timeline-copy {
  grid-column: 1;
  justify-self: end;
  width: min(100%, 490px);
}

.timeline-item:nth-child(even) .timeline-visual {
  grid-column: 3;
  justify-self: start;
}

.timeline-outro {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 85px auto 0;
  padding-top: 36px;
  border-top: 1px solid #dce3de;
  text-align: center;
}

.timeline-outro p {
  margin: 13px 0 24px;
  font-size: 19px;
  line-height: 1.5;
}

.timeline-outro a {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 15px;
  padding: 11px 22px;
  background: #1a3539;
  color: #fff;
  font: 400 16px/1.2 Anton, Impact, sans-serif;
  transition: background .2s ease, transform .2s ease;
}

.timeline-outro a:hover { background: #aa5429; transform: translateY(-2px); }
.timeline-outro a:focus-visible { outline: 3px solid #aa5429; outline-offset: 4px; }
.timeline-outro a span { font: 500 20px/1 "DM Sans", Arial, sans-serif; }

@media (prefers-reduced-motion: no-preference) {
  .timeline-motion .timeline-copy,
  .timeline-motion .timeline-visual {
    transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
  }

  .timeline-motion .timeline-visual { transition-delay: .08s; }

  .timeline-motion .timeline-item:not(.is-visible) .timeline-copy,
  .timeline-motion .timeline-item:not(.is-visible) .timeline-visual {
    opacity: 0;
    transform: translateY(32px);
  }

  .timeline-motion .timeline-item:not(.is-visible) .timeline-marker {
    opacity: .45;
    transform: scale(.78);
  }
}

@media (max-width: 760px) {
  section.process-timeline-section { padding: 72px 0 78px; }
  .timeline-heading { margin-bottom: 52px; }
  .timeline-heading .section-title { font-size: clamp(39px, 8.6vw, 56px); }
  .timeline-heading p { font-size: 16px; }
  .timeline-rail { left: var(--timeline-left, 24px); top: var(--timeline-top, 27px); height: var(--timeline-height, calc(100% - 54px)); }
  .timeline-list { gap: 54px; }
  .timeline-item {
    grid-template-columns: 48px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 21px;
    row-gap: 18px;
    min-height: 0;
    align-items: start;
  }
  .timeline-marker { grid-column: 1; grid-row: 1 / span 2; width: 48px; height: 48px; font-size: 18px; box-shadow: 0 0 0 7px #f6f7f4; }
  .timeline-copy,
  .timeline-item:nth-child(even) .timeline-copy { grid-column: 2; grid-row: 1; width: 100%; max-width: none; padding: 2px 0 0; }
  .timeline-copy h3 { font-size: clamp(27px, 6vw, 34px); margin: 11px 0 9px; }
  .timeline-copy p { font-size: 15px; line-height: 1.6; }
  .timeline-visual,
  .timeline-item:nth-child(even) .timeline-visual { grid-column: 2; grid-row: 2; width: 100%; justify-self: stretch; aspect-ratio: 1.53; }
  .timeline-outro { margin-top: 64px; }
}

@media (max-width: 390px) {
  .timeline-heading .section-title { font-size: 37px; }
  .timeline-item { column-gap: 16px; }
  .timeline-copy h3 { font-size: 26px; }
  .timeline-phase { font-size: 10px; }
  .timeline-outro a { width: 100%; font-size: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .timeline-marker,
  .timeline-outro a,
  .timeline-rail-fill,
  .timeline-visual img { transition: none; }

  .timeline-item:hover .timeline-visual img { transform: none; }
}
