/* Nexivius — Our work: "What we can build", the kit. Six builds most businesses need, each
   a browser window that plays its own story with a step guide underneath, which also jumps
   to a step (work.js). Only work.html loads this sheet. Inside a window, 1em scales with its
   width (.bw__body in styles.css), so every scene reads the same at any size. */

.kit {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.6fr);
  gap: clamp(28px, 4vw, 60px);
  align-items: center;
}

/* The builds: a numbered list; the open one shows its one-liner */
.kit__list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.kit__tab {
  position: relative;
  display: grid;
  grid-template-columns: 22px 34px minmax(0, 1fr);
  align-items: start;
  column-gap: 14px;
  padding: 13px 18px 14px 16px;
  border-radius: 14px;
  border: 1px solid transparent;
  text-align: left;
  color: var(--muted-dark);
  transition: background 0.35s, border-color 0.35s, color 0.35s;
}
.kit__tab:hover {
  color: #fff;
}
.kit__tab[aria-selected="true"] {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.09);
  color: #fff;
}
.kit__num {
  padding-top: 9px;
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--muted-2);
  transition: color 0.35s;
}
.kit__tab[aria-selected="true"] .kit__num {
  color: var(--orange);
}
.kit__ico {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.35s, border-color 0.35s, color 0.35s;
}
.kit__ico svg {
  width: 16px;
  height: 16px;
}
.kit__tab[aria-selected="true"] .kit__ico {
  background: #fff;
  border-color: #fff;
  color: var(--ink);
}
.kit__txt b {
  display: block;
  padding-top: 6px;
  font-size: 17px;
  font-weight: 550;
  letter-spacing: -0.02em;
}
.kit__desc {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.5s var(--ease-out);
}
.kit__desc > span {
  overflow: hidden;
  font-size: 14.5px;
  line-height: 1.45;
  color: var(--muted-dark);
}
.kit__tab[aria-selected="true"] .kit__desc {
  grid-template-rows: 1fr;
}
.kit__tab[aria-selected="true"] .kit__desc > span {
  padding-top: 5px;
}

/* The stage: the open build's window, which leans a little towards the pointer */
.kit__stage {
  position: relative;
  perspective: 1800px;
}
/* On short screens the window narrows, so it and its guide still fit on one screen */
@media (min-width: 1025px) {
  .kit__stage {
    justify-self: end;
    width: min(100%, calc((100vh - 200px) * 1.7));
  }
}
.kit__glow {
  position: absolute;
  inset: 14% 8% 4%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 90, 31, 0.16), transparent);
  filter: blur(28px);
  pointer-events: none;
}
.kit__scene {
  position: absolute;
  inset: 0;
  z-index: 1;
  visibility: hidden;
  clip-path: circle(0% at var(--wx, 0%) var(--wy, 50%));
  transition: clip-path 0.95s var(--ease-wipe), visibility 0s 0.95s;
}
.kit__scene.is-active {
  position: relative;
  z-index: 3;
  visibility: visible;
  clip-path: circle(150% at var(--wx, 0%) var(--wy, 50%));
  transition: clip-path 0.95s var(--ease-wipe), visibility 0s;
}
.kit__scene.is-prev {
  z-index: 2;
  visibility: visible;
  clip-path: none;
  transition: none;
}
/* The window the new one wipes over stays, but its guide goes at once */
.kit__scene.is-prev .kit__ch {
  visibility: hidden;
}
.kit__win {
  transform: rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg));
  transition: transform 0.7s var(--ease-out);
  box-shadow: 0 40px 80px -36px rgba(0, 0, 0, 0.55), 0 0 0 5px rgba(255, 255, 255, 0.04);
}
.kit__scene .bw__body {
  aspect-ratio: 16 / 9.4;
}
.kit:not(.is-vis) .kit__scene *,
.kit:not(.is-vis) .kit__scene *::before,
.kit:not(.is-vis) .kit__scene *::after,
.kit__scene:not(.is-active):not(.is-prev) *,
.kit__scene:not(.is-active):not(.is-prev) *::before,
.kit__scene:not(.is-active):not(.is-prev) *::after {
  animation-play-state: paused !important;
}
/* A scene is put back to the start (or jumps to a step) in one cut */
.kit__scene.is-cut *,
.kit__scene.is-cut *::before,
.kit__scene.is-cut *::after {
  transition: none !important;
}

/* The step guide under the window: each step's line fills while it plays, and a step can
   be picked to jump to it */
.kit__ch {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 18px;
  margin: 20px 2px 0;
  padding: 0;
  list-style: none;
}
.kit__ch button {
  display: block;
  width: 100%;
  padding: 0 0 2px;
  border-radius: 4px;
  text-align: left;
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.005em;
  color: #6e6e6e;
  transition: color 0.35s;
}
.kit__ch button:hover {
  color: #fff;
}
.kit__ch button:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 4px;
}
.kit__ch button > i {
  position: relative;
  display: block;
  height: 2px;
  margin-bottom: 12px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}
.kit__ch button > i::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.5);
  transform: scaleX(0);
  transform-origin: left;
}
.kit__ch .is-done button {
  color: var(--muted-dark);
}
.kit__ch .is-done button > i::after {
  transform: none;
}
.kit__ch .is-cur button {
  color: #fff;
}
.kit__ch .is-cur button > i::after {
  background: var(--orange);
  animation: kit-step var(--d, 3s) linear forwards;
}
@keyframes kit-step {
  from {
    transform: scaleX(0);
  }
  to {
    transform: none;
  }
}

/* Scenes fade to their background before they loop or hand over (is-wash), and come back
   once they've been reset under it */
.ks::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 30;
  background: inherit;
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.ks.is-wash::after {
  opacity: 1;
}

/* 01 Websites: a clean business site builds in and scrolls to its services, the preview
   narrows to a phone and back, then a visitor sends the enquiry form. The empty .ks-web__s
   markers switch on at each moment (the kit timeline in work.js) and the rules below read
   them with sibling selectors. */
.ks-web {
  background: radial-gradient(circle at center, rgba(10, 10, 10, 0.07) 0.07em, transparent 0.08em) 0 0 / 1.1em 1.1em, var(--paper-3);
}
.ks-web__s {
  display: none;
}

/* The browser bar: how fast the page loaded, and which screen size is showing */
.ks-web__speed {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--orange-soft);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--orange-deep);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.35s, transform 0.5s var(--ease-out);
}
.ks-web__speed i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--orange);
}
.ks-web__speed.is-on {
  opacity: 1;
  transform: none;
}
.ks-web__dev {
  position: relative;
  flex: none;
  display: flex;
  gap: 2px;
  margin-left: auto;
  padding: 2px;
  border-radius: 8px;
  background: #ebe9e4;
}
.ks-web__dev::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 24px;
  height: 20px;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(10, 10, 10, 0.12);
  transition: transform 0.5s var(--ease-out);
}
.ks-web__dev i {
  position: relative;
  display: grid;
  place-items: center;
  width: 24px;
  height: 20px;
  color: var(--muted-2);
  transition: color 0.35s;
}
.ks-web__dev i:first-child,
.ks-web__dev.is-on i + i {
  color: var(--ink);
}
.ks-web__dev.is-on i:first-child {
  color: var(--muted-2);
}
.ks-web__dev.is-on::before {
  transform: translateX(26px);
}
.ks-web__dev svg {
  width: 13px;
  height: 13px;
}
@media (max-width: 600px) {
  .ks-web__speed {
    display: none;
  }
}

/* The viewport: full width, or narrowed to a phone with the canvas round it */
.ks-web__vp {
  position: absolute;
  inset: 0;
  background: #fff;
  clip-path: inset(0 0 0 0 round 0);
  transition: clip-path 0.85s cubic-bezier(0.65, 0, 0.35, 1);
}
.ks-web__m.is-on ~ .ks-web__vp {
  clip-path: inset(1.1em 35.2% 1.1em 35.2% round 1.3em);
}
.ks-web__desk {
  position: absolute;
  inset: 0;
  transition: opacity 0.35s 0.5s;
}
.ks-web__m.is-on ~ .ks-web__vp .ks-web__desk {
  opacity: 0;
  transition-delay: 0s;
}
.ks-web__scroll {
  transition: transform 1.2s cubic-bezier(0.65, 0, 0.35, 1);
}
.ks-web__down.is-on ~ .ks-web__vp .ks-web__scroll {
  transform: translateY(-13.4em);
}

/* Pieces of the page come in at their moment */
.ks-web__nav,
.ks-web__chip,
.ks-web__p,
.ks-web__ctas,
.ks-web__trust,
.ks-web__card {
  opacity: 0;
  transform: translateY(0.7em);
  transition: opacity 0.5s var(--ease), transform 0.8s var(--ease-out);
}
.ks-web__mob .ks-web__chip,
.ks-web__mob .ks-web__trust {
  opacity: 1;
  transform: none;
}
.ks-web__nav.is-on,
.ks-web__chip.is-on,
.ks-web__p.is-on,
.ks-web__ctas.is-on,
.ks-web__trust.is-on,
.ks-web__card.is-on {
  opacity: 1;
  transform: none;
}

.ks-web__nav {
  display: flex;
  align-items: center;
  gap: 1.6em;
  height: 3em;
  padding: 0 2.2em;
  border-bottom: 1px solid var(--line);
}
.ks-web__logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-size: 0.62em;
  font-weight: 650;
  letter-spacing: -0.02em;
  white-space: nowrap;
}
.ks-web__logo i {
  position: relative;
  flex: none;
  width: 1.5em;
  height: 1.5em;
  border-radius: 0.42em;
  background: var(--ink);
}
.ks-web__logo i::after {
  content: "";
  position: absolute;
  right: 0.28em;
  bottom: 0.28em;
  width: 0.42em;
  height: 0.42em;
  border-radius: 50%;
  background: var(--orange);
}
.ks-web__links {
  display: flex;
  gap: 2.1em;
  margin-left: auto;
  font-size: 0.54em;
  color: var(--muted);
  white-space: nowrap;
}
.ks-web__navbtn {
  padding: 0.7em 1.15em;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  font-size: 0.52em;
  font-weight: 600;
  white-space: nowrap;
}

