/* v31: keep comparison cards aligned without zooming interior imagery */
#before-after-gallery .compare-card:nth-child(3) .compare-stage{aspect-ratio:4/5!important;max-height:none!important;background:#09120d!important}
#before-after-gallery .compare-card:nth-child(3) .compare-stage img{object-fit:contain!important;object-position:center center!important}
@media(max-width:700px){#before-after-gallery .compare-card:nth-child(3) .compare-stage{aspect-ratio:4/4.5!important}}
/* Darken the small distracting neon highlight at the upper right of the interior photo only. */
#before-after-gallery .compare-card:nth-child(3) .compare-stage::after{content:"";position:absolute;right:0;top:0;width:30%;height:9%;pointer-events:none;z-index:4;background:linear-gradient(180deg,rgba(5,18,10,.96),rgba(5,18,10,.70) 70%,transparent);border-top-right-radius:13px}
/* v31: animate the visible flag in the LARGE homepage mascot artwork, not the nav wordmark. */
.hero .hero-visual.gr106-art{isolation:isolate!important;position:relative!important}
.hero .hero-visual.gr106-art .gr31-flag-wave{position:absolute;inset:0;pointer-events:none;z-index:1;background-image:url('/grime-reapers-logo-transparent-v121.webp');background-position:center center;background-size:100% 100%;background-repeat:no-repeat;will-change:transform;transform-origin:center 20%;filter:brightness(1.06) saturate(1.08)}
.hero .hero-visual.gr106-art .gr31-flag-wave--stars{clip-path:polygon(0% 0%,45% 0%,42% 7%,35% 10%,31% 14%,28% 20%,22% 24%,18% 33%,11% 40%,0% 47%);animation:gr31WaveStars 2.4s ease-in-out infinite}
.hero .hero-visual.gr106-art .gr31-flag-wave--stripes{clip-path:polygon(50% 0%,100% 0%,100% 70%,93% 61%,89% 49%,84% 42%,82% 31%,74% 27%,69% 22%,63% 18%,57% 14%,51% 11%);animation:gr31WaveStripes 2.1s ease-in-out infinite}
@keyframes gr31WaveStars{0%,100%{transform:skewY(-1deg) scaleX(.985) translateX(-.6%)}50%{transform:skewY(2deg) scaleX(1.02) translateX(.7%)}}
@keyframes gr31WaveStripes{0%,100%{transform:skewY(2deg) scaleX(1.01) translateX(-.6%)}50%{transform:skewY(-2deg) scaleX(.98) translateX(1%)}}
.hero .hero-visual.gr106-art .gr106-flag-shimmer{z-index:3!important}
@media(prefers-reduced-motion:reduce){.hero .hero-visual.gr106-art .gr31-flag-wave{animation:none!important}}
