:root { --ansor-motion-ready: 1; }
.ansor-motion #navbar { transition: box-shadow .3s ease, background-color .3s ease; }
.ansor-motion #navbar.ansor-nav-scrolled { background: rgb(255 255 255 / .98); box-shadow: 0 8px 30px rgb(var(--ansor-darkgreen) / .12); }
.ansor-scroll-progress { position: absolute; inset: auto 0 0; height: 3px; background: linear-gradient(90deg, rgb(var(--ansor-green)), rgb(var(--ansor-gold))); transform: scaleX(0); transform-origin: left; pointer-events: none; }
.ansor-motion #desktop-menu a[aria-current="location"]:not([href="#kontak"]) { color: rgb(var(--ansor-green)); border-bottom-color: rgb(var(--ansor-gold)); }
.ansor-motion #mobile-menu a[aria-current="location"]:not([href="#kontak"]) { color: rgb(var(--ansor-green)); border-left: 3px solid rgb(var(--ansor-gold)); padding-left: 12px; }
.ansor-ambient { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.ansor-ambient-glow { position: absolute; width: 70%; height: 130%; top: -35%; right: -15%; border-radius: 50%; background: radial-gradient(ellipse, rgb(var(--ansor-gold) / .2), rgb(var(--ansor-lightgreen) / .1) 40%, transparent 68%); animation: ansor-aura 18s ease-in-out infinite alternate; }
.ansor-ambient-ring { position: absolute; width: min(78vw, 880px); aspect-ratio: 1; top: -20%; right: -14%; border: 1px solid rgb(var(--ansor-gold) / .16); border-radius: 50%; animation: ansor-orbit 36s linear infinite; }
.ansor-ambient-ring::before, .ansor-ambient-ring::after { content: ""; position: absolute; inset: 12%; border: 1px solid rgb(255 255 255 / .07); border-radius: 50%; }
.ansor-ambient-ring::after { inset: 27%; border-color: rgb(var(--ansor-gold) / .12); }
.ansor-ambient-ring > span { position: absolute; top: 14%; left: 14%; width: 7px; height: 7px; border-radius: 50%; background: rgb(var(--ansor-gold) / .8); box-shadow: 0 0 18px rgb(var(--ansor-gold) / .45); }
.ansor-ambient-dots { position: absolute; inset: 0; opacity: .65; background-image: radial-gradient(circle at 12% 20%, rgb(var(--ansor-gold) / .6) 1.5px, transparent 2px), radial-gradient(circle at 42% 80%, rgb(255 255 255 / .5) 1px, transparent 2px), radial-gradient(circle at 85% 35%, rgb(var(--ansor-gold) / .7) 2px, transparent 3px), radial-gradient(circle at 65% 12%, rgb(255 255 255 / .5) 1px, transparent 2px); animation: ansor-drift 12s ease-in-out infinite alternate; }
.ansor-ambient > * { animation-play-state: paused; }
.ansor-motion.ansor-hero-visible:not(.ansor-motion-paused) .ansor-ambient > * { animation-play-state: running; }
.ansor-motion .ansor-hero-stage { perspective: 1200px; }
.ansor-motion .ansor-hero-photo { transition: transform .55s cubic-bezier(.2,.75,.25,1), box-shadow .4s ease; box-shadow: 0 26px 65px rgb(0 24 14 / .3), 0 0 0 1px rgb(var(--ansor-gold) / .2); }
.ansor-motion .ansor-hero-photo::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(115deg, transparent 20%, rgb(255 255 255 / .13) 46%, transparent 70%); opacity: 0; transform: translateX(-70%); }
.ansor-motion .ansor-stat { font-variant-numeric: tabular-nums; }
.ansor-motion .ansor-card { transition: transform .35s cubic-bezier(.2,.75,.25,1), box-shadow .35s ease, border-color .35s ease; }
.ansor-motion #beranda a, .ansor-motion #kontak button[type="submit"], .ansor-motion [data-pengurus-filter], .ansor-motion [data-berita-filter], .ansor-motion .footer-social-link { transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, color .25s ease; }
.ansor-motion #beranda a:active, .ansor-motion #kontak button[type="submit"]:active, .ansor-motion [data-pengurus-filter]:active, .ansor-motion [data-berita-filter]:active { transform: scale(.97); }
.ansor-motion :where(a, button, input, textarea, select):focus-visible { outline: 3px solid rgb(var(--ansor-gold)); outline-offset: 4px; }
.ansor-motion :where(input, textarea, select) { transition: border-color .2s ease, box-shadow .2s ease; }
.ansor-motion:not(.ansor-motion-paused) #mobile-menu:not(.hidden) { animation: ansor-menu-in .25s ease-out; }
.ansor-motion:not(.ansor-motion-paused) dialog[open] { animation: ansor-dialog-in .28s cubic-bezier(.2,.75,.25,1); }
.ansor-motion:not(.ansor-motion-paused) dialog[open]::backdrop { animation: ansor-backdrop-in .25s ease-out; }
.ansor-motion-toggle { position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom)); z-index: 55; width: 40px; height: 40px; display: grid; place-items: center; padding: 10px; border-radius: 50%; border: 1px solid rgb(var(--ansor-gold) / .5); background: rgb(var(--ansor-darkgreen)); color: rgb(var(--ansor-gold)); box-shadow: 0 5px 20px rgb(0 0 0 / .16); cursor: pointer; }
.ansor-motion-toggle svg { width: 18px; height: 18px; fill: currentColor; }
.ansor-motion-toggle:hover { background: rgb(var(--ansor-green)); }
.ansor-motion-toggle:focus-visible { outline: 3px solid rgb(var(--ansor-gold)); outline-offset: 4px; }
.ansor-motion-paused .ansor-ambient > * { animation-play-state: paused !important; }
.ansor-motion-paused .ansor-hero-photo { transform: none !important; }
.ansor-motion-paused { scroll-behavior: auto !important; }
.ansor-motion-paused *, .ansor-motion-paused *::before, .ansor-motion-paused *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }

@media (hover: hover) and (pointer: fine) and (min-width: 1024px) {
    .ansor-motion:not(.ansor-motion-paused) .ansor-hero-photo { transform: rotateX(var(--ansor-tilt-x, 0deg)) rotateY(var(--ansor-tilt-y, 0deg)); }
    .ansor-motion:not(.ansor-motion-paused) .ansor-hero-stage:hover .ansor-hero-photo { box-shadow: 0 32px 75px rgb(0 24 14 / .4), 0 0 30px rgb(var(--ansor-gold) / .12); }
    .ansor-motion:not(.ansor-motion-paused) .ansor-hero-stage:hover .ansor-hero-photo::after { animation: ansor-sheen .9s ease-out; }
    .ansor-motion:not(.ansor-motion-paused) .ansor-card:hover { transform: translateY(-7px); box-shadow: 0 18px 36px rgb(var(--ansor-darkgreen) / .13); border-color: rgb(var(--ansor-gold) / .65); }
    .ansor-motion:not(.ansor-motion-paused) #beranda a:hover, .ansor-motion:not(.ansor-motion-paused) #kontak button[type="submit"]:not(:disabled):hover { transform: translateY(-3px); box-shadow: 0 12px 26px rgb(0 0 0 / .17); }
    .ansor-motion:not(.ansor-motion-paused) .footer-social-link:hover { transform: translateY(-3px); }
}
@media (max-width: 767px) {
    .ansor-ambient-ring { width: 110vw; top: 5%; right: -45%; }
    .ansor-ambient-dots { display: none; }
    .ansor-ambient-glow { width: 130%; right: -50%; }
}
@media (prefers-reduced-motion: reduce) {
    .ansor-motion *, .ansor-motion *::before, .ansor-motion *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .ansor-motion .ansor-hero-photo, .ansor-motion .ansor-card { transform: none !important; }
    .ansor-motion-toggle { display: none; }
}
@keyframes ansor-aura { from { transform: translate3d(-3%, 0, 0) scale(.95); } to { transform: translate3d(5%, 8%, 0) scale(1.08); } }
@keyframes ansor-orbit { to { transform: rotate(360deg); } }
@keyframes ansor-drift { from { transform: translateY(-8px); } to { transform: translateY(12px); } }
@keyframes ansor-sheen { 0% { opacity: 0; transform: translateX(-70%); } 35% { opacity: 1; } 100% { opacity: 0; transform: translateX(70%); } }
@keyframes ansor-menu-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ansor-dialog-in { from { opacity: 0; transform: translateY(15px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes ansor-backdrop-in { from { opacity: 0; } to { opacity: 1; } }
