/* Confirmed readability repairs. Preserve the existing compositions and crops. */
:root{--qa-muted:#b8bdb2;--qa-rule:#ffffff29}
:is(.hero-header,.works-header,.archive-header,.profile-header,.photo-header) .pill{font-size:11px!important;min-height:44px}
#start .hero-rail .intro :is(p,.eyebrow,.intro-link){font-size:11px;line-height:1.7}
#start #film-description{font-size:11px;line-height:1.7;color:#f0f1ec}
#start #film-title{font-size:11px;line-height:1.55}
#start .featured-counter,#start #film-facts{font-size:10px}
#filmy .works-intro p{font-size:13px;line-height:1.7;color:var(--qa-muted)}
#filmy .works-toolbar{margin-bottom:32px}
#filmy .work-filters{gap:4px 24px}
#filmy .work-filters .pill{font:11px/1.5 'Courier New',monospace!important;min-height:44px;padding:12px 0!important;color:var(--qa-muted)}
#filmy .work-filters .pill:is(.is-active,:hover){color:#fff}
#filmy .work-filters .pill sup{font-size:9px;color:var(--qa-muted)}
#filmy .work-caption h2{font-size:clamp(20px,1.45vw,24px);line-height:1.25;text-transform:none}
#filmy .work-credits{font-size:12px;line-height:1.8}
#filmy .work-credits :is(dt,dd){min-width:0;overflow-wrap:anywhere}
#filmy .work-credits dt{color:var(--qa-muted)}
#filmy .work-watch{font-size:11px;min-height:44px}
#filmy .work-caption :is(.work-number,span:last-child){font-size:10px}
#filmy .work-play-mark .play-inner{font-size:9px!important;min-height:36px!important}
#filmy .works-list{row-gap:44px}
#archiwum .archive-title{display:flex;align-items:baseline;justify-content:space-between;font-size:36px;line-height:1.2;margin-top:28px;padding-bottom:18px;border-bottom:1px solid var(--qa-rule)}
#archiwum .archive-title>span:first-child{font:10px/1.5 'Courier New',monospace;color:var(--qa-muted);-webkit-text-stroke:0}
#archiwum .archive-title::after{display:none}
#archiwum .archive-note{font-size:11px;line-height:1.6}
#archiwum .archive-toolbar{font-size:12px}
#archiwum :is(input,select){min-height:44px}
#archiwum .archive-column-labels{font-size:10px;opacity:.8}
#archiwum .archive-row{font-size:12px;line-height:1.55;min-height:48px;padding-block:14px;text-transform:none;border-bottom:1px solid #ffffff12}
#fotografia .photo-featured-top h3{font-size:11px;line-height:1.5;text-transform:none}
#fotografia .photo-featured-counter{font-size:10px}
#fotografia .photo-featured-caption{font-size:11px;line-height:1.65;color:#f0f1ec}
#fotografia :is(.photo-project-choice,.photo-menu-category){font-size:10px!important;min-height:44px;line-height:1.5}
#fotografia .photo-menu-category{color:#e0e5da}
#fotografia .photo-menu-categories{gap:4px 24px}
#fotografia .photo-project-list{gap:8px}
#about #profile-paragraphs{font-size:13px;line-height:1.85}
#about .about-contact :is(#about-phone,#about-instagram){font-size:12px;min-height:44px;display:flex;align-items:center}
:is(a,button,input,select):focus-visible{outline:2px solid #e4e9df;outline-offset:4px}
@media(max-width:600px){
 :is(.hero-header,.works-header,.archive-header,.profile-header,.photo-header)>.navigation .pill{font-size:11px!important}
 #filmy .work-filters{gap:0 20px;flex-wrap:wrap}
 #filmy .work-filters .pill{font-size:11px!important}
 #filmy .work-caption h2{font-size:22px}
 #filmy .work-credits{font-size:12px}
 #filmy .work-project:nth-child(n){margin-bottom:36px}
 #filmy .work-reel-group .work-caption h2{font-size:13px}
 #archiwum .archive-title{font-size:32px;margin-top:24px}
 #archiwum .archive-note{font-size:11px}
 #archiwum .archive-row{font-size:12px;min-height:52px}
 #archiwum .archive-toolbar select{font-size:12px}
 #fotografia .photo-menu-categories,#fotografia .photo-menu-sessions{column-gap:16px}
 #fotografia .photo-project-list{row-gap:5px}
 #fotografia .photo-featured-controls{gap:8px}
 #fotografia .photo-featured-controls>button{width:44px;min-width:44px;min-height:44px}
 #about .about-layout{display:flex;flex-direction:column;gap:28px}
 #about .about-margin{order:0}
 #about .about-contact{order:1;margin-top:0;padding-top:0;border-top:0;width:100%}
 #about .about-narrative{order:2;padding-top:28px;border-top:1px dashed #ffffff35}
}
@media(max-width:360px){:is(.hero-header,.works-header,.archive-header,.profile-header,.photo-header)>.navigation .pill{font-size:10px!important}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
/* A short landscape screen needs one scrollable session row, with full touch targets. */
@media(max-height:500px) and (orientation:landscape){
 #fotografia .photo-project-list{align-items:stretch}
 #fotografia .photo-menu-categories{flex-wrap:nowrap;justify-content:flex-start}
 #fotografia .photo-menu-sessions{flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto;overflow-y:hidden;max-width:100%;scrollbar-width:thin;scrollbar-color:#ffffff60 transparent;padding-bottom:4px}
 #fotografia .photo-menu-sessions .photo-project-choice{flex:0 0 auto;white-space:nowrap}
}


#fotografia .photo-project-choice{text-transform:none}

#dialog-film-title,#info-project-title,#archive-project-title{text-transform:none}


:is(.hero-header,.works-header,.archive-header,.profile-header,.photo-header) :is(.pill,.brand,.ascii-brand-mark){text-shadow:none}

@media(min-width:601px) and (max-width:1100px){#film-dialog .player-controls button,#film-dialog .player-tools>a,#film-dialog .close-player{min-width:44px;min-height:44px}#film-dialog #film-timeline{height:44px}#film-dialog .cinema-stage{bottom:110px}}

:is(#start,#filmy,#fotografia,#archiwum,#about,#contact) :is(a,button,input,select):focus-visible,#film-dialog .player-controls :is(a,button,input):focus-visible,#close-film:focus-visible{outline:2px solid #e4e9df;outline-offset:4px}

/* A direct About link is the only secondary navigation on phones. */
.nav-about-mobile{display:none}
@media(max-width:700px){
 :is(.hero-header,.works-header,.archive-header,.profile-header,.photo-header)>.navigation>:is(.nav-contact,.nav-archive-mobile),
 :is(.hero-header,.works-header,.archive-header,.profile-header,.photo-header)>.profile-navigation{display:none!important}
 .navigation>.nav-about-mobile{display:flex;align-items:center;justify-content:flex-end;margin-left:auto;min-width:44px;min-height:44px;flex:0 0 auto}
 #filmy .works-title{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
 #filmy .works-intro{margin:10px 0 4px;gap:0}
 #filmy .works-intro p{max-width:none;margin:0;font-size:10px;line-height:1.5}
 #filmy .works-toolbar{min-height:44px;margin:0 0 14px;gap:0}
 #filmy .work-filters{width:100%;max-width:100%;flex-wrap:nowrap;justify-content:flex-start;align-items:center;gap:18px;margin:0;padding:0;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;-webkit-overflow-scrolling:touch}
 #filmy .work-filters::-webkit-scrollbar{display:none}
 #filmy .work-filters .pill{flex:0 0 auto;min-height:44px;padding:6px 0!important;font-size:10px!important;white-space:nowrap}
 #filmy .work-filters .pill sup{font-size:7px;margin-left:4px}
}

/* Mobile photographs fill the viewport; navigation stays compact at the bottom. */
@media(max-width:700px){
 body.photo-has-hero #fotografia .photo-featured[data-session-id] .photo-featured-image{position:absolute;inset:0;display:block;padding:0;border:0;overflow:hidden}
 body.photo-has-hero #fotografia .photo-featured[data-session-id] .photo-featured-image>img{display:none!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;min-height:0;object-fit:cover!important;object-position:var(--photo-mobile-position,center)!important;clip-path:none;animation:none}
 body.photo-has-hero #fotografia .photo-featured[data-session-id] .photo-featured-image>img:first-child:not(.photo-filmstrip-before),
 body.photo-has-hero #fotografia .photo-featured[data-session-id] .photo-featured-image>.photo-filmstrip-current{display:block!important}
 body.photo-has-hero #fotografia .photo-featured[data-session-id] .photo-featured-shade{background:linear-gradient(180deg,#0006,transparent 22%,transparent 65%,#0009)}
 body.photo-has-hero #fotografia .photo-featured[data-session-id] .photo-featured-rail{top:auto;bottom:calc(var(--photo-project-list-height,64px) + 6px + env(safe-area-inset-bottom));left:18px;right:18px;grid-template-columns:minmax(0,1fr);gap:0;margin:0}
 #fotografia .photo-featured-rail>.photo-featured-nav{grid-column:1;width:100%;max-width:none}
 #fotografia .photo-featured-nav>.photo-session-title{bottom:calc(100% + 4px);width:90%;max-width:none}
 #fotografia .photo-featured-nav>.photo-session-title .photo-session-ascii{font-size:min(var(--session-panel-ascii-size,7px),5.5px);line-height:1.06}
 #fotografia .photo-featured-nav::before{display:none}
 #fotografia .photo-featured-top{grid-template-columns:42px minmax(0,1fr);gap:10px}
 #fotografia .photo-featured-top h3,#fotografia .photo-featured-counter{font-size:8px;line-height:1.4}
 #fotografia .photo-featured-controls{margin:2px 0 0;gap:4px}
 #fotografia .photo-featured-controls>button{width:44px;height:44px;min-width:44px;min-height:44px}
 #fotografia .photo-featured-controls .photo-ascii-control{font-size:12px}
 #fotografia .photo-featured-controls>button::before,#fotografia .photo-featured-controls>button::after{font-size:18px}
 #fotografia .photo-featured-caption,#fotografia .photo-featured-intro{display:none}
 #fotografia .photo-project-list{left:18px;right:18px;bottom:calc(4px + env(safe-area-inset-bottom));max-width:none;gap:0;align-items:stretch}
 #fotografia .photo-menu-categories,#fotografia .photo-menu-sessions{width:100%;max-width:100%;flex-wrap:nowrap;justify-content:flex-start;gap:0 18px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;-webkit-overflow-scrolling:touch}
 #fotografia .photo-menu-categories::-webkit-scrollbar,#fotografia .photo-menu-sessions::-webkit-scrollbar{display:none}
 #fotografia :is(.photo-project-choice,.photo-menu-category){flex:0 0 auto;white-space:nowrap;font-size:8px!important;letter-spacing:0;min-height:32px;padding:4px 0;line-height:1.4}
}

/* About has one brand mark; its mobile contact block is compact and direct. */
body:has(#about:not([hidden]))>footer>.brand{display:none}
@media(max-width:700px){
 #about.profile-page{padding-bottom:24px;min-height:0}
 #about .about-layout{display:flex;flex-direction:column;gap:20px;margin:18px 0 0;padding-top:16px}
 #about .about-margin{display:none}
 #about .about-contact{order:0;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:0 16px;width:100%;max-width:none;margin:0;padding:0;border:0}
 #about .about-contact>.eyebrow{display:none}
 #about .about-contact h3{grid-column:1/-1;margin:0 0 4px;font:10px/1.5 'Courier New',monospace;letter-spacing:.08em;text-transform:uppercase;color:var(--qa-muted)}
 #about .about-contact #about-email{grid-column:1/-1;display:flex;align-items:center;min-height:44px;margin:0;font:22px/1.3 'Courier New',monospace;letter-spacing:-.025em}
 #about .about-contact #about-phone{grid-column:1;grid-row:3;margin:4px 0 0;font:11px/1.7 'Courier New',monospace;min-height:44px;white-space:pre-line}
 #about .about-contact #about-instagram{grid-column:2;grid-row:3;justify-self:end;margin:4px 0 0;font:11px/1.5 'Courier New',monospace;min-height:44px}
 #about .about-narrative{order:1;width:100%;max-width:none;padding-top:18px;border-top:1px solid #ffffff26}
 #about .about-narrative h1{font-size:27px;line-height:1.12;margin:0 0 12px}
 #about .about-narrative h1::after{display:none}
 #about #profile-bio{max-width:none;font-size:12px;line-height:1.65;margin:0 0 12px}
 #about #profile-paragraphs{max-width:none;font-size:12px;line-height:1.7}
 #about #profile-paragraphs p+p{margin-top:10px}
 #about .about-work-link{margin-top:8px;padding:10px 0;min-height:44px}
 body:has(#about:not([hidden]))>footer{display:flex;flex-wrap:nowrap;gap:16px;margin:0 18px;padding:10px 0 14px;border-top:1px solid #ffffff26}
 body:has(#about:not([hidden]))>footer>span{order:0;flex:1;line-height:1.6;font-size:8px}
 body:has(#about:not([hidden]))>footer>a:last-child{display:flex;align-items:center;min-height:44px;flex:none;font-size:8px}
}

/* Mobile film browsing: one clear category control and consistent compact cards. */
.work-mobile-filter{display:none}
#filmy .work-credit-details{width:100%}
#filmy .work-credit-details>summary{display:none}
@media(max-width:700px){
 #filmy.works{padding-bottom:28px}
 #filmy .works-intro{margin:12px 0 12px}
 #filmy .works-intro p{font-size:11px;line-height:1.5;color:#b8bdb2}
 #filmy .works-toolbar{display:flex;align-items:center;gap:14px;padding:0;margin:0 0 20px;min-height:48px}
 #filmy .work-filters{display:none}
 #filmy .work-mobile-filter{display:block;flex:1;min-width:0}
 #filmy #work-category-mobile{display:block;width:100%;height:48px;border:1px solid #ffffff30;border-radius:3px;padding:0 10px;background:#121512;color:#efefe9;color-scheme:dark;font:12px/1.4 'Courier New',monospace}
 #filmy .work-results{display:block;flex:0 0 auto;margin:0;max-width:86px;text-align:right;font:9px/1.5 'Courier New',monospace;color:#aeb6a7}
 #filmy .works-list>.work-project:nth-child(n){margin:0 0 24px;padding:0 0 20px;border-bottom:1px solid #ffffff1c}
 #filmy .work-project:nth-child(n) .work-caption{display:grid;grid-template-columns:18px minmax(0,1fr);gap:4px 8px;margin:10px 0 0}
 #filmy .work-caption h2{font-size:21px;line-height:1.2;letter-spacing:-.015em}
 #filmy .work-caption .work-number{font-size:9px;padding-top:4px}
 #filmy .work-caption>span:last-child{grid-column:2;grid-row:2;margin:0;padding:0;font-size:9px;line-height:1.5;text-align:left}
 #filmy .work-project:nth-child(n) .work-description{margin:6px 0 0 26px;gap:4px}
 #filmy .work-project:not(.has-external-video) .work-watch{display:none}
 #filmy .work-project:not(.has-external-video) .work-description:not(:has(.work-credit-details)){display:none}
 #filmy .work-credit-details>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;list-style:none;cursor:pointer;font:12px/1.8 'Courier New',monospace;color:#b8bdb2}
 #filmy .work-credit-details>summary::-webkit-details-marker{display:none}
 #filmy .work-credit-details>summary::after{content:'+';font-size:16px}
 #filmy .work-credit-details[open]>summary::after{content:'−'}
 #filmy .work-credit-details>summary:focus-visible{outline:2px solid #e4e9df;outline-offset:2px}
 #filmy .work-credits{grid-template-columns:minmax(78px,.7fr) minmax(0,1.3fr);gap:10px 12px;padding:0 0 10px;font-size:12px;line-height:1.8}
 #filmy .work-play-mark.kinetic-play{top:auto;bottom:12px;left:12px;transform:none;width:auto;height:30px;min-height:30px}
 #filmy .work-play-mark .play-inner{min-height:30px!important;padding:7px 10px!important;font-size:8px!important}
 #filmy .work-duration{bottom:12px;right:12px;font-size:9px}
 #filmy .work-reel-group .work-project{margin:0;padding:0;border:0}
 #filmy .work-reel-group .work-project .work-caption{display:block}
 #filmy .work-reel-group .work-caption h2{font-size:13px}
 #filmy .work-reel-group .work-description{display:none!important}
 #filmy .work-reel-group .work-play-mark{left:5px;bottom:5px}
 #filmy .work-reel-group .work-duration{bottom:42px;right:5px;font-size:7px}
 #filmy .works-switch{margin:12px 0 0;width:100%;justify-content:space-between}
 body.view-works>footer>.brand{display:none}
 body.view-works>footer{flex-wrap:nowrap;gap:14px;padding:12px 0 18px}
 body.view-works>footer>span{order:0;flex:1;font-size:8px;line-height:1.6}
 body.view-works>footer>a:last-child{display:flex;align-items:center;min-height:44px;font-size:8px;flex:none}
}

/* Keep the photo counter, progress and arrows on a single compact row. */
@media(max-width:700px){
 #fotografia .photo-featured-rail>.photo-featured-nav{display:grid;grid-template-columns:42px minmax(0,1fr);align-items:center;gap:8px}
 #fotografia .photo-featured-nav>.photo-featured-top{grid-column:1;grid-row:1;display:block}
 #fotografia .photo-featured-top h3{display:none}
 #fotografia .photo-featured-nav>.photo-featured-controls{grid-column:2;grid-row:1;margin:0;min-width:0;gap:4px}
 #fotografia .photo-featured-controls .photo-featured-progress{margin-right:4px}
}

/* Use the same film groups in the compact phone selector. */
@media(max-width:700px){
 #filmy .works-toolbar{display:flex}
 #filmy .works-intro{display:none}
 #filmy .work-mobile-filter{display:block;width:100%;margin:0}
 #filmy .works-list{margin-top:14px}
}

/* Film information follows the site's bracket-based controls. */
#film-dialog .player-bottom .info-toggle{min-height:44px;gap:10px;padding:8px 0 8px 12px;border:0;border-radius:0;background:transparent;color:#eee;font:10px/1.4 'Courier New',monospace;letter-spacing:.06em;text-transform:uppercase;white-space:nowrap}
#film-dialog .player-bottom .info-toggle .icon{display:none}
#film-dialog .player-bottom .info-toggle::before{content:'[';font-size:16px;opacity:.6}
#film-dialog .player-bottom .info-toggle::after{content:']';font-size:16px;opacity:.6}
#film-dialog .player-bottom .info-toggle:hover{background:transparent;color:#fff}
#film-dialog .player-bottom .info-toggle:hover span{text-decoration:underline;text-underline-offset:5px}
#film-dialog .player-bottom .info-toggle:focus-visible{outline:1px solid currentColor;outline-offset:3px}

/* Trim baked-in pale edges at every viewport size, including phone overrides. */
body.photo-has-hero #fotografia .photo-featured[data-session-id="andalusia"]:is([data-photo-index="0"],[data-photo-index="2"]) .photo-featured-image>img{clip-path:inset(1%);transform:scale(1.021);border:0;box-shadow:none}

/* Analog shows one complete photograph at a time at every viewport size. */
body.photo-has-hero #fotografia .photo-featured[data-session-id="analog"] .photo-featured-image{inset:0;display:block;overflow:hidden;background:#080a09}
body.photo-has-hero #fotografia .photo-featured[data-session-id="analog"] .photo-featured-image>img{display:block;width:100%;height:100%;min-height:0;max-width:none;max-height:none;object-fit:cover!important;object-position:center!important;transform:none;filter:none;animation:none}

/* Wider mobile framing preserves both people and the sleeping bag in TATRY. */
@media(max-width:700px){
 body.photo-has-hero #fotografia .photo-featured[data-session-id="adventures-breath"]:is([data-photo-index="3"],[data-photo-index="5"],[data-photo-index="10"]) .photo-featured-image{inset:12svh 0 18svh}
 body.photo-has-hero #fotografia .photo-featured[data-session-id="adventures-breath"][data-photo-index="5"] .photo-featured-image{inset:50% 0 auto;height:min(60svh,100vw);transform:translateY(-50%)}
}

/* Keep the mobile Start controls in one flow, including long ASCII titles. */
@media(max-width:700px){
 #start.hero{height:100svh;min-height:100svh}
 #start .hero-rail{top:auto;left:18px;right:18px;bottom:calc(24px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:20px}
 #start .hero-rail .intro{display:none}
 #start .hero-rail #play-film.ascii-play-button{position:static;align-self:center;transform:none;width:160px;height:64px;min-height:64px;padding:8px;margin:0}
 #start .selected-film.featured-navigator{width:100%;max-width:none;min-width:0;padding:0;border:0}
 #start .featured-ascii-title{position:static;display:flex;flex-direction:column;justify-content:flex-end;width:100%;min-height:92px;margin:0 0 16px;line-height:1.1}
 #start .featured-top{grid-template-columns:42px minmax(0,1fr);gap:12px;align-items:baseline}
 #start #film-title{font-size:10px;line-height:1.4;overflow-wrap:anywhere;margin:0}
 #start .featured-counter{font-size:9px}
 #start .featured-bottom{gap:8px;margin-top:10px}
 #start .featured-arrows{gap:8px;flex:none}
 #start .featured-arrows button{width:44px;height:44px;min-width:44px;padding:8px}
 #start .featured-progress{gap:2px}
 #start .featured-progress button{min-width:24px;height:44px}
 #start .selected-film.featured-navigator>#film-description{display:none}
 #start .selected-film.featured-navigator>#film-facts{font-size:9px;line-height:1.4;margin-top:8px;opacity:.85}
 #start .featured-navigator::before{display:none}
 #start .hero-bottom{display:none}
}
@media(max-width:700px) and (max-height:500px){
 #start .hero-rail{display:grid;grid-template-columns:100px minmax(0,1fr);gap:20px;bottom:calc(14px + env(safe-area-inset-bottom))}
 #start .hero-rail #play-film.ascii-play-button{width:100px;align-self:center}
 #start #play-film.ascii-play-button .ascii-play-mark{font-size:3px}
 #start .featured-ascii-title{min-height:0;font-size:4px!important;margin-bottom:8px}
 #start .featured-bottom{margin-top:4px}
 #start .selected-film.featured-navigator>#film-facts{margin-top:2px}
}
/* Mobile categories use the same quiet text controls as desktop. */
@media(max-width:700px){
 #filmy .works-toolbar{display:block;min-height:0}
 #filmy .work-mobile-filter{display:none}
 #filmy .work-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 12px;overflow:visible;margin:0;padding:0}
 #filmy .work-filters .pill{min-width:0;min-height:44px;width:max-content;max-width:100%;justify-content:flex-start;gap:2px;font-size:12px!important;letter-spacing:0;white-space:normal;text-align:left}
 #filmy .work-filters .pill sup{font-size:8px;margin-left:0}
 #filmy .work-results{max-width:none;text-align:left;margin-top:8px;font-size:10px}
}
/* Lift only the phone play control, keeping the film caption in place. */
@media(max-width:700px) and (orientation:portrait){
 #start .hero-rail #play-film.ascii-play-button{position:relative;top:-48px;left:auto;right:auto}
}
