/* Vault V5 · WORKFLOWS, the second section of Websites & Workflows (/experience/#workflows).
   Behaviour lives in films/workflows.js. Looks share everything but surface: .wfd-c minimal glass (default, chosen
   27 Nov), .wfd-a cinematic glass, .wfd-b minimal canvas. Pick with ?wf=c, ?wf=a or ?wf=b. */
.wf {
  --wf-canvas: #080808; --wf-node: #18141f; --wf-active: #936ba6; --wf-done: #c88c96; --wf-beam: #dac5ed;
  position: relative; z-index: 1; min-height: 100dvh; display: flex; flex-direction: column; gap: 18px; padding: 84px var(--pad) 26px;
}
.wf-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 4vw; }
.wf-title { margin: 0 0 0 -.03em; font-family: var(--display); font-weight: var(--dw); font-stretch: 100%; text-transform: uppercase; font-size: min(10vw, 15.5vh, 200px); line-height: .8; letter-spacing: 0; color: #fff; }
.wf-intro { max-width: 42ch; padding-bottom: .3em; }
.wf-lede { margin: 0; font-size: clamp(16px, 1.25vw, 20px); line-height: 1.35; color: #fff; }
.wf-copy { margin: 10px 0 0; font-size: 15px; line-height: 1.55; color: #bdbdbd; }
.wf-demo { flex: 1; display: flex; min-height: 500px; }

.wfd { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; font-stretch: 100%; letter-spacing: 0; }
.wfd button { font: inherit; color: inherit; }
.wfd button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ---------- bar: scenarios, simulated result, play and replay ---------- */
.wfd-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; }
.wfd-tabs { display: flex; gap: 2px; padding: 3px; border: 1px solid rgba(255,255,255,.09); border-radius: 999px; background: rgba(8,8,8,.55); }
.wfd-tab { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 14px; border: 0; border-radius: 999px; background: none; font-size: 13px; color: rgba(255,255,255,.6); cursor: pointer; white-space: nowrap; transition: background-color .3s, color .3s, box-shadow .3s; }
.wfd-tab:hover { color: #fff; }
.wfd-tab-n { font-family: var(--mono); font-size: 10px; color: rgba(255,255,255,.35); transition: color .3s; }
.wfd-tab[aria-selected="true"] { color: #fff; background: rgba(147,107,166,.2); box-shadow: inset 0 0 0 1px rgba(147,107,166,.7); }
.wfd-tab[aria-selected="true"] .wfd-tab-n { color: var(--wf-beam); }
.wfd-ctrl { display: flex; align-items: center; gap: 8px; }
.wfd-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; min-width: 38px; padding: 0 14px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; background: rgba(8,8,8,.55); font-size: 13px; cursor: pointer; transition: border-color .25s, background-color .25s; }
.wfd-btn svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.wfd-play { padding: 0; }
.wfd-play .i-play { display: none; fill: currentColor; stroke: none; }
.wfd-play.is-play .i-play { display: block; }
.wfd-play.is-play .i-pause { display: none; }
.wfd-btn:hover { border-color: rgba(255,255,255,.4); }
/* Flow Button (Spell UI): on hover the edge turns into a dashed line that walks around the button */
.wfd-flow:hover { border-color: transparent; background: transparent; }
.wfd-flow-edge { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); overflow: visible; pointer-events: none; }
.wfd-flow-edge rect { fill: none; stroke: var(--wf-beam); stroke-width: 1; stroke-dasharray: 6 4; opacity: 0; transition: opacity .2s ease-out; }
.wfd-flow:hover .wfd-flow-edge rect, .wfd-flow:focus-visible .wfd-flow-edge rect { opacity: 1; animation: wfdDash 1s linear infinite; }
@keyframes wfdDash { to { stroke-dashoffset: -10; } }

/* ---------- body: graph canvas with the activity panel beside it ---------- */
.wfd-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) clamp(270px, 22vw, 320px); grid-template-rows: minmax(0, 1fr); gap: 12px; }
/* desktop: the section is exactly one screen, so the feed can never push the graph taller */
@media (min-width: 1181px) { .wf { height: max(100dvh, 740px); min-height: 0; } .wf-demo { min-height: 0; } }
.wfd-canvas, .wfd-feed { border: 1px solid rgba(255,255,255,.09); border-radius: 16px; background-color: rgba(8,8,8,.6); }
.wfd-canvas { position: relative; min-height: 460px; overflow: hidden;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='132' height='132'%3E%3Cpath d='M66 61v10M61 66h10' stroke='%23ffffff' stroke-opacity='.16'/%3E%3C/svg%3E"),
    radial-gradient(circle, rgba(255,255,255,.085) 1px, transparent 1.3px);
  background-size: 132px 132px, 22px 22px; background-position: -55px -55px, 0 0; }

