/* Phone-only composition. Desktop V50 remains the reference, untouched. */
@media(max-width:650px), (max-width:1000px) and (max-height:500px) and (pointer:coarse){
 :root{--phone-gutter:24px;--phone-header:88px}
 html.phone-panel{height:100%;overflow:hidden;overscroll-behavior-y:none}
 html.phone-panel body{position:fixed;inset:0 0 auto;height:var(--phone-view-height,100dvh);min-height:0;overflow:hidden;overscroll-behavior-y:none}
 .topbar{height:var(--phone-header);padding:0 var(--phone-gutter);box-sizing:border-box;gap:18px}
 .topbar .brand{font-size:11px;letter-spacing:2.2px;line-height:1.7;transform:none}
 .topbar .brand span{font-size:6px;letter-spacing:1.7px;margin-top:5px}
 .topbar .menu-toggle{top:0;width:44px;height:44px;flex-shrink:0}
 .phone-panel .entrance{height:var(--phone-view-height,100dvh);min-height:0}
 .phone-panel .photo-threshold,.phone-panel .threshold-image{height:100%}
 .threshold-image{object-position:47% 34%}
 .threshold-shade{background:linear-gradient(0deg,#020a13fa 0%,#020a13d9 20%,#020a1350 49%,transparent 72%,#06101a55 100%)}
 .threshold-copy{left:var(--phone-gutter);right:var(--phone-gutter);bottom:calc(128px + env(safe-area-inset-bottom));width:auto}
 .threshold-copy .eyebrow{font-size:8px;letter-spacing:1.6px;line-height:1.5}
 .threshold-copy h1{font-size:clamp(45px,12.2vw,57px);line-height:1.01;letter-spacing:-1px;margin:17px 0 19px;max-width:none}
 .threshold-copy>p{font-size:12px;line-height:1.6;letter-spacing:.035em;max-width:310px;color:#edece5}
 .photo-caption{left:var(--phone-gutter);right:auto;bottom:calc(39px + env(safe-area-inset-bottom));min-height:50px;padding:15px 20px;gap:32px;font-size:9px;letter-spacing:1.5px;border-radius:3px}
 .phone-panel #gallery{height:calc(var(--phone-view-height,100dvh) - var(--phone-header));min-height:0;padding:16px 0 max(78px,calc(env(safe-area-inset-bottom) + 60px));display:grid;grid-template-rows:36px minmax(0,460px);row-gap:18px;align-content:center;align-items:center;justify-content:stretch;overflow:hidden}
 .phone-panel #gallery .world-invitation{position:static;font-size:clamp(21px,5.55vw,24px);line-height:1.35;letter-spacing:.075em;align-self:center;padding:0 var(--phone-gutter);font-weight:400}
 .phone-panel #gallery #stage{width:100%;height:100%;max-height:460px;min-height:0;transform:none;justify-self:center;align-self:center;overflow:hidden;perspective:1050px;touch-action:pan-y}
 .phone-panel .card{--card-h:min(430px,calc(var(--phone-view-height,100dvh) - 285px));--card-w:min(76vw,310px,calc(var(--card-h)*.72));height:var(--card-h);width:var(--card-w);margin-left:calc(var(--card-w)/-2);top:calc(50% - var(--card-h)/2);border-radius:17px}
 .phone-panel .card.active{transform:translateZ(28px)}
 .phone-panel .card.before{transform:translateX(-69%) translateZ(-100px) rotateY(26deg)}
 .phone-panel .card.after{transform:translateX(69%) translateZ(-100px) rotateY(-26deg)}
 .phone-panel .card-copy{left:22px;right:16px;bottom:23px}
 .phone-panel .card h3{font-size:clamp(38px,11vw,48px);line-height:1.05;margin:0}
 .phone-panel .card .slide-control{min-height:38px;top:10px;right:10px;padding:0 12px;font-size:10px}
 .phone-panel .card:not(.active) .slide-control{visibility:hidden}
 .phone-panel #world-contact{bottom:max(14px,env(safe-area-inset-bottom));left:var(--phone-gutter);min-height:48px;font-size:15px;gap:12px}
 .phone-panel #world-contact svg{width:23px;height:23px}
 /* A real reading layout, distinct from the viewport-contained world. */
 .world{padding:8px var(--phone-gutter) 36px}
 .chapter-top{gap:12px;padding-bottom:12px}
 .return{font-size:12px;min-height:44px;display:flex;align-items:center}
 .chapters{gap:22px;width:100%;justify-content:space-between}
 .chapters :is(button,a){font-size:12px;min-height:44px;padding:10px 0}
 .chapters :is(button,a)[aria-current=page]:after{bottom:-13px}
 .chapter-stage{padding:30px 0 28px;gap:30px}
 .chapter-copy :is(h1,h2){font-size:52px;line-height:1.02;margin:12px 0 20px;max-width:100%}
 .chapter-copy>p{font-size:15px;line-height:1.75;max-width:36em;color:#c0ccd5}
 .chapter-copy .eyebrow{font-size:9px;letter-spacing:1.7px}
 .text-button{font-size:13px;min-height:44px;gap:28px;margin-top:23px}
 .chapter-art{margin:0;height:340px;width:100%;border-radius:4px;overflow:hidden}
 .chapter-art.story{width:min(100%,300px);height:360px;align-self:center}
 .chapter-bottom{padding-top:17px}.next{min-height:48px;font-size:12px}
 .menu{width:calc(100% - 32px);max-width:360px;max-height:calc(var(--phone-view-height,100dvh) - 32px);padding:18px 22px 20px;border-radius:18px;overflow-y:auto}
 .menu nav button,.menu nav a,.menu .journal-secondary{font-size:38px;line-height:1.2;min-height:56px;padding:8px;margin:0;display:block}
 .menu .menu-contact-footer{margin-top:16px;padding-top:12px}
 .menu .menu-contact-footer .menu-contact{font-size:14px;min-height:48px}
 .close-menu,.close-detail{min-width:44px;min-height:44px}
 .detail{width:calc(100% - 24px);max-width:520px;max-height:calc(var(--phone-view-height,100dvh) - 24px);padding:20px 24px 24px;border-radius:16px;overflow-y:auto;overscroll-behavior:contain}
 .detail h2{font-size:38px;line-height:1.1;margin:22px 0}
 .detail-body>p:not(.prototype-note),#detail-extra p{font-size:15px;line-height:1.8;color:#c3cfd8}
 #detail-extra p{margin-top:22px}#detail-extra a{display:inline-flex;align-items:center;min-height:48px;font-size:13px;margin-top:17px;color:#c6deed}
 #socials{padding:8px var(--phone-gutter) 36px}.social-layout{margin-top:18px;gap:27px}.social-layout h2{font-size:57px;line-height:1.1}
 .social-layout img{height:250px;object-position:center 30%;border-radius:8px}.social-links{gap:5px;margin-top:22px}.social-links a{min-height:60px;font-size:17px;gap:18px;padding:17px 0}.social-links svg{width:25px;height:25px}
}
@media(max-width:650px) and (max-height:570px){
 .topbar{height:76px}:root{--phone-header:76px}
 .threshold-copy{bottom:109px}.threshold-copy h1{font-size:clamp(35px,8.8vh,46px);margin:12px 0}.threshold-copy .eyebrow{font-size:7px}.photo-caption{bottom:27px;min-height:46px}
 .phone-panel #gallery{padding-top:9px;row-gap:9px;grid-template-rows:31px minmax(0,460px);padding-bottom:66px}
 .phone-panel .card{--card-h:calc(var(--phone-view-height,100dvh) - 250px)}
 .phone-panel .card h3{font-size:36px}.phone-panel .card-copy{left:16px;bottom:18px}
 .phone-panel #world-contact{bottom:7px;min-height:46px}.menu{padding-top:12px;padding-bottom:12px}.menu nav button,.menu nav a,.menu .journal-secondary{min-height:49px;font-size:33px}
}
@media(max-width:650px), (max-width:1000px) and (max-height:500px) and (pointer:coarse){.chapter-copy :is(h1,h2):focus,#social-title:focus{outline:none}}
@media(max-width:650px), (max-width:1000px) and (max-height:500px) and (pointer:coarse){.social-layout{display:flex;flex-direction:column;align-items:stretch}.social-layout>img{order:2;height:230px;max-width:100%;margin-top:8px}.social-layout>div{order:1}.social-layout>div>p{font-size:14px;line-height:1.7;margin-top:12px}}

@media(min-width:651px) and (max-width:1000px) and (max-height:500px) and (pointer:coarse){
 :root{--phone-header:64px}.topbar{height:64px}.topbar .brand{font-size:10px}.topbar .menu-toggle{width:40px;height:40px}
 .threshold-copy{left:30px;right:auto;width:55%;bottom:91px}.threshold-copy h1{font-size:38px;margin:10px 0 12px}.threshold-copy .eyebrow{font-size:7px}.threshold-copy>p{font-size:11px}.photo-caption{left:30px;bottom:23px;min-height:44px;padding:11px 17px}.threshold-image{object-position:65% 43%}
 .phone-panel #gallery{padding:5px 0 55px;grid-template-rows:28px minmax(0,300px);row-gap:6px}.phone-panel #gallery .world-invitation{font-size:20px}
 .phone-panel .card{--card-h:calc(var(--phone-view-height,100dvh) - 175px);--card-w:calc(var(--card-h)*.76)}.phone-panel .card h3{font-size:32px}.phone-panel .card-copy{left:15px;bottom:16px}.phone-panel #world-contact{bottom:4px;min-height:44px;font-size:13px}
 .menu{max-height:calc(100dvh - 18px)}.menu nav button,.menu nav a,.menu .journal-secondary{font-size:29px;min-height:43px}.menu .menu-contact-footer{margin-top:7px;padding-top:7px}
}

/* Journal is available in room navigation on every screen. */
.chapters .phone-journal-door{display:inline-flex;align-items:center;justify-content:center;min-height:44px;flex-shrink:0;padding:8px 0;color:#b8d7e9;font-family:'Parisienne',cursive;font-size:22px;line-height:1.2;text-decoration:none}
@media(max-width:650px), (max-width:1000px) and (max-height:500px) and (pointer:coarse){
 .chapters{gap:12px;align-items:center}
 .chapters :is(button,a){white-space:nowrap;flex-shrink:0}
 .chapters .phone-journal-door{display:inline-flex;align-items:center;justify-content:center;min-height:44px;flex-shrink:0;padding:8px 0;color:#b8d7e9;font-family:'Parisienne',cursive;font-size:22px;line-height:1.2;text-decoration:none}
}
@media(max-width:360px){.chapters{gap:8px}.chapters :is(button,a){font-size:11px}.chapters .phone-journal-door{font-size:20px}}
/* Home wordmark provides this route on every device. */
#journal-menu .menu-bottom{display:none}
