/* ViGo motion: shared by all pages, no external dependencies. */
:root { --motion-ease: cubic-bezier(.22, 1, .36, 1); }
@keyframes vigo-arrive {
  from { opacity: 0; translate: 0 22px; }
  to { opacity: 1; translate: 0 0; }
}
@keyframes vigo-float {
  0%, 100% { translate: 0 0; rotate: -2deg; }
  50% { translate: 0 -10px; rotate: 2deg; }
}
@keyframes vigo-orbit {
  0%, 100% { translate: 0 0; scale: 1; }
  50% { translate: -24px 28px; scale: 1.08; }
}
@keyframes vigo-dialog {
  from { opacity: 0; translate: 0 14px; scale: .98; }
  to { opacity: 1; translate: 0 0; scale: 1; }
}
/* Elements stay visible if JavaScript is unavailable. */
.vigo-arrive { animation: vigo-arrive .75s var(--motion-ease) both; animation-delay: var(--motion-delay, 0ms); }
.vigo-pending { opacity: 0; translate: 0 22px; }
.visual::before { animation: vigo-orbit 14s ease-in-out infinite; }
.float-icon { animation: vigo-float 5s ease-in-out infinite; }
.float-icon:nth-child(2n) { animation-delay: -1.7s; animation-duration: 6s; }
.float-icon:nth-child(3n) { animation-delay: -3.2s; }
/* Stop decorative motion after a brief introduction. */
.vigo-motion-settled .float-icon,
.vigo-motion-settled .visual::before { animation: none; }
.vigo-paused *, .vigo-paused *::before { animation-play-state: paused !important; }
:is(.quick-card, .module-card, .content-card, .card) {
  transition: translate .28s var(--motion-ease), box-shadow .28s ease, border-color .28s ease;
}
:is(button, .promo-btn, .dashboard-btn, .open-module, .policy-action) {
  transition: translate .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.input { transition: box-shadow .25s ease, border-color .25s ease; }
.input:focus-within { box-shadow: 0 0 0 4px rgb(11 98 232 / 12%); border-color: #0b62e8; }
:is(button, a, input, select):focus-visible { outline: 3px solid #10b9d5; outline-offset: 4px; }
.policy-dialog[open] { animation: vigo-dialog .3s var(--motion-ease) both; }
@media (hover: hover) and (pointer: fine) {
  :is(.quick-card, .module-card, .content-card, .card):hover {
    translate: 0 -4px;
    box-shadow: 0 18px 38px rgb(34 72 135 / 16%);
  }
  :is(button, .promo-btn, .dashboard-btn, .open-module, .policy-action):hover { translate: 0 -2px; }
}
:is(button, .promo-btn, .dashboard-btn, .open-module, .policy-action):active { translate: 0 1px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto !important; }
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .vigo-pending, .vigo-arrive { opacity: 1; translate: none; }
}

/* Motion v2: an animated scene throughout the visit. */
@keyframes scene-drift { 0%,100% { transform: translate3d(-5%,-4%,0) scale(1); } 50% { transform: translate3d(12%,8%,0) scale(1.18); } }
@keyframes particle-rise { 0% { opacity:0; translate:0 30px; } 25%,75% { opacity:.65; } 100% { opacity:0; translate:24px -70px; } }
@keyframes orbit-turn { to { transform: rotate(360deg); } }
@keyframes chip-float { 0%,100% { translate:0 0; } 50% { translate:0 -14px; } }
@keyframes line-flow { to { stroke-dashoffset:-180; } }
@keyframes icon-sway { 0%,100% { rotate:-4deg; } 50% { rotate:6deg; } }
.hero-card, .visual { isolation:isolate; }
.motion-scene { position:absolute; inset:0; overflow:hidden; pointer-events:none; z-index:-1; border-radius:inherit; }
.hero-card > .motion-scene { z-index:0; }
.hero-copy, .hero-visual { position:relative; z-index:1; }
.motion-orb { position:absolute; border-radius:50%; filter:blur(35px); animation:scene-drift 14s ease-in-out infinite; }
.orb-one { width:380px; height:380px; background:rgb(99 102 241 / 35%); left:-8%; top:-20%; }
.orb-two { width:320px; height:320px; background:rgb(89 255 227 / 27%); right:-5%; top:10%; animation-delay:-7s; }
.orb-three { width:240px; height:240px; background:rgb(52 177 255 / 38%); left:40%; bottom:-20%; animation-delay:-3s; }
.motion-grid { position:absolute; inset:0; width:100%; height:100%; fill:none; stroke:rgb(255 255 255 / 22%); stroke-width:1; stroke-dasharray:6 12; animation:line-flow 18s linear infinite; }
.motion-particle { position:absolute; width:4px; height:4px; border-radius:50%; background:#bcfff3; box-shadow:0 0 12px #a6ffed; animation:particle-rise var(--particle-duration) linear var(--particle-delay) infinite; }
.motion-orbit { position:absolute; inset:8% 6%; pointer-events:none; translate:var(--scene-x,0px) var(--scene-y,0px); transition:translate .35s ease-out; }
.motion-orbit i { position:absolute; inset:0; border:1px solid rgb(255 255 255 / 25%); border-radius:50%; animation:orbit-turn 30s linear infinite; }
.motion-orbit i:nth-child(2) { inset:12%; border-style:dashed; animation-direction:reverse; animation-duration:40s; }
.motion-orbit i::after { content:''; position:absolute; left:14%; top:14%; width:10px; height:10px; border-radius:50%; background:#9bffe8; box-shadow:0 0 20px #8effdc; }
.hero-image { position:relative; z-index:1; }
.motion-chips { position:absolute; inset:0; z-index:2; pointer-events:none; translate:var(--scene-x,0px) var(--scene-y,0px); transition:translate .35s ease-out; }
.motion-chip { position:absolute; display:flex; align-items:center; gap:9px; padding:12px 15px; border:1px solid rgb(255 255 255 / 45%); border-radius:16px; color:#fff; background:rgb(5 37 97 / 65%); backdrop-filter:blur(12px); box-shadow:0 14px 30px rgb(0 35 90 / 16%); font:600 12px/1.3 Inter,Arial,sans-serif; white-space:nowrap; animation:chip-float 5s ease-in-out infinite; }
.motion-chip b { color:#8fffe2; font-size:21px; }
.chip-agenda { top:12%; left:0; }
.chip-doc { top:44%; right:0; animation-delay:-1.8s; }
.chip-media { bottom:8%; left:3%; animation-delay:-3.3s; }
.quick-card:hover .quick-icon { animation:icon-sway .7s ease-in-out; }
.quick-card b, .promo-btn span, .hero-search button span { display:inline-block; transition:translate .25s ease; }
.quick-card:hover b, .promo-btn:hover span, .hero-search button:hover span { translate:4px 0; }
.activity-row { transition:background .25s ease, translate .25s ease; }
.activity-row:hover { background:rgb(11 98 232 / 4%); translate:4px 0; }
.motion-toggle { position:fixed; right:18px; bottom:18px; z-index:100; padding:10px 15px; border:1px solid #d3e3ee; border-radius:999px; background:#fff; color:#12365b; box-shadow:0 4px 20px rgb(7 26 86 / 14%); font:600 12px/1.2 Inter,Arial,sans-serif; cursor:pointer; }
.motion-user-paused .motion-scene *, .motion-user-paused .motion-orbit *, .motion-user-paused .motion-chip, .motion-user-paused .float-icon, .motion-user-paused .visual::before { animation-play-state:paused !important; }
@media(max-width:600px) {
  .motion-chip { font-size:10px; padding:8px 10px; gap:6px; }
  .motion-chip b { font-size:16px; }
  .chip-agenda { left:2%; top:15%; }
  .chip-doc { right:3%; top:48%; }
  .motion-toggle { right:12px; bottom:12px; }
  .quick-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .quick-card { min-width:0; gap:6px; padding:10px 8px; }
}
@media(prefers-reduced-motion:reduce) {
  .motion-toggle, .motion-particle { display:none; }
  .motion-orbit, .motion-chips { translate:none; }
  .motion-scene *, .motion-orbit *, .motion-chip { animation:none !important; }
}
/* Interactive shortcuts stay still so they remain easy to click or focus. */
.motion-chips{translate:none!important}
a.motion-chip{animation:none!important;text-decoration:none;pointer-events:auto}
a.motion-chip:focus-visible{outline:3px solid #fff;outline-offset:4px}