.ks-web__hero {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  gap: 2.4em;
  align-items: center;
  padding: 2.3em 2.2em 2.2em;
}
.ks-web__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.5em 0.95em;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.5em;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
}
.ks-web__chip i {
  width: 0.6em;
  height: 0.6em;
  border-radius: 50%;
  background: var(--orange);
}
.ks-web__h {
  margin: 0.42em 0 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 2.6em;
  line-height: 1.02;
  letter-spacing: -0.03em;
}
.ks-web__h .tone,
.ks-web__mh .tone {
  color: #9a968e;
}
.ks-web__h > span {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.25em);
  transition: opacity 0.45s var(--ease), transform 0.7s var(--ease-out);
}
.ks-web__h.is-on > span {
  opacity: 1;
  transform: none;
  transition-delay: calc(var(--i) * 0.07s);
}
.ks-web__p {
  max-width: 25em;
  margin: 1.35em 0 0;
  font-size: 0.6em;
  line-height: 1.6;
  color: var(--muted);
}
.ks-web__ctas {
  display: flex;
  align-items: center;
  gap: 0.6em;
  margin-top: 1.25em;
}
.ks-web__cta,
.ks-web__ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  height: 2.9em;
  padding: 0 1.35em;
  border-radius: 999px;
  font-size: 0.56em;
  font-weight: 600;
  white-space: nowrap;
}
.ks-web__cta {
  background: var(--ink);
  color: #fff;
}
.ks-web__cta svg {
  width: 1.15em;
  height: 1.15em;
}
.ks-web__ghost {
  border: 1px solid var(--line-2);
}
.ks-web__trust {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin: 1.5em 0 0;
  font-size: 0.5em;
  color: var(--muted);
  white-space: nowrap;
}
.ks-web__trust b {
  color: var(--ink);
  font-weight: 650;
}
.ks-web__stars {
  display: flex;
  gap: 0.18em;
}
.ks-web__stars i {
  width: 0.95em;
  height: 0.95em;
  background: var(--orange);
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

/* The enquiry form, which turns into the thank-you once it's sent */
.ks-web__card {
  position: relative;
  display: grid;
  padding: 1.25em 1.3em 1.3em;
  border-radius: 1em;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 1.4em 2.8em -2em rgba(10, 10, 10, 0.28);
}
.ks-web__fill,
.ks-web__thanks {
  grid-area: 1 / 1;
  min-width: 0;
  transition: opacity 0.4s var(--ease), transform 0.6s var(--ease-out);
}
.ks-web__ct {
  margin: 0;
  font-size: 0.78em;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.ks-web__cs {
  margin: 0.45em 0 0;
  font-size: 0.48em;
  line-height: 1.5;
  color: var(--muted);
}
.ks-web__field {
  position: relative;
  margin: 0.9em 0 0;
}
.ks-web__field small {
  display: block;
  margin-bottom: 0.45em;
  font-size: 0.44em;
  font-weight: 500;
  color: var(--muted);
}
.ks-web__in,
.ks-web__opt {
  display: flex;
  align-items: center;
  height: 1.95em;
  padding: 0 0.7em;
  border-radius: 0.45em;
  border: 1px solid var(--line-2);
  font-size: 0.56em;
  white-space: nowrap;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.ks-web__in.ltype {
  border-color: var(--ink);
  box-shadow: 0 0 0 0.2em rgba(10, 10, 10, 0.06);
}
.ks-web__field--pick svg {
  position: absolute;
  right: 0.55em;
  bottom: 0.4em;
  width: 0.62em;
  height: 0.62em;
  color: var(--muted);
}
.ks-web__send {
  display: grid;
  height: 2.6em;
  margin-top: 1.5em;
  border-radius: 0.55em;
  background: var(--ink);
  color: #fff;
  font-size: 0.56em;
  font-weight: 600;
  overflow: hidden;
}
.ks-web__send > span {
  grid-area: 1 / 1;
  place-self: center;
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  transition: opacity 0.3s, transform 0.45s var(--ease-out);
}
.ks-web__send > span + span {
  opacity: 0;
  transform: translateY(140%);
}
.ks-web__send i {
  width: 0.95em;
  height: 0.95em;
  border-radius: 50%;
  border: 0.16em solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  animation: ks-web-spin 0.7s linear infinite;
}
@keyframes ks-web-spin {
  to {
    transform: rotate(1turn);
  }
}
.ks-web__c4.is-on ~ .ks-web__vp .ks-web__send > span:first-child {
  opacity: 0;
  transform: translateY(-140%);
  transition-delay: 0.6s;
}
.ks-web__c4.is-on ~ .ks-web__vp .ks-web__send > span + span {
  opacity: 1;
  transform: none;
  transition-delay: 0.6s;
}
.ks-web__thanks {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  opacity: 0;
  transform: translateY(0.8em);
  pointer-events: none;
}
.ks-web__thanks > i {
  display: grid;
  place-items: center;
  width: 2.2em;
  height: 2.2em;
  margin-bottom: 0.9em;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 0.45em rgba(255, 90, 31, 0.13);
  color: #fff;
}
.ks-web__thanks svg {
  width: 1.15em;
  height: 1.15em;
  stroke-dasharray: 22;
  stroke-dashoffset: 22;
  transition: stroke-dashoffset 0.5s var(--ease-out) 0.45s;
}
.ks-web__thanks .ks-web__ct {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.3em;
  letter-spacing: -0.025em;
}
.ks-web__ref {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin: 1.4em 0 0;
  padding-top: 1em;
  border-top: 1px dashed var(--line-2);
  font-size: 0.46em;
  color: var(--muted);
}
.ks-web__ref b {
  color: var(--ink);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.ks-web__sent.is-on ~ .ks-web__vp .ks-web__fill {
  opacity: 0;
  transform: translateY(-0.6em);
}
.ks-web__sent.is-on ~ .ks-web__vp .ks-web__thanks {
  opacity: 1;
  transform: none;
  transition-delay: 0.2s;
}
.ks-web__sent.is-on ~ .ks-web__vp .ks-web__thanks svg {
  stroke-dashoffset: 0;
}

/* Further down the page: services and a review */
.ks-web__sec {
  padding: 0.4em 2.2em 2em;
}
.ks-web__sh {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 0 0 1.1em;
  padding-top: 1.6em;
  border-top: 1px solid var(--line);
}
.ks-web__sh b {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.15em;
  letter-spacing: -0.02em;
}
.ks-web__sh span {
  font-size: 0.5em;
  font-weight: 600;
  color: var(--muted);
}
.ks-web__cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9em;
}
.ks-web__svc {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.05em 1.05em 1.1em;
  border-radius: 0.85em;
  border: 1px solid var(--line);
  background: #fff;
  opacity: 0;
  transform: translateY(1em);
  transition: opacity 0.5s var(--ease), transform 0.8s var(--ease-out);
}
.ks-web__down.is-on ~ .ks-web__vp .ks-web__svc {
  opacity: 1;
  transform: none;
  transition-delay: calc(0.45s + var(--k) * 0.1s);
}
.ks-web__svc i {
  display: grid;
  place-items: center;
  width: 1.9em;
  height: 1.9em;
  margin-bottom: 1em;
  border-radius: 0.55em;
  background: var(--paper-2);
  color: var(--ink);
}
.ks-web__svc svg {
  width: 1em;
  height: 1em;
}
.ks-web__svc b {
  font-size: 0.64em;
  font-weight: 650;
  letter-spacing: -0.015em;
}
.ks-web__svc small {
  margin-top: 0.45em;
  font-size: 0.5em;
  line-height: 1.45;
  color: var(--muted);
}
.ks-web__svc em {
  margin-top: 1.1em;
  font-style: normal;
  font-size: 0.5em;
  font-weight: 600;
  color: var(--orange-deep);
}
.ks-web__quote {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5em;
  margin-top: 0.9em;
  padding: 1.1em 1.3em;
  border-radius: 0.85em;
  background: var(--paper-2);
}
.ks-web__quote p {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 0.95em;
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.ks-web__quote small {
  flex: none;
  font-size: 0.48em;
  color: var(--muted);
}

/* The same page at phone size, lifted off the canvas */
.ks-web__shade {
  position: absolute;
  inset: 1.1em 35.2%;
  border-radius: 1.3em;
  box-shadow: 0 1.4em 2.6em -1.2em rgba(10, 10, 10, 0.3);
  opacity: 0;
  transition: opacity 0.4s;
}
.ks-web__m.is-on ~ .ks-web__shade {
  opacity: 1;
  transition-delay: 0.45s;
}
.ks-web__mob {
  position: absolute;
  inset: 1.1em 35.2%;
  border-radius: 1.3em;
  box-shadow: inset 0 0 0 1px var(--line-2);
  overflow: hidden;
  opacity: 0;
  transition: opacity 0.35s;
}
.ks-web__m.is-on ~ .ks-web__vp .ks-web__mob {
  opacity: 1;
  transition-delay: 0.5s;
}
.ks-web__mscroll {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 1em 1em;
  transition: transform 1.1s cubic-bezier(0.65, 0, 0.35, 1);
}
.ks-web__mdown.is-on ~ .ks-web__vp .ks-web__mscroll {
  transform: translateY(-7.6em);
}
.ks-web__mnav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  align-self: stretch;
  height: 2.7em;
  margin: 0 -1em 1.2em;
  padding: 0 1em;
  border-bottom: 1px solid var(--line);
}
.ks-web__burger {
  width: 0.95em;
  height: 0.55em;
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
}
.ks-web__mob .ks-web__chip {
  font-size: 0.44em;
}
.ks-web__mh {
  margin: 0.5em 0 0;
  font-family: var(--font-serif);
  font-size: 1.55em;
  line-height: 1.04;
  letter-spacing: -0.03em;
}
.ks-web__mp {
  margin: 0.9em 0 0;
  font-size: 0.5em;
  line-height: 1.55;
  color: var(--muted);
}
.ks-web__mcta {
  display: grid;
  place-items: center;
  align-self: stretch;
  height: 2.8em;
  margin-top: 1.4em;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.5em;
  font-weight: 600;
}
.ks-web__mob .ks-web__trust {
  margin-top: 1.2em;
  font-size: 0.44em;
}
.ks-web__mcard {
  display: flex;
  flex-direction: column;
  gap: 0.55em;
  align-self: stretch;
  margin-top: 1.6em;
  padding: 0.9em;
  border-radius: 0.8em;
  border: 1px solid var(--line);
}
.ks-web__mcard b {
  font-size: 0.6em;
  font-weight: 650;
}
.ks-web__mcard i {
  height: 1.55em;
  border-radius: 0.4em;
  border: 1px solid var(--line-2);
}
.ks-web__mcard em {
  display: grid;
  place-items: center;
  height: 2.6em;
  margin-top: 0.25em;
  border-radius: 0.5em;
  background: var(--ink);
  color: #fff;
  font-style: normal;
  font-size: 0.48em;
  font-weight: 600;
}

/* The visitor's pointer fills in the form (the points are the fields, less the tip) */
.ks-web__cur {
  --c1x: 30.9em;
  --c1y: 10.55em;
  --c2x: 30.9em;
  --c2y: 13.3em;
  --c4x: 34em;
  --c4y: 18.15em;
  opacity: 0;
  transform: translate(36em, 27em);
  transition: transform 0.55s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.3s;
}
.ks-web__c1.is-on ~ .ks-web__cur {
  opacity: 1;
  transform: translate(var(--c1x, 31em), var(--c1y, 12em));
}
.ks-web__c2.is-on ~ .ks-web__cur {
  transform: translate(var(--c2x, 31em), var(--c2y, 14em));
}
.ks-web__c4.is-on ~ .ks-web__cur {
  transform: translate(var(--c4x, 31em), var(--c4y, 18em));
}
.ks-web__c1.is-on ~ .ks-web__cur,
.ks-web__c2.is-on ~ .ks-web__cur,
.ks-web__c4.is-on ~ .ks-web__cur {
  animation: ks-web-press 0.3s var(--ease) 0.55s;
}
.ks-web__c2.is-on ~ .ks-web__cur {
  animation-name: ks-web-press2;
}
.ks-web__c4.is-on ~ .ks-web__cur {
  animation-name: ks-web-press4;
}
.ks-web__sent.is-on ~ .ks-web__cur {
  opacity: 0;
  transition-delay: 0s, 0.3s;
}
@keyframes ks-web-press {
  50% {
    scale: 0.84;
  }
}
@keyframes ks-web-press2 {
  50% {
    scale: 0.84;
  }
}
@keyframes ks-web-press4 {
  50% {
    scale: 0.84;
  }
}

/* 02 Bookings & payments: a visitor picks a day and a time, pays, and gets the
   confirmation. As in the Websites scene, the .ks-book__s markers carry the story. */
.ks-book {
  background: var(--paper-2);
}
.ks-book__s {
  display: none;
}
.ks-book__card {
  position: absolute;
  inset: 1.25em 1.35em;
  display: grid;
  grid-template-columns: 10.6em minmax(0, 1fr) 12.6em;
  border-radius: 1.1em;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 1.6em 3em -2em rgba(10, 10, 10, 0.3);
}
/* Each part carries its own corners, so nothing that moves is clipped by the card */
.ks-book__info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 1.4em 1.2em 1.25em 1.3em;
  border-radius: 1.05em 0 0 1.05em;
  border-right: 1px solid var(--line);
  background: var(--paper-2);
}
.ks-book__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: 0.54em;
  font-weight: 600;
  white-space: nowrap;
}
.ks-book__brand i {
  position: relative;
  flex: none;
  width: 1.35em;
  height: 1.35em;
  border-radius: 0.4em;
  background: var(--ink);
}
.ks-book__brand i::after {
  content: "";
  position: absolute;
  right: 0.24em;
  bottom: 0.24em;
  width: 0.38em;
  height: 0.38em;
  border-radius: 50%;
  background: var(--orange);
}
.ks-book__title {
  margin: 1.05em 0 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.62em;
  line-height: 1.02;
  letter-spacing: -0.025em;
}
.ks-book__meta {
  display: grid;
  gap: 0.8em;
  margin: 1.5em 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.54em;
  color: var(--muted);
}
.ks-book__meta li {
  display: flex;
  align-items: center;
  gap: 0.7em;
  white-space: nowrap;
}
.ks-book__meta svg {
  flex: none;
  width: 1.4em;
  height: 1.4em;
  color: var(--orange);
}
.ks-book__host {
  display: flex;
  align-items: center;
  gap: 0.6em;
  margin-top: 1.5em;
  padding-top: 1.3em;
  border-top: 1px solid var(--line-2);
}
.ks-book__host > i {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.9em;
  height: 2.9em;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 0.52em;
  font-style: normal;
  font-weight: 600;
}
.ks-book__host b,
.ks-book__host small {
  display: block;
  white-space: nowrap;
}
.ks-book__host b {
  font-size: 0.56em;
  font-weight: 600;
}
.ks-book__host small {
  font-size: 0.47em;
  color: var(--muted);
}
.ks-book__note {
  margin: auto 0 0;
  font-size: 0.48em;
  line-height: 1.5;
  color: var(--muted);
}

/* The month */
.ks-book__cal {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 1.35em 1.3em 1.15em;
  border-right: 1px solid var(--line);
}
.ks-book__month {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 1.15em;
}
.ks-book__month b {
  font-size: 0.8em;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.ks-book__month span {
  display: flex;
  gap: 0.35em;
}
.ks-book__month i {
  position: relative;
  width: 1.5em;
  height: 1.5em;
  border-radius: 50%;
  border: 1px solid var(--line-2);
}
.ks-book__month i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0.36em;
  height: 0.36em;
  margin: -0.18em 0 0 -0.1em;
  border-left: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  transform: rotate(45deg);
}
.ks-book__month i + i::after {
  margin-left: -0.26em;
  transform: rotate(-135deg);
}
.ks-book__days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  justify-items: center;
  row-gap: 0.62em;
}
.ks-book__days b {
  padding-bottom: 0.2em;
  font-size: 0.46em;
  font-weight: 500;
  color: var(--muted-2);
}
.ks-book__days span {
  display: grid;
  place-items: center;
  width: 3.3em;
  height: 3.3em;
  border-radius: 50%;
  font-size: 0.64em;
  font-variant-numeric: tabular-nums;
  color: var(--muted-2);
  transition: background 0.3s, color 0.3s, box-shadow 0.3s, transform 0.3s var(--ease-out);
}
.ks-book__days .is-free {
  background: var(--paper-2);
  color: var(--ink);
  font-weight: 600;
}
.ks-book__days .is-out {
  opacity: 0.45;
}
.ks-book__days .is-today {
  box-shadow: inset 0 0 0 1px var(--line-2);
  color: var(--ink);
}
.ks-book__s1.is-on ~ .ks-book__card .ks-book__pick {
  box-shadow: inset 0 0 0 1.5px var(--ink);
}
.ks-book__s2.is-on ~ .ks-book__card .ks-book__pick {
  background: var(--orange);
  box-shadow: 0 0.5em 1.1em -0.4em rgba(255, 90, 31, 0.9);
  color: #fff;
  animation: wk-pop 0.5s var(--ease-out);
}
.ks-book__zone {
  display: flex;
  align-items: center;
  gap: 0.5em;
  margin: auto 0 0;
  font-size: 0.47em;
  color: var(--muted);
}
.ks-book__zone svg {
  width: 1.3em;
  height: 1.3em;
}

