/* AP5 scroll reveal (2026-11-04). Only applies when html.ap5-js is set and ap5-reveal.js has tagged an element [data-ap5-reveal]. */
:root { --ap5-reveal-distance: 24px; --ap5-reveal-duration: .6s; --ap5-reveal-ease: cubic-bezier(.22,.61,.36,1); --ap5-reveal-stagger-distance: 16px; }
html.ap5-js [data-ap5-reveal] { opacity: 0; transform: translateY(var(--ap5-reveal-distance)); transition: opacity var(--ap5-reveal-duration) var(--ap5-reveal-ease), transform var(--ap5-reveal-duration) var(--ap5-reveal-ease); }
html.ap5-js [data-ap5-reveal].ap5-reveal--visible { opacity: 1; transform: none; }
html.ap5-js [data-ap5-reveal] .ap5-reveal-stagger { opacity: 0; transform: translateY(var(--ap5-reveal-stagger-distance)); transition: opacity var(--ap5-reveal-duration) var(--ap5-reveal-ease), transform var(--ap5-reveal-duration) var(--ap5-reveal-ease); transition-delay: calc(var(--ap5-reveal-delay, 0ms) + 120ms); }
html.ap5-js [data-ap5-reveal].ap5-reveal--visible .ap5-reveal-stagger { opacity: 1; transform: none; }
/* Hero: short transform-only load-in (opacity untouched so LCP is unaffected). */
@keyframes ap5-reveal-hero { from { transform: translateY(12px); } to { transform: none; } }
html.ap5-js .ap-hero:not(.ap5-no-reveal) > * { animation: ap5-reveal-hero .5s var(--ap5-reveal-ease) both; }
@media (prefers-reduced-motion: reduce) { html.ap5-js [data-ap5-reveal], html.ap5-js [data-ap5-reveal] .ap5-reveal-stagger { opacity: 1 !important; transform: none !important; transition: none !important; } html.ap5-js .ap-hero > * { animation: none !important; } }
@media print { [data-ap5-reveal], [data-ap5-reveal] .ap5-reveal-stagger { opacity: 1 !important; transform: none !important; } }

/* ===== AP5 animations v2 (2026-11-04 ~4:05 AM ET, Brian approved the stronger version). Rollback: cp ~/backups/animations-0859/ap5-reveal.css back. =====
   Vars: --ap5-reveal-scale, --ap5-reveal-blur, --ap5-float-distance, --ap5-float-duration, --ap5-glass-lift.
   Classes: ap5-glass-hover (opt-in) / ap5-no-glass-hover (opt-out); ap5-float (opt-in, JS toggles ap5-float--paused off screen); ap5-no-float. */
:root { --ap5-reveal-distance: 40px; --ap5-reveal-duration: .8s; --ap5-reveal-scale: .98; --ap5-reveal-blur: 6px; --ap5-reveal-stagger-distance: 24px;
	--ap5-glass-lift: -4px; --ap5-float-distance: -9px; --ap5-float-duration: 7s; }
@media (max-width: 781px) { :root { --ap5-reveal-blur: 4px; --ap5-reveal-distance: 32px; } }
html.ap5-js [data-ap5-reveal] { transform: translateY(var(--ap5-reveal-distance)) scale(var(--ap5-reveal-scale)); filter: blur(var(--ap5-reveal-blur));
	transition: opacity var(--ap5-reveal-duration) var(--ap5-reveal-ease), transform var(--ap5-reveal-duration) var(--ap5-reveal-ease), filter var(--ap5-reveal-duration) var(--ap5-reveal-ease); }
html.ap5-js [data-ap5-reveal].ap5-reveal--visible { transform: none; filter: none; }
html.ap5-js [data-ap5-reveal] .ap5-reveal-stagger { filter: blur(calc(var(--ap5-reveal-blur) * .6)); transition: opacity var(--ap5-reveal-duration) var(--ap5-reveal-ease), transform var(--ap5-reveal-duration) var(--ap5-reveal-ease), filter var(--ap5-reveal-duration) var(--ap5-reveal-ease); transition-delay: calc(var(--ap5-reveal-delay, 0ms) + 160ms); }
html.ap5-js [data-ap5-reveal].ap5-reveal--visible .ap5-reveal-stagger { filter: none; }

/* Glass hover: uses the independent `translate` property so existing transforms (e.g. .ap-plan-pop offset, reveal) are untouched. */
:is(.ap5-glass-hover, .ap-plan, .ap-ip-step, .ap-ex-card, .ap-ip-linkcard, .ap-pp-ds-card, .ap-showcase-card, .ap-pp-xcard, .ap-pp-diy-card, .ap-ca-statcard, .ap-post-card, .ap5-home-int-group):not(.ap5-no-glass-hover) {
	transition: translate .25s ease, box-shadow .25s ease, border-color .25s ease, background-color .25s ease; }
