/* Hero animations, one per page concept. Pure CSS/SVG, no JS required. */
.hero-art:has(.ha){display:flex;align-items:center;justify-content:flex-end;width:100%!important;max-width:none;aspect-ratio:auto!important;min-height:0;margin-left:auto;margin-right:0}
.ha{position:relative;display:block;width:100%;flex:none;aspect-ratio:1/.86;height:auto;overflow:visible}
.ha svg{overflow:visible}
/* the hero grid must actually give the art a column */
.hero-in:has(.ha){grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:clamp(24px,4vw,64px);align-items:center}
@supports not (selector(:has(*))){.hero-art{min-width:340px}}
.ha svg{width:100%;height:100%;overflow:visible;display:block}
@media (max-width:1080px){.ha{width:min(100%,460px);margin-right:0}}
@media (max-width:782px){.ha{display:none}}

/* shared primitives */
.ha-box{fill:rgba(255,255,255,.05);stroke:rgba(90,209,255,.3)}
.ha-box.lit{fill:rgba(90,209,255,.13);stroke:rgba(90,209,255,.8)}
.ha-line{fill:none;stroke:rgba(90,209,255,.2);stroke-width:1.4}
.ha-run{fill:none;stroke:#5AD1FF;stroke-width:2;stroke-dasharray:7 12;animation:haDash 1.3s linear infinite}
@keyframes haDash{to{stroke-dashoffset:-38}}
.ha-t{font:600 13px var(--font,sans-serif);fill:#fff}
.ha-s{font:600 10.5px var(--font,sans-serif);fill:rgba(255,255,255,.8);letter-spacing:.11em;text-transform:uppercase}
.ha-core{fill:#5AD1FF}
.ha-ping{fill:none;stroke:rgba(90,209,255,.45);animation:haPing 3s ease-out infinite}
@keyframes haPing{0%{r:12;opacity:.9}100%{r:46;opacity:0}}
.ha-mono{font:500 12px ui-monospace,monospace;fill:#5AD1FF;letter-spacing:.08em}

/* ---- ENTROPY: raw quantum events conditioned into a bitstream ---- */
.hae-spark{fill:#5AD1FF;opacity:0;animation:haeSpark 2.4s ease-in-out infinite}
@keyframes haeSpark{0%,100%{opacity:0;transform:scale(.4)}18%{opacity:1;transform:scale(1.3)}52%{opacity:.25;transform:scale(.8)}}
.hae-bar{fill:url(#haeGrad);transform-box:fill-box;transform-origin:center bottom;animation:haeBar 2.1s ease-in-out infinite}
@keyframes haeBar{0%,100%{transform:scaleY(.2)}22%{transform:scaleY(.85)}44%{transform:scaleY(.35)}66%{transform:scaleY(1)}84%{transform:scaleY(.5)}}
.hae-live .hae-bar{animation:none!important;transition:transform .22s cubic-bezier(.3,.85,.3,1)}
.hae-out{animation:haeShift 3.4s linear infinite}
@keyframes haeShift{to{transform:translateX(-72px)}}

/* ---- BLAST: identical keys, empty wire ---- */
.hab-key rect{fill:rgba(90,209,255,.2);animation:habBuild 3.6s ease-in-out infinite}
.hab-key rect:nth-child(2){animation-delay:.16s}
.hab-key rect:nth-child(3){animation-delay:.32s}
.hab-key rect:nth-child(4){animation-delay:.48s}
.hab-key rect:nth-child(5){animation-delay:.64s}
@keyframes habBuild{0%,10%{fill:rgba(90,209,255,.16)}32%,72%{fill:#5AD1FF}92%,100%{fill:rgba(90,209,255,.16)}}
.hab-void{stroke:rgba(90,209,255,.34);stroke-dasharray:4 6;fill:none}

/* ---- NETWORKING: two sites, keyed tunnel, no distance limit ---- */
.han-arc{fill:none;stroke:rgba(90,209,255,.26);stroke-width:1.4;stroke-dasharray:3 6}
.han-pulse{fill:#5AD1FF;offset-rotate:0deg;animation:hanTravel 3.2s ease-in-out infinite}
@keyframes hanTravel{0%{opacity:0}8%{opacity:1}92%{opacity:1}100%{opacity:0}}

/* ---- APPLICATIONS: one call, everything downstream ---- */
.haa-row{animation:haaIn 4s ease-in-out infinite}
.haa-row:nth-child(2){animation-delay:.3s}
.haa-row:nth-child(3){animation-delay:.6s}
.haa-row:nth-child(4){animation-delay:.9s}
@keyframes haaIn{0%,12%{opacity:.3}30%,78%{opacity:1}94%,100%{opacity:.3}}

/* ---- IDENTITY: credentials minted from the source ---- */
.hai-tok{animation:haiMint 3.6s ease-in-out infinite}
.hai-tok:nth-child(2){animation-delay:.45s}
.hai-tok:nth-child(3){animation-delay:.9s}
@keyframes haiMint{0%,8%{opacity:0;transform:translateX(-22px)}28%,74%{opacity:1;transform:none}92%,100%{opacity:0;transform:translateX(22px)}}

/* ---- DPU / appliance chassis ---- */
.hac-led{fill:#5AD1FF;animation:hacBlink 1.7s ease-in-out infinite}
.hac-led:nth-child(2){animation-delay:.25s}
.hac-led:nth-child(3){animation-delay:.5s}
.hac-led:nth-child(4){animation-delay:.75s}
@keyframes hacBlink{0%,100%{opacity:.22}50%{opacity:1}}
.hac-fan{transform-origin:center;animation:hacSpin 4s linear infinite}
@keyframes hacSpin{to{transform:rotate(360deg)}}

/* ---- CLOUD API ---- */
.hax-req{animation:haxReq 3s ease-in-out infinite}
.hax-res{animation:haxRes 3s ease-in-out infinite}
@keyframes haxReq{0%,6%{opacity:0;transform:translateX(-16px)}18%,44%{opacity:1;transform:none}56%,100%{opacity:.25;transform:none}}
@keyframes haxRes{0%,50%{opacity:0;transform:translateX(16px)}62%,90%{opacity:1;transform:none}100%{opacity:.25}}

/* ---- ISOLATED: a sealed perimeter ---- */
.hai-wall{fill:none;stroke:rgba(90,209,255,.4);stroke-dasharray:6 7;animation:haDash 2.6s linear infinite}
.hai-seal{fill:none;stroke:rgba(90,209,255,.22);stroke-width:1.2;animation:haiBreathe 4s ease-in-out infinite}
@keyframes haiBreathe{0%,100%{opacity:.35}50%{opacity:.85}}

/* light-ground variant for product pheros on white */
.ha.on-light .ha-box{fill:#fff;stroke:rgba(31,95,224,.35)}
.ha.on-light .ha-box.lit{fill:rgba(31,95,224,.08);stroke:#1F5FE0}
.ha.on-light .ha-line{stroke:rgba(31,95,224,.22)}
.ha.on-light .ha-run{stroke:#1F5FE0}
.ha.on-light .ha-t{fill:#111823}
.ha.on-light .ha-s{fill:#525E6E}
.ha.on-light .ha-core,.ha.on-light .hae-spark,.ha.on-light .hac-led,.ha.on-light .han-pulse{fill:#1F5FE0}
.ha.on-light .ha-ping,.ha.on-light .han-arc,.ha.on-light .hai-wall,.ha.on-light .hai-seal,.ha.on-light .hab-void{stroke:rgba(31,95,224,.35)}
.ha.on-light .ha-mono{fill:#1F5FE0}
.ha.on-light .hab-key rect{animation-name:habBuildLight}
@keyframes habBuildLight{0%,10%{fill:rgba(31,95,224,.18)}32%,72%{fill:#1F5FE0}92%,100%{fill:rgba(31,95,224,.18)}}

@media (prefers-reduced-motion:reduce){
  .ha *{animation:none!important}
  .hab-key rect{fill:#5AD1FF}
  .hae-bar{transform:scaleY(.7)}
}

/* product pheros: two columns, art on the right */
.phero-split{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:clamp(24px,4vw,60px);align-items:center}
.phero-split>.ha{width:100%;margin-right:0}
@media (max-width:960px){.phero-split{grid-template-columns:1fr}.phero-split>.ha{display:none}}

/* rotating Qrypt mark + partner logos inside hero art (matches the AI hero treatment) */
.ha-mark{width:100%;height:100%;background:url(symbol-glow.png) center/contain no-repeat;animation:haSpin 24s linear infinite}
.ha-mark.ink{background-image:url(symbol-blue.png)}
.ha-logo{width:100%;height:100%;display:grid;place-items:center}
.ha-logo img{display:block;width:100%;height:100%;object-fit:contain;filter:brightness(0) invert(1);opacity:.92}
.ha-logo.plain img{filter:none}
@keyframes haSpin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.ha-mark{animation:none}}

.ha-wl{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:14px 26px;padding-top:16px;border-top:1px solid rgba(255,255,255,.14)}
.ha-wl img{display:block;width:auto;filter:brightness(0) invert(1);opacity:.9}
.ha-wl span{font-size:13.5px;font-weight:500;color:#8BE0FF;white-space:nowrap}


/* applications hero: larger diagram type */
.ha.ha-lg .ha-t{font-size:19px!important}
.ha.ha-lg .ha-s{font-size:14px!important;letter-spacing:.09em}
.ha.ha-lg .ha-mono{font-size:19px!important}

.ha-wl.flush{justify-content:flex-start;gap:12px 20px;padding-top:0;border-top:0}
.ha-wl em{font:700 12px var(--font,sans-serif);font-style:normal;letter-spacing:.13em;text-transform:uppercase;color:rgba(255,255,255,.82)}
.ha-wl img{width:auto}

.ha-wl.stack{flex-direction:column;justify-content:center;gap:10px;padding-top:0;border-top:0}
.ha-wl-row{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:10px 20px}
.ha-wl-row img{display:block;width:auto;filter:brightness(0) invert(1);opacity:.92}
.ha-wl.stack img[alt="Mattermost"]{filter:none;opacity:1}
.idp-logos{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:9px}
.idp-logos img{display:block;width:104px;height:auto;opacity:.92}
.idp-logos em{font:700 12px var(--font,sans-serif);font-style:normal;letter-spacing:.12em;text-transform:uppercase;color:rgba(255,255,255,.82)}

.ey-splat{width:17px;height:17px;object-fit:contain;animation:haSpin 24s linear infinite}
@media (prefers-reduced-motion:reduce){.ey-splat{animation:none}}