/* Times, then payment, then the confirmation: three panes in one column */
.ks-book__flow {
  position: relative;
  min-width: 0;
  overflow: hidden;
}
.ks-book__pane {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 1.35em 1.25em 1.25em;
  border-radius: 0 1.05em 1.05em 0;
  background: #fff;
}
.ks-book__ph {
  display: grid;
  margin: 0 0 1em;
  font-size: 0.7em;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.5;
  white-space: nowrap;
}
.ks-book__ph span {
  grid-area: 1 / 1;
  transition: opacity 0.35s, transform 0.5s var(--ease-out);
}
.ks-book__ph span:first-child:not(:last-child) {
  font-weight: 500;
  color: var(--muted-2);
}
.ks-book__ph span + span {
  opacity: 0;
  transform: translateY(0.5em);
}
.ks-book__s2.is-on ~ .ks-book__card .ks-book__ph span:first-child:not(:last-child) {
  opacity: 0;
}
.ks-book__s2.is-on ~ .ks-book__card .ks-book__ph span + span {
  opacity: 1;
  transform: none;
}
.ks-book__slot {
  display: grid;
  place-items: center;
  height: 2.8em;
  margin-bottom: 0.6em;
  border-radius: 0.75em;
  border: 1px solid var(--line-2);
  font-size: 0.62em;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  opacity: 0;
  transform: translateY(0.9em);
  transition: background 0.3s, border-color 0.3s, color 0.3s;
}
.ks-book__s2.is-on ~ .ks-book__card .ks-book__slot {
  opacity: 1;
  transform: none;
  transition: opacity 0.4s calc(var(--n, 0) * 0.05s), transform 0.6s var(--ease-out) calc(var(--n, 0) * 0.05s), background 0.3s, border-color 0.3s, color 0.3s;
}
.ks-book__slot:nth-of-type(2) {
  --n: 1;
}
.ks-book__slot:nth-of-type(3) {
  --n: 2;
}
.ks-book__slot:nth-of-type(4) {
  --n: 3;
}
.ks-book__slot:nth-of-type(5) {
  --n: 4;
}
.ks-book__slot:nth-of-type(6) {
  --n: 5;
}
.ks-book__s3.is-on ~ .ks-book__card .ks-book__slot--pick {
  border-color: var(--ink);
}
.ks-book__s4.is-on ~ .ks-book__card .ks-book__slot--pick {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.ks-book__hint {
  margin: auto 0 0;
  font-size: 0.48em;
  line-height: 1.5;
  color: var(--muted-2);
  opacity: 0;
  transition: opacity 0.4s 0.3s;
}
.ks-book__s2.is-on ~ .ks-book__card .ks-book__hint {
  opacity: 1;
}
/* Hidden until its turn, so it never shows while the story resets */
.ks-book__pay {
  opacity: 0;
  transform: translateX(104%);
}
.ks-book__s5.is-on ~ .ks-book__card .ks-book__slots {
  opacity: 0;
  transform: translateX(-34%);
  transition: transform 0.7s var(--ease-out), opacity 0.4s;
}
.ks-book__s5.is-on ~ .ks-book__card .ks-book__pay {
  opacity: 1;
  transform: none;
  transition: transform 0.7s var(--ease-out), opacity 0.4s;
}
.ks-book__sum {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.6em;
  padding: 0.8em 0.85em;
  border-radius: 0.75em;
  background: var(--paper-2);
}
.ks-book__sum b {
  font-size: 0.62em;
  font-weight: 600;
  white-space: nowrap;
}
.ks-book__sum small {
  display: block;
  margin-top: 0.2em;
  font-size: 0.48em;
  color: var(--muted);
  white-space: nowrap;
}
.ks-book__field {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.8em;
  padding: 0.95em 0.1em;
  border-bottom: 1px solid var(--line);
  font-size: 0.52em;
}
.ks-book__field small {
  font-size: 1em;
  color: var(--muted);
  white-space: nowrap;
}
.ks-book__field span {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  min-width: 0;
  font-weight: 550;
  white-space: nowrap;
}
.ks-book__field i {
  flex: none;
  width: 2em;
  height: 1.35em;
  border-radius: 0.28em;
  background: linear-gradient(135deg, var(--ink-4), var(--ink));
}
.ks-book__tot {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: auto 0 0;
  padding-bottom: 0.9em;
}
.ks-book__tot span {
  font-size: 0.54em;
  color: var(--muted);
}
.ks-book__tot b {
  font-size: 0.95em;
  font-weight: 600;
  letter-spacing: -0.02em;
}
.ks-book__safe {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  margin: 0.9em 0 0;
  font-size: 0.46em;
  color: var(--muted-2);
  white-space: nowrap;
}
.ks-book__safe svg {
  width: 1.2em;
  height: 1.2em;
}
.ks-book__go {
  display: grid;
  height: 2.95em;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.62em;
  font-weight: 600;
  overflow: hidden;
  transition: background 0.4s, transform 0.2s var(--ease-out), box-shadow 0.4s;
}
.ks-book__go > span {
  grid-area: 1 / 1;
  place-self: center;
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  transition: transform 0.5s var(--ease-out), opacity 0.3s;
}
.ks-book__go > span + span {
  opacity: 0;
  transform: translateY(150%);
}
.ks-book__go i {
  width: 0.95em;
  height: 0.95em;
  border-radius: 50%;
  border: 0.16em solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
}
.kit__scene.is-active .ks-book__go i {
  animation: ks-book-spin 0.7s linear infinite;
}
@keyframes ks-book-spin {
  to {
    transform: rotate(360deg);
  }
}
.ks-book__go svg {
  width: 1.15em;
  height: 1.15em;
}
.ks-book__s6.is-on ~ .ks-book__card .ks-book__go {
  box-shadow: 0 0.9em 1.8em -0.9em rgba(10, 10, 10, 0.8);
}
.ks-book__s7.is-on ~ .ks-book__card .ks-book__go > span:first-child {
  opacity: 0;
  transform: translateY(-150%);
}
.ks-book__s7.is-on ~ .ks-book__card .ks-book__go > span:nth-child(2) {
  opacity: 1;
  transform: none;
}
.ks-book__s8.is-on ~ .ks-book__card .ks-book__go {
  background: var(--orange);
}
.ks-book__s8.is-on ~ .ks-book__card .ks-book__go > span:nth-child(2) {
  opacity: 0;
  transform: translateY(-150%);
}
.ks-book__s8.is-on ~ .ks-book__card .ks-book__go > span:nth-child(3) {
  opacity: 1;
  transform: none;
}
.ks-book__done {
  align-items: center;
  text-align: center;
  opacity: 0;
  transform: translateY(1.4em) scale(0.97);
  transition: opacity 0.3s, transform 0s 0.3s;
}
.ks-book__s8.is-on ~ .ks-book__card .ks-book__pay {
  opacity: 0;
  transform: scale(0.96);
  transition: transform 0.7s var(--ease-out) 0.6s, opacity 0.4s 0.6s;
}
.ks-book__s8.is-on ~ .ks-book__card .ks-book__done {
  opacity: 1;
  transform: none;
  transition: transform 0.7s var(--ease-out) 0.75s, opacity 0.4s 0.75s;
}
.ks-book__tick {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.5em;
  height: 2.5em;
  margin-top: auto;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 0.5em rgba(255, 90, 31, 0.14);
  color: #fff;
}
.ks-book__tick svg {
  width: 1.3em;
  height: 1.3em;
  stroke-dasharray: 22;
  stroke-dashoffset: 22;
  transition: stroke-dashoffset 0.5s var(--ease-out);
}
.ks-book__s8.is-on ~ .ks-book__card .ks-book__tick svg {
  stroke-dashoffset: 0;
  transition-delay: 1.05s;
}
.ks-book__dt {
  margin: 0.75em 0 0;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.4em;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.ks-book__dd {
  margin: 0.5em 0 0;
  font-size: 0.56em;
  font-weight: 600;
  white-space: nowrap;
}
.ks-book__checks {
  display: grid;
  gap: 0.6em;
  width: 100%;
  margin: 1.5em 0 0;
  padding: 1.5em 0 0;
  border-top: 1px dashed var(--line-2);
  list-style: none;
  font-size: 0.52em;
  color: var(--muted);
  text-align: left;
}
.ks-book__checks li {
  display: flex;
  align-items: center;
  gap: 0.7em;
  white-space: nowrap;
}
.ks-book__checks li::before {
  content: "";
  flex: none;
  width: 1.3em;
  height: 1.3em;
  border-radius: 50%;
  background: var(--orange-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e5470f' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7'/%3E%3C/svg%3E") center / 64% no-repeat;
}
.ks-book__ref {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin: auto 0 0;
  font-size: 0.46em;
  color: var(--muted-2);
}
.ks-book__ref i {
  width: 6.5em;
  height: 1.7em;
  background: repeating-linear-gradient(90deg, var(--ink) 0 0.14em, transparent 0.14em 0.36em, var(--ink) 0.36em 0.62em, transparent 0.62em 0.8em, var(--ink) 0.8em 0.9em, transparent 0.9em 1.25em);
  opacity: 0.8;
}

/* The visitor's pointer */
.ks-book__cur {
  opacity: 0;
  transform: translate(31em, 23em);
  transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1), opacity 0.3s;
}
.ks-book__s1.is-on ~ .ks-book__cur {
  opacity: 1;
  transform: translate(20.55em, 13.15em);
}
.ks-book__s2.is-on ~ .ks-book__cur {
  animation: ks-book-press 0.3s var(--ease);
}
.ks-book__s3.is-on ~ .ks-book__cur {
  transform: translate(37.2em, 11.5em);
  animation: none;
}
.ks-book__s4.is-on ~ .ks-book__cur {
  animation: ks-book-press 0.3s var(--ease);
}
.ks-book__s6.is-on ~ .ks-book__cur {
  transform: translate(37.6em, 21em);
  animation: none;
}
.ks-book__s7.is-on ~ .ks-book__cur {
  animation: ks-book-press 0.3s var(--ease);
}
.ks-book__s8.is-on ~ .ks-book__cur {
  opacity: 0;
  transition-delay: 0s, 0.5s;
}
@keyframes ks-book-press {
  50% {
    scale: 0.84;
  }
}

/* 03 AI assistants: a customer moves an appointment in the chat while the agent's work
   ticks off beside it */
.ks-chat {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 1em;
  padding: 1.2em;
  background: var(--paper-2);
}
.ks-chat__win {
  display: flex;
  flex-direction: column;
  min-height: 0;
  border-radius: 1em;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 1.4em 2.6em -2em rgba(10, 10, 10, 0.4);
  overflow: hidden;
}
.ks-chat__head {
  flex: none;
  display: flex;
  align-items: center;
  gap: 0.65em;
  padding: 0.7em 1em;
  border-bottom: 1px solid var(--line);
}
.ks-chat__av {
  position: relative;
  flex: none;
  width: 1.9em;
  height: 1.9em;
  border-radius: 50%;
  background: var(--ink);
}
.ks-chat__av::after {
  content: "";
  position: absolute;
  inset: 32%;
  border-radius: 50%;
  background: var(--orange);
}
.ks-chat__head b {
  display: block;
  font-size: 0.78em;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.ks-chat__head small {
  display: block;
  font-size: 0.56em;
  color: var(--muted);
}
.ks-chat__log {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 1em 0.9em;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 1.6em);
  mask-image: linear-gradient(transparent, #000 1.6em);
}
.ks-chat__feed {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}
.kmsg {
  max-width: 86%;
  padding: 0.62em 0.9em;
  border-radius: 1.15em;
  font-size: 0.7em;
  line-height: 1.35;
}
.kmsg--you {
  align-self: flex-end;
  background: var(--ink);
  color: #fff;
  border-bottom-right-radius: 0.3em;
}
.kmsg--ai {
  align-self: flex-start;
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-bottom-left-radius: 0.3em;
}
.ks-chat .kmsg[data-m]:not(.is-on) {
  display: none;
}
.kmsg.is-on {
  animation: ks-chat-msg 0.5s var(--ease-out);
}
@keyframes ks-chat-msg {
  from {
    opacity: 0;
    transform: translateY(0.8em) scale(0.96);
  }
}
.kmsg--dots {
  display: flex;
  gap: 0.3em;
  padding: 0.8em 0.9em;
}
.kmsg--dots i {
  width: 0.45em;
  height: 0.45em;
  border-radius: 50%;
  background: var(--muted-2);
  animation: ks-chat-dot 1s ease-in-out infinite;
}
.kmsg--dots i:nth-child(2) {
  animation-delay: 0.15s;
}
.kmsg--dots i:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes ks-chat-dot {
  50% {
    transform: translateY(-0.3em);
    opacity: 0.5;
  }
}
/* A reply with two times to pick from; the customer taps one */
.kmsg--rich {
  display: flex;
  flex-direction: column;
  gap: 0.6em;
}
.ks-chat__slots {
  display: flex;
  gap: 0.45em;
}
.ks-chat__slots b {
  position: relative;
  padding: 0.42em 0.95em;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line-2);
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.3s, color 0.3s, border-color 0.3s;
}
.ks-chat__pick.is-on {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.ks-chat__pick::after {
  content: "";
  position: absolute;
  inset: -0.3em;
  border-radius: 999px;
  border: 2px solid var(--orange);
  opacity: 0;
  pointer-events: none;
}
.ks-chat__pick.is-on::after {
  animation: ks-chat-tap 0.6s var(--ease-out);
}
@keyframes ks-chat-tap {
  from {
    opacity: 1;
    transform: scale(0.8);
  }
  to {
    opacity: 0;
    transform: scale(1.25);
  }
}
/* The booking, confirmed in the chat */
.kmsg--card {
  align-self: flex-start;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.6em 0.75em;
  max-width: 90%;
  padding: 0.8em 1em 0.7em 0.8em;
  border-radius: 1.15em 1.15em 1.15em 0.3em;
  background: #fff;
  border: 1px solid var(--line-2);
  box-shadow: 0 1em 1.8em -1.2em rgba(10, 10, 10, 0.4);
}
.kmsg--card > i {
  width: 2.3em;
  height: 2.3em;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--orange);
  color: #fff;
}
.kmsg--card.is-on > i {
  animation: ks-chat-pop 0.6s var(--ease-out) 0.15s backwards;
}
@keyframes ks-chat-pop {
  from {
    transform: scale(0);
  }
  60% {
    transform: scale(1.12);
  }
}
.kmsg--card svg {
  width: 1.25em;
  height: 1.25em;
}
.kmsg--card b {
  display: block;
  font-weight: 650;
  letter-spacing: -0.015em;
}
.kmsg--card small {
  display: block;
  font-size: 0.88em;
  color: var(--muted);
  white-space: nowrap;
}
.kmsg--card em {
  grid-column: 1 / -1;
  padding-top: 0.6em;
  border-top: 1px solid var(--line);
  font-style: normal;
  font-size: 0.84em;
  color: var(--muted);
}
.ks-chat__compose {
  flex: none;
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.55em 0.6em 0.55em 1em;
  border-top: 1px solid var(--line);
}
.ks-chat__draft {
  flex: 1;
  min-width: 0;
  font-size: 0.68em;
  white-space: nowrap;
  overflow: hidden;
}
.ks-chat__draft:empty::before {
  content: "Write a message…";
  color: var(--muted-2);
}
.ks-chat__send {
  flex: none;
  width: 1.9em;
  height: 1.9em;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  transition: background 0.3s, transform 0.4s var(--ease-out);
}
.ks-chat__send svg {
  width: 1em;
  height: 1em;
}
.ks-chat__draft:not(:empty) + .ks-chat__send {
  background: var(--orange);
  transform: scale(1.08);
}
/* The agent's side: each step goes from queued to working to done */
.ks-chat__agent {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 1em 1.1em 1.1em;
  border-radius: 1em;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 1.4em 2.6em -1.8em rgba(10, 10, 10, 0.75);
  overflow: hidden;
}
.ks-chat__ahead {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  gap: 0.65em;
  padding-bottom: 0.85em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.ks-chat__ahead > i {
  flex: none;
  width: 1.9em;
  height: 1.9em;
  display: grid;
  place-items: center;
  border-radius: 0.55em;
  background: var(--orange);
}
.ks-chat__ahead > i svg {
  width: 1.1em;
  height: 1.1em;
}
.ks-chat__ahead b {
  display: block;
  font-size: 0.78em;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.ks-chat__ahead small {
  display: block;
  font-size: 0.56em;
  color: var(--muted-dark);
}
.ks-chat__state {
  margin-left: auto;
  display: grid;
  font-size: 0.5em;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.ks-chat__state span {
  grid-area: 1 / 1;
  justify-self: end;
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.5em 0.9em 0.5em 0.75em;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted-dark);
  transition: opacity 0.35s, transform 0.5s var(--ease-out);
}
.ks-chat__state i {
  width: 0.62em;
  height: 0.62em;
  border-radius: 50%;
  background: var(--orange);
}
.ks-chat__state span:first-child i {
  animation: live 1.6s ease-in-out infinite;
}
.ks-chat__state span + span {
  background: rgba(255, 90, 31, 0.2);
  color: #fff;
  opacity: 0;
  transform: translateY(0.6em);
}
.ks-chat__agent.is-on .ks-chat__state span:first-child {
  opacity: 0;
  transform: translateY(-0.6em);
}
.ks-chat__agent.is-on .ks-chat__state span + span {
  opacity: 1;
  transform: none;
}
.ks-chat__steps {
  position: relative;
  flex: 1;
  min-height: 0;
  display: grid;
  grid-auto-rows: minmax(0, 1fr);
  padding: 0.35em 0;
}
.ks-chat__steps li {
  position: relative;
  display: grid;
  grid-template-columns: 2em minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75em;
}
/* The line from each step to the next fills as the step finishes */
.ks-chat__steps li:not(:last-child)::before,
.ks-chat__steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 1em;
  top: 50%;
  width: 1px;
  height: 100%;
  background: rgba(255, 255, 255, 0.14);
}
.ks-chat__steps li:not(:last-child)::after {
  background: var(--orange);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.5s var(--ease);
}
.ks-chat__steps li.is-done::after {
  transform: none;
}
.ks-chat__steps li > i {
  position: relative;
  z-index: 1;
  width: 2em;
  height: 2em;
  display: grid;
  place-items: center;
  border-radius: 0.6em;
  background: #1c1c1c;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.4s, border-color 0.4s, background 0.4s;
}
.ks-chat__steps li > i svg {
  width: 1.05em;
  height: 1.05em;
}
.ks-chat__steps li.is-on > i {
  color: #fff;
  border-color: var(--orange);
}
.ks-chat__steps li.is-done > i {
  background: #262626;
  border-color: rgba(255, 255, 255, 0.16);
}
.ks-chat__txt {
  min-width: 0;
  opacity: 0.42;
  transition: opacity 0.4s;
}
.ks-chat__steps li.is-on .ks-chat__txt {
  opacity: 1;
}
.ks-chat__txt b,
.ks-chat__txt small {
  display: grid;
}
.ks-chat__txt b {
  font-size: 0.72em;
  font-weight: 550;
  letter-spacing: -0.012em;
}
.ks-chat__txt small {
  font-size: 0.56em;
  color: var(--muted-dark);
}
.ks-chat__txt span,
.ks-chat__out span span {
  grid-area: 1 / 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.3s, transform 0.45s var(--ease-out);
}
.ks-chat__txt span + span,
.ks-chat__out span span + span {
  opacity: 0;
  transform: translateY(0.5em);
}
.ks-chat__steps li.is-done .ks-chat__txt span:first-child,
.ks-chat__agent.is-on .ks-chat__out span span:first-child {
  opacity: 0;
  transform: translateY(-0.5em);
}
.ks-chat__steps li.is-done .ks-chat__txt span + span,
.ks-chat__agent.is-on .ks-chat__out span span + span {
  opacity: 1;
  transform: none;
}
.ks-chat__stat {
  display: grid;
  place-items: center end;
  min-width: 4.6em;
  font-style: normal;
  font-size: 0.52em;
  font-variant-numeric: tabular-nums;
  color: var(--muted-dark);
}
.ks-chat__stat > * {
  grid-area: 1 / 1;
  opacity: 0;
  transition: opacity 0.3s;
}
.ks-chat__stat i,
.ks-chat__out > i::before {
  width: 1.9em;
  height: 1.9em;
  border-radius: 50%;
  border: 0.3em solid rgba(255, 255, 255, 0.16);
  border-top-color: var(--orange);
}
.ks-chat__steps li.is-on .ks-chat__stat i {
  opacity: 1;
}
.kit__scene.is-active .ks-chat__steps li.is-on .ks-chat__stat i,
.kit__scene.is-active .ks-chat__out > i::before {
  animation: ks-chat-spin 0.8s linear infinite;
}
@keyframes ks-chat-spin {
  to {
    transform: rotate(1turn);
  }
}
.ks-chat__stat span {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
}
.ks-chat__stat span::before,
.ks-chat__out > i::after {
  content: "";
  width: 1.9em;
  height: 1.9em;
  border-radius: 50%;
  background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5.5 12.5 4.2 4.2L18.5 8'/%3E%3C/svg%3E") center / 62% no-repeat;
}
.ks-chat__steps li.is-done .ks-chat__stat i {
  opacity: 0;
}
.ks-chat__steps li.is-done .ks-chat__stat span {
  opacity: 1;
}
.ks-chat__steps li.is-done .ks-chat__stat span::before {
  animation: ks-chat-pop 0.5s var(--ease-out);
}
/* The outcome: the bar fills with orange when the job is done */
.ks-chat__out {
  position: relative;
  flex: none;
  display: flex;
  align-items: center;
  gap: 0.7em;
  height: 2.9em;
  padding: 0 0.9em;
  border-radius: 0.8em;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.ks-chat__out::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--orange);
  clip-path: inset(0 100% 0 0);
  transition: clip-path 0.8s var(--ease-out);
}
.ks-chat__agent.is-on .ks-chat__out::before {
  clip-path: inset(0);
}
.ks-chat__out > i {
  position: relative;
  flex: none;
  display: grid;
  font-size: 0.6em;
}
.ks-chat__out > i::before,
.ks-chat__out > i::after {
  content: "";
  grid-area: 1 / 1;
  transition: opacity 0.3s;
}
.ks-chat__out > i::after {
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff5a1f' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5.5 12.5 4.2 4.2L18.5 8'/%3E%3C/svg%3E");
  opacity: 0;
}
.ks-chat__agent.is-on .ks-chat__out > i::before {
  opacity: 0;
}
.ks-chat__agent.is-on .ks-chat__out > i::after {
  opacity: 1;
  animation: ks-chat-pop 0.6s var(--ease-out) 0.2s backwards;
}
.ks-chat__out > span {
  position: relative;
  min-width: 0;
  display: grid;
  font-size: 0.7em;
  font-weight: 600;
  letter-spacing: -0.012em;
}
.ks-chat__out span span:first-child {
  font-weight: 500;
  color: var(--muted-dark);
}

/* 04 AI video agents: a real call. The AI interviewer (a recorded clip of the live avatar)
   asks, the candidate answers, the criteria fill in with what was heard, and the team gets
   a summary. Framed like a real call: head and shoulders, with headroom. */
.ks-vid {
  display: grid;
  grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr);
  gap: 1em;
  padding: 1.1em;
  background: var(--paper-2);
}
.ks-vid__s {
  display: none;
}
.ks-vid__call {
  display: flex;
  flex-direction: column;
  gap: 0.75em;
  min-width: 0;
  min-height: 0;
}
.ks-vid__cam {
  position: relative;
  flex: 1;
  min-height: 0;
  border-radius: 0.95em;
  background: #2a2723;
  overflow: hidden;
  isolation: isolate;
}
.ks-vid__cam video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 35%;
  transform-origin: 50% 40%;
  transition: transform 4.5s cubic-bezier(0.3, 0, 0.3, 1), filter 0.6s;
}
/* While the candidate answers, the interviewer listens: a slow push-in */
.ks-vid__listen.is-on ~ .ks-vid__call video {
  transform: scale(1.03);
}
.ks-vid__who,
.ks-vid__state {
  position: absolute;
  top: 1.7em;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  height: 2.3em;
  border-radius: 999px;
  font-size: 0.5em;
  white-space: nowrap;
}
.ks-vid__who {
  left: 1.7em;
  gap: 0.55em;
  padding: 0 1em 0 0.85em;
  background: rgba(255, 255, 255, 0.92);
  color: var(--muted);
}
.ks-vid__who i {
  width: 0.62em;
  height: 0.62em;
  border-radius: 50%;
  background: var(--orange);
}
.ks-vid__who b {
  color: var(--ink);
  font-weight: 650;
}
.ks-vid__state {
  right: 1.7em;
  display: grid;
  padding: 0 1em;
  background: rgba(10, 10, 10, 0.55);
  color: #fff;
  font-weight: 550;
}
.ks-vid__state > span {
  grid-area: 1 / 1;
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  transition: opacity 0.3s, transform 0.45s var(--ease-out);
}
.ks-vid__state > span + span {
  opacity: 0;
  transform: translateY(0.6em);
}
.ks-vid__listen.is-on ~ .ks-vid__call .ks-vid__state > span:first-child {
  opacity: 0;
  transform: translateY(-0.6em);
}
.ks-vid__listen.is-on ~ .ks-vid__call .ks-vid__state > span + span {
  opacity: 1;
  transform: none;
}
.ks-vid__eq {
  display: inline-flex;
  align-items: center;
  gap: 0.16em;
  height: 0.9em;
}
.ks-vid__eq i {
  width: 0.18em;
  height: 100%;
  border-radius: 0.1em;
  background: var(--orange-2);
  transform-origin: 50% 50%;
  animation: ks-vid-eq 0.9s ease-in-out infinite;
}
.ks-vid__eq i:nth-child(2) {
  animation-delay: -0.3s;
}
.ks-vid__eq i:nth-child(3) {
  animation-delay: -0.6s;
}
@keyframes ks-vid-eq {
  0%,
  100% {
    transform: scaleY(0.35);
  }
  50% {
    transform: scaleY(1);
  }
}

