/* round 61: header line, mobile menu (Wix-like), footer e. centering */
.bar{--ln:#8c8c8c}
.bar::after{content:"";position:absolute;left:var(--ls,calc(var(--edge,4vw) + 175px));right:var(--le,calc(var(--edge,4vw) + 75px));top:var(--hl,53px);height:1px;background:var(--ln);pointer-events:none}
.nav{border-bottom:0!important}
@media (max-width:900px){
 .bar::after{right:var(--edge,4vw);left:var(--edge,4vw);top:auto;bottom:0}
 .bar{height:64px}
}
/* mobile menu */
.menu{padding:0!important;background:#000}
.menu .mhead{position:sticky;top:0;z-index:2;height:64px;display:flex;align-items:center;justify-content:space-between;padding:0 4vw;background:#000;border-bottom:1px solid var(--ln,#8c8c8c);margin:0 4vw}
.menu .mhead{margin:0;padding:0 4vw}
.menu .mhead a{font:500 20px/1 "Sora",sans-serif;color:#fff;text-decoration:none}
.menu .mx{position:static!important}
.menu .mlist{padding:0 4vw 40px}
.menu .mi{border-bottom:1px solid #1c1c1c}
.menu .mi>a,.menu .mi>button{display:flex;width:100%;align-items:center;justify-content:space-between;background:none;border:0;cursor:pointer;font:300 22px/1 "Sora",sans-serif;color:#fff;text-decoration:none;padding:22px 0;text-align:left}
.menu .mi.cta>a{color:var(--blue)}
.menu .mi .pl{position:relative;width:14px;height:14px;flex:none}
.menu .mi .pl::before,.menu .mi .pl::after{content:"";position:absolute;background:var(--blue);left:0;top:6px;width:14px;height:2px;transition:transform .3s}
.menu .mi .pl::after{transform:rotate(90deg)}
.menu .mi.open .pl::after{transform:rotate(0)}
.menu .mi ul{list-style:none;margin:0;padding:0;max-height:0;overflow:hidden;transition:max-height .4s ease}
.menu .mi.open ul{max-height:600px;padding-bottom:14px}
.menu .mi ul a{font:300 16px/1.2 "Inter",sans-serif;color:#b9b9b9;padding:10px 0 10px 14px;display:block;text-decoration:none}
.menu .mi ul a::before{content:none}
/* footer e. centering */
.ft-e{text-align:center}
.ft-e span{display:block;text-align:center;margin-inline:auto;width:100%;padding-right:0}
@media (max-width:900px){.ft-e span{box-sizing:border-box;padding-left:.2em}.ft-c{padding-right:84px}}

/* Let's work together: tighter vertical rhythm on phones */
@media (max-width:900px){
 body:has(.lw-stack){--gap:56px;--gap-s:22px}
 body:has(.lw-stack) .sec{padding-top:60px}
 body:has(.lw-stack) .sec::before,body:has(.lw-stack) .proc-full::before,body:has(.lw-stack) #contact::before{top:28px}
 body:has(.lw-stack) .hero{padding-top:96px;padding-bottom:0}
 body:has(.lw-stack) .hero+.sep,body:has(.lw-stack) .sep{margin:28px auto!important}
 body:has(.lw-stack) .lw-stack{padding-bottom:0}
 body:has(.lw-stack) .proc-full{margin-top:56px}
 body:has(.lw-stack) #contact{padding-top:56px}
}

/* ===== phones: stacked category decks (sticky headers pile up) + vertical preview strips ===== */
@media (max-width:900px){
 :root{--bt:70px}
 html:has(.bar.away){--bt:0px}
 .stack{display:block!important;margin-top:var(--gap-s,24px);overflow-anchor:none}
 .stk{display:contents!important}
 .stk::before{display:none!important}
 .stk>.cd,.stk>.stb,.stk>.cdl{padding-inline:16px;margin-inline:0}
 .stk>.stb{margin-bottom:8px}
 .sth{position:sticky!important;top:calc(var(--bt) + min(var(--k,0),3)*54px)!important;z-index:calc(10 + var(--k,0));height:54px!important;min-height:54px;padding:0 16px!important;margin-top:34px;display:flex!important;align-items:center!important;gap:12px;flex-wrap:nowrap!important;background:#000;border-top:1px solid #1a6aff;transition:top .35s}
 .sth h2{margin:0;font:600 clamp(26px,7.6vw,32px)/1 "Poppins",sans-serif!important;letter-spacing:-.025em;padding-right:0!important;flex:none;white-space:nowrap}
 .sth .cnt{font:400 10px/1.2 "Sora",sans-serif;letter-spacing:.14em;text-transform:uppercase;color:#7a7a7a;margin-left:auto;text-align:right;max-width:38%!important;white-space:normal!important;position:static!important}
 .sth::after{content:""!important;position:absolute!important;left:0!important;right:0!important;top:100%!important;bottom:auto!important;width:auto!important;height:22px!important;border:0!important;transform:none!important;background:linear-gradient(#000,#0000)!important;pointer-events:none}
 .stk:first-child>.sth{margin-top:0}
 /* project names: lists are redundant next to tiles on Design/Branding, tile names redundant on CGI */
 .stack[data-page="Design"] .stl,.stack[data-page="Branding"] .stl,.stack[data-page="Design"] .stlw,.stack[data-page="Branding"] .stlw{display:none}
 /* vertical preview strips (class .strips is set by base.js on Design, Branding and CGI > Storytelling) */
 .stack[data-page="Design"] .stl,.stack[data-page="Branding"] .stl,.stack[data-page="Design"] .stlw,.stack[data-page="Branding"] .stlw,.stk.strips .stl,.stk.strips .stlw{display:none}
 .stack[data-page="CGI"] .stk:not(.strips) .pt .cap b{display:none}
 .stk.strips{--full:min(70vh,560px)}
 .stk.strips .row{gap:0}
 .stk.strips .row .pt{aspect-ratio:auto!important;height:84px;margin-bottom:4px;transition:height .8s cubic-bezier(.2,.7,.2,1)}
 .stk.strips .row .pt.nb{height:200px}
 .stk.strips .row .pt.cur{height:var(--full)}
 .stk.strips .row .pt .sl img,.stk.strips .row .pt .sl video{position:absolute;left:0;top:50%;width:100%;height:var(--full);transform:translateY(-50%)!important;object-fit:cover;transition:filter .8s}
 .stk.strips .row .pt:not(.cur) .sl img{filter:brightness(.5)}
 .stk.strips .row .pt.nb .sl img{filter:brightness(.7)}
 .stk.strips .row .pt .cap{left:16px;right:16px;bottom:auto;top:50%;transform:translateY(-50%);transition:top .8s,transform .8s}
 .stk.strips .row .pt.cur .cap,.stk.strips .row .pt.nb .cap{top:auto;bottom:18px;transform:none}
 .stk.strips .row .pt::before{height:60%}
}
@media (max-width:900px){
 .sth,.stk .sth{opacity:1!important;filter:none!important}
 .sth .cnt{white-space:nowrap!important;overflow:hidden;text-overflow:ellipsis;min-width:0;flex:1 1 auto;max-width:none!important}
}
@media (max-width:900px){
 .sth h2{font-size:clamp(22px,6.2vw,28px)!important;flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis}
}

/* tablets (touch): home opening screen fills the screen like on desktop; lighter effects */
@media (min-width:600px) and (max-width:1100px) and (hover:none){
 html:root{--fs:clamp(64px,12vw,122px);--rowH:calc((100svh - 84px)/4.15)}
 html:root .row.open .band{filter:none!important}
}
@media (max-width:599px) and (hover:none){
 html:root .row.open .band{filter:none!important}
}

.row.sc .pt{flex:.75}.row.sc .pt.on{flex:2.5}
.row.sc .pt:not(.on) .sl img{filter:brightness(.35)}
@media (min-width:600px) and (max-width:1100px){.t-long{display:inline!important}.t-short{display:none!important}}
@media (max-width:900px){
 /* CGI cards: title (+badge) → video → text with Read more */
 .stack[data-page="CGI"]{display:flex!important;flex-direction:column}
 .stack[data-page="CGI"] .sth{order:calc(var(--k,0)*10)}
 .stack[data-page="CGI"] .stk>.stb{order:calc(var(--k,0)*10 + 1);margin-top:14px}
 .stack[data-page="CGI"] .stk>.cd,.stack[data-page="CGI"] .stk>.cdl{order:calc(var(--k,0)*10 + 2)}
 .stack[data-page="CGI"] .stk>.rm{order:calc(var(--k,0)*10 + 3)}
 .stack[data-page="CGI"] .stk>.stb .gda{order:3}
 .fold{max-height:150px;overflow:hidden;position:relative;-webkit-mask-image:linear-gradient(#000 60%,transparent);mask-image:linear-gradient(#000 60%,transparent)}
 .fold.openall{max-height:none;-webkit-mask-image:none;mask-image:none}
 .rm{display:block;margin:6px 16px 18px;background:none;border:1px solid #1a6aff;color:#fff;font:400 13px/1 "Sora",sans-serif;letter-spacing:.06em;padding:11px 16px;cursor:pointer}
 .sth .gdm{height:38px;width:auto;flex:none;margin-left:auto;filter:invert(1) hue-rotate(180deg);mix-blend-mode:screen}
 .sth:has(.gdm) .cnt{display:none}
}
@media (max-width:900px){
 .stk .stb,.stk .cd,.stk .cdl,.stack .stb,.stack .cd{filter:none!important;opacity:1!important}
 .stk>.stb{min-height:0!important}
 .stack[data-page="CGI"] .stk>.stb{display:flex!important;flex-direction:column;gap:14px}
 .stack[data-page="CGI"] .stk>.stb .row.one{order:1}
 .stack[data-page="CGI"] .stk>.stb .stlw{order:2}
 .stack[data-page="CGI"] .stlw .stl{display:none!important}
 .stack[data-page="CGI"] .sth .cnt{display:none!important}
 .stack[data-page="CGI"] .sth h2{font-size:clamp(20px,5.8vw,25px)!important}
 .stack[data-page="CGI"] .stk>.cd{margin-top:4px}
}
@media (max-width:900px){
 .stack[data-page="CGI"] .stk>.stb{padding-top:0!important;margin-top:6px;gap:6px}
 .stack[data-page="CGI"] .stlw{margin:0;padding:0}
}

/* round 62: captions fit (scrim + wrap), slower crossfades */
.pt::before{content:"";position:absolute;left:0;right:0;bottom:0;height:52%;z-index:1;pointer-events:none;background:linear-gradient(#0000,#000000d9)}
.pt .cap,.pt .bars{z-index:3}
.pt .cap{left:clamp(12px,1.4vw,18px);right:clamp(12px,1.4vw,18px);bottom:clamp(12px,1.2vw,16px);font-size:clamp(14px,1.2vw,18px);align-items:flex-end}
.pt .cap b{white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;line-height:1.18;text-overflow:clip}
.tg{flex-wrap:wrap;row-gap:5px;column-gap:10px;overflow:visible;max-height:2.4em}
.pt .cap i{flex:none}
.pt .sl img{transition:opacity .42s ease,transform 1.2s var(--ease),filter .5s!important}
.band{transition:opacity 1.1s cubic-bezier(.45,0,.25,1)!important}
.closing .band{transition:opacity 1.3s cubic-bezier(.45,0,.25,1)!important}

/* round 62 mobile footer: round links keep their shape and get bigger */
@media (max-width:900px){
 .ft .soc{gap:18px;flex-wrap:wrap}
 .ft .soc a{flex:none;width:52px;height:52px}
 .ft .soc img{width:100%;height:100%;object-fit:contain;border-radius:50%}
}

/* round 62: phone opening screen - titles scale with the widest one ("About me" spans the width) */
@media (max-width:599px){
 html:root{--fs:min(18.6vw,112px);--padR:5vw}
 main{padding-top:84px}
 .about{height:calc(var(--rowH)*1.45)}
}

/* round 62: photography - justified rows in file-name order, 3x gutter */
.pg .gal{columns:auto;display:flex;flex-wrap:wrap;gap:clamp(18px,3vw,42px)}
.pg .gal a{margin:0;break-inside:auto;flex:var(--ar,1.4) 1 calc(var(--ar,1.4)*250px);aspect-ratio:var(--ar,1.4);min-width:0}
.pg .gal img{height:100%;object-fit:cover}
.pg .gal::after{content:"";flex:12 1 0}
@media (max-width:700px){.pg .gal{gap:14px}.pg .gal a{flex-basis:calc(var(--ar,1.4)*130px)}}
/* Assos cover: logos on white, rotating */
.pt.wht{--tile:#fff;background:#fff}
.pt.wht .sl img{filter:none!important;object-fit:contain;background:#fff;transform:none}
.pt.wht::before{height:40%;background:linear-gradient(#fff0,#fffffff2)}
.pt.wht .cap{color:#000;text-shadow:none}
.pt.wht .cap b{color:#000}
