/* Angela Sframeli: gentle, finite decorative movement across the site. v0.9.1 */
/* Each element performs one 4.6s cycle on entry (maximum delay 0.2s). */
body.angela-b .angela-main .portrait-outline {
    border: 0;
    pointer-events: none;
}
body.angela-b .angela-main .portrait-outline svg {
    display: block;
    width: 100%;
    height: 100%;
    overflow: visible;
    fill: none;
    stroke: #69bbc6;
    stroke-width: 2;
    stroke-dasharray: 6 7;
    stroke-linecap: round;
}

@keyframes as-site-gentle-sway {
    0%, 100% { translate: 0 0; rotate: 0deg; }
    50% { translate: 0 var(--as-motion-lift, -2px); rotate: var(--as-motion-tilt, 0.35deg); }
}
@keyframes as-site-dash-flow {
    from { stroke-dashoffset: 0; }
    to { stroke-dashoffset: var(--as-motion-dash, -16px); }
}
@keyframes as-site-image-breathe {
    0%, 100% { scale: 1; }
    50% { scale: 1.012; }
}

body.angela-b.as-motion-ready .as-motion-item.as-motion-started {
    animation-name: var(--as-motion-name, as-site-gentle-sway);
    animation-duration: 4.6s;
    animation-delay: var(--as-motion-delay, 0s);
    animation-timing-function: var(--as-motion-easing, ease-in-out);
    animation-iteration-count: 1;
    animation-fill-mode: none;
    animation-play-state: paused;
    /* Preserve the existing pivot when this finite animation starts and ends. */
}
body.angela-b.as-motion-ready[data-motion-state="running"] .as-motion-item.as-motion-started.as-motion-inview {
    animation-play-state: running;
}
body.angela-b [data-as-motion="dash"] {
    --as-motion-name: as-site-dash-flow;
    --as-motion-easing: linear;
}
body.angela-b [data-as-motion="image"] {
    --as-motion-name: as-site-image-breathe;
}

/* Homepage: preserve the original composition and existing rotations. */
body.angela-b .hero-sun {
    --as-motion-delay: 0.1s;
    --as-motion-lift: -2px;
    --as-motion-tilt: 5deg;
}
body.angela-b .child-frame {
    --as-motion-lift: -3px;
    --as-motion-tilt: 0.35deg;
}
body.angela-b .visit-picture {
    --as-motion-delay: 0.1s;
    --as-motion-lift: -2.5px;
    --as-motion-tilt: 0.45deg;
    --as-motion-origin: 50% 15%;
}
body.angela-b .signal-poster {
    --as-motion-delay: 0.2s;
    --as-motion-lift: -2px;
    --as-motion-tilt: -0.4deg;
    --as-motion-origin: 70% 5%;
}
body.angela-b .visit-spark,
body.angela-b .signal-copy h2 svg {
    --as-motion-delay: 0.1s;
    --as-motion-lift: -1px;
    --as-motion-tilt: 4deg;
}
body.angela-b .signal-copy h2 svg { --as-motion-tilt: -4deg; }
body.angela-b .faq-eye,
body.angela-b .portrait-sticker svg,
body.angela-b .card-icon > svg,
body.angela-b .pathways-grid > article > svg,
body.angela-b .journal-art > svg {
    --as-motion-delay: 0.1s;
    --as-motion-lift: -2px;
    --as-motion-tilt: 1.5deg;
}
body.angela-b .contact-sun {
    --as-motion-delay: 0.2s;
    --as-motion-lift: -1px;
    --as-motion-tilt: -5deg;
}
body.angela-b .hero-trail path { --as-motion-dash: -16px; }
body.angela-b .portrait-outline path { --as-motion-dash: -13px; }
body.angela-b .contact-trail path { --as-motion-dash: -15px; }

/* Inner pages: shared suns, sparks, paths, opening photos and illustrations. */
body.angela-b .as-inner-sun {
    --as-motion-delay: 0.1s;
    --as-motion-lift: -1px;
    --as-motion-tilt: 5deg;
}
body.angela-b .as-inner-spark {
    --as-motion-delay: 0.2s;
    --as-motion-lift: -1px;
    --as-motion-tilt: -4deg;
}
body.angela-b .as-inner-icon {
    --as-motion-lift: -2.5px;
    --as-motion-tilt: 1deg;
}
body.angela-b .as-inner-icon--secondary {
    --as-motion-delay: 0.15s;
    --as-motion-lift: -2px;
    --as-motion-tilt: -1deg;
}
body.angela-b .as-page-hero--visit .as-page-hero-photo {
    --as-motion-delay: 0.1s;
    --as-motion-lift: -2.5px;
    --as-motion-tilt: 0.4deg;
    --as-motion-origin: 50% 15%;
}
body.angela-b .as-page-hero--about .as-page-hero-photo,
body.angela-b .as-single .as-article-cover {
    --as-motion-lift: -2px;
    --as-motion-tilt: 0deg;
}
body.angela-b .as-inner-trail path { --as-motion-dash: -13px; }
body.angela-b .as-inner-route > path[stroke-dasharray] { --as-motion-dash: -20px; }

/* Search/404 and archive thumbnails use the same restrained visual language. */
body.angela-b .as-utility-sun {
    --as-motion-delay: 0.1s;
    --as-motion-lift: -1px;
    --as-motion-tilt: 5deg;
}
body.angela-b .as-utility-book,
body.angela-b .as-utility-glasses {
    --as-motion-delay: 0.2s;
    --as-motion-lift: -2px;
    --as-motion-tilt: 1deg;
}
body.angela-b .as-utility-glasses { --as-motion-tilt: -1deg; }

@media (max-width: 700px) {
    body.angela-b .child-frame { --as-motion-lift: -2px; --as-motion-tilt: 0.2deg; }
    body.angela-b .visit-picture,
    body.angela-b .signal-poster,
    body.angela-b .as-page-hero--visit .as-page-hero-photo { --as-motion-lift: -1.5px; --as-motion-tilt: 0.25deg; }
    body.angela-b .hero-sun,
    body.angela-b .as-inner-sun { --as-motion-tilt: 4deg; }
}
@media (prefers-reduced-motion: reduce) {
    body.angela-b .as-motion-item {
        animation: none !important;
        translate: none !important;
        rotate: none !important;
        scale: none !important;
    }
}
@media print {
    body.angela-b .as-motion-item { animation: none !important; }
}