/* Captions: the interviewer's question, then the candidate's answer, a word at a time */
.ks-vid__cap {
  position: absolute;
  left: 1.33em;
  right: 13.4em;
  bottom: 1.33em;
  z-index: 2;
  margin: 0;
  padding: 0.7em 0.95em 0.8em;
  border-radius: 0.65em;
  background: rgba(10, 10, 10, 0.66);
  color: #fff;
  font-size: 0.64em;
  line-height: 1.38;
  opacity: 0;
  transform: translateY(0.4em);
  transition: opacity 0.35s, transform 0.5s var(--ease-out);
}
.ks-vid__cap:has(.is-on) {
  opacity: 1;
  transform: none;
}
.ks-vid__cap small {
  display: block;
  margin-bottom: 0.3em;
  font-size: 0.72em;
  font-weight: 600;
  color: var(--orange-2);
}
.ks-vid__cap--you small {
  color: rgba(255, 255, 255, 0.62);
}
.ks-vid__line {
  display: none;
}
.ks-vid__line.is-on {
  display: block;
}
.ks-vid__line > span {
  opacity: 0.22;
  transition: opacity 0.25s;
}
.ks-vid__line.is-on > span {
  opacity: 1;
  transition-delay: calc(var(--i) * var(--p, 0.25s));
}

