:root {
  color-scheme: dark;
  --ink: #f5f1e8;
  --muted: rgba(245, 241, 232, .64);
  --faint: rgba(245, 241, 232, .34);
  --line: rgba(245, 241, 232, .14);
  --gold: #d6a86a;
  --cyan: #63dfe8;
  --panel: rgba(255, 255, 255, .045);
  font-family: Arial, "PingFang SC", "Hiragino Sans GB", sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  width: 100%;
  min-height: 100%;
  background: #020307;
  color: var(--ink);
}

body {
  display: grid;
  place-items: center;
  padding: 20px;
}

html.is-embedded,
html.is-embedded body {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

html.is-embedded body {
  padding: 0;
}

html.is-embedded .kb-universe-shell {
  width: 100vw;
  height: 100vh;
}

html.is-embedded .kb-universe {
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

html.is-embedded .hero-copy {
  width: 29%;
  top: 5.9%;
}

html.is-embedded .query-console {
  width: 29%;
  bottom: 12.1%;
  padding: 16px 18px 18px;
  border: 1px solid rgba(245, 241, 232, .08);
  background: linear-gradient(135deg, rgba(0, 0, 0, .34), rgba(0, 0, 0, .08));
  backdrop-filter: blur(12px);
}

html.is-embedded .result-dock {
  width: 20.5%;
  top: 14%;
}

html.is-embedded .scene-rail {
  background: rgba(0, 0, 0, .24);
  box-shadow: 0 -18px 60px rgba(0, 0, 0, .22);
}

html.is-embedded .route-readout {
  left: 41.5%;
  bottom: 6.1%;
}

html.is-embedded.is-clean .hero-copy,
html.is-embedded.is-clean .query-console,
html.is-embedded.is-clean .result-dock,
html.is-embedded.is-clean .scene-rail,
html.is-embedded.is-clean .route-readout {
  display: none;
}

html.is-embedded.is-clean .universe-network {
  opacity: .90;
  transform: scale(1.035);
  transform-origin: 58% 50%;
}

html.is-embedded.is-clean .nebula-layer {
  opacity: .72;
  filter: blur(18px);
}

html.is-embedded.is-clean .kb-universe::before {
  opacity: .24;
}

html.is-embedded.is-clean .kb-universe::after {
  opacity: .16;
}

.kb-universe-shell {
  width: min(100vw - 40px, 3840px);
}

.kb-universe {
  --cam-shift-x: 0%;
  --cam-shift-y: 0%;
  --cam-travel-x: 0%;
  --cam-travel-y: 0%;
  --cam-scale: 1;
  --cam-depth: 0;
  --cam-perspective: 0px;
  position: relative;
  width: 100%;
  aspect-ratio: 5 / 2;
  min-height: 620px;
  overflow: hidden;
  border: 1px solid rgba(245, 241, 232, .1);
  border-radius: 8px;
  background:
    radial-gradient(circle at 58% 46%, rgba(93, 178, 190, .16), transparent 28%),
    radial-gradient(circle at 72% 58%, rgba(150, 118, 255, .15), transparent 34%),
    linear-gradient(135deg, #020307 0%, #071015 48%, #100d14 100%);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .45);
  isolation: isolate;
}

.kb-universe::before {
  content: "";
  position: absolute;
  z-index: 5;
  inset: -18%;
  pointer-events: none;
  opacity: .28;
  mix-blend-mode: screen;
  background:
    conic-gradient(from 0deg at 57% 50%, transparent 0 32deg, rgba(99, 223, 232, .22) 38deg, transparent 50deg, transparent 360deg),
    radial-gradient(circle at 57% 50%, transparent 0 18%, rgba(214, 168, 106, .06) 19%, transparent 24%);
  filter: blur(1px);
  animation: searchSweep 9s linear infinite;
}

.kb-universe::after {
  content: "";
  position: absolute;
  z-index: 5;
  inset: 0;
  pointer-events: none;
  opacity: .18;
  background:
    repeating-radial-gradient(circle at 57% 50%, transparent 0 118px, rgba(245, 241, 232, .09) 119px 120px, transparent 121px 238px);
  mix-blend-mode: screen;
}

html.is-embedded .kb-universe::before {
  opacity: .34;
}

html.is-embedded .kb-universe::after {
  opacity: .25;
  background:
    repeating-radial-gradient(ellipse at 57% 50%, transparent 0 88px, rgba(245, 241, 232, .08) 89px 90px, transparent 91px 176px),
    linear-gradient(102deg, transparent 0 42%, rgba(99, 223, 232, .08) 47%, transparent 52% 100%);
}

.universe-stars,
.universe-network,
.nebula-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.universe-stars {
  z-index: 1;
  transform:
    perspective(var(--cam-perspective))
    translate3d(calc(var(--cam-shift-x) * 0.22), calc(var(--cam-shift-y) * 0.22), 0)
    scale(calc(1 + (var(--cam-depth) * 0.018)));
  transform-origin: 56% 50%;
  transition: transform 1150ms cubic-bezier(.18, .9, .22, 1);
}

.nebula-layer {
  z-index: 2;
  pointer-events: none;
  opacity: .58;
  background:
    radial-gradient(ellipse at 60% 46%, rgba(99, 223, 232, .16), transparent 27%),
    radial-gradient(ellipse at 48% 58%, rgba(214, 168, 106, .09), transparent 32%),
    radial-gradient(ellipse at 68% 55%, rgba(184, 167, 255, .1), transparent 38%),
    conic-gradient(from 40deg at 57% 50%, transparent 0 16%, rgba(99, 223, 232, .08) 19%, transparent 24%, transparent 42%, rgba(214, 168, 106, .07) 46%, transparent 52%, transparent 72%, rgba(184, 167, 255, .08) 78%, transparent 86%);
  filter: blur(24px);
  animation: nebulaBreath 8s ease-in-out infinite alternate;
  transform:
    perspective(var(--cam-perspective))
    translate3d(calc(var(--cam-shift-x) * 0.55), calc(var(--cam-shift-y) * 0.55), 0)
    scale(calc(var(--cam-scale) + 0.022));
  transform-origin: 57% 50%;
  transition: transform 1050ms cubic-bezier(.18, .9, .22, 1), opacity 800ms ease;
}

.universe-network {
  z-index: 3;
  overflow: visible;
  filter: drop-shadow(0 0 18px rgba(99, 223, 232, .06));
  transform:
    perspective(var(--cam-perspective))
    translate3d(calc(var(--cam-shift-x) + var(--cam-travel-x) * 0.14), calc(var(--cam-shift-y) + var(--cam-travel-y) * 0.14), 0)
    scale(var(--cam-scale));
  transform-origin: 56.5% 50%;
  transition: transform 980ms cubic-bezier(.16, 1, .24, 1), filter 800ms ease;
}

.kb-universe[data-scene="scalehero"]::before {
  opacity: .42;
  animation-duration: 7.4s;
}

.kb-universe[data-scene="scalehero"]::after {
  opacity: .28;
}

.kb-universe[data-scene="scalehero"] .universe-network {
  filter:
    drop-shadow(0 0 22px rgba(99, 223, 232, .10))
    drop-shadow(0 0 44px rgba(184, 167, 255, .08));
}

.kb-universe[data-scene="fashion-map"]::before {
  opacity: .34;
  animation-duration: 8.4s;
}

.kb-universe[data-scene="fashion-map"] .universe-network {
  filter:
    drop-shadow(0 0 16px rgba(214, 168, 106, .09))
    drop-shadow(0 0 32px rgba(232, 138, 128, .08));
}

.kb-universe[data-scene="scalehero"] .result-dock {
  width: 30%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.kb-universe[data-scene="scalehero"] .result-card.primary,
.kb-universe[data-scene="scalehero"] .result-label,
.kb-universe[data-scene="scalehero"] .result-card:not(.primary):last-child {
  grid-column: 1 / -1;
}

.kb-universe[data-scene="scalehero"] .result-card.data-card b {
  font-size: clamp(26px, 1.38vw, 48px);
}

.kb-universe[data-scene="scalehero"] .result-card.data-card.primary b {
  font-size: clamp(42px, 2.2vw, 76px);
}

.kb-universe[data-scene="fashion-map"] .result-dock {
  width: 29%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.kb-universe[data-scene="fashion-map"] .result-label,
.kb-universe[data-scene="fashion-map"] .result-card.primary,
.kb-universe[data-scene="fashion-map"] .result-card:not(.primary):last-child {
  grid-column: 1 / -1;
}

.kb-universe[data-scene="fashion-map"] .result-card.data-card b {
  font-size: clamp(24px, 1.28vw, 42px);
}

.kb-universe[data-scene="fashion-map"] .result-card.data-card strong {
  font-size: clamp(13px, .8vw, 24px);
}

@media (max-width: 1560px) {
  .kb-universe[data-scene="scalehero"] .result-dock {
    width: 32%;
  }

  .kb-universe[data-scene="fashion-map"] .result-dock {
    width: 31%;
  }
}

.kb-universe.is-cam-kick .universe-network {
  animation: routePush 1.08s cubic-bezier(.14, .84, .24, 1);
}

.kb-universe.is-cam-kick .nebula-layer {
  opacity: .74;
}

.kb-universe.is-cam-kick .universe-stars {
  animation: starRush 1.08s cubic-bezier(.14, .84, .24, 1);
}

.hero-copy {
  position: absolute;
  z-index: 6;
  top: 6.5%;
  left: 3.8%;
  width: 31%;
  pointer-events: none;
}

.eyebrow {
  color: var(--gold);
  font-size: clamp(13px, .78vw, 30px);
  line-height: 1;
  letter-spacing: .18em;
  text-transform: uppercase;
  font-weight: 700;
}

h1 {
  margin: 18px 0 0;
  color: var(--ink);
  font-size: clamp(42px, 2.95vw, 114px);
  line-height: .94;
  letter-spacing: 0;
  font-weight: 260;
  text-wrap: balance;
  word-break: keep-all;
}

.hero-copy p {
  margin: 18px 0 0;
  max-width: 720px;
  color: var(--muted);
  font-size: clamp(16px, .88vw, 31px);
  line-height: 1.28;
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 18px;
  pointer-events: auto;
}

.signal-chip {
  min-height: clamp(56px, 3.8vw, 120px);
  padding: clamp(10px, .72vw, 18px);
  border: 1px solid rgba(245, 241, 232, .1);
  background: linear-gradient(160deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
}

.signal-chip span {
  display: block;
  color: rgba(214, 168, 106, .84);
  font-size: clamp(9px, .54vw, 16px);
  letter-spacing: .16em;
  text-transform: uppercase;
}

.signal-chip b {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: clamp(13px, .86vw, 26px);
  line-height: 1.04;
  font-weight: 600;
  word-break: break-word;
}

.stat-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
  pointer-events: auto;
}

.stat {
  min-width: clamp(104px, 6.6vw, 220px);
  padding: clamp(10px, .74vw, 22px);
  border-top: 2px solid rgba(214, 168, 106, .76);
  background: rgba(255, 255, 255, .032);
}

.stat b {
  display: block;
  font-family: Menlo, Consolas, monospace;
  font-size: clamp(24px, 1.48vw, 52px);
  line-height: .92;
  font-weight: 560;
}

.stat span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: clamp(11px, .62vw, 20px);
}

.scene-rail {
  position: absolute;
  z-index: 8;
  left: 3.8%;
  right: 3.8%;
  bottom: 4.6%;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, .16);
  backdrop-filter: blur(12px);
  scrollbar-width: none;
}

.scene-rail::-webkit-scrollbar {
  display: none;
}

button {
  border: 0;
  appearance: none;
  color: rgba(245, 241, 232, .58);
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.scene-rail button {
  flex: 0 0 clamp(118px, 5.1vw, 188px);
  min-height: clamp(42px, 3vw, 76px);
  padding: 0 14px;
  border-right: 1px solid rgba(245, 241, 232, .1);
  font-size: clamp(10px, .58vw, 18px);
  letter-spacing: .08em;
  text-transform: uppercase;
  text-align: left;
}

.scene-rail button:last-child {
  border-right: 0;
}

.scene-rail button.is-active {
  color: var(--ink);
  background: linear-gradient(90deg, rgba(99, 223, 232, .12), transparent);
}

.query-console {
  position: absolute;
  z-index: 8;
  left: 3.8%;
  bottom: 10.6%;
  width: min(32.5%, 1240px);
  padding: 12px;
  border: 1px solid rgba(245, 241, 232, .08);
  background: linear-gradient(145deg, rgba(0, 0, 0, .26), rgba(255, 255, 255, .025));
  backdrop-filter: blur(12px);
}

.console-label,
.result-label {
  margin-bottom: 12px;
  color: rgba(214, 168, 106, .82);
  font-size: clamp(11px, .66vw, 20px);
  letter-spacing: .18em;
  text-transform: uppercase;
}

.query-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.query-list button {
  position: relative;
  min-height: clamp(36px, 2.2vw, 56px);
  padding: 0 14px;
  border: 1px solid rgba(245, 241, 232, .16);
  border-radius: 6px;
  background: rgba(255, 255, 255, .045);
  font-size: clamp(11px, .66vw, 20px);
}

.query-brief {
  margin-top: 12px;
  border: 1px solid rgba(245, 241, 232, .08);
  background: linear-gradient(140deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .02));
  backdrop-filter: blur(10px);
}

.brief-row {
  display: flex;
  gap: 12px;
  align-items: baseline;
  padding: 12px 14px 10px;
  border-bottom: 1px solid rgba(245, 241, 232, .08);
}

.brief-row span,
.brief-card span {
  color: rgba(214, 168, 106, .82);
  font-size: clamp(9px, .52vw, 16px);
  letter-spacing: .16em;
  text-transform: uppercase;
}

.brief-row strong {
  color: rgba(245, 241, 232, .88);
  font-size: clamp(11px, .72vw, 22px);
  line-height: 1.24;
  font-weight: 560;
}

.brief-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}

.brief-card {
  min-height: clamp(60px, 4vw, 120px);
  padding: 12px 14px;
  border-right: 1px solid rgba(245, 241, 232, .08);
  border-bottom: 1px solid rgba(245, 241, 232, .08);
}

.brief-card:nth-child(2n) {
  border-right: 0;
}

.brief-card.wide {
  grid-column: 1 / -1;
  border-right: 0;
  border-bottom: 0;
}

.brief-card b {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: clamp(12px, .76vw, 24px);
  line-height: 1.2;
  font-weight: 560;
}

.logic-strip {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  grid-auto-rows: minmax(72px, auto);
  gap: 8px;
  margin-top: 12px;
}

.logic-card {
  min-height: clamp(82px, 5.8vw, 148px);
  padding: 12px 12px 14px;
  border: 1px solid rgba(245, 241, 232, .08);
  background: linear-gradient(160deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .015));
  opacity: 0;
  transform: translateY(10px);
  animation: resultIn .55s cubic-bezier(.16, 1, .3, 1) forwards;
}

.logic-card.is-lead {
  grid-column: 1;
  grid-row: 1 / span 2;
  min-height: clamp(168px, 11vw, 280px);
  padding: 14px 14px 16px;
  background: linear-gradient(160deg, rgba(255, 255, 255, .065), rgba(255, 255, 255, .025));
}

.logic-card:nth-child(2) {
  grid-column: 2 / span 2;
}

.logic-card:nth-child(3) {
  grid-column: 2;
}

.logic-card:nth-child(4) {
  grid-column: 3;
}

.logic-card:nth-child(2) { animation-delay: .05s; }
.logic-card:nth-child(3) { animation-delay: .1s; }
.logic-card:nth-child(4) { animation-delay: .15s; }

.logic-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logic-kicker span {
  color: rgba(214, 168, 106, .88);
  font-family: Menlo, Consolas, monospace;
  font-size: clamp(11px, .62vw, 18px);
  line-height: 1;
  font-weight: 600;
}

.logic-kicker i {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(99, 223, 232, .55), transparent);
}

