/* INGENTIQ's brandmark on the website (owner, 20 Nov 2026: it replaces the
   smoke ring). Plain HTML and CSS, so the app's mark (src/v17/mark-loader.css,
   colour roles --ui-mark-*) is copied here with its colours written out; keep
   the two in step. The marks keep the old ring's class names (smoke-ring,
   smoke-ring--large / --small, and each place's own class), so every size rule
   on the site still applies.
   - Small marks (.smoke-ring--small: the eyebrow, titles, the name above an
     answer, the weekly brief, the plan tile) stand still.
   - Large marks (.smoke-ring--large) and the step being worked on in the Ask
     demo move as Trace: a pen with rounded ends outlines each bar, top first
     and 180ms apart, the colour floods in, then the line runs off and the mark
     dissolves; 2.8s a loop, 4s with reduced motion. The pen is 3px on large
     marks and 1.25px on small ones, whatever the mark's size. */
.smoke-ring { display: inline-block; flex: none; vertical-align: middle; overflow: visible; }
.smoke-ring .is-1 { fill: #4a2767; stroke: #4a2767; }
.smoke-ring .is-2 { fill: #b091cc; stroke: #b091cc; }
.smoke-ring .is-3 { fill: #f0ad92; stroke: #f0ad92; }
.smoke-ring polygon { stroke-width: 0; }

.smoke-ring--large, .ak-steps-list li.is-current .smoke-ring { --mark-loop: 2.8s; --mark-pen: 1.25px; }
.smoke-ring--large { --mark-pen: 3px; }
:is(.smoke-ring--large, .ak-steps-list li.is-current .smoke-ring) polygon {
  --mark-stagger: calc(var(--mark-loop) * .0643);
  stroke-width: var(--mark-pen); stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke;
  stroke-dasharray: 1 1; stroke-dashoffset: 0; stroke-opacity: 0;
  animation: mark-trace var(--mark-loop) linear infinite both;
}
:is(.smoke-ring--large, .ak-steps-list li.is-current .smoke-ring) .is-2 { animation-delay: var(--mark-stagger); }
:is(.smoke-ring--large, .ak-steps-list li.is-current .smoke-ring) .is-3 { animation-delay: calc(var(--mark-stagger) * 2); }
@media (prefers-reduced-motion: reduce) { .smoke-ring--large, .ak-steps-list li.is-current .smoke-ring { --mark-loop: 4s; } }
@keyframes mark-trace {
  0% { stroke-dashoffset: 1; stroke-opacity: 1; fill-opacity: 0; animation-timing-function: cubic-bezier(.45, 0, .55, 1); }
  13.57% { stroke-dashoffset: 0; }
  35.71% { fill-opacity: 0; animation-timing-function: cubic-bezier(.16, 1, .3, 1); }
  46.43% { fill-opacity: 1; }
  67.86% { stroke-dashoffset: 0; animation-timing-function: cubic-bezier(.7, 0, .84, 0); }
  71.43% { fill-opacity: 1; animation-timing-function: cubic-bezier(.45, 0, .55, 1); }
  80% { stroke-opacity: 1; }
  82.14% { stroke-dashoffset: -1; stroke-opacity: 0; }
  84.29%, 100% { stroke-dashoffset: -1; stroke-opacity: 0; fill-opacity: 0; }
}
/* Off screen, the Ask section's marks rest as the whole mark (ask-chat.js sets fs-ring-running while one is in view). */
.fs-ask .smoke-ring:not(.fs-ring-running) polygon { animation: none; }