/* The candidate's own picture (camera off), which lights while they answer */
.ks-vid__self {
  position: absolute;
  right: 0.85em;
  bottom: 0.85em;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 7em;
  aspect-ratio: 4 / 3;
  border-radius: 0.65em;
  background: #3a3632;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14);
  transition: box-shadow 0.4s;
}
.ks-vid__self > i {
  display: grid;
  place-items: center;
  width: 2.6em;
  height: 2.6em;
  border-radius: 50%;
  background: #57514a;
  color: #fff;
  font-style: normal;
  font-size: 0.56em;
  font-weight: 600;
}
.ks-vid__self small {
  position: absolute;
  left: 0.75em;
  bottom: 0.55em;
  font-size: 0.42em;
  color: rgba(255, 255, 255, 0.75);
}
.ks-vid__wave {
  position: absolute;
  right: 0.6em;
  bottom: 0.55em;
  display: flex;
  align-items: center;
  gap: 0.12em;
  height: 0.75em;
}
.ks-vid__wave i {
  width: 0.13em;
  height: 100%;
  border-radius: 0.1em;
  background: rgba(255, 255, 255, 0.5);
  transform: scaleY(0.25);
}
.ks-vid__answer.is-on ~ .ks-vid__call .ks-vid__self {
  box-shadow: 0 0 0 0.16em var(--orange);
}
.ks-vid__answer.is-on ~ .ks-vid__call .ks-vid__wave i {
  background: #fff;
  animation: ks-vid-eq 0.8s ease-in-out infinite;
  animation-delay: calc(var(--k) * -0.13s);
}

