/* "Our vision for AI" on the home page (redesign 2026-12-02, "cipher wheels"). Two cipher disks turn around AI and AGI,
   one in Arabic letters and one in Latin letters and digits, with an inner ring of digits and symbols. A rain of letters,
   digits and maths symbols falls behind them, a hidden word surfaces from the noise every few seconds (vision-cipher.js
   draws both on the canvas), a scan line sweeps the card, hex packets run along the path and OUR VISION scrambles and
   resolves. Motion only when the visitor allows it, and paused while the card is off screen. Base card: ai-card.css. */
.vision.cipher { --cw-mono: Consolas, "Cascadia Mono", ui-monospace, "Courier New", monospace; border-color: #70d8ff33; }
.cw-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.cw-code { display: inline-block; min-width: 21ch; font-family: var(--cw-mono); letter-spacing: 1.5px; }
.cw-field { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; }
.cw-scan { position: absolute; top: 0; bottom: 0; left: -20%; width: 160px; z-index: -1; pointer-events: none; opacity: 0;
  background: linear-gradient(90deg, transparent, #70d8ff10 38%, #a5e8ff4d 50%, #70d8ff10 62%, transparent); }
.cw-scan::after { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; width: 1px; background: #bff1ff; box-shadow: 0 0 12px #70d8ff, 0 0 26px #70d8ff; }

/* the path between AI and AGI, now with the two disks */
.cipher .cw-path { height: 236px; }
.cipher .vision-track { inset-inline: 98px; }
.cipher .vision-node b { z-index: 2; width: 84px; height: 84px; font-size: 21px; box-shadow: 0 0 0 7px #071731, 0 0 30px #70d8ff55; }
.cipher .v-agi b { width: 96px; height: 96px; font-size: 23px; box-shadow: 0 0 0 7px #071731, 0 0 40px #f3c77a66; }
.cipher .vision-node small { z-index: 2; margin-top: 36px; }
.cw-wheel { position: absolute; left: 50%; top: 50%; width: 156px; height: 156px; margin: -78px; border-radius: 50%; border: 1px dashed #70d8ff59; }
.cw-wheel.in { width: 118px; height: 118px; margin: -59px; border: 1px solid #f3c77a38; }
.v-agi .cw-wheel { width: 184px; height: 184px; margin: -92px; border-color: #f3c77a66; }
.v-agi .cw-wheel.in { width: 138px; height: 138px; margin: -69px; border-color: #70d8ff45; }
/* each letter sits at the top of a spoke from the disk's centre, turned to its place on the rim */
.cw-wheel i { position: absolute; left: 50%; top: 0; width: 16px; height: 50%; margin-left: -8px; padding-top: 2px; transform-origin: 50% 100%; transform: rotate(var(--a));
  font: 700 11px/16px var(--cw-mono); font-style: normal; text-align: center; color: #8fdcff; text-shadow: 0 0 8px #70d8ff88; }
.v-agi .cw-wheel i { color: #f7d58e; font: 700 13px/16px Cairo, Arial, sans-serif; text-shadow: 0 0 8px #f3c77a88; }
.cw-wheel.in i { color: #f3c77ad9; font-size: 10px; }
.v-agi .cw-wheel.in i { color: #8fdcff; font: 700 12px/16px Arial, sans-serif; }
.cw-wheel i.hot { color: #fff; text-shadow: 0 0 10px #fff, 0 0 18px #70d8ff; }
.cw-bus { position: absolute; top: 50%; inset-inline: 98px; height: 20px; margin-top: -10px; overflow: hidden; }
.cw-bus em { position: absolute; top: 0; inset-inline-start: -12%; padding: 0 6px; border-radius: 6px; opacity: 0; direction: ltr;
  font: 700 11px/18px var(--cw-mono); font-style: normal; color: #d9f6ff; background: #071731e6; border: 1px solid #70d8ff66; box-shadow: 0 0 10px #70d8ff44; }

@media (max-width: 820px) {
  .cipher .cw-path { height: 220px; margin-bottom: 8px; }
}
@media (max-width: 600px) {
  .cipher .cw-path { height: 196px; padding-inline: 26px; } /* keeps the outer disks inside the card */
  .cw-wheel { zoom: .78; }
  .cipher .vision-track, .cw-bus { inset-inline: 70px; }
  .cipher .vision-node b { width: 64px; height: 64px; font-size: 17px; }
  .cipher .v-agi b { width: 74px; height: 74px; font-size: 18px; }
  .cipher .vision-node small { margin-top: 26px; }
}

/* motion: the disks turn the opposite ways, the scan line sweeps, the packets run; all paused off screen */
@media (prefers-reduced-motion: no-preference) {
  .cw-wheel { animation: cw-spin 36s linear infinite; }
  .cw-wheel.in { animation-duration: 24s; animation-direction: reverse; }
  .v-agi .cw-wheel { animation-direction: reverse; }
  .v-agi .cw-wheel.in { animation-direction: normal; }
  .cw-scan { animation: cw-scan 7.5s cubic-bezier(.45, 0, .55, 1) infinite; }
  .cw-bus em { animation: cw-bus 5.4s linear infinite; }
  .cw-bus em:nth-child(2) { animation-delay: .9s; } .cw-bus em:nth-child(3) { animation-delay: 1.8s; } .cw-bus em:nth-child(4) { animation-delay: 2.7s; }
  .cw-bus em:nth-child(5) { animation-delay: 3.6s; } .cw-bus em:nth-child(6) { animation-delay: 4.5s; }
  .vision.cipher[data-idle] *, .vision.cipher[data-idle] *::before, .vision.cipher[data-idle] *::after { animation-play-state: paused !important; }
}
@keyframes cw-spin { to { transform: rotate(360deg); } }
@keyframes cw-scan { 0%, 30% { left: -20%; opacity: 0; } 33% { opacity: 1; } 74% { left: 110%; opacity: 1; } 77%, 100% { left: 110%; opacity: 0; } }
@keyframes cw-bus { 0% { inset-inline-start: -12%; opacity: 0; } 8% { opacity: 1; } 92% { opacity: 1; } 100% { inset-inline-start: 104%; opacity: 0; } }
