/* ============================================================
   Art & Craft Studio workflow page — page-unique visuals only.
   Linked only from art-craft-studio-workflow.html. Relies on the
   :root tokens already set by homepage-redesign.css (--accent,
   --brand-2, --radius, --border, --ink, --ink-muted, etc.) and on
   shared classes from tbos-homepage.css / homepage-redesign.css
   (.hero, .final-cta, .faq-section, .section-eyebrow, …) — this
   file only adds the winding step-path and the role-grid, adapted
   from tuitiondesk-journey.css's .tj-path / .tj-stop pattern and
   re-themed to the new brand palette.
   ============================================================ */

/* —— Step path section —— */
.wf-steps {
  padding: 72px var(--tbos-page-gutter) 24px;
  background: linear-gradient(180deg, #fff 0%, var(--surface-2, #eef2fb) 45%, #fff 100%);
}

.wf-section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}

.wf-section-head h2 {
  font-size: clamp(24px, 4.5vw, 34px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 12px 0 10px;
  color: var(--ink);
}

.wf-section-head p {
  color: var(--ink-muted);
  font-size: 15px;
  line-height: 1.7;
  margin: 0;
}

.wf-path-wrap {
  position: relative;
  width: min(920px, 100%);
  margin: 0 auto;
  min-height: 2200px;
}

.wf-path-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

.wf-path-track {
  fill: none;
  stroke: var(--border);
  stroke-width: 3;
  stroke-linecap: round;
}

.wf-path-progress {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  filter: drop-shadow(0 0 6px rgba(30, 64, 175, 0.35));
  transition: stroke-dashoffset 0.05s linear;
}

.wf-stop {
  position: absolute;
  width: min(300px, 80vw);
  opacity: 0;
  transform: translateY(36px) scale(0.96);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
  z-index: 2;
}

.wf-stop.is-in {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.wf-stop-card {
  padding: 18px 20px 20px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 18px 40px -16px rgba(11, 21, 51, 0.18);
}

.wf-stop-illu {
  height: 84px;
  border-radius: 14px;
  margin-bottom: 14px;
  background: linear-gradient(135deg, var(--accent-light), #fff 60%);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.wf-stop-illu svg {
  width: 72%;
  height: 70%;
}

.wf-stop-num {
  position: absolute;
  top: 8px;
  left: 10px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent);
  opacity: 0.85;
}

.wf-stop h3 {
  font-size: 1.02rem;
  margin: 0 0 6px;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.wf-stop p {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--ink-muted);
}

/* Desktop zig-zag positions (11 stops) */
.wf-stop[data-i="0"] { top: 2%; left: 4%; }
.wf-stop[data-i="1"] { top: 10%; right: 2%; left: auto; }
.wf-stop[data-i="2"] { top: 19%; left: 6%; }
.wf-stop[data-i="3"] { top: 28%; right: 4%; left: auto; }
.wf-stop[data-i="4"] { top: 37%; left: 2%; }
.wf-stop[data-i="5"] { top: 46%; right: 0%; left: auto; }
.wf-stop[data-i="6"] { top: 55%; left: 8%; }
.wf-stop[data-i="7"] { top: 64%; right: 6%; left: auto; }
.wf-stop[data-i="8"] { top: 73%; left: 4%; }
.wf-stop[data-i="9"] { top: 82%; right: 2%; left: auto; }
.wf-stop[data-i="10"] { top: 91%; left: 50%; transform: translate(-50%, 36px) scale(0.96); }
.wf-stop[data-i="10"].is-in { transform: translate(-50%, 0) scale(1); }

/* —— Roles strip —— */
.wf-roles {
  padding: 24px var(--tbos-page-gutter) 56px;
  max-width: var(--tbos-content-max);
  margin: 0 auto;
}

.wf-role-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.wf-role-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  box-shadow: 0 2px 10px -4px rgba(11, 21, 51, 0.08);
}

.wf-role-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--accent-light);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.wf-role-card h3 {
  font-size: 1rem;
  margin: 0 0 6px;
  color: var(--ink);
}

.wf-role-card p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-muted);
  line-height: 1.55;
}

/* —— Cross-link line —— */
.wf-crosslink {
  max-width: var(--tbos-content-max);
  margin: 0 auto 8px;
  padding: 0 var(--tbos-page-gutter);
  font-size: 0.95rem;
  color: var(--ink-muted);
  text-align: center;
  line-height: 1.6;
}

.wf-crosslink a {
  color: var(--accent);
  font-weight: 600;
}

/* —— Responsive —— */
@media (max-width: 900px) {
  .wf-path-wrap {
    min-height: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  .wf-path-svg { display: none; }
  .wf-stop {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    width: 100%;
    transform: translateY(24px);
  }
  .wf-stop[data-i="10"] { transform: translateY(24px); }
  .wf-stop.is-in,
  .wf-stop[data-i="10"].is-in { transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .wf-stop {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .wf-path-progress {
    stroke-dashoffset: 0 !important;
  }
}
