/* Pre-paint cover bridges full document navigation without a flash. */
html::after{content:'';position:fixed;inset:0;z-index:2147483000;pointer-events:none;background:#141517;visibility:hidden}
html.mm-site-opening::after,html.mm-page-arriving::after{visibility:visible}
html.mm-transition-mounted::after{display:none}
.mm-transition-surface{position:fixed;inset:0;z-index:2147483000;overflow:hidden;pointer-events:none}
.mm-transition-screen{position:absolute;inset:0;background:#141517;will-change:transform}
.mm-transition-cap{position:absolute;left:0;width:100%;height:10vh;overflow:hidden;will-change:height}
.mm-transition-cap.top{top:0;height:0;transform:translateY(-99%) scaleY(-1)}
.mm-transition-cap.bottom{bottom:0;transform:translateY(99%)}
.mm-transition-ellipse{position:absolute;width:150%;height:745%;left:50%;background:#141517;border-radius:50%;transform:translate(-50%,-86.666%)}
.mm-transition-word{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:block;white-space:nowrap;color:#fff;padding:0;font:800 clamp(56px,6vw,96px)/1.065 Sora,sans-serif;letter-spacing:-.035em}

.mm-transition-word.japanese{font-size:clamp(48px,5.2vw,84px)}
@media(max-width:540px){.mm-transition-cap.bottom{height:5vh}.mm-transition-word{font-size:clamp(40px,13vw,64px)}}
@media(prefers-reduced-motion:reduce){html::after,.mm-transition-surface{display:none!important}}
@media(max-width:800px){
 body .site-navigation{transition:height .68s cubic-bezier(.65,0,.2,1),color .25s}
 body .site-navigation.menu-open nav,body.scrolled .site-navigation.menu-open nav{transition:opacity .3s .24s,visibility 0s}
 body .site-navigation.menu-open nav>a,body .site-navigation.menu-open nav>.nav-services{transition:opacity .4s calc(.27s + var(--menu-order,0)*.065s),transform .55s calc(.27s + var(--menu-order,0)*.065s) cubic-bezier(.22,1,.36,1)}
}
@media(max-width:800px) and (prefers-reduced-motion:reduce){body .site-navigation,body .site-navigation nav,body .site-navigation nav>*{transition:none!important}}


.mm-transition-word{font-family:ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;}

/* Destination names can be longer than a navigation label. */
.mm-transition-word { max-width:calc(100vw - 3rem); width:max-content; white-space:normal; text-align:center; text-wrap:balance; font-size:clamp(28px,5vw,72px); line-height:1.12; }

/* Stabilise the curtain while mobile browser toolbars resize the visual viewport. */
.mm-transition-surface { width:100%; height:100%; height:100dvh; }
.mm-transition-screen { backface-visibility:hidden; -webkit-backface-visibility:hidden; }
.mm-transition-word { overflow-wrap:anywhere; }
html.mm-site-opening,html.mm-page-arriving,html.mm-page-leaving { overscroll-behavior:none; }

/* Larger opening greetings and destination names on mobile. */
@media (max-width:800px) {
  .mm-transition-word,
  .mm-transition-word.japanese {
    font-size:clamp(44px,12vw,72px);
    max-width:calc(100vw - 2.5rem);
    line-height:1.1;
  }
}

/* Keep the opening/transition title consistent before main.css is loaded. */
.mm-transition-word { font-family:"DM Serif Display",Georgia,serif; font-weight:400; font-synthesis:none; letter-spacing:-.02em; line-height:1.15; }