.logic-card strong {
  display: block;
  margin-top: 10px;
  color: var(--ink);
  font-size: clamp(12px, .78vw, 24px);
  line-height: 1.16;
  font-weight: 600;
}

.logic-card.is-lead strong {
  font-size: clamp(15px, .96vw, 30px);
  line-height: 1.08;
}

.logic-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: clamp(11px, .63vw, 18px);
  line-height: 1.34;
}

.logic-card.is-lead p {
  margin-top: 10px;
  font-size: clamp(12px, .72vw, 21px);
  line-height: 1.42;
}

.query-list button.is-active {
  color: var(--ink);
  border-color: rgba(99, 223, 232, .55);
  box-shadow: 0 0 24px rgba(99, 223, 232, .12);
}

.query-list button.is-active::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 6px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99, 223, 232, .88), transparent);
  box-shadow: 0 0 14px rgba(99, 223, 232, .58);
  animation: queryPulse 1.8s ease-in-out infinite;
}

.result-dock {
  position: absolute;
  z-index: 7;
  top: 13.6%;
  right: 3.8%;
  width: 23%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.result-label {
  grid-column: 1 / -1;
}

.result-card {
  position: relative;
  min-height: clamp(92px, 6.8vw, 230px);
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(245, 241, 232, .14);
  border-radius: 8px;
  background: #0a0d10;
  opacity: 0;
  transform: translateY(18px);
  animation: resultIn .7s cubic-bezier(.16, 1, .3, 1) forwards;
}

.result-card:nth-child(3) { animation-delay: .08s; }
.result-card:nth-child(4) { animation-delay: .16s; }
.result-card:nth-child(5) { animation-delay: .24s; }
.result-card:nth-child(6) { animation-delay: .32s; }
.result-card:nth-child(7) { animation-delay: .4s; }

.result-card.primary {
  grid-column: 1 / -1;
  min-height: clamp(170px, 12.4vw, 420px);
  border-color: rgba(214, 168, 106, .46);
  box-shadow: 0 0 50px rgba(214, 168, 106, .14);
}

.result-card.data-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: clamp(120px, 7.4vw, 250px);
  padding: clamp(16px, 1vw, 28px);
  background:
    radial-gradient(circle at 80% 18%, rgba(99, 223, 232, .16), transparent 38%),
    linear-gradient(145deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .028));
}

