.process {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 0;
  padding: 102px 0 105px;
  color: var(--black);
  background: #f8f6f2;
}

.process::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, transparent 0 31px, rgba(62, 53, 43, .085) 31px 32px);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 20%, #000 80%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 20%, #000 80%, transparent);
}

.process-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 36px;
}
.process-intro .eyebrow { color: #77716a; }
.process-intro > div { flex: 1; }
.process h2 {
  margin: 17px 0 0;
  font-size: clamp(48px, 5.15vw, 75px);
  line-height: .91;
}
.process-intro > p:last-child {
  width: 240px;
  flex: none;
  margin: 0 0 6px;
  color: #68635c;
  font-size: 15px;
  line-height: 1.5;
}

.process-map {
  position: relative;
  width: min(100%, 1000px);
  height: 1180px;
  margin: 70px auto 0;
}
.process-connector {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: #c9c3bb;
  stroke-width: 2;
  stroke-dasharray: 8 7;
  stroke-linecap: round;
  opacity: .85;
  pointer-events: none;
}
.process-connector path {
  vector-effect: non-scaling-stroke;
  animation: process-route-dash 3s linear infinite paused;
}
.process.is-in-view .process-connector path { animation-play-state: running; }
@keyframes process-route-dash { to { stroke-dashoffset: -60; } }

.process-route { position: absolute; inset: 0; margin: 0; padding: 0; list-style: none; }
.process-step {
  --angle: 6deg;
  --pin: #a4683b;
  --note-bg: #faf3e9;
  --note-border: #eee0d0;
  position: absolute;
  z-index: 1;
  width: 318px;
  padding: 9px;
  border: 1px solid #eeeae4;
  border-radius: 25px;
  background: #fff;
  box-shadow: 0 16px 26px rgba(22, 19, 15, .12);
  transform: rotate(var(--angle));
  transition: transform .3s ease, box-shadow .3s ease;
}
.process-step:hover {
  z-index: 3;
  box-shadow: 0 23px 35px rgba(22, 19, 15, .15);
  transform: translateY(-7px) rotate(0) scale(1.025);
}
.process-step.is-visible { animation: process-card-arrive .7s ease-out backwards; }
@keyframes process-card-arrive {
  from { opacity: 0; transform: translateY(22px) rotate(var(--angle)); }
  to { opacity: 1; transform: translateY(0) rotate(var(--angle)); }
}
.process-step:nth-child(1) { top: 0; left: 12%; }
.process-step:nth-child(2) { --angle: -7deg; --pin: #53616c; --note-bg: #edf1f2; --note-border: #dbe3e6; top: 190px; right: 10%; }
.process-step:nth-child(3) { --angle: 6deg; --pin: #736a5c; --note-bg: #f4f0e9; --note-border: #e5ddd1; top: 430px; left: 12%; }
.process-step:nth-child(4) { --angle: -6deg; top: 680px; right: 8%; }
.process-step:nth-child(5) { --angle: 5deg; --pin: #53616c; --note-bg: #edf1f2; --note-border: #dbe3e6; top: 900px; left: 12%; }
.process-pin {
  display: block;
  width: 31px;
  height: 31px;
  margin: 10px auto 14px;
  fill: var(--pin);
  stroke: none;
}
.process-note {
  min-height: 183px;
  padding: 17px 19px 20px;
  border: 1px solid var(--note-border);
  border-radius: 16px;
  background: var(--note-bg);
}
.process-number {
  display: block;
  margin: 0 0 12px;
  color: var(--pin);
  font-family: 'Segoe Print', 'Bradley Hand', cursive;
  font-size: 39px;
  font-style: italic;
  font-weight: 500;
  line-height: 1;
  letter-spacing: -.09em;
}
.process-step h3 {
  margin: 0 0 9px;
  color: #1a1917;
  font-size: 23px;
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -.06em;
}
.process-step p {
  max-width: 255px;
  margin: 0;
  color: #69645e;
  font-size: 14px;
  line-height: 1.43;
}

@media (max-width: 1100px) {
  .process-intro { display: block; }
  .process-intro > p:last-child { width: min(380px, 100%); margin-top: 24px; }
  .process-map { width: min(100%, 850px); }
  .process-step { width: clamp(260px, 35vw, 300px); }
  .process-step:nth-child(odd) { left: 8%; }
  .process-step:nth-child(even) { right: 8%; }
}

@media (max-width: 720px) {
  .process { padding: 76px 0 84px; }
  .process h2 { font-size: clamp(38px, 8.2vw, 58px); }
  .process-intro > p:last-child { margin-top: 20px; font-size: 14px; }
  .process-map { height: auto; margin-top: 58px; }
  .process-connector { display: none; }
  .process-route { position: relative; display: flex; flex-direction: column; gap: 36px; }
  .process-route::before {
    content: "";
    position: absolute;
    top: 70px;
    bottom: 70px;
    left: 50%;
    border-left: 2px dashed #cbc5bd;
    pointer-events: none;
  }
  .process-step {
    position: relative;
    top: auto !important;
    right: auto !important;
    left: auto !important;
    width: min(315px, 82%);
  }
  .process-step:nth-child(odd) { align-self: flex-start; }
  .process-step:nth-child(even) { align-self: flex-end; }
  .process-note { min-height: 160px; }
}

@media (max-width: 420px) {
  .process-step { width: min(290px, 83%); }
  .process-note { padding: 16px; }
  .process-step h3 { font-size: 21px; }
  .process-step p { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  .process-connector path, .process-step.is-visible { animation: none; }
  .process-step { transition: none; }
}
