/* home v04: marquee of all work (replaces the original .tracking-strip). Everything is under body.v04;
   the one rule that hides an original part is under body.v04-marquee-on, which marquee.js sets (so ?off=marquee restores the original). */
body.v04-marquee-on .tracking-strip{visibility:hidden!important}
/* the shell grows the footer box up behind the band; its top hairline would then cross the thumbnails */
body.v04-marquee-on.v04-shell-on:not(.v04-away) .site-controls{border-top-color:transparent;background-clip:padding-box}

body.v04 .v04-marquee{
  --mq-h:var(--v04-marquee-h,176px);
  --mq-pad:4px; --mq-pad-b:17px; --mq-head:20px; --mq-foot:16px; --mq-gap:3px;   /* the text ends 17px above the band's bottom: clear of the footer rail and its label */
  --mq-th:calc(var(--mq-h) - 1px - var(--mq-pad) - var(--mq-pad-b) - var(--mq-head) - var(--mq-foot) - 2*var(--mq-gap)); /* window height: 112px in a 176px band, 86px in 150px */
  --mq-item-gap:24px;                         /* one gap everywhere; a cell is as wide as its window or its text, whichever is wider */
  --mq-plate:#ecece8;                         /* light plate behind transparent artwork (both themes: the artwork is black) */
  --cut:14px;
  position:fixed; left:0; right:0; bottom:var(--footer); height:var(--mq-h); z-index:var(--z-chrome-low,5);
  box-sizing:border-box; background:var(--black); border-top:1px solid var(--line);
  color:var(--white); user-select:none; -webkit-user-select:none; touch-action:none; cursor:grab; contain:layout;
  opacity:1; transition:opacity .35s var(--ease-standard), visibility 0s;
}
body.v04 .v04-marquee.is-dragging{cursor:grabbing}
body.v04.booting .v04-marquee, body.v04.nav-open .v04-marquee, body.v04.v04-away .v04-marquee, body.v04 .v04-marquee.is-away,
body.v04 .v04-marquee.is-off{visibility:hidden; opacity:0; pointer-events:none; transition:none}

/* caption: one small line standing on the band's top rule, at the page gutter (outside the clipped view, so it covers no window or title) */
body.v04 .v04-mq-cap{
  position:absolute; left:var(--gutter); bottom:calc(100% + 4px); display:flex; gap:14px; white-space:nowrap; pointer-events:none;
  font:11px/12px var(--mono,Neuebit,monospace); letter-spacing:.06em; text-transform:uppercase; color:var(--muted); font-variant-numeric:tabular-nums;
}
body.v04 .v04-mq-cap b{font-weight:400; color:var(--white)}
body.v04 .v04-mq-cap [data-mq-rate]{margin-left:-6px; color:var(--instrument-ink)}

