/* Each stage keeps the illustration and its caption on the same grid. */
html body.landfree-refined #process.gtm-process .process-header {
  align-items: end;
  margin-bottom: 32px;
}

html body.landfree-refined #process.gtm-process .process-header .process-intro {
  max-width: 50ch;
  text-align: end;
}

html body.landfree-refined #process.gtm-process .process-steps {
  gap: 24px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

html body.landfree-refined #process.gtm-process .process-steps::before,
html body.landfree-refined #process.gtm-process .process-steps::after {
  display: none;
}

html body.landfree-refined #process.gtm-process .process-step {
  display: block;
  border-block-end: 1px solid #283631;
  padding-block-end: 20px;
}

html body.landfree-refined #process.gtm-process .process-visual {
  display: grid;
  place-items: center;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  aspect-ratio: 320 / 216;
}

html body.landfree-refined #process.gtm-process .process-visual .process-art {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
}

html body.landfree-refined #process.gtm-process .step-number {
  width: auto;
  height: auto;
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  background: none;
  font-size: 13px;
}

html body.landfree-refined #process.gtm-process .process-step h3 { margin: 0 0 8px; }
html body.landfree-refined #process.gtm-process .process-step p { max-width: 32ch; margin: 0; }
html body.landfree-refined #process.gtm-process > .process-intro { margin-top: 32px; }

html[data-motion-paused="true"] #process .process-art *,
#process .process-step[data-process-idle] .process-art * {
  animation-play-state: paused !important;
}

@media (max-width: 960px) {
  html body.landfree-refined #process.gtm-process .process-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }
}

@media (max-width: 800px) {
  html body.landfree-refined #process.gtm-process .process-header {
    margin-bottom: 24px;
  }

  html body.landfree-refined #process.gtm-process .process-header .process-intro { text-align: start; }
}

@media (max-width: 520px) {
  html body.landfree-refined #process.gtm-process .process-steps {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  html body.landfree-refined #process.gtm-process .process-step {
    display: grid;
    grid-template-columns: minmax(0, 42%) minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding-block-end: 16px;
  }

  html body.landfree-refined #process.gtm-process .process-step h3 { font-size: 20px; }
}



/* Signals follow the visible routes. Static states remain complete. */
#process .hw-research-dot { offset-path: path("M163 120 H195"); }
#process .hw-distribute-a { offset-path: path("M150 127 H195 V72 H235"); }
#process .hw-distribute-b { offset-path: path("M150 127 H365"); }
#process .hw-distribute-c { offset-path: path("M150 127 H195 V182 H235"); }
#process .hw-distribute-a, #process .hw-distribute-b, #process .hw-distribute-c { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  #process .process-step[data-process-play] .hw-research-dot { animation: hw-travel 4s ease-in-out infinite; }
  #process .process-step[data-process-play] .hw-position-focus { animation: hw-outline 4s ease-in-out infinite; }
  #process .process-step[data-process-play] .hw-distribute-a { animation: hw-travel 5s ease-in-out infinite; }
  #process .process-step[data-process-play] .hw-distribute-b { animation: hw-travel 5s ease-in-out .6s infinite; }
  #process .process-step[data-process-play] .hw-distribute-c { animation: hw-travel 5s ease-in-out 1.2s infinite; }
  #process .process-step[data-process-play] .hw-refine-dot { animation: hw-check 4s ease-in-out infinite; }
}
@keyframes hw-travel {
  0%, 15% { offset-distance: 0%; opacity: 0; }
  25% { opacity: 1; }
  75% { opacity: 1; }
  90%, 100% { offset-distance: 100%; opacity: 0; }
}
@keyframes hw-outline { 0%, 20%, 100% { opacity: .25; } 45%, 75% { opacity: 1; } }
@keyframes hw-check { 0%, 20%, 100% { opacity: .25; } 45%, 75% { opacity: 1; } }