/* The call's own bar */
.ks-vid__ctrl {
  flex: none;
  display: flex;
  align-items: center;
  gap: 0.9em;
  height: 2.3em;
  padding: 0 0.3em 0 0.35em;
}
.ks-vid__q {
  font-size: 0.5em;
  font-weight: 550;
  color: var(--muted);
  white-space: nowrap;
}
.ks-vid__track {
  flex: 1;
  height: 0.22em;
  border-radius: 1em;
  background: var(--line);
  overflow: hidden;
}
.ks-vid__track i {
  display: block;
  width: 9%;
  height: 100%;
  border-radius: inherit;
  background: var(--orange);
  transition: width 1.2s var(--ease-out);
}
.ks-vid__listen.is-on ~ .ks-vid__call .ks-vid__track i {
  width: 17%;
}
.ks-vid__btns {
  display: flex;
  gap: 0.4em;
}
.ks-vid__btns i {
  display: grid;
  place-items: center;
  width: 1.95em;
  height: 1.95em;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
}
.ks-vid__btns i.ks-vid__end {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.ks-vid__btns svg {
  width: 0.95em;
  height: 0.95em;
}

/* The interview plan: the client's criteria fill in with what was heard */
.ks-vid__panel {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  padding: 1.05em 1.1em 1.1em;
  border-radius: 0.95em;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 1.4em 2.6em -2em rgba(10, 10, 10, 0.3);
}
.ks-vid__ph {
  margin: 0;
}
.ks-vid__ph b,
.ks-vid__ph small {
  display: block;
  white-space: nowrap;
}
.ks-vid__ph b {
  font-size: 0.74em;
  font-weight: 650;
  letter-spacing: -0.02em;
}
.ks-vid__ph small {
  margin-top: 0.3em;
  font-size: 0.48em;
  color: var(--muted);
}
.ks-vid__label {
  margin: 1.45em 0 0;
  padding-bottom: 0.7em;
  border-bottom: 1px solid var(--line);
  font-size: 0.46em;
  font-weight: 600;
  color: var(--muted);
}
.ks-vid__crit {
  margin: 0;
  padding: 0;
  list-style: none;
}
.ks-vid__crit li {
  display: grid;
  grid-template-columns: 1.45em minmax(0, 1fr);
  gap: 0.7em;
  align-items: start;
  padding: 0.85em 0;
  border-bottom: 1px solid var(--line);
}
.ks-vid__crit li > i {
  position: relative;
  width: 1.45em;
  height: 1.45em;
  margin-top: 0.05em;
  border-radius: 50%;
  border: 1.5px dashed var(--line-2);
  transition: border-color 0.3s, background-color 0.3s;
}
.ks-vid__crit li > i::after {
  content: "";
  position: absolute;
  inset: -1.5px;
  border-radius: 50%;
  background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5.5 12.5 4.2 4.2L18.5 8'/%3E%3C/svg%3E") center / 62% no-repeat;
  transform: scale(0);
  transition: transform 0.45s var(--ease-out);
}
.ks-vid__crit li.is-on > i {
  border-color: transparent;
}
.ks-vid__crit li.is-on > i::after {
  transform: none;
}
.ks-vid__crit b {
  display: block;
  font-size: 0.58em;
  font-weight: 650;
  letter-spacing: -0.01em;
}
.ks-vid__crit small {
  display: grid;
  margin-top: 0.35em;
  font-size: 0.48em;
  line-height: 1.45;
}
.ks-vid__crit small > span {
  grid-area: 1 / 1;
  transition: opacity 0.3s, transform 0.45s var(--ease-out);
}
.ks-vid__crit small > span:first-child {
  color: var(--muted-2);
}
.ks-vid__crit small > span + span {
  color: var(--muted);
  opacity: 0;
  transform: translateY(0.5em);
}
.ks-vid__crit li.is-on small > span:first-child {
  opacity: 0;
  transform: translateY(-0.5em);
}
.ks-vid__crit li.is-on small > span + span {
  opacity: 1;
  transform: none;
  transition-delay: 0.12s;
}
.ks-vid__next {
  margin: 1.2em 0 0;
  font-size: 0.5em;
  line-height: 1.5;
  color: var(--muted);
}
.ks-vid__next small {
  display: block;
  margin-bottom: 0.35em;
  font-size: 0.9em;
  font-weight: 600;
  color: var(--muted-2);
}
.ks-vid__sum {
  display: flex;
  align-items: center;
  gap: 0.75em;
  margin-top: auto;
  padding: 0.8em 0.9em;
  border-radius: 0.75em;
  background: var(--ink);
  color: #fff;
  opacity: 0;
  transform: translateY(0.8em);
  transition: opacity 0.4s var(--ease), transform 0.7s var(--ease-out);
}
.ks-vid__sum.is-on {
  opacity: 1;
  transform: none;
}
.ks-vid__sum > i {
  flex: none;
  display: grid;
  place-items: center;
  width: 1.95em;
  height: 1.95em;
  border-radius: 0.55em;
  background: var(--orange);
}
.ks-vid__sum svg {
  width: 1.05em;
  height: 1.05em;
}
.ks-vid__sum b,
.ks-vid__sum small {
  display: block;
}
.ks-vid__sum b {
  font-size: 0.56em;
  font-weight: 600;
  line-height: 1.3;
}
.ks-vid__sum small {
  margin-top: 0.25em;
  font-size: 0.46em;
  color: var(--muted-dark);
}

/* 05 Automations: a workflow canvas. Packets run along the wires in order and each node
   confirms as it's reached. The flow keeps its own shape, so the wires always meet the nodes. */
.ks-auto {
  display: flex;
  flex-direction: column;
  background: var(--paper-3) radial-gradient(#d0cbc1 1px, transparent 1.4px) 0.3em 0.3em / 1.45em 1.45em;
}
.ks-auto__bar {
  position: relative;
  z-index: 2;
  flex: none;
  display: flex;
  align-items: center;
  gap: 1.1em;
  height: 2.9em;
  padding: 0 1.2em 0 1em;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.ks-auto__name {
  display: flex;
  align-items: center;
  gap: 0.6em;
  min-width: 0;
  margin-right: auto;
}
.ks-auto__name > i {
  flex: none;
  width: 1.7em;
  height: 1.7em;
  display: grid;
  place-items: center;
  border-radius: 0.5em;
  background: var(--ink);
  color: #fff;
}
.ks-auto__name > i svg {
  width: 0.95em;
  height: 0.95em;
}
.ks-auto__name b {
  font-size: 0.72em;
  font-weight: 600;
  letter-spacing: -0.015em;
  white-space: nowrap;
}
.ks-auto__name em {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.35em 0.8em 0.35em 0.65em;
  border-radius: 999px;
  background: var(--orange-soft);
  font-style: normal;
  font-size: 0.5em;
  font-weight: 600;
  color: var(--orange-deep);
}
.ks-auto__name em i {
  width: 0.6em;
  height: 0.6em;
  border-radius: 50%;
  background: var(--orange);
  animation: live 1.6s ease-in-out infinite;
}
.ks-auto__kpi {
  flex: none;
  display: flex;
  align-items: baseline;
  gap: 0.5em;
  padding-left: 1.1em;
  border-left: 1px solid var(--line);
}
.ks-auto__kpi small {
  font-size: 0.52em;
  color: var(--muted);
  white-space: nowrap;
}
.ks-auto__kpi b {
  font-size: 0.8em;
  font-weight: 650;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
/* The counter rolls on when a run completes */
.ks-auto__roll {
  display: inline-grid;
  overflow: hidden;
}
.ks-auto__roll span {
  grid-area: 1 / 1;
  transition: transform 0.6s var(--ease-out), opacity 0.4s;
}
.ks-auto__roll span + span {
  transform: translateY(100%);
  opacity: 0;
}
.ks-auto__roll.is-on span:first-child {
  transform: translateY(-100%);
  opacity: 0;
}
.ks-auto__roll.is-on span + span {
  transform: none;
  opacity: 1;
}
.ks-auto__flow {
  position: relative;
  flex: none;
  width: 100%;
  margin-block: auto;
  aspect-ratio: 434.78 / 226;
}
.ks-auto__wires {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.ks-auto__wire path {
  fill: none;
}
.ks-auto__wire path:nth-child(1) {
  stroke: #c9c4ba;
  stroke-width: 1.1;
  stroke-dasharray: 3 3.4;
}
/* The route taken stays drawn; the packet is a round dash that runs along it */
.ks-auto__wire path:nth-child(2) {
  stroke: var(--ink);
  stroke-width: 1.3;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 0.7s var(--ease);
}
.ks-auto__wire.is-on path:nth-child(2) {
  stroke-dashoffset: 0;
}
.ks-auto__wire path:nth-child(3) {
  stroke: var(--orange);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-dasharray: 0 2;
  opacity: 0;
}
.ks-auto__wire.is-on path:nth-child(3) {
  animation: ks-auto-run 0.7s var(--ease);
}
@keyframes ks-auto-run {
  from {
    stroke-dashoffset: 0;
    opacity: 1;
  }
  85% {
    opacity: 1;
  }
  to {
    stroke-dashoffset: -1;
    opacity: 0;
  }
}
.ks-auto__node {
  position: absolute;
  left: calc(var(--x) * 1%);
  top: calc(var(--y) * 1%);
  z-index: 1;
  width: calc(var(--w) * 1%);
  translate: -50% -50%;
  border-radius: 0.85em;
  background: #fff;
  border: 1px solid var(--line-2);
  box-shadow: 0 1.1em 2em -1.4em rgba(10, 10, 10, 0.45);
  transition: border-color 0.4s;
}
.ks-auto__node.is-on {
  border-color: var(--orange);
}
.ks-auto__node.is-done {
  border-color: var(--line-2);
}
/* Ports where the wires plug in */
.ks-auto__node--in::after,
.ks-auto__node--out::before,
.ks-auto__node--ai::before,
.ks-auto__node--ai::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 0.56em;
  height: 0.56em;
  margin-top: -0.28em;
  border-radius: 50%;
  background: #fff;
  border: 1px solid #b9b4aa;
  transition: background 0.3s, border-color 0.3s;
}
.ks-auto__node--out::before,
.ks-auto__node--ai::before {
  left: -0.3em;
}
.ks-auto__node--in::after,
.ks-auto__node--ai::after {
  right: -0.3em;
}
.ks-auto__node.is-on::before,
.ks-auto__node.is-on::after {
  background: var(--orange);
  border-color: var(--orange);
}
.ks-auto__node.is-done::before,
.ks-auto__node.is-done::after {
  background: var(--ink);
  border-color: var(--ink);
}
.ks-auto__top {
  display: flex;
  align-items: center;
  gap: 0.55em;
  padding: 0.55em 0.6em;
}
.ks-auto__top > i {
  flex: none;
  width: 1.9em;
  height: 1.9em;
  display: grid;
  place-items: center;
  border-radius: 0.55em;
  background: var(--paper-2);
  border: 1px solid var(--line);
}
.ks-auto__top svg {
  width: 1.05em;
  height: 1.05em;
}
.ks-auto__top small {
  display: block;
  font-size: 0.44em;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.ks-auto__top b {
  display: block;
  font-size: 0.72em;
  font-weight: 600;
  letter-spacing: -0.015em;
  white-space: nowrap;
}
/* The live status line: idle, working, then the result */
.ks-auto__stat {
  display: flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.5em 0.75em;
  border-top: 1px solid var(--line);
  border-radius: 0 0 0.8em 0.8em;
  background: var(--paper-2);
  font-size: 0.52em;
  color: var(--muted);
  white-space: nowrap;
}
.ks-auto__stat > i {
  flex: none;
  width: 1.3em;
  height: 1.3em;
  border-radius: 50%;
  border: 0.18em solid var(--line-2);
  transition: border-color 0.3s, background-color 0.3s;
}
.ks-auto__node.is-on .ks-auto__stat > i {
  border-top-color: var(--orange);
}
.kit__scene.is-active .ks-auto__node.is-on:not(.is-done) .ks-auto__stat > i {
  animation: ks-chat-spin 0.7s linear infinite;
}
.ks-auto__node.is-done .ks-auto__stat > i {
  border-color: var(--orange);
  background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5.5 12.5 4.2 4.2L18.5 8'/%3E%3C/svg%3E") center / 78% no-repeat;
  animation: ks-auto-pop 0.5s var(--ease-out);
}
@keyframes ks-auto-pop {
  from {
    transform: scale(0.4);
  }
  60% {
    transform: scale(1.2);
  }
}
.ks-auto__stat > span {
  display: grid;
  min-width: 0;
}
.ks-auto__stat span span {
  grid-area: 1 / 1;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: opacity 0.3s, transform 0.45s var(--ease-out);
}
.ks-auto__stat span span + span {
  opacity: 0;
  transform: translateY(0.6em);
}
.ks-auto__node.is-on .ks-auto__stat span span:first-child,
.ks-auto__node.is-done .ks-auto__stat span span:nth-child(2) {
  opacity: 0;
  transform: translateY(-0.6em);
}
.ks-auto__node.is-on:not(.is-done) .ks-auto__stat span span:nth-child(2),
.ks-auto__node.is-done .ks-auto__stat span span:nth-child(3) {
  opacity: 1;
  transform: none;
}
.ks-auto__node.is-done .ks-auto__stat {
  color: var(--ink);
  font-weight: 550;
}
/* The AI step, in ink */
.ks-auto__node--ai {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
  box-shadow: 0 1.4em 2.4em -1.2em rgba(10, 10, 10, 0.6);
}
.ks-auto__node--ai.is-done {
  border-color: var(--ink);
}
.ks-auto__node--ai .ks-auto__top > i {
  background: var(--orange);
  border-color: var(--orange);
}
.ks-auto__node--ai .ks-auto__top small {
  color: var(--muted-dark);
}
.ks-auto__tags {
  display: flex;
  gap: 0.35em;
  padding: 0.1em 0.6em 0.65em;
}
.ks-auto__tags span {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  padding: 0.34em 0.75em 0.34em 0.6em;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  font-size: 0.48em;
  font-weight: 500;
  color: var(--muted-dark);
  white-space: nowrap;
  transition: background 0.35s, color 0.35s;
}
.ks-auto__tags span::before {
  content: "";
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  transition: background 0.35s;
}
.ks-auto__node.is-on .ks-auto__tags span {
  background: rgba(255, 90, 31, 0.24);
  color: #fff;
  transition-delay: calc(0.25s + var(--k) * 0.3s);
}
.ks-auto__node.is-on .ks-auto__tags span::before {
  background: var(--orange);
  transition-delay: calc(0.25s + var(--k) * 0.3s);
}
.ks-auto__node--ai .ks-auto__stat {
  border-top-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.07);
  color: var(--muted-dark);
}
.ks-auto__node--ai .ks-auto__stat > i {
  border-color: rgba(255, 255, 255, 0.2);
}
.ks-auto__node--ai.is-on .ks-auto__stat > i {
  border-top-color: var(--orange);
}
.ks-auto__node--ai.is-done .ks-auto__stat > i {
  border-color: var(--orange);
}
.ks-auto__node--ai.is-done .ks-auto__stat {
  color: #fff;
}
.ks-auto__done {
  position: absolute;
  left: 50%;
  top: 90.7%;
  z-index: 2;
  translate: -50% -50%;
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.5em 1.1em 0.5em 0.55em;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 1.2em 2.4em -1em rgba(0, 0, 0, 0.55);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(0.9em) scale(0.96);
  transition: opacity 0.4s var(--ease), transform 0.6s var(--ease-out);
}
.ks-auto__done.is-on {
  opacity: 1;
  transform: none;
}
.ks-auto__done > i {
  width: 1.5em;
  height: 1.5em;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--orange);
}
.ks-auto__done svg {
  width: 0.85em;
  height: 0.85em;
}
.ks-auto__done b {
  font-size: 0.66em;
  font-weight: 600;
}
.ks-auto__done span {
  font-size: 0.6em;
  color: var(--muted-dark);
}

/* 06 Dashboards: the tiles count up, the chart draws in to today's figure, and a new
   booking lands in the activity list and ticks the tiles up with it. */
.ks-dash {
  display: flex;
  flex-direction: column;
  gap: 0.7em;
  padding: 1.1em;
  background: var(--paper-2);
}
.ks-dash__top {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1em;
  height: 1.9em;
}
.ks-dash__title {
  display: flex;
  align-items: baseline;
  gap: 0.7em;
}
.ks-dash__title b {
  font-size: 0.96em;
  font-weight: 650;
  letter-spacing: -0.025em;
}
.ks-dash__title span {
  font-size: 0.58em;
  color: var(--muted);
}
.ks-dash__range {
  display: flex;
  padding: 0.18em;
  border-radius: 0.55em;
  background: var(--paper-3);
  font-size: 0.52em;
  font-weight: 500;
  color: var(--muted);
}
.ks-dash__range span {
  padding: 0.42em 0.95em;
  border-radius: 0.7em;
  white-space: nowrap;
}
.ks-dash__range span:nth-child(2) {
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(10, 10, 10, 0.12);
}
.ks-dash__kpis {
  flex: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7em;
}
.ks-dash__kpi,
.ks-dash__card {
  border-radius: 0.9em;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 1em 2em -1.7em rgba(10, 10, 10, 0.35);
  opacity: 0;
  transform: translateY(0.9em);
  transition: opacity 0.5s var(--ease) calc(var(--k, 0) * 0.07s), transform 0.8s var(--ease-out) calc(var(--k, 0) * 0.07s);
}
.ks-dash__kpis.is-on .ks-dash__kpi,
.ks-dash__card.is-on {
  opacity: 1;
  transform: none;
}
.ks-dash__kpi {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0.7em 0.9em 0.75em;
}
.ks-dash__kpi small {
  font-size: 0.56em;
  color: var(--muted);
}
.ks-dash__kpi > b {
  position: relative;
  margin-top: 0.12em;
  font-size: 1.42em;
  font-weight: 620;
  letter-spacing: -0.035em;
  line-height: 1.15;
  white-space: nowrap;
}
.ks-dash__kpi u {
  margin-left: 0.3em;
  font-size: 0.48em;
  font-weight: 500;
  letter-spacing: 0;
  text-decoration: none;
  color: var(--muted);
}
/* What the new booking adds floats up from the figure */
.ks-dash__kpi b i {
  position: absolute;
  left: 100%;
  top: 0.1em;
  margin-left: -1.6em;
  padding: 0.2em 0.6em;
  border-radius: 999px;
  background: var(--orange-soft);
  font-style: normal;
  font-size: 0.36em;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--orange-deep);
  opacity: 0;
}
.ks-dash__kpi b .is-live + i {
  animation: ks-dash-plus 1.8s var(--ease-out);
}
@keyframes ks-dash-plus {
  from {
    opacity: 0;
    transform: translateY(0.6em);
  }
  18%,
  70% {
    opacity: 1;
    transform: none;
  }
  to {
    opacity: 0;
    transform: translateY(-0.9em);
  }
}
.ks-dash__kpi p {
  display: flex;
  align-items: center;
  gap: 0.35em;
  margin-top: 0.35em;
  font-size: 0.5em;
  color: var(--muted);
  white-space: nowrap;
}
.ks-dash__kpi p svg {
  width: 1.05em;
  height: 1.05em;
  color: var(--orange);
}
.ks-dash__kpi p em {
  font-style: normal;
  font-weight: 650;
  color: var(--ink);
}
/* Sparklines: the run-up in grey, the latest step in orange */
.ks-dash__spark {
  position: absolute;
  right: 0.85em;
  top: 0.8em;
  width: 3.4em;
  height: 1.15em;
  overflow: visible;
  clip-path: inset(-0.3em 100% -0.3em 0);
  transition: clip-path 1s var(--ease) 0.35s;
}
.ks-dash__kpis.is-on .ks-dash__spark {
  clip-path: inset(-0.3em -0.3em -0.3em 0);
}
.ks-dash__spark polyline {
  fill: none;
  stroke: #c4bfb5;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.ks-dash__spark polyline + polyline {
  stroke: var(--orange);
}
.ks-dash__spark circle {
  fill: var(--orange);
}
.ks-dash__main {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.52fr) minmax(0, 0.8fr) minmax(0, 0.92fr);
  gap: 0.7em;
}
.ks-dash__card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 0.8em 0.9em;
}
.ks-dash__head {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8em;
  min-height: 1.3em;
}
.ks-dash__head b {
  font-size: 0.68em;
  font-weight: 600;
  letter-spacing: -0.015em;
  white-space: nowrap;
}
.ks-dash__keys {
  display: flex;
  gap: 1.1em;
  font-size: 0.48em;
  color: var(--muted);
  white-space: nowrap;
}
.ks-dash__keys span {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
}
.ks-dash__keys i,
.ks-dash__tip span i {
  width: 1.2em;
  height: 2px;
  border-radius: 2px;
  background: var(--orange);
}
.ks-dash__keys span + span i,
.ks-dash__tip span i {
  background: var(--muted-2);
}
/* The plot: hairline grid, last period in grey, this period in orange with a soft wash */
.ks-dash__plot {
  position: relative;
  flex: 1;
  min-height: 0;
  margin: 0.75em 0.35em 0 2em;
}
.ks-dash__tick {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--y) * 1%);
  height: 1px;
  background: var(--line);
}
.ks-dash__tick:nth-of-type(5) {
  background: var(--line-2);
}
.ks-dash__tick span {
  position: absolute;
  right: 100%;
  top: 0;
  margin-right: 0.8em;
  translate: 0 -50%;
  font-style: normal;
  font-size: 0.46em;
  font-variant-numeric: tabular-nums;
  color: var(--muted-2);
}
.ks-dash__prev,
.ks-dash__now {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  clip-path: inset(-1em 100% 0 0);
}
.ks-dash__prev {
  transition: clip-path 1.1s var(--ease) 0.35s;
}
.ks-dash__now {
  transition: clip-path 1.5s var(--ease) 0.7s;
}
.ks-dash__chart.is-on .ks-dash__prev,
.ks-dash__chart.is-on .ks-dash__now {
  clip-path: inset(-1em -1em 0 0);
}
.ks-dash__prev path,
.ks-dash__now path {
  fill: none;
  stroke: var(--muted-2);
  stroke-width: 0.085em;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}
