/* Third screen: services. Opaque over the hero backdrop; rows alternate copy and a coded
   illustration. services.js steps each illustration through --s while it is in view. */
.svc-cue .sx-cue-marks i {
  color: var(--c);
  background: color-mix(in srgb, var(--c) 20%, #0a0e16);
}
.svc-cue .sx-cue-marks i:nth-child(4) {
  animation-delay: 0.6s;
}
.svc-cue .sx-cue-marks .i {
  width: 15px;
  height: 15px;
  stroke-width: 2;
}

/* The landing row (.svc-peek) opens the section so it can stay pinned through the whole screen. */
.svc {
  position: relative;
  pointer-events: auto;
  padding: 0 0 clamp(70px, 8vw, 120px);
  background: linear-gradient(
    180deg,
    transparent,
    var(--sx-bg) calc(var(--peek) + 120px)
  );
  font-family: var(--sx-font);
}
.svc-peek {
  pointer-events: none;
}
.svc + .sx-cta {
  padding-top: 40px;
  background: var(--sx-bg);
}
.svc-head {
  max-width: 900px;
  margin: 120px auto 0;
  padding: 0 20px;
  text-align: center;
}
.svc-head h2 {
  margin: 12px 0 14px;
  font: 600 clamp(26px, 2.6vw, 40px)/1.3 var(--sx-font);
  letter-spacing: 0.02em;
}
.svc-head > p:last-child {
  margin: 0;
  color: var(--ink-dim);
  font-size: clamp(14px, 1.1vw, 16px);
}
/* Narrow screens break the heading between phrases, never inside one. */
.svc-head span {
  display: inline-block;
}

.svc-row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 84px);
  align-items: center;
  max-width: 1240px;
  margin: clamp(64px, 8vw, 130px) auto 0;
  padding: 0 4%;
}
.svc-row.flip {
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
}
.svc-row.flip .svc-art {
  order: -1;
}
.svc-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--c);
  font:
    600 12px var(--f-hud),
    var(--sx-font);
  letter-spacing: 0.16em;
}
.svc-tag .i {
  width: 18px;
  height: 18px;
}
.svc-text h3 {
  margin: 14px 0 16px;
  font: 600 clamp(22px, 2vw, 30px)/1.35 var(--sx-font);
}
.svc-text h3 > span {
  display: block;
}
.svc-body {
  max-width: 30em;
  margin: 0 0 22px;
  color: var(--ink-dim);
  font-size: 15px;
  line-height: 1.85;
}
.svc-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.svc-points li {
  padding: 0.38em 0.9em;
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--c) 9%, transparent);
  color: var(--ink);
  font-size: 12.5px;
}

/* The illustration: a lit gradient panel with a dark app window cropped at its foot.
   Everything inside is sized in em, and the em follows the panel's width. */