.result-card.data-card.primary {
  min-height: clamp(170px, 12.4vw, 420px);
}

.result-card.data-card b {
  font-family: Menlo, Consolas, monospace;
  font-size: clamp(28px, 1.55vw, 58px);
  line-height: .95;
  font-weight: 560;
  color: var(--ink);
  letter-spacing: -.04em;
  overflow-wrap: anywhere;
}

.result-card.data-card.primary b {
  font-size: clamp(36px, 2.05vw, 78px);
}

.result-card.data-card strong {
  margin-top: 18px;
  font-size: clamp(14px, .86vw, 28px);
  line-height: 1.15;
  color: rgba(245, 241, 232, .86);
}

.result-card.data-card span {
  margin-top: 10px;
  color: var(--muted);
  font-size: clamp(12px, .68vw, 22px);
  line-height: 1.28;
}

.result-card img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  display: block;
  filter: saturate(.88) contrast(1.04);
}

.result-card figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 30px 16px 14px;
  color: rgba(255, 255, 255, .86);
  font-size: clamp(12px, .74vw, 24px);
  background: linear-gradient(transparent, rgba(0, 0, 0, .75));
  text-shadow: 0 1px 12px #000;
}

.route-readout {
  position: absolute;
  z-index: 6;
  left: 42%;
  bottom: 5.15%;
  width: 26%;
  color: rgba(245, 241, 232, .5);
  font-size: clamp(10px, .58vw, 18px);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.route-readout i {
  display: block;
  height: 1px;
  margin-top: 13px;
  background: linear-gradient(90deg, transparent, rgba(99, 223, 232, .86), transparent);
  box-shadow: 0 0 18px rgba(99, 223, 232, .46);
}

.cluster-ring {
  fill: none;
  stroke: rgba(245, 241, 232, .1);
  stroke-width: 1.2;
  stroke-dasharray: 4 14;
  animation: ringBreath 5.6s ease-in-out infinite;
}

.cluster-ring.outer {
  stroke: rgba(99, 223, 232, .12);
  stroke-dasharray: 1 20;
  animation-duration: 7.4s;
}

.cluster-ring.inner {
  stroke: rgba(214, 168, 106, .16);
  stroke-dasharray: 18 18;
  animation-duration: 4.8s;
}

.edge {
  stroke: rgba(245, 241, 232, .16);
  stroke-width: 1.15;
}

.ghost-edge {
  stroke: rgba(245, 241, 232, .11);
  stroke-width: 1;
  stroke-dasharray: 6 14;
  opacity: .34;
  filter: url(#softGlow);
  animation: ghostLink 5.2s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

.mesh-edge,
.cross-edge,
.trunk-edge {
  fill: none;
  stroke-linecap: round;
}

.mesh-edge {
  stroke: rgba(245, 241, 232, .18);
  stroke-width: 1.05;
  opacity: .34;
}

.mesh-edge.faint {
  stroke: rgba(245, 241, 232, .12);
  opacity: .22;
}

.mesh-edge.whisper {
  stroke: rgba(245, 241, 232, .08);
  stroke-width: .9;
  opacity: .14;
}

.cross-edge {
  stroke: rgba(245, 241, 232, .13);
  stroke-width: 1.15;
  opacity: .26;
}

.cross-edge.bold {
  stroke: rgba(245, 241, 232, .18);
  stroke-width: 1.45;
  opacity: .34;
}

.cross-edge.active {
  stroke: rgba(99, 223, 232, .28);
  stroke-width: 1.5;
  opacity: .54;
}

.trunk-edge {
  stroke: rgba(245, 241, 232, .22);
  stroke-width: 3.8;
  opacity: .26;
  filter: url(#softGlow);
}

.trunk-edge.branch {
  stroke: rgba(245, 241, 232, .16);
  stroke-width: 2.3;
  opacity: .16;
}

.route-line,
.route-halo,
.route-segment-flow {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.route-line {
  stroke: var(--cyan);
  stroke-width: 5;
  stroke-dasharray: 88 1120;
  stroke-dashoffset: 1200;
  filter: url(#softGlow);
}

.route-halo {
  stroke: rgba(99, 223, 232, .22);
  stroke-width: 34;
  opacity: 0;
  filter: blur(5px);
}

.route-segment-flow {
  stroke: rgba(214, 168, 106, .78);
  stroke-width: 2.4;
  stroke-dasharray: 1 28;
  opacity: 0;
  filter: url(#softGlow);
}

.route.is-active .route-line {
  animation: beamTravel 2.8s cubic-bezier(.3, 0, .2, 1) infinite;
}

.route.is-active .route-halo {
  animation: haloPulse 2.8s cubic-bezier(.3, 0, .2, 1) infinite;
}

.route.is-active .route-segment-flow {
  animation: segmentSpark 1.45s linear infinite;
  animation-delay: var(--delay, 0s);
}

.route.is-active .route-probe .probe-core,
.route.is-active .route-probe .probe-shell {
  animation: probeTravel 1.9s cubic-bezier(.18, .84, .22, 1) infinite;
  animation-delay: var(--delay, 0s);
  transform-origin: center;
  transform-box: fill-box;
}

.core-glow {
  fill: url(#coreGlow);
  opacity: .52;
  filter: url(#softGlow);
}

.route-probe {
  pointer-events: none;
  opacity: .92;
  filter: url(#softGlow);
  animation: probeFloat 3.2s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

.probe-core {
  fill: rgba(245, 241, 232, .22);
  stroke: rgba(99, 223, 232, .78);
  stroke-width: 3;
}

.probe-shell {
  fill: none;
  stroke: rgba(214, 168, 106, .42);
  stroke-width: 3;
  stroke-dasharray: 16 18;
  animation: probeSpin 7s linear infinite;
  transform-origin: center;
}

.node {
  cursor: pointer;
  transition: opacity .25s ease, transform .25s ease;
}

.node circle {
  stroke: rgba(255, 255, 255, .24);
  stroke-width: 1.5;
}

.node text {
  fill: rgba(245, 241, 232, .72);
  font-size: 26px;
  letter-spacing: .02em;
  paint-order: stroke;
  stroke: rgba(0, 0, 0, .72);
  stroke-width: 5px;
  stroke-linejoin: round;
  filter: drop-shadow(0 0 18px rgba(0, 0, 0, .72));
}

.node.dust text {
  fill: rgba(245, 241, 232, .52);
  font-size: 20px;
}

.node.hub text {
  font-size: 34px;
  font-weight: 700;
}

.kb-universe[data-scene="fashion-map"] .edge {
  stroke: rgba(245, 241, 232, .21);
}

.kb-universe[data-scene="fashion-map"] .mesh-edge {
  stroke: rgba(245, 241, 232, .22);
  opacity: .42;
}

.kb-universe[data-scene="fashion-map"] .cross-edge {
  stroke: rgba(245, 241, 232, .17);
  opacity: .34;
}

.kb-universe[data-scene="fashion-map"] .trunk-edge {
  stroke: rgba(245, 241, 232, .28);
  opacity: .3;
}

.node.is-hit circle:last-child,
.node:hover circle:last-child {
  stroke: rgba(245, 241, 232, .9);
  stroke-width: 3;
  filter: url(#softGlow);
}

.hit-ring {
  fill: none;
  stroke: rgba(214, 168, 106, .66);
  stroke-width: 5;
  opacity: 0;
  animation: hitRing 2.4s ease-out infinite;
}

.node:not(.is-hit) .hit-ring {
  display: none;
}

@keyframes beamTravel {
  from { stroke-dashoffset: 1200; opacity: .05; }
  18% { opacity: 1; }
  75% { opacity: 1; }
  to { stroke-dashoffset: 0; opacity: .22; }
}

@keyframes haloPulse {
  from { opacity: 0; }
  28% { opacity: .18; }
  72% { opacity: .12; }
  to { opacity: 0; }
}

@keyframes ghostLink {
  0%, 100% { opacity: .12; stroke-dashoffset: 48; }
  45% { opacity: .5; }
  70% { opacity: .22; }
  to { stroke-dashoffset: 0; }
}

@keyframes segmentSpark {
  from { opacity: 0; stroke-dashoffset: 96; }
  20% { opacity: .88; }
  78% { opacity: .68; }
  to { opacity: 0; stroke-dashoffset: 0; }
}

@keyframes probeFloat {
  0%, 100% { opacity: .62; transform: scale(.96); }
  50% { opacity: 1; transform: scale(1.055); }
}

@keyframes probeSpin {
  to { transform: rotate(360deg); }
}

@keyframes hitRing {
  from { transform: scale(.72); opacity: .58; }
  to { transform: scale(1.85); opacity: 0; }
}

@keyframes ringBreath {
  0%, 100% {
    opacity: .18;
    stroke-dashoffset: 0;
  }
  48% {
    opacity: .62;
  }
  to {
    stroke-dashoffset: -80;
  }
}

@keyframes resultIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes routePush {
  0% {
    transform:
      perspective(var(--cam-perspective))
      translate3d(calc(var(--cam-shift-x) + var(--cam-travel-x) * -0.18), calc(var(--cam-shift-y) + var(--cam-travel-y) * -0.18), 0)
      scale(calc(var(--cam-scale) - 0.02));
  }
  55% {
    transform:
      perspective(var(--cam-perspective))
      translate3d(calc(var(--cam-shift-x) + var(--cam-travel-x) * 0.22), calc(var(--cam-shift-y) + var(--cam-travel-y) * 0.22), 0)
      scale(calc(var(--cam-scale) + 0.018));
  }
  100% {
    transform:
      perspective(var(--cam-perspective))
      translate3d(calc(var(--cam-shift-x) + var(--cam-travel-x) * 0.14), calc(var(--cam-shift-y) + var(--cam-travel-y) * 0.14), 0)
      scale(var(--cam-scale));
  }
}

@keyframes starRush {
  0% {
    transform:
      perspective(var(--cam-perspective))
      translate3d(calc(var(--cam-shift-x) * -0.12), calc(var(--cam-shift-y) * -0.12), 0)
      scale(1);
    opacity: .96;
  }
  45% {
    transform:
      perspective(var(--cam-perspective))
      translate3d(calc(var(--cam-shift-x) * 0.35), calc(var(--cam-shift-y) * 0.35), 0)
      scale(calc(1 + (var(--cam-depth) * 0.04)));
    opacity: 1;
  }
  100% {
    transform:
      perspective(var(--cam-perspective))
      translate3d(calc(var(--cam-shift-x) * 0.22), calc(var(--cam-shift-y) * 0.22), 0)
      scale(calc(1 + (var(--cam-depth) * 0.018)));
    opacity: 1;
  }
}

@keyframes probeTravel {
  0%, 100% {
    transform: scale(.9);
    opacity: .52;
  }
  50% {
    transform: scale(1.16);
    opacity: 1;
  }
}

@keyframes nebulaBreath {
  from {
    opacity: .46;
    transform: scale(1) rotate(0deg);
  }
  to {
    opacity: .72;
    transform: scale(1.045) rotate(1.5deg);
  }
}

@keyframes searchSweep {
  to {
    transform: rotate(360deg);
  }
}

@keyframes queryPulse {
  0%, 100% { opacity: .32; transform: scaleX(.62); }
  50% { opacity: 1; transform: scaleX(1); }
}

@media (max-width: 1100px) {
  body {
    padding: 0;
  }

  .kb-universe-shell {
    width: 100vw;
  }

  .kb-universe {
    min-height: 720px;
    border-radius: 0;
  }

  .hero-copy {
    width: 50%;
  }

  .result-dock {
    width: 30%;
  }

  .query-console {
    width: 42%;
  }
}
