/* Animate the original transparent artwork directly, retaining its crisp edges. */
.hero-art .crest-stage{position:relative;width:100%;height:390px;isolation:isolate}
.hero-art .crest-motion-toggle{font-size:11px;line-height:1.4;padding:5px 10px;border:1px solid #d5d1c2;border-radius:20px;background:#f9f7f0;color:#6e6956;min-height:27px}
.crest-stage>img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;pointer-events:none;user-select:none}
.crest-stage .crest-original{opacity:1}
.crest-stage .crest-piece{opacity:0}
.crest-stage.is-ready:not(.is-still) .crest-original{opacity:0}
.crest-stage.is-ready:not(.is-still) .crest-piece{animation:crest-settle 10s cubic-bezier(.22,.75,.25,1) infinite both;will-change:transform,opacity}
.crest-left{clip-path:polygon(0 0,35.08% 0,35.08% 100%,0 100%);--from-x:-8px;--from-y:3px;--enter:0s}
.crest-right{clip-path:polygon(74.92% 0,100% 0,100% 100%,74.92% 100%);--from-x:8px;--from-y:3px;--enter:.16s}
.crest-monogram{clip-path:polygon(35% 0,75% 0,75% 42.08%,35% 42.08%);--from-x:0px;--from-y:7px;--enter:.32s}
.crest-lettering{clip-path:polygon(35% 42%,75% 42%,75% 72.08%,35% 72.08%);--from-x:0px;--from-y:9px;--enter:.48s}
.crest-foundation{clip-path:polygon(35% 72%,75% 72%,75% 100%,35% 100%);--from-x:0px;--from-y:6px;--enter:.64s}
.crest-stage.is-ready:not(.is-still) .crest-piece{animation-delay:var(--enter)}
.crest-stage .crest-light{position:absolute;inset:0;pointer-events:none;opacity:0;background:linear-gradient(108deg,transparent 35%,rgba(255,250,222,.1) 43%,rgba(255,250,222,.65) 49%,rgba(255,250,222,.1) 55%,transparent 63%);background-size:320% 100%;background-position:150% 50%;mask:url('assets/uzuri-crest-still.png') center/contain no-repeat;-webkit-mask:url('assets/uzuri-crest-still.png') center/contain no-repeat;mix-blend-mode:screen}
.crest-stage.is-ready:not(.is-still) .crest-light{animation:crest-light-pass 10s ease-in-out infinite}
.crest-stage.is-paused .crest-piece,.crest-stage.is-paused .crest-light{animation-play-state:paused!important}
.crest-stage.is-still .crest-original{opacity:1}
.crest-stage.is-still .crest-piece,.crest-stage.is-still .crest-light{animation:none;opacity:0}
@keyframes crest-settle{0%{opacity:0;transform:translate(var(--from-x),var(--from-y))}3%{opacity:0}20%,85%{opacity:1;transform:translate(0,0)}94%,100%{opacity:0;transform:translate(0,0)}}
@keyframes crest-light-pass{0%,28%{opacity:0;background-position:150% 50%}33%{opacity:.45}48%{opacity:.45;background-position:-50% 50%}53%,100%{opacity:0;background-position:-50% 50%}}
@media(max-width:1100px){.hero-art .crest-stage{height:370px}}
@media(max-width:750px){.hero-art .crest-stage{height:300px}}
@media(max-width:500px){.hero-art .crest-stage{height:90px}.hero-art .crest-motion-toggle{font-size:9px;top:-23px;right:0;min-height:22px;padding:3px 8px;white-space:nowrap}.crest-left{--from-x:-3px;--from-y:1px}.crest-right{--from-x:3px;--from-y:1px}.crest-monogram{--from-y:3px}.crest-lettering{--from-y:4px}.crest-foundation{--from-y:2px}}