.svc-art {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 16px;
  container-type: inline-size;
  background:
    radial-gradient(
      110% 90% at 88% -10%,
      color-mix(in srgb, var(--c2) 72%, transparent),
      transparent 62%
    ),
    radial-gradient(
      90% 80% at 0% 110%,
      color-mix(in srgb, var(--c) 60%, transparent),
      transparent 66%
    ),
    linear-gradient(160deg, #1b1e2d, #0b0d14);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.45),
    inset 0 0 0 1px rgba(255, 255, 255, 0.07);
  font-size: 12px;
  color: #e6ebf7;
}
@supports (width: 1cqi) {
  .svc-art {
    font-size: clamp(8.5px, 1.9cqi, 13px);
  }
}
.svc-art::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 2.6em 2.6em;
  -webkit-mask: radial-gradient(80% 70% at 50% 30%, #000, transparent);
  mask: radial-gradient(80% 70% at 50% 30%, #000, transparent);
}
.svc-art p {
  margin: 0;
}
.svc-win {
  position: absolute;
  inset: 10% 8% -3%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 0.9em;
  background: rgba(15, 17, 25, 0.94);
  box-shadow:
    0 2em 4em rgba(0, 0, 0, 0.5),
    inset 0 0 0 1px rgba(255, 255, 255, 0.09);
}
.svc-bar {
  display: flex;
  flex: none;
  align-items: center;
  gap: 0.45em;
  height: 2.6em;
  padding: 0 1em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(230, 236, 250, 0.55);
}
.svc-bar i {
  width: 0.7em;
  height: 0.7em;
  border-radius: 50%;
  background: #ff5f57;
}
.svc-bar i:nth-child(2) {
  background: #febc2e;
}
.svc-bar i:nth-child(3) {
  background: #28c840;
}
.svc-bar span {
  margin-left: 0.7em;
}
.svc-live {
  position: absolute;
  top: 0.8em;
  right: 1em;
  display: flex;
  align-items: center;
  gap: 0.45em;
  color: var(--c);
  font-weight: 600;
  font-size: 0.92em;
}
.svc-live i,
.svc-call i {
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 0 currentColor;
}
.svc-chip {
  position: absolute;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.65em 1em;
  border-radius: 999px;
  background: rgba(20, 23, 34, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 1em 2.4em rgba(0, 0, 0, 0.4),
    inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  white-space: nowrap;
}
/* 01 Remote: a config line gets fixed under the support engineer's cursor. */
.art-remote .svc-win {
  inset: 9% 9% -4% 7%;
}
.svc-code {
  padding: 1.1em 0 0.9em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font: 1em/1.85 var(--f-mono);
}
.svc-code p,
.svc-term p {
  padding: 0 1.2em;
  white-space: nowrap;
}
.svc-code s,
.svc-term s {
  display: inline-block;
  width: 1.7em;
  color: rgba(230, 236, 250, 0.3);
  text-decoration: none;
}
.svc-code em {
  color: #c4b5fd;
  font-style: normal;
}
.svc-art q {
  quotes: '"' '"';
  color: #fcd38a;
}
.svc-bad {
  background: rgba(255, 95, 87, 0.13);
}
.svc-bad q {
  text-decoration: line-through
    rgba(255, 120, 110, calc(clamp(0, var(--s, 0) - 2, 1)));
}
/* The fix opens as a diff line under the struck-out one, then types itself in. */
.svc-code .svc-good {
  height: 0;
  overflow: hidden;
  background: #13261f;
  clip-path: inset(0 100% 0 0);
  transition:
    height 0.35s ease,
    clip-path 0.7s steps(18) 0.3s;
}
.art-remote:is([data-s='4'], [data-s='5'], [data-s='6'], [data-s='7'])
  .svc-good {
  height: 1.85em;
  clip-path: inset(0 0 0 0);
}
.svc-term {
  padding: 0.9em 0;
  font: 1em/1.95 var(--f-mono);
}
.svc-term span {
  color: #9ae6b4;
}
.svc-err {
  --at: 1;
  --until: 5;
  color: #ff8a80;
}
.svc-term .svc-ok {
  --at: 5;
  margin-top: -1.95em;
  color: var(--c);
}
.svc-pointer {
  position: absolute;
  left: 80%;
  top: 16em;
  z-index: 3;
  display: flex;
  align-items: flex-start;
  transition:
    left 0.8s cubic-bezier(0.5, 0, 0.2, 1),
    top 0.8s cubic-bezier(0.5, 0, 0.2, 1);
}
.svc-pointer svg {
  width: 1.3em;
  height: 1.6em;
  fill: #fff;
  stroke: #111;
  stroke-width: 1.2;
  filter: drop-shadow(0 0.2em 0.3em rgba(0, 0, 0, 0.5));
}
.svc-pointer span {
  margin: 1.2em 0 0 -0.2em;
  padding: 0.2em 0.6em;
  border-radius: 0.4em;
  background: var(--c);
  color: #04120e;
  font-size: 0.8em;
  font-weight: 600;
  white-space: nowrap;
}
.svc-pointer::before {
  content: '';
  position: absolute;
  left: -0.45em;
  top: -0.45em;
  width: 1.2em;
  height: 1.2em;
  border: 2px solid var(--c);
  border-radius: 50%;
  opacity: 0;
}
.art-remote:is([data-s='2'], [data-s='3'], [data-s='4']) .svc-pointer {
  left: 50%;
  top: 8.1em;
}
.art-remote[data-s='3'] .svc-pointer::before {
  animation: svc-click 0.6s ease-out;
}
.svc-call {
  top: 2.5%;
  right: 3%;
}
.svc-call i {
  color: #28c840;
}
.svc-call time {
  color: rgba(230, 236, 250, 0.6);
  font-family: var(--f-mono);
}

/* 02 Advisor: briefing cards beside a reply that lays out a plan. */
.art-advisor .svc-win {
  inset: 12% 6% -4% 31%;
}
.svc-news {
  position: absolute;
  left: 5%;
  top: 17%;
  z-index: 2;
  display: grid;
  gap: 0.8em;
  width: 27%;
}
.svc-news p {
  padding: 0.75em 0.9em;
  border-radius: 0.7em;
  background: rgba(22, 24, 36, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 1em 2em rgba(0, 0, 0, 0.35),
    inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  font-size: 0.92em;
  line-height: 1.45;
}
.svc-news b {
  display: block;
  margin-bottom: 0.25em;
  color: var(--c2);
  font-size: 0.82em;
  letter-spacing: 0.08em;
}
.svc-news p:nth-child(2) {
  --at: 1;
}
.svc-news p:nth-child(3) {
  --at: 2;
}
.svc-chat {
  display: grid;
  align-content: start;
  gap: 0.9em;
  padding: 1.3em 1.4em;
  line-height: 1.6;
}
.svc-chat .me {
  justify-self: end;
  max-width: 80%;
  padding: 0.7em 1em;
  border-radius: 1em 1em 0.3em 1em;
  background: color-mix(in srgb, var(--c) 32%, #1e2130);
}
.svc-chat .them {
  justify-self: start;
  max-width: 90%;
  padding: 0.8em 1em;
  border-radius: 1em 1em 1em 0.3em;
  background: rgba(255, 255, 255, 0.06);
}
.svc-chat ul {
  display: grid;
  gap: 0.45em;
  margin: 0.5em 0 0;
  padding: 0;
  list-style: none;
}
.svc-chat li b {
  margin-right: 0.5em;
  color: var(--c2);
  font-weight: 600;
}
.art-advisor .me {
  --at: 3;
}
.art-advisor .them {
  --at: 4;
}
.art-advisor li:nth-child(1) {
  --at: 5;
}
.art-advisor li:nth-child(2) {
  --at: 6;
}
.art-advisor li:nth-child(3) {
  --at: 7;
}

/* 03 Enterprise: a ticket runs through an agent workflow, node by node. */
.art-enterprise .svc-win {
  inset: 10% 6% -4%;
}
.svc-flow {
  position: relative;
  flex: 1;
  min-height: 0;
  margin: 0.4em 1.2em;
}
.svc-flow svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.svc-flow path {
  fill: none;
  stroke: rgba(255, 255, 255, 0.13);
  stroke-width: 1.5;
  vector-effect: non-scaling-stroke;
}
.svc-flow .live path {
  stroke: var(--c);
  stroke-dasharray: 4 5;
  opacity: clamp(0, calc(var(--s, 0) - var(--at, 0) + 1), 1);
  transition: opacity 0.4s;
}
.svc-flow .f0 {
  --at: 1;
}
.svc-flow .f1,
.svc-flow .f2,
.svc-flow .f3 {
  --at: 3;
}
.svc-node {
  --lit: clamp(0, calc(var(--s, 0) - var(--at, 0) + 1), 1);
  position: absolute;
  top: var(--y);
  left: 1%;
  width: 26%;
  translate: 0 -50%;
  padding: 0.7em 0.8em;
  border-radius: 0.7em;
  background: #181b27;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.svc-node::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 1px var(--c),
    0 0 1.6em color-mix(in srgb, var(--c) 45%, transparent);
  opacity: var(--lit);
  transition: opacity 0.4s;
}
.svc-node small {
  display: block;
  margin-bottom: 0.2em;
  color: rgba(230, 236, 250, 0.45);
  font-size: 0.75em;
  letter-spacing: 0.12em;
}
.svc-node b {
  font-size: 0.95em;
  font-weight: 600;
  white-space: nowrap;
}
.svc-node.agent {
  background: color-mix(in srgb, var(--c) 22%, #181b27);
}
.svc-node.agent small {
  color: var(--c2);
}
.n1 {
  --at: 2;
  left: 37%;
}
.n2,
.n3 {
  --at: 4;
}
.n4 {
  --at: 5;
}
.n2,
.n3,
.n4 {
  left: 70%;
  width: 29%;
}
.svc-flow-foot {
  display: flex;
  flex: none;
  gap: 1.6em;
  padding: 0.9em 1.2em 2.6em;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(230, 236, 250, 0.5);
  font-size: 0.85em;
  white-space: nowrap;
}
.svc-flow-foot span::before {
  content: '';
  display: inline-block;
  width: 0.45em;
  height: 0.45em;
  margin-right: 0.5em;
  border-radius: 50%;
  background: var(--c);
  vertical-align: middle;
}

/* 04 Online: a late-night message answered in minutes. */
.art-online .svc-win {
  inset: 10% 24% -4% 8%;
}
.svc-support time {
  display: block;
  margin-bottom: 0.2em;
  color: rgba(230, 236, 250, 0.42);
  font: 0.78em var(--f-mono);
}
.svc-support .t1 {
  --at: 1;
}
.svc-support .svc-typing {
  --at: 2;
  --until: 4;
  display: flex;
  gap: 0.35em;
  padding: 1em 1.1em;
}
.svc-support .t2 {
  --at: 4;
}
.svc-support :is(.svc-typing, .t2) {
  grid-row: 3;
  grid-column: 1;
}
.svc-typing i {
  width: 0.5em;
  height: 0.5em;
  border-radius: 50%;
  background: rgba(230, 236, 250, 0.55);
}
.svc-crew {
  right: 4%;
  bottom: 5%;
}
.svc-avatars {
  display: flex;
}
.svc-avatars i {
  display: grid;
  place-items: center;
  width: 2em;
  height: 2em;
  margin-left: -0.55em;
  border: 2px solid #151824;
  border-radius: 50%;
  background: color-mix(in srgb, var(--c) 40%, #1e2130);
}
.svc-avatars i:first-child {
  margin-left: 0;
}
.svc-avatars i:nth-child(2) {
  background: color-mix(in srgb, var(--c2) 40%, #1e2130);
}
.svc-avatars svg {
  width: 1.1em;
  height: 1.1em;
  fill: none;
  stroke: #fff;
  stroke-width: 2;
}

/* Steps: an item shows from step --at and hides again at --until. */
.svc-news p,
.svc-err,
.svc-ok,
.art-advisor :is(.me, .them, li),
.svc-support > * {
  --on: clamp(0, calc(var(--s, 0) - var(--at, 0) + 1), 1);
  --off: clamp(0, calc(var(--until, 99) - var(--s, 0)), 1);
  opacity: calc(var(--on) * var(--off));
  transition:
    opacity 0.45s ease,
    translate 0.55s cubic-bezier(0.2, 0.7, 0.1, 1);
}
.svc-news p,
.art-advisor :is(.me, .them),
.svc-support > * {
  translate: 0 calc((1 - var(--on)) * 0.6em);
}
.svc-node {
  opacity: calc(0.4 + var(--lit) * 0.6);
  transition: opacity 0.45s ease;
}

/* Loops run only while their illustration is the one playing. */
.svc-art.on .svc-live i,
.svc-art.on .svc-call i {
  animation: svc-pulse 1.8s ease-out infinite;
}
.svc-art.on .svc-flow .live path {
  animation: svc-dash 1s linear infinite;
}
.svc-art.on .svc-typing i {
  animation: svc-dot 1s ease-in-out infinite;
}
.svc-typing i:nth-child(2) {
  animation-delay: 0.15s !important;
}
.svc-typing i:nth-child(3) {
  animation-delay: 0.3s !important;
}
@keyframes svc-pulse {
  from {
    box-shadow: 0 0 0 0 currentColor;
  }
  to {
    box-shadow: 0 0 0 0.55em transparent;
  }
}
@keyframes svc-dash {
  to {
    stroke-dashoffset: -9;
  }
}
@keyframes svc-dot {
  50% {
    translate: 0 -0.3em;
    opacity: 1;
  }
}
@keyframes svc-click {
  from {
    opacity: 1;
    scale: 0.4;
  }
  to {
    opacity: 0;
    scale: 1.8;
  }
}

/* Reveals: heading, then each row's copy rises and its panel lifts in. */
.svc-head,
.svc-text > *,
.svc-art {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.7s ease,
    transform 0.9s cubic-bezier(0.2, 0.7, 0.1, 1);
}
.svc-head.in,
.svc-row.in .svc-text > *,
.svc-row.in .svc-art {
  opacity: 1;
  transform: none;
}
.svc-row.in .svc-text > :nth-child(2) {
  transition-delay: 0.06s;
}
.svc-row.in .svc-text > :nth-child(3) {
  transition-delay: 0.12s;
}
.svc-row.in .svc-text > :nth-child(4) {
  transition-delay: 0.18s;
}
.svc-art {
  transform: translateY(40px) scale(0.97);
}
.svc-row.in .svc-art {
  transition-delay: 0.1s;
}

@media (max-width: 860px) {
  .svc-head {
    margin-top: 90px;
  }
  .svc-row,
  .svc-row.flip {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-top: 64px;
    padding: 0 20px;
  }
  .svc-row .svc-art,
  .svc-row.flip .svc-art {
    order: -1;
  }
  .svc-body {
    font-size: 14px;
    line-height: 1.8;
  }
}
@media (prefers-reduced-motion: reduce) {
  .svc-head,
  .svc-text > *,
  .svc-art {
    transform: none !important;
    transition: none !important;
  }
  .svc-head,
  .svc-text > * {
    opacity: 1 !important;
  }
  .svc-art *,
  .svc-art *::before,
  .svc-art *::after,
  .svc-rows *,
  .svc-rows {
    animation: none !important;
    transition: none !important;
  }
}
@media (prefers-reduced-motion: reduce) and (not ((min-width: 1024px) and (min-height: 600px))) {
  .svc-art {
    opacity: 1 !important;
  }
}
/* Desktop stage: the copy scrolls on the left while one sticky stage on the right shows the
   service at the viewport's midline. services.js sets --stage-h, --line, --c/--c2 and .on. */
.svc-glow,
.svc-line,
.svc-steps {
  display: none;
}
@property --g1 {
  syntax: '<color>';
  inherits: false;
  initial-value: transparent;
}
@property --g2 {
  syntax: '<color>';
  inherits: false;
  initial-value: transparent;
}
@media (min-width: 1024px) and (min-height: 600px) {
  /* The glow bleeds past the columns; clip keeps the stage sticky, unlike overflow: hidden. */
  .svc {
    overflow-x: clip;
  }
  .svc-rows {
    --pad: clamp(24px, 4vw, 64px);
    --stage-top: max(
      clamp(24px, 7vh, 64px) + 56px,
      calc((100vh - var(--stage-h, 440px) - 64px) / 2)
    );
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
    grid-template-rows: repeat(4, auto);
    column-gap: 72px;
    max-width: 1440px;
    margin: clamp(16px, 3vh, 40px) auto 0;
    padding: 0 var(--pad);
  }
  .svc-rows .svc-row {
    display: contents;
  }
  .svc-row:nth-of-type(1) .svc-text {
    grid-row: 1;
  }
  .svc-row:nth-of-type(2) .svc-text {
    grid-row: 2;
  }
  .svc-row:nth-of-type(3) .svc-text {
    grid-row: 3;
  }
  .svc-row:nth-of-type(4) .svc-text {
    grid-row: 4;
  }
  .svc-rows .svc-text {
    grid-column: 1;
    position: relative;
    z-index: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 62vh;
    padding-left: 60px;
  }

  /* Copy: the step at the midline is lit, the others step back. */
  .svc-rows .svc-text > * {
    opacity: 1;
    transform: none;
    transition: opacity 0.5s ease;
  }
  .svc-rows .svc-text > :is(.svc-body, .svc-points) {
    opacity: 0.26;
  }
  .svc-rows .svc-row.on .svc-text > :is(.svc-body, .svc-points) {
    opacity: 1;
  }
  .svc-rows .svc-row.on .svc-text > .svc-points {
    transition-delay: 0.12s;
  }
  .svc-rows .svc-tag {
    min-height: 36px;
    color: rgba(230, 236, 250, 0.38);
    transition: color 0.5s;
  }
  .svc-rows .svc-row.on .svc-tag {
    color: var(--c);
  }
  /* The tag's icon becomes a badge on the side line, 60px left of the copy. */
  .svc-rows .svc-tag {
    position: relative;
  }
  .svc-rows .svc-tag::before {
    content: '';
    position: absolute;
    left: -60px;
    top: 50%;
    width: 36px;
    height: 36px;
    translate: 0 -50%;
    border-radius: 50%;
    background: #0b0e15;
    box-shadow:
      inset 0 0 0 1px rgba(255, 255, 255, 0.14),
      0 0 0 6px var(--sx-bg);
    transition:
      box-shadow 0.5s,
      background 0.5s;
  }
  .svc-rows .svc-tag .i {
    position: absolute;
    left: -51px;
    top: 50%;
    z-index: 1;
    translate: 0 -50%;
  }
  .svc-rows .svc-row.on .svc-tag::before {
    background: color-mix(in srgb, var(--c) 20%, #0b0e15);
    box-shadow:
      inset 0 0 0 1px var(--c),
      0 0 0 6px var(--sx-bg),
      0 0 22px color-mix(in srgb, var(--c) 55%, transparent);
  }
  /* Headings wipe from dim to full ink, line by line. */
  .svc-rows .svc-text h3 > span {
    color: transparent;
    background: linear-gradient(
        90deg,
        var(--ink) 50%,
        rgba(233, 238, 249, 0.3) 50%
      )
      100% 0 / 200% 100% no-repeat;
    -webkit-background-clip: text;
    background-clip: text;
    transition: background-position 0.9s cubic-bezier(0.6, 0, 0.2, 1);
  }
  .svc-rows .svc-row.on .svc-text h3 > span {
    background-position: 0 0;
  }
  .svc-rows .svc-row.on .svc-text h3 > span + span {
    transition-delay: 0.14s;
  }
  /* Large outlined numeral behind each step, drifting a little slower than the copy. */
  .svc-rows .svc-text::after {
    content: attr(data-n);
    position: absolute;
    right: -8px;
    top: 50%;
    z-index: -1;
    pointer-events: none;
    font: 700 clamp(120px, 11vw, 180px)/1 var(--f-hud);
    color: transparent;
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.05);
    translate: 0 calc(-100% - 24px + (var(--line, 0) - 0.5) * -60px);
    transition: -webkit-text-stroke-color 0.6s;
  }
  .svc-rows .svc-row.on .svc-text::after {
    -webkit-text-stroke-color: color-mix(in srgb, var(--c) 26%, transparent);
  }

  /* Side line through the step badges; it fills as the copy passes the midline. */
  .svc-line {
    display: block;
    position: absolute;
    left: calc(var(--pad) + 17px);
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.08);
    -webkit-mask: linear-gradient(transparent, #000 14%, #000 86%, transparent);
    mask: linear-gradient(transparent, #000 14%, #000 86%, transparent);
  }
  .svc-line i {
    position: absolute;
    inset: 0 0 auto;
    height: calc(var(--line, 0) * 100%);
    background: linear-gradient(transparent, var(--c));
    transition: background 0.6s;
  }
  .svc-line i::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: -4px;
    width: 8px;
    height: 8px;
    translate: -50% 0;
    border-radius: 50%;
    background: var(--c);
    box-shadow: 0 0 12px 2px var(--c);
  }
  /* The stage: all four illustrations share one sticky cell; only the active one shows. */
  .svc-rows .svc-art {
    grid-column: 2;
    grid-row: 1 / -1;
    position: sticky;
    top: var(--stage-top);
    align-self: start;
    z-index: 1;
    margin-bottom: 64px;
    font-size: clamp(10px, calc(0.53vw + 5.5px), 14px);
    opacity: 0;
    visibility: hidden;
    --y: 46px;
    --k: 0.95;
    transform: perspective(1400px) translateY(var(--y)) scale(var(--k))
      rotateX(calc(var(--ty, 0) * -3deg)) rotateY(calc(var(--tx, 0) * 4deg));
    transition:
      opacity 0.5s ease,
      transform 0.7s cubic-bezier(0.2, 0.7, 0.1, 1),
      visibility 0s linear 0.7s;
  }
  .svc-rows .svc-row[data-pos='before'] .svc-art {
    --y: -46px;
  }
  .svc-rows .svc-art.on {
    opacity: 1;
    visibility: visible;
    --y: 0px;
    --k: 1;
    transition:
      opacity 0.55s ease 0.12s,
      transform 0.8s cubic-bezier(0.2, 0.7, 0.1, 1) 0.12s,
      visibility 0s;
  }
  .svc-rows .svc-art.on.tilting {
    transition:
      opacity 0.55s ease,
      transform 0.25s ease-out;
  }
  /* Inside the stage: the window rises in, then the floating chips pop; chips sit closer to the pointer. */
  .svc-rows .svc-art > :is(.svc-win) {
    translate: calc(var(--tx, 0) * -6px) calc(1.6em + var(--ty, 0) * -4px);
    opacity: 0;
    transition:
      translate 0.7s cubic-bezier(0.2, 0.7, 0.1, 1),
      opacity 0.4s;
  }
  .svc-rows .svc-art > :is(.svc-chip, .svc-news) {
    translate: calc(var(--tx, 0) * 14px) calc(var(--ty, 0) * 10px);
    scale: 0.9;
    opacity: 0;
    transition:
      translate 0.5s cubic-bezier(0.2, 0.7, 0.1, 1),
      scale 0.5s cubic-bezier(0.3, 1.5, 0.5, 1),
      opacity 0.35s;
  }
  .svc-rows .svc-art.on > .svc-win {
    translate: calc(var(--tx, 0) * -6px) calc(var(--ty, 0) * -4px);
    opacity: 1;
    transition-delay: 0.22s;
  }
  .svc-rows .svc-art.on > :is(.svc-chip, .svc-news) {
    scale: 1;
    opacity: 1;
    transition-delay: 0.5s;
  }
  .svc-rows .svc-art.on.tilting > * {
    transition-delay: 0s;
    transition-duration: 0.25s;
  }

  /* Ambient light behind the stage takes the active service's colors. */
  .svc-glow {
    display: block;
    grid-column: 2;
    grid-row: 1 / -1;
    position: sticky;
    top: var(--stage-top);
    align-self: start;
    z-index: 0;
    height: var(--stage-h, 440px);
    margin: 0 -18%;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.8s;
    --g1: var(--c);
    --g2: var(--c2);
    transition:
      opacity 0.8s,
      --g1 0.9s ease,
      --g2 0.9s ease;
  }
  .svc-glow::before {
    content: '';
    position: absolute;
    inset: -40% -10%;
    filter: blur(60px);
    opacity: 0.5;
    background:
      radial-gradient(40% 45% at 72% 30%, var(--g2), transparent 70%),
      radial-gradient(45% 50% at 28% 72%, var(--g1), transparent 70%);
  }
  .svc-glow::after {
    content: '';
    position: absolute;
    inset: -30% -6%;
    opacity: 0.55;
    background-image:
      linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 34px 34px;
    -webkit-mask: radial-gradient(closest-side, #000, transparent);
    mask: radial-gradient(closest-side, #000, transparent);
  }
  .svc-rows.live .svc-glow {
    opacity: 1;
  }
  .svc-rows.live .svc-glow::before {
    animation: svc-drift 14s ease-in-out infinite alternate;
  }

  /* Progress under the stage: four clickable segments that fill as the illustration plays. */
  .svc-steps {
    display: grid;
    grid-column: 2;
    grid-row: 1 / -1;
    position: sticky;
    top: calc(var(--stage-top) + var(--stage-h, 440px) + 22px);
    align-self: start;
    z-index: 1;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: calc(var(--stage-h, 440px) + 22px);
    opacity: 0;
    transition: opacity 0.5s;
  }
  .svc-rows.live .svc-steps {
    opacity: 1;
  }
  .svc-steps button {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 4px 8px;
    padding: 6px 2px;
    border: 0;
    background: none;
    color: rgba(230, 236, 250, 0.42);
    font: 500 12.5px var(--sx-font);
    text-align: left;
    cursor: pointer;
    transition: color 0.3s;
  }
  .svc-steps span {
    color: inherit;
    font: 600 11px var(--f-mono);
    letter-spacing: 0.08em;
  }
  .svc-steps b {
    font-weight: 500;
    white-space: nowrap;
  }
  .svc-steps i {
    grid-column: 1 / -1;
    position: relative;
    height: 2px;
    overflow: hidden;
    border-radius: 2px;
    background: rgba(255, 255, 255, 0.1);
  }
  .svc-steps i::after {
    content: '';
    position: absolute;
    inset: 0;
    transform-origin: left;
    transform: scaleX(var(--p, 0));
    background: var(--c);
  }
  /* Only the running bar eases between frames; switching steps snaps the others to full or empty. */
  .svc-steps button.run i::after {
    transition: transform 0.9s linear;
  }
  .svc-steps button:hover,
  .svc-steps button[aria-current='true'] {
    color: var(--ink);
  }
  .svc-steps button[aria-current='true'] span {
    color: var(--c);
  }
  .svc-steps button:focus-visible {
    outline: 2px solid var(--c);
    outline-offset: 2px;
    border-radius: 4px;
  }
}
@keyframes svc-drift {
  to {
    translate: 4% -5%;
    scale: 1.08;
  }
}