/* the moving row: runs the full width of the window, both ends treated the same; at rest the first project starts on the gutter (placed in marquee.js) */
body.v04 .v04-mq-view{position:absolute; inset:0; overflow:hidden; contain:paint}
body.v04 .v04-mq-track{
  position:absolute; left:0; top:0; height:100%; display:flex; align-items:flex-start;
  padding:var(--mq-pad) 0 var(--mq-pad-b); box-sizing:border-box; gap:var(--mq-item-gap);
  will-change:transform; transform:translate3d(0,0,0);
}
body.v04 .v04-mq-item{
  position:relative; flex:none; display:block; width:max-content; min-width:calc(var(--mq-th) * var(--ar,1)); max-width:max(260px, calc(var(--mq-th) * var(--ar,1)));
  color:inherit; text-decoration:none; outline:0; -webkit-user-drag:none; cursor:pointer;
}
body.v04 .v04-marquee.is-dragging .v04-mq-item{cursor:grabbing}
body.v04 .v04-mq-item:focus-visible{outline:2px solid var(--white); outline-offset:3px}
body.v04 .v04-mq-item .hd{
  display:flex; align-items:baseline; gap:7px; height:var(--mq-head); line-height:var(--mq-head); white-space:nowrap;
}
body.v04 .v04-mq-item .no{flex:none; font:16px/var(--mq-head) var(--mono,Neuebit,monospace); letter-spacing:.02em; color:var(--muted)}
body.v04 .v04-mq-item .tt{min-width:0; overflow:hidden; text-overflow:ellipsis; font:19px/var(--mq-head) Mondwest,Georgia,serif; letter-spacing:-.01em; padding-bottom:4px; margin-bottom:-4px}
body.v04 .v04-mq-item .bar{
  position:absolute; left:0; right:0; top:calc(var(--mq-head) + 1px); height:2px; background:var(--white);
  transform:scaleX(0); transform-origin:0 50%; transition:transform .45s var(--ease-acquire);
}
body.v04 .v04-mq-item.is-lock .bar{transform:scaleX(1)}
body.v04 .v04-mq-item .ft{
  position:relative; display:flex; height:var(--mq-foot); margin-top:var(--mq-gap); white-space:nowrap; overflow:hidden;
  font:16px/var(--mq-foot) var(--mono,Neuebit,monospace); letter-spacing:.03em; text-transform:uppercase; color:var(--ink-74,var(--muted));
}
body.v04 .v04-mq-item .ft .cl{min-width:0; overflow:hidden; text-overflow:ellipsis}
body.v04 .v04-mq-item .ft .ix{position:absolute; right:0; top:0; color:var(--white); opacity:0; transition:opacity .2s}
body.v04 .v04-mq-item.is-flip .ft .cl{max-width:calc(100% - 46px)}
body.v04 .v04-mq-item.is-flip .ft .ix{opacity:1}

