.project-story--ourvex .project-story__hero {
  background:
    radial-gradient(circle at 22% 24%, rgb(71 125 155 / 22%), transparent 30%),
    linear-gradient(145deg, #20384a 0%, #142633 56%, #0d1b25 100%);
}

.project-story--ourvex .project-story__art::before {
  background:
    radial-gradient(circle at 78% 16%, rgb(226 159 54 / 19%), transparent 22%),
    linear-gradient(125deg, transparent 46%, rgb(113 185 211 / 10%) 46.2%, transparent 46.5%);
}

.project-story--ourvex .project-story__transition path {
  fill: #101e29;
}

.project-story__content-stage--ourvex {
  position: relative;
  padding: clamp(52px, 7vw, 100px) 0 clamp(80px, 10vw, 150px);
  overflow: hidden;
  background:
    radial-gradient(circle at 9% 18%, rgb(81 157 189 / 11%), transparent 28%),
    radial-gradient(circle at 91% 38%, rgb(218 151 47 / 9%), transparent 24%),
    #101e29;
}

.project-story__content-stage--ourvex::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgb(125 177 201 / 4%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(125 177 201 / 4%) 1px, transparent 1px);
  background-size: 54px 54px;
  content: "";
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
  pointer-events: none;
}

.ourvex-lab {
  position: relative;
  z-index: 1;
  color: #e7eef1;
}

.ourvex-lab__header {
  max-width: 820px;
  margin: 0 auto clamp(34px, 5vw, 62px);
  text-align: center;
}

.ourvex-lab__header h2 {
  margin: 0;
  color: #fff;
  font-family: var(--font-display, Georgia, serif);
  font-size: clamp(2.7rem, 6.5vw, 6.2rem);
  font-weight: 400;
  line-height: .95;
  letter-spacing: -.045em;
}

.ourvex-lab__header > p:last-child {
  max-width: 680px;
  margin: 24px auto 0;
  color: #aebfc8;
  font-size: clamp(1rem, 1.7vw, 1.28rem);
  line-height: 1.65;
}

.ourvex-lab__dashboard {
  display: grid;
  grid-template-columns: minmax(250px, .72fr) minmax(0, 2fr);
  gap: clamp(16px, 2.4vw, 32px);
  align-items: stretch;
}

.ourvex-qa,
.ourvex-network {
  border: 1px solid rgb(130 177 198 / 22%);
  background: rgb(20 40 53 / 88%);
  box-shadow: 0 32px 90px rgb(0 0 0 / 24%);
  backdrop-filter: blur(18px);
}

.ourvex-qa {
  display: flex;
  min-height: 660px;
  padding: clamp(24px, 3vw, 36px);
  flex-direction: column;
}

.ourvex-qa__questions {
  display: grid;
  gap: 10px;
}

