/* Hologram (Foundeks.): yere yatık kadran, ondan yükselen ışık konisi ve konuşan kafa.
   Çizim assets/js/hologram.js'te. data-theme="light" beyaz zemin içindir (sitede noktanın içi):
   ışıma yerine turkuaz renk ve normal karışım. */
.holo-rig { position: relative; --holo: 110, 245, 228; }

.holo-rig .dial {
  position: absolute; left: 50%; bottom: 3%; width: clamp(64px, 30%, 170px); aspect-ratio: 1;
  transform: translateX(-50%) perspective(600px) rotateX(62deg);
  border: 0; padding: 0; border-radius: 50%; background: none;
  -webkit-tap-highlight-color: transparent;
}
.holo-rig button.dial { cursor: pointer; }
.holo-rig .dial:focus-visible { outline: 2px solid rgba(var(--holo), .8); outline-offset: 6px; }
.holo-rig .dial .case {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, #1d2b45, #0b1222 68%, #070b15);
  box-shadow: 0 0 0 4px #141d30, 0 0 0 6px #0a0f1b, 0 18px 40px rgba(0,0,0,.7), inset 0 3px 8px rgba(255,255,255,.07);
}
.holo-rig .dial .ring {
  position: absolute; inset: 12%; border-radius: 50%;
  background: repeating-conic-gradient(from 0deg, rgba(var(--holo), .55) 0 3deg, transparent 3deg 30deg);
  -webkit-mask: radial-gradient(circle, transparent 62%, #000 63% 72%, transparent 73%);
          mask: radial-gradient(circle, transparent 62%, #000 63% 72%, transparent 73%);
  transition: transform .6s cubic-bezier(.5,1.6,.4,1), opacity .4s; opacity: .45;
}
.holo-rig .dial .core {
  position: absolute; inset: 36%; border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--holo), .9), rgba(var(--holo), .25) 55%, transparent 72%);
  opacity: .35; transition: opacity .4s, transform .25s;
}
.holo-rig .dial.on .ring { transform: rotate(90deg); opacity: 1; }
.holo-rig .dial.on .core { opacity: 1; }
.holo-rig button.dial:active .core { transform: scale(.85); }

.holo-rig .cone {
  position: absolute; left: 0; right: 0; bottom: 9%; height: 72%;
  clip-path: polygon(42% 100%, 58% 100%, 96% 0, 4% 0);
  background: linear-gradient(to top, rgba(var(--holo), .32), rgba(var(--holo), .06) 70%, transparent);
  filter: blur(8px); mix-blend-mode: screen; opacity: 0; pointer-events: none;
  transform-origin: 50% 100%;
}

.holo-rig .head-wrap { position: absolute; left: 0; right: 0; bottom: 13%; height: 86%; perspective: 900px; pointer-events: none; }
.holo-rig .head-wrap canvas { position: absolute; left: 50%; bottom: 0; height: 100%; transform-origin: 50% 100%; mix-blend-mode: screen; }

.holo-rig[data-theme="light"] .cone {
  mix-blend-mode: normal;
  background: linear-gradient(to top, rgba(30, 190, 196, .34), rgba(30, 190, 196, .08) 70%, transparent);
}
.holo-rig[data-theme="light"] .head-wrap canvas { mix-blend-mode: normal; }

/* Kaydırmayla (sitede): kadran yok, ışık ekranın altından yükselir. Ön hat --f (alttan yüzde) JS'ten gelir,
   kenarı yumuşak bir maskeyle ilerler (robotun filizlenmesiyle aynı dil). */
.holo-rig[data-drive="scroll"] .cone {
  --f: 0%;
  opacity: 1; filter: blur(14px); clip-path: none; background: none;
  -webkit-mask: linear-gradient(to top, #000 calc(var(--f) - 16%), transparent var(--f));
          mask: linear-gradient(to top, #000 calc(var(--f) - 16%), transparent var(--f));
}
/* Işığın kendisi iç katmanda: kenarları dış katmanın bulanıklığıyla yumuşar */
.holo-rig[data-drive="scroll"] .cone::before {
  content: ""; position: absolute; inset: 0;
  clip-path: var(--beam, polygon(36% 100%, 64% 100%, 99% 0, 1% 0));
  background:
    radial-gradient(42% 7% at 50% 100%, rgba(30, 190, 196, .5), rgba(30, 190, 196, 0)),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0) 0 22px, rgba(255, 255, 255, .22) 22px 26px),
    linear-gradient(to top, rgba(30, 190, 196, .36), rgba(30, 190, 196, .26) 55%, rgba(30, 190, 196, .1) 88%, rgba(30, 190, 196, 0));
}
