/* Motion is opt-in through enhancement classes; no hidden content without JS. */
.motion-reveal{opacity:0;translate:var(--motion-x,0px) var(--motion-y,100px);transition:opacity .8s ease,translate .8s ease;transition-delay:var(--motion-delay,0ms)}
.motion-reveal[data-motion=right]{--motion-x:-100px;--motion-y:0px}
.motion-reveal[data-motion=left]{--motion-x:100px;--motion-y:0px}
.motion-reveal[data-motion=down]{--motion-x:0px;--motion-y:-100px}
.motion-reveal[data-motion=fade]{--motion-x:0px;--motion-y:0px}
.motion-reveal.motion-visible{opacity:1;translate:0 0}

.hero-art-3d.has-slideshow .hero-depth{display:grid;isolation:isolate;overflow:hidden;border-radius:24px;aspect-ratio:3 / 2;box-shadow:0 12px 32px #58401e24}
.hero-art-3d.has-slideshow .hero-render.hero-slide{grid-area:1/1;width:100%;height:100%;aspect-ratio:3 / 2;object-fit:cover;object-position:center;border-radius:0;opacity:0;transition:opacity .6s ease;box-shadow:none;pointer-events:none;z-index:0}
.hero-art-3d.has-slideshow .hero-render.hero-slide.is-active{opacity:1;z-index:1}
.hero-art-3d .hero-slide-controls{display:flex;align-items:center;justify-content:center;gap:10px;padding:14px 0 4px;position:relative;z-index:2}
.hero-art-3d .hero-slide-controls button{display:grid;place-items:center;min-width:44px;min-height:44px;padding:8px;border-radius:50%;border:1px solid #a98a52;background:#f5ebd8;color:#483b26;box-shadow:none;transform:none!important;position:static!important}
.hero-art-3d .hero-slide-controls button:hover{background:#e7d5af;box-shadow:none}
.hero-art-3d .hero-slide-controls [data-hero-slide]{width:14px;min-width:14px;height:14px;min-height:14px;padding:0;border:2px solid #9c7e48;background:transparent;position:relative!important}
.hero-art-3d .hero-slide-controls [data-hero-slide]::before{content:'';position:absolute;inset:-15px}
.hero-art-3d .hero-slide-controls [data-hero-slide].active{background:#9c7e48}
.hero-art-3d .hero-slide-count{font:500 12px Manrope,system-ui,sans-serif;min-width:36px;text-align:center;color:#4c4537}
.hero-art-3d.has-slideshow .motion-toggle{display:block;position:static!important;margin:8px auto 0;min-height:44px;padding:10px 16px;color:#554527;background:#f7edda;border-color:#b2996a;transform:none!important;box-shadow:none}
.hero-art-3d .motion-toggle:disabled{opacity:.7;cursor:default}
.hero-slide-controls button:focus-visible,.motion-toggle:focus-visible{outline:3px solid #95723a;outline-offset:4px}
.motion-image-frame{overflow:hidden;border-radius:22px}
.motion-image-frame img{transition:transform .4s ease-in-out;transform-origin:center}
@media(hover:hover) and (pointer:fine){.motion-image-frame:hover img,.motion-image-frame:focus-within img{transform:scale(1.08)}}
/* Native dialogs animate both open and close on browsers with discrete transitions. */
dialog{opacity:0;transition:opacity .6s ease-in-out,display .6s allow-discrete,overlay .6s allow-discrete}
dialog[open]{opacity:1}
dialog::backdrop{opacity:0;transition:opacity .6s ease-in-out,display .6s allow-discrete,overlay .6s allow-discrete}
dialog[open]::backdrop{opacity:1}
@starting-style{dialog[open]{opacity:0}dialog[open]::backdrop{opacity:0}}
/* Inner dialog steps use a brief fade, preserving form elements. */
#modal-body>h2,#modal-body>p,#modal-body>form,#gb-assistant-body>h3,#gb-assistant-body>.gb-choice,#gb-assistant-body>form{animation:gb-panel-enter .4s ease-in-out both}
@keyframes gb-panel-enter{from{opacity:0}to{opacity:1}}
@media(max-width:650px){.hero-art-3d.has-slideshow .hero-depth{border-radius:18px}.hero-art-3d .hero-slide-controls{gap:12px}}
body.motion-paused .motion-reveal{opacity:1;translate:none;transition:none}
body.motion-paused .hero-slide,body.motion-paused .motion-image-frame img,body.motion-paused dialog,body.motion-paused dialog::backdrop{transition:none!important}
body.motion-paused .motion-image-frame img{transform:none!important}
body.motion-paused #modal-body>*,body.motion-paused #gb-assistant-body>*{animation:none!important}
@media(prefers-reduced-motion:reduce){.motion-reveal{opacity:1;translate:none;transition:none!important}.hero-art-3d .hero-slide,.motion-image-frame img,dialog,dialog::backdrop{transition:none!important}.motion-image-frame:hover img{transform:none!important}#modal-body>*,#gb-assistant-body>*{animation:none!important}}
.hero-art-3d:not(.has-slideshow) .hero-slide:not(.is-active),.hero-art-3d:not(.has-slideshow) .hero-slide-controls{display:none}
@media(hover:hover) and (pointer:fine){.hero-art-3d.has-slideshow .hero-render.hero-slide{transition:opacity .6s ease,transform .4s ease-in-out}.hero-art-3d.has-slideshow .hero-depth:hover .hero-slide.is-active{transform:scale(1.08)}}
@media(prefers-reduced-motion:reduce){.hero-art-3d.has-slideshow .hero-render.hero-slide{transition:none!important;transform:none!important}}
body.motion-paused .hero-art-3d .hero-slide{transform:none!important}

@media(max-width:991.98px){.hero-art-3d.has-slideshow .hero-render.hero-slide{transition-duration:.8s,.4s}}


/* Same entrance animations on phones; cap sideways travel to avoid overflow. */
@media(max-width:767px){
 .motion-reveal[data-motion=right]{--motion-x:-36px}
 .motion-reveal[data-motion=left]{--motion-x:36px}
 .motion-reveal[data-motion=down]{--motion-y:-36px}
 .motion-reveal[data-motion=up]{--motion-y:48px}
 .hero-art-3d .hero-slide-controls{max-width:100%;flex-wrap:wrap}
}
.motion-image-frame.motion-touch-zoom img{transform:scale(1.08)}
body.motion-paused .motion-image-frame.motion-touch-zoom img{transform:none!important}
@media(prefers-reduced-motion:reduce){.motion-image-frame.motion-touch-zoom img{transform:none!important}}
