/* jojo studio – Youssef Halila */
@font-face{font-family:"Riccione";src:url("../fonts/riccione-regular.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}
:root{
  --bg:#ffffff; --ink:#000000; --muted:#848484; --bar:rgba(217,217,217,.22);
  --ph:#ececec; --mono:none; --hero-ph:#8b847c; --stage:#000000;
  --sheet:#ffffff; --sheet-ink:#000000; --veil:rgba(0,0,0,.5);
  --sans:"Helvetica Neue","Inter",Helvetica,Arial,sans-serif;
  --serif:"Bodoni Moda","Bodoni 72",Didot,serif;
  --w-thin:200; --w-light:300; --w-reg:400; --w-med:500; --w-bold:700;
  --display:"Riccione","Bodoni Moda",Didot,serif;
  --fs-nav:clamp(15px,1.11vw,16px);
  --fs-title:clamp(22px,2.36vw,34px);
  --fs-text:clamp(17px,1.81vw,26px);
  --fs-md:clamp(15px,1.39vw,20px);
  --fs-sm:clamp(13px,1.25vw,18px);
  --fs-xs:clamp(11px,.9vw,13px);
  --bar-h:clamp(48px,3.9vw,56px);
  --pad:clamp(20px,8.889vw,128px);
  --safe-h:calc(100svh - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));
  color-scheme:light;
  box-sizing:border-box;
  padding-top:env(safe-area-inset-top,0px);
  padding-bottom:env(safe-area-inset-bottom,0px);
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --bg:#000000; --ink:#ffffff; --muted:#8c8c8c; --bar:rgba(70,70,70,.3);
    --ph:#1a1a1a; --mono:invert(1); --sheet:#000000; --sheet-ink:#ffffff;
    color-scheme:dark;
  }
}
:root[data-theme="dark"]{
  --bg:#000000; --ink:#ffffff; --muted:#8c8c8c; --bar:rgba(70,70,70,.3);
  --ph:#1a1a1a; --mono:invert(1); --sheet:#000000; --sheet-ink:#ffffff;
  color-scheme:dark;
}
html{scroll-padding-top:calc(env(safe-area-inset-top,0px) + var(--bar-h))}
*,*::before,*::after{box-sizing:inherit}
body{
  margin:0; background:var(--bg); color:var(--ink);
  font-family:var(--sans); font-weight:var(--w-thin); letter-spacing:.01em;
  -webkit-font-smoothing:antialiased; text-rendering:optimizeLegibility;
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit;letter-spacing:inherit;background:none;border:0;padding:0;margin:0;cursor:pointer;text-align:inherit}
:focus-visible{outline:1px solid currentColor;outline-offset:4px}
[tabindex="-1"]:focus{outline:none}
[hidden]{display:none!important}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}

/* header */
.site-header{
  position:fixed;top:0;left:0;right:0;z-index:20;
  padding-top:env(safe-area-inset-top,0px);
  background:var(--bar);
  -webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);
}
.bar{
  position:relative;height:var(--bar-h);max-width:1440px;margin-inline:auto;
  display:flex;align-items:center;padding-inline:clamp(16px,2.778vw,40px);
}
.logo{display:block;width:clamp(24px,2.22vw,32px);aspect-ratio:47/55;flex:none}
.logo img{width:100%;height:100%;object-fit:contain;filter:var(--mono)}
.nav{
  margin-left:auto;display:flex;align-items:center;gap:clamp(18px,2.5vw,36px);
  font-size:var(--fs-nav);font-weight:var(--w-light);
}
.nav a{transition:color .15s}
.nav a:hover,.nav a.is-active{color:var(--muted)}
@media (max-width:640px){
  .nav{gap:20px}
}

