section.block.services { padding-bottom: calc(24vh + 72px); }
.cap-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
  margin-top: clamp(48px, 7vw, 88px);
}
@media (min-width: 900px) {
  .cap-grid { grid-template-columns: repeat(3, 1fr); gap: 28px; }
}
.cap { display: grid; gap: 24px; align-content: start; }
.cap-obj {
  position: relative;
  aspect-ratio: 4 / 3;
}
.cap-num {
  margin: 0 0 8px;
  font-family: var(--mono-font);
  font-size: 12px;
  color: var(--accent);
}
.cap-title {
  margin: 0 0 10px;
  font-weight: 700;
  font-size: clamp(24px, 2.2vw, 30px);
  letter-spacing: normal;
  line-height: 1.1;
}
.cap-text { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.6; max-width: 420px; }

.cap-proto { display: flex; flex-direction: column; }
.proto-screen {
  position: relative;
  flex: 1;
  margin: 12px;
}
.pb {
  position: absolute;
  border-radius: 6px;
  background: color-mix(in srgb, var(--text) 8%, transparent);
  transition:
    left .7s var(--ease-spring), top .7s var(--ease-spring),
    width .7s var(--ease-spring), height .7s var(--ease-spring),
    background-color .5s ease;
}
.proto-screen[data-state="a"] .pb-1 { left: 0;   top: 0;   width: 100%; height: 44%; background: color-mix(in srgb, var(--c-violet) 22%, transparent); }
.proto-screen[data-state="a"] .pb-2 { left: 0;   top: 52%; width: 31%;  height: 30%; }
.proto-screen[data-state="a"] .pb-3 { left: 34.5%; top: 52%; width: 31%; height: 30%; }
.proto-screen[data-state="a"] .pb-4 { left: 69%; top: 52%; width: 31%;  height: 30%; }
.proto-screen[data-state="a"] .pb-5 { left: 0;   top: 88%; width: 40%;  height: 8%; }
.proto-screen[data-state="b"] .pb-1 { left: 0;   top: 0;   width: 26%;  height: 100%; background: color-mix(in srgb, var(--c-green) 22%, transparent); }
.proto-screen[data-state="b"] .pb-2 { left: 31%; top: 0;   width: 69%;  height: 22%; }
.proto-screen[data-state="b"] .pb-3 { left: 31%; top: 27%; width: 69%;  height: 22%; }
.proto-screen[data-state="b"] .pb-4 { left: 31%; top: 54%; width: 69%;  height: 22%; }
.proto-screen[data-state="b"] .pb-5 { left: 31%; top: 88%; width: 30%;  height: 8%; }
.proto-btn {
  position: absolute;
  right: 0; bottom: 0;
  padding: 5px 12px;
  border-radius: 99px;
  background: var(--text);
  color: var(--bg);
  font-size: 11px;
  font-weight: 600;
  transition: transform .15s ease;
}
.proto-screen[data-cursor="click"] .proto-btn { transform: scale(.9); }
.proto-cursor {
  position: absolute;
  left: 30%; top: 34%;
  transition: left .8s var(--ease-spring), top .8s var(--ease-spring);
  z-index: 3;
}
.proto-cursor svg { transition: transform .12s ease; }
.proto-screen[data-cursor="aim"] .proto-cursor,
.proto-screen[data-cursor="click"] .proto-cursor { left: calc(100% - 34px); top: calc(100% - 10px); }
.proto-screen[data-cursor="click"] .proto-cursor svg { transform: scale(.82); }
.proto-screen[data-cursor="rest"] .proto-cursor { left: 58%; top: 62%; }

.cap-code { display: flex; flex-direction: column; }
.code-split {
  flex: 1;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  min-height: 0;
}
.code-split pre {
  margin: 0;
  padding: 12px 10px 12px 14px;
  font-family: var(--mono-font);
  font-size: clamp(9px, .75vw, 11px);
  line-height: 1.65;
  color: var(--muted);
  white-space: pre;
  overflow: hidden;
  border-right: 1px solid var(--border);
}
.code-split .k { color: var(--c-violet); }
.code-split .f { color: var(--c-blue); }
.code-split .n { color: var(--c-orange); }
.code-canvas { width: 100%; height: 100%; display: block; }

.cap-board {
  border-radius: 14px;
  border: 1px dashed var(--selection);
  background: color-mix(in srgb, var(--tile) 40%, transparent);
}
.board-links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.board-links path {
  fill: none;
  stroke: var(--muted-2);
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
  vector-effect: non-scaling-stroke;
}
.sticky {
  position: absolute;
  width: 36%;
  aspect-ratio: 1.15;
  padding: 10px 11px;
  border-radius: 3px;
  background: var(--note);
  color: #1d1a12;
  font-size: clamp(11px, .95vw, 13px);
  font-weight: 600;
  line-height: 1.3;
  transform: rotate(var(--r));
  box-shadow: 0 1px 1px rgba(0, 0, 0, .08), 0 10px 20px -12px rgba(0, 0, 0, .35);
  transition: transform .35s var(--ease-spring), box-shadow .35s ease;
}
.sticky.big { width: 40%; font-size: clamp(12px, 1.05vw, 15px); z-index: 2; }
@media (hover: hover) {
  .cap-board .sticky:hover {
    transform: rotate(0deg) translateY(-6px) scale(1.04);
    box-shadow: 0 1px 1px rgba(0, 0, 0, .08), 0 22px 30px -14px rgba(0, 0, 0, .4);
    z-index: 3;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .cap-board .sticky { animation: sticky-sway 6s ease-in-out infinite; animation-delay: calc(var(--i) * -1.3s); }
  .cap-board .sticky:hover { animation: none; }
}
@keyframes sticky-sway {
  50% { transform: rotate(calc(var(--r) * -0.4)) translateY(-2px); }
}
