/* ==========================================================================
   SENTINEL PROJECT — HOLOGRAPHIC SERVICES GRAPHIC
   Six translucent glass panels in CSS 3D space. No WebGL, no video.
   Depth comes from perspective + independent float + pointer parallax.
   ========================================================================== */

.sp-holo {
  --px: 0px;
  --py: 0px;
  position: relative;
  width: min(100%, 760px);
  margin-inline: auto;
  aspect-ratio: 600 / 720;
  perspective: 1500px;
  perspective-origin: 50% 46%;
  isolation: isolate;
  touch-action: pan-y;
}
.sp-holo * { box-sizing: border-box; }

/* ambient light behind the glass */
.sp-holo__glow {
  position: absolute;
  inset: 6% 2% 2%;
  z-index: -2;
  background:
    radial-gradient(52% 46% at 66% 30%, rgba(0, 229, 192, .22), transparent 68%),
    radial-gradient(46% 40% at 24% 74%, rgba(0, 138, 122, .16), transparent 70%);
  filter: blur(38px);
  animation: sp-holo-breathe 10s ease-in-out infinite;
}
@keyframes sp-holo-breathe {
  0%, 100% { opacity: .75; transform: scale(.97); }
  50%      { opacity: 1;   transform: scale(1.03); }
}

/* faint orbital geometry */
.sp-holo__orbit {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .5;
  overflow: visible;
}
.sp-holo__orbit ellipse,
.sp-holo__orbit circle {
  fill: none;
  stroke: rgba(0, 229, 192, .22);
  stroke-width: .8;
  vector-effect: non-scaling-stroke;
}
.sp-holo__orbit .is-dashed {
  stroke-dasharray: 2 12;
  stroke: rgba(140, 252, 232, .30);
  transform-box: fill-box;
  transform-origin: center;
  animation: sp-holo-spin 70s linear infinite;
}
@keyframes sp-holo-spin { to { transform: rotate(360deg); } }

