/* Contact page: the confirmation icon draws itself on the success message, then the text fades in. Under .cx. */
.cx #formSuccess[data-cx="ok"] {
  --cx-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 28 28' fill='none' stroke='currentColor' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='14' cy='14' r='12'/%3E%3Cpath d='M8.5 14.5l4 4 7-8'/%3E%3C/svg%3E");
  position: relative;
  padding-left: 56px;
  animation: cx-text 0.3s 0.6s both;
}
.cx #formSuccess[data-cx="ok"]::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 50%;
  width: 28px;
  height: 28px;
  margin-top: -14px;
  background: var(--accent);
  -webkit-mask: var(--cx-icon) center / contain no-repeat;
  mask: var(--cx-icon) center / contain no-repeat;
  animation: cx-draw 0.6s ease-out both;
}
@keyframes cx-draw { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes cx-text { from { color: transparent; } }
@media (prefers-reduced-motion: reduce) {
  .cx #formSuccess[data-cx="ok"], .cx #formSuccess[data-cx="ok"]::before { animation: none; }
}

/* Steps strip: "What happens after you send this". Lit by default; unlit only while the script has armed it (.cs-arm without .cs-lit). */
.cs-sec .section-head { margin-bottom: 40px; }
.cs-sec .section-head h2 { margin-bottom: 0; }
.cs-strip { max-width: 680px; list-style: none; counter-reset: cs; }
.cs-strip li { position: relative; min-height: 36px; padding: 5px 0 32px 56px; color: var(--fg-muted); font-size: 16px; counter-increment: cs; }
.cs-strip li:last-child { padding-bottom: 0; }
.cs-strip li:nth-child(2) { --cs-d: 350ms; }
.cs-strip li:nth-child(3) { --cs-d: 700ms; }
.cs-strip li:nth-child(4) { --cs-d: 1050ms; }
.cs-strip strong { color: var(--fg); font-weight: 600; }
.cs-strip li::before { content: counter(cs); content: counter(cs) / ""; position: absolute; left: 0; top: 0; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 2px solid var(--blue); border-radius: 50%; background: var(--blue); color: var(--white); font-family: 'Space Grotesk', sans-serif; font-size: 15px; font-weight: 600; line-height: 1; }
.cs-strip li::after { content: ""; position: absolute; left: 17px; top: 44px; bottom: 8px; width: 2px; background: linear-gradient(var(--blue), var(--blue)) top / 100% 100% no-repeat, var(--fg-muted); }
.cs-strip li:last-child::after { display: none; }
.cx .cs-arm li::before { transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease; transition-delay: var(--cs-d, 0s); }
.cx .cs-arm li::after { transition: background-size 0.35s linear; transition-delay: var(--cs-d, 0s); }
.cx .cs-arm:not(.cs-lit) li::before { border-color: var(--fg-muted); background: var(--surface); color: var(--fg); }
.cx .cs-arm:not(.cs-lit) li::after { background-size: 100% 0, auto; }
@media (prefers-reduced-motion: reduce) {
  .cx .cs-arm li::before, .cx .cs-arm li::after { transition: none; }
}
