/* Motion: all animations. With reduced-motion the page is complete and fully usable with no movement. */

/* card tilt composes with reveal */
.tilt { transition: rotate .5s var(--ease), translate .4s var(--ease); }
.tilt:hover { translate: 0 -4px; }

@media (prefers-reduced-motion: no-preference) {

  /* ── keyframes ── */
  @keyframes rise    { from { opacity:0; transform:translateY(32px); filter:blur(8px) } to { opacity:1; transform:none; filter:none } }
  @keyframes fade    { from { opacity:0; transform:translateY(12px) } to { opacity:1; transform:none } }
  @keyframes sheen   { 0%,100%{background-position:0% 50%} 50%{background-position:100% 50%} }
  @keyframes orbitA  { 0%,100%{transform:translate(-62%,-18%)} 45%,55%{transform:translate(-6%,0) scale(1.08)} }
  @keyframes orbitB  { 0%,100%{transform:translate(62%,18%)}  45%,55%{transform:translate(6%,0)  scale(1.08)} }
  @property --spin   { syntax:"<angle>"; inherits:false; initial-value:0deg }
  @keyframes spin    { to { --spin:360deg } }
  @keyframes mq      { to { transform:translateX(-50%) } }
  @keyframes drift   { to { background-position:100% 100% } }
  @keyframes bob     { 0%,100%{translate:0 0} 50%{translate:0 -14px} }
  @keyframes breathe { 0%,100%{transform:scale(1);box-shadow:0 0 0 0 rgba(167,139,250,0)} 50%{transform:scale(1.08);box-shadow:0 0 22px 2px rgba(167,139,250,.35)} }
  @keyframes viewIn  { from{opacity:0;transform:translateY(14px)} to{opacity:1;transform:none} }
  @keyframes flowGlow{ 0%,12%,100%{box-shadow:0 0 0 0 rgba(233,73,219,0);border-color:var(--line-2)} 5%{box-shadow:0 8px 24px -8px rgba(167,139,250,.6),0 0 0 2px rgba(167,139,250,.55);border-color:transparent} }
  @keyframes sweep   { 0%,100%{transform:scaleX(0)} 8%,30%{transform:scaleX(1)} 38%{transform:scaleX(0);transform-origin:right} }
  @keyframes pop     { from{opacity:0;transform:scale(.7) translateY(10px)} to{opacity:1;transform:none} }
  @keyframes shimmer { to{background-position:200% 0} }

  /* inner-page visuals */
  @keyframes vzSpin   { to { transform:rotate(360deg) } }
  @keyframes vzJoin   { 0%{transform:translateX(160px);opacity:0} 25%{opacity:1} 45%,85%{transform:none;opacity:1} 100%{transform:none;opacity:0} }
  @keyframes vzPulse  { 0%,40%{opacity:0;transform:scale(1)} 50%{opacity:.9} 80%,100%{opacity:0;transform:scale(2.4)} }
  @keyframes vzTeam   { 0%,100%{fill:rgba(23,23,33,.14)} 50%{fill:rgba(99,191,244,.45)} }
  @keyframes vzBreathe{ 0%,100%{transform:scale(1)} 50%{transform:scale(1.18)} }
  @keyframes vzDraw   { 0%{stroke-dashoffset:100;opacity:1} 30%{stroke-dashoffset:0} 85%{opacity:1} 100%{stroke-dashoffset:0;opacity:0} }
  @keyframes vzFillIn { 0%,25%{opacity:0;transform:translateY(-10px)} 35%,90%{opacity:.9;transform:none} 100%{opacity:0} }
  @keyframes vzTrend  { 0%{stroke-dashoffset:100} 45%,90%{stroke-dashoffset:0} 100%{stroke-dashoffset:0;opacity:0} }
  @keyframes vzArea   { 0%,30%{opacity:0} 50%,90%{opacity:1} 100%{opacity:0} }
  @keyframes vzPop    { 0%,100%{transform:scale(0)} 12%,85%{transform:scale(1)} }
  @keyframes vzType   { 0%{stroke-dashoffset:100} 55%,100%{stroke-dashoffset:0} }
  @keyframes vzRoute  { 0%{stroke-dasharray:0 100} 60%,100%{stroke-dasharray:100 0} }

  /* ── home hero ── */
  .hero h1 span { animation: rise .9s var(--ease) both; }
  .hero h1 span:nth-child(2) { animation-delay: .12s; }
  .hero h1 .grad { animation: rise .9s var(--ease) .24s both, sheen 9s ease-in-out 1.2s infinite; }
  .hero .lede, .aud { animation: fade .8s ease-out .45s both; }
  .orb.h { animation: orbitA 9s ease-in-out infinite; }
  .orb.m { animation: orbitB 9s ease-in-out infinite; }
  .bubble::before { animation: spin 14s linear infinite; }
  .marquee .row { animation: mq 50s linear infinite; }
  .marquee:hover .row { animation-play-state: paused; }

  /* ── view entrance ── */
  .view.enter { animation: viewIn .5s ease-out both; }
  .view.enter .phero .crumb  { animation: fade .6s ease-out both; }
  .view.enter .phero h1 .w   { animation: rise .8s var(--ease) both; animation-delay: calc(var(--i) * 60ms + 80ms); }
  .view.enter .phero .lede   { animation: fade .8s ease-out .35s both; }
  .view.enter .phero .btns,
  .view.enter .phero .subnav { animation: fade .8s ease-out .5s both; }

  /* ── living details ── */
  .grad  { animation: sheen 10s ease-in-out infinite; }
  .giant { animation: sheen 14s ease-in-out infinite; }
  .card .sw, .eq .sw { animation: breathe 5s ease-in-out infinite; }
  .cards > :nth-child(2n) .sw, .eq > :nth-child(2n) .sw { animation-delay: -2.5s; }
  .tier .lv i.on { animation: shimmer 4s linear infinite; }
  .flow li { animation: flowGlow 8s ease-in-out infinite; animation-delay: calc(var(--i,0) * 1s); }
  .steps li::after {
    content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
    background: var(--iri); transform: scaleX(0); transform-origin: left;
    animation: sweep 9s var(--ease) infinite; animation-delay: calc(var(--i,0) * 1.2s);
  }
  .ring span { animation: pop .5s var(--ease) both; animation-delay: calc(var(--i,0) * 70ms); }
  .cta::before { background-size: 140% 140%; animation: drift 16s ease-in-out infinite alternate; }

  /* ── inner-page visuals ── */
  .vz-orbit.o1 { animation: vzSpin 22s linear infinite; }
  .vz-orbit.o2 { animation: vzSpin 30s linear infinite reverse; }
  .vz-orbit.o3 { animation: vzSpin 12s linear infinite; }
  .vz-core     { animation: vzBreathe 6s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
  .vz-join     { animation: vzJoin 6s var(--ease) infinite; }
  .vz-pulse    { animation: vzPulse 6s ease-out infinite; }
  .vz-team     { animation: vzTeam 6s ease-in-out infinite; animation-delay: calc(var(--i) * 120ms); }
  .vz-draw     { animation: vzDraw 9s var(--ease) infinite; animation-delay: calc(var(--i) * 1.4s); }
  .vz-fill, .vz-label.in { animation: vzFillIn 9s var(--ease) infinite; animation-delay: calc(var(--i) * 1.4s); }
  .vz-trend    { animation: vzTrend 7s var(--ease) infinite; }
  .vz-area     { animation: vzArea 7s ease infinite; }
  .vz-pt       { animation: vzPop 7s var(--ease) infinite; animation-delay: calc(var(--i) * .45s); }
  .vz-type.stroke { animation: vzType 5s var(--ease) infinite alternate; }
  .vz-route-live { animation: vzRoute 6s linear infinite; }
  .vz-stop     { animation: vzBreathe 6s ease-in-out infinite; animation-delay: calc(var(--i) * 1.5s); transform-box: fill-box; transform-origin: center; }

  /* ── scroll-driven reveal ── */
  @supports (animation-timeline: view()) {
    .rev { animation: revIn linear both; animation-timeline: view(); animation-range: entry 0% entry 40%; }
    @keyframes revIn { from { opacity:.35; transform:translateY(36px) scale(.98) } to { opacity:1; transform:none } }
  }
}

@media (prefers-reduced-motion: reduce) { .vz-runner { display: none; } }
