/* Process timeline and scroll focus effects. */
.process-section {
  background: #24221e;
  position: relative;
  isolation: isolate;
  color: #f6f3ec;
  background-color: #24221e;
  padding-bottom: 130px;
}
.process-section .section-topline {
  border-top: 4px solid var(--gold);
  border-color: var(--gold);
}
.process-statement {
  top: 50px;
  align-self: start;
  position: static;
  max-width: none;
}
.process-statement .handwritten {
  font-size: 35px;
  color: #dba20f;
  display: none;
}
.process-steps {
  --timeline-inset: 36px;
  position: relative;
  width: 100%;
  margin: 0;
  padding: 0 0 0 var(--timeline-inset);
  border: 0;
  list-style: none;
  background: linear-gradient(#6c6459, #6c6459) left top / 2px 100% no-repeat;
}
.process-steps li {
  position: relative;
  display: grid;
  grid-template-columns: clamp(110px, 10vw, 170px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(14px, 2vw, 30px);
  min-height: 300px;
  padding: 22px 0;
  border: 0;
}
.process-steps li > span {
  font-family: Manrope, Arial, sans-serif;
  font-weight: 800;
  position: relative;
  z-index: 1;
  transform-origin: left center;
  transition:
    opacity 0.25s ease-out,
    filter 0.25s ease-out,
    transform 0.25s ease-out,
    text-shadow 0.5s ease;
  color: #b67d00;
  font-size: clamp(90px, 8vw, 150px);
  line-height: 0.85;
  letter-spacing: -0.095em;
}
.process-steps h3 {
  font-family: Manrope, Arial, sans-serif;
  letter-spacing: -0.05em;
  margin: 0 0 22px;
  color: #f6f3ec;
  font-size: clamp(32px, 2.8vw, 52px);
  line-height: 1;
  transition: text-shadow 0.5s ease;
}
.process-steps p {
  margin: 0;
  max-width: 470px;
  color: #d2cbc0;
  font-size: clamp(17px, 1.1vw, 20px);
  line-height: 1.5;
  transition: text-shadow 0.5s ease;
}
.process-section::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(246, 243, 236, 0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(246, 243, 236, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.65;
  mask-image: radial-gradient(ellipse 80% 70% at 55% 45%, #000 15%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 55% 45%, #000 15%, transparent 100%);
}
.process-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  align-items: start;
  gap: clamp(40px, 5vw, 100px);
  padding-top: 82px;
}
.process-statement h2 {
  max-width: 100%;
  margin: 0 0 38px;
  font-size: clamp(50px, 4.7vw, 92px);
  line-height: 0.98;
}
.process-statement p {
  max-width: 690px;
  margin: 0;
  color: #d2cbc0;
  font-size: clamp(18px, 1.25vw, 22px);
  line-height: 1.5;
}
.process-steps::before {
  content: "";
  position: absolute;
  top: var(--process-progress, 0px);
  left: -4px;
  z-index: 2;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f0c84e;
  box-shadow:
    0 0 0 5px #e8b11a26,
    0 0 16px #e8b11a99,
    0 0 30px #e8b11a55;
  transform: translateY(-50%);
  opacity: 0;
  pointer-events: none;
  transition:
    top 0.18s ease-out,
    opacity 0.25s ease;
}
.process-steps::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 2px;
  height: var(--process-progress, 0px);
  background: #b67d00;
  transition: height 0.18s ease-out;
}
.process-steps.has-focus::before {
  opacity: 1;
}
.process-steps li::after {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 14px -16px;
  pointer-events: none;
  background: radial-gradient(ellipse at 48% 50%, #e8b11a24 0%, #e8b11a10 48%, transparent 80%);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.process-steps li > div {
  position: relative;
  z-index: 1;
  transform-origin: left center;
  transition:
    opacity 0.25s ease-out,
    filter 0.25s ease-out,
    transform 0.25s ease-out,
    text-shadow 0.5s ease;
}
.process-steps.has-focus li > span,
.process-steps.has-focus li > div {
  opacity: calc(0.6 + var(--step-focus, 0) * 0.4);
  filter: blur(calc((1 - var(--step-focus, 0)) * 1.5px));
  transform: translateX(calc((1 - var(--step-focus, 0)) * 28px))
    scale(calc(0.9 + var(--step-focus, 0) * 0.16));
}
.process-steps.has-focus li::after {
  opacity: var(--step-focus, 0);
}
.process-steps li.is-active > span {
  color: #e8b11a;
  text-shadow: 0 0 26px #e8b11a45;
}
.process-steps li.is-active h3 {
  text-shadow: 0 0 20px #e8b11a38;
}
.process-steps li.is-active p {
  text-shadow: 0 0 16px #e8b11a40;
}
@media (max-width: 1100px) {
  .process-layout {
    display: block;
  }
  .process-statement {
    position: static;
    max-width: 800px;
  }
  .process-statement h2 {
    font-size: clamp(60px, 6.6vw, 90px);
  }
  .process-steps {
    --timeline-inset: 60px;
    width: min(100%, 900px);
    margin: 70px auto 0;
  }
}
@media (max-width: 700px) {
  .process-section {
    padding-bottom: 80px;
  }
  .process-section::before {
    background-size: 34px 34px;
  }
  .process-layout {
    padding-top: 64px;
  }
  .process-statement h2 {
    margin-bottom: 24px;
    font-size: clamp(50px, 10vw, 72px);
  }
  .process-statement p {
    font-size: 17px;
  }
  .process-steps {
    --timeline-inset: 32px;
    margin-top: 55px;
  }
  .process-steps li {
    grid-template-columns: 75px minmax(0, 1fr);
    gap: 12px;
    min-height: 205px;
  }
  .process-steps li > span {
    font-size: clamp(67px, 13vw, 92px);
  }
  .process-steps h3 {
    margin-bottom: 12px;
    font-size: clamp(26px, 7vw, 36px);
  }
  .process-steps p {
    font-size: 15px;
  }
  .process-steps.has-focus li > span,
  .process-steps.has-focus li > div {
    transform: translateX(calc((1 - var(--step-focus, 0)) * 16px))
      scale(calc(0.94 + var(--step-focus, 0) * 0.1));
  }
}
@media (prefers-reduced-motion: reduce) {
  .process-steps::before,
  .process-steps::after,
  .process-steps li::after,
  .process-steps li > span,
  .process-steps li > div,
  .process-steps h3,
  .process-steps p {
    transition: none;
  }
  .process-steps.has-focus li > span,
  .process-steps.has-focus li > div,
  .process-steps.has-focus li.is-active > span,
  .process-steps.has-focus li.is-active > div {
    filter: none;
    transform: none;
  }
}
