/* Stable viewport gallery; gestures change projects without moving the page. */
.chapter-guide .cg-track{width:30px;height:170px;min-height:0;touch-action:none;cursor:ns-resize!important}
.chapter-guide .cg-marker{left:6px!important;width:18px!important;height:18px!important;cursor:ns-resize!important}
.chapter-guide .cg-line,.chapter-guide .cg-progress{left:14px}.chapter-guide .cg-thumb{left:11px;pointer-events:none!important}
.chapter-guide .cg-marker .cg-dot{width:6px!important;height:6px!important;border:1px solid var(--accent);background:var(--bg)!important;box-shadow:none!important}
.chapter-guide .cg-marker[data-complete=true] .cg-dot,.chapter-guide .cg-marker:hover .cg-dot{background:var(--accent)!important}
.chapter-guide .cg-marker[data-show-label=true] .cg-label{opacity:1;visibility:visible;transform:translateY(-50%)}
.chapter-guide .cg-label{font-size:10px;width:max-content;max-width:min(260px,calc(100vw - 65px));white-space:normal;right:28px}
.seek-video{position:relative;width:100%;height:100%;min-width:0}.seek-video>video{display:block;width:100%}
.film-seek-dot{appearance:none!important;-webkit-appearance:none!important;position:absolute!important;z-index:8;left:9px;bottom:0;right:9px;width:calc(100% - 18px)!important;height:28px!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:transparent!important;cursor:ew-resize!important;touch-action:pan-y;box-sizing:border-box}
.film-seek-dot::-webkit-slider-runnable-track{height:2px;border:0;border-radius:2px;background:linear-gradient(to right,var(--accent) var(--seek-progress),#ffffff55 var(--seek-progress))}
.film-seek-dot::-webkit-slider-thumb{-webkit-appearance:none;width:9px;height:9px;margin-top:-3.5px;border:0;border-radius:50%;background:var(--accent);box-shadow:0 0 0 3px #080c0955}
.film-seek-dot::-moz-range-track{height:2px;border:0;border-radius:2px;background:#ffffff55}.film-seek-dot::-moz-range-progress{height:2px;background:var(--accent)}.film-seek-dot::-moz-range-thumb{width:9px;height:9px;border:0;border-radius:50%;background:var(--accent);box-shadow:0 0 0 3px #080c0955}
.film-seek-dot:focus-visible{outline:0}.film-seek-dot:focus-visible::-webkit-slider-thumb{box-shadow:0 0 0 4px #e2bc6255}.film-seek-dot:focus-visible::-moz-range-thumb{box-shadow:0 0 0 4px #e2bc6255}.film-seek-dot:disabled{opacity:.35}
.rn-bts-film-controls{bottom:24px!important}.tap-vimeo>button:nth-of-type(2){bottom:30px!important}
.site-page-work{position:fixed!important;top:var(--work-top,100px);left:0;right:0;bottom:0;padding:0!important;margin:0!important;overflow:hidden}
.work-selected{height:100%;display:flex;flex-direction:column;width:100%;min-height:0}
.work-selected .ws-header{flex:none;padding:8px var(--pad) 18px!important}
.work-selected .ws-header h1{font-size:clamp(64px,8vw,124px)!important;line-height:.98}
.work-selected .ws-content{padding:0 var(--pad) 12px!important;flex:1;min-height:0!important;display:flex}
.work-selected .focus-scroll-track{height:100%!important;min-height:0;width:100%;overscroll-behavior:contain}
.work-selected .focus-scroll-pin{position:relative!important;top:0!important;height:100%;display:flex;flex-direction:column;min-height:0}
.work-selected .focus-gallery{flex:1;min-height:0;height:0;align-items:stretch}
.work-selected .focus-gallery .ws-focus-stage{height:min(clamp(460px,43vw,635px),100%)!important;min-height:0;align-self:start;translate:0 0!important;transform:none!important}
.work-selected .focus-gallery .ws-focus-list{min-height:0;gap:0;overflow:auto;scrollbar-width:none;align-content:start;overscroll-behavior:contain}
.work-selected .focus-gallery .ws-focus-link{min-height:0;flex-shrink:0;padding:clamp(7px,1.7vh,16px) 18px}
.work-selected .focus-gallery .ws-focus-link>span{font-size:clamp(19px,2.5vh,28px)}
.work-selected .focus-gallery .ws-focus-link>span{max-width:100%;white-space:normal;overflow-wrap:anywhere}
.work-selected .focus-gallery .ws-focus-link small{font-size:8px;margin-top:4px}
.work-step-controls{flex:none;display:flex;justify-content:flex-end;align-items:center;gap:16px;padding-top:10px;font:10px var(--mono);color:var(--dim)}
.work-step-controls button{border:1px solid var(--hair);background:transparent;color:var(--accent);border-radius:50%;width:38px;height:38px;font:18px Arial;cursor:pointer!important}
.work-step-controls button:disabled{opacity:.25;cursor:default!important}.work-step-controls button:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
/* Shorter reading room between the four favourites. */
.home-page .scroll-favourites{height:450svh}
.work-selected .focus-gallery[data-motion="2"] .focus-layer{transition:opacity .4s ease,filter .55s ease,transform .65s var(--focus-ease)}
.work-selected .focus-gallery .focus-selection-bar{transition:translate .4s var(--focus-ease),transform .45s var(--focus-ease),height .4s var(--focus-ease),width .4s var(--focus-ease)}
.work-selected .focus-gallery .ws-focus-copy{animation-duration:.4s}
.home-page .favourite-slide{transition:opacity .7s ease,visibility 0s linear .7s!important}
.home-page .favourite-slide.active{transition:opacity .7s ease,visibility 0s linear 0s!important}
/* Larger marker targets stay above the progress thumb. */
.chapter-guide{opacity:1}.chapter-guide .cg-marker{width:28px;height:28px;left:-2px;z-index:5}
.chapter-guide .cg-thumb,.chapter-guide .cg-thumb:before{pointer-events:none!important}
.chapter-guide .cg-label{right:28px;pointer-events:auto;transition:opacity .12s,transform .12s}
.chapter-guide .cg-label:after{content:'';position:absolute;top:0;bottom:0;left:100%;width:30px}
.chapter-guide .cg-marker:hover .cg-label,.chapter-guide .cg-marker:focus .cg-label{opacity:1;visibility:visible;transform:translateY(-50%)}
/* Location ink sits in the bottom paper border. */
.still-photo-card .still-location{top:auto;right:12px;left:12px;bottom:9px;transform:rotate(-2deg);writing-mode:horizontal-tb;text-align:center;white-space:normal;font:400 clamp(21px,2.4vw,28px)/1.1 'Caveat','Segoe Print',cursive;letter-spacing:.1px;color:#25291f}
@media(max-width:800px){
 .work-selected .ws-header{padding-bottom:12px!important}
 .work-selected .ws-header h1{font-size:clamp(56px,11vw,86px)!important}
 .work-selected .focus-gallery{display:flex;flex-direction:column;gap:12px}
 .work-selected .focus-gallery .ws-focus-list{flex:0 0 96px;min-height:0;align-content:normal;align-items:stretch;overflow-x:auto;overflow-y:hidden;padding:0}
 .work-selected .focus-gallery .ws-focus-link{min-height:0;flex:0 0 205px;padding:16px 20px}
 .work-selected .focus-gallery .ws-focus-link>span{font-size:21px}
 .work-selected .focus-gallery .ws-focus-stage{flex:none;height:min(clamp(240px,51svh,410px),calc(100% - 108px))!important;min-height:0;align-self:stretch}
 .work-selected .focus-gallery .ws-focus-copy{padding:24px;gap:12px}
 .work-selected .focus-gallery .ws-focus-copy p em{font-size:24px;margin-bottom:8px}
 .work-selected .focus-gallery .ws-focus-copy p>span{font-size:12px;line-height:1.5}
 .work-selected .focus-gallery .focus-explore{padding:11px 14px;font-size:9px}
 .work-step-controls{padding-top:8px;justify-content:center}
 .chapter-guide .cg-marker{left:-4px}
}
@media(max-height:600px){.work-selected .ws-header h1{font-size:30px!important}.work-selected .ws-header{padding-bottom:8px!important}.work-selected .focus-gallery .ws-focus-copy p>span{display:none}.work-selected .focus-gallery .ws-focus-copy p em{font-size:20px}.work-selected .focus-gallery .ws-focus-link{padding-block:5px}.work-selected .focus-gallery .ws-focus-link small{display:none}}
@media(prefers-reduced-motion:reduce){.home-page .favourite-slide,.home-page .favourite-slide.active{transition:none!important}}

@media(max-width:760px){.chapter-guide .cg-track{height:125px}}

/* Fullscreen uses the screen bounds; the video keeps its own proportions. */
.video-fullscreen-control{position:absolute;right:12px;bottom:30px;z-index:10;display:grid;place-items:center;width:36px;height:36px;padding:8px;border:1px solid #ffffff35;border-radius:50%;background:#080b0bd9;color:#fff;cursor:pointer}
.video-fullscreen-control:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.tap-vimeo>.video-fullscreen-control{right:64px}
.rn-bts-film-controls>.video-fullscreen-control{position:static}
:is(.rn-bts-film,.seek-video,.tap-vimeo):fullscreen{position:fixed!important;inset:0!important;width:100vw!important;height:100dvh!important;max-width:none!important;max-height:none!important;min-height:0!important;aspect-ratio:auto!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;background:#000!important;display:block!important;transform:none!important;overflow:hidden!important}
:is(.rn-bts-film,.seek-video):fullscreen>video,video:fullscreen{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;aspect-ratio:auto!important;object-fit:contain!important;object-position:center!important;background:#000!important;transform:none!important;border-radius:0!important}
.tap-vimeo:fullscreen>iframe{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;border:0!important}
:is(.rn-bts-film,.seek-video,.tap-vimeo)::backdrop{background:#000}

/* Compact phone cards leave room to browse the next project. */
@media(max-width:600px){
 .work-selected .ws-header h1{font-size:clamp(32px,9vw,48px)!important}
 .work-selected .ws-header{padding-bottom:10px!important}
 .work-selected .focus-gallery{gap:10px;flex:0 1 auto;height:calc(86px + clamp(200px,40svh,330px))}
 .work-selected .focus-gallery .ws-focus-list{flex-basis:76px}
 .work-selected .focus-gallery .ws-focus-link{flex:0 0 clamp(148px,44vw,188px);padding:10px 12px}
 .work-selected .focus-gallery .ws-focus-link>span{font-size:clamp(14px,4vw,16px);line-height:1.15;letter-spacing:-.25px}
 .work-selected .focus-gallery .ws-focus-link small{font-size:7px;margin-top:4px}
 .work-selected .focus-gallery .ws-focus-stage{height:min(clamp(200px,40svh,330px),calc(100% - 86px))!important}
 .work-selected .focus-gallery .ws-focus-copy{padding:16px;gap:10px}
 .work-selected .focus-gallery .ws-focus-copy p em{font-size:clamp(19px,5vw,22px);margin-bottom:6px}
 .work-selected .focus-gallery .ws-focus-copy p>span{font-size:11px;line-height:1.5}
 .work-selected .focus-gallery .focus-explore{padding:9px 12px;font-size:8px}
}

/* All chapter markers share the same center, including phone and capsule guides. */
.chapter-guide .cg-marker{left:50%!important;translate:-50% 0;width:28px!important;height:28px!important}
.chapter-guide .cg-line,.chapter-guide .cg-progress{left:50%;translate:-50% 0}
.chapter-guide .cg-thumb{left:50%;translate:-50% 0}
@media(max-width:760px){html,body{overflow-x:clip}.chapter-guide{width:30px!important;right:2px}}