.wfd-status { position: absolute; left: 16px; top: 14px; z-index: 3; display: flex; align-items: center; gap: 9px; margin: 0; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.5); }
.wfd-dot { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.28); transition: background-color .3s; }
.wfd-status[data-s="running"] .wfd-dot { background: var(--wf-active); animation: wfdPulse 1.2s ease-in-out infinite; }
.wfd-status[data-s="done"] .wfd-dot { background: var(--wf-done); }
.wfd-status[data-s="done"] .wfd-status-t { color: var(--wf-done); }
.wfd-step { color: rgba(255,255,255,.32); }
.wfd-step:not(:empty)::before { content: "/"; margin-right: 9px; }
@keyframes wfdPulse { 50% { opacity: .35; } }
/* Shimmer Text (Spell UI): a soft band of light passes over the running step's name */
.wfd-status[data-s="running"] .wfd-status-t { color: transparent; -webkit-text-fill-color: transparent; background: #fff linear-gradient(90deg, #fff 0%, rgba(147,107,166,.9) 40%, rgba(218,197,237,.9) 60%, #fff 100%) no-repeat; background-size: 50% 200%; -webkit-background-clip: text; background-clip: text; animation: wfdShimmer 1.6s linear infinite; }
@keyframes wfdShimmer { from { background-position: -100% 0; } to { background-position: 250% 0; } }

/* connectors (Klyv Animated Beam): dim track, completed fill, travelling light */
.wfd-wires { position: absolute; left: 0; top: 0; z-index: 1; overflow: visible; pointer-events: none; }
.wfw path { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.wfw-base { stroke: rgba(255,255,255,.13); stroke-width: 1.25; transition: stroke .4s, opacity .4s; }
.wfw-fill { stroke: var(--wf-done); stroke-width: 1.5; opacity: .85; }
.wfw-beam { stroke: var(--wf-beam); stroke-width: 2.25; }
.wfw[data-state="skipped"] .wfw-base { stroke: rgba(255,255,255,.08); stroke-dasharray: 3 5; }
.wfw-lab rect { fill: #110e15; stroke: rgba(255,255,255,.14); transition: stroke .4s; }
.wfw-lab text { fill: rgba(255,255,255,.55); font-family: var(--mono); font-size: 10px; letter-spacing: .04em; transition: fill .4s; }
.wfw[data-state="active"] .wfw-lab rect, .wfw[data-state="done"] .wfw-lab rect { stroke: var(--wf-done); }
.wfw[data-state="active"] .wfw-lab text, .wfw[data-state="done"] .wfw-lab text { fill: #fff; }
.wfw[data-state="skipped"] .wfw-lab { opacity: .45; }

/* nodes: idle, running, done, skipped */
.wfd-nodes { position: absolute; inset: 0; z-index: 2; }
.wfn { position: absolute; box-sizing: border-box; display: flex; align-items: center; gap: 12px; padding: 0 14px 0 12px; border: 1px solid rgba(255,255,255,.09); border-radius: 12px; background: rgba(24,20,31,.8); opacity: .62;
  transition: opacity .35s, border-color .35s, box-shadow .45s, transform .45s cubic-bezier(.2,.9,.25,1), background-color .35s; }
.wfn-ico { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.07); border-radius: 9px; background: rgba(255,255,255,.04); color: rgba(255,255,255,.7); transition: color .35s, background-color .35s, border-color .35s; }
.wfn-ico svg, .wfd-item-ico svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.wfn-txt { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.wfn-kind { font-size: 11.5px; line-height: 1.2; color: rgba(255,255,255,.45); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wfn-title { font-size: 14.5px; font-weight: 500; line-height: 1.22; color: rgba(255,255,255,.82); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wfn[data-kind="decision"] .wfn-ico { border-radius: 50%; }
.wfn[data-state="running"] { opacity: 1; border-color: var(--wf-active); transform: translateY(-1px) scale(1.025); box-shadow: 0 0 0 1px var(--wf-active), 0 0 30px -6px rgba(147,107,166,.75); background: rgba(34,26,44,.92); }
.wfn[data-state="running"] .wfn-ico { color: var(--wf-beam); background: rgba(147,107,166,.24); border-color: rgba(147,107,166,.5); }
.wfn[data-state="done"] { opacity: 1; border-color: rgba(200,140,150,.5); box-shadow: 0 0 24px -12px rgba(200,140,150,.55); }
.wfn[data-state="done"] .wfn-ico { color: var(--wf-done); }
.wfn[data-state="done"] .wfn-title { color: #fff; }
.wfn[data-state="skipped"] { opacity: .3; border-style: dashed; }
.wfn[data-state="skipped"] .wfn-txt { padding-right: 52px; }

/* the corner badge: Bars Spinner while running, Animated Checkbox stroke when done (both Spell UI) */
.wfn-badge { position: absolute; right: -8px; top: -8px; width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; transform: scale(0); transition: transform .3s cubic-bezier(.3,1.4,.5,1), background-color .25s; }
.wfn[data-state="running"] .wfn-badge { transform: scale(1); background: #120e17; box-shadow: 0 0 0 1px var(--wf-active); }
.wfn[data-state="done"] .wfn-badge { transform: scale(1); background: var(--wf-done); }
.wfn-spin { position: relative; width: 14px; height: 14px; display: none; color: var(--wf-beam); }
.wfn[data-state="running"] .wfn-spin { display: block; }
.wfn-spin i { position: absolute; left: 50%; top: 50%; width: 24%; height: 8%; margin: -4% 0 0 -10%; border-radius: 6px; background: currentColor; animation: wfdBars 1.2s linear infinite; }
.wfn-spin i:nth-child(1) { transform: rotate(0deg) translate(146%); animation-delay: -1.2s; }
.wfn-spin i:nth-child(2) { transform: rotate(30deg) translate(146%); animation-delay: -1.1s; }
.wfn-spin i:nth-child(3) { transform: rotate(60deg) translate(146%); animation-delay: -1s; }
.wfn-spin i:nth-child(4) { transform: rotate(90deg) translate(146%); animation-delay: -.9s; }
.wfn-spin i:nth-child(5) { transform: rotate(120deg) translate(146%); animation-delay: -.8s; }
.wfn-spin i:nth-child(6) { transform: rotate(150deg) translate(146%); animation-delay: -.7s; }
.wfn-spin i:nth-child(7) { transform: rotate(180deg) translate(146%); animation-delay: -.6s; }
.wfn-spin i:nth-child(8) { transform: rotate(210deg) translate(146%); animation-delay: -.5s; }
.wfn-spin i:nth-child(9) { transform: rotate(240deg) translate(146%); animation-delay: -.4s; }
.wfn-spin i:nth-child(10) { transform: rotate(270deg) translate(146%); animation-delay: -.3s; }
.wfn-spin i:nth-child(11) { transform: rotate(300deg) translate(146%); animation-delay: -.2s; }
.wfn-spin i:nth-child(12) { transform: rotate(330deg) translate(146%); animation-delay: -.1s; }
@keyframes wfdBars { from { opacity: 1; } to { opacity: .15; } }
.wfn-check { display: none; width: 20px; height: 20px; }
.wfn[data-state="done"] .wfn-check { display: block; }
.wfn-check path { fill: none; stroke: #140d10; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 14; stroke-dashoffset: 14; }
.wfn[data-state="done"] .wfn-check path { animation: wfdCheck .3s ease-out .05s forwards; }
@keyframes wfdCheck { to { stroke-dashoffset: 0; } }
.wfn-skip { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); display: none; font-family: var(--mono); font-size: 10px; letter-spacing: .04em; color: rgba(255,255,255,.7); }
.wfn[data-state="skipped"] .wfn-skip { display: block; }

/* ---------- activity panel ---------- */
.wfd-feed { min-height: 0; display: flex; flex-direction: column; padding: 16px; overflow: hidden; }
.wfd-feed-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.wfd-feed-t { margin: 0; font-size: 14px; font-weight: 500; }
.wfd-sim { margin: 0; padding: 4px 9px; border: 1px solid rgba(147,107,166,.5); border-radius: 999px; background: rgba(147,107,166,.12); font-family: var(--mono); font-size: 10px; letter-spacing: .05em; text-transform: uppercase; color: var(--wf-beam); white-space: nowrap; }
.wfd-list { flex: 1; min-height: 120px; display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; overflow: hidden; -webkit-mask: linear-gradient(#000 72%, transparent); mask: linear-gradient(#000 72%, transparent); }
.wfd-item { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 10px; border: 1px solid rgba(255,255,255,.06); border-radius: 10px; background: rgba(255,255,255,.035); transform-origin: 50% 0; }
.wfd-item-ico { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; background: rgba(200,140,150,.13); color: var(--wf-done); }
.wfd-item-ico svg { width: 15px; height: 15px; }
.wfd-item-m { display: block; font-size: 13.5px; line-height: 1.3; color: #fff; }
.wfd-item-d { display: block; margin-top: 2px; font-size: 12.5px; line-height: 1.35; color: rgba(255,255,255,.5); }
.wfd-item-t { font-family: var(--mono); font-size: 10px; color: rgba(255,255,255,.32); white-space: nowrap; padding-top: 2px; }
.wfd-out { margin-top: 12px; min-height: 104px; padding: 14px; border: 1px solid rgba(255,255,255,.07); border-radius: 12px; background: rgba(255,255,255,.025); transition: border-color .5s, background-color .5s; }
.wfd-out.is-on { border-color: rgba(200,140,150,.45); background: linear-gradient(160deg, rgba(200,140,150,.12), rgba(147,107,166,.07)); }
.wfd-out-k { margin: 0 0 6px; font-size: 11.5px; color: rgba(255,255,255,.4); transition: color .4s; }
.wfd-out.is-on .wfd-out-k { color: var(--wf-done); }
.wfd-out-t { margin: 0; font-size: 13.5px; line-height: 1.45; color: #fff; }
.wfd-out-line { display: block; }
.wfd-out-line + .wfd-out-line { margin-top: 10px; }
.wfd-out-tag { display: inline-block; margin-right: 4px; padding: 1px 7px; border: 1px solid rgba(200,140,150,.5); border-radius: 999px; font-family: var(--mono); font-size: 10px; letter-spacing: .03em; color: var(--wf-done); vertical-align: 1px; }
.br-w { display: inline-block; }
.wfd-note { margin: 10px 0 0; font-size: 10.5px; line-height: 1.4; color: rgba(255,255,255,.34); }

/* paused (by the visitor, or off screen): everything holds */
.wfd.is-paused .wfn-spin i, .wfd.is-paused .wfd-status-t, .wfd.is-paused .wfd-dot { animation-play-state: paused !important; }

/* ---------- A · cinematic glass ---------- */
.wfd-a .wfd-canvas, .wfd-a .wfd-feed { -webkit-backdrop-filter: blur(16px) saturate(1.1); backdrop-filter: blur(16px) saturate(1.1); box-shadow: inset 0 1px 0 rgba(255,255,255,.05), 0 30px 80px -40px rgba(0,0,0,.9); }
.wfd-a .wfn { -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.wfd-a .wfw-beam { filter: drop-shadow(0 0 5px rgba(218,197,237,.9)); }
.wfd-a .wfd-status[data-s="running"] .wfd-dot { box-shadow: 0 0 10px rgba(147,107,166,.9); }

/* ---------- B · minimal execution canvas: sharper edges, flat surfaces, light only where work is happening ---------- */
.wfd-b .wfd-canvas, .wfd-b .wfd-feed { border-radius: 6px; border-color: rgba(255,255,255,.14); background-color: var(--wf-canvas); }
.wfd-b .wfd-canvas { background-image: radial-gradient(circle, rgba(255,255,255,.07) 1px, transparent 1.2px); background-size: 18px 18px; background-position: 0 0; }
.wfd-b .wfd-tabs, .wfd-b .wfd-tab, .wfd-b .wfd-btn { border-radius: 4px; }
.wfd-b .wfd-tabs, .wfd-b .wfd-btn { background: var(--wf-canvas); border-color: rgba(255,255,255,.14); }
.wfd-b .wfd-flow-edge rect { rx: 4px; ry: 4px; }
.wfd-b .wfd-tab[aria-selected="true"] { background: #fff; color: #080808; box-shadow: none; }
.wfd-b .wfd-tab[aria-selected="true"] .wfd-tab-n { color: #080808; }
.wfd-b .wfn { border-radius: 6px; background: #0e0c11; border-color: rgba(255,255,255,.16); opacity: .7; }
.wfd-b .wfn-ico { border-radius: 4px; }
.wfd-b .wfn[data-kind="decision"] .wfn-ico { border-radius: 4px; transform: rotate(45deg) scale(.82); }
.wfd-b .wfn[data-kind="decision"] .wfn-ico svg { transform: rotate(-45deg); }
.wfd-b .wfn-kind { font-family: var(--mono); font-size: 9.5px; letter-spacing: .02em; }
.wfd-b .wfn[data-state="running"] { transform: none; background: var(--wf-node); border-color: var(--wf-beam); box-shadow: 0 0 0 1px var(--wf-beam); }
.wfd-b .wfn[data-state="done"] { border-color: var(--wf-done); box-shadow: none; }
.wfd-b .wfn-badge { border-radius: 3px; width: 18px; height: 18px; right: -7px; top: -7px; }
.wfd-b .wfn[data-state="running"] .wfn-badge { box-shadow: 0 0 0 1px var(--wf-beam); background: #0e0c11; }
.wfd-b .wfw-base { stroke: rgba(255,255,255,.18); stroke-width: 1; }
.wfd-b .wfw-fill { stroke-width: 1.25; opacity: 1; }
.wfd-b .wfw-beam { stroke-width: 2; stroke-linecap: butt; }
.wfd-b .wfw-lab rect { rx: 3px; ry: 3px; fill: #080808; }
.wfd-b .wfd-sim { border-radius: 3px; background: none; border-color: rgba(255,255,255,.22); color: rgba(255,255,255,.7); }
.wfd-b .wfd-item { border-radius: 4px; background: none; border-color: rgba(255,255,255,.1); }
.wfd-b .wfd-item-ico { border-radius: 4px; background: none; box-shadow: inset 0 0 0 1px rgba(200,140,150,.45); }
.wfd-b .wfd-out { border-radius: 4px; }
.wfd-b .wfd-out.is-on { background: rgba(200,140,150,.06); border-color: var(--wf-done); }

/* ---------- C · minimal glass: B's restraint (fine lines, light only where work is happening) on A's frosted
   surfaces. Soft radii, no glow on idle or finished steps, a faint glow on the one that is running. ---------- */
.wfd-c .wfd-canvas, .wfd-c .wfd-feed { border-radius: 12px; border-color: rgba(255,255,255,.1); background-color: rgba(10,9,12,.42); -webkit-backdrop-filter: blur(18px) saturate(1.05); backdrop-filter: blur(18px) saturate(1.05); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); }
.wfd-c .wfd-canvas { background-image: radial-gradient(circle, rgba(255,255,255,.075) 1px, transparent 1.3px); background-size: 22px 22px; background-position: 0 0; }
.wfd-c .wfd-tabs, .wfd-c .wfd-btn { background: rgba(10,9,12,.42); border-color: rgba(255,255,255,.12); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.wfd-c .wfd-tab[aria-selected="true"] { background: rgba(255,255,255,.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); }
.wfd-c .wfd-tab[aria-selected="true"] .wfd-tab-n { color: #fff; }
.wfd-c .wfn { border-radius: 10px; background: rgba(24,20,31,.5); border-color: rgba(255,255,255,.12); box-shadow: inset 0 1px 0 rgba(255,255,255,.05); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: .66; }
.wfd-c .wfn-ico { border-radius: 8px; background: rgba(255,255,255,.035); }
.wfd-c .wfn[data-state="running"] { transform: none; background: rgba(34,26,44,.66); border-color: var(--wf-beam); box-shadow: 0 0 0 .5px var(--wf-beam), 0 0 22px -10px rgba(147,107,166,.7), inset 0 1px 0 rgba(255,255,255,.08); }
.wfd-c .wfn[data-state="done"] { border-color: rgba(200,140,150,.6); box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
.wfd-c .wfw-base { stroke: rgba(255,255,255,.15); stroke-width: 1; }
.wfd-c .wfw-fill { stroke-width: 1.25; opacity: .9; }
.wfd-c .wfw-beam { stroke-width: 2; filter: drop-shadow(0 0 3px rgba(218,197,237,.7)); }
.wfd-c .wfw-lab rect { fill: rgba(14,12,18,.85); }
.wfd-c .wfd-sim { background: rgba(147,107,166,.08); }
.wfd-c .wfd-item { border-radius: 8px; background: rgba(255,255,255,.025); border-color: rgba(255,255,255,.08); }
.wfd-c .wfd-item-ico { border-radius: 6px; }
.wfd-c .wfd-out { border-radius: 10px; }
.wfd-c .wfd-out.is-on { background: rgba(200,140,150,.07); }

/* ---------- tablet: the panel moves under the graph ---------- */
@media (max-width: 1180px) {
  .wf { min-height: 0; }
  .wfd-body { grid-template-columns: 1fr; }
  .wfd-canvas { min-height: 470px; }
  .wfd-feed { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto 1fr auto; column-gap: 16px; }
  .wfd-feed-h { grid-column: 1 / -1; }
  .wfd-list { height: 236px; flex: none; }
  .wfd-out { margin-top: 0; }
  .wfd-note { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .wf { padding-top: 72px; gap: 16px; }
  .wf-head { flex-direction: column; align-items: flex-start; gap: 18px; }
  .wf-title { font-size: min(24vw, 150px); }
  .wf-lede { font-size: 16px; }
  .wf-copy { font-size: 14px; }
  .wf-demo { min-height: 0; }
}
/* ---------- phone: the graph becomes a vertical run (laid out by workflows.js) ---------- */
@media (max-width: 640px) {
  .wfd-bar { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
  .wfd-tabs, .wfd-ctrl { min-width: 0; }
  .wfd-tabs { overflow-x: auto; scrollbar-width: none; margin: 0 calc(var(--pad) * -1); padding-left: var(--pad); padding-right: var(--pad); border-left: 0; border-right: 0; border-radius: 0; background: none; border: 0; gap: 6px; }
  .wfd-tabs::-webkit-scrollbar { display: none; }
  .wfd-tab { flex: none; border: 1px solid rgba(255,255,255,.12); }
  .wfd-ctrl { justify-content: flex-end; }
  .wfd-canvas { min-height: 0; }
  .wfd-feed { display: flex; }
  .wfd-list { height: 250px; }
  .wfd-out { margin-top: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .wfn, .wfn-badge, .wfn-ico, .wfw-base, .wfd-out { transition: none !important; }
  .wfn[data-state="running"] { transform: none; }
  .wfd-status-t, .wfd-dot, .wfn-spin i, .wfd-flow-edge rect { animation: none !important; }
  .wfn-check path { stroke-dashoffset: 0; animation: none !important; }
}