.ks-dash__now path {
  stroke: var(--orange);
  stroke-width: 0.125em;
}
.ks-dash__now path:first-child {
  fill: var(--orange);
  stroke: none;
  opacity: 0.1;
}
/* Today's point, ringed in the surface colour, and its readout */
.ks-dash__dot {
  position: absolute;
  left: 100%;
  top: calc(var(--y) * 1%);
  width: 0.62em;
  height: 0.62em;
  margin: -0.31em 0 0 -0.31em;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 0.13em #fff;
  opacity: 0;
  transform: scale(0);
  transition: opacity 0.2s 2.1s, transform 0.5s var(--ease-out) 2.1s;
}
.ks-dash__dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--orange);
  opacity: 0;
}
.ks-dash__chart.is-on .ks-dash__dot {
  opacity: 1;
  transform: none;
}
.kit__scene.is-active .ks-dash__chart.is-on .ks-dash__dot::after {
  animation: ks-dash-ping 1.8s var(--ease-out) 2.4s infinite;
}
@keyframes ks-dash-ping {
  from {
    opacity: 0.5;
    transform: none;
  }
  70%,
  to {
    opacity: 0;
    transform: scale(3.4);
  }
}
.ks-dash__tip {
  position: absolute;
  right: -0.35em;
  top: -0.75em;
  display: flex;
  flex-direction: column;
  gap: 0.1em;
  padding: 0.5em 0.75em 0.55em;
  border-radius: 0.6em;
  background: #fff;
  border: 1px solid var(--line-2);
  box-shadow: 0 0.9em 1.8em -0.9em rgba(10, 10, 10, 0.4);
  white-space: nowrap;
  opacity: 0;
  transform: translateY(0.6em);
  transition: opacity 0.4s var(--ease) 2.3s, transform 0.6s var(--ease-out) 2.3s;
}
.ks-dash__chart.is-on .ks-dash__tip {
  opacity: 1;
  transform: none;
}
.ks-dash__tip small {
  font-size: 0.46em;
  color: var(--muted);
}
.ks-dash__tip b {
  font-size: 0.86em;
  font-weight: 650;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.ks-dash__tip span {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-size: 0.46em;
  color: var(--muted);
}
.ks-dash__axis {
  position: relative;
  flex: none;
  height: 1.05em;
  margin: 0.4em 0.35em 0 2em;
}
.ks-dash__axis span {
  position: absolute;
  left: calc(var(--x) * 1%);
  top: 0;
  translate: -50% 0;
  font-size: 0.46em;
  color: var(--muted-2);
  white-space: nowrap;
}
.ks-dash__axis span:first-child {
  translate: 0 0;
}
.ks-dash__axis span:last-child {
  translate: -100% 0;
  font-weight: 600;
  color: var(--ink);
}
/* Bookings by source: one hue, thin bars, the figure beside each */
.ks-dash__bars {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-auto-rows: minmax(0, 1fr);
  margin-top: 0.3em;
}
.ks-dash__bars li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-content: center;
  gap: 0.4em 0.5em;
}
.ks-dash__bars li > span {
  font-size: 0.56em;
  color: var(--muted);
}
.ks-dash__bars b {
  font-size: 0.56em;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.ks-dash__bars i {
  position: relative;
  grid-column: 1 / -1;
  height: 0.34em;
  border-radius: 0.2em;
  background: var(--paper-3);
  overflow: hidden;
}
.ks-dash__bars i::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: calc(var(--v) * 100%);
  border-radius: 0 0.2em 0.2em 0;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1s var(--ease-out) calc(0.3s + var(--k) * 0.09s);
}
.ks-dash__mix.is-on .ks-dash__bars i::after {
  transform: none;
}
/* Live activity: the list steps down a row as the new booking arrives */
.ks-dash__pulse {
  width: 0.4em;
  height: 0.4em;
  border-radius: 50%;
  background: var(--orange);
  animation: live 1.6s ease-in-out infinite;
}
/* Live dots pulse a ring on a layer of its own (live-ring in styles.css): a box-shadow
   pulse repaints on the main thread every frame, and everything in view with it. */