@media (hover: hover) {
	:is(.ap5-glass-hover, .ap-plan, .ap-ip-step, .ap-ex-card, .ap-ip-linkcard, .ap-pp-ds-card, .ap-showcase-card, .ap-pp-xcard, .ap-pp-diy-card, .ap-ca-statcard, .ap-post-card, .ap5-home-int-group):not(.ap5-no-glass-hover):hover {
		border-color: rgba(10,132,255,.35) !important;
		box-shadow: inset 0 1px 0 rgba(255,255,255,.95), inset 0 0 0 1px rgba(255,255,255,.55), 0 30px 60px -30px rgba(0,40,120,.45), 0 8px 18px -12px rgba(0,40,120,.18) !important;
		-webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	:is(.ap5-glass-hover, .ap-plan, .ap-ip-step, .ap-ex-card, .ap-ip-linkcard, .ap-pp-ds-card, .ap-showcase-card, .ap-pp-xcard, .ap-pp-diy-card, .ap-ca-statcard, .ap-post-card, .ap5-home-int-group):not(.ap5-no-glass-hover):hover { translate: 0 var(--ap5-glass-lift); }
}
:is(.ap5-glass-hover, .ap-plan, .ap-ip-step, .ap-ex-card, .ap-ip-linkcard, .ap-pp-ds-card, .ap-showcase-card, .ap-pp-xcard, .ap-pp-diy-card, .ap-ca-statcard, .ap-post-card, .ap5-home-int-group):not(.ap5-no-glass-hover):focus-within {
	border-color: rgba(10,132,255,.45) !important;
	box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 0 0 3px rgba(10,132,255,.18), 0 30px 60px -30px rgba(0,40,120,.45) !important; }

/* Gentle float on phone mockups (homepage). `translate` keyframes, so it composes with reveal transforms. */
@keyframes ap5-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 var(--ap5-float-distance); } }
@media (prefers-reduced-motion: no-preference) {
	html.ap5-js .ap5-float:not(.ap5-no-float) { animation: ap5-float var(--ap5-float-duration) ease-in-out infinite; animation-delay: var(--ap5-float-delay, 0s); }
	html.ap5-js .ap5-float.ap5-float--paused { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
	html.ap5-js [data-ap5-reveal], html.ap5-js [data-ap5-reveal] .ap5-reveal-stagger { filter: none !important; }
	.ap5-float { animation: none !important; translate: none !important; }
}
@media print { [data-ap5-reveal], [data-ap5-reveal] .ap5-reveal-stagger { filter: none !important; } .ap5-float { animation: none !important; translate: none !important; } }

/* ===== AP5 animations v3 (2026-11-04 ~8:55 AM ET): more obvious, fal.ai-style. Rollback: cp ~/backups/anim-loggedin-1352/ap5-reveal.css back. ===== */
:root { --ap5-reveal-distance: 56px; --ap5-reveal-duration: .9s; --ap5-reveal-stagger-distance: 32px; --ap5-glass-lift: -6px; --ap5-float-distance: -12px; --ap5-float-duration: 6s; }
@media (max-width: 781px) { :root { --ap5-reveal-distance: 44px; --ap5-reveal-blur: 4px; } }

/* AP5 home-final (2026-11-04): pause control (WCAG 2.2.2), transcripts. Rollback: delete this block. */
.ap5-motion-wrap{display:flex;margin:16px 0 0}
.ap5-motion-wrap--int{justify-content:center;margin:0 0 18px}
.ap5-motion-toggle{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:0 18px;border-radius:999px;border:1px solid rgba(91,75,219,.45);background:rgba(255,255,255,.92);color:#2b2470;font:600 15px/1.2 inherit;cursor:pointer}
.ap5-motion-toggle:hover{background:#fff}
.ap5-motion-toggle:focus-visible{outline:3px solid #fff;box-shadow:0 0 0 6px #2b2470;outline-offset:0}
.ap5-mt-ico{width:12px;height:14px;border-left:4px solid currentColor;border-right:4px solid currentColor;box-sizing:border-box}
.ap5-motion-toggle[data-paused="true"] .ap5-mt-ico{border:0;border-left:12px solid currentColor;border-top:7px solid transparent;border-bottom:7px solid transparent;width:0;height:0}
html.ap5-motion-paused .ap5-int-track,html.ap5-motion-paused .ap5-float{animation-play-state:paused!important}
@media (prefers-reduced-motion:reduce){.ap5-motion-wrap{display:none}}
.ap5-transcript{max-width:1100px;margin:12px auto 0;padding:0 4px;font-size:15px;line-height:1.55;color:#3d4257}
.ap5-transcript summary{min-height:44px;display:inline-flex;align-items:center;cursor:pointer;font-weight:600;color:#2b2470}
.ap5-transcript summary:focus-visible{outline:3px solid #5B4BDB;outline-offset:2px;border-radius:4px}
.ap5-transcript p{margin:4px 0 0}
