.capgrid.four {
  grid-template-columns: repeat(4, 1fr);
}
.cap-svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.cap-eg {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--brand-line);
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
}
.cap-eg strong {
  color: var(--brand-ink);
}
.cap-problem {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
  margin: 0 0 14px;
  padding-bottom: 14px;
  border-bottom: 1px dashed var(--line);
}
.cap-problem strong {
  color: var(--ink);
}
.cap-problem-l {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-inline-end: 4px;
}
@media (max-width: 1100px) {
  .capgrid.four {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 760px) {
  .capgrid.four {
    grid-template-columns: 1fr;
  }
}
.hero-video {
  display: block;
  width: 100%;
  max-width: 680px;
  height: auto;
  aspect-ratio: 5 / 4;
  margin-inline: auto;
  border-radius: var(--r-lg, 16px);
  background: #05070d;
  box-shadow: 0 24px 64px rgba(8, 18, 60, 0.45);
}

/* hero animation: live canvas in the video's box */
.hero-anim {
  position: relative;
  overflow: hidden;
}
.hero-anim canvas {
  display: block;
  width: 100%;
  height: 100%;
}
.ha-bar {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transition: opacity 0.2s;
}
/* controls appear like a video embed: on hover, keyboard focus or while paused; always on touch screens */
.hero-anim:hover .ha-bar,
.hero-anim:focus-within .ha-bar,
.hero-anim.is-paused .ha-bar {
  opacity: 1;
}
@media (hover: none) {
  .ha-bar {
    opacity: 1;
  }
}
.ha-btn {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 10px;
  background: rgba(8, 11, 18, 0.6);
  color: #e6edf3;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.15s, border-color 0.15s;
}
.ha-btn:hover,
.ha-btn:focus-visible {
  opacity: 1;
  border-color: #2dd4bf;
}
.ha-btn:focus-visible {
  outline: 2px solid #2dd4bf;
  outline-offset: 2px;
}
.ha-btn:active {
  transform: scale(0.94);
}
.ha-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}
.ha-btn .ha-play,
.hero-anim.is-paused .ha-pause {
  display: none;
}
.hero-anim.is-paused .ha-play {
  display: inline;
}
.ha-seek {
  flex: 1;
  min-width: 0;
  height: 6px;
  margin: 0;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 999px;
  cursor: pointer;
  opacity: 0.75;
  background: linear-gradient(90deg, #2dd4bf 0%, #6b74f8 var(--pct, 0%), rgba(255, 255, 255, 0.16) var(--pct, 0%));
  transition: opacity 0.15s;
}
.ha-seek:hover,
.ha-seek:focus-visible {
  opacity: 1;
}
.ha-seek:focus-visible {
  outline: 2px solid #2dd4bf;
  outline-offset: 4px;
}
.ha-seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #e6edf3;
  border: 3px solid #2dd4bf;
  cursor: grab;
}
.ha-seek::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #e6edf3;
  border: 3px solid #2dd4bf;
  cursor: grab;
}
.ha-seek:active::-webkit-slider-thumb {
  cursor: grabbing;
}

[dir="rtl"] .ha-seek {
  direction: ltr; /* timeline runs left to right, as in most video players, even on RTL pages */
}
