/* 4 Nov 2026 owner marks on the tool pages (DEC-159, T3 to T7 and the Operations tools hero).
   Linked only by Marketing tools, Team tools and Operations tools. Every rule is scoped to a class that only these pages carry
   (.cat2-hero--ops, .art-*, .plan-*, .rep-*, .hd-*), so no other page changes.

   1  Operations tools hero colour
   2  Marketing tools: the three light illustrations (T3, T4)
   3  Team tools: "how a build goes" drawn by hand (T7) */

/* ============================================================ 1. Operations tools hero: the blue of the top arc */
.cat2-hero--ops { --cat2-rgb: 69, 123, 250; --cat2-ink: #2854ba; }
.cat2-hero--ops .cat2-quote::after { background: rgba(69, 123, 250, .14); }

/* ============================================================ 2. Marketing tools: light, simple illustrations */
.art-fig {
  --art-green: var(--mk-mkt, #4f9d2d);
  --art-blue: var(--mk-ops, #457bfa);
  --art-orange: #f0a020;
  display: block; padding: var(--s-24);
  background: var(--grey); border: 1px solid var(--line); border-radius: 20px;
}
.art-svg { display: block; width: 100%; height: auto; overflow: visible; }
.art-enq .art-svg, .art-plan .art-svg { max-width: 640px; margin-inline: auto; }
.art-rep .art-svg { max-width: 340px; margin-inline: auto; }

.art-tile rect, .art-hub rect, .art-card, .art-bubble { fill: var(--paper); stroke: var(--line); stroke-width: 1.5; }
.art-tile, .art-hub, .art-card, .art-bubble { filter: drop-shadow(0 8px 14px rgba(20, 28, 38, .07)); }
.art-bar { fill: #e3e5ea; }
.art-ico { fill: none; stroke: #1d1d1f; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.art-tile .art-ico rect { fill: none; stroke: #1d1d1f; }
.art-wire { fill: none; stroke: #cfd3da; stroke-width: 2.4; stroke-linecap: round; }
/* a travelling dot: a dash of no length with a round cap, moved along the line by its offset (pathLength is 100) */
.art-travel { fill: none; stroke: var(--c, var(--art-green)); stroke-width: 9; stroke-linecap: round; stroke-dasharray: 0.01 100; stroke-dashoffset: var(--o, -50); }

/* replies */
.art-avatar { fill: #dfe3ea; }
.art-avatar-g { fill: var(--art-green); }
.art-clock circle { fill: var(--paper); stroke: #9aa3b2; stroke-width: 2.4; }
.art-clock path { fill: none; stroke: #9aa3b2; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.art-link { fill: none; stroke: #cfd3da; stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 2 7; }
.art-bolt-c { fill: #fff; stroke: var(--art-green); stroke-width: 2; }
.art-bolt { fill: var(--art-green); }
.art-reply { fill: #e7f3e1; stroke: #c9e2bc; stroke-width: 1.5; }
.art-bar-g { fill: #8cc471; }
.art-tick { fill: none; stroke: var(--art-green); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.art-crest { color: #fff; }
.art-alert { fill: var(--mk-int, #ff5a36); stroke: var(--grey); stroke-width: 3; }
.art-alert-m { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; }

/* the plan */
.plan-empty { fill: #eceef2; }
.plan-post rect { stroke: none; }
.plan-post circle { fill: #fff; opacity: .9; }
.plan-post path { fill: #fff; opacity: .9; }
.plan-post.t-g rect { fill: #86c26b; }
.plan-post.t-b rect { fill: #7fa5fb; }
.plan-post.t-o rect { fill: #f5b95a; }
.plan-ok circle { fill: var(--art-green); stroke: var(--paper); stroke-width: 2.5; }
.plan-ok path { fill: none; stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.plan-yes circle { fill: var(--art-green); }
.plan-yes path { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.plan-no circle { fill: var(--paper); stroke: #cfd3da; stroke-width: 2; }
.plan-no path { fill: none; stroke: #9aa3b2; stroke-width: 3; stroke-linecap: round; }
.plan-post, .plan-ok, .plan-yes, .rep-1, .rep-2, .rep-3, .rep-4, .art-tile { transform-box: fill-box; transform-origin: center; }

@media (max-width: 767px) { .art-fig { padding: var(--s-16); } }

/* Motion: only while the picture is on screen (tool-art.js adds .is-live), and never under reduced motion.
   Without it, or when it is off, the picture stands as a finished still frame. */
@media (prefers-reduced-motion: no-preference) {
  .art-fig.is-live .art-travel { animation: art-travel 3.6s cubic-bezier(.45, 0, .55, 1) infinite; animation-delay: calc(var(--i, 0) * -0.7s); }
  .art-fig.is-live .art-tile { animation: art-bob 5s ease-in-out infinite alternate; animation-delay: calc(var(--i, 0) * -0.9s); }

  .art-rep.is-live .rep-1 { animation: rep-1 8s ease infinite; }
  .art-rep.is-live .rep-2 { animation: rep-2 8s ease infinite; }
  .art-rep.is-live .rep-3 { animation: rep-3 8s ease infinite; }
  .art-rep.is-live .art-travel-r { animation: rep-dot 8s linear infinite; animation-delay: 0s; }
  .art-rep.is-live .rep-4 { animation: rep-4 8s ease infinite; }
  .art-rep.is-live .art-tile { animation: none; }

  .art-plan.is-live .plan-post { animation: plan-pop 8s ease infinite; animation-delay: calc(var(--i, 0) * .22s); }
  .art-plan.is-live .plan-next .plan-post { animation: none; }
  .art-plan.is-live .plan-yes { animation: plan-press 8s ease infinite; }
  .art-plan.is-live .plan-ok { animation: plan-ok 8s ease infinite; animation-delay: calc(var(--i, 0) * .25s); }
}
@keyframes art-travel { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -100; } }
@keyframes art-bob { from { transform: translateY(0); } to { transform: translateY(-3px); } }
@keyframes rep-1 { 0% { opacity: 0; transform: translateY(8px); } 7%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes rep-2 { 0%, 12% { opacity: 0; transform: scale(.85); } 19%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes rep-3 { 0%, 20% { opacity: 0; transform: translateY(8px); } 28%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes rep-dot { 0%, 36% { stroke-dashoffset: 0; opacity: 0; } 37% { opacity: 1; } 56% { stroke-dashoffset: -100; opacity: 1; } 57%, 100% { stroke-dashoffset: -100; opacity: 0; } }
@keyframes rep-4 { 0%, 50% { opacity: 0; transform: scale(.9); } 58% { opacity: 1; transform: scale(1.06); } 64%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes plan-pop { 0% { opacity: 0; transform: scale(.7); } 6%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes plan-press { 0%, 40% { transform: none; } 44% { transform: scale(.88); } 50% { transform: scale(1.1); } 56%, 100% { transform: none; } }
@keyframes plan-ok { 0%, 48% { opacity: 0; transform: scale(.4); } 56% { opacity: 1; transform: scale(1.15); } 62%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* ============================================================ 3. Team tools: "how a build goes" drawn by hand */
.hd-svg .hd { fill: none; stroke: #55575d; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hd-svg .hd-lit { stroke: var(--mk-int); stroke-width: 2; }
.hd-svg .hd-mask { fill: none; stroke: #fff; stroke-width: 14; stroke-linecap: round; }
.hd-svg .hd-paper { fill: var(--paper); stroke: none; }
.hd-svg .hd-fill { fill: var(--mk-int); stroke: none; transform-box: fill-box; transform-origin: center; }
.hd-svg .hd-arrow { stroke: var(--ink-2); }
.hd-svg .wire-dash { stroke-width: 1.5; }
.hd-svg text { text-rendering: geometricPrecision; }
/* the Try circle: filled red once drawn, so its stroke is lost against it; keep the drawn ring and fade the red in beneath */
.hd-svg .hd-fill { opacity: 1; }

/* script adds .is-armed (hides the strokes) when it is going to play, then .is-play when the drawing scrolls into view.
   No script, or reduced motion, never arms it: the drawing is simply finished. */
@media (prefers-reduced-motion: no-preference) {
  .hd-build.is-armed .hd-d { stroke-dasharray: 1 2; stroke-dashoffset: 1; }
  .hd-build.is-armed .hd-paper, .hd-build.is-armed .hd-t { opacity: 0; }
  .hd-build.is-armed .hd-t { transform: translateY(4px); }
  .hd-build.is-armed .hd-fill { opacity: 0; transform: scale(.4); }
  .hd-build.is-armed .wire-dash { opacity: 1; }

  .hd-build.is-play .hd-d { animation: hd-draw var(--du, .4s) cubic-bezier(.4, .1, .35, 1) var(--dl, 0s) forwards; }
  .hd-build.is-play .hd-paper { animation: hd-show .3s ease var(--dl, 0s) forwards; }
  .hd-build.is-play .hd-t { animation: hd-text .5s ease var(--dl, 0s) forwards; }
  .hd-build.is-play .hd-fill { animation: hd-fill .55s cubic-bezier(.3, 1.3, .5, 1) var(--dl, 0s) forwards; }
}
@keyframes hd-draw { to { stroke-dashoffset: 0; } }
@keyframes hd-show { to { opacity: 1; } }
@keyframes hd-text { to { opacity: 1; transform: none; } }
@keyframes hd-fill { to { opacity: 1; transform: none; } }
