.scene--embeddings .scene-header {
  z-index: 6;
}

.embeddings-scene {
  overflow: hidden;
}

.embeddings-scene__stage {
  isolation: isolate;
}

.embeddings-scene__field,
.embeddings-scene__links {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.embeddings-scene__field {
  z-index: 0;
}

.embeddings-scene__stage .tech-depth-scene__gl {
  position: relative;
  z-index: 2;
}

.embeddings-scene__field-grid {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(900px, calc(100% - 92px));
  height: min(580px, calc(100% - 132px));
  transform: translate(-50%, -50%);
  border-radius: 34px;
  border: 1px solid rgba(108, 202, 255, 0.12);
  background:
    radial-gradient(circle at 50% 45%, rgba(90, 203, 255, 0.08), transparent 36%),
    linear-gradient(180deg, rgba(7, 15, 26, 0.52), rgba(6, 12, 21, 0.22));
  box-shadow:
    inset 0 0 0 1px rgba(76, 196, 255, 0.04),
    inset 0 0 50px rgba(47, 129, 181, 0.06);
  backdrop-filter: blur(4px);
}

.embeddings-scene__field-grid::before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 26px;
  border: 1px dashed rgba(141, 219, 255, 0.07);
  opacity: 0.9;
}

.embeddings-scene__axis {
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  box-shadow: 0 0 22px rgba(102, 221, 255, 0.12);
  opacity: 0.9;
}

.embeddings-scene__axis--x {
  width: calc(100% - 80px);
  height: 2px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(132, 226, 255, 0.9), rgba(255, 255, 255, 0));
}

.embeddings-scene__axis--y {
  width: 2px;
  height: calc(100% - 80px);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(132, 226, 255, 0.9), rgba(255, 255, 255, 0));
}

.embeddings-scene__axis-label {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(6, 15, 28, 0.62);
  border: 1px solid rgba(130, 216, 255, 0.12);
  color: rgba(221, 244, 255, 0.76);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.embeddings-scene__axis-label--posx {
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
}

.embeddings-scene__axis-label--negx {
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
}

.embeddings-scene__axis-label--posy {
  left: 50%;
  top: 14px;
  transform: translateX(-50%);
}

.embeddings-scene__axis-label--negy {
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
}

.embeddings-scene__links {
  z-index: 3;
}

.embeddings-scene__link {
  position: absolute;
  display: block;
  opacity: 0;
  transform-origin: left center;
  transform: scaleX(var(--line-progress, 0));
  border-radius: 999px;
  filter: drop-shadow(0 0 18px rgba(78, 198, 255, 0.12));
}

.embeddings-scene__link::before {
  content: "";
  position: absolute;
  inset: -10px;
  border-radius: inherit;
  background: inherit;
  filter: blur(16px);
  opacity: 0.35;
}

.embeddings-scene__link--dog-cat {
  top: 334px;
  left: calc(50% - 128px);
  width: 282px;
  height: 3px;
  background: linear-gradient(90deg, rgba(92, 188, 255, 0.08), rgba(92, 188, 255, 0.92), rgba(118, 255, 236, 0.82));
  transform: rotate(131deg) scaleX(var(--line-progress, 0));
}

.embeddings-scene__link--dog-wolf {
  top: 334px;
  left: calc(50% - 128px);
  width: 333px;
  height: 3px;
  background: linear-gradient(90deg, rgba(118, 255, 236, 0.06), rgba(118, 255, 236, 0.9), rgba(92, 188, 255, 0.76));
  transform: rotate(41deg) scaleX(var(--line-progress, 0));
}

.embeddings-scene__link--dog-car {
  top: 334px;
  left: calc(50% - 128px);
  width: 520px;
  height: 2px;
  background: linear-gradient(90deg, rgba(116, 156, 255, 0.04), rgba(116, 156, 255, 0.28), rgba(116, 156, 255, 0.03));
  transform: rotate(-18deg) scaleX(var(--line-progress, 0));
}

.embedding-query-card,
.embedding-answer-card {
  color: #edf9ff;
}

.embedding-query-card {
  width: 520px;
  min-height: 150px;
  padding: 18px 22px;
  border-radius: 22px;
  border: 1px solid rgba(108, 202, 255, 0.14);
  background:
    linear-gradient(180deg, rgba(10, 18, 28, 0.94), rgba(6, 12, 21, 0.97)),
    radial-gradient(circle at top right, rgba(76, 196, 255, 0.06), transparent 40%);
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.embedding-query-card__eyebrow,
.embedding-answer-card__eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #74ddff;
}

.embedding-query-card__text {
  margin-top: 12px;
  font-size: 34px;
  line-height: 1.04;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.embedding-query-card__meta {
  margin-top: 10px;
  color: rgba(227, 240, 255, 0.7);
  font-size: 14px;
}

.embedding-answer-card {
  width: 430px;
  min-height: 128px;
  padding: 18px 22px;
  border-radius: 22px;
  border: 1px solid rgba(118, 255, 236, 0.14);
  background:
    linear-gradient(180deg, rgba(10, 18, 28, 0.94), rgba(6, 12, 21, 0.97)),
    radial-gradient(circle at top right, rgba(118, 255, 236, 0.06), transparent 40%);
  box-shadow:
    0 22px 60px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.embedding-answer-card__title {
  margin-top: 10px;
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.embedding-answer-card__list {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.embedding-answer-card__list span {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(232, 246, 255, 0.86);
  font-size: 13px;
}

.embedding-answer-card.is-active .embedding-answer-card__list span:nth-child(-n+2) {
  border-color: rgba(118, 255, 236, 0.16);
  color: #b4fff0;
  box-shadow: 0 0 16px rgba(118, 255, 236, 0.06);
}
