@keyframes hero-enter{from{opacity:0;transform:translateY(22px) scale(.985)}to{opacity:1;transform:none}}
@keyframes float{0%,100%{transform:translateY(0)}50%{transform:translateY(-8px)}}
@keyframes skeleton{to{background-position:-250% 0}}
@keyframes spin{to{transform:rotate(360deg)}}
@keyframes modal-in{from{opacity:0;transform:translateY(16px) scale(.98)}to{opacity:1;transform:none}}
.hero-enter{animation:hero-enter .7s var(--ease) both}.hero-enter:nth-child(2){animation-delay:.06s}.hero-enter:nth-child(3){animation-delay:.12s}.hero-enter:nth-child(4){animation-delay:.18s}.hero-enter:nth-child(5){animation-delay:.24s}.hero-enter:nth-child(6){animation-delay:.3s}.hero-visual.hero-enter{animation-delay:.2s}
.floating-tool{animation:float 5s ease-in-out infinite}.tool-python{animation-delay:-2.2s}.visual-orbit{animation:spin 50s linear infinite}
.js .reveal{opacity:0;transform:translateY(24px) scale(.99);transition:opacity .65s var(--ease),transform .65s var(--ease)}.js .reveal.is-visible{opacity:1;transform:none}
.project-card.filter-enter{animation:hero-enter .3s var(--ease) both}.project-modal[open]{animation:modal-in .22s var(--ease)}
@keyframes caret-blink{0%,100%{opacity:1}50%{opacity:0}}
.rotating-caret{display:inline-block;width:3px;height:.9em;margin-left:6px;vertical-align:-.08em;background:var(--secondary);animation:caret-blink 1s step-end infinite}
@keyframes portrait-float{0%,100%{transform:translateY(0)}50%{transform:translateY(-10px)}}
@keyframes portrait-glow{0%,100%{box-shadow:var(--shadow),0 0 0 0 var(--accent-soft)}50%{box-shadow:var(--shadow),0 0 0 14px transparent}}
.hero-portrait{animation:portrait-float 6s ease-in-out infinite,portrait-glow 4s ease-in-out infinite}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important;scroll-behavior:auto!important}.js .reveal{opacity:1;transform:none}.floating-tool,.visual-orbit{animation:none}}

/* Animated waving person in the contact section */
.contact-person{position:relative;display:flex;align-items:center;gap:12px;margin:26px 0 4px}
.contact-person svg{width:64px;height:64px;padding:10px;box-sizing:border-box;color:var(--secondary);background:var(--accent-soft);border:1px solid var(--border);border-radius:50%;animation:person-bob 3.2s ease-in-out infinite}
.contact-person-bubble{display:inline-block;padding:8px 14px;background:var(--surface);border:1px solid var(--border);border-radius:16px 16px 16px 4px;font-size:.85rem;font-weight:700;animation:person-bob 3.2s ease-in-out infinite;animation-delay:.4s}
.wave-arm{transform-box:view-box;transform-origin:44px 42px;animation:wave 2.2s ease-in-out infinite}
@keyframes wave{0%,100%{transform:rotate(0deg)}25%{transform:rotate(-18deg)}50%{transform:rotate(12deg)}75%{transform:rotate(-14deg)}}
@keyframes person-bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-5px)}}