/* views */
.view{min-height:var(--safe-h)}
.view:not(#v-home){padding-top:var(--bar-h)}
.frame{max-width:1440px;margin-inline:auto}

/* home */
.hero{
  position:relative;height:var(--safe-h);min-height:420px;overflow:hidden;
  display:grid;place-items:center;align-content:center;background:#000;color:#fff;
}
/* three columns of photos scrolling endlessly; each column holds its photos twice,
   so moving it up by half its height loops without a jump */
.cols{position:absolute;inset:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:0 8px}
.col{display:flex;flex-direction:column;animation:scroll-up 70s linear infinite;will-change:transform}
.col:nth-child(2){animation-direction:reverse;animation-duration:85s}
.col:nth-child(3){animation-duration:100s}
.col img{width:100%;height:auto;flex:none;margin-bottom:8px}
@keyframes scroll-up{to{transform:translateY(-50%)}}
.hero::after{content:"";position:absolute;inset:0;background:rgba(0,0,0,.42)}
.hero h1{margin:0;position:relative;z-index:1;width:clamp(240px,46.18vw,665px);text-align:center}
.hero h1 img{width:100%;height:auto}
.hero-sub{
  position:relative;z-index:1;margin:-.4em 0 0;text-align:center;
  font-size:clamp(14px,1.25vw,18px);font-weight:var(--w-light);letter-spacing:.06em;
}
@media (max-width:640px){
  .cols{grid-template-columns:repeat(2,minmax(0,1fr))}
  .col:nth-child(3){display:none}
}

/* projects */
.menu-wrap{
  min-height:calc(var(--safe-h) - var(--bar-h));
  display:flex;align-items:center;padding-bottom:4vh;
}
.menu{
  list-style:none;margin:0 0 0 31.18%;padding:0;
  font-size:var(--fs-title);line-height:1.15;letter-spacing:.01em;
}
.menu-head{display:block;font-weight:var(--w-med)}
.menu-sub{list-style:none;margin:0 0 0 3.44em;padding:0;font-weight:var(--w-light)}
.menu-photo{margin-top:1.15em}
.menu a{display:inline-block;transition:color .15s}
.menu a:hover{color:var(--muted)}
@media (max-width:640px){
  .menu{margin-left:var(--pad)}
  .menu-sub{margin-left:1.4em}
}

/* galleries */
.g-head{padding:clamp(36px,6.6vw,95px) var(--pad) 0}
.g-title{
  margin:0;display:flex;align-items:center;flex-wrap:wrap;gap:.22em;
  font-size:var(--fs-title);font-weight:var(--w-light);line-height:1;
}
.g-title .wm{display:inline-flex;align-items:center;height:1.38em}
.g-title .wm img{height:100%;width:auto;filter:var(--mono)}
.g-title a{transition:color .15s}
.g-title a:hover{color:var(--muted)}
.g-proj{margin-top:clamp(24px,3.9vw,56px);font-size:var(--fs-sm);line-height:1.12}
.g-proj span{display:block}
.g-proj .t{font-weight:var(--w-reg)}
.grid{
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));
  column-gap:4.9%;row-gap:clamp(40px,5.9vw,85px);
  margin-top:clamp(28px,4.44vw,64px);
  padding:0 var(--pad) clamp(64px,8.3vw,120px);
}
.g-proj + .grid{margin-top:clamp(16px,2.08vw,30px)}
.tile{display:block;width:100%}
.tile.is-wide{grid-column:span 2}
.media{display:block;aspect-ratio:var(--ar);overflow:hidden;background:var(--ph)}
.media img,.media video,.media iframe{width:100%;height:100%;object-fit:cover;border:0}
.media iframe{pointer-events:none;transform:scale(1.02)}
.media > *{transition:opacity .2s}
.tile:hover .media > *{opacity:.85}
.cap{display:block;margin-top:.32em;font-size:var(--fs-sm);line-height:1.12}
.cap span{display:block}
.cap .t{font-weight:var(--w-reg)}
@media (max-width:760px){
  .grid{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:14px;row-gap:32px}
  .tile.is-wide{grid-column:1/-1}
}

/* previous / next section, at the bottom of each gallery */
.pager{
  display:flex;justify-content:space-between;gap:16px;max-width:1440px;margin-inline:auto;
  padding:0 var(--pad) clamp(48px,6vw,88px);font-size:var(--fs-md);font-weight:var(--w-light);
}
.pager a{transition:color .15s}
.pager a:hover{color:var(--muted)}
.pager .next{margin-left:auto;text-align:right}
.pager small{display:block;font-size:var(--fs-xs);color:var(--muted);letter-spacing:.04em}

/* photography collage */
.collage{
  position:relative;max-width:1440px;margin:clamp(12px,1.74vw,25px) auto clamp(64px,8.3vw,120px);
  aspect-ratio:1440/3228;
}
.fig{position:absolute;margin:0;left:var(--l);top:var(--t);width:var(--w)}
.fig figcaption{
  position:absolute;left:var(--cl);top:var(--ct);width:max-content;
  font-size:var(--fs-sm);line-height:1.12;
}
.fig figcaption span{display:block}
.fig figcaption .t{font-weight:var(--w-reg)}
@media (max-width:900px){
  .collage{
    aspect-ratio:auto;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
    grid-auto-flow:dense;gap:28px 14px;padding-inline:var(--pad);
  }
  .fig{position:static;width:auto}
  .fig.is-wide{grid-column:1/-1}
  .fig figcaption{position:static;margin-top:.32em}
}

