/* yrony v4 — shell: bar, side panel, lightbox frame, footer. Values from mockup v14 (cqw = % of the page width). */
body[data-room]{position:relative}
/* the room and the footer are the size containers (cqw); the body is not, so position:fixed (bar, side panel) means the screen */
#app,footer.foot{container-type:inline-size}
/* in the rooms, base.css makes every link inherit the room colour (cream on white): this outranks it. Plain pages keep v31.css's skip link */
body:not([data-room="page"]) a.skip{position:absolute;left:-9999px;top:0;z-index:60;background:#fff;color:#000;padding:10px 14px;font:700 13px "Space Mono",monospace}
body:not([data-room="page"]) a.skip:focus{left:10px;top:10px}
#app{position:relative;display:block;outline:none}
body:not([data-room="page"]) #app{height:100vh;height:100dvh;overflow:hidden;isolation:isolate}

/* bar */
.bar{position:fixed;left:0;right:0;top:0;z-index:30;display:flex;align-items:center;gap:2.6cqw;padding:1.8cqw 2.4cqw;pointer-events:none;color:var(--ink);transition:opacity .4s,background-color .35s,box-shadow .35s}
/* it stays on screen while the page scrolls; once scrolled it gets the room's ground so it reads over anything */
html.scrolled .bar{background:var(--bg);box-shadow:0 1px 0 color-mix(in srgb,var(--ink) 16%,transparent)}
body.admin-bar .bar{top:32px}
@media (max-width:782px){body.admin-bar .bar{top:46px}}
/* phones: WordPress's admin bar is absolute and expects an unpositioned body; ours is positioned, so put it back on top */
@media (max-width:600px){body.admin-bar #wpadminbar{top:-46px}html.scrolled body.admin-bar .bar{top:0}}
.bar>*{pointer-events:auto}
body[data-room="home"] .bar{display:none}
html.lbopen .bar,#app.detailing~.bar{opacity:0;pointer-events:none}
html.lbopen .bar>*{pointer-events:none}
.bar a.logo{margin-right:auto;display:block;line-height:0;filter:none}/* app.css (legacy pages) inverts every .logo; the img below already does it */
.bar a.logo img{width:max(3.6cqw,44px);height:max(3.6cqw,44px);display:block;filter:invert(1);transition:transform .35s cubic-bezier(.16,1,.3,1)}
.bar a.logo:hover img{transform:rotate(-6deg)}
body[data-room="model"] .bar a.logo img{filter:brightness(0)}
body[data-room="foto"] .bar a.logo img{filter:brightness(0) saturate(100%) invert(9%) sepia(43%) saturate(4000%) hue-rotate(220deg)}
body[data-room="projects"] .bar a.logo img{filter:brightness(0) saturate(100%) invert(14%) sepia(97%) saturate(6000%) hue-rotate(244deg)}
.bar .book{font:700 max(1.15cqw,11px)/1 "Space Mono",monospace;letter-spacing:.14em;text-transform:uppercase;color:inherit;text-decoration:none;opacity:.85;transition:opacity .4s}
.bar .book:hover{opacity:1}
/* foto and model run their photos under the bar, so there contact me and the burger sit on a small chip
   in the room's own material: foto the frosted pill of its category bar, dreams its night glass, model its yellow */
body[data-room="foto"]{--chip:#eef8ffcc}
body[data-room="foto"][data-variant="dreams"]{--chip:#0d0a35cc}
body[data-room="model"]{--chip:#ffd21f}
body:is([data-room="foto"],[data-room="model"]) .bar .book{padding:.75em 1.15em;margin:-.75em 0;border-radius:999px;background:var(--chip);opacity:1;transition:background .4s}
body:is([data-room="foto"],[data-room="model"]) .bar .burger::before{content:"";position:absolute;inset:-12px -11px;border-radius:999px;background:var(--chip);z-index:-1;transition:opacity .4s}
body[data-room="foto"] .bar .book,body[data-room="foto"] .bar .burger::before{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
html.navopen body .bar .book,html.scrolled body .bar .book{background:transparent}
.navopen .bar .burger::before,html.scrolled .bar .burger::before{opacity:0}
.burger{position:relative;width:max(3cqw,30px);height:max(2.2cqw,22px);background:none;border:0;cursor:pointer;color:inherit;padding:0}
.burger i{position:absolute;left:0;right:0;height:max(.22cqw,2px);background:currentColor;border-radius:1px;transition:transform .5s cubic-bezier(.65,0,.35,1),opacity .3s,top .5s cubic-bezier(.65,0,.35,1)}
.burger i:nth-child(1){top:0}.burger i:nth-child(2){top:calc(50% - 1px)}.burger i:nth-child(3){top:calc(100% - 2px)}
/* with the panel open, contact me and the close button sit on the panel: they take its ink, not the room's */
.navopen .bar .book,.navopen .bar .burger{color:var(--side-ink);transition:color .4s}
.navopen .burger i:nth-child(1){top:calc(50% - 1px);transform:rotate(45deg)}.navopen .burger i:nth-child(2){opacity:0}.navopen .burger i:nth-child(3){top:calc(50% - 1px);transform:rotate(-45deg)}

/* side panel */
.scrim{position:fixed;inset:0;z-index:24;background:#00000026;opacity:0;pointer-events:none;transition:opacity .6s}
.navopen .scrim{opacity:1;pointer-events:auto}
.side{position:fixed;top:0;right:0;bottom:0;width:34%;z-index:26;transform:translateX(101%);visibility:hidden;transition:transform .7s cubic-bezier(.65,0,.35,1),visibility 0s linear .7s;
  padding:9cqw 3cqw 3cqw;display:flex;flex-direction:column;box-shadow:-1cqw 0 3cqw #0003;background:var(--side-bg);color:var(--side-ink);overflow-y:auto}
.navopen .side{transform:none;visibility:visible;transition-delay:0s}
.side .main{display:flex;flex-direction:column}
.side a{display:block;text-decoration:none;color:inherit;font-size:max(3.6cqw,30px);line-height:1.14;opacity:0;transform:translateX(2cqw);
  transition:opacity .6s ease,transform .8s cubic-bezier(.16,1,.3,1),color .6s ease;font-family:Geist;font-weight:800}
.navopen .side a{opacity:1;transform:none}
.navopen .side .main:hover a{opacity:.5}
.navopen .side .main a:hover,.navopen .side .main a:focus-visible{opacity:1;transform:translateX(.6cqw)}
.navopen .side a.here{transform:translateX(1.4cqw);color:var(--here)}
.navopen .side .main a:nth-child(1){transition-delay:.18s}.navopen .side .main a:nth-child(2){transition-delay:.22s}.navopen .side .main a:nth-child(3){transition-delay:.26s}.navopen .side .main a:nth-child(4){transition-delay:.3s}.navopen .side .main a:nth-child(5){transition-delay:.34s}.navopen .side .main a:nth-child(6){transition-delay:.38s}
.navopen .side .main:hover a,.navopen .side .main a:hover{transition-delay:0s}
.side .sm{margin-top:auto;padding-top:3cqw;display:flex;flex-direction:column;gap:.9cqw}
.side .sm a{font:700 max(1.2cqw,12px) "Space Mono",monospace;letter-spacing:.14em;text-transform:uppercase;transition-delay:.42s}
body[data-room="film"] .side .main a{font-family:"Big Shoulders Display";font-weight:900;text-transform:uppercase}
body[data-room="music"] .side .main a{font-family:Anton;font-weight:400;text-transform:uppercase}
body[data-room="foto"] .side .main a{font-family:Unbounded;font-weight:800;letter-spacing:-.03em;font-size:max(3cqw,26px)}
body[data-room="model"] .side .main a{font-family:"Bagel Fat One";font-weight:400}
body[data-room="projects"] .side .main a{font-family:Archivo;font-stretch:125%;font-weight:900;text-transform:uppercase;font-size:max(2.8cqw,24px);letter-spacing:-.03em}

/* lightbox frame (rooms add their own background) */
.lb{position:fixed;inset:0;z-index:40;opacity:0;pointer-events:none;transition:opacity .45s;cursor:zoom-out}
.lb.on{opacity:1;pointer-events:auto}
.lb .pic{position:absolute;left:7%;top:8%;width:86%;height:84%;object-fit:contain;cursor:default}
.lb .x{position:absolute;right:2.4cqw;top:2cqw;font:700 max(1.3cqw,12px) "Space Mono",monospace;letter-spacing:.14em;cursor:pointer;background:none;border:0;color:inherit;z-index:2;padding:10px}
.lb .pv,.lb .nx{position:absolute;top:50%;transform:translateY(-50%);font:700 max(2.4cqw,22px) "Space Mono",monospace;cursor:pointer;background:none;border:0;color:inherit;padding:1cqw;z-index:2}
.lb .pv{left:1.2cqw}.lb .nx{right:1.2cqw}

/* footer */
footer.foot{position:relative;overflow:hidden;padding:2.4cqw 2.4cqw 1.6cqw;border:0;margin:0}
footer.foot .top{display:flex;justify-content:space-between;gap:2cqw;font:700 max(1.45cqw,11px)/1.55 "Space Mono",monospace;text-transform:uppercase;letter-spacing:.04em;margin-bottom:2.4cqw}
footer.foot .top a{color:inherit;text-decoration:none;display:block;transform-origin:0 50%;transition:transform .35s cubic-bezier(.16,1,.3,1)}
footer.foot .top .end{text-align:right}
footer.foot .top .end a{transform-origin:100% 50%}
footer.foot .top a:hover,footer.foot .top a:focus-visible{transform:scale(1.12)}
footer.foot a.wordmark{display:block;color:inherit}
footer.foot a.wordmark:focus-visible{outline:2px solid currentColor;outline-offset:6px}
footer.foot svg{display:block;width:100%;height:auto;overflow:visible;cursor:pointer}
footer.foot .half{transition:transform .45s cubic-bezier(.2,.9,.25,1.15)}
footer.foot .lt:hover .up{transform:translate(7px,-3px)}footer.foot .lt:hover .dn{transform:translate(-7px,3px)}
footer.foot .glo{opacity:0;transition:opacity 2s cubic-bezier(.65,0,.35,1)}
footer.foot .lt.lit .glo{opacity:1;transition-duration:.9s}

/* the plain pages (bio, imprint, project posts) start below the bar */
body[data-room="page"] #app{padding-top:max(7cqw,72px)}

:focus-visible{outline:2px solid currentColor;outline-offset:3px}

/* phones: full-width panel, thumb-sized targets */
@media (max-width:700px){
  .bar{padding:10px 12px;gap:6px}
  .bar a.logo,.bar a.book,.bar .burger{min-width:44px;min-height:44px;display:flex;align-items:center;justify-content:center}
  .bar a.logo{justify-content:flex-start}
  .bar .book{padding:0 8px}
  .bar .burger{width:44px;height:44px}
  .bar .burger i{left:9px;right:9px}
  .burger i:nth-child(1){top:13px}.burger i:nth-child(2){top:21px}.burger i:nth-child(3){top:29px}
  .navopen .burger i:nth-child(1),.navopen .burger i:nth-child(3){top:21px}
  .side{width:100%;padding:96px 24px 28px}
  .side .sm a{padding:6px 0}
  footer.foot{padding:24px 16px 14px}
  footer.foot .top{flex-direction:column;gap:14px;margin-bottom:22px}
  footer.foot .top .end{text-align:left}
  footer.foot .top .end a{transform-origin:0 50%}
}
/* phones: every tap target at least 44px (the look stays; the hit area grows) */
@media (max-width:700px){
  .side .main a{min-height:44px;display:flex;align-items:center}
  .side .sm a{min-height:44px;display:flex;align-items:center;padding:0}
  footer.foot .top a{min-height:44px;display:flex;align-items:center}
  footer.foot .top .end a{justify-content:flex-start}
  .lnk{display:inline-flex;align-items:center;min-height:44px;padding-bottom:0}
}
/* logged in: the WordPress admin bar takes the top 32px (46px on narrow screens) — the room shrinks to fit */
body.admin-bar:not([data-room="page"]) #app{height:calc(100vh - 32px);height:calc(100dvh - 32px)}
@media (max-width:782px){body.admin-bar:not([data-room="page"]) #app{height:calc(100vh - 46px);height:calc(100dvh - 46px)}}
/* phones: the burger is already a 44px target, so its chip is that circle */
@media (max-width:700px){body:is([data-room="foto"],[data-room="model"]) .bar .burger::before{inset:1px}body:is([data-room="foto"],[data-room="model"]) .bar .book{margin:0}}