.ourvex-qa__questions button {
  position: relative;
  min-height: 64px;
  padding: 15px 18px 15px 42px;
  border: 1px solid rgb(133 174 192 / 24%);
  background: rgb(255 255 255 / 2%);
  color: #dce7eb;
  cursor: pointer;
  font: inherit;
  font-size: .93rem;
  font-weight: 700;
  line-height: 1.45;
  text-align: start;
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.ourvex-qa__questions button::after {
  position: absolute;
  inset: 50% auto auto 16px;
  color: #688b9b;
  content: "+";
  font-size: 1.3rem;
  transform: translateY(-50%);
}

.ourvex-qa__questions button:hover,
.ourvex-qa__questions button:focus-visible {
  border-color: rgb(224 161 59 / 70%);
  color: #fff;
  transform: translateY(-2px);
}

.ourvex-qa__questions button[aria-pressed="true"] {
  border-color: #e0a13b;
  background: rgb(224 161 59 / 11%);
  color: #fff3dc;
}

.ourvex-qa__questions button[aria-pressed="true"]::after {
  color: #e0a13b;
  content: "";
}

.ourvex-qa__answer {
  min-height: 180px;
  margin-top: 22px;
  padding: 22px;
  border-inline-start: 2px solid #e0a13b;
  background: linear-gradient(110deg, rgb(224 161 59 / 10%), transparent 80%);
}

.ourvex-qa__answer span {
  display: block;
  margin-bottom: 9px;
  color: #e8ac4b;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.ourvex-qa__answer p {
  margin: 0;
  color: #c5d3d9;
  font-size: .96rem;
  line-height: 1.72;
}

.ourvex-qa__replay {
  display: inline-flex;
  min-height: 50px;
  margin-top: auto;
  padding: 12px 17px;
  gap: 9px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgb(128 184 207 / 38%);
  background: transparent;
  color: #a9c8d6;
  cursor: pointer;
  font: inherit;
  font-size: .82rem;
  font-weight: 700;
  transition: background-color 180ms ease, color 180ms ease;
}

.ourvex-qa__replay:hover,
.ourvex-qa__replay:focus-visible {
  background: rgb(112 185 213 / 10%);
  color: #fff;
}

.ourvex-qa__replay span {
  font-size: 1.15rem;
}

.ourvex-network {
  min-width: 0;
  padding: clamp(18px, 2.5vw, 28px);
}

.ourvex-network__header,
.ourvex-network__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.ourvex-network__header {
  padding-bottom: 18px;
  border-bottom: 1px solid rgb(130 177 198 / 18%);
}

.ourvex-network__header div {
  display: grid;
  gap: 4px;
}

.ourvex-network__header strong {
  color: #edf5f7;
  font-size: 1rem;
}

.ourvex-network__canvas {
  position: relative;
  display: grid;
  min-height: 520px;
  padding: 28px 0;
  grid-template-columns: minmax(145px, 1fr) minmax(160px, .82fr) minmax(145px, 1fr);
  grid-template-rows: auto minmax(170px, 1fr) auto;
  gap: 18px clamp(12px, 2vw, 24px);
  align-items: center;
}

.ourvex-network__routes {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.ourvex-network__routes path {
  fill: none;
  stroke: rgb(96 151 175 / 30%);
  stroke-width: 1.3;
  vector-effect: non-scaling-stroke;
  transition: stroke 220ms ease, opacity 220ms ease, stroke-width 220ms ease;
}

.ourvex-network__routes path.is-active {
  stroke: #e0a13b;
  stroke-dasharray: 4 11;
  stroke-linecap: round;
  stroke-width: 2.2;
  filter: drop-shadow(0 0 5px rgb(224 161 59 / 78%));
  animation: ourvex-route-flow .72s linear infinite;
}

.ourvex-network__routes path.is-blocked {
  stroke: #69bdd4;
  stroke-dasharray: 2 8;
  opacity: .45;
}

.ourvex-workload,
.ourvex-core,
.ourvex-machine {
  position: relative;
  z-index: 1;
}

.ourvex-workload {
  display: grid;
  grid-area: 1 / 2;
  min-width: 168px;
  padding: 13px 16px;
  justify-self: center;
  border: 1px solid rgb(224 161 59 / 42%);
  background: #172c3a;
  box-shadow: 0 12px 30px rgb(0 0 0 / 22%);
  text-align: center;
}

.ourvex-workload::after {
  position: absolute;
  inset: auto 50% -8px auto;
  width: 14px;
  height: 14px;
  border-right: 1px solid rgb(224 161 59 / 42%);
  border-bottom: 1px solid rgb(224 161 59 / 42%);
  background: #172c3a;
  content: "";
  transform: translateX(50%) rotate(45deg);
}

.ourvex-workload span,
.ourvex-workload small {
  color: #8ba8b5;
  font-size: .62rem;
}

.ourvex-workload strong {
  margin: 4px 0;
  color: #f4d59e;
  font-size: .82rem;
}

.ourvex-workload.is-routing {
  animation: ourvex-workload-pulse 900ms ease both;
}

.ourvex-machine {
  display: grid;
  width: 100%;
  min-height: 98px;
  padding: 14px;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  gap: 8px 11px;
  align-items: center;
  border: 1px solid rgb(125 171 191 / 23%);
  background: rgb(26 50 66 / 92%);
  color: #dfe9ed;
  cursor: pointer;
  font: inherit;
  text-align: start;
  transition: border-color 220ms ease, background-color 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.ourvex-machine:hover,
.ourvex-machine:focus-visible {
  border-color: rgb(126 190 216 / 60%);
  transform: translateY(-2px);
}

.ourvex-machine--render { grid-area: 2 / 1; }
.ourvex-machine--office { grid-area: 2 / 3; }
.ourvex-machine--build { grid-area: 3 / 1; }
.ourvex-machine--admin { grid-area: 3 / 3; }

.ourvex-machine__icon {
  display: grid;
  width: 34px;
  aspect-ratio: 1;
  grid-row: 1 / 3;
  place-items: center;
  border: 1px solid rgb(224 161 59 / 42%);
  color: #e0a13b;
  font-family: ui-monospace, monospace;
}

.ourvex-machine__copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.ourvex-machine__copy strong {
  overflow: hidden;
  font-size: .8rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ourvex-machine__copy small,
.ourvex-machine__value {
  color: #7899a8;
  font-size: .61rem;
}

.ourvex-machine__value {
  color: #a8c3ce;
  font-family: ui-monospace, monospace;
}

.ourvex-machine__meter {
  height: 3px;
  grid-column: 2 / 4;
  overflow: hidden;
  background: rgb(255 255 255 / 8%);
}

.ourvex-machine__meter i {
  display: block;
  width: var(--usage);
  height: 100%;
  background: #65bad2;
  transition: width 500ms ease, background-color 220ms ease;
}

.ourvex-machine[data-state="busy"] .ourvex-machine__meter i {
  background: #e0a13b;
}

.ourvex-machine[data-state="protected"] .ourvex-machine__meter i {
  background: #7895a3;
}

.ourvex-machine.is-target {
  border-color: #e0a13b;
  background: rgb(224 161 59 / 11%);
  box-shadow: 0 0 0 1px rgb(224 161 59 / 16%), 0 18px 42px rgb(0 0 0 / 25%);
  transform: translateY(-3px);
}

.ourvex-machine.is-target .ourvex-machine__meter i {
  background: #e0a13b;
}

.ourvex-machine.is-avoided {
  border-color: rgb(105 189 212 / 48%);
  opacity: .68;
}

.ourvex-machine.is-avoided::after {
  position: absolute;
  inset: 8px auto auto 8px;
  padding: 3px 6px;
  border: 1px solid rgb(105 189 212 / 42%);
  background: #142936;
  color: #79c2d7;
  content: "לא נוגעים";
  font-size: .54rem;
  font-weight: 800;
}

.ourvex-machine.is-inspected {
  outline: 2px solid rgb(255 255 255 / 60%);
  outline-offset: 3px;
}

.ourvex-core {
  display: grid;
  width: clamp(142px, 14vw, 182px);
  aspect-ratio: 1;
  grid-area: 2 / 2;
  padding: 22px;
  justify-self: center;
  place-content: center;
  border: 1px solid rgb(224 161 59 / 62%);
  border-radius: 50%;
  background: radial-gradient(circle, #203c4f 0 38%, #172d3b 39% 100%);
  box-shadow: 0 0 0 12px rgb(95 151 176 / 6%), 0 0 0 24px rgb(95 151 176 / 4%);
  text-align: center;
}

.ourvex-core::before {
  position: absolute;
  inset: 13px;
  border: 1px dashed rgb(111 179 207 / 35%);
  border-radius: 50%;
  content: "";
  animation: ourvex-spin 18s linear infinite;
}

.ourvex-core strong {
  color: #fff;
  font-size: clamp(.88rem, 1.4vw, 1.12rem);
  letter-spacing: .04em;
}

.ourvex-core small {
  margin-top: 4px;
  color: #77a9bd;
  font-size: .52rem;
}

.ourvex-core em {
  margin-top: 9px;
  color: #e0a13b;
  font-size: .58rem;
  font-style: normal;
  font-weight: 800;
}

.ourvex-core__orbit {
  position: absolute;
  inset: 0;
  animation: ourvex-spin 12s linear infinite;
}

.ourvex-core__orbit i {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e0a13b;
  box-shadow: 0 0 8px #e0a13b;
}

.ourvex-core__orbit i:first-child { inset: -4px 50% auto auto; }
.ourvex-core__orbit i:nth-child(2) { inset: auto 10% 9% auto; background: #68bed5; box-shadow: 0 0 8px #68bed5; }
.ourvex-core__orbit i:nth-child(3) { inset: 46% auto auto -4px; }

.ourvex-core.is-routing {
  animation: ourvex-core-pulse 900ms ease both;
}

.ourvex-network__footer {
  min-height: 54px;
  padding-top: 15px;
  border-top: 1px solid rgb(130 177 198 / 18%);
  color: #7796a4;
  font-size: .62rem;
}

.ourvex-network__footer p {
  display: flex;
  margin: 0;
  gap: 7px;
  align-items: center;
}

.ourvex-network__footer p span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.ourvex-network__footer .is-route { background: #e0a13b; box-shadow: 0 0 7px #e0a13b; }
.ourvex-network__footer .is-protected { border: 1px solid #69bdd4; }

.ourvex-network__footer strong {
  color: #d9e6ea;
  font-size: .68rem;
  text-align: end;
}

.project-story__layout--ourvex {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 48px), 880px);
  max-width: 880px;
  margin-top: clamp(54px, 8vw, 100px);
  padding: clamp(48px, 6vw, 78px) clamp(32px, 5vw, 64px) clamp(72px, 9vw, 110px);
  border: 1px solid rgb(255 255 255 / 24%);
  border-radius: 26px;
  background: #f2efe8;
  color: #17211d;
  box-shadow: 0 36px 110px rgb(0 0 0 / 32%);
}

@keyframes ourvex-route-flow {
  to { stroke-dashoffset: -30; }
}

@keyframes ourvex-spin {
  to { transform: rotate(360deg); }
}

@keyframes ourvex-workload-pulse {
  45% { border-color: #ffe0a8; box-shadow: 0 0 28px rgb(224 161 59 / 42%); transform: translateY(4px); }
}

@keyframes ourvex-core-pulse {
  50% { box-shadow: 0 0 0 16px rgb(224 161 59 / 10%), 0 0 0 34px rgb(95 151 176 / 7%); }
}

@media (max-width: 1080px) {
  .ourvex-lab__dashboard {
    grid-template-columns: 1fr;
  }

  .ourvex-qa {
    min-height: 0;
  }

  .ourvex-qa__questions {
    grid-template-columns: repeat(3, 1fr);
  }

  .ourvex-qa__answer {
    min-height: 0;
  }

  .ourvex-qa__replay {
    margin-top: 20px;
  }
}

@media (max-width: 700px) {
  .project-story__content-stage--ourvex {
    padding-top: 38px;
  }

  .ourvex-lab {
    width: min(calc(100% - 24px), 100%);
  }

  .ourvex-lab__header {
    margin-bottom: 30px;
  }

  .ourvex-qa,
  .ourvex-network {
    padding: 18px;
  }

  .ourvex-qa__questions {
    grid-template-columns: 1fr;
  }

  .ourvex-network__header {
    align-items: flex-start;
  }

  .ourvex-network__canvas {
    min-height: 660px;
    padding-block: 24px;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 190px auto auto;
    gap: 13px;
  }

  .ourvex-workload { grid-area: 1 / 1 / 2 / 3; }
  .ourvex-core { grid-area: 2 / 1 / 3 / 3; }
  .ourvex-machine--render { grid-area: 3 / 1; }
  .ourvex-machine--office { grid-area: 3 / 2; }
  .ourvex-machine--build { grid-area: 4 / 1; }
  .ourvex-machine--admin { grid-area: 4 / 2; }

  .ourvex-machine {
    min-height: 118px;
    padding: 12px;
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .ourvex-machine__icon {
    width: 30px;
  }

  .ourvex-machine__value {
    display: none;
  }

  .ourvex-machine__meter {
    grid-column: 1 / 3;
  }

  .ourvex-machine.is-avoided::after {
    inset: auto auto 8px 8px;
  }

  .ourvex-network__footer {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .ourvex-network__footer strong {
    grid-column: 1 / 3;
    text-align: start;
  }

  .project-story__layout--ourvex {
    width: min(calc(100% - 24px), 880px);
    margin-top: 46px;
    padding: 42px 22px 76px;
    border-radius: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ourvex-lab *,
  .ourvex-lab *::before,
  .ourvex-lab *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

html[data-a11y-motion="stopped"] .ourvex-lab *,
html[data-a11y-motion="stopped"] .ourvex-lab *::before,
html[data-a11y-motion="stopped"] .ourvex-lab *::after {
  animation: none !important;
  transition: none !important;
}