#process .hw-position-ring { transform-box: fill-box; transform-origin: center; }
@media (prefers-reduced-motion: no-preference) {
  #process .process-step[data-process-play] .hw-position-ring { animation: hw-position-ring 4s ease-in-out infinite; }
  #process .process-step[data-process-play] .hw-channel-one { animation: hw-channel 5s ease-in-out infinite; }
  #process .process-step[data-process-play] .hw-channel-two { animation: hw-channel 5s ease-in-out .6s infinite; }
  #process .process-step[data-process-play] .hw-channel-three { animation: hw-channel 5s ease-in-out 1.2s infinite; }
}
@keyframes hw-position-ring { 0%, 20%, 100% { opacity: .35; transform: scale(1); } 50%, 75% { opacity: 1; transform: scale(.72); } }
@keyframes hw-channel { 0%, 20%, 100% { opacity: .3; } 35%, 65% { opacity: 1; } }

/* A visible signal traces the positioning rings and each distribution route. */
#process .hw-position-signal,
#process .hw-packet-one,
#process .hw-packet-two,
#process .hw-packet-three { opacity: 0; }
#process .hw-position-signal { offset-path: path("M208 60 A66 66 0 1 1 208 192 A66 66 0 1 1 208 60"); }
#process .hw-packet-one { offset-path: path("M181 104 L224 79 H346 H369"); }
#process .hw-packet-two { offset-path: path("M201 126 H273 H378"); }
#process .hw-packet-three { offset-path: path("M181 148 L224 173 H346 H369"); }
@media (prefers-reduced-motion: no-preference) {
  #process .process-step[data-process-play] .hw-position-signal { animation: hw-signal-loop 4s linear infinite; }
  #process .process-step[data-process-play] .hw-packet-one { animation: hw-signal-loop 3.6s linear infinite; }
  #process .process-step[data-process-play] .hw-packet-two { animation: hw-signal-loop 3.6s linear .4s infinite; }
  #process .process-step[data-process-play] .hw-packet-three { animation: hw-signal-loop 3.6s linear .8s infinite; }
}
@keyframes hw-signal-loop {
  0% { offset-distance: 0%; opacity: 0; }
  8%, 82% { opacity: 1; }
  95%, 100% { offset-distance: 100%; opacity: 0; }
}

@media (prefers-reduced-motion: no-preference) {
  #process .process-step[data-process-play] .hw-refine-scanner {
    animation: hw-review-scan 4s ease-in-out infinite alternate;
  }
}
@keyframes hw-review-scan {
  from { transform: translateY(-7px); }
  to { transform: translateY(49px); }
}

#process .hw-research-marker { opacity: 0; offset-path: path("M72 148 H205"); }
@media (prefers-reduced-motion: no-preference) {
  #process .process-step[data-process-play] .hw-research-marker {
    animation: hw-signal-loop 4s linear infinite;
  }
}

/* The lens scans within the right page and returns to its starting point. */
html body.landfree-refined #process.gtm-process .process-step:first-child .process-art {
  width: 90%;
}
@media (prefers-reduced-motion: no-preference) {
  #process .process-step[data-process-play] .hw-research-lens {
    animation: hw-research-inspect 6s ease-in-out infinite;
  }
}
@keyframes hw-research-inspect {
  0%, 12%, 100% { transform: translate(0, 0); }
  38%, 52% { transform: translate(48px, 0); }
  76%, 84% { transform: translate(14px, 26px); }
}

/* Give the open-book illustration a taller page proportion. */
html body.landfree-refined #process.gtm-process .process-step:first-child .process-art {
  height: auto;
  aspect-ratio: 460 / 205;
}
html body.landfree-refined #process.gtm-process .process-step:first-child .process-art {
  overflow: visible;
}

html body.landfree-refined #process.gtm-process .process-step:first-child .process-art {
  width: 100%;
  aspect-ratio: 500 / 260;
}
@media (prefers-reduced-motion: no-preference) {
  #process .process-step[data-process-play] .hw-book-lens { animation: hw-book-read 7s ease-in-out infinite; }
}
@keyframes hw-book-read {
  0%, 12%, 100% { transform: translate(0, 0); }
  35%, 48% { transform: translate(25px, -4px); }
  70%, 80% { transform: translate(8px, 15px); }
}
