/* Mockup: hero layer labels open live, animated previews with a transition from the stack. */

/* ---------- Transition in the hero art ---------- */
.foundation .slab{transition:opacity .45s ease,translate .6s cubic-bezier(.16,1,.3,1),filter .45s}
.hero-art[data-focus] .slab{opacity:.38;filter:saturate(.6)}
.hero-art[data-focus="software"] .slab:nth-child(n+7),
.hero-art[data-focus="platform"] .slab:nth-child(6),
.hero-art[data-focus="apollyon"] .slab:nth-child(-n+5){opacity:1;filter:none}
.hero-art[data-focus="software"] .slab:nth-child(n+7){translate:0 -16px}
.hero-art[data-focus="platform"] .slab:nth-child(6){translate:22px 11px}
.hero-art[data-focus="apollyon"] .slab:nth-child(-n+5){translate:0 10px}
.hero-art[data-focus] .label-link:not(.is-active) .label{opacity:.32!important;transition:opacity .35s}
.hero-art .label-link .label{transition:opacity .35s}

/* Charge running from the layer to its label, then a ring at the node */
.zap{fill:none;stroke:var(--orange);stroke-width:5;stroke-linecap:round;stroke-dasharray:22 100;stroke-dashoffset:22;opacity:0}
.burst{fill:none;stroke:var(--orange);stroke-width:2;opacity:0;transform-box:fill-box;transform-origin:center}
.hero-art.zap-on[data-focus="software"] [data-zap="software"],
.hero-art.zap-on[data-focus="platform"] [data-zap="platform"],
.hero-art.zap-on[data-focus="apollyon"] [data-zap="apollyon"]{animation:zap .5s cubic-bezier(.5,0,.75,0) forwards}
.hero-art.zap-on[data-focus="software"] [data-burst="software"],
.hero-art.zap-on[data-focus="platform"] [data-burst="platform"],
.hero-art.zap-on[data-focus="apollyon"] [data-burst="apollyon"]{animation:burst .7s cubic-bezier(.16,1,.3,1) .42s forwards}
@keyframes zap{0%{stroke-dashoffset:22;opacity:1}90%{opacity:1}100%{stroke-dashoffset:-78;opacity:0}}
@keyframes burst{0%{opacity:.9;transform:scale(.4);stroke-width:4}100%{opacity:0;transform:scale(3.2);stroke-width:.5}}

/* ---------- Card: wider, unfolds from the label node after the charge lands ---------- */
.peek{width:360px;clip-path:circle(0 at var(--ox,50%) var(--oy,0))}
.peek.is-open{clip-path:circle(150% at var(--ox,50%) var(--oy,0));
  transition:opacity .2s ease .38s,transform .7s cubic-bezier(.16,1,.3,1) .38s,clip-path .8s cubic-bezier(.65,0,.35,1) .38s,visibility 0s}
.peek.is-open .peek-body>:nth-child(1){transition-delay:.7s}
.peek.is-open .peek-body>:nth-child(2){transition-delay:.76s}
.peek.is-open .peek-body>:nth-child(3){transition-delay:.82s}
.peek.is-auto::after{animation-delay:.4s}

/* ---------- Live thumbnails ---------- */
.live-thumb{position:relative;display:block}
.peek .live-thumb>*{opacity:0;transform:scale(1.08);transition:opacity .35s ease,transform .9s cubic-bezier(.16,1,.3,1)}
.peek.is-open .live-thumb>*{opacity:1;transform:none;transition-delay:.55s}

/* Software: the demo itself, playing */
.sw video{display:block;width:100%;height:100%;object-fit:cover;object-position:50% 0}
.live-tag{position:absolute;left:10px;top:10px;display:flex;align-items:center;gap:6px;padding:4px 8px 4px 7px;font-style:normal;font-size:10px;background:rgba(27,35,38,.82);color:#fff}
.live-tag b{width:6px;height:6px;border-radius:50%;background:var(--orange);animation:live 1.4s ease-in-out infinite}
@keyframes live{50%{opacity:.25}}

/* Neocloud: the five platform layers assembling */
.nc-wrap{background:radial-gradient(ellipse 70% 80% at 30% 40%,#1f3035,var(--dark) 70%)}
.nc{display:block;width:100%;height:100%}
.nc text{font-family:"Instrument Sans",Arial,sans-serif}
.nc-eye{font-size:17px;fill:#ffb79f}
.nc-name{font-size:21px;font-weight:500;fill:#eef1ec;letter-spacing:-.01em}
.nc-tag{font-size:15px;fill:#8fa19c}
.nc-warm .nc-name{fill:#ffb79f}
.nc-lead{fill:none;stroke:rgba(214,222,216,.28);stroke-width:1;stroke-dasharray:3 3}
.nc-warm .nc-lead{stroke:rgba(236,88,44,.7)}
.nc-s{opacity:0}
.peek.is-open .nc-s{animation:nc-drop .7s cubic-bezier(.16,1,.3,1) calc(.75s + var(--i) * .26s) both}
.peek.is-open .nc-warm{animation-name:nc-drop-warm}
@keyframes nc-drop{0%{opacity:0;transform:translateY(-38px)}100%{opacity:1;transform:none}}
@keyframes nc-drop-warm{0%{opacity:0;transform:translate(40px,-38px)}100%{opacity:1;transform:none}}
.nc-glowe{opacity:0}
.peek.is-open .nc-glowe{animation:nc-glow 3s ease-in-out 2.1s infinite}
@keyframes nc-glow{0%,100%{opacity:.4}50%{opacity:1}}
.nc-up{fill:none;stroke:#ffd2b8;stroke-width:3;stroke-linecap:round;stroke-dasharray:10 90;stroke-dashoffset:100;opacity:0}
.peek.is-open .nc-up{animation:nc-up 1.6s linear 2.2s infinite}
@keyframes nc-up{0%{stroke-dashoffset:100;opacity:0}10%,85%{opacity:1}100%{stroke-dashoffset:0;opacity:0}}

/* Apollyon: the build-out story itself, rendered at 640 x 400 and scaled to fit */
.ap{overflow:hidden;background:#f1f0ea}
.ap iframe{position:absolute;left:0;top:0;width:640px;height:400px;border:0;transform-origin:0 0;pointer-events:none}
.peek.is-open .ap iframe{transform:scale(calc(360 / 640))}
.peek .ap iframe{transform:scale(calc(360 / 640 * 1.08))}

@media (max-width:760px){
  .peek{width:min(260px,74%)}
  .peek.is-open .ap iframe,.peek .ap iframe{transform:scale(calc(260 / 640))}
}
@media (prefers-reduced-motion:reduce){
  .zap,.burst{display:none}
  .peek,.peek.is-open{clip-path:none}
}

.ap.pfp{background:var(--dark)}
