/* =========================================================================
   GapSecure: photos, attack chains and the attack anatomy map
   ========================================================================= */

/* ---------- Photos: blue duotone with HUD overlay ---------- */
.photo {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--radius-lg); border: 1px solid var(--line-2);
  background: #08101e; min-height: 280px;
  box-shadow: 0 40px 100px -40px rgba(0,0,0,0.9), 0 30px 80px -50px rgba(47,128,255,0.6);
}
.photo > img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.18) brightness(0.72);
  transform: scale(1.05); transition: transform 1.6s var(--ease), filter 0.8s;
}
.photo:hover > img { transform: scale(1.12); filter: grayscale(0.85) contrast(1.2) brightness(0.82); }
.photo::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(135deg, #2f80ff 0%, #0d2552 55%, #38d6ff 120%);
  mix-blend-mode: color; opacity: 0.95;
}
.photo::after {
  content: ""; position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.035) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at 50% 45%, transparent 35%, rgba(5,6,8,0.85) 100%);
}
.photo .scan, .glitch-actor .scan {
  position: absolute; left: 0; right: 0; top: -30%; height: 30%; z-index: 3; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(90,168,255,0.22) 70%, rgba(168,212,255,0.55) 99%, transparent);
  animation: scanY 4.5s linear infinite;
}
@keyframes scanY { to { top: 110%; } }
.photo .hud, .glitch-actor .hud {
  position: absolute; inset: 16px; z-index: 4; pointer-events: none;
  --c: var(--blue-2);
  background:
    linear-gradient(var(--c), var(--c)) top left / 22px 2px no-repeat,
    linear-gradient(var(--c), var(--c)) top left / 2px 22px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 22px 2px no-repeat,
    linear-gradient(var(--c), var(--c)) top right / 2px 22px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 22px 2px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom left / 2px 22px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 22px 2px no-repeat,
    linear-gradient(var(--c), var(--c)) bottom right / 2px 22px no-repeat;
}
.hud-tag {
  position: absolute; z-index: 5; top: 26px; left: 28px;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 6px 10px; border-radius: 6px; color: #dcebff;
  background: rgba(5,10,20,0.7); border: 1px solid rgba(90,168,255,0.35);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.hud-tag.red { color: #ffc2c8; border-color: rgba(255,77,94,0.5); }
.hud-tag .rec { width: 7px; height: 7px; border-radius: 50%; background: var(--crit); box-shadow: 0 0 10px var(--crit); animation: blink 1.1s steps(1) infinite; }
.hud-meta {
  position: absolute; z-index: 5; right: 28px; top: 26px; text-align: right;
  font-family: var(--font-mono); font-size: 0.62rem; line-height: 1.6; color: rgba(220,235,255,0.75);
}
.hud-target {
  position: absolute; z-index: 5; width: 92px; height: 92px; margin: -46px 0 0 -46px; pointer-events: none;
  border: 1px solid rgba(255,77,94,0.75); border-radius: 50%;
  animation: reticle 7s var(--ease) infinite;
}
.hud-target::before, .hud-target::after { content: ""; position: absolute; background: rgba(255,77,94,0.85); }
.hud-target::before { left: 50%; top: -12px; bottom: -12px; width: 1px; }
.hud-target::after { top: 50%; left: -12px; right: -12px; height: 1px; }
@keyframes reticle {
  0%, 100% { left: 30%; top: 40%; transform: scale(1); }
  30% { left: 62%; top: 34%; transform: scale(0.8); }
  55% { left: 55%; top: 62%; transform: scale(1.1); }
  80% { left: 38%; top: 58%; transform: scale(0.9); }
}
.photo-wide { min-height: 380px; margin-bottom: 40px; }
.photo-cap { position: absolute; z-index: 5; left: 32px; bottom: 28px; right: 32px; }
.photo-cap h3 { margin: 0 0 6px; color: #fff; font-size: clamp(1.4rem, 2.6vw, 2rem); }
.photo-cap p { margin: 0; color: #c3d3ea; font-size: 0.95rem; max-width: 560px; }
.section-light .photo-cap p { color: #c3d3ea; }

/* ---------- Attack chain strip ---------- */
.chain {
  position: relative; display: flex; align-items: stretch;
  padding: 16px; border-radius: 18px;
  background: rgba(6,10,18,0.8); border: 1px solid rgba(90,168,255,0.22);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.chain-step {
  position: relative; flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
  padding: 12px 6px; border-radius: 12px; border: 1px solid transparent;
  transition: background 0.4s, border-color 0.4s, transform 0.4s var(--ease);
}
.chain-step .cs-n { font-family: var(--font-mono); font-size: 0.58rem; letter-spacing: 0.14em; color: var(--fg-dim); }
.chain-step .cs-txt { display: flex; flex-direction: column; gap: 3px; }
.chain-step .cs-ico {
  position: relative; width: 44px; height: 44px; border-radius: 50%; flex: none;
  background: #121a27; border: 1px solid var(--line-2); color: var(--fg-dim);
  transition: all 0.45s var(--ease);
}
.chain-step .cs-ico svg { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 20px; height: 20px; }
.chain-step b { font-size: 0.8rem; font-weight: 600; color: var(--fg-muted); line-height: 1.25; transition: color 0.4s; }
.chain-step small { font-size: 0.7rem; color: var(--fg-dim); line-height: 1.35; }
.chain-link { position: relative; flex: 0 0 30px; align-self: center; height: 2px; margin-top: -34px; background: rgba(255,255,255,0.1); }
.chain-link::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #ff4d5e, #ff8a4d); transform: scaleX(0); transform-origin: left; transition: transform 0.6s var(--ease); }
.chain-link .pkt { position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px #ff4d5e, 0 0 20px #ff4d5e; opacity: 0; z-index: 1; }
.chain-link.flow::after { transform: scaleX(1); }
.chain-link.flow .pkt { opacity: 1; animation: pktX 0.9s linear infinite; }
.chain-link.to-def.flow::after { background: linear-gradient(90deg, #ff4d5e, var(--blue-2)); }
.chain-link.to-def.flow .pkt { box-shadow: 0 0 10px var(--blue-2), 0 0 20px var(--blue); }
@keyframes pktX { from { left: -4px; } to { left: calc(100% - 4px); } }

.chain-step.atk.on { background: rgba(255,77,94,0.09); border-color: rgba(255,77,94,0.38); }
.chain-step.atk.on .cs-ico { color: #fff; background: radial-gradient(circle, #ff6b7a, #b3132b); border-color: transparent; box-shadow: 0 0 0 0 rgba(255,77,94,0.6), 0 0 26px rgba(255,77,94,0.65); animation: hitPulse 1.2s infinite; }
.chain-step.atk.on b { color: #fff; }
.chain-step.atk.done .cs-ico { color: #ffb3bb; border-color: rgba(255,77,94,0.5); background: rgba(255,77,94,0.12); }
.chain-step.atk.done b { color: #ffd6da; }
@keyframes hitPulse {
  70% { box-shadow: 0 0 0 14px rgba(255,77,94,0), 0 0 26px rgba(255,77,94,0.65); }
  100% { box-shadow: 0 0 0 0 rgba(255,77,94,0), 0 0 26px rgba(255,77,94,0.65); }
}
.chain-step.def .cs-ico { border-color: rgba(90,168,255,0.45); color: var(--blue-2); }
.chain-step.def.on { background: rgba(47,128,255,0.13); border-color: rgba(90,168,255,0.6); transform: scale(1.04); }
.chain-step.def.on .cs-ico { color: #fff; background: var(--grad-blue); box-shadow: 0 0 30px rgba(47,128,255,0.9); animation: defPulse 1.2s infinite; }
.chain-step.def.on b { color: #fff; }
.chain-step.def.on::after {
  content: "CHAIN BROKEN"; position: absolute; top: -11px; left: 50%; transform: translateX(-50%) rotate(-3deg);
  font-family: var(--font-mono); font-size: 0.56rem; font-weight: 700; letter-spacing: 0.14em; white-space: nowrap;
  padding: 3px 7px; border-radius: 4px; background: var(--blue); color: #fff; box-shadow: 0 6px 20px -4px rgba(47,128,255,0.9);
  animation: stamp 0.45s var(--ease);
}
@keyframes defPulse { 70% { box-shadow: 0 0 0 16px rgba(47,128,255,0), 0 0 30px rgba(47,128,255,0.9); } }
@keyframes stamp { from { transform: translateX(-50%) rotate(-3deg) scale(1.8); opacity: 0; } }

@media (max-width: 760px) {
  .chain { flex-direction: column; padding: 12px; }
  .chain-step { flex-direction: row; text-align: left; gap: 12px; padding: 8px 10px; }
  .chain-step .cs-n { order: 3; margin-left: auto; }
  .chain-link { flex: 0 0 16px; width: 2px; height: 16px; margin: 0 0 0 31px; align-self: flex-start; }
  .chain-link::after { transform: scaleY(0); transform-origin: top; background: linear-gradient(180deg, #ff4d5e, #ff8a4d); }
  .chain-link.flow::after { transform: scaleY(1); }
  .chain-link .pkt { left: -3px; }
  .chain-link.flow .pkt { animation: pktY 0.9s linear infinite; }
  .chain-step.def.on::after { left: auto; right: 8px; top: 50%; transform: translateY(-50%) rotate(-3deg); animation: none; }
}
@keyframes pktY { from { top: -4px; } to { top: calc(100% - 4px); } }

/* Service banner: photo with the chain over it */
.svc-banner { min-height: 440px; margin: 6px 0 30px; display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; }
.svc-banner .chain, .svc-banner .chain-cap { position: relative; z-index: 6; }
.chain-cap { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; font-family: var(--font-mono); font-size: 0.66rem; letter-spacing: 0.12em; text-transform: uppercase; color: #dcebff; }
.chain-cap span { display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px; border-radius: 6px; background: rgba(5,10,20,0.75); border: 1px solid rgba(255,77,94,0.45); }
.chain-cap span.ok { border-color: rgba(90,168,255,0.5); }
@media (max-width: 760px) { .svc-banner { padding: 190px 12px 12px; } .svc-banner .hud-meta { display: none; } }

/* ---------- Attack anatomy ---------- */
.anatomy { display: grid; grid-template-columns: 0.85fr 2fr; gap: 22px; align-items: stretch; }
.an-side { display: grid; grid-template-rows: 1fr auto; gap: 16px; min-width: 0; }
.an-side .photo { min-height: 300px; }
.an-log {
  border-radius: 16px; background: #05080d; border: 1px solid var(--line-2);
  font-family: var(--font-mono); font-size: 0.68rem; line-height: 1.75; padding: 14px 16px; height: 200px; overflow: hidden;
  display: flex; flex-direction: column; justify-content: flex-end; color: #c9d3e0;
}
.an-log .l { animation: feedIn 0.4s var(--ease); padding: 3px 0; border-bottom: 1px solid rgba(255,255,255,0.04); }
.an-log .r { color: #ff8a96; } .an-log .b { color: var(--blue-2); } .an-log .g { color: var(--ok); } .an-log .d { color: var(--fg-dim); }

.an-board {
  position: relative; min-width: 0; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--line-2);
  background:
    radial-gradient(circle at 8% 50%, rgba(255,77,94,0.14), transparent 35%),
    radial-gradient(circle at 80% 50%, rgba(47,128,255,0.16), transparent 50%),
    linear-gradient(180deg, #0c111a, #070a0f);
  padding: 18px 18px 14px; display: flex; flex-direction: column;
}
.an-board::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}
.an-board > * { position: relative; }
.an-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.an-top strong { font-family: var(--font-display); font-size: 1rem; display: flex; align-items: center; gap: 10px; }
.an-mode { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(255,255,255,0.04); border: 1px solid var(--line-2); }
.an-mode button { padding: 7px 14px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; color: var(--fg-muted); display: inline-flex; gap: 6px; align-items: center; transition: all 0.3s var(--ease); }
.an-mode button svg { width: 14px; height: 14px; }
.an-mode button:hover { color: #fff; }
.an-mode button.on[data-mode="attack"] { background: linear-gradient(135deg, #ff6b7a, #b3132b); color: #fff; box-shadow: 0 6px 20px -6px rgba(255,77,94,0.8); }
.an-mode button.on[data-mode="defend"] { background: var(--grad-blue); color: #fff; box-shadow: var(--shadow-blue); }

.an-map { position: relative; width: 100%; aspect-ratio: 1000 / 520; }
.an-map svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.an-zone { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; fill: #6d7787; }
.an-perim { stroke: rgba(90,168,255,0.4); stroke-width: 1.2; stroke-dasharray: 6 6; animation: dash 2s linear infinite; fill: none; }
.an-scan { fill: none; stroke: rgba(168,212,255,0.6); stroke-width: 1; stroke-dasharray: 3 6; opacity: 0; transition: opacity 0.5s; }
.an-beam { fill: none; stroke-width: 3; stroke-linecap: round; stroke-dasharray: 1400; stroke-dashoffset: 1400; opacity: 0; filter: drop-shadow(0 0 6px rgba(255,77,94,0.9)); transition: stroke-dashoffset 1.1s var(--ease), opacity 0.3s, stroke 0.4s; stroke: url(#anRed); }
.an-beam.b-exfil { stroke: #38d6ff; stroke-dasharray: 8 8; stroke-dashoffset: 0; filter: drop-shadow(0 0 6px rgba(56,214,255,0.9)); animation: dashExfil 0.6s linear infinite; }
@keyframes dashExfil { to { stroke-dashoffset: -32; } }
.an-pkt { opacity: 0; transition: opacity 0.3s; }
.an-radar { fill: none; stroke: rgba(255,77,94,0.7); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; }

.anatomy.p1 .an-scan { opacity: 1; animation: dash 1.2s linear infinite; }
.anatomy.p1 .an-radar { opacity: 1; animation: pulseRing 1.8s ease-out infinite; }
.anatomy.p1 .an-radar.r2 { animation-delay: 0.9s; }
.anatomy.p2 .an-scan { opacity: 0.18; }
.anatomy.dp1 .an-scan { opacity: 1; stroke: rgba(90,168,255,0.7); animation: dash 1.2s linear infinite; }
.anatomy.dp2 .an-scan { opacity: 0.2; }
.anatomy.p2 .b-exploit, .anatomy.p3 .b-foothold, .anatomy.p4 .b-lateral, .anatomy.p4 .b-priv, .anatomy.dp3 .b-attempt { opacity: 1; stroke-dashoffset: 0; }
.anatomy.p5 .b-exfil { opacity: 1; }
.anatomy.p2 .k-exploit, .anatomy.p3 .k-foothold, .anatomy.p4 .k-lateral, .anatomy.p5 .k-exfil, .anatomy.dp3 .k-attempt { opacity: 1; }

.an-node {
  position: absolute; transform: translate(-50%, -50%); z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; width: 124px;
  pointer-events: none;
}
.an-node .ico {
  position: relative; width: 46px; height: 46px; border-radius: 14px;
  background: #121a27; border: 1px solid var(--line-2); color: var(--fg-dim);
  transition: all 0.5s var(--ease);
}
.an-node .ico svg { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 21px; height: 21px; }
.an-node b { font-family: var(--font-mono); font-size: 0.64rem; font-weight: 500; color: var(--fg-muted); line-height: 1.2; white-space: nowrap; transition: color 0.4s; }
.an-node small { font-size: 0.58rem; color: var(--fg-dim); line-height: 1.2; white-space: nowrap; }
.an-node.asset .ico { border-radius: 50%; }
.an-node.actor { width: 140px; }
.an-node.actor .ico { width: 66px; height: 66px; border-radius: 50%; color: #fff; background: radial-gradient(circle at 35% 30%, #ff6b7a, #6e0b19); border-color: rgba(255,77,94,0.6); box-shadow: 0 0 40px rgba(255,77,94,0.55); }
.an-node.actor .ico svg { width: 30px; height: 30px; }
.an-shield .s { position: relative; }
.an-node.actor b { color: #ffb3bb; font-size: 0.7rem; }

.anatomy.p1 .an-node.asset .ico { border-color: rgba(168,212,255,0.6); color: var(--blue-3); box-shadow: 0 0 18px rgba(90,168,255,0.35); }
.anatomy.p2 .n-staging .ico, .anatomy.p3 .n-web .ico, .anatomy.p4 .n-ad .ico, .anatomy.p4 .n-db .ico {
  color: #fff; background: radial-gradient(circle, #ff6b7a, #a3122a); border-color: transparent;
  box-shadow: 0 0 0 0 rgba(255,77,94,0.6), 0 0 30px rgba(255,77,94,0.75); animation: hitPulse 1.2s infinite;
}
.anatomy.p2 .n-staging b, .anatomy.p3 .n-web b, .anatomy.p4 .n-ad b, .anatomy.p4 .n-db b { color: #ffd6da; }

.an-pop {
  position: absolute; z-index: 3; transform: translate(-50%, -100%) scale(0.6); opacity: 0;
  font-family: var(--font-mono); font-size: 0.62rem; font-weight: 700; white-space: nowrap;
  padding: 4px 8px; border-radius: 6px; background: var(--crit); color: #fff; box-shadow: 0 10px 24px -6px rgba(255,77,94,0.9);
  transition: all 0.45s var(--ease); pointer-events: none;
}
.an-pop.blue { background: var(--blue); box-shadow: 0 10px 24px -6px rgba(47,128,255,0.9); }
.an-pop.cyan { background: #0e7490; box-shadow: 0 10px 24px -6px rgba(56,214,255,0.8); }
.anatomy.p2 .pop-cve, .anatomy.p3 .pop-shell, .anatomy.p4 .pop-creds, .anatomy.p5 .pop-exfil,
.anatomy.dp2 .pop-found, .anatomy.dp3 .pop-blocked { opacity: 1; transform: translate(-50%, -100%) scale(1); }

.an-shield { position: absolute; z-index: 4; transform: translate(-50%, -50%) scale(0.3); opacity: 0; transition: all 0.6s var(--ease); pointer-events: none; }
.an-shield .s { position: relative; width: 66px; height: 66px; border-radius: 50%; color: #fff; background: var(--grad-blue); box-shadow: 0 0 0 10px rgba(47,128,255,0.15), 0 0 50px rgba(47,128,255,0.9); }
.an-shield .s svg { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 30px; height: 30px; }
.anatomy.dp2 .an-shield, .anatomy.dp3 .an-shield { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.anatomy.dp3 .an-shield .s { animation: defPulse 1.1s infinite; }
.anatomy.dp1 .an-node.asset .ico, .anatomy.dp2 .an-node.asset .ico { border-color: rgba(90,168,255,0.7); color: var(--blue-2); box-shadow: 0 0 18px rgba(47,128,255,0.5); }
.anatomy.dp3 .n-staging .ico { color: #fff; background: var(--grad-blue); border-color: transparent; }
.anatomy.defended .an-node.internal { opacity: 0.6; }
.anatomy.defended .an-node.internal .ico { border-color: rgba(61,220,151,0.35); }

.an-stages { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.an-stages span {
  position: relative; padding: 9px 4px; border-radius: 10px; text-align: center; overflow: hidden;
  font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--fg-dim); background: rgba(255,255,255,0.03); border: 1px solid var(--line);
  transition: all 0.4s; white-space: nowrap; text-overflow: ellipsis;
}
.an-stages span.on { color: #fff; background: rgba(255,77,94,0.16); border-color: rgba(255,77,94,0.5); box-shadow: 0 0 20px -6px rgba(255,77,94,0.8); }
.anatomy.defended .an-stages span.on { background: rgba(47,128,255,0.18); border-color: rgba(90,168,255,0.55); box-shadow: 0 0 20px -6px rgba(47,128,255,0.8); }
.an-services { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-top: 8px; }
.an-services div { font-size: 0.7rem; color: var(--fg-dim); text-align: center; line-height: 1.45; }
.an-services a { color: var(--blue-2); font-weight: 500; }
.an-services a:hover { color: #fff; }

@media (max-width: 1100px) { .anatomy { grid-template-columns: 1fr; } .an-side { grid-template-columns: 1fr 1fr; grid-template-rows: none; } }
@media (max-width: 700px) {
  .an-side { grid-template-columns: 1fr; }
  .an-node { width: 72px; gap: 2px; } .an-node small { display: none; }
  .an-node b { font-size: 0.48rem; }
  .an-node .ico { width: 28px; height: 28px; border-radius: 8px; }
  .an-node .ico svg { width: 14px; height: 14px; }
  .an-node.actor { width: 80px; }
  .an-node.actor .ico { width: 38px; height: 38px; }
  .an-node.actor .ico svg { width: 18px; height: 18px; }
  .an-node.actor b { font-size: 0.5rem; }
  .an-pop { font-size: 0.48rem; padding: 2px 4px; }
  .an-shield .s { width: 36px; height: 36px; } .an-shield .s svg { width: 16px; height: 16px; }
  .an-zone { font-size: 20px; }
  .an-stages span { font-size: 0.44rem; letter-spacing: 0; padding: 7px 1px; }
  .an-services { display: none; }
  .an-top strong { font-size: 0.9rem; }
}

/* ---------- Photo backgrounds on existing blocks ---------- */
.cta-band {
  background-image:
    radial-gradient(circle at 15% 20%, rgba(90,168,255,0.45), transparent 50%),
    radial-gradient(circle at 90% 90%, rgba(56,214,255,0.25), transparent 45%),
    linear-gradient(135deg, rgba(13,37,82,0.9), rgba(7,18,40,0.93) 60%, rgba(5,7,11,0.96)),
    url("../assets/img/fiber-optics.jpg");
  background-size: auto, auto, auto, cover;
  background-position: center;
}
.hero-photo-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0.38;
  background: url("../assets/img/earth-night.jpg") center 75% / cover no-repeat;
  filter: grayscale(1) contrast(1.25);
  mask-image: linear-gradient(180deg, transparent, #000 25%, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 25%, #000 70%, transparent);
}
.hero-photo-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, #2f80ff, #0d2552); mix-blend-mode: color; }

/* ---------- Glitch threat-actor (live canvas) ---------- */
.glitch-actor {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: var(--radius-lg); border: 1px solid var(--line-2);
  background: #05080f; min-height: 300px;
  box-shadow: 0 40px 100px -40px rgba(0,0,0,0.9), 0 30px 80px -50px rgba(255,45,58,0.35);
}
.glitch-actor canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; z-index: 1; }
.glitch-actor::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background:
    repeating-linear-gradient(0deg, rgba(0,0,0,0.26) 0 1px, transparent 1px 3px),
    radial-gradient(ellipse at 50% 42%, transparent 38%, rgba(3,5,10,0.9) 100%);
}
.glitch-actor .ga-stream {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 5; pointer-events: none;
  padding: 7px 10px; font-family: var(--font-mono); font-size: 0.62rem; letter-spacing: 0.18em;
  color: rgba(120,190,255,0.85); white-space: nowrap; overflow: hidden; text-overflow: clip;
  background: linear-gradient(0deg, rgba(3,6,12,0.9), transparent);
  text-shadow: 0 0 8px rgba(47,128,255,0.8);
}
.glitch-actor .ga-err {
  position: absolute; z-index: 5; left: 50%; top: 50%; transform: translate(-50%, -50%);
  font-family: var(--font-mono); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em;
  color: #ff3a48; text-shadow: 0 0 10px rgba(255,45,58,0.9), 2px 0 0 rgba(39,230,255,0.7);
  padding: 4px 10px; border: 1px solid rgba(255,45,58,0.5); border-radius: 4px;
  background: rgba(10,4,6,0.55); opacity: 0; transition: opacity 0.1s;
}
.glitch-actor.err .ga-err { opacity: 1; }

/* ---------- Animated cyberpunk service icons ---------- */
.xicon { display: inline-flex; align-items: center; justify-content: center; line-height: 0; }
.xicon .xi { overflow: visible; filter: drop-shadow(0 0 3px rgba(90,168,255,0.55)); }
.icon-box .xicon .xi { width: 28px; height: 28px; }
.icon-box:hover .xicon .xi, .card:hover .icon-box .xicon .xi { filter: drop-shadow(0 0 5px rgba(255,255,255,0.65)); }
.svc-emblem .core .xicon .xi { width: 50px; height: 50px; filter: drop-shadow(0 0 6px rgba(168,212,255,0.7)); }
.mega-feature .xicon .xi { width: 30px; height: 30px; }
@media (prefers-reduced-motion: reduce) { .xi * { animation: none !important; } }
