/* Stage tracker for inner pages (service, technology, hire). Without JavaScript this is a readable ordered list of
   numbered cards; site-flow.js upgrades it to tabs with a progress line, a stage chip and a gentle auto-advance. */
.stage-flow { background: #eceefa; }
.stage-flow .flow { --fv: #4c58b8; --fd: #3a4590; --line: #c9cff0; margin-top: 8px; }

/* base: the plain list */
.flow-list { list-style: none; margin: 0; padding: 0; counter-reset: step; display: grid; gap: 16px; }
.flow-item { counter-increment: step; position: relative; background: #fff; border: 1px solid #d9ddf3; border-radius: 24px; padding: 30px 30px 30px 88px; }
.flow-item::before {
  content: counter(step, decimal-leading-zero); position: absolute; left: 28px; top: 30px; width: 44px; height: 44px;
  display: grid; place-items: center; border-radius: 50%; background: var(--fv, #4c58b8); color: #fff; font-size: 14px;
}
.flow-item h3 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.2; font-weight: 500; letter-spacing: -.02em; }
.flow-item > article > p { font-size: 17px; line-height: 1.75; margin-top: 12px; color: #676879; }
.flow-item .rcv-label { display: block; font-size: 14px; font-weight: 500; margin-top: 24px; color: #323338; }
.rcv { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rcv li { display: flex; flex-direction: column; gap: 12px; padding: 16px 18px; border-radius: 16px; background: #f6f7fd; border: 1px solid #e6e9f8; font-size: 15px; line-height: 1.4; color: #323338; }
.rcv li svg { width: 22px; height: 22px; color: var(--fv, #4c58b8); }
.gate { display: flex; gap: 12px; align-items: flex-start; margin-top: 22px; padding: 14px 18px; border-radius: 16px; background: #eef9f3; }
.gate svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: #00a35f; }
.gate p { margin: 0; font-size: 15px; line-height: 1.55; color: #16603f !important; }
.gate p::before { content: "Review gate: "; font-weight: 500; }

/* enhanced: tabs on the left, one panel on the right */
.flow.is-live { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 36px; align-items: start; }
.flow-tabs { list-style: none; margin: 0; padding: 0; position: relative; display: grid; gap: 8px; }
.flow-tabs::before, .flow-tabs::after { content: ""; position: absolute; left: 40px; top: 44px; width: 2px; border-radius: 2px; }
.flow-tabs::before { bottom: 44px; background: var(--line); }
.flow-tabs::after { height: calc((100% - 88px) * var(--fill, 0)); background: var(--fv); transition: height .7s cubic-bezier(.2, .7, .2, 1); }
.flow-tabs button {
  position: relative; width: 100%; display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: center; text-align: left;
  font: inherit; padding: 14px 18px; border-radius: 20px; border: 1px solid transparent; background: transparent; cursor: pointer; overflow: hidden;
  transition: background .3s, border-color .3s, box-shadow .3s;
}
.flow-tabs button:hover { background: #ffffff99; }
.flow-tabs button[aria-selected=true] { background: #fff; border-color: var(--line); box-shadow: 0 18px 36px -24px #3a459066; }
.flow-tabs .n {
  position: relative; z-index: 1; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #fff;
  border: 2px solid var(--line); color: #5a63a8; font-size: 14px; transition: background .3s, color .3s, border-color .3s, transform .3s;
}
.flow-tabs button[aria-selected=true] .n { background: var(--fv); border-color: var(--fv); color: #fff; transform: scale(1.08); }
.flow-tabs li.done .n { background: #dfe3f7; border-color: #b4bae8; color: var(--fd); }
.flow-tabs .tt { display: grid; gap: 3px; }
.flow-tabs .tt strong { font-weight: 500; font-size: 18px; }
.flow-tabs .tt small { font-size: 14px; color: #676879; line-height: 1.5; }
.flow-tabs .prog { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--fv); }
.flow.playing .flow-tabs button[aria-selected=true] .prog { animation: flow-prog var(--dur, 7s) linear forwards; }

.flow.is-live .flow-list { display: block; background: #fff; border: 1px solid #d9ddf3; border-radius: 28px; padding: 38px; min-height: 420px; box-shadow: 0 30px 60px -40px #3a459055; }
.flow.is-live .flow-item { display: none; background: none; border: 0; border-radius: 0; padding: 0; }
.flow.is-live .flow-item::before { display: none; }
.flow.is-live .flow-item.is-active { display: block; animation: flow-in .5s cubic-bezier(.2, .7, .2, 1); }
.flow .stage { display: inline-block; font-size: 13px; padding: 6px 12px; margin-bottom: 16px; border-radius: 99px; background: #eceefa; color: var(--fd); }

@keyframes flow-prog { to { width: 100%; } }
@keyframes flow-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

@media (max-width: 1100px) {
  .flow.is-live { grid-template-columns: 1fr; }
  .flow-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow-tabs::before, .flow-tabs::after { display: none; }
  .flow-tabs .tt small { display: none; }
}
@media (max-width: 760px) {
  .flow-item { padding: 24px 22px 24px 22px; }
  .flow-item::before { position: static; margin-bottom: 14px; }
  .rcv { grid-template-columns: 1fr; }
  .flow.is-live .flow-list { padding: 24px; }
  .flow-tabs button { grid-template-columns: 1fr; justify-items: start; gap: 10px; padding: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .flow-tabs::after, .flow-tabs button, .flow-tabs .n { transition: none; }
  .flow.is-live .flow-item.is-active { animation: none; }
}
