/* RHD process flow + press-and-hold visual preview.
   Keeps the 01–09 sequence concise while adding direction, tactile feedback and a temporary visual layer. */

.process-section-hint{
  margin:-18px 0 28px;
  color:#777;
  font-size:11px;
  line-height:1.5;
  letter-spacing:.035em;
}
.process-section-hint::before{
  content:"";
  display:inline-block;
  width:22px;
  height:1px;
  margin:0 9px 3px 0;
  background:#c51319;
  vertical-align:middle;
}

/* Flow cards: the existing chamfer remains the main visual language. */
.service-page .process-line--flow .process-step{
  cursor:default;
  touch-action:pan-y;
  -webkit-touch-callout:none;
  outline:0;
}
.service-page .process-line--flow .process-step::before{
  transition:width .42s linear,background .18s ease;
}
.service-page .process-line--flow .process-step.is-arming::before{
  width:calc(100% - 42px);
  background:linear-gradient(90deg,#c51319,#e02027 72%,rgba(224,32,39,.22));
}
.service-page .process-line--flow .process-step.is-previewing{
  transform:translateY(1px) scale(.985);
  border-color:rgba(224,32,39,.58);
  filter:brightness(1.08);
}

/* Directional continuity. Small markers only; they never compete with the step labels. */
.process-flow-link{
  position:absolute;
  z-index:4;
  display:flex;
  align-items:center;
  justify-content:center;
  color:rgba(197,19,25,.72);
  font-family:Inter,system-ui,sans-serif;
  font-size:17px;
  font-weight:600;
  line-height:1;
  pointer-events:none;
  text-shadow:0 0 10px rgba(197,19,25,.12);
}
.process-flow-link--right{
  right:-11px;
  top:50%;
  width:22px;
  height:24px;
  transform:translateY(-50%);
}
.process-flow-link--down{
  left:50%;
  bottom:-12px;
  width:24px;
  height:24px;
  transform:translateX(-50%);
}
.process-step-final{
  position:absolute;
  right:18px;
  bottom:16px;
  color:rgba(255,255,255,.34);
  font-size:8px;
  font-weight:700;
  letter-spacing:.18em;
  text-transform:uppercase;
  pointer-events:none;
}
.service-page .process-line--flow .process-step:last-child{
  background:linear-gradient(135deg,#181818 0%,#1d1d1d 70%,rgba(197,19,25,.17) 100%);
}

/* One-time staggered entrance when the sequence reaches the viewport. */
@media (prefers-reduced-motion:no-preference){
  .process-line--flow.is-flow-ready .process-step{
    opacity:0;
    transform:translateY(10px);
  }
  .process-line--flow.is-flow-ready.is-flow-visible .process-step{
    animation:rhdFlowIn .34s cubic-bezier(.2,.7,.2,1) forwards;
  }
  .process-line--flow.is-flow-visible .process-step:nth-child(1){animation-delay:.02s}
  .process-line--flow.is-flow-visible .process-step:nth-child(2){animation-delay:.07s}
  .process-line--flow.is-flow-visible .process-step:nth-child(3){animation-delay:.12s}
  .process-line--flow.is-flow-visible .process-step:nth-child(4){animation-delay:.17s}
  .process-line--flow.is-flow-visible .process-step:nth-child(5){animation-delay:.22s}
  .process-line--flow.is-flow-visible .process-step:nth-child(6){animation-delay:.27s}
  .process-line--flow.is-flow-visible .process-step:nth-child(7){animation-delay:.32s}
  .process-line--flow.is-flow-visible .process-step:nth-child(8){animation-delay:.37s}
  .process-line--flow.is-flow-visible .process-step:nth-child(9){animation-delay:.42s}
  @keyframes rhdFlowIn{
    to{opacity:1;transform:translateY(0)}
  }
}

/* Temporary technical preview: appears only while the step remains held. */
.process-preview-overlay{
  position:fixed;
  inset:0;
  z-index:200;
  display:grid;
  place-items:center;
  padding:26px;
  background:rgba(10,10,11,.40);
  backdrop-filter:blur(10px) saturate(.88);
  -webkit-backdrop-filter:blur(10px) saturate(.88);
  opacity:0;
  visibility:hidden;
  pointer-events:none;
  transition:opacity .16s ease,visibility .16s ease;
}
.process-preview-overlay.is-open{
  opacity:1;
  visibility:visible;
}
.process-preview-frame{
  position:relative;
  width:min(86vw,760px);
  max-height:72vh;
  overflow:hidden;
  border-radius:22px;
  background:#111;
  box-shadow:0 30px 90px rgba(0,0,0,.42),0 0 0 1px rgba(255,255,255,.14);
  transform:scale(.965) translateY(8px);
  opacity:.86;
  transition:transform .17s ease,opacity .17s ease;
}
.process-preview-overlay.is-open .process-preview-frame{
  transform:scale(1) translateY(0);
  opacity:1;
}
.process-preview-image{
  display:block;
  width:100%;
  max-height:68vh;
  object-fit:contain;
  background:#0d0d0e;
}
.process-preview-image[hidden]{display:none}
.process-preview-placeholder{
  min-height:min(54vh,470px);
  display:grid;
  place-items:center;
  padding:42px;
  text-align:center;
  background:
    linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),
    linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px),
    linear-gradient(145deg,#111,#181818);
  background-size:34px 34px,34px 34px,auto;
}
.process-preview-placeholder[hidden]{display:none}
.process-preview-placeholder span{
  display:block;
  color:rgba(255,255,255,.46);
  font-size:10px;
  font-weight:700;
  letter-spacing:.16em;
  text-transform:uppercase;
}
.process-preview-meta{
  position:absolute;
  left:18px;
  right:18px;
  bottom:18px;
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  padding:15px 17px;
  border-left:3px solid #c51319;
  border-radius:13px;
  background:rgba(247,247,245,.90);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  box-shadow:0 14px 32px rgba(0,0,0,.22);
}
.process-preview-step{
  color:#c51319;
  font-family:"Barlow Condensed",Inter,sans-serif;
  font-size:24px;
  font-weight:800;
  line-height:1;
}
.process-preview-title{
  flex:1;
  color:#111;
  font-family:"Barlow Condensed",Inter,sans-serif;
  font-size:27px;
  font-weight:800;
  line-height:1;
  text-transform:uppercase;
}
.process-preview-state{
  color:#6a6a6a;
  font-size:8px;
  font-weight:700;
  letter-spacing:.12em;
  text-transform:uppercase;
  white-space:nowrap;
}

@media(max-width:980px){
  .process-flow-link{font-size:16px}
}

@media(min-width:641px){
  /* Desktop/tablet 3-column routing: 1→2→3, down, 4→5→6, down, 7→8→9. */
  .process-step:nth-child(1) .process-flow-link,
  .process-step:nth-child(2) .process-flow-link,
  .process-step:nth-child(4) .process-flow-link,
  .process-step:nth-child(5) .process-flow-link,
  .process-step:nth-child(7) .process-flow-link,
  .process-step:nth-child(8) .process-flow-link{right:-11px;top:50%;bottom:auto;left:auto;transform:translateY(-50%)}
  .process-step:nth-child(3) .process-flow-link,
  .process-step:nth-child(6) .process-flow-link{left:50%;bottom:-12px;right:auto;top:auto;transform:translateX(-50%)}
}

@media(max-width:640px){
  .process-section-hint{margin:-12px 0 24px;font-size:10px}
  /* Mobile 2-column routing: 1→2, down, 3→4, down ... 7→8, down to 9. */
  .process-step:nth-child(odd):not(:last-child) .process-flow-link{
    right:-10px;top:50%;bottom:auto;left:auto;transform:translateY(-50%);
  }
  .process-step:nth-child(even) .process-flow-link{
    left:50%;bottom:-11px;right:auto;top:auto;transform:translateX(-50%);
  }
  .process-preview-overlay{padding:18px}
  .process-preview-frame{width:min(88vw,620px);max-height:66vh;border-radius:20px}
  .process-preview-image{max-height:62vh}
  .process-preview-placeholder{min-height:54vh;padding:28px}
  .process-preview-meta{left:12px;right:12px;bottom:12px;padding:13px 14px;border-radius:12px}
  .process-preview-step{font-size:21px}
  .process-preview-title{font-size:22px}
  .process-preview-state{display:none}
}

@media(prefers-reduced-motion:reduce){
  .process-preview-overlay,.process-preview-frame,.service-page .process-line--flow .process-step::before{transition:none}
}
