.plasma-flow { --flow-think: #b8a4fa; --flow-design: #effa34; --flow-build: #78cfbd; padding-block: 40px 86px; scroll-margin-top: 24px; }
.plasma-flow-heading { display: grid; grid-template-columns: minmax(0,1.6fr) minmax(0,1fr); gap: 64px; align-items: end; margin-bottom: 48px; }
.plasma-flow-heading .project-eyebrow { margin-bottom: 20px; font-size: 11px; }
.plasma-flow-heading h2 { font-size: clamp(42px,5.2vw,76px); }
.plasma-flow-intro { color: var(--muted); font-size: clamp(16px,1.5vw,20px); line-height: 1.55; max-width: 34ch; }
.plasma-flow-board { position: relative; display: grid; grid-template-columns: minmax(0,1.5fr) minmax(36px,.43fr) minmax(0,.8fr) minmax(36px,.38fr) minmax(0,1.65fr); align-items: center; padding-block: 30px; border-block: 1px solid var(--line); background-image: radial-gradient(#effa3414 .8px,transparent .8px); background-size: 20px 20px; }
.plasma-flow-label { display: flex; gap: 10px; align-items: baseline; color: var(--ink); font-size: 12px; line-height: 1.4; font-weight: 500; margin: 0 0 24px; }
.plasma-flow-label > span { color: var(--muted); font-size: 10px; font-variant-numeric: tabular-nums; }
.plasma-skill-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.plasma-skill { --skill-colour: var(--flow-build); position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 10px; align-items: start; width: 100%; min-width: 0; min-height: 128px; aspect-ratio: 1; padding: 12px; border: 1px solid var(--line); background: var(--paper); }
.plasma-skill[data-family="think"] { --skill-colour: var(--flow-think); }
.plasma-skill[data-family="design"] { --skill-colour: var(--flow-design); }
.plasma-file { display: grid; place-items: center; width: 24px; height: 28px; border: 1px solid color-mix(in srgb,var(--skill-colour) 50%,transparent); color: var(--skill-colour); font: 10px/1 monospace; flex: none; border-radius: 2px 6px 2px 2px; }
.plasma-skill > span:nth-child(2) { min-width: 0; max-width: 100%; overflow-wrap: anywhere; font: 10px/1.35 monospace; }
.plasma-skill small { display: block; font: 10px/1.5 Geist,system-ui,sans-serif; color: var(--muted); margin-top: 3px; }
.plasma-skill > i { position: absolute; top: 12px; right: 12px; width: 5px; height: 5px; border-radius: 50%; background: var(--skill-colour); }
.plasma-skill-anchor { position: absolute; left: 50%; bottom: -1px; width: 0; height: 0; pointer-events: none; }
.plasma-stage-note { margin-top: 20px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.plasma-flow-wires { display: block; width: 100%; height: 350px; fill: none; stroke: var(--accent); stroke-width: 1; overflow: visible; }
.plasma-flow-wires path { vector-effect: non-scaling-stroke; }
.plasma-flow-wires .plasma-wire-mobile { display: none; stroke: var(--accent); }
.plasma-wire-think { color: var(--flow-think); }
.plasma-wire-design { color: var(--flow-design); }
.plasma-wire-build { color: var(--flow-build); }
.plasma-skill-wires { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.plasma-skill-wires path { fill: none; stroke: currentColor; stroke-width: 1; opacity: .65; }
.plasma-skill-port { fill: currentColor; stroke: var(--paper); stroke-width: 1; }
.plasma-machine { position: relative; display: flex; min-height: 350px; align-items: center; justify-content: center; }
.plasma-logo { width: min(100%,120px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle,#37d9ff14,transparent 65%); }
.plasma-logo > :is(img,svg) { display: block; width: 100%; height: 100%; overflow: visible; }
.plasma-machine strong { position: absolute; top: calc(50% + 78px); font-size: clamp(21px,2.5vw,34px); font-weight: 500; letter-spacing: -.04em; }
.plasma-network { width: 100%; height: 350px; overflow: visible; }
.plasma-network-orbits { fill: none; stroke: var(--line); stroke-dasharray: 2 6; opacity: .7; }
.plasma-network-links { fill: none; stroke-width: 1.2; }
.plasma-network-links path { stroke: currentColor; opacity: .55; }
.plasma-network-dots g { fill: currentColor; }
.plasma-map-halo { fill: #effa3412; stroke: #effa3455; }
.plasma-map-hub { fill: var(--accent); }
.plasma-network-labels { fill: var(--ink); font: 11px Geist,system-ui,sans-serif; }
.plasma-flow-figure figcaption { display: flex; justify-content: space-between; gap: 24px; margin-top: 18px; font-size: 11px; line-height: 1.5; color: var(--muted); }
.plasma-flow-figure figcaption a { color: var(--accent); text-decoration: underline; text-underline-offset: 5px; }
.plasma-flow-playback[hidden] { display: none; }
.plasma-flow-playback { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-block: -20px 20px; font-size: 11px; line-height: 1.4; }
.plasma-flow-status { color: var(--accent); }
.plasma-flow-playback > div { display: flex; gap: 8px; }
.plasma-flow-playback button { min-height: 36px; border: 1px solid var(--line); padding: 7px 12px; background: var(--paper); color: var(--ink); font: inherit; cursor: pointer; }
.plasma-flow-playback button:hover { border-color: var(--accent); color: var(--accent); }
.plasma-flow-enhanced .plasma-skill { border-color: color-mix(in srgb,var(--skill-colour) var(--skill-active,0%),var(--line)); background: color-mix(in srgb,var(--skill-colour) var(--skill-wash,0%),var(--paper)); }
.plasma-flow-packet { fill: currentColor; stroke: var(--paper); stroke-width: 1; }
.plasma-output-packet { color: var(--accent); }
@media(max-width:1000px) {
  .plasma-flow { padding-block: 12px 48px; }
  .plasma-flow-heading { grid-template-columns: minmax(0,1fr); gap: 22px; margin-bottom: 30px; }
  .plasma-flow-heading h2 { font-size: clamp(38px,9.2vw,60px); }
  .plasma-flow-heading .project-eyebrow { margin-bottom: 16px; font-size: 10px; }
  .plasma-flow-intro { font-size: 16px; max-width: 42ch; }
  .plasma-flow-playback { align-items: start; flex-direction: column; gap: 12px; margin-top: -8px; }
  .plasma-flow-board { grid-template-columns: minmax(0,1fr); padding-block: 24px; }
  .plasma-flow-label { margin-bottom: 18px; font-size: 13px; }
  .plasma-flow-library { padding-right: 24px; }
  .plasma-skill-list { max-width: 440px; margin-inline: auto; }
  .plasma-skill { padding: 9px 8px; gap: 7px; }
  .plasma-skill > span:nth-child(2) { font-size: 10px; }
  .plasma-file { width: 20px; height: 26px; font-size: 9px; }
  .plasma-flow-wires { width: 48px; height: 70px; justify-self: center; }
  .plasma-input-gap { height: 70px; }
  .plasma-flow-wires path { display: none; }
  .plasma-flow-wires .plasma-wire-mobile { display: block; }
  .plasma-flow-engine { width: 100%; }
  .plasma-machine { min-height: 260px; max-width: 260px; margin-inline: auto; }
  .plasma-machine strong { font-size: 32px; }
  .plasma-network { height: auto; display: block; max-width: 460px; margin-inline: auto; }
  .plasma-stage-note { margin-top: 15px; font-size: 11px; }
  .plasma-flow-figure figcaption { flex-direction: column; align-items: start; gap: 12px; }
}
@media(max-width:620px) {
  .plasma-flow-library { padding-right: 0; }
  .plasma-skill-list { grid-template-columns: minmax(0,1fr); place-items: center; max-width: 240px; padding-block: 22px 28px; }
  .plasma-skill { grid-area: 1/1; width: 190px; min-height: 190px; padding: 16px; transform: translate(var(--deck-x),var(--deck-y)) rotate(var(--deck-angle)); }
  .plasma-skill > span:nth-child(2) { font-size: 12px; }
  .plasma-skill small { font-size: 11px; }
  .plasma-skill:nth-child(1) { --deck-x: -8px; --deck-y: 4px; --deck-angle: -9deg; }
  .plasma-skill:nth-child(2) { --deck-x: 7px; --deck-y: -3px; --deck-angle: 8deg; }
  .plasma-skill:nth-child(3) { --deck-x: -5px; --deck-y: 2px; --deck-angle: -6deg; }
  .plasma-skill:nth-child(4) { --deck-x: 5px; --deck-y: -2px; --deck-angle: 6deg; }
  .plasma-skill:nth-child(5) { --deck-x: -3px; --deck-y: 1px; --deck-angle: -4deg; }
  .plasma-skill:nth-child(6) { --deck-x: 3px; --deck-y: -1px; --deck-angle: 4deg; }
  .plasma-skill:nth-child(7) { --deck-x: -1px; --deck-y: 0px; --deck-angle: -2deg; }
  .plasma-skill:nth-child(8) { --deck-x: 1px; --deck-y: 0px; --deck-angle: 2deg; }
  .plasma-skill:nth-child(9) { --deck-x: 0px; --deck-y: 0px; --deck-angle: 0deg; }
  .plasma-skill.is-flowing { z-index: 1; }
}
