/* Responsive presentation layer: CSS pixels, independent of device pixel density. */
:root{--ui:1px}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
.scene-heading h1,.intro h1,.story h2{word-break:keep-all;overflow-wrap:break-word}
.story p,.story a{overflow-wrap:anywhere}
#story{scrollbar-gutter:stable}

/* Phones: keep the established composition, improve legibility and touch targets. */
@media(max-width:809px){
 .scene-heading>p:last-child,.intro .intro-desc{font-size:14px;line-height:1.65;max-width:36em}
 .hotspot{font-size:12px;min-height:44px;padding:8px 13px 8px 8px}
 .hotspot .orb{flex:none;width:28px;height:28px}
 .story p,.story .story-links a,.contact-panel p{font-size:14px;line-height:1.85}
 .story .notice,.contact-panel .notice{font-size:13px}
 .story h2{font-size:24px}
 .story .eyebrow{font-size:11px}
 .scroll-cue{font-size:11px}
 .story .copy-address{width:44px;min-width:44px}
 .sound-label{display:none}
}
@media(max-width:360px){
 .scene-heading h1,.intro h1{font-size:25px}
 .scene-heading>p:last-child,.intro .intro-desc{font-size:13px}
 .hotspot{font-size:11px}
}

/* Desktop/tablet: scale the complete reading/control system, not the title alone. */
@media(min-width:810px) and (min-height:601px){
 :root{--ui:clamp(1px,.06944444vw,1.6px)}
 .scene-heading,.intro-copy{width:min(calc(1100 * var(--ui)),calc(100% - 80px));top:calc(40 * var(--ui) + env(safe-area-inset-top))}
 .scene-heading h1,.intro h1{font-size:calc(44 * var(--ui));line-height:1.4}
 .scene-heading>p:last-child,.intro .intro-desc{font-size:calc(18 * var(--ui));line-height:1.65;margin:calc(10 * var(--ui)) auto 0;max-width:45em}
 .hotspot{font-size:calc(15 * var(--ui));min-height:calc(48 * var(--ui));gap:calc(10 * var(--ui));padding:calc(7 * var(--ui)) calc(18 * var(--ui)) calc(7 * var(--ui)) calc(7 * var(--ui))}
 .hotspot .orb{width:calc(34 * var(--ui));height:calc(34 * var(--ui));flex:none}
 .hotspot .orb:after{width:calc(4 * var(--ui));height:calc(4 * var(--ui))}
 .journey{width:calc(280 * var(--ui));bottom:calc(44 * var(--ui));gap:0}
 .journey button{width:calc(56 * var(--ui));min-height:calc(48 * var(--ui));flex:none}
 .journey:before,.journey:after{font-size:calc(21 * var(--ui));top:calc(10 * var(--ui))}
 .journey:before{right:calc(100% + 18 * var(--ui))}.journey:after{left:calc(100% + 18 * var(--ui))}
 .nav-dot{width:calc(22 * var(--ui));height:calc(22 * var(--ui))}
 .nav-dot:after{inset:auto;left:50%;top:50%;width:calc(4 * var(--ui));height:calc(4 * var(--ui));transform:translate(-50%,-50%)}
 .journey button>span:nth-child(2){font-size:calc(13 * var(--ui));bottom:calc(53 * var(--ui))}
 .scroll-cue{font-size:calc(13 * var(--ui));bottom:calc(18 * var(--ui))}
 .sound-toggle,.contact-toggle{width:calc(50 * var(--ui));height:calc(50 * var(--ui));bottom:calc(30 * var(--ui))}
 .sound-toggle{left:calc(32 * var(--ui))}.contact-toggle{right:calc(32 * var(--ui))}
 .sound-wave{width:calc(24 * var(--ui));height:calc(24 * var(--ui))}
 .contact-toggle svg{width:calc(28 * var(--ui));height:calc(28 * var(--ui))}
 .sound-label,.contact-toggle span{font-size:calc(13 * var(--ui))}
 .sound-label{bottom:calc(60 * var(--ui))}.contact-toggle span{right:calc(62 * var(--ui))}
 .story,.story.contact-panel{width:min(calc(540 * var(--ui)),calc(100vw - 48px));max-height:calc(100dvh - 160 * var(--ui));padding:calc(42 * var(--ui)) calc(32 * var(--ui)) calc(28 * var(--ui))}
 .story h2,.contact-panel h2{font-size:calc(30 * var(--ui));line-height:1.45;margin:calc(12 * var(--ui)) 0 calc(22 * var(--ui))}
 .story p,.story .story-links a,.contact-panel p{font-size:calc(16 * var(--ui));line-height:1.85}
 .story .notice,.contact-panel .notice{font-size:calc(14 * var(--ui))}
 .story .eyebrow{font-size:calc(12 * var(--ui))}
 .story .close{width:calc(44 * var(--ui));height:calc(44 * var(--ui));font-size:calc(28 * var(--ui));right:calc(6 * var(--ui));top:calc(6 * var(--ui))}
 .story .copy-address{width:calc(44 * var(--ui));height:calc(44 * var(--ui));min-width:44px}
 .story .copy-address svg{width:calc(20 * var(--ui));height:calc(20 * var(--ui))}
 .welcome h2{font-size:calc(36 * var(--ui));margin-top:calc(28 * var(--ui))}
 .welcome .welcome-center>p{font-size:clamp(16px,1.25vw,20px)}
 .welcome .welcome-brand img{width:clamp(104px,min(8vw,14svh),160px);height:auto;aspect-ratio:94/120}
 .welcome .welcome-enter{font-size:clamp(16px,1.1vw,18px);line-height:1.5;min-height:48px;padding:8px 26px;border-radius:999px}
 .welcome .welcome-sound{font-size:clamp(12px,.85vw,14px);min-height:36px}
}
/* Short windows and phone rotation: preserve reading space and scrollable cards. */
@media(max-height:600px){
 .scene-heading>p:last-child,.intro .intro-desc{font-size:14px;line-height:1.5}
 .hotspot{min-height:40px;font-size:12px}
 .story,.story.contact-panel{max-height:calc(100dvh - 72px);padding:32px 22px 20px}
 .story p,.story .story-links a{font-size:14px}
 .story h2{font-size:24px}
}

/* A wide but shallow browser still needs room between the logo and invitation. */
@media(min-width:810px) and (min-height:601px) and (max-height:750px){
 .welcome h2{font-size:clamp(30px,2.5vw,40px);margin-top:20px}
}