/* the window (E05 .mod .win: two 14px cuts) */
body.v04 .v04-mq-item .win{
  position:relative; display:block; height:var(--mq-th); width:calc(var(--mq-th) * var(--ar,1)); margin-top:var(--mq-gap); overflow:hidden;
  background:var(--ink-20,#eee);
  clip-path:polygon(0 0,calc(100% - var(--cut)) 0,100% var(--cut),100% 100%,var(--cut) 100%,0 calc(100% - var(--cut)));
}
body.v04 .v04-mq-item .win.matte{background:var(--mq-plate)}
body.v04 .v04-mq-item .win::after{ /* hairline frame, including the two cut edges */
  content:""; position:absolute; inset:0; z-index:3; pointer-events:none; border:1px solid var(--line);
  background:
    linear-gradient(to top right,#0000 calc(50% - 1.2px),var(--line) calc(50% - 1.2px),var(--line) 50%,#0000 50%) 100% 0/var(--cut) var(--cut) no-repeat,
    linear-gradient(to top right,#0000 50%,var(--line) 50%,var(--line) calc(50% + 1.2px),#0000 calc(50% + 1.2px)) 0 100%/var(--cut) var(--cut) no-repeat;
}
body.v04 .v04-mq-item .win img{
  position:absolute; inset:0; width:100%; height:100%; box-sizing:border-box; object-fit:cover; display:block; -webkit-user-drag:none; pointer-events:none;
}
body.v04 .v04-mq-item .win img.matte{object-fit:contain; padding:10%; background:var(--mq-plate)}
body.v04 .v04-mq-item .win img.flip{z-index:1; animation:v04-acq-img .6s cubic-bezier(.2,.7,.2,1) both}

/* E05 lenses: grey image under a paper-coloured screen (reads on white and on dark), clear to colour */
body.v04 .v04-mq-item .win img.base{transition:filter .5s cubic-bezier(.2,.7,.2,1); filter:grayscale(1) contrast(1.3)}
body.v04 .v04-mq-item[data-l=chroma] .win img.base{filter:grayscale(.2) contrast(1.4) saturate(1.6)}
body.v04 .v04-mq-item .win::before{content:""; position:absolute; inset:0; z-index:2; pointer-events:none; transition:opacity .45s; opacity:.86}
/* halftone = staggered paper dots (the picture shows between them); wireframe = a coarse mesh of squares cut by one diagonal: unlike at this size */
body.v04 .v04-mq-item[data-l=halftone] .win::before{background:radial-gradient(circle,var(--black) 0 1.5px,#0000 2.1px) 0 0/6px 6px,radial-gradient(circle,var(--black) 0 1.5px,#0000 2.1px) 3px 3px/6px 6px}
body.v04 .v04-mq-item[data-l=wireframe] .win::before{background:linear-gradient(var(--black) 1px,#0000 1px) 0 0/100% 16px,linear-gradient(90deg,var(--black) 1px,#0000 1px) 0 0/16px 100%,linear-gradient(to top right,#0000 calc(50% - .6px),var(--black) calc(50% - .6px),var(--black) calc(50% + .6px),#0000 calc(50% + .6px)) 0 0/16px 16px; opacity:.9}
body.v04 .v04-mq-item[data-l=contours] .win::before{background:repeating-radial-gradient(circle at 40% 45%,#0000 0 3px,var(--black) 3px 5px)}
body.v04 .v04-mq-item[data-l=crosshatch] .win::before{background:repeating-linear-gradient(45deg,var(--black) 0 1px,#0000 1px 6px),repeating-linear-gradient(-45deg,var(--black) 0 1px,#0000 1px 6px)}
body.v04 .v04-mq-item[data-l=chroma] .win::before{background:repeating-linear-gradient(#0000 0 2px,var(--black) 2px 4px); opacity:.6}
body.v04 .v04-mq-item:is(.is-lock,.is-hot,:focus-visible) .win::before,
body.v04 .v04-marquee.is-still .v04-mq-item .win::before{opacity:0}
body.v04 .v04-mq-item:is(.is-lock,.is-hot,:focus-visible) .win img.base,
body.v04 .v04-marquee.is-still .v04-mq-item .win img.base{filter:none}
@media (hover:hover){
  body.v04 .v04-marquee:not(.is-dragging) .v04-mq-item:hover .win::before{opacity:0}
  body.v04 .v04-marquee:not(.is-dragging) .v04-mq-item:hover .win img.base{filter:none}
}
/* single-asset projects: slow push-in instead of flipping */
body.v04 .v04-mq-item.is-push .win img.base{animation:v04-mq-push 2.4s cubic-bezier(.3,0,.2,1) both}
@keyframes v04-mq-push{from{transform:scale(1)}to{transform:scale(1.06)}}

/* E05 acquisition: frame grows from the top-left, then the image wipes down (6-point polygons throughout) */
body.v04 .v04-marquee:not(.is-in) .v04-mq-item .win{clip-path:polygon(0 0,0 0,0 0,0 0,0 0,0 0)}
body.v04 .v04-marquee:not(.is-in) .v04-mq-item :is(.hd,.ft){opacity:0}
body.v04 .v04-mq-item :is(.hd,.ft){transition:opacity .5s var(--ease-standard) var(--d,0s)}
body.v04 .v04-marquee.is-acq .v04-mq-item .win{animation:v04-acq-frame .7s cubic-bezier(.2,.7,.2,1) both; animation-delay:var(--d,0s)}
body.v04 .v04-marquee.is-acq .v04-mq-item .win img.base{animation:v04-acq-img .9s cubic-bezier(.2,.7,.2,1) both; animation-delay:calc(var(--d,0s) + .25s)}
@keyframes v04-acq-frame{from{clip-path:polygon(0 0,0 0,0 0,0 0,0 0,0 0)}}
@keyframes v04-acq-img{from{clip-path:inset(0 0 100% 0)}to{clip-path:inset(0 0 0 0)}}

/* phones: not designed this round, the band is not shown and the original strip stays */
@media (max-width:759px){body.v04 .v04-marquee{display:none}}
@media (prefers-reduced-motion:reduce){
  body.v04 .v04-marquee *, body.v04 .v04-marquee{animation:none!important; transition:none!important}
}
