/* Keep the complete 9:16 film: no stretching or side cropping. */
:root{--room-width:min(100vw,56.25svh);--room-height:min(177.777778vw,100svh)}
html{scrollbar-width:none;overscroll-behavior-y:none}html::-webkit-scrollbar{display:none}
html body{height:100svh;background:#080604}
html.mobile-boot body{height:450svh}
.scene{display:none}
.mobile-scene{display:block;position:sticky;top:0;width:100%;height:100svh;min-height:530px;overflow:hidden;isolation:isolate;background:#080604}
.mobile-art{position:absolute;top:0;left:50%;width:var(--room-width);height:var(--room-height);transform:translateX(-50%);background:url('/assets/mobile-final-v7.jpg') center/100% 100% no-repeat}
.mobile-boot .mobile-art{background-image:url('/assets/mobile-first-v7.jpg')}
.mobile-boot.poster-finished .mobile-art{background-image:url('/assets/mobile-final-v7.jpg')}
.mobile-art::after{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(to bottom,transparent 70%,#080604 100%)}
.mobile-film{display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:contain;opacity:0;pointer-events:none}
.film-ready .mobile-film{opacity:1}
.mobile-shade{position:absolute;inset:0;z-index:2;pointer-events:none;background:linear-gradient(to bottom,transparent 45%,rgb(8 6 4 / .12) 60%,rgb(8 6 4 / .72) 84%,#080604 100%)}
.mobile-closing{position:absolute;z-index:3;bottom:max(19px,env(safe-area-inset-bottom));left:max(16px,env(safe-area-inset-left));right:max(16px,env(safe-area-inset-right));text-align:center}
.mobile-wordmark{font-size:clamp(12px,3.4vw,15px);font-weight:400;line-height:1.5;letter-spacing:.3em;text-indent:.3em;color:#efd394;text-shadow:0 1px 3px #080604,0 0 6px rgb(24 215 255 / .8),0 0 18px rgb(24 215 255 / .45)}
.mobile-brand h1{font:400 clamp(22px,6.3vw,29px)/1.15 'Cormorant Garamond',Georgia,serif;letter-spacing:-.025em;margin:12px 0 0;white-space:nowrap;color:var(--gold);text-shadow:0 1px 3px #080604,0 0 7px rgb(24 215 255 / .75),0 0 22px rgb(24 215 255 / .4)}
.mobile-subline{font:400 clamp(19px,5.2vw,25px)/1.3 'Cormorant Garamond',Georgia,serif;color:rgb(243 235 221 / .86);margin-top:7px}
.mobile-status{font-size:8px;font-weight:400;line-height:1.6;letter-spacing:.2em;text-transform:uppercase;color:#b8b1a7;margin-top:22px}
.mobile-cta{display:inline-block;min-height:44px;padding:17px 2px 8px;margin-top:2px;font-size:9px;line-height:1.5;font-weight:400;letter-spacing:.22em;text-transform:uppercase;text-decoration:none;color:var(--ivory);position:relative}
.mobile-cta::after{content:'';position:absolute;left:0;right:0;bottom:5px;height:1px;background:rgb(233 201 138 / .65);transition:background .2s,box-shadow .2s}
.mobile-cta:hover::after{background:var(--gold);box-shadow:0 0 8px rgb(233 201 138 / .3)}
.mobile-footer{position:static;margin-top:6px;font-size:8px;font-weight:400;letter-spacing:.04em;line-height:1.6;color:#a39c93;text-align:center}
.mobile-footer .atelier-nav{margin-bottom:clamp(8px,2svh,18px)}
.mobile-footer a{display:inline-block;padding:8px 0;margin:-8px 0;text-decoration:none}
.mobile-scene a:focus-visible{outline:2px solid var(--gold);outline-offset:5px;border-radius:1px}
.mobile-boot{--scroll-cue:1;--brand-reveal:0;--top-shade:0}
.mobile-boot .mobile-reveal{opacity:0;transform:translateY(5px)}
.mobile-boot .mobile-footer{opacity:0;visibility:hidden}
.mobile-boot:not(.fonts-ready) .mobile-copy,.mobile-boot:not(.fonts-ready) .mobile-brand{visibility:hidden}
.mobile-scroll-cue{position:absolute;z-index:5;left:50%;bottom:max(30px,env(safe-area-inset-bottom));transform:translateX(-50%);font:400 8px/1.5 Inter,sans-serif;letter-spacing:.22em;text-transform:uppercase;color:var(--gold);text-align:center;pointer-events:none;opacity:0}
.mobile-scroll-cue::after{content:'';display:block;width:1px;height:22px;margin:10px auto 0;background:linear-gradient(var(--gold),transparent)}
.mobile-boot .mobile-scroll-cue{opacity:var(--scroll-cue,1)}
@media(max-height:740px){.mobile-brand h1{margin-top:8px}.mobile-status{margin-top:14px}.mobile-subline{margin-top:5px}.mobile-closing{bottom:max(14px,env(safe-area-inset-bottom))}}
@media(max-height:620px){.mobile-wordmark{font-size:11px}.mobile-brand h1{font-size:22px;margin-top:6px}.mobile-subline{font-size:19px;margin-top:4px}.mobile-status{margin-top:9px}.mobile-cta{padding-top:13px}.mobile-footer{font-size:7px}.mobile-shade{background:linear-gradient(to bottom,transparent 53%,rgb(8 6 4 / .35) 64%,rgb(8 6 4 / .9) 81%,#080604 100%)}}
@media(prefers-reduced-motion:reduce){html body{height:100svh}.mobile-boot .mobile-reveal,.mobile-boot .mobile-footer{opacity:1!important;transform:none!important}.mobile-boot:not(.fonts-ready) .mobile-copy{visibility:visible}.mobile-film,.mobile-scroll-cue{display:none!important}}

/* Brand stays above the sculpture; narrative lines follow decoded film time. */
.mobile-brand{position:absolute;z-index:3;top:max(40px,7svh);left:max(16px,env(safe-area-inset-left));right:max(16px,env(safe-area-inset-right));text-align:center}
.mobile-brand h1{font-size:clamp(22px,6.3vw,29px)}
.mobile-brand sup{font-size:.48em;vertical-align:super;line-height:0;margin-left:3px}
.mobile-footnote-link{position:relative;color:#8eeeff;text-decoration:none;text-shadow:0 0 8px #00cfff}
.mobile-footnote-link::after{content:'';position:absolute;width:40px;height:40px;left:50%;top:50%;transform:translate(-50%,-50%)}
.mobile-narrative{display:none;position:absolute;z-index:3;inset:0;text-align:center;pointer-events:none}
.mobile-boot .mobile-narrative{display:block}
.mobile-story-line{position:absolute;top:max(50px,9svh);left:24px;right:24px;margin:0 auto;max-width:27ch;opacity:0;font:400 clamp(19px,5.3vw,23px)/1.35 'Cormorant Garamond',Georgia,serif;letter-spacing:.015em;color:#efe5d1;text-shadow:0 2px 8px #080604,0 0 14px rgb(24 215 255 / .25)}
.mobile-footer .powered-by{margin-top:11px;font-size:8px;letter-spacing:.035em;color:#7546e8;text-shadow:0 0 10px rgb(117 70 232 / .18)}
.mobile-footer .powered-by a{color:#7546e8}
.credit-star{color:#7546e8}
@media(max-height:620px){.mobile-brand{top:30px}.mobile-brand h1{font-size:22px;margin-top:7px}.mobile-footer .powered-by{font-size:7px;margin-top:8px}}
@media(prefers-reduced-motion:reduce){.mobile-narrative{display:none!important}.mobile-boot:not(.fonts-ready) .mobile-brand{visibility:visible}}

/* Late marble title: cool stone lettering against a locally dimmed wall. */
.mobile-brand{opacity:var(--brand-reveal,1);transform:translateY(calc((1 - var(--brand-reveal,1)) * 6px))}
.mobile-boot:not(.brand-visible) .mobile-brand{pointer-events:none}
.mobile-brand-shade{position:absolute;z-index:2;top:0;left:0;right:0;height:calc(7svh + 145px);pointer-events:none;opacity:var(--top-shade,1);background:linear-gradient(to bottom,rgb(3 10 18 / .86),rgb(3 10 18 / .9) 48%,rgb(3 10 18 / .55) 72%,transparent)}
.mobile-wordmark{font-family:'Cormorant Garamond',Georgia,serif;font-size:clamp(18px,5.2vw,24px);font-weight:600;letter-spacing:.16em;text-indent:.16em;color:#f2eee5;text-shadow:none}
.mobile-brand h1{color:#f2eee5;text-shadow:none}
/* Marble face, lit veins, warm bevel and the strongest cyan halo. */
.marble-lettering{display:inline-block;color:#f4efe5;background:#f4efe5 url('/assets/marble-lettering.svg') center/100% 100%;background-clip:text;-webkit-background-clip:text;-webkit-text-fill-color:transparent;filter:drop-shadow(0 .6px 0 #fff9e8) drop-shadow(.5px 1.1px 0 #997b50) drop-shadow(0 2px 2px rgb(0 0 0 / .75)) drop-shadow(0 0 2px rgb(67 222 242 / .85)) drop-shadow(0 0 8px rgb(20 207 237 / .5)) drop-shadow(0 0 17px rgb(0 181 221 / .28))}
.mobile-story-line:nth-child(even){top:calc(var(--room-height) * .67)}

@media(max-height:620px){.mobile-wordmark{font-size:18px}.mobile-brand-shade{height:165px}}
@media(prefers-reduced-motion:reduce){.mobile-brand,.mobile-brand-shade{opacity:1!important;transform:none!important}}

/* Stronger serif forms let the ivory face and warm bevel read as stone. */
.mobile-wordmark{font-size:clamp(23px,6.7vw,30px);font-weight:600;letter-spacing:.09em;text-indent:.09em;line-height:1.2}
.mobile-brand h1{font-size:clamp(21px,5.8vw,25px);font-weight:500;letter-spacing:0;margin-top:10px}
.mobile-brand h1 .marble-lettering{background-size:135% 100%;background-position:80% center}
.mobile-footnote-link{color:#d9f6f7;text-shadow:0 0 3px rgb(74 214 233 / .35)}
@media(max-height:620px){.mobile-wordmark{font-size:23px}.mobile-brand h1{font-size:21px;margin-top:8px}}

/* Strong supporting glow; the marble brand retains the brightest halo. */
.mobile-subline,.mobile-status,.mobile-cta,.mobile-scroll-cue,.mobile-footer{ text-shadow:0 0 2px rgb(106 236 249 / .7),0 0 6px rgb(48 215 239 / .55),0 0 13px rgb(22 190 218 / .35)}
.mobile-story-line{text-shadow:0 2px 5px #080604,0 0 2px rgb(106 236 249 / .75),0 0 7px rgb(48 215 239 / .6),0 0 14px rgb(22 190 218 / .38)}
.mobile-footnote-link{text-shadow:0 0 3px rgb(76 218 235 / .7),0 0 9px rgb(22 190 218 / .4)}
.mobile-footer .powered-by{text-shadow:0 0 2px rgb(117 70 232 / .85),0 0 6px rgb(117 70 232 / .65),0 0 13px rgb(117 70 232 / .42)}

/* Final invitation and footer use crisp, unlit lettering. */
.mobile-subline,.mobile-status,.mobile-cta,.mobile-footer,.mobile-footer .powered-by{text-shadow:none}

/* A small falling cyan stream invites the next swipe after the arrival nudge. */
.mobile-scroll-cue{bottom:max(22px,env(safe-area-inset-bottom));width:150px}
.mobile-scroll-cue::after{display:none}
.scroll-particles{position:relative;height:88px;width:46px;margin:10px auto 0;overflow:hidden;mask-image:linear-gradient(transparent,#000 12%,#000 78%,transparent)}
.scroll-particles i{position:absolute;top:-16px;left:22px;width:2px;height:15px;border-radius:50%;background:linear-gradient(transparent,#2dd9ff 70%,#d2fbff);box-shadow:0 0 5px #00cfff,0 0 11px rgb(0 195 255 / .65);animation:scroll-particle-fall 1.8s linear infinite;animation-play-state:paused}
.mobile-boot .scroll-particles i{animation-play-state:running}
.scroll-particles i:nth-child(2){left:14px;animation-delay:-.3s;height:6px}
.scroll-particles i:nth-child(3){left:29px;animation-delay:-.6s;height:9px}
.scroll-particles i:nth-child(4){left:19px;animation-delay:-.9s;height:19px}
.scroll-particles i:nth-child(5){left:26px;animation-delay:-1.2s;height:5px}
.scroll-particles i:nth-child(6){left:9px;animation-delay:-1.5s;height:4px}
.scroll-particles i:nth-child(7){left:34px;animation-delay:-.75s;height:4px}
@keyframes scroll-particle-fall{0%{transform:translateY(0) scale(.65);opacity:0}18%{opacity:.9}75%{opacity:.75}100%{transform:translateY(110px) scale(.3);opacity:0}}
@media(prefers-reduced-motion:reduce){.scroll-particles{display:none}.scroll-particles i{animation:none}}

.scroll-cue-hidden .scroll-particles i{animation-play-state:paused}

/* Show real download progress over the opening poster before scrubbing starts. */
.mobile-loading{position:absolute;z-index:6;left:50%;bottom:max(48px,env(safe-area-inset-bottom));transform:translateX(-50%);width:190px;text-align:center;color:#e7e4dc;font:400 10px/1.6 Inter,sans-serif;letter-spacing:.12em}
.mobile-loading[hidden]{display:none}
.mobile-loading p{margin-bottom:12px}
.mobile-loading-track{height:2px;background:rgb(112 221 240 / .15);overflow:hidden}
.mobile-loading-track span{display:block;height:100%;background:#67d8ed;transform-origin:left;transform:scaleX(var(--loaded,0));box-shadow:0 0 9px #19cce7}
.mobile-loading-percent{display:block;margin-top:8px;color:#a2dce6;font-size:9px;letter-spacing:.04em;font-variant-numeric:tabular-nums}
.film-loading .mobile-scroll-cue{visibility:hidden}