/* about */
.about{padding:clamp(36px,6.6vw,95px) 0 clamp(64px,8.3vw,120px)}
.about-in{margin-left:16.94%;width:72.43%}
.about h1{margin:0;font-family:var(--display);font-size:clamp(30px,3.06vw,44px);font-weight:400;line-height:1;letter-spacing:0}
.about-lede{margin:.9em 0 0;width:70%;font-size:var(--fs-text);line-height:1.15;text-align:justify;hyphens:auto;-webkit-hyphens:auto}
.about-row,.about-touch{display:grid;grid-template-columns:400fr 40fr 603fr}
.about-row{margin-top:clamp(28px,4.17vw,60px)}
.about-photo{grid-column:1;aspect-ratio:571/772;background:var(--ph)}
.about-photo img{width:100%;height:100%;object-fit:cover;object-position:50% 100%}
.about-quote{grid-column:3;align-self:end;margin:0;max-width:22em;font-size:var(--fs-text);line-height:1.15;text-align:justify;hyphens:auto;-webkit-hyphens:auto}
.about-touch{margin-top:clamp(28px,5.1vw,74px);font-size:var(--fs-md);line-height:1.43}
.touch-label{grid-column:1}
.touch-ig{grid-column:3}
.touch-ig:hover{color:var(--muted)}
.about-clients{
  margin:clamp(32px,5.5vw,79px) 0 0;display:flex;flex-wrap:wrap;align-items:center;
  gap:clamp(14px,2.2vw,32px) clamp(20px,3.3vw,48px);font-size:var(--fs-md);line-height:1.43;
}
.about-clients h2{margin:0;font-size:inherit;font-weight:var(--w-light)}
.about-clients ul{display:contents;list-style:none}
.about-clients li{display:flex;align-items:center;font-weight:var(--w-reg)}
/* client logos: drop a black logo file in images/clients/ and use <img> instead of the name */
.about-clients img{height:clamp(16px,1.67vw,24px);width:auto;filter:var(--mono)}
@media (max-width:760px){
  .about-in{margin-inline:var(--pad);width:auto}
  .about-lede,.about-quote{width:auto;text-align:left}
  .about-row,.about-touch{grid-template-columns:1fr}
  .about-quote{grid-column:1;margin-top:28px}
  .touch-label{padding-left:0}
  .touch-ig{grid-column:1}
}

/* contact */
.contact{min-height:calc(var(--safe-h) - var(--bar-h));display:flex;align-items:center;padding-bottom:6vh}
.contact dl{
  display:grid;grid-template-columns:max-content max-content;column-gap:clamp(32px,4.4vw,64px);
  margin:0 auto;font-size:var(--fs-md);line-height:1.8;
}
.contact dt{font-weight:var(--w-med)}
.contact dd{margin:0}
.contact dd a:hover{color:var(--muted)}
@media (max-width:760px){
  .contact dl{grid-template-columns:1fr;margin-inline:var(--pad)}
  .contact dd{margin-bottom:.7em}
}

/* project viewer */
.lb{
  padding:0;border:0;background:transparent;color:var(--sheet-ink);overflow:visible;
  max-width:none;max-height:none;
  width:min(80.21vw,1155px,calc((100svh - 260px) * 1.2762));
}
.lb::backdrop{background:var(--veil)}
.lb[open]{animation:lb-in .22s ease-out}
@keyframes lb-in{from{opacity:0}to{opacity:1}}
.lb-close{position:absolute;right:0;bottom:calc(100% + 10px);color:#fff;font-size:clamp(16px,1.4vw,20px);font-weight:var(--w-light)}
.lb-close:hover{opacity:.7}
.lb-stage{background:var(--stage);aspect-ratio:1155/905;display:flex;align-items:center;justify-content:center;overflow:hidden}
.lb-stage img,.lb-stage iframe,.lb-stage video{width:100%;height:100%;object-fit:contain;border:0;display:block}
.lb-info{
  background:var(--sheet);height:clamp(44px,3.9vw,56px);
  display:flex;align-items:center;gap:clamp(14px,2.2vw,32px);
  padding-inline:clamp(12px,1.39vw,20px);
  font-size:var(--fs-xs);line-height:1.25;
}
.lb-info .logo{width:clamp(18px,1.67vw,24px)}
.lb-info .lb-role{margin-left:auto}
.lb-info span{display:block}
.lb-info .k{font-weight:var(--w-reg)}
@media (max-width:640px){.lb{width:92vw}}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{animation:none!important;transition:none!important}
}
