/* The viewport owns navigation; only a slide's content can scroll vertically. */
body.page-manifest{height:100vh;height:100dvh;min-height:0;overflow:hidden}
body.page-manifest .header{height:96px;flex-shrink:0}
body.page-manifest main{display:flex;min-height:0;width:100%;flex:1}
.page-manifest .manifest{--copy-size:clamp(18px,1.4vw,20px);--copy-leading:1.55;--copy-space:20px;display:flex;flex-direction:column;flex:1;min-height:0;width:100%;max-width:1440px;margin-inline:auto;padding:0 var(--gutter)}
.manifest-track{display:flex;gap:24px;flex:1;min-height:0;width:100%;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain;touch-action:pan-x pan-y pinch-zoom;outline-offset:-3px}
.manifest-track::-webkit-scrollbar{display:none}
.manifest-slide{flex:0 0 100%;min-width:0;height:100%;overflow:hidden;scroll-snap-align:start;scroll-snap-stop:always}
.slide-content{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);grid-template-rows:minmax(0,1fr);gap:clamp(40px,6vw,88px);align-items:center;height:100%;min-height:0;padding:24px 0}
.slide-copy{min-width:0;width:100%;max-width:610px;max-height:100%;overflow-y:auto;scrollbar-width:thin;scrollbar-color:var(--line) transparent}
.manifest-slide .eyebrow{color:var(--muted);font-size:12px;margin-bottom:24px}
.manifest-slide h1{font:400 clamp(45px,min(5.7vw,9svh),78px)/1.03 var(--serif);letter-spacing:-.04em;text-wrap:balance}
.manifest-slide h2{font:400 clamp(34px,min(4.2vw,7svh),60px)/1.12 var(--serif);letter-spacing:-.025em;text-wrap:balance}
/* Every paragraph, poetic passage and viewer quote uses the same reading type. */
.manifest-slide .slide-body,.manifest-slide .manifest-lines,.manifest-slide .manifest-quote{font:400 var(--copy-size)/var(--copy-leading) var(--sans);letter-spacing:normal;text-wrap:pretty}
.slide-body{margin-top:var(--copy-space);max-width:550px}
/* Both dimensions are bounded, but the image itself always keeps its full frame. */
.manifest-slide .manifest-photo{margin:0;min-width:0;min-height:0;width:100%;height:100%;max-height:720px;display:flex;align-items:center;justify-content:center}
.manifest-slide .manifest-photo img{width:auto;height:auto;max-width:100%;max-height:100%;aspect-ratio:auto;object-fit:contain;object-position:center;user-select:none}
.manifest-slide .manifest-lines{margin-top:var(--copy-space)}
.manifest-slide .manifest-lines p+p{margin-top:10px}
.manifest-quote{margin:var(--copy-space) 0 0;padding:0 0 0 20px;border-left:1px solid #a5a79e}
.manifest-slide .manifest-ending-photo{max-height:none}
.manifest-cta{display:inline-flex;align-items:center;justify-content:center;gap:32px;min-height:56px;padding:15px 28px;margin-top:36px;background:var(--ink);color:var(--paper);font-size:16px;line-height:1.3;border:1px solid var(--ink);transition:background .2s;max-width:100%}
.manifest-cta::after{content:'↗';font-size:22px;line-height:1}
.manifest-cta:hover{background:#303943}
.manifest-controls{position:relative;z-index:2;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:24px;flex:0 0 auto;min-height:76px;border-top:1px solid var(--line);background:var(--paper)}
.manifest-count{font-size:12px;letter-spacing:2px;font-variant-numeric:tabular-nums;color:var(--muted)}
.manifest-progress{display:flex;align-items:center;gap:8px}
.manifest-progress button{display:flex;align-items:center;justify-content:center;width:32px;min-height:44px;padding:0;background:none}
.manifest-progress button span{display:block;width:100%;height:2px;background:var(--line);transition:background .2s}
.manifest-progress button[aria-current=true] span,.manifest-progress button:hover span{background:var(--ink)}
.manifest-arrows{display:flex;justify-self:end;gap:10px}
.manifest-arrows button{display:flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;border:1px solid var(--ink);background:none;font-size:25px;line-height:1;transition:background .2s,color .2s}
.manifest-arrows button:hover:not(:disabled),.manifest-next:not(:disabled){background:var(--ink);color:var(--paper)}
.manifest-arrows button:disabled{opacity:.22;cursor:default}
body.page-manifest footer{flex-shrink:0;width:100%;max-width:1440px;margin-inline:auto;padding:8px var(--gutter) max(10px,env(safe-area-inset-bottom));border:0;font-size:11px}
body.page-manifest footer a{display:none}
@media(max-width:1050px){
 .slide-content{gap:36px;grid-template-columns:repeat(2,minmax(0,1fr))}
 .manifest-slide h1{font-size:clamp(42px,5.8vw,60px)}
 .manifest-slide h2{font-size:clamp(32px,4.2vw,44px)}
}
@media(max-width:620px){
 .page-manifest .manifest{--copy-size:16px;--copy-leading:1.5;--copy-space:16px}
 body.page-manifest .header{height:82px;gap:16px}
 .slide-content{display:flex;flex-direction:column;align-items:stretch;gap:20px;padding:12px 0 20px;overflow-x:hidden;overflow-y:auto;overscroll-behavior-y:contain;scrollbar-width:none;touch-action:pan-x pan-y pinch-zoom}
 .slide-content::-webkit-scrollbar{display:none}
 .slide-copy{flex:0 0 auto;max-width:none;max-height:none;overflow:visible}
 .manifest-slide .eyebrow{margin-bottom:16px;font-size:11px}
 .manifest-slide h1{font-size:clamp(36px,10.6vw,52px);line-height:1.07}
 .manifest-slide h2{font-size:clamp(28px,8vw,38px);line-height:1.14}
 .manifest-slide .manifest-photo{display:block;flex:0 0 auto;height:auto;width:100%;max-height:none}
 .manifest-slide .manifest-photo img{width:100%;height:auto;max-height:none}
 .manifest-slide .manifest-lines p+p{margin-top:8px}
 .manifest-quote{padding-left:16px}
 .slide-ending .manifest-ending-photo{order:-1;margin-top:auto}
 .slide-ending .slide-copy{margin-bottom:auto}
 .manifest-cta{display:flex;width:100%;min-height:52px;margin-top:24px;font-size:16px}
 .manifest-controls{min-height:72px;grid-template-columns:auto minmax(0,1fr) auto;gap:16px}
 .manifest-progress{gap:6px;min-width:0;justify-content:center}
 .manifest-progress button{width:100%;max-width:22px;min-width:0}
 .manifest-count{font-size:11px;letter-spacing:1px}
 .manifest-arrows{gap:8px}
 body.page-manifest footer{padding-top:0;padding-bottom:max(8px,env(safe-area-inset-bottom));font-size:10px}
}
/* Very short landscape screens keep full photographs and readable copy. */
@media(min-width:621px) and (max-height:650px){
 .page-manifest .manifest{--copy-size:16px;--copy-leading:1.5;--copy-space:16px}
 body.page-manifest .header{height:68px}
 .slide-content{padding-block:12px;gap:36px}
 .manifest-slide h1{font-size:42px}
 .manifest-slide h2{font-size:28px}
 .manifest-slide .eyebrow{margin-bottom:12px}
 .manifest-slide .manifest-lines p+p{margin-top:8px}
 .manifest-controls{min-height:60px}
 .manifest-cta{min-height:48px;margin-top:24px}
}
@media(max-width:360px){
 .page-manifest{--gutter:20px}
 body.page-manifest .header{gap:12px}
 .page-manifest .wordmark{font-size:10px}
 .manifest-controls{gap:12px}
 .manifest-progress{gap:4px}
}
