/* ══════════════════════════════════════
   WORKFLOW VIZ — animated node diagrams for case study pages
   ══════════════════════════════════════ */

.cs-flow {
  margin: 64px 0;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 16px;
  background: #101014;
  overflow: hidden;
}
.cs-flow__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.cs-flow__title {
  font-family: 'QanelasHeavy', 'Barlow Condensed', sans-serif;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
}
.cs-flow__full {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'QanelasHeavy', 'Barlow Condensed', sans-serif;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  text-decoration: none;
  background: #FF6A00;
  border-radius: 100px;
  padding: 9px 20px;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 6px 22px rgba(255,106,0,0.28);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.cs-flow__full:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 32px rgba(255,106,0,0.4);
}
.cs-flow__scroll {
  overflow-x: auto;
  padding: 26px 12px;
  display: flex;
}
.cs-flow__scroll::after { content: ''; flex: 0 0 12px; }
.wf-board { margin: 0 auto; }
.cs-flow__caption {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  color: rgba(246,247,248,0.4);
  padding: 0 22px 18px;
  margin: 0;
}

/* ── Board ── */
.wf-board {
  position: relative;
  flex-shrink: 0;
  background-image: radial-gradient(rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 22px 22px;
}
.wf-svg { position: absolute; inset: 0; pointer-events: none; }

/* ── Edges ── */
.wf-edge-base { stroke: rgba(255,255,255,0.13); stroke-width: 1.5; fill: none; }
.wf-edge-flow {
  stroke: rgba(255,106,0,0.5);
  stroke-width: 1.5;
  fill: none;
  stroke-dasharray: 5 10;
  animation: wf-dash 1.15s linear infinite;
}
@keyframes wf-dash { to { stroke-dashoffset: -15; } }
.wf-dot { fill: #FF6A00; filter: drop-shadow(0 0 4px rgba(255,106,0,0.9)); }
.wf-edge-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  fill: rgba(246,247,248,0.45);
}
.wf-edge-label--yes { fill: #FF6A00; }

/* ── Nodes ── */
.wf-board { --wf-scale: 1; }
.wf-node {
  position: absolute;
  display: flex;
  align-items: center;
  gap: calc(11px * var(--wf-scale));
  padding: 0 calc(14px * var(--wf-scale));
  background: #15151b;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: calc(12px * var(--wf-scale));
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.wf-in .wf-node { opacity: 1; transform: none; }
.wf-node__badge {
  flex-shrink: 0;
  width: calc(24px * var(--wf-scale));
  height: calc(24px * var(--wf-scale));
  border-radius: 50%;
  border: 1px solid rgba(255,106,0,0.5);
  color: #FF6A00;
  font-family: 'QanelasHeavy', 'Barlow Condensed', sans-serif;
  font-size: calc(11px * var(--wf-scale));
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}
.wf-node__label {
  font-family: 'Montserrat', sans-serif;
  font-size: calc(12px * var(--wf-scale));
  font-weight: 600;
  line-height: 1.35;
  color: rgba(246,247,248,0.85);
}
.wf-node--start {
  border-color: rgba(255,106,0,0.55);
  background: linear-gradient(135deg, rgba(255,106,0,0.16), rgba(255,106,0,0.04) 60%), #15151b;
}
.wf-node--start .wf-node__badge { background: #FF6A00; color: #fff; border-color: #FF6A00; }
.wf-node--start::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 12px;
  border: 1px solid rgba(255,106,0,0.5);
  animation: wf-pulse 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes wf-pulse {
  0%   { opacity: 0.7; transform: scale(1); }
  70%  { opacity: 0;   transform: scale(1.08); }
  100% { opacity: 0;   transform: scale(1.08); }
}
.wf-node--end {
  border-color: rgba(214,161,74,0.55);
  background: linear-gradient(135deg, rgba(214,161,74,0.14), rgba(214,161,74,0.03) 60%), #15151b;
}
.wf-node--end .wf-node__badge { border-color: #D6A14A; color: #D6A14A; }
.wf-node--dec { border-style: dashed; border-color: rgba(255,106,0,0.45); }
.wf-node--dec .wf-node__label { color: #fff; }

/* ── Node tooltip — why the flow reaches this step ── */
.wf-node--info { cursor: pointer; }
.wf-tip {
  position: absolute;
  z-index: 6;
  width: 250px;
  background: #1b1b22;
  border: 1px solid rgba(255,106,0,0.45);
  border-radius: 14px;
  padding: 13px 15px 14px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.55), 0 0 0 4px rgba(255,106,0,0.06);
  opacity: 0;
  transform: translateY(6px);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}
.wf-tip.show { opacity: 1; transform: none; }
.wf-tip::after {
  content: '';
  position: absolute;
  left: var(--ax, 50%);
  bottom: -6px;
  width: 11px;
  height: 11px;
  margin-left: -5.5px;
  background: #1b1b22;
  border-right: 1px solid rgba(255,106,0,0.45);
  border-bottom: 1px solid rgba(255,106,0,0.45);
  transform: rotate(45deg);
}
.wf-tip--below::after {
  bottom: auto;
  top: -6px;
  border-right: none;
  border-bottom: none;
  border-left: 1px solid rgba(255,106,0,0.45);
  border-top: 1px solid rgba(255,106,0,0.45);
}
.wf-tip__role {
  display: inline-block;
  font-family: 'QanelasHeavy', 'Barlow Condensed', sans-serif;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #FF6A00;
  margin-bottom: 6px;
}
.wf-tip__text {
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
  color: rgba(246,247,248,0.82);
  margin: 0;
}

/* ── Standalone fullscreen workflow page (loaded inside the site-preview iframe) ── */
.wf-page {
  min-height: 100vh;
  background:
    radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1px) 0 0/22px 22px,
    #0B0B0E;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  overflow: auto;
}
.wf-page .wf-board { background-image: none; margin: 0 auto; }
.wf-page__head {
  text-align: center;
  margin-bottom: 12px;
}
.wf-page__eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #FF6A00;
  margin: 0 0 8px;
}
.wf-page__title {
  font-family: 'QanelasHeavy', 'Barlow Condensed', sans-serif;
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.01em;
  margin: 0 0 28px;
}

@media (prefers-reduced-motion: reduce) {
  .wf-edge-flow { animation: none; }
  .wf-node { transition: none; opacity: 1; transform: none; }
  .wf-node--start::after { animation: none; opacity: 0; }
}