/* perspective floor grid */
.sp-holo__floor {
  position: absolute;
  left: 4%; right: 4%; bottom: -6%;
  height: 46%;
  z-index: -1;
  perspective: 480px;
  opacity: .38;
  -webkit-mask-image: linear-gradient(0deg, transparent 2%, #000 62%, transparent 100%);
  mask-image: linear-gradient(0deg, transparent 2%, #000 62%, transparent 100%);
}
.sp-holo__floor::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(90deg, rgba(0, 229, 192, .22) 0 1px, transparent 1px 74px),
    repeating-linear-gradient(0deg,  rgba(0, 229, 192, .18) 0 1px, transparent 1px 58px);
  transform: rotateX(72deg);
  transform-origin: 50% 100%;
  animation: sp-holo-floor 20s linear infinite;
}
@keyframes sp-holo-floor {
  from { background-position: 0 0, 0 0; }
  to   { background-position: 0 74px, 0 58px; }
}

/* connection lines sit behind the panels */
.sp-holo__links {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  overflow: visible;
  pointer-events: none;
}
.sp-holo__link {
  fill: none;
  stroke: rgba(0, 229, 192, .30);
  stroke-width: 1;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: sp-holo-draw 2.2s cubic-bezier(.2, .8, .2, 1) forwards;
  animation-delay: calc(var(--i, 0) * 160ms + .3s);
}
.sp-holo__flow {
  fill: none;
  stroke: rgba(160, 255, 238, .95);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-dasharray: 7 210;
  stroke-dashoffset: 217;
  opacity: 0;
  filter: drop-shadow(0 0 4px rgba(0, 229, 192, .9));
  animation: sp-holo-flow 5.6s linear infinite;
  animation-delay: calc(var(--i, 0) * 700ms);
}
.sp-holo__node {
  fill: #00E5C0;
  opacity: .9;
  filter: drop-shadow(0 0 5px rgba(0, 229, 192, .85));
  transform-box: fill-box;
  transform-origin: center;
  animation: sp-holo-node 3.6s ease-in-out infinite;
}
@keyframes sp-holo-draw { to { stroke-dashoffset: 0; } }
@keyframes sp-holo-flow {
  0%   { stroke-dashoffset: 217; opacity: 0; }
  8%   { opacity: 1; }
  80%  { opacity: 1; }
  100% { stroke-dashoffset: -20; opacity: 0; }
}
@keyframes sp-holo-node {
  0%, 100% { opacity: .55; transform: scale(.85); }
  50%      { opacity: 1;   transform: scale(1.25); }
}

/* moving specular scan across the whole cluster */
.sp-holo__scan {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  background: linear-gradient(105deg,
    transparent 42%,
    rgba(140, 252, 232, .05) 47%,
    rgba(190, 255, 246, .16) 50%,
    rgba(140, 252, 232, .05) 53%,
    transparent 58%);
  background-size: 300% 100%;
  background-repeat: no-repeat;
  -webkit-mask-image: linear-gradient(100deg, transparent 30%, #000 50%, transparent 70%);
  mask-image: linear-gradient(100deg, transparent 30%, #000 50%, transparent 70%);
  opacity: 0;
  animation: sp-holo-scan 11s cubic-bezier(.5, .05, .5, .95) infinite;
  mix-blend-mode: screen;
}
@keyframes sp-holo-scan {
  0%   { background-position: 170% 0; opacity: 0; }
  15%  { opacity: .9; }
  60%  { background-position: -70% 0; opacity: .6; }
  70%, 100% { background-position: -70% 0; opacity: 0; }
}

/* ---- panel positioning wrappers ---- */
.sp-holo__float {
  position: absolute;
  left: var(--x); top: var(--y);
  width: var(--w); height: var(--h);
  transform-style: preserve-3d;
  animation: sp-holo-float var(--dur, 12s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  z-index: 2;
}
@keyframes sp-holo-float {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-.35deg); }
  50%      { transform: translate3d(0, -10px, 0) rotate(.35deg); }
}

/* ---- the glass panel itself ---- */
.sp-holo__panel {
  position: relative;
  width: 100%; height: 100%;
  display: flex;
  flex-direction: column;
  padding: clamp(11px, 2.1%, 20px);
  border-radius: 15px;
  border: 1px solid rgba(0, 229, 192, .30);
  background:
    radial-gradient(120% 90% at 18% 0%, rgba(160, 255, 240, .13), transparent 58%),
    linear-gradient(152deg, rgba(20, 52, 55, .74), rgba(6, 17, 19, .58));
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .13) inset,
    0 0 26px rgba(0, 229, 192, .05) inset,
    0 26px 60px rgba(0, 0, 0, .48);
  backdrop-filter: blur(7px) saturate(1.12);
  -webkit-backdrop-filter: blur(7px) saturate(1.12);
  transform:
    rotateY(calc(var(--ry, -7) * 1deg))
    rotateX(calc(var(--rx, 3) * 1deg))
    translate3d(calc(var(--px) * var(--depth, 1)), calc(var(--py) * var(--depth, 1)), 0);
  transform-style: preserve-3d;
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), border-color .35s ease, box-shadow .35s ease;
  overflow: hidden;
  will-change: transform;
}
.sp-holo__float:hover .sp-holo__panel {
  border-color: rgba(140, 252, 232, .6);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, .2) inset,
    0 0 34px rgba(0, 229, 192, .12) inset,
    0 34px 70px rgba(0, 0, 0, .52),
    0 0 42px rgba(0, 229, 192, .12);
}
/* top-edge specular */
.sp-holo__panel::before {
  content: "";
  position: absolute;
  inset: 0 0 55%;
  background: linear-gradient(168deg, rgba(255, 255, 255, .16), transparent 54%);
  pointer-events: none;
}
/* micro scanlines + corner ticks */
.sp-holo__panel::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background-image:
    repeating-linear-gradient(0deg, rgba(140, 252, 232, .045) 0 1px, transparent 1px 3px),
    radial-gradient(circle at 0 0, rgba(140, 252, 232, .7) 0 1px, transparent 1.6px),
    radial-gradient(circle at 100% 100%, rgba(140, 252, 232, .55) 0 1px, transparent 1.6px);
  opacity: .5;
  pointer-events: none;
}

