/* A single, section-bound pearl in a different pocket of negative space per
   route. No element is fixed to the viewport. The unenhanced site is static. */
.miva-page-pearl {display:none}
@media screen and (prefers-reduced-motion:no-preference) and (forced-colors:none) {
 body.motion-on .miva-page-pearl {
   display:block;pointer-events:none;user-select:none;overflow:hidden;contain:paint;
 }
 /* From the high house lights, not across faces, the logo, or the caption.
    The graphic fades to alpha zero on every edge before reaching its slot. */
 body[data-page="about"] .panorama-image {position:relative}
 body[data-page="about"] .panorama-image > .miva-page-pearl {
   position:absolute;z-index:1;top:1%;right:1%;width:min(40%,34rem);height:31%;
   --pearl-h:92%;--pearl-w:94%;
 }
 /* Absolute positioning within the EXISTING object grid track. The opaque
    archival photograph paints in front, the caption/title occupy other space.
    A slim halo is intentional when the photo fills the phone. */
 body[data-page="trophy"] .cup-hero > .miva-page-pearl {
   position:absolute;grid-area:object;inset-block:11% 41%;inset-inline:0;z-index:-1;
   --cup-w:clamp(340px,calc((100svh - 240px)*.75188),440px);
   --pearl-w:clamp(150px,36vw,510px);--pearl-h:98%;
   --pearl-x:calc(50% + var(--cup-w) * .5 - var(--pearl-w) * .65);
 }
 @media(max-width:760px) {
   body[data-page="trophy"] .cup-hero > .miva-page-pearl {
     /* central grid is the wrap; extend the halo, not the scroll width */
     inset-inline:calc(50% - 49.5vw);
     --cup-w:min(86vw,340px);--pearl-w:clamp(76px,calc((100vw - min(86vw,340px))*2),260px);
   }
 }
 /* The kicker text takes its complete natural width first. Remaining inline
    space alone is available for art; the cap falls to zero on small/zoomed
    screens without squeezing the text. Do not change heading/notice layout. */
 body[data-page="registration"] .reg-hero-copy > .small-label {
   display:flex;align-items:stretch;
 }
 body[data-page="registration"] .pearl-kicker-label {flex:0 1 auto;min-width:0}
 body[data-page="registration"] .reg-hero-copy .miva-page-pearl {
   position:relative;align-self:stretch;flex:1 1 0;min-inline-size:0;
   --pearl-w:min(92%,15rem);--pearl-h:100%;--pearl-x:5%;
 }
 /* Only one prerendered translucent surface changes transform and opacity.
    Offscreen, hidden tab, unavailable observer or disabled motion never runs. */
 body.motion-on .miva-page-pearl[data-pearl-in-view]::before {
   content:"";position:absolute;inset-inline-start:var(--pearl-x,1%);inset-block-start:2%;
   width:var(--pearl-w);height:var(--pearl-h);
   background:url("assets/miva-pearl-v223.webp") center/100% 100% no-repeat;
   transform-origin:46% 53%;animation:miva-local-pearl-v223 11s ease-in-out -3s infinite alternate;
 }
 body.motion-paused .miva-page-pearl::before {animation-play-state:paused!important}
}
@keyframes miva-local-pearl-v223 {
 from {opacity:.64;transform:translate(-1.8%,3%) scale(.94,.89)}
 to {opacity:.97;transform:translate(1.5%,-2%) scale(1,1.04)}
}