.ks-chat__state span:first-child i,
.ks-auto__name em i,
.ks-dash__pulse {
  position: relative;
  animation: none;
}
.ks-chat__state span:first-child i::after,
.ks-auto__name em i::after,
.ks-dash__pulse::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 5px solid rgba(255, 90, 31, 0.18);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.5);
  animation: live-ring 1.6s ease-in-out infinite;
  pointer-events: none;
}
.ks-dash__feed {
  flex: 1;
  min-height: 0;
  margin: 0.45em -0.4em -0.8em;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 calc(100% - 2.4em), transparent);
  mask-image: linear-gradient(#000 calc(100% - 2.4em), transparent);
}
.ks-dash__rows {
  transform: translateY(-2.5em);
}
.ks-dash__rows.is-on {
  transform: none;
  transition: transform 0.7s var(--ease-out);
}
.ks-dash__rows li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55em;
  height: 2.5em;
  padding: 0 0.4em;
  border-radius: 0.6em;
}
.ks-dash__rows li > i {
  width: 1.7em;
  height: 1.7em;
  display: grid;
  place-items: center;
  border-radius: 0.5em;
  background: var(--paper-2);
  border: 1px solid var(--line);
}
.ks-dash__rows svg {
  width: 0.95em;
  height: 0.95em;
}
.ks-dash__rows b,
.ks-dash__rows small {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ks-dash__rows b {
  font-size: 0.6em;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.ks-dash__rows small {
  font-size: 0.5em;
  color: var(--muted);
}
.ks-dash__rows em {
  font-style: normal;
  font-size: 0.48em;
  font-variant-numeric: tabular-nums;
  color: var(--muted-2);
}
.ks-dash__rows li:first-child {
  background: var(--orange-soft);
  opacity: 0;
}
.ks-dash__rows li:first-child > i {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}
.ks-dash__rows li:first-child em {
  font-weight: 600;
  color: var(--orange-deep);
}
.ks-dash__rows.is-on li:first-child {
  opacity: 1;
  transition: opacity 0.5s var(--ease) 0.15s;
}

/* Tablets and phones: the builds become a row of chips above the window */
@media (max-width: 1024px) {
  .kit {
    grid-template-columns: 1fr;
  }
  .kit__list {
    flex-direction: row;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 6px;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
  }
  .kit__list::-webkit-scrollbar {
    display: none;
  }
  /* A landscape tablet keeps the chips, the window and its guide on one screen */
  .kit__stage {
    justify-self: center;
    width: min(100%, max(calc((100vh - 290px) * 1.7), 480px));
  }
  .kit__tab {
    flex: none;
    grid-template-columns: auto auto;
    align-items: center;
    column-gap: 10px;
    padding: 6px 16px 6px 6px;
    border-radius: 999px;
    border-color: rgba(255, 255, 255, 0.1);
  }
  .kit__num,
  .kit__desc {
    display: none;
  }
  .kit__ico {
    width: 30px;
    height: 30px;
    border-radius: 50%;
  }
  .kit__txt b {
    padding-top: 0;
    font-size: 15px;
    white-space: nowrap;
  }
}

/* Phones: the guide keeps its lines, and only the step that's playing is named, under them */
@media (max-width: 600px) {
  .kit__ch {
    position: relative;
    gap: 6px;
    margin-top: 6px;
    padding-bottom: 26px;
  }
  .kit__ch button {
    padding: 10px 0;
  }
  .kit__ch button > i {
    height: 3px;
    margin-bottom: 0;
  }
  .kit__ch button span {
    position: absolute;
    left: 0;
    right: 0;
    top: 26px;
    font-size: 13px;
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
  }
  .kit__ch .is-cur button span {
    opacity: 1;
  }
}

/* Reduced motion: no wipes, no leaning, nothing moves. Each scene holds its finished
   moment, and picking a step shows how that step ends */
@media (prefers-reduced-motion: reduce) {
  .kit__scene,
  .kit__scene.is-active {
    clip-path: none;
    transition: none;
  }
  .kit__scene.is-prev {
    visibility: hidden;
  }
  .kit__win {
    transform: none;
  }
  .kit__scene *,
  .kit__scene *::before,
  .kit__scene *::after {
    animation: none !important;
    transition: none !important;
  }
  .kit__ch .is-cur button > i::after {
    transform: none;
  }
}
