/* ===== Motion v6: richer entrances, smooth scroll, page transitions ===== */
/* hold the first screen's entrances until the loading screen lifts */
html.ldr-on .reveal.in{opacity:0;transform:translateY(34px)}
html.ldr-on .words.in .w>span{transform:translateY(110%)}

/* cards and tiles rise one after another */
.m-up{opacity:0;translate:0 44px;transition:opacity .9s cubic-bezier(.2,.8,.2,1),translate 1s cubic-bezier(.2,.8,.2,1)}
.m-up.m-in{opacity:1;translate:0 0}

/* photos unveil from the bottom and settle */
.m-img{clip-path:inset(100% 0 0 0);scale:1.14;transition:clip-path 1.25s cubic-bezier(.77,0,.18,1),scale 1.8s cubic-bezier(.2,.8,.2,1)}
.m-img.m-in{clip-path:inset(0 0 0 0);scale:1}

/* eyebrow gold line draws itself */
.m-eb::before,.m-eb::after{transform:scaleX(0);transition:transform 1.1s cubic-bezier(.77,0,.18,1) .2s}
.m-eb::before{transform-origin:right}.m-eb::after{transform-origin:left}
.m-eb.m-in::before,.m-eb.m-in::after{transform:scaleX(1)}

/* paragraphs ease in softly */
.m-fade{opacity:0;filter:blur(6px);transition:opacity 1s ease .15s,filter 1s ease .15s}
.m-fade.m-in{opacity:1;filter:none}

/* header tucks away while reading, returns on scroll up */
.header{transition:background .3s,translate .45s cubic-bezier(.2,.8,.2,1)}
.header.m-hide{translate:0 -100%}

/* leaving a page: navy panel drops in, then the next page's loader lifts */
#pgx{position:fixed;inset:0;z-index:99998;background:radial-gradient(ellipse at center,#0a1f3d 0%,#030b18 70%);clip-path:inset(0 0 100% 0);transition:clip-path .5s cubic-bezier(.77,0,.18,1);pointer-events:none}
#pgx::after{content:"";position:absolute;left:0;right:0;bottom:0;height:2px;background:linear-gradient(90deg,#f3d899,#d9a84f,#b07f2e)}
#pgx.on{clip-path:inset(0 0 0 0)}
#ldr.quick .ldr-in{animation:none}

/* back to top, with a gold ring that fills as you read */
#m-top{position:fixed;right:22px;bottom:22px;z-index:90;width:52px;height:52px;border-radius:50%;border:0;cursor:pointer;background:rgba(3,11,24,.88);display:grid;place-items:center;opacity:0;translate:0 16px;pointer-events:none;transition:opacity .4s,translate .4s;box-shadow:0 10px 30px -10px rgba(0,0,0,.7)}
#m-top.show{opacity:1;translate:0 0;pointer-events:auto}
#m-top svg{position:absolute;inset:0;transform:rotate(-90deg)}
#m-top circle{fill:none;stroke-width:2}
#m-top .tr{stroke:rgba(226,183,102,.18)}#m-top .fl{stroke:#e2b766;stroke-linecap:round}
#m-top i{width:10px;height:10px;border-left:2px solid #f1d595;border-top:2px solid #f1d595;transform:translateY(3px) rotate(45deg)}
#m-top:hover{background:#0a1f3d}

@media (max-width:860px){.m-up{translate:0 26px}.m-img{scale:1.06}#m-top{right:14px;bottom:14px;width:46px;height:46px}}
@media (prefers-reduced-motion:reduce){.m-up,.m-img,.m-fade,.m-eb::before,.m-eb::after{opacity:1!important;translate:none!important;scale:none!important;clip-path:none!important;filter:none!important;transform:none!important;transition:none!important}#pgx{display:none}html.ldr-on .reveal.in{opacity:1;transform:none}html.ldr-on .words.in .w>span{transform:none}}
html.lenis,html.lenis body{height:auto}.lenis.lenis-smooth{scroll-behavior:auto!important}.lenis.lenis-stopped{overflow:hidden}
html{overflow-x:clip}canvas.dust{max-width:100%}
