/* Animated scenery and quiet opt-in feedback. All artwork stays in its homepage frame. */
html body .ph-sage-art { min-width:0; margin:0; align-self:center; }
html body .ph-sage-scene { position:relative; isolation:isolate; aspect-ratio:3/2; width:100%; overflow:hidden; border-radius:22px 22px 72px 22px; border:1px solid #bca27466; background:#b8c7bc; box-shadow:0 18px 40px #36544b24,inset 0 0 0 1px #fff5; }
html body .ph-sage-scene img { display:block; width:100%; height:100%; max-width:none; object-fit:cover; transform:scale(1.035); }
.ph-sage-scene::after { content:''; position:absolute; inset:0; pointer-events:none; border-radius:inherit; box-shadow:inset 0 0 28px #54472e26; }
.ph-sage-mist { position:absolute; width:135%; height:40%; left:-18%; bottom:20%; background:radial-gradient(ellipse,#f8f4dc80,transparent 62%); opacity:.3; pointer-events:none; }
.ph-sage-mist.is-far { bottom:45%; opacity:.2; }
.ph-sage-shimmer { position:absolute; inset:74% 0 0; background:repeating-linear-gradient(177deg,transparent 0 15px,#dcebd13d 16px,transparent 18px 27px); opacity:.4; mask-image:linear-gradient(transparent,#0007); pointer-events:none; }
.ph-sage-ring { position:absolute; left:21.5%; top:83%; width:18%; height:5%; border:1px solid #fff6; border-radius:50%; opacity:0; pointer-events:none; }
.ph-sage-ring.is-second { width:13%; left:24%; top:83.5%; }
.ph-sage-leaf { position:absolute; left:14%; top:12%; width:7px; height:4px; background:#d5a64e; border-radius:100% 0 100% 0; opacity:0; pointer-events:none; }
.ph-sage-leaf.is-second { left:39%; top:6%; width:5px; }
.ph-sage-leaf.is-third { left:72%; top:20%; width:6px; }
html body .ph-sage-caption { display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; padding:13px 3px 0; color:var(--ph8570-muted,#5b6e7b); font-size:10px; }
.ph-sage-caption strong { color:var(--ph8570-text,#273e4d); font-size:11px; }
.ph-sage-caption>div { display:flex; gap:7px; }
html body .ph-sage-caption button { padding:5px 8px; border:1px solid var(--ph8570-line,#d8e2eb); background:var(--ph8570-bg,#fff); color:var(--ph8570-text,#273e4d); border-radius:7px; font:inherit; cursor:pointer; }
.ph-sage-caption button:hover { border-color:#779e91; }
html.theme--dark .ph-sage-scene { border-color:#9f835c88; box-shadow:0 18px 40px #0004; }
html.theme--dark .ph-sage-scene img { filter:brightness(.88) saturate(.92); }
.ph-atmosphere-motion .ph-sage-scene.is-playing img { animation:ph-sage-camera 18s ease-in-out infinite alternate; }
.ph-atmosphere-motion .ph-sage-scene.is-playing .ph-sage-mist { animation:ph-sage-mist 13s ease-in-out infinite alternate; }
.ph-atmosphere-motion .ph-sage-scene.is-playing .ph-sage-mist.is-far { animation-duration:19s; animation-direction:alternate-reverse; }
.ph-atmosphere-motion .ph-sage-scene.is-playing .ph-sage-shimmer { animation:ph-sage-water 5s linear infinite; }
.ph-atmosphere-motion .ph-sage-scene.is-playing .ph-sage-ring { animation:ph-sage-ring 4.8s ease-out infinite; }
.ph-atmosphere-motion .ph-sage-scene.is-playing .ph-sage-ring.is-second { animation-delay:2.4s; }
.ph-atmosphere-motion .ph-sage-scene.is-playing .ph-sage-leaf { animation:ph-sage-leaf 10s ease-in-out infinite; }
.ph-atmosphere-motion .ph-sage-scene.is-playing .ph-sage-leaf.is-second { animation-delay:3s; animation-duration:13s; }
.ph-atmosphere-motion .ph-sage-scene.is-playing .ph-sage-leaf.is-third { animation-delay:6s; animation-duration:12s; }
.ph-sage-scene:not(.is-playing) * { animation-play-state:paused!important; }
@keyframes ph-sage-camera { from{transform:scale(1.035) translate(-.3%,.2%)} to{transform:scale(1.075) translate(.5%,-.4%)} }
@keyframes ph-sage-mist { from{transform:translateX(-6%);opacity:.12} to{transform:translateX(6%);opacity:.36} }
@keyframes ph-sage-water { from{transform:translateY(0)} to{transform:translateY(9px)} }
@keyframes ph-sage-ring { 0%{transform:scale(.2);opacity:0} 18%{opacity:.65} 100%{transform:scale(1.8);opacity:0} }
@keyframes ph-sage-leaf { 0%{transform:translate(0,0) rotate(-20deg);opacity:0} 12%{opacity:.7} 80%{opacity:.6} 100%{transform:translate(64px,170px) rotate(230deg);opacity:0} }
.ph-at-controls { position:fixed; z-index:130; left:14px; bottom:14px; font:12px/1.6 system-ui,sans-serif; color:#304450; }
.ph-at-controls>summary { display:flex; align-items:center; gap:7px; list-style:none; padding:8px 11px; border:1px solid #c8d8df; border-radius:11px; background:#fffffff2; box-shadow:0 4px 18px #243e4b12; cursor:pointer; user-select:none; }
.ph-at-controls>summary::-webkit-details-marker { display:none; }
.ph-at-controls svg { width:16px; height:16px; stroke:currentColor; stroke-width:1.6; fill:none; stroke-linecap:round; stroke-linejoin:round; }
.ph-at-controls i { width:5px; height:5px; border-radius:50%; background:#92a0a7; }
.ph-at-controls i.is-on { background:#27876e; box-shadow:0 0 0 3px #27876e16; }
.ph-at-panel { position:absolute; left:0; bottom:49px; width:270px; padding:18px; border:1px solid #c8d8df; border-radius:15px; background:#fffffff9; box-shadow:0 12px 36px #11283230; }
.ph-at-panel strong { display:block; font-size:13px; margin-bottom:12px; }
.ph-at-panel label { display:flex; align-items:center; justify-content:space-between; gap:15px; padding:9px 0; cursor:pointer; }
.ph-at-panel input { accent-color:#277e69; }
.ph-at-panel input[type=checkbox] { width:17px; height:17px; }
.ph-at-panel .ph-at-volume { display:grid; gap:8px; }
.ph-at-panel .ph-at-preview-label { display:grid; gap:7px; }
.ph-at-panel select { width:100%; min-height:36px; padding:6px 8px; color:inherit; background:#f4f8fa; border:1px solid #c8d8df; border-radius:6px; font:inherit; }
.ph-at-volume input { width:100%; }
.ph-at-panel button { width:100%; margin-top:10px; padding:9px; background:#e9f4ef; color:#21654f; border:1px solid #b6d2c7; border-radius:8px; cursor:pointer; font:inherit; }
.ph-at-panel small { display:block; padding-top:10px; color:#647986; font-size:10px; }
.ph-at-controls :is(summary,button,input):focus-visible { outline:2px solid #438cbb; outline-offset:3px; }
html.theme--dark .ph-at-controls { color:#d3e1ea; }
html.theme--dark .ph-at-controls>summary,html.theme--dark .ph-at-panel { border-color:#3a5060; background:#142431f5; }
html.theme--dark .ph-at-panel button { background:#193d35; color:#a6dfc6; border-color:#356153; }
html.theme--dark .ph-at-panel select { background:#1b303e; border-color:#3a5060; color:#d3e1ea; }
html.theme--dark .ph-at-panel small { color:#9db3c2; }
.ph-at-ripple-host { position:relative!important; overflow:hidden!important; }
.ph-at-ripple { position:absolute; z-index:3; width:15px; height:15px; border-radius:50%; background:currentColor; opacity:0; pointer-events:none; animation:ph-at-ripple .6s ease-out; }
@keyframes ph-at-ripple { from{opacity:.13;transform:translate(-50%,-50%) scale(0)} to{opacity:0;transform:translate(-50%,-50%) scale(18)} }
@media(max-width:760px){html body .ph-sage-art{width:100%;max-width:620px;margin:10px auto 0}.ph-sage-scene{border-radius:18px 18px 45px 18px}.ph-at-controls{left:10px;bottom:10px}.ph-at-controls>summary{padding:9px}.ph-at-controls>summary>span{display:none}.ph-at-panel{max-width:calc(100vw - 30px)}}
@media(prefers-reduced-motion:reduce){.ph-sage-scene *,.ph-at-ripple{animation:none!important}.ph-sage-scene img{transform:none!important}}