.sp-holo__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  position: relative;
  z-index: 1;
}
.sp-holo__icon {
  width: clamp(30px, 5.4vw, 44px);
  height: clamp(30px, 5.4vw, 44px);
  display: grid;
  place-items: center;
  border-radius: 9px;
  border: 1px solid rgba(0, 229, 192, .28);
  background: rgba(0, 229, 192, .06);
  color: var(--sp-teal, #00E5C0);
  box-shadow: 0 0 18px rgba(0, 229, 192, .08) inset;
}
.sp-holo__icon svg { width: 58%; height: 58%; display: block; }
.sp-holo__num {
  font-size: clamp(8px, 1vw, 10px);
  letter-spacing: .22em;
  color: rgba(245, 250, 250, .3);
  font-variant-numeric: tabular-nums;
}
.sp-holo__panel h3 {
  position: relative;
  z-index: 1;
  margin: 10px 0 0;
  font-size: clamp(11px, 1.5vw, 15px);
  line-height: 1.2;
  letter-spacing: -.01em;
  font-weight: 600;
  color: #EAFBF7;
}
.sp-holo__tag {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: clamp(7px, .85vw, 9px);
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(140, 252, 232, .55);
}
.sp-holo__tag::before {
  content: "";
  width: 3px; height: 3px;
  border-radius: 50%;
  background: #00E5C0;
  box-shadow: 0 0 8px #00E5C0;
}

/* abstract data bars (no fake copy) */
.sp-holo__bars {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 18%;
  margin-top: auto;
  opacity: .55;
}
.sp-holo__bars i {
  display: block;
  flex: 1;
  max-width: 5px;
  height: var(--h, 40%);
  border-radius: 1px 1px 0 0;
  background: linear-gradient(180deg, rgba(140, 252, 232, .85), rgba(0, 229, 192, .12));
  transform-origin: bottom;
  animation: sp-holo-bar 4.8s ease-in-out infinite alternate;
  animation-delay: var(--bd, 0s);
}
@keyframes sp-holo-bar {
  from { transform: scaleY(.62); opacity: .55; }
  to   { transform: scaleY(1); opacity: .95; }
}

/* per-panel depth / angle variation */
.sp-holo__panel--a { --depth: 1.00; --ry: -8; --rx: 4; }
.sp-holo__panel--b { --depth: .62; --ry:  7; --rx: 3; }
.sp-holo__panel--c { --depth: .82; --ry:  9; --rx: 2; }
.sp-holo__panel--d { --depth: .72; --ry: -6; --rx: -3; }
.sp-holo__panel--e { --depth: .55; --ry: -4; --rx: -4; }
.sp-holo__panel--f { --depth: .92; --ry:  8; --rx: -2; }

/* desktop composition */
.sp-holo__float--a { --x: 2%;  --y: 4%;   --w: 43%; --h: 27%; --dur: 12s; --delay: -1s; }
.sp-holo__float--b { --x: 55%; --y: 1%;   --w: 43%; --h: 25%; --dur: 14s; --delay: -5s; }
.sp-holo__float--c { --x: 57%; --y: 30%;  --w: 41%; --h: 27%; --dur: 11s; --delay: -3s; }
.sp-holo__float--d { --x: 1%;  --y: 36%;  --w: 44%; --h: 28%; --dur: 13s; --delay: -7s; }
.sp-holo__float--e { --x: 8%;  --y: 69%;  --w: 43%; --h: 26%; --dur: 15s; --delay: -2s; }
.sp-holo__float--f { --x: 56%; --y: 63%;  --w: 42%; --h: 29%; --dur: 12.5s; --delay: -6s; }

/* ---- tablet / mobile composition ---- */
@media (max-width: 760px) {
  .sp-holo { aspect-ratio: 10 / 12; perspective: 1100px; }
  .sp-holo__links { display: none; }
  .sp-holo__floor { opacity: .26; }
  .sp-holo__scan { display: none; }
  .sp-holo__panel { backdrop-filter: none; -webkit-backdrop-filter: none; }
  .sp-holo__float--a { --x: 1%;  --y: 1%;  --w: 47%; --h: 26%; }
  .sp-holo__float--b { --x: 52%; --y: 4%;  --w: 47%; --h: 24%; }
  .sp-holo__float--c { --x: 3%;  --y: 31%; --w: 46%; --h: 27%; }
  .sp-holo__float--d { --x: 54%; --y: 32%; --w: 44%; --h: 26%; }
  .sp-holo__float--e { --x: 1%;  --y: 63%; --w: 46%; --h: 27%; }
  .sp-holo__float--f { --x: 51%; --y: 62%; --w: 48%; --h: 28%; }
  .sp-holo__panel h3 { font-size: clamp(10px, 3.1vw, 13px); }
  .sp-holo__tag { font-size: clamp(6.5px, 1.9vw, 8px); letter-spacing: .12em; }
  .sp-holo__num { font-size: 8px; }
  .sp-holo__bars { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .sp-holo__float,
  .sp-holo__glow,
  .sp-holo__scan,
  .sp-holo__orbit .is-dashed,
  .sp-holo__floor::before,
  .sp-holo__node,
  .sp-holo__flow,
  .sp-holo__bars i { animation: none !important; }
  .sp-holo__link { stroke-dashoffset: 0 !important; animation: none !important; }
  .sp-holo__scan { opacity: 0 !important; }
  .sp-holo__panel { transform: rotateY(calc(var(--ry, -7) * 1deg)) rotateX(calc(var(--rx, 3) * 1deg)); }
}


