/* Workflow pages (template-workflow.php, template-parts/workflow/*), e.g. /ip-licensing/.
   Builds on about.css (the About page rows and app window pieces, .abr-* / .abp-*) and the
   Product page cards (product-workflows.css, workflows.css). Driven by assets/js/workflow.js.
     1. top: text left, app window right (.wph-*)
     2. the IP licensing app window (.wpl-*)
     3. Setup: black section, the same on every workflow page (.wps-*)
     4. Suggested workflows (.wpm-*) */

/* ---------- 1. top: the About page row, a little taller ---------- */
.wph .abr-txt{ min-height:clamp(520px,46vw,660px); }
.wph .abr-txt > *{ width:auto; max-width:500px; }
/* the app window: scaled by workflow.js to fit the column's width as well as its height (--wph-s), so the whole
   window shows however tall the text makes the row; it runs off the right and bottom edges */
.wph-img .abp-cv{ transform:scale(var(--wph-s,1)); }
.wph-img .abp-win{ height:auto; bottom:-40px; }
.wph-img .abp-live{ margin-left:14px; }
.wph-crumbs{ display:flex; align-items:center; gap:10px; margin-bottom:clamp(28px,3vw,44px); color:var(--muted); }
.wph-crumbs a{ text-decoration:none; transition:color .15s ease; }
.wph-crumbs a:hover{ color:var(--blue); }
.wph-crumbs [aria-hidden]{ opacity:.5; }
.wph-kind{ display:inline-flex; align-items:center; gap:7px; }
.wph-kind .pw-ki{ width:13px; height:13px; margin-top:-2px; flex:none; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.wph-h{ font-size:clamp(30px,3.3vw,46px); line-height:1.04; }
.wph-btns{ margin-top:clamp(28px,3vw,40px); }
/* who it's for: every role, wrapping (the cards show only the first) */
.wph-for{ display:flex; flex-direction:column; gap:12px; margin-top:clamp(32px,3.6vw,52px); padding-top:clamp(20px,2vw,26px); border-top:1px solid var(--line); }
.wph-for-t{ color:var(--muted); }
.wph-roles{ flex-wrap:wrap; margin:0; }
.wph-roles li:nth-child(n+2):not(.pw-more){ display:inline-flex; }
/* the graphic's background: plain at rest; on hover the texture fades in, as on the workflow cards:
   angled lines for Control, dots for Intelligence */
.wph-img{ background-image:none; }
.wph-img::before{ content:""; position:absolute; inset:0; opacity:0; transition:opacity .35s ease; pointer-events:none; }
.wph-img[data-kind="control"]::before{ background-image:var(--hatch); background-size:12px 12px; }
.wph-img[data-kind="intel"]::before{ background-image:var(--dots); background-size:var(--dots-size); background-position:var(--dots-pos); }
.wph-img:hover::before{ opacity:1; }
@media (max-width:860px){
  .wph .abr-txt{ min-height:0; padding-top:clamp(40px,8vw,64px); }
}

/* ---------- 1b. logo wall (template-parts/workflow/logos.php): one row; the section's own line is the top line ---------- */
.wpl-logos .logo-wall .lw-row > div{ border-top:0; }
@media (max-width:900px){ .wpl-logos .logo-wall .lw-row > div:nth-child(n+5){ border-top:1px solid var(--line); } }

/* ---------- 2. IP licensing: the app's Licensing view (template-parts/workflow/ui-ip.php) ---------- */
.wpl-body{ display:grid; grid-template-columns:210px 1fr; height:calc(100% - 46px); }
.wpl-l{ padding:14px 14px; border-right:1px solid var(--u-line); background:var(--u-subtle); }
.wpl-l .abp-lbl:first-child{ margin-top:2px; }
.wpl-r{ max-width:386px; padding:14px 16px; }
/* the tracks: light grey buttons (clickable), the chosen one in blue */
.wpl-tracks{ display:flex; flex-direction:column; gap:5px; }
.wpl-track{ display:flex; align-items:center; gap:9px; width:100%; padding:6px 8px; border:1px solid #e3e3e8; border-radius:5px; background:var(--u-soft);
  font:inherit; color:inherit; text-align:left; cursor:pointer; transition:background .2s ease, border-color .2s ease; }
.wpl-track:hover{ background:#ececf0; border-color:#d7d7df; }
.wpl-track.is-on{ background:var(--u-brand-soft); border-color:var(--u-brand-line); }
.wpl-track:focus-visible{ outline:2px solid var(--u-brand); outline-offset:2px; }
.wpl-art{ display:grid; place-items:center; flex:none; width:28px; height:28px; border:1px solid var(--u-line); border-radius:4px; background:#fff; }
.wpl-art .abp-ic{ width:13px; height:13px; }
.wpl-art--lg{ width:38px; height:38px; border-radius:5px; background:var(--u-brand-soft); border-color:var(--u-brand-line); }
.wpl-art--lg .abp-ic{ width:17px; height:17px; }
/* talent: their photo, round */
.wpl-art--face{ overflow:hidden; border-radius:50%; background:var(--u-soft); }
.wpl-art--face img{ width:100%; height:100%; object-fit:cover; object-position:50% 12%; transform:scale(1.9); transform-origin:50% 18%; }
.wpl-l .abp-lbl{ margin-top:16px; }
.wpl-tn{ display:flex; flex-direction:column; min-width:0; flex:1; }
.wpl-tn b{ font-weight:500; font-size:12.5px; line-height:16px; color:var(--u-ink); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.wpl-tn i{ font-style:normal; font-size:11px; line-height:14px; color:var(--u-muted); white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.wpl-track.is-on .wpl-tn b{ color:var(--u-brand-text); }
.wpl-dot{ flex:none; width:7px; height:7px; border-radius:50%; }
.wpl-dot.is-good{ background:#0ca30c; } .wpl-dot.is-warn{ background:#e0a100; } .wpl-dot.is-bad{ background:var(--u-bad); }
/* the chosen track */
.wpl-panel{ display:none; }
.wpl-panel.is-on{ display:block; }
.wpl-head{ display:flex; align-items:center; gap:10px; }
.wpl-head .wpl-tn b{ font-family:var(--display); font-size:17px; line-height:21px; }
.wpl-head .wpl-tn i{ font-size:12px; line-height:16px; }
.wpl-head .abp-tag{ margin-left:auto; }
/* what needs doing, with its button (light grey: clickable) */
.wpl-alert{ display:flex; align-items:center; gap:10px; margin-top:12px; padding:8px 8px 8px 11px; border:1px solid; border-radius:5px; }
.wpl-alert p{ margin:0; flex:1; font-size:12px; line-height:16px; color:var(--u-ink); }
.wpl-alert b{ font-weight:600; }
.wpl-alert.is-bad{ background:#fdf3f3; border-color:#f0c2c2; }
.wpl-alert.is-warn{ background:#fffaf0; border-color:#f0d9a0; }
.wpl-alert.is-good{ background:#f2f9f2; border-color:#bfe3bf; padding:9px 11px; }
.wpl-btn{ flex:none; display:inline-flex; align-items:center; height:24px; padding:0 10px; border:1px solid #e3e3e8; border-radius:4px; background:var(--u-soft);
  font-size:11.5px; font-weight:500; color:var(--u-ink); cursor:pointer; }
.wpl-r .abp-lbl{ margin-top:13px; }
/* live placements: creative, market and channel, licence status */
.wpl-pl{ display:flex; align-items:center; gap:10px; height:40px; border-top:1px solid var(--u-line); }
.wpl-th{ position:relative; flex:none; width:26px; height:32px; overflow:hidden; border-radius:3px; background:var(--u-soft); }
.wpl-th img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:50% 0; }
.wpl-pl.is-bad .wpl-th{ outline:1.5px solid var(--u-bad); outline-offset:1px; }
.wpl-pl.is-warn .wpl-th{ outline:1.5px solid #e0a100; outline-offset:1px; }
.wpl-pm{ display:flex; flex-direction:column; min-width:0; flex:1; }
.wpl-pm b{ font-weight:500; font-size:12.5px; line-height:16px; color:var(--u-ink); }
.wpl-pm i{ display:flex; align-items:center; gap:5px; font-style:normal; font-size:11px; line-height:14px; color:var(--u-muted); }
.wpl-pm img{ width:11px; height:11px; object-fit:contain; }
.wpl-mk{ padding:0 4px; border:1px solid var(--u-line); border-radius:3px; font:600 9px/13px var(--u-mono); color:var(--u-text); }
/* more kinds of list picture (template-parts/workflow/app-window.php): a creative, a channel logo, a market code */
.wpl-art--img{ overflow:hidden; background:var(--u-soft); }
.wpl-art--img img{ width:100%; height:100%; object-fit:cover; object-position:50% 20%; }
.wpl-art--logo img{ width:60%; height:60%; object-fit:contain; }
.wpl-art--code{ font:600 10px/1 var(--u-mono); letter-spacing:.3px; color:var(--u-text); }
.wpl-art--lg.wpl-art--img,.wpl-art--lg.wpl-art--logo,.wpl-art--lg.wpl-art--code{ background:#fff; border-color:var(--u-line); }
.wpl-art--lg.wpl-art--code{ font-size:12px; color:var(--u-brand-text); background:var(--u-brand-soft); border-color:var(--u-brand-line); }
.wpl-boxes .abp-box.is-good b,.wpl-stats .abp-box.is-good b{ color:#0a8a0a; }
.wpl-boxes .abp-box.is-warn b,.wpl-stats .abp-box.is-warn b{ color:#c27c00; }
.wpl-boxes .abp-box.is-bad b,.wpl-stats .abp-box.is-bad b{ color:var(--u-bad); }
/* list rows with no picture (e.g. what's driving a prediction) */
.wpl-pl.no-img{ height:38px; }
/* stat boxes in a row */
.wpl-stats{ display:grid; grid-template-columns:repeat(var(--n,3),1fr); gap:6px; }
.wpl-stats .abp-box b{ font-size:19px; line-height:23px; }
/* bar chart (the last bar in blue) */
.wpl-bars{ display:flex; align-items:flex-end; gap:5px; height:62px; padding:6px 0 0; border-bottom:1px solid var(--u-line); }
.wpl-bars i{ flex:1; height:var(--h); border-radius:2px 2px 0 0; background:#dfe3f3; transform-origin:50% 100%; }
.wpl-bars i.on{ background:var(--u-brand); }
.abp.is-play .wpl-panel.is-on .wpl-bars i{ animation:wpl-grow .5s cubic-bezier(.2,.8,.2,1) calc(.1s + var(--i) * .03s) both; }
@keyframes wpl-grow{ from{ transform:scaleY(0); } }
/* predicted outcome: one bar split succeed / coast / fail, with a key */
.wpl-stack{ display:flex; gap:3px; height:12px; overflow:hidden; border-radius:3px; }
.wpl-stack i{ display:block; }
.wpl-stack .is-good,.wpl-legend .is-good{ background:#14b889; }
.wpl-stack .is-warn,.wpl-legend .is-warn{ background:#e0a100; }
.wpl-stack .is-bad,.wpl-legend .is-bad{ background:var(--u-bad); }
.wpl-legend{ display:flex; flex-wrap:wrap; gap:6px 14px; margin-top:9px; font:500 10.5px/14px var(--u-mono); color:var(--u-text); }
.wpl-legend span{ display:inline-flex; align-items:center; gap:6px; }
.wpl-legend i{ width:8px; height:8px; border-radius:2px; }
/* score with its bar */
.wpl-meter{ display:flex; align-items:center; gap:14px; }
.wpl-meter b{ font-family:var(--display); font-weight:500; font-size:30px; line-height:1; }
.wpl-meter small{ margin-left:2px; font-size:12px; color:var(--u-muted); }
.wpl-meter > span{ flex:1; height:6px; border-radius:3px; background:var(--u-soft); overflow:hidden; }
.wpl-meter > span i{ display:block; height:100%; border-radius:3px; background:#14b889; }
.wpl-meter.is-warn > span i{ background:#e0a100; } .wpl-meter.is-bad > span i{ background:var(--u-bad); }
.wpl-meter.is-warn b{ color:#c27c00; } .wpl-meter.is-bad b{ color:var(--u-bad); }
/* a claim quoted from the creative, the problem words highlighted */
.wpl-quote{ margin:0; padding:10px 12px; border:1px solid var(--u-line); border-radius:5px; background:#fff; font-family:var(--display); font-size:15px; line-height:21px; color:var(--u-ink); }
.wpl-quote mark{ padding:0 2px; border-radius:2px; background:#fbe6e6; color:#9b2323; box-shadow:inset 0 -1.5px 0 var(--u-bad); }
.wpl-panel:has(.wpl-head .abp-tag.is-good) .wpl-quote mark{ background:#e5f4e5; color:#006300; box-shadow:inset 0 -1.5px 0 #14b889; }
/* score ring (stroke only, filled to the score) with the score beside it, then stat boxes */
.wpl-ring-row{ display:flex; align-items:stretch; gap:6px; }
.wpl-ring{ display:flex; align-items:center; gap:10px; flex:none; padding:6px 12px 6px 8px; border:1px solid var(--u-line); border-radius:4px; background:#fff; }
.wpl-ring svg{ width:46px; height:46px; transform:rotate(-90deg); }
.wpl-ring circle{ fill:none; stroke-width:4; }
.wpl-ring .t{ stroke:#ececf1; }
.wpl-ring .v{ stroke:#14b889; stroke-linecap:round; }
.wpl-ring.is-warn .v{ stroke:#e0a100; } .wpl-ring.is-bad .v{ stroke:var(--u-bad); }
.wpl-ring-n{ display:flex; flex-direction:column; }
.wpl-ring-n b{ font-family:var(--display); font-weight:500; font-size:22px; line-height:26px; }
.wpl-ring.is-good .wpl-ring-n b{ color:#0a8a0a; } .wpl-ring.is-warn .wpl-ring-n b{ color:#c27c00; } .wpl-ring.is-bad .wpl-ring-n b{ color:var(--u-bad); }
.wpl-ring-n i{ font:10.5px/13px var(--u-mono); font-style:normal; color:var(--u-muted); }
.wpl-ring-row .wpl-stats{ flex:1; }
.abp.is-play .wpl-panel.is-on .wpl-ring .v{ animation:wpl-ring 1s cubic-bezier(.3,.7,.2,1) .15s both; }
@keyframes wpl-ring{ from{ stroke-dasharray:0 100; } }

/* world map of where creatives are live: blue dots, a creative on a short stem (above, or below with .is-dn), or a count */
.wpl-map{ position:relative; aspect-ratio:121/53; margin:4px 0 2px; }
.wpl-map-dots{ position:absolute; inset:0; width:100%; height:100%; opacity:.9; }
.wpl-pin{ position:absolute; width:0; height:0; z-index:1; }
.wpl-pin::before{ content:""; position:absolute; left:-3.5px; top:-3.5px; width:7px; height:7px; border-radius:50%; background:var(--u-brand);
  animation:abp-ring 2.4s ease-out infinite; animation-delay:calc(var(--i) * .3s); }
.wpl-pin-th{ position:absolute; left:-11px; bottom:12px; width:22px; height:28px; padding:1.5px; background:#fff; border-radius:3px; box-shadow:0 1px 2px rgba(0,0,0,.1), 0 4px 10px rgba(0,0,0,.14); }
.wpl-pin-th img{ width:100%; height:100%; object-fit:cover; object-position:50% 0; border-radius:2px; }
.wpl-pin-th::after{ content:""; position:absolute; left:50%; top:100%; width:1px; height:8px; margin-left:-.5px; background:var(--u-brand); }
.wpl-pin.is-dn .wpl-pin-th{ bottom:auto; top:12px; }
.wpl-pin.is-dn .wpl-pin-th::after{ top:auto; bottom:100%; }
.wpl-pin em{ position:absolute; left:7px; top:-8px; padding:0 5px; border:1px solid var(--u-brand-line); border-radius:3px; background:#fff;
  font:600 9.5px/14px var(--u-mono); font-style:normal; color:var(--u-brand-text); box-shadow:0 2px 5px rgba(0,0,0,.06); }
.abp.is-play .wpl-panel.is-on .wpl-pin{ animation:abp-pop .45s cubic-bezier(.2,.9,.3,1.2) calc(.1s + var(--i) * .07s) both; }

/* AI summary */
.wpl-note{ display:flex; gap:9px; margin:0; padding:10px 12px; border:1px solid var(--u-brand-line); border-radius:5px; background:var(--u-brand-soft); font-size:12.5px; line-height:18px; color:var(--u-ink); }
.wpl-note .abp-ic{ width:14px; height:14px; margin-top:2px; }

/* play in (about.js adds .is-play on scroll into view and on hover; workflow.js on choosing a track) */
.abp.is-play .wpl-panel.is-on .wpl-pl{ animation:abp-rise .4s cubic-bezier(.2,.8,.2,1) calc(.15s + var(--i) * .07s) both; }
.abp.is-play .wpl-panel.is-on .wpl-alert{ animation:abp-fade .4s ease .3s both; }

/* ---------- 3. Setup (template-parts/workflow/setup.php): black, the same on every workflow page ----------
   Header in two columns, then a grid of squares rail to rail (16 x 8, a CSS grid). A larger white box in the middle
   shows this page's workflow; connections sit around it, a few joined to it by lines. Hover a square and workflow.js
   opens its column and row (grid-template-columns / rows), so the rest of the grid closes up around it, as elsewhere
   on the site. workflow.js also adds .is-in (squares pop in), .is-on to each line as it connects, .is-ok once all
   are connected, and .is-hot on a hovered square and its line.
   Colours: dark greys and black, the odd blue and a few white. */
.wps{
  --t1:#1b1f29; --t2:#232834;                    /* the dark connection squares */
  --sh1:#0f1218; --sh2:#141821; --sh3:#181c26;   /* shades on the empty squares */
  --wps-e:cubic-bezier(.7,0,.2,1);   /* same easing and speed as the site's other opening grids */
}
.wps-head-r{ display:flex; align-items:flex-end; }
.wps-top + .frame{ border-top:1px solid var(--line); }

/* the grid */
.wps-grid{ display:grid; aspect-ratio:var(--cols) / var(--rows);
  grid-template-columns:repeat(var(--cols),minmax(0,1fr)); grid-template-rows:repeat(var(--rows),minmax(0,1fr));
  transition:grid-template-columns .7s var(--wps-e), grid-template-rows .7s var(--wps-e); }
.wps-cell{ z-index:0; border-right:1px solid var(--line); border-bottom:1px solid var(--line); }
.wps-cell.end-c,.wps-pat.end-c{ border-right:0; } .wps-cell.end-r,.wps-pat.end-r{ border-bottom:0; }   /* the frame's own rail and the section's edge are the last lines */
.wps-cell.s1{ background:var(--sh1); } .wps-cell.s2{ background:var(--sh2); } .wps-cell.s3{ background:var(--sh3); }
/* patches of the site's own textures over a few empty squares: angled lines (--hatch-dark) and dots (--dots-dark) */
.wps-pat{ z-index:1; background-color:var(--dark); border-right:1px solid var(--line); border-bottom:1px solid var(--line); }   /* covers the hairlines inside the patch */
.wps-pat.is-lines{ background-image:var(--hatch-dark); background-size:12px 12px; }
.wps-pat.is-dots{ background-image:var(--dots-dark); background-size:var(--dots-size); background-position:var(--dots-pos); }

/* the middle box: this page's workflow (icon top left, name and count bottom left), white */
.wps-hub{ z-index:1; position:relative; display:flex; flex-direction:column; justify-content:space-between; min-width:0; overflow:hidden; padding:clamp(14px,1.6vw,22px);
  background:#f4f5f7; color:var(--ink); }   /* the off-grey of the workflow cards' graphic box */
.wps-hub > *{ position:relative; }
/* hover: the workflow's texture fades in, as on the workflow cards (angled lines for Control, dots for Intelligence) */
.wps-hub::before{ content:""; position:absolute; inset:0; opacity:0; transition:opacity .35s ease; }
.wps-hub[data-kind="control"]::before{ background-image:var(--hatch); background-size:12px 12px; }
.wps-hub[data-kind="intel"]::before{ background-image:var(--dots); background-size:var(--dots-size); background-position:var(--dots-pos); }
.wps-hub:hover::before{ opacity:1; }
.wps-hub-ic .wf-ti{ display:block; width:clamp(20px,2vw,26px); height:clamp(20px,2vw,26px); fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.wps-hub-b{ display:flex; flex-direction:column; gap:8px; }
.wps-hub-t{ font-family:var(--display); font-weight:500; font-size:clamp(17px,1.8vw,24px); line-height:1.1; }
.wps-hub-st{ display:flex; align-items:center; gap:8px; color:var(--muted); font-size:11px; white-space:nowrap; }
.wps-hub-st > i{ flex:none; width:6px; height:6px; border-radius:50%; background:var(--blue); animation:abp-blink 1s ease-in-out infinite; }
.wps-hub-st b{ font-weight:400; color:var(--ink); font-variant-numeric:tabular-nums; }
.wps-hub-st .s-ok{ display:none; color:var(--ink); }
.wps.is-ok .wps-hub-st .s-run{ display:none; }
.wps.is-ok .wps-hub-st .s-ok{ display:inline; }
.wps.is-ok .wps-hub-st > i{ background:#14b889; box-shadow:0 0 0 3px rgba(20,184,137,.22); animation:none; }

/* the lines: a faint dashed guide, then the solid line draws in towards the middle; a small square where it meets the middle */
.wps-ln{ z-index:2; position:relative; pointer-events:none; }
.wps-ln::before,.wps-ln > i{ content:""; position:absolute; }
.wps-ln.to-r::before,.wps-ln.to-l::before,.wps-ln.to-r > i,.wps-ln.to-l > i{ left:0; right:0; top:50%; height:1px; }
.wps-ln.to-d::before,.wps-ln.to-u::before,.wps-ln.to-d > i,.wps-ln.to-u > i{ top:0; bottom:0; left:50%; width:1px; }
.wps-ln::before{ background:repeating-linear-gradient(90deg,rgba(34,76,251,.45) 0 3px,transparent 3px 8px); }
.wps-ln.to-d::before,.wps-ln.to-u::before{ background:repeating-linear-gradient(180deg,rgba(34,76,251,.45) 0 3px,transparent 3px 8px); }
.wps-ln > i{ background:var(--blue); transform:scale(0); transition:transform .7s cubic-bezier(.6,0,.2,1), background .25s ease; }
.wps-ln.to-r > i{ transform-origin:0 50%; transform:scaleX(0); } .wps-ln.to-l > i{ transform-origin:100% 50%; transform:scaleX(0); }
.wps-ln.to-d > i{ transform-origin:50% 0; transform:scaleY(0); } .wps-ln.to-u > i{ transform-origin:50% 100%; transform:scaleY(0); }
.wps-ln.is-on > i{ transform:none; }
.wps-ln.is-on::before{ opacity:0; transition:opacity .3s ease .6s; }   /* the faint guide goes once the line has drawn, so the hover dots read cleanly */
.wps-ln::after{ content:""; position:absolute; width:7px; height:7px; background:rgba(34,76,251,.45); transition:background .3s ease; }
.wps-ln.to-r::after{ right:-3.5px; top:calc(50% - 3.5px); } .wps-ln.to-l::after{ left:-3.5px; top:calc(50% - 3.5px); }
.wps-ln.to-d::after{ bottom:-3.5px; left:calc(50% - 3.5px); } .wps-ln.to-u::after{ top:-3.5px; left:calc(50% - 3.5px); }
.wps-ln.is-on::after{ background:var(--blue); }
/* hovered: the line turns into short blue dashes flowing into the middle */
.wps-ln.is-hot.to-r > i,.wps-ln.is-hot.to-l > i{ height:2px; margin-top:-.5px; }
.wps-ln.is-hot > i{ background:repeating-linear-gradient(90deg,var(--blue) 0 6px,transparent 6px 10px); background-size:10px 100%; animation:wps-flow-x .6s linear infinite; }

.wps-ln.is-hot.to-l > i{ animation-direction:reverse; }
.wps-ln.is-hot.to-d > i,.wps-ln.is-hot.to-u > i{ height:auto; width:2px; margin:0 0 0 -.5px; background:repeating-linear-gradient(180deg,var(--blue) 0 6px,transparent 6px 10px); background-size:100% 10px; animation-name:wps-flow-y; }
.wps-ln.is-hot.to-u > i{ animation-direction:reverse; }
.wps-ln.is-hot::after{ background:var(--blue); }
@keyframes wps-flow-x{ from{ background-position:0 0; } to{ background-position:10px 0; } }
@keyframes wps-flow-y{ from{ background-position:0 0; } to{ background-position:0 10px; } }

/* a connection: the square is its logo box, in its type's colour; pops in as the section scrolls into view */
.wps-t{ z-index:3; position:relative; display:flex; flex-direction:column; align-items:center; justify-content:center; min-width:0; min-height:0; overflow:hidden;
  container-type:size; cursor:pointer; outline:none; opacity:0; transform:scale(.7);
  transition:opacity .35s ease, transform .45s cubic-bezier(.2,.9,.3,1.3), filter .3s ease; }
.wps.is-in .wps-t{ opacity:1; transform:none; transition-delay:calc(var(--i) * .06s), calc(var(--i) * .06s), 0s; }
.wps-t.is-d1{ background:var(--t1); color:#fff; } .wps-t.is-d2{ background:var(--t2); color:#fff; }
.wps-t.is-blue{ background:var(--blue); color:#fff; } .wps-t.is-white{ background:#f9fafb; color:var(--ink); } .wps-t.is-face{ background:var(--t2); color:#fff; }
.wps-logo{ flex:none; width:38cqmin; height:38cqmin; object-fit:contain; }   /* sized by the square, so it grows in step as the square opens */
.wps-t.is-blue .wps-logo,.wps-logo.inv{ filter:brightness(0) invert(1); }   /* white logos on the blue, and black logos turned white on the dark */
.wps-face{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; object-position:50% 20%; }
/* a role with no headshot yet: the role's icon (the same icons as the role tags) */
.wps-role{ display:grid; place-items:center; width:38cqmin; height:38cqmin; transition:transform .7s var(--wps-e); }
.wps-role .pw-ri{ width:70%; height:70%; fill:none; stroke:#fff; stroke-width:1.4; stroke-linecap:round; stroke-linejoin:round; }
.wps-t.is-hot .wps-role{ transform:translateY(-9cqmin); }
/* hovered: the square has opened up (its column and row); the logo stays about the same size and the name shows */
/* hovered: the square has opened up (its column and row), the logo scales up with it, blue corner marks close in,
   and the name shows underneath in mono caps with a blue dot */
.wps-t.is-hot{ z-index:4; }
.wps-t.is-hot .wps-logo{ transform:translateY(-9cqmin); }   /* up a little, to leave room for a two-line name underneath */
.wps-logo{ transform:none; transition:transform .7s var(--wps-e); }
.wps-t::after{ content:""; position:absolute; inset:14px; z-index:2; pointer-events:none; opacity:0; --cm:var(--blue);
  background:
    linear-gradient(var(--cm),var(--cm)) 0 0 / 12px 1.5px no-repeat, linear-gradient(var(--cm),var(--cm)) 0 0 / 1.5px 12px no-repeat,
    linear-gradient(var(--cm),var(--cm)) 100% 0 / 12px 1.5px no-repeat, linear-gradient(var(--cm),var(--cm)) 100% 0 / 1.5px 12px no-repeat,
    linear-gradient(var(--cm),var(--cm)) 0 100% / 12px 1.5px no-repeat, linear-gradient(var(--cm),var(--cm)) 0 100% / 1.5px 12px no-repeat,
    linear-gradient(var(--cm),var(--cm)) 100% 100% / 12px 1.5px no-repeat, linear-gradient(var(--cm),var(--cm)) 100% 100% / 1.5px 12px no-repeat;
  transition:opacity .25s ease, inset .5s var(--wps-e); }
.wps-t.is-blue::after{ --cm:#fff; }
.wps-t.is-hot::after{ opacity:1; inset:8px; transition-delay:.15s, .15s; }
.wps-name{ position:absolute; left:0; right:0; bottom:9%; z-index:1; display:flex; align-items:center; justify-content:center; gap:8px; padding:0 10px;
  opacity:0; transform:translateY(6px); transition:opacity .2s ease, transform .4s var(--wps-e); }
.wps-name::before{ content:""; flex:none; align-self:flex-start; width:6px; height:6px; margin-top:4px; border-radius:50%; background:var(--blue); }
.wps-t.is-blue .wps-name::before{ background:#fff; }
.wps-name b{ font:400 min(11px, 8cqw)/1.35 var(--mono); letter-spacing:.08em; text-transform:uppercase; text-align:left; min-width:0; overflow-wrap:normal; word-break:keep-all; hyphens:none; }   /* longer names (e.g. MEDIA & PERFORMANCE) go onto two lines, breaking only between words; the type shrinks a touch in a small square rather than splitting a word */
.wps-t.is-hot .wps-name{ opacity:1; transform:none; transition-delay:.25s, .25s; }
/* headshots: the name sits on a dark fade at the bottom */
.wps-t.is-face .wps-name{ bottom:0; padding:28px 10px 12%; background:linear-gradient(transparent,rgba(0,0,0,.75)); color:#fff; }
.wps-t.no-pic .wps-name{ background:none; padding:0 10px; bottom:9%; }
/* small screens: the workflow box, then the connections in rows of 4; no lines */
@media (max-width:860px){
  .wps .frame.split-rule{ background:none; }
  .wps-head-r{ padding-top:0 !important; }
  .wps-grid{ aspect-ratio:auto; grid-template-columns:repeat(4,1fr) !important; grid-template-rows:none !important; }
  .wps-grid > *{ grid-area:auto !important; }
  .wps-cell,.wps-pat,.wps-ln{ display:none; }
  .wps-hub{ grid-column:1 / -1 !important; min-height:160px; padding:24px var(--gut); }
  .wps-t{ aspect-ratio:1; }
  .wps-t .wps-name{ display:none; }
  .wps-t.m-hide{ display:none; }   /* keeps the last row full (set in setup.php) */
}
@media (prefers-reduced-motion:reduce){ .wps *{ transition:none !important; animation:none !important; } }

/* ---------- 4. Suggested workflows (template-parts/workflow/more.php): the Product page cards, as links ---------- */
.wpm-head{ display:flex; align-items:flex-end; justify-content:space-between; gap:24px; padding:clamp(56px,7vw,96px) var(--gut) clamp(32px,3.6vw,48px); border-bottom:1px solid var(--line); }
.wpm-head .h2{ max-width:16ch; }
.wpm-all{ flex:none; margin-bottom:6px; }
.wpm-card{ text-decoration:none; color:inherit; }
.wpm-card .wf-t{ transition:color .2s ease; }
.wpm-card:hover .wf-t{ color:var(--blue); }
@media (max-width:640px){ .wpm-head{ flex-direction:column; align-items:flex-start; } }

@media (prefers-reduced-motion:reduce){
  .wps *{ transition:none !important; animation:none !important; }
}
